diff --git a/.changelog/0bf3d17307ee4e96af4bb22be3ab7776.json b/.changelog/0bf3d17307ee4e96af4bb22be3ab7776.json new file mode 100644 index 00000000000..fc5975408ee --- /dev/null +++ b/.changelog/0bf3d17307ee4e96af4bb22be3ab7776.json @@ -0,0 +1,8 @@ +{ + "id": "0bf3d173-07ee-4e96-af4b-b22be3ab7776", + "type": "feature", + "description": "New integration with the Gitlab provider type.", + "modules": [ + "service/codestarconnections" + ] +} \ No newline at end of file diff --git a/.changelog/4cce410042fd40418d921de9a1d9154f.json b/.changelog/4cce410042fd40418d921de9a1d9154f.json new file mode 100644 index 00000000000..adefb417b6e --- /dev/null +++ b/.changelog/4cce410042fd40418d921de9a1d9154f.json @@ -0,0 +1,8 @@ +{ + "id": "4cce4100-42fd-4041-8d92-1de9a1d9154f", + "type": "feature", + "description": "Amplify Studio releases GraphQL support for codegen job action.", + "modules": [ + "service/amplifyuibuilder" + ] +} \ No newline at end of file diff --git a/.changelog/51fa85b2115b4a26a73d5d7600843d41.json b/.changelog/51fa85b2115b4a26a73d5d7600843d41.json new file mode 100644 index 00000000000..e5d8fd03758 --- /dev/null +++ b/.changelog/51fa85b2115b4a26a73d5d7600843d41.json @@ -0,0 +1,8 @@ +{ + "id": "51fa85b2-115b-4a26-a73d-5d7600843d41", + "type": "feature", + "description": "This release introduces automatic deletion of schedules in EventBridge Scheduler. If configured, EventBridge Scheduler automatically deletes a schedule after the schedule has completed its last invocation.", + "modules": [ + "service/scheduler" + ] +} \ No newline at end of file diff --git a/.changelog/6ee9def9762c41cc8c62b06a2e61ff45.json b/.changelog/6ee9def9762c41cc8c62b06a2e61ff45.json new file mode 100644 index 00000000000..da9cf3e19ef --- /dev/null +++ b/.changelog/6ee9def9762c41cc8c62b06a2e61ff45.json @@ -0,0 +1,8 @@ +{ + "id": "6ee9def9-762c-41cc-8c62-b06a2e61ff45", + "type": "feature", + "description": "Add support for in-aws right sizing", + "modules": [ + "service/drs" + ] +} \ No newline at end of file diff --git a/.changelog/806e7674c244424f8e2d5c63dccdae86.json b/.changelog/806e7674c244424f8e2d5c63dccdae86.json new file mode 100644 index 00000000000..a65435bca03 --- /dev/null +++ b/.changelog/806e7674c244424f8e2d5c63dccdae86.json @@ -0,0 +1,8 @@ +{ + "id": "806e7674-c244-424f-8e2d-5c63dccdae86", + "type": "feature", + "description": "You can now configure an instance refresh to set its status to 'failed' when it detects that a specified CloudWatch alarm has gone into the ALARM state. You can also choose to roll back the instance refresh automatically when the alarm threshold is met.", + "modules": [ + "service/autoscaling" + ] +} \ No newline at end of file diff --git a/.changelog/8149855e4b3543b3a88a8a79990f1c83.json b/.changelog/8149855e4b3543b3a88a8a79990f1c83.json new file mode 100644 index 00000000000..ff6a45ee0f7 --- /dev/null +++ b/.changelog/8149855e4b3543b3a88a8a79990f1c83.json @@ -0,0 +1,8 @@ +{ + "id": "8149855e-4b35-43b3-a88a-8a79990f1c83", + "type": "feature", + "description": "Amazon Route 53 now supports the Israel (Tel Aviv) Region (il-central-1) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region.", + "modules": [ + "service/route53" + ] +} \ No newline at end of file diff --git a/.changelog/82ba63881f5743379f2609574dec4711.json b/.changelog/82ba63881f5743379f2609574dec4711.json new file mode 100644 index 00000000000..ad62e2911c3 --- /dev/null +++ b/.changelog/82ba63881f5743379f2609574dec4711.json @@ -0,0 +1,8 @@ +{ + "id": "82ba6388-1f57-4337-9f26-09574dec4711", + "type": "feature", + "description": "This release includes new import resource, model versioning and resource policy features.", + "modules": [ + "service/lookoutequipment" + ] +} \ No newline at end of file diff --git a/.changelog/932a70e91df647eaaf40f34061f6581a.json b/.changelog/932a70e91df647eaaf40f34061f6581a.json new file mode 100644 index 00000000000..c55d84cc18e --- /dev/null +++ b/.changelog/932a70e91df647eaaf40f34061f6581a.json @@ -0,0 +1,8 @@ +{ + "id": "932a70e9-1df6-47ea-af40-f34061f6581a", + "type": "feature", + "description": "Add CreationType filter for ListReadSets", + "modules": [ + "service/omics" + ] +} \ No newline at end of file diff --git a/.changelog/bb105be694e5408299fc9052f5dd1b11.json b/.changelog/bb105be694e5408299fc9052f5dd1b11.json new file mode 100644 index 00000000000..cf31c1abed1 --- /dev/null +++ b/.changelog/bb105be694e5408299fc9052f5dd1b11.json @@ -0,0 +1,8 @@ +{ + "id": "bb105be6-94e5-4082-99fc-9052f5dd1b11", + "type": "feature", + "description": "This release adds support for Aurora MySQL local write forwarding, which allows for forwarding of write operations from reader DB instances to the writer DB instance.", + "modules": [ + "service/rds" + ] +} \ No newline at end of file diff --git a/.changelog/e0b2329640b84b0186661203502cb50a.json b/.changelog/e0b2329640b84b0186661203502cb50a.json new file mode 100644 index 00000000000..7b6729de538 --- /dev/null +++ b/.changelog/e0b2329640b84b0186661203502cb50a.json @@ -0,0 +1,8 @@ +{ + "id": "e0b23296-40b8-4b01-8666-1203502cb50a", + "type": "feature", + "description": "This release adds 1 new API: BatchGetFindingDetails to retrieve enhanced vulnerability intelligence details for findings.", + "modules": [ + "service/inspector2" + ] +} \ No newline at end of file diff --git a/.changelog/f214ad0c82fa4c3c850b1f772bdf91d8.json b/.changelog/f214ad0c82fa4c3c850b1f772bdf91d8.json new file mode 100644 index 00000000000..7b7d83da5d6 --- /dev/null +++ b/.changelog/f214ad0c82fa4c3c850b1f772bdf91d8.json @@ -0,0 +1,8 @@ +{ + "id": "f214ad0c-82fa-4c3c-850b-1f772bdf91d8", + "type": "feature", + "description": "This release introduces custom SQL queries - an expanded set of SQL you can run. This release adds analysis templates, a new resource for storing pre-defined custom SQL queries ahead of time. This release also adds the Custom analysis rule, which lets you approve analysis templates for querying.", + "modules": [ + "service/cleanrooms" + ] +} \ No newline at end of file diff --git a/aws/protocol/eventstream/go.mod b/aws/protocol/eventstream/go.mod index a256c4922bd..c9ccff6384c 100644 --- a/aws/protocol/eventstream/go.mod +++ b/aws/protocol/eventstream/go.mod @@ -2,6 +2,6 @@ module github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream go 1.15 -require github.com/aws/smithy-go v1.13.5 +require github.com/aws/smithy-go v1.14.0 replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/aws/protocol/eventstream/go.sum b/aws/protocol/eventstream/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/aws/protocol/eventstream/go.sum +++ b/aws/protocol/eventstream/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/config/go.mod b/config/go.mod index 9af0c288820..0eb92aa6f83 100644 --- a/config/go.mod +++ b/config/go.mod @@ -10,7 +10,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.12.14 github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.14 github.com/aws/aws-sdk-go-v2/service/sts v1.20.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/config/go.sum b/config/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/config/go.sum +++ b/config/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/credentials/go.mod b/credentials/go.mod index 5deb91b8403..f9cecc244e1 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.12.14 github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.14 github.com/aws/aws-sdk-go-v2/service/sts v1.20.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/credentials/go.sum b/credentials/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/example/service/dynamodb/createTable/go.sum b/example/service/dynamodb/createTable/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/example/service/dynamodb/createTable/go.sum +++ b/example/service/dynamodb/createTable/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/dynamodb/scanItems/go.sum b/example/service/dynamodb/scanItems/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/example/service/dynamodb/scanItems/go.sum +++ b/example/service/dynamodb/scanItems/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/s3/listObjects/go.sum b/example/service/s3/listObjects/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/example/service/s3/listObjects/go.sum +++ b/example/service/s3/listObjects/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/example/service/s3/usingPrivateLink/go.sum b/example/service/s3/usingPrivateLink/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/example/service/s3/usingPrivateLink/go.sum +++ b/example/service/s3/usingPrivateLink/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/feature/cloudfront/sign/go.sum b/feature/cloudfront/sign/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/feature/cloudfront/sign/go.sum +++ b/feature/cloudfront/sign/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod index f7371ebba36..c4642c0ec82 100644 --- a/feature/dynamodb/attributevalue/go.mod +++ b/feature/dynamodb/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.20.3 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.16 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/dynamodb/attributevalue/go.sum b/feature/dynamodb/attributevalue/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/feature/dynamodb/attributevalue/go.sum +++ b/feature/dynamodb/attributevalue/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodb/expression/go.sum b/feature/dynamodb/expression/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/feature/dynamodb/expression/go.sum +++ b/feature/dynamodb/expression/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod index 99fad6f1987..765869260b6 100644 --- a/feature/dynamodbstreams/attributevalue/go.mod +++ b/feature/dynamodbstreams/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.20.3 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.16 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/dynamodbstreams/attributevalue/go.sum b/feature/dynamodbstreams/attributevalue/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/feature/dynamodbstreams/attributevalue/go.sum +++ b/feature/dynamodbstreams/attributevalue/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/ec2/imds/go.mod b/feature/ec2/imds/go.mod index 2dc489335f8..cfdbe2e0cf9 100644 --- a/feature/ec2/imds/go.mod +++ b/feature/ec2/imds/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.19.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/ec2/imds/go.sum b/feature/ec2/imds/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/feature/ec2/imds/go.sum +++ b/feature/ec2/imds/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/feature/ec2/imds/internal/configtesting/go.sum b/feature/ec2/imds/internal/configtesting/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/feature/ec2/imds/internal/configtesting/go.sum +++ b/feature/ec2/imds/internal/configtesting/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/feature/rds/auth/go.sum b/feature/rds/auth/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/feature/rds/auth/go.sum +++ b/feature/rds/auth/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 07ea775f93c..1a80b4c6440 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/config v1.18.30 github.com/aws/aws-sdk-go-v2/service/s3 v1.37.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/feature/s3/manager/go.sum +++ b/feature/s3/manager/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/go.mod b/go.mod index 55bbab29ab9..04877317b16 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/aws/aws-sdk-go-v2 require ( - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/go.sum b/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/internal/configsources/configtesting/go.sum b/internal/configsources/configtesting/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/configsources/configtesting/go.sum +++ b/internal/configsources/configtesting/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/configsources/go.sum b/internal/configsources/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/configsources/go.sum +++ b/internal/configsources/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/endpoints/v2/go.mod b/internal/endpoints/v2/go.mod index 4adcaef971d..1178a850972 100644 --- a/internal/endpoints/v2/go.mod +++ b/internal/endpoints/v2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.19.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/endpoints/v2/go.sum b/internal/endpoints/v2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/endpoints/v2/go.sum +++ b/internal/endpoints/v2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/ini/go.sum b/internal/ini/go.sum index 77f761a1edd..3475a68a89e 100644 --- a/internal/ini/go.sum +++ b/internal/ini/go.sum @@ -1,3 +1,4 @@ +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index 6fd262db6fc..88505c34872 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index fcf7359b9b9..49b7c72bc19 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index ee456c6214f..4a32a9c36ae 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index 1b5df034a9e..17d07dd1bf8 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index 74eb17a54fa..a59c46bb39b 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index b02c99bd6ac..0fb2478d8c9 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxmlwithnamespace/go.mod b/internal/protocoltest/restxmlwithnamespace/go.mod index 968ace924aa..4cbde4621f8 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.mod +++ b/internal/protocoltest/restxmlwithnamespace/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.sum +++ b/internal/protocoltest/restxmlwithnamespace/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/v4a/go.mod b/internal/v4a/go.mod index 2dc022c99c2..a3fb9e859cf 100644 --- a/internal/v4a/go.mod +++ b/internal/v4a/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.19.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/v4a/go.sum b/internal/v4a/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/internal/v4a/go.sum +++ b/internal/v4a/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index e778b53c599..4bd613b92cd 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/account/go.mod b/service/account/go.mod index 189fe496d72..e02c9a4697e 100644 --- a/service/account/go.mod +++ b/service/account/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/account/go.sum b/service/account/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/account/go.sum +++ b/service/account/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/acm/go.mod b/service/acm/go.mod index af240b9740f..8757397b1d2 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acm/go.sum b/service/acm/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index b84f4b0359f..f8fc67ee294 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod index b22dd1d69a7..010ccfad6e7 100644 --- a/service/alexaforbusiness/go.mod +++ b/service/alexaforbusiness/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/alexaforbusiness/go.sum +++ b/service/alexaforbusiness/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amp/go.mod b/service/amp/go.mod index c637881310f..47ed47ea8c8 100644 --- a/service/amp/go.mod +++ b/service/amp/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/amp/go.sum b/service/amp/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/amp/go.sum +++ b/service/amp/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/amplify/go.mod b/service/amplify/go.mod index 2760f40432a..6e78d0d2e5f 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplify/go.sum b/service/amplify/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifybackend/go.mod b/service/amplifybackend/go.mod index b118ee893f5..3b668ea92f4 100644 --- a/service/amplifybackend/go.mod +++ b/service/amplifybackend/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/amplifybackend/go.sum +++ b/service/amplifybackend/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifyuibuilder/api_op_CreateForm.go b/service/amplifyuibuilder/api_op_CreateForm.go index 813f5baecbf..6e919570b45 100644 --- a/service/amplifyuibuilder/api_op_CreateForm.go +++ b/service/amplifyuibuilder/api_op_CreateForm.go @@ -16,7 +16,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a new form for an Amplify. +// Creates a new form for an Amplify app. func (c *Client) CreateForm(ctx context.Context, params *CreateFormInput, optFns ...func(*Options)) (*CreateFormOutput, error) { if params == nil { params = &CreateFormInput{} diff --git a/service/amplifyuibuilder/api_op_StartCodegenJob.go b/service/amplifyuibuilder/api_op_StartCodegenJob.go index a8b754b54ba..62ab13df328 100644 --- a/service/amplifyuibuilder/api_op_StartCodegenJob.go +++ b/service/amplifyuibuilder/api_op_StartCodegenJob.go @@ -16,7 +16,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Starts a code generation job for for a specified Amplify app and backend +// Starts a code generation job for a specified Amplify app and backend // environment. func (c *Client) StartCodegenJob(ctx context.Context, params *StartCodegenJobInput, optFns ...func(*Options)) (*StartCodegenJobOutput, error) { if params == nil { diff --git a/service/amplifyuibuilder/deserializers.go b/service/amplifyuibuilder/deserializers.go index 53b96b58c99..6a515931256 100644 --- a/service/amplifyuibuilder/deserializers.go +++ b/service/amplifyuibuilder/deserializers.go @@ -4028,6 +4028,66 @@ func awsRestjson1_deserializeDocumentActionParameters(v **types.ActionParameters return nil } +func awsRestjson1_deserializeDocumentApiConfiguration(v *types.ApiConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.ApiConfiguration +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "dataStoreConfig": + var mv types.DataStoreRenderConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDataStoreRenderConfig(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.ApiConfigurationMemberDataStoreConfig{Value: mv} + break loop + + case "graphQLConfig": + var mv types.GraphQLRenderConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGraphQLRenderConfig(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.ApiConfigurationMemberGraphQLConfig{Value: mv} + break loop + + case "noApiConfig": + var mv types.NoApiRenderConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentNoApiRenderConfig(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.ApiConfigurationMemberNoApiConfig{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + func awsRestjson1_deserializeDocumentAssociatedFieldsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6365,6 +6425,37 @@ func awsRestjson1_deserializeDocumentComponentVariantValues(v *map[string]string return nil } +func awsRestjson1_deserializeDocumentDataStoreRenderConfig(v **types.DataStoreRenderConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataStoreRenderConfig + if *v == nil { + sv = &types.DataStoreRenderConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentFeaturesMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7824,6 +7915,82 @@ func awsRestjson1_deserializeDocumentFormSummaryList(v *[]types.FormSummary, val return nil } +func awsRestjson1_deserializeDocumentGraphQLRenderConfig(v **types.GraphQLRenderConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GraphQLRenderConfig + if *v == nil { + sv = &types.GraphQLRenderConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "fragmentsFilePath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.FragmentsFilePath = ptr.String(jtv) + } + + case "mutationsFilePath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MutationsFilePath = ptr.String(jtv) + } + + case "queriesFilePath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.QueriesFilePath = ptr.String(jtv) + } + + case "subscriptionsFilePath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SubscriptionsFilePath = ptr.String(jtv) + } + + case "typesFilePath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.TypesFilePath = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentIdentifierList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7994,6 +8161,37 @@ func awsRestjson1_deserializeDocumentMutationActionSetStateParameter(v **types.M return nil } +func awsRestjson1_deserializeDocumentNoApiRenderConfig(v **types.NoApiRenderConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.NoApiRenderConfig + if *v == nil { + sv = &types.NoApiRenderConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentNumValues(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8167,6 +8365,11 @@ func awsRestjson1_deserializeDocumentReactStartCodegenJobData(v **types.ReactSta for key, value := range shape { switch key { + case "apiConfiguration": + if err := awsRestjson1_deserializeDocumentApiConfiguration(&sv.ApiConfiguration, value); err != nil { + return err + } + case "inlineSourceMap": if value != nil { jtv, ok := value.(bool) diff --git a/service/amplifyuibuilder/go.mod b/service/amplifyuibuilder/go.mod index 834750d63bc..276eec9740e 100644 --- a/service/amplifyuibuilder/go.mod +++ b/service/amplifyuibuilder/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplifyuibuilder/go.sum b/service/amplifyuibuilder/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/amplifyuibuilder/go.sum +++ b/service/amplifyuibuilder/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifyuibuilder/serializers.go b/service/amplifyuibuilder/serializers.go index 031c1b5d5e6..f4b992cd333 100644 --- a/service/amplifyuibuilder/serializers.go +++ b/service/amplifyuibuilder/serializers.go @@ -2326,6 +2326,36 @@ func awsRestjson1_serializeDocumentActionParameters(v *types.ActionParameters, v return nil } +func awsRestjson1_serializeDocumentApiConfiguration(v types.ApiConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.ApiConfigurationMemberDataStoreConfig: + av := object.Key("dataStoreConfig") + if err := awsRestjson1_serializeDocumentDataStoreRenderConfig(&uv.Value, av); err != nil { + return err + } + + case *types.ApiConfigurationMemberGraphQLConfig: + av := object.Key("graphQLConfig") + if err := awsRestjson1_serializeDocumentGraphQLRenderConfig(&uv.Value, av); err != nil { + return err + } + + case *types.ApiConfigurationMemberNoApiConfig: + av := object.Key("noApiConfig") + if err := awsRestjson1_serializeDocumentNoApiRenderConfig(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + func awsRestjson1_serializeDocumentAssociatedFieldsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3313,6 +3343,13 @@ func awsRestjson1_serializeDocumentCreateThemeData(v *types.CreateThemeData, val return nil } +func awsRestjson1_serializeDocumentDataStoreRenderConfig(v *types.DataStoreRenderConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + return nil +} + func awsRestjson1_serializeDocumentExchangeCodeForTokenRequestBody(v *types.ExchangeCodeForTokenRequestBody, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3865,6 +3902,38 @@ func awsRestjson1_serializeDocumentFormStyleConfig(v types.FormStyleConfig, valu return nil } +func awsRestjson1_serializeDocumentGraphQLRenderConfig(v *types.GraphQLRenderConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FragmentsFilePath != nil { + ok := object.Key("fragmentsFilePath") + ok.String(*v.FragmentsFilePath) + } + + if v.MutationsFilePath != nil { + ok := object.Key("mutationsFilePath") + ok.String(*v.MutationsFilePath) + } + + if v.QueriesFilePath != nil { + ok := object.Key("queriesFilePath") + ok.String(*v.QueriesFilePath) + } + + if v.SubscriptionsFilePath != nil { + ok := object.Key("subscriptionsFilePath") + ok.String(*v.SubscriptionsFilePath) + } + + if v.TypesFilePath != nil { + ok := object.Key("typesFilePath") + ok.String(*v.TypesFilePath) + } + + return nil +} + func awsRestjson1_serializeDocumentIdentifierList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3900,6 +3969,13 @@ func awsRestjson1_serializeDocumentMutationActionSetStateParameter(v *types.Muta return nil } +func awsRestjson1_serializeDocumentNoApiRenderConfig(v *types.NoApiRenderConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + return nil +} + func awsRestjson1_serializeDocumentNumValues(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3981,6 +4057,13 @@ func awsRestjson1_serializeDocumentReactStartCodegenJobData(v *types.ReactStartC object := value.Object() defer object.Close() + if v.ApiConfiguration != nil { + ok := object.Key("apiConfiguration") + if err := awsRestjson1_serializeDocumentApiConfiguration(v.ApiConfiguration, ok); err != nil { + return err + } + } + if v.InlineSourceMap { ok := object.Key("inlineSourceMap") ok.Boolean(v.InlineSourceMap) diff --git a/service/amplifyuibuilder/types/types.go b/service/amplifyuibuilder/types/types.go index d35d216de67..b44f8dabd34 100644 --- a/service/amplifyuibuilder/types/types.go +++ b/service/amplifyuibuilder/types/types.go @@ -49,6 +49,44 @@ type ActionParameters struct { noSmithyDocumentSerde } +// Describes the API configuration for a code generation job. +// +// The following types satisfy this interface: +// +// ApiConfigurationMemberDataStoreConfig +// ApiConfigurationMemberGraphQLConfig +// ApiConfigurationMemberNoApiConfig +type ApiConfiguration interface { + isApiConfiguration() +} + +// The configuration for an application using DataStore APIs. +type ApiConfigurationMemberDataStoreConfig struct { + Value DataStoreRenderConfig + + noSmithyDocumentSerde +} + +func (*ApiConfigurationMemberDataStoreConfig) isApiConfiguration() {} + +// The configuration for an application using GraphQL APIs. +type ApiConfigurationMemberGraphQLConfig struct { + Value GraphQLRenderConfig + + noSmithyDocumentSerde +} + +func (*ApiConfigurationMemberGraphQLConfig) isApiConfiguration() {} + +// The configuration for an application with no API being used. +type ApiConfigurationMemberNoApiConfig struct { + Value NoApiRenderConfig + + noSmithyDocumentSerde +} + +func (*ApiConfigurationMemberNoApiConfig) isApiConfiguration() {} + // Describes the feature flags that you can specify for a code generation job. type CodegenFeatureFlags struct { @@ -212,7 +250,7 @@ type CodegenJob struct { ModifiedAt *time.Time // Describes the configuration information for rendering the UI component - // associated the code generation job. + // associated with the code generation job. RenderConfig CodegenJobRenderConfig // The status of the code generation job. @@ -264,7 +302,7 @@ type CodegenJobGenericDataSchema struct { } // Describes the configuration information for rendering the UI component -// associated the code generation job. +// associated with the code generation job. // // The following types satisfy this interface: // @@ -805,6 +843,11 @@ type CreateThemeData struct { noSmithyDocumentSerde } +// Describes the DataStore configuration for an API for a code generation job. +type DataStoreRenderConfig struct { + noSmithyDocumentSerde +} + // Describes the configuration of a request to exchange an access code for a token. type ExchangeCodeForTokenRequestBody struct { @@ -1272,6 +1315,41 @@ type FormSummary struct { noSmithyDocumentSerde } +// Describes the GraphQL configuration for an API for a code generation job. +type GraphQLRenderConfig struct { + + // The path to the GraphQL fragments file, relative to the component output + // directory. + // + // This member is required. + FragmentsFilePath *string + + // The path to the GraphQL mutations file, relative to the component output + // directory. + // + // This member is required. + MutationsFilePath *string + + // The path to the GraphQL queries file, relative to the component output + // directory. + // + // This member is required. + QueriesFilePath *string + + // The path to the GraphQL subscriptions file, relative to the component output + // directory. + // + // This member is required. + SubscriptionsFilePath *string + + // The path to the GraphQL types file, relative to the component output directory. + // + // This member is required. + TypesFilePath *string + + noSmithyDocumentSerde +} + // Represents the state configuration when an action modifies a property of // another element within the same component. type MutationActionSetStateParameter struct { @@ -1294,6 +1372,11 @@ type MutationActionSetStateParameter struct { noSmithyDocumentSerde } +// Describes the configuration for an application with no API being used. +type NoApiRenderConfig struct { + noSmithyDocumentSerde +} + // Stores information for generating Amplify DataStore queries. Use a Predicate to // retrieve a subset of the data in a collection. type Predicate struct { @@ -1333,6 +1416,9 @@ type PutMetadataFlagBody struct { // Describes the code generation job configuration for a React project. type ReactStartCodegenJobData struct { + // The API configuration for the code generation job. + ApiConfiguration ApiConfiguration + // Specifies whether the code generation job should render inline source maps. InlineSourceMap bool @@ -1672,6 +1758,7 @@ type UnknownUnionMember struct { noSmithyDocumentSerde } +func (*UnknownUnionMember) isApiConfiguration() {} func (*UnknownUnionMember) isCodegenJobRenderConfig() {} func (*UnknownUnionMember) isFieldPosition() {} func (*UnknownUnionMember) isFormStyleConfig() {} diff --git a/service/amplifyuibuilder/types/types_exported_test.go b/service/amplifyuibuilder/types/types_exported_test.go index 7e31d886f4c..209ad74b752 100644 --- a/service/amplifyuibuilder/types/types_exported_test.go +++ b/service/amplifyuibuilder/types/types_exported_test.go @@ -7,6 +7,32 @@ import ( "github.com/aws/aws-sdk-go-v2/service/amplifyuibuilder/types" ) +func ExampleApiConfiguration_outputUsage() { + var union types.ApiConfiguration + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ApiConfigurationMemberDataStoreConfig: + _ = v.Value // Value is types.DataStoreRenderConfig + + case *types.ApiConfigurationMemberGraphQLConfig: + _ = v.Value // Value is types.GraphQLRenderConfig + + case *types.ApiConfigurationMemberNoApiConfig: + _ = v.Value // Value is types.NoApiRenderConfig + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DataStoreRenderConfig +var _ *types.NoApiRenderConfig +var _ *types.GraphQLRenderConfig + func ExampleCodegenJobRenderConfig_outputUsage() { var union types.CodegenJobRenderConfig // type switches can be used to check the union value diff --git a/service/amplifyuibuilder/validators.go b/service/amplifyuibuilder/validators.go index 9a8b443c082..2f858f89f20 100644 --- a/service/amplifyuibuilder/validators.go +++ b/service/amplifyuibuilder/validators.go @@ -662,6 +662,25 @@ func validateActionParameters(v *types.ActionParameters) error { } } +func validateApiConfiguration(v types.ApiConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ApiConfiguration"} + switch uv := v.(type) { + case *types.ApiConfigurationMemberGraphQLConfig: + if err := validateGraphQLRenderConfig(&uv.Value); err != nil { + invalidParams.AddNested("[graphQLConfig]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCodegenGenericDataEnum(v *types.CodegenGenericDataEnum) error { if v == nil { return nil @@ -894,6 +913,25 @@ func validateCodegenJobGenericDataSchema(v *types.CodegenJobGenericDataSchema) e } } +func validateCodegenJobRenderConfig(v types.CodegenJobRenderConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CodegenJobRenderConfig"} + switch uv := v.(type) { + case *types.CodegenJobRenderConfigMemberReact: + if err := validateReactStartCodegenJobData(&uv.Value); err != nil { + invalidParams.AddNested("[react]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateComponentChild(v *types.ComponentChild) error { if v == nil { return nil @@ -1464,6 +1502,33 @@ func validateFormInputValuePropertyList(v []types.FormInputValueProperty) error } } +func validateGraphQLRenderConfig(v *types.GraphQLRenderConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GraphQLRenderConfig"} + if v.TypesFilePath == nil { + invalidParams.Add(smithy.NewErrParamRequired("TypesFilePath")) + } + if v.QueriesFilePath == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueriesFilePath")) + } + if v.MutationsFilePath == nil { + invalidParams.Add(smithy.NewErrParamRequired("MutationsFilePath")) + } + if v.SubscriptionsFilePath == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubscriptionsFilePath")) + } + if v.FragmentsFilePath == nil { + invalidParams.Add(smithy.NewErrParamRequired("FragmentsFilePath")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateMutationActionSetStateParameter(v *types.MutationActionSetStateParameter) error { if v == nil { return nil @@ -1504,6 +1569,23 @@ func validatePutMetadataFlagBody(v *types.PutMetadataFlagBody) error { } } +func validateReactStartCodegenJobData(v *types.ReactStartCodegenJobData) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ReactStartCodegenJobData"} + if v.ApiConfiguration != nil { + if err := validateApiConfiguration(v.ApiConfiguration); err != nil { + invalidParams.AddNested("ApiConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRefreshTokenRequestBody(v *types.RefreshTokenRequestBody) error { if v == nil { return nil @@ -1594,6 +1676,10 @@ func validateStartCodegenJobData(v *types.StartCodegenJobData) error { invalidParams := smithy.InvalidParamsError{Context: "StartCodegenJobData"} if v.RenderConfig == nil { invalidParams.Add(smithy.NewErrParamRequired("RenderConfig")) + } else if v.RenderConfig != nil { + if err := validateCodegenJobRenderConfig(v.RenderConfig); err != nil { + invalidParams.AddNested("RenderConfig", err.(smithy.InvalidParamsError)) + } } if v.GenericDataSchema != nil { if err := validateCodegenJobGenericDataSchema(v.GenericDataSchema); err != nil { diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index 651c65c3c44..e2e52e4d070 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index a6b37cc5f47..cd5214a007c 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index 7e76348a08f..e8db1b0b577 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index d82957f718c..12629f2b9c6 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfigdata/go.mod b/service/appconfigdata/go.mod index e8348e299da..c07c2bd0270 100644 --- a/service/appconfigdata/go.mod +++ b/service/appconfigdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appconfigdata/go.sum b/service/appconfigdata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/appconfigdata/go.sum +++ b/service/appconfigdata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appfabric/go.mod b/service/appfabric/go.mod index b679e12406e..2c730dd82a2 100644 --- a/service/appfabric/go.mod +++ b/service/appfabric/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appfabric/go.sum b/service/appfabric/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/appfabric/go.sum +++ b/service/appfabric/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appflow/go.mod b/service/appflow/go.mod index b8dabd9daa3..cb3d83e8722 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appflow/go.sum b/service/appflow/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appintegrations/go.mod b/service/appintegrations/go.mod index af28c661d97..b712d3ff677 100644 --- a/service/appintegrations/go.mod +++ b/service/appintegrations/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/appintegrations/go.sum +++ b/service/appintegrations/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index 51f415b81c3..9dac910eb77 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationcostprofiler/go.mod b/service/applicationcostprofiler/go.mod index 2195d19e17f..31e1b1ad25c 100644 --- a/service/applicationcostprofiler/go.mod +++ b/service/applicationcostprofiler/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/applicationcostprofiler/go.sum +++ b/service/applicationcostprofiler/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index 0e7042e62de..2125c9f7557 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index e52ca0f87d3..abff83570c2 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index c2bb28d8a8d..4a052fa67bf 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apprunner/go.mod b/service/apprunner/go.mod index d9352ed0a56..4fa206be455 100644 --- a/service/apprunner/go.mod +++ b/service/apprunner/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/apprunner/go.sum +++ b/service/apprunner/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appstream/go.mod b/service/appstream/go.mod index d5a4ecb2cdb..c28cbfda4f5 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/appstream/go.sum b/service/appstream/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/appsync/go.mod b/service/appsync/go.mod index 297f0cf2225..400d8eb0e33 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appsync/go.sum b/service/appsync/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/arczonalshift/go.mod b/service/arczonalshift/go.mod index 636ee564441..d80cc56fd90 100644 --- a/service/arczonalshift/go.mod +++ b/service/arczonalshift/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/arczonalshift/go.sum b/service/arczonalshift/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/arczonalshift/go.sum +++ b/service/arczonalshift/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/athena/go.mod b/service/athena/go.mod index 8b1bac4875e..f31740f7976 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/athena/go.sum b/service/athena/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/auditmanager/go.mod b/service/auditmanager/go.mod index c8496f31389..2dfbbfff107 100644 --- a/service/auditmanager/go.mod +++ b/service/auditmanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/auditmanager/go.sum +++ b/service/auditmanager/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/autoscaling/api_op_StartInstanceRefresh.go b/service/autoscaling/api_op_StartInstanceRefresh.go index 7c9b5e69744..c59a348da0f 100644 --- a/service/autoscaling/api_op_StartInstanceRefresh.go +++ b/service/autoscaling/api_op_StartInstanceRefresh.go @@ -81,6 +81,7 @@ type StartInstanceRefreshInput struct { // can also choose to enable additional features, such as the following: // - Auto rollback // - Checkpoints + // - CloudWatch alarms // - Skip matching Preferences *types.RefreshPreferences diff --git a/service/autoscaling/deserializers.go b/service/autoscaling/deserializers.go index 8ea1fab30d6..e7d0c68b9be 100644 --- a/service/autoscaling/deserializers.go +++ b/service/autoscaling/deserializers.go @@ -7844,6 +7844,86 @@ func awsAwsquery_deserializeDocumentAlarm(v **types.Alarm, decoder smithyxml.Nod return nil } +func awsAwsquery_deserializeDocumentAlarmList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("member", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentAlarmListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsAwsquery_deserializeDocumentAlarms(v *[]types.Alarm, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7912,6 +7992,48 @@ func awsAwsquery_deserializeDocumentAlarmsUnwrapped(v *[]types.Alarm, decoder sm *v = sv return nil } +func awsAwsquery_deserializeDocumentAlarmSpecification(v **types.AlarmSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AlarmSpecification + if *v == nil { + sv = &types.AlarmSpecification{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Alarms", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentAlarmList(&sv.Alarms, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentAllowedInstanceTypes(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15027,6 +15149,12 @@ func awsAwsquery_deserializeDocumentRefreshPreferences(v **types.RefreshPreferen originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("AlarmSpecification", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentAlarmSpecification(&sv.AlarmSpecification, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("AutoRollback", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index 60c3e521e2b..644017137d2 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/autoscaling/serializers.go b/service/autoscaling/serializers.go index ee6003f88fa..1c800c9bcff 100644 --- a/service/autoscaling/serializers.go +++ b/service/autoscaling/serializers.go @@ -4222,6 +4222,30 @@ func awsAwsquery_serializeDocumentActivityIds(v []string, value query.Value) err return nil } +func awsAwsquery_serializeDocumentAlarmList(v []string, value query.Value) error { + array := value.Array("member") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsAwsquery_serializeDocumentAlarmSpecification(v *types.AlarmSpecification, value query.Value) error { + object := value.Object() + _ = object + + if v.Alarms != nil { + objectKey := object.Key("Alarms") + if err := awsAwsquery_serializeDocumentAlarmList(v.Alarms, objectKey); err != nil { + return err + } + } + + return nil +} + func awsAwsquery_serializeDocumentAllowedInstanceTypes(v []string, value query.Value) error { array := value.Array("member") @@ -5475,6 +5499,13 @@ func awsAwsquery_serializeDocumentRefreshPreferences(v *types.RefreshPreferences object := value.Object() _ = object + if v.AlarmSpecification != nil { + objectKey := object.Key("AlarmSpecification") + if err := awsAwsquery_serializeDocumentAlarmSpecification(v.AlarmSpecification, objectKey); err != nil { + return err + } + } + if v.AutoRollback != nil { objectKey := object.Key("AutoRollback") objectKey.Boolean(*v.AutoRollback) diff --git a/service/autoscaling/types/types.go b/service/autoscaling/types/types.go index 2c8509274e3..f4d0c3eafd8 100644 --- a/service/autoscaling/types/types.go +++ b/service/autoscaling/types/types.go @@ -109,6 +109,15 @@ type Alarm struct { noSmithyDocumentSerde } +// Specifies the CloudWatch alarm specification to use in an instance refresh. +type AlarmSpecification struct { + + // The names of one or more CloudWatch alarms to monitor for the instance refresh. + Alarms []string + + noSmithyDocumentSerde +} + // Describes an Auto Scaling group. type AutoScalingGroup struct { @@ -2013,15 +2022,22 @@ type ProcessType struct { // Describes the preferences for an instance refresh. type RefreshPreferences struct { + // (Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to + // identify any issues and fail the operation if an alarm threshold is met. + AlarmSpecification *AlarmSpecification + // (Optional) Indicates whether to roll back the Auto Scaling group to its - // previous configuration if the instance refresh fails. The default is false . A - // rollback is not supported in the following situations: + // previous configuration if the instance refresh fails or a CloudWatch alarm + // threshold is met. The default is false . A rollback is not supported in the + // following situations: // - There is no desired configuration specified for the instance refresh. // - The Auto Scaling group has a launch template that uses an Amazon Web // Services Systems Manager parameter instead of an AMI ID for the ImageId // property. // - The Auto Scaling group uses the launch template's $Latest or $Default // version. + // For more information, see Undo changes with a rollback (https://docs.aws.amazon.com/autoscaling/ec2/userguide/instance-refresh-rollback.html) + // in the Amazon EC2 Auto Scaling User Guide. AutoRollback *bool // (Optional) The amount of time, in seconds, to wait after a checkpoint before diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index 48f257303de..6e93365235b 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backup/go.mod b/service/backup/go.mod index 33c1f43490d..0353533d02e 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backup/go.sum b/service/backup/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupgateway/go.mod b/service/backupgateway/go.mod index 82627a13b6e..c3bc40499a0 100644 --- a/service/backupgateway/go.mod +++ b/service/backupgateway/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backupgateway/go.sum b/service/backupgateway/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/backupgateway/go.sum +++ b/service/backupgateway/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupstorage/go.mod b/service/backupstorage/go.mod index f3b5b82fb51..463b3119fab 100644 --- a/service/backupstorage/go.mod +++ b/service/backupstorage/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backupstorage/go.sum b/service/backupstorage/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/backupstorage/go.sum +++ b/service/backupstorage/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/batch/go.mod b/service/batch/go.mod index 7a5a35dc08e..63d57d9bad4 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/batch/go.sum b/service/batch/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/billingconductor/go.mod b/service/billingconductor/go.mod index b4df0b583e5..9c7602772ed 100644 --- a/service/billingconductor/go.mod +++ b/service/billingconductor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/billingconductor/go.sum b/service/billingconductor/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/billingconductor/go.sum +++ b/service/billingconductor/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/braket/go.mod b/service/braket/go.mod index a1240c34d0f..4d0d7c6e023 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/braket/go.sum b/service/braket/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/budgets/go.mod b/service/budgets/go.mod index 6cbd6baf915..044e36a08dd 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/budgets/go.sum b/service/budgets/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chime/go.mod b/service/chime/go.mod index cbe8e8a6df1..cb57ec8e4a5 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chime/go.sum b/service/chime/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkidentity/go.mod b/service/chimesdkidentity/go.mod index 21171c4113c..a959c3cf3b6 100644 --- a/service/chimesdkidentity/go.mod +++ b/service/chimesdkidentity/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkidentity/go.sum b/service/chimesdkidentity/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/chimesdkidentity/go.sum +++ b/service/chimesdkidentity/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmediapipelines/go.mod b/service/chimesdkmediapipelines/go.mod index 09f8c78755a..0c9f49a41e5 100644 --- a/service/chimesdkmediapipelines/go.mod +++ b/service/chimesdkmediapipelines/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmediapipelines/go.sum b/service/chimesdkmediapipelines/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/chimesdkmediapipelines/go.sum +++ b/service/chimesdkmediapipelines/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmeetings/go.mod b/service/chimesdkmeetings/go.mod index fe6278f287c..07421c843b4 100644 --- a/service/chimesdkmeetings/go.mod +++ b/service/chimesdkmeetings/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmeetings/go.sum b/service/chimesdkmeetings/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/chimesdkmeetings/go.sum +++ b/service/chimesdkmeetings/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmessaging/go.mod b/service/chimesdkmessaging/go.mod index 0ef12690e53..52b16e63930 100644 --- a/service/chimesdkmessaging/go.mod +++ b/service/chimesdkmessaging/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmessaging/go.sum b/service/chimesdkmessaging/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/chimesdkmessaging/go.sum +++ b/service/chimesdkmessaging/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkvoice/go.mod b/service/chimesdkvoice/go.mod index 774b68981f9..46b96fa8232 100644 --- a/service/chimesdkvoice/go.mod +++ b/service/chimesdkvoice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkvoice/go.sum b/service/chimesdkvoice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/chimesdkvoice/go.sum +++ b/service/chimesdkvoice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanrooms/api_op_BatchGetCollaborationAnalysisTemplate.go b/service/cleanrooms/api_op_BatchGetCollaborationAnalysisTemplate.go new file mode 100644 index 00000000000..69dd3b47701 --- /dev/null +++ b/service/cleanrooms/api_op_BatchGetCollaborationAnalysisTemplate.go @@ -0,0 +1,278 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves multiple analysis templates within a collaboration by their Amazon +// Resource Names (ARNs). +func (c *Client) BatchGetCollaborationAnalysisTemplate(ctx context.Context, params *BatchGetCollaborationAnalysisTemplateInput, optFns ...func(*Options)) (*BatchGetCollaborationAnalysisTemplateOutput, error) { + if params == nil { + params = &BatchGetCollaborationAnalysisTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchGetCollaborationAnalysisTemplate", params, optFns, c.addOperationBatchGetCollaborationAnalysisTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchGetCollaborationAnalysisTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchGetCollaborationAnalysisTemplateInput struct { + + // The Amazon Resource Name (ARN) associated with the analysis template within a + // collaboration. + // + // This member is required. + AnalysisTemplateArns []string + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. + // + // This member is required. + CollaborationIdentifier *string + + noSmithyDocumentSerde +} + +type BatchGetCollaborationAnalysisTemplateOutput struct { + + // The retrieved list of analysis templates within a collaboration. + // + // This member is required. + CollaborationAnalysisTemplates []types.CollaborationAnalysisTemplate + + // Error reasons for collaboration analysis templates that could not be retrieved. + // One error is returned for every collaboration analysis template that could not + // be retrieved. + // + // This member is required. + Errors []types.BatchGetCollaborationAnalysisTemplateError + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchGetCollaborationAnalysisTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchGetCollaborationAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchGetCollaborationAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addBatchGetCollaborationAnalysisTemplateResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpBatchGetCollaborationAnalysisTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchGetCollaborationAnalysisTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opBatchGetCollaborationAnalysisTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "BatchGetCollaborationAnalysisTemplate", + } +} + +type opBatchGetCollaborationAnalysisTemplateResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opBatchGetCollaborationAnalysisTemplateResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opBatchGetCollaborationAnalysisTemplateResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addBatchGetCollaborationAnalysisTemplateResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opBatchGetCollaborationAnalysisTemplateResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/api_op_CreateAnalysisTemplate.go b/service/cleanrooms/api_op_CreateAnalysisTemplate.go new file mode 100644 index 00000000000..5086ee7bb14 --- /dev/null +++ b/service/cleanrooms/api_op_CreateAnalysisTemplate.go @@ -0,0 +1,291 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new analysis template. +func (c *Client) CreateAnalysisTemplate(ctx context.Context, params *CreateAnalysisTemplateInput, optFns ...func(*Options)) (*CreateAnalysisTemplateOutput, error) { + if params == nil { + params = &CreateAnalysisTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateAnalysisTemplate", params, optFns, c.addOperationCreateAnalysisTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateAnalysisTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateAnalysisTemplateInput struct { + + // The format of the analysis template. + // + // This member is required. + Format types.AnalysisFormat + + // The identifier for a membership resource. + // + // This member is required. + MembershipIdentifier *string + + // The name of the analysis template. + // + // This member is required. + Name *string + + // The information in the analysis template. Currently supports text , the query + // text for the analysis template. + // + // This member is required. + Source types.AnalysisSource + + // The parameters of the analysis template. + AnalysisParameters []types.AnalysisParameter + + // The description of the analysis template. + Description *string + + // An optional label that you can assign to a resource when you create it. Each + // tag consists of a key and an optional value, both of which you define. When you + // use tagging, you can also use tag-based access control in IAM policies to + // control access to this resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateAnalysisTemplateOutput struct { + + // The analysis template. + // + // This member is required. + AnalysisTemplate *types.AnalysisTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateAnalysisTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addCreateAnalysisTemplateResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateAnalysisTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAnalysisTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateAnalysisTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "CreateAnalysisTemplate", + } +} + +type opCreateAnalysisTemplateResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opCreateAnalysisTemplateResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opCreateAnalysisTemplateResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addCreateAnalysisTemplateResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opCreateAnalysisTemplateResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/api_op_CreateConfiguredTableAnalysisRule.go b/service/cleanrooms/api_op_CreateConfiguredTableAnalysisRule.go index 53b7023a079..e93165b6e83 100644 --- a/service/cleanrooms/api_op_CreateConfiguredTableAnalysisRule.go +++ b/service/cleanrooms/api_op_CreateConfiguredTableAnalysisRule.go @@ -40,7 +40,7 @@ type CreateConfiguredTableAnalysisRuleInput struct { // This member is required. AnalysisRulePolicy types.ConfiguredTableAnalysisRulePolicy - // The type of analysis rule. Valid values are AGGREGATION and LIST. + // The type of analysis rule. // // This member is required. AnalysisRuleType types.ConfiguredTableAnalysisRuleType diff --git a/service/cleanrooms/api_op_DeleteAnalysisTemplate.go b/service/cleanrooms/api_op_DeleteAnalysisTemplate.go new file mode 100644 index 00000000000..1917e731a7f --- /dev/null +++ b/service/cleanrooms/api_op_DeleteAnalysisTemplate.go @@ -0,0 +1,261 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an analysis template. +func (c *Client) DeleteAnalysisTemplate(ctx context.Context, params *DeleteAnalysisTemplateInput, optFns ...func(*Options)) (*DeleteAnalysisTemplateOutput, error) { + if params == nil { + params = &DeleteAnalysisTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteAnalysisTemplate", params, optFns, c.addOperationDeleteAnalysisTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteAnalysisTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteAnalysisTemplateInput struct { + + // The identifier for the analysis template resource. + // + // This member is required. + AnalysisTemplateIdentifier *string + + // The identifier for a membership resource. + // + // This member is required. + MembershipIdentifier *string + + noSmithyDocumentSerde +} + +type DeleteAnalysisTemplateOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteAnalysisTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addDeleteAnalysisTemplateResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDeleteAnalysisTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAnalysisTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteAnalysisTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "DeleteAnalysisTemplate", + } +} + +type opDeleteAnalysisTemplateResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDeleteAnalysisTemplateResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDeleteAnalysisTemplateResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDeleteAnalysisTemplateResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDeleteAnalysisTemplateResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/api_op_GetAnalysisTemplate.go b/service/cleanrooms/api_op_GetAnalysisTemplate.go new file mode 100644 index 00000000000..657e961eba6 --- /dev/null +++ b/service/cleanrooms/api_op_GetAnalysisTemplate.go @@ -0,0 +1,268 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves an analysis template. +func (c *Client) GetAnalysisTemplate(ctx context.Context, params *GetAnalysisTemplateInput, optFns ...func(*Options)) (*GetAnalysisTemplateOutput, error) { + if params == nil { + params = &GetAnalysisTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAnalysisTemplate", params, optFns, c.addOperationGetAnalysisTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAnalysisTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAnalysisTemplateInput struct { + + // The identifier for the analysis template resource. + // + // This member is required. + AnalysisTemplateIdentifier *string + + // The identifier for a membership resource. + // + // This member is required. + MembershipIdentifier *string + + noSmithyDocumentSerde +} + +type GetAnalysisTemplateOutput struct { + + // The analysis template. + // + // This member is required. + AnalysisTemplate *types.AnalysisTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetAnalysisTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addGetAnalysisTemplateResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpGetAnalysisTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAnalysisTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetAnalysisTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "GetAnalysisTemplate", + } +} + +type opGetAnalysisTemplateResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opGetAnalysisTemplateResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opGetAnalysisTemplateResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addGetAnalysisTemplateResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opGetAnalysisTemplateResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/api_op_GetCollaborationAnalysisTemplate.go b/service/cleanrooms/api_op_GetCollaborationAnalysisTemplate.go new file mode 100644 index 00000000000..23a68bb8195 --- /dev/null +++ b/service/cleanrooms/api_op_GetCollaborationAnalysisTemplate.go @@ -0,0 +1,270 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves an analysis template within a collaboration. +func (c *Client) GetCollaborationAnalysisTemplate(ctx context.Context, params *GetCollaborationAnalysisTemplateInput, optFns ...func(*Options)) (*GetCollaborationAnalysisTemplateOutput, error) { + if params == nil { + params = &GetCollaborationAnalysisTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetCollaborationAnalysisTemplate", params, optFns, c.addOperationGetCollaborationAnalysisTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetCollaborationAnalysisTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetCollaborationAnalysisTemplateInput struct { + + // The Amazon Resource Name (ARN) associated with the analysis template within a + // collaboration. + // + // This member is required. + AnalysisTemplateArn *string + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. + // + // This member is required. + CollaborationIdentifier *string + + noSmithyDocumentSerde +} + +type GetCollaborationAnalysisTemplateOutput struct { + + // The analysis template within a collaboration. + // + // This member is required. + CollaborationAnalysisTemplate *types.CollaborationAnalysisTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetCollaborationAnalysisTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCollaborationAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addGetCollaborationAnalysisTemplateResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpGetCollaborationAnalysisTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCollaborationAnalysisTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetCollaborationAnalysisTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "GetCollaborationAnalysisTemplate", + } +} + +type opGetCollaborationAnalysisTemplateResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opGetCollaborationAnalysisTemplateResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opGetCollaborationAnalysisTemplateResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addGetCollaborationAnalysisTemplateResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opGetCollaborationAnalysisTemplateResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/api_op_ListAnalysisTemplates.go b/service/cleanrooms/api_op_ListAnalysisTemplates.go new file mode 100644 index 00000000000..45ccd10cd18 --- /dev/null +++ b/service/cleanrooms/api_op_ListAnalysisTemplates.go @@ -0,0 +1,365 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists analysis templates that the caller owns. +func (c *Client) ListAnalysisTemplates(ctx context.Context, params *ListAnalysisTemplatesInput, optFns ...func(*Options)) (*ListAnalysisTemplatesOutput, error) { + if params == nil { + params = &ListAnalysisTemplatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAnalysisTemplates", params, optFns, c.addOperationListAnalysisTemplatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAnalysisTemplatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAnalysisTemplatesInput struct { + + // The identifier for a membership resource. + // + // This member is required. + MembershipIdentifier *string + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListAnalysisTemplatesOutput struct { + + // Lists analysis template metadata. + // + // This member is required. + AnalysisTemplateSummaries []types.AnalysisTemplateSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListAnalysisTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListAnalysisTemplates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAnalysisTemplates{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addListAnalysisTemplatesResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpListAnalysisTemplatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAnalysisTemplates(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListAnalysisTemplatesAPIClient is a client that implements the +// ListAnalysisTemplates operation. +type ListAnalysisTemplatesAPIClient interface { + ListAnalysisTemplates(context.Context, *ListAnalysisTemplatesInput, ...func(*Options)) (*ListAnalysisTemplatesOutput, error) +} + +var _ ListAnalysisTemplatesAPIClient = (*Client)(nil) + +// ListAnalysisTemplatesPaginatorOptions is the paginator options for +// ListAnalysisTemplates +type ListAnalysisTemplatesPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListAnalysisTemplatesPaginator is a paginator for ListAnalysisTemplates +type ListAnalysisTemplatesPaginator struct { + options ListAnalysisTemplatesPaginatorOptions + client ListAnalysisTemplatesAPIClient + params *ListAnalysisTemplatesInput + nextToken *string + firstPage bool +} + +// NewListAnalysisTemplatesPaginator returns a new ListAnalysisTemplatesPaginator +func NewListAnalysisTemplatesPaginator(client ListAnalysisTemplatesAPIClient, params *ListAnalysisTemplatesInput, optFns ...func(*ListAnalysisTemplatesPaginatorOptions)) *ListAnalysisTemplatesPaginator { + if params == nil { + params = &ListAnalysisTemplatesInput{} + } + + options := ListAnalysisTemplatesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListAnalysisTemplatesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListAnalysisTemplatesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListAnalysisTemplates page. +func (p *ListAnalysisTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAnalysisTemplatesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListAnalysisTemplates(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListAnalysisTemplates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "ListAnalysisTemplates", + } +} + +type opListAnalysisTemplatesResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opListAnalysisTemplatesResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opListAnalysisTemplatesResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addListAnalysisTemplatesResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opListAnalysisTemplatesResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/api_op_ListCollaborationAnalysisTemplates.go b/service/cleanrooms/api_op_ListCollaborationAnalysisTemplates.go new file mode 100644 index 00000000000..2d255cf7c0f --- /dev/null +++ b/service/cleanrooms/api_op_ListCollaborationAnalysisTemplates.go @@ -0,0 +1,368 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists analysis templates within a collaboration. +func (c *Client) ListCollaborationAnalysisTemplates(ctx context.Context, params *ListCollaborationAnalysisTemplatesInput, optFns ...func(*Options)) (*ListCollaborationAnalysisTemplatesOutput, error) { + if params == nil { + params = &ListCollaborationAnalysisTemplatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListCollaborationAnalysisTemplates", params, optFns, c.addOperationListCollaborationAnalysisTemplatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListCollaborationAnalysisTemplatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListCollaborationAnalysisTemplatesInput struct { + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. + // + // This member is required. + CollaborationIdentifier *string + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListCollaborationAnalysisTemplatesOutput struct { + + // The metadata of the analysis template within a collaboration. + // + // This member is required. + CollaborationAnalysisTemplateSummaries []types.CollaborationAnalysisTemplateSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListCollaborationAnalysisTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListCollaborationAnalysisTemplates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCollaborationAnalysisTemplates{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addListCollaborationAnalysisTemplatesResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpListCollaborationAnalysisTemplatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCollaborationAnalysisTemplates(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListCollaborationAnalysisTemplatesAPIClient is a client that implements the +// ListCollaborationAnalysisTemplates operation. +type ListCollaborationAnalysisTemplatesAPIClient interface { + ListCollaborationAnalysisTemplates(context.Context, *ListCollaborationAnalysisTemplatesInput, ...func(*Options)) (*ListCollaborationAnalysisTemplatesOutput, error) +} + +var _ ListCollaborationAnalysisTemplatesAPIClient = (*Client)(nil) + +// ListCollaborationAnalysisTemplatesPaginatorOptions is the paginator options for +// ListCollaborationAnalysisTemplates +type ListCollaborationAnalysisTemplatesPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListCollaborationAnalysisTemplatesPaginator is a paginator for +// ListCollaborationAnalysisTemplates +type ListCollaborationAnalysisTemplatesPaginator struct { + options ListCollaborationAnalysisTemplatesPaginatorOptions + client ListCollaborationAnalysisTemplatesAPIClient + params *ListCollaborationAnalysisTemplatesInput + nextToken *string + firstPage bool +} + +// NewListCollaborationAnalysisTemplatesPaginator returns a new +// ListCollaborationAnalysisTemplatesPaginator +func NewListCollaborationAnalysisTemplatesPaginator(client ListCollaborationAnalysisTemplatesAPIClient, params *ListCollaborationAnalysisTemplatesInput, optFns ...func(*ListCollaborationAnalysisTemplatesPaginatorOptions)) *ListCollaborationAnalysisTemplatesPaginator { + if params == nil { + params = &ListCollaborationAnalysisTemplatesInput{} + } + + options := ListCollaborationAnalysisTemplatesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListCollaborationAnalysisTemplatesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListCollaborationAnalysisTemplatesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListCollaborationAnalysisTemplates page. +func (p *ListCollaborationAnalysisTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCollaborationAnalysisTemplatesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListCollaborationAnalysisTemplates(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListCollaborationAnalysisTemplates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "ListCollaborationAnalysisTemplates", + } +} + +type opListCollaborationAnalysisTemplatesResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opListCollaborationAnalysisTemplatesResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opListCollaborationAnalysisTemplatesResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addListCollaborationAnalysisTemplatesResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opListCollaborationAnalysisTemplatesResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/api_op_UpdateAnalysisTemplate.go b/service/cleanrooms/api_op_UpdateAnalysisTemplate.go new file mode 100644 index 00000000000..968893d6987 --- /dev/null +++ b/service/cleanrooms/api_op_UpdateAnalysisTemplate.go @@ -0,0 +1,271 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the analysis template metadata. +func (c *Client) UpdateAnalysisTemplate(ctx context.Context, params *UpdateAnalysisTemplateInput, optFns ...func(*Options)) (*UpdateAnalysisTemplateOutput, error) { + if params == nil { + params = &UpdateAnalysisTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateAnalysisTemplate", params, optFns, c.addOperationUpdateAnalysisTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateAnalysisTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateAnalysisTemplateInput struct { + + // The identifier for the analysis template resource. + // + // This member is required. + AnalysisTemplateIdentifier *string + + // The identifier for a membership resource. + // + // This member is required. + MembershipIdentifier *string + + // A new description for the analysis template. + Description *string + + noSmithyDocumentSerde +} + +type UpdateAnalysisTemplateOutput struct { + + // The analysis template. + // + // This member is required. + AnalysisTemplate *types.AnalysisTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateAnalysisTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateAnalysisTemplate{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addUpdateAnalysisTemplateResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateAnalysisTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAnalysisTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateAnalysisTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cleanrooms", + OperationName: "UpdateAnalysisTemplate", + } +} + +type opUpdateAnalysisTemplateResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opUpdateAnalysisTemplateResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opUpdateAnalysisTemplateResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "cleanrooms" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "cleanrooms" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("cleanrooms") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addUpdateAnalysisTemplateResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opUpdateAnalysisTemplateResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/cleanrooms/deserializers.go b/service/cleanrooms/deserializers.go index 0255bcf3be1..1ff1aff5d15 100644 --- a/service/cleanrooms/deserializers.go +++ b/service/cleanrooms/deserializers.go @@ -20,14 +20,14 @@ import ( "strings" ) -type awsRestjson1_deserializeOpBatchGetSchema struct { +type awsRestjson1_deserializeOpBatchGetCollaborationAnalysisTemplate struct { } -func (*awsRestjson1_deserializeOpBatchGetSchema) ID() string { +func (*awsRestjson1_deserializeOpBatchGetCollaborationAnalysisTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpBatchGetSchema) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpBatchGetCollaborationAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -41,9 +41,9 @@ func (m *awsRestjson1_deserializeOpBatchGetSchema) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorBatchGetSchema(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorBatchGetCollaborationAnalysisTemplate(response, &metadata) } - output := &BatchGetSchemaOutput{} + output := &BatchGetCollaborationAnalysisTemplateOutput{} out.Result = output var buff [1024]byte @@ -64,7 +64,7 @@ func (m *awsRestjson1_deserializeOpBatchGetSchema) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentBatchGetSchemaOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentBatchGetCollaborationAnalysisTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -77,7 +77,7 @@ func (m *awsRestjson1_deserializeOpBatchGetSchema) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorBatchGetSchema(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorBatchGetCollaborationAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -143,7 +143,7 @@ func awsRestjson1_deserializeOpErrorBatchGetSchema(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentBatchGetSchemaOutput(v **BatchGetSchemaOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentBatchGetCollaborationAnalysisTemplateOutput(v **BatchGetCollaborationAnalysisTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -156,22 +156,22 @@ func awsRestjson1_deserializeOpDocumentBatchGetSchemaOutput(v **BatchGetSchemaOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *BatchGetSchemaOutput + var sv *BatchGetCollaborationAnalysisTemplateOutput if *v == nil { - sv = &BatchGetSchemaOutput{} + sv = &BatchGetCollaborationAnalysisTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "errors": - if err := awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(&sv.Errors, value); err != nil { + case "collaborationAnalysisTemplates": + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateList(&sv.CollaborationAnalysisTemplates, value); err != nil { return err } - case "schemas": - if err := awsRestjson1_deserializeDocumentSchemaList(&sv.Schemas, value); err != nil { + case "errors": + if err := awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateErrorList(&sv.Errors, value); err != nil { return err } @@ -184,14 +184,14 @@ func awsRestjson1_deserializeOpDocumentBatchGetSchemaOutput(v **BatchGetSchemaOu return nil } -type awsRestjson1_deserializeOpCreateCollaboration struct { +type awsRestjson1_deserializeOpBatchGetSchema struct { } -func (*awsRestjson1_deserializeOpCreateCollaboration) ID() string { +func (*awsRestjson1_deserializeOpBatchGetSchema) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpBatchGetSchema) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -205,9 +205,9 @@ func (m *awsRestjson1_deserializeOpCreateCollaboration) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateCollaboration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorBatchGetSchema(response, &metadata) } - output := &CreateCollaborationOutput{} + output := &BatchGetSchemaOutput{} out.Result = output var buff [1024]byte @@ -228,7 +228,7 @@ func (m *awsRestjson1_deserializeOpCreateCollaboration) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateCollaborationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentBatchGetSchemaOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -241,7 +241,7 @@ func (m *awsRestjson1_deserializeOpCreateCollaboration) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorBatchGetSchema(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -288,8 +288,8 @@ func awsRestjson1_deserializeOpErrorCreateCollaboration(response *smithyhttp.Res case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -307,7 +307,7 @@ func awsRestjson1_deserializeOpErrorCreateCollaboration(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentCreateCollaborationOutput(v **CreateCollaborationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentBatchGetSchemaOutput(v **BatchGetSchemaOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -320,17 +320,22 @@ func awsRestjson1_deserializeOpDocumentCreateCollaborationOutput(v **CreateColla return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateCollaborationOutput + var sv *BatchGetSchemaOutput if *v == nil { - sv = &CreateCollaborationOutput{} + sv = &BatchGetSchemaOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "collaboration": - if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { + case "errors": + if err := awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(&sv.Errors, value); err != nil { + return err + } + + case "schemas": + if err := awsRestjson1_deserializeDocumentSchemaList(&sv.Schemas, value); err != nil { return err } @@ -343,14 +348,14 @@ func awsRestjson1_deserializeOpDocumentCreateCollaborationOutput(v **CreateColla return nil } -type awsRestjson1_deserializeOpCreateConfiguredTable struct { +type awsRestjson1_deserializeOpCreateAnalysisTemplate struct { } -func (*awsRestjson1_deserializeOpCreateConfiguredTable) ID() string { +func (*awsRestjson1_deserializeOpCreateAnalysisTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -364,9 +369,9 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTable) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredTable(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateAnalysisTemplate(response, &metadata) } - output := &CreateConfiguredTableOutput{} + output := &CreateAnalysisTemplateOutput{} out.Result = output var buff [1024]byte @@ -387,7 +392,7 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTable) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateConfiguredTableOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateAnalysisTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -400,7 +405,7 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTable) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -472,7 +477,7 @@ func awsRestjson1_deserializeOpErrorCreateConfiguredTable(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentCreateConfiguredTableOutput(v **CreateConfiguredTableOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateAnalysisTemplateOutput(v **CreateAnalysisTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -485,17 +490,17 @@ func awsRestjson1_deserializeOpDocumentCreateConfiguredTableOutput(v **CreateCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateConfiguredTableOutput + var sv *CreateAnalysisTemplateOutput if *v == nil { - sv = &CreateConfiguredTableOutput{} + sv = &CreateAnalysisTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTable": - if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { + case "analysisTemplate": + if err := awsRestjson1_deserializeDocumentAnalysisTemplate(&sv.AnalysisTemplate, value); err != nil { return err } @@ -508,14 +513,14 @@ func awsRestjson1_deserializeOpDocumentCreateConfiguredTableOutput(v **CreateCon return nil } -type awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule struct { +type awsRestjson1_deserializeOpCreateCollaboration struct { } -func (*awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpCreateCollaboration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -529,9 +534,9 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredTableAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateCollaboration(response, &metadata) } - output := &CreateConfiguredTableAnalysisRuleOutput{} + output := &CreateCollaborationOutput{} out.Result = output var buff [1024]byte @@ -552,7 +557,7 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule) HandleDese return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateConfiguredTableAnalysisRuleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateCollaborationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -565,7 +570,7 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule) HandleDese return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -609,14 +614,11 @@ func awsRestjson1_deserializeOpErrorCreateConfiguredTableAnalysisRule(response * case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -634,7 +636,7 @@ func awsRestjson1_deserializeOpErrorCreateConfiguredTableAnalysisRule(response * } } -func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAnalysisRuleOutput(v **CreateConfiguredTableAnalysisRuleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateCollaborationOutput(v **CreateCollaborationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -647,17 +649,17 @@ func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAnalysisRuleOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateConfiguredTableAnalysisRuleOutput + var sv *CreateCollaborationOutput if *v == nil { - sv = &CreateConfiguredTableAnalysisRuleOutput{} + sv = &CreateCollaborationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisRule": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { + case "collaboration": + if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { return err } @@ -670,14 +672,14 @@ func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAnalysisRuleOutput(v return nil } -type awsRestjson1_deserializeOpCreateConfiguredTableAssociation struct { +type awsRestjson1_deserializeOpCreateConfiguredTable struct { } -func (*awsRestjson1_deserializeOpCreateConfiguredTableAssociation) ID() string { +func (*awsRestjson1_deserializeOpCreateConfiguredTable) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -691,9 +693,9 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTableAssociation) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredTableAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredTable(response, &metadata) } - output := &CreateConfiguredTableAssociationOutput{} + output := &CreateConfiguredTableOutput{} out.Result = output var buff [1024]byte @@ -714,7 +716,7 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTableAssociation) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateConfiguredTableAssociationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateConfiguredTableOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -727,7 +729,7 @@ func (m *awsRestjson1_deserializeOpCreateConfiguredTableAssociation) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -799,7 +801,7 @@ func awsRestjson1_deserializeOpErrorCreateConfiguredTableAssociation(response *s } } -func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAssociationOutput(v **CreateConfiguredTableAssociationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateConfiguredTableOutput(v **CreateConfiguredTableOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -812,17 +814,17 @@ func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAssociationOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateConfiguredTableAssociationOutput + var sv *CreateConfiguredTableOutput if *v == nil { - sv = &CreateConfiguredTableAssociationOutput{} + sv = &CreateConfiguredTableOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableAssociation": - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { + case "configuredTable": + if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { return err } @@ -835,14 +837,14 @@ func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAssociationOutput(v return nil } -type awsRestjson1_deserializeOpCreateMembership struct { +type awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule struct { } -func (*awsRestjson1_deserializeOpCreateMembership) ID() string { +func (*awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -856,9 +858,9 @@ func (m *awsRestjson1_deserializeOpCreateMembership) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredTableAnalysisRule(response, &metadata) } - output := &CreateMembershipOutput{} + output := &CreateConfiguredTableAnalysisRuleOutput{} out.Result = output var buff [1024]byte @@ -879,7 +881,7 @@ func (m *awsRestjson1_deserializeOpCreateMembership) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateConfiguredTableAnalysisRuleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -892,7 +894,7 @@ func (m *awsRestjson1_deserializeOpCreateMembership) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -945,9 +947,6 @@ func awsRestjson1_deserializeOpErrorCreateMembership(response *smithyhttp.Respon case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -964,7 +963,7 @@ func awsRestjson1_deserializeOpErrorCreateMembership(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentCreateMembershipOutput(v **CreateMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAnalysisRuleOutput(v **CreateConfiguredTableAnalysisRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -977,17 +976,17 @@ func awsRestjson1_deserializeOpDocumentCreateMembershipOutput(v **CreateMembersh return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateMembershipOutput + var sv *CreateConfiguredTableAnalysisRuleOutput if *v == nil { - sv = &CreateMembershipOutput{} + sv = &CreateConfiguredTableAnalysisRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "membership": - if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + case "analysisRule": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { return err } @@ -1000,14 +999,14 @@ func awsRestjson1_deserializeOpDocumentCreateMembershipOutput(v **CreateMembersh return nil } -type awsRestjson1_deserializeOpDeleteCollaboration struct { +type awsRestjson1_deserializeOpCreateConfiguredTableAssociation struct { } -func (*awsRestjson1_deserializeOpDeleteCollaboration) ID() string { +func (*awsRestjson1_deserializeOpCreateConfiguredTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1021,15 +1020,43 @@ func (m *awsRestjson1_deserializeOpDeleteCollaboration) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteCollaboration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredTableAssociation(response, &metadata) } - output := &DeleteCollaborationOutput{} + output := &CreateConfiguredTableAssociationOutput{} out.Result = output + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateConfiguredTableAssociationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1073,9 +1100,18 @@ func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -1092,14 +1128,50 @@ func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Res } } -type awsRestjson1_deserializeOpDeleteConfiguredTable struct { +func awsRestjson1_deserializeOpDocumentCreateConfiguredTableAssociationOutput(v **CreateConfiguredTableAssociationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateConfiguredTableAssociationOutput + if *v == nil { + sv = &CreateConfiguredTableAssociationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredTableAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpDeleteConfiguredTable) ID() string { +type awsRestjson1_deserializeOpCreateMembership struct { +} + +func (*awsRestjson1_deserializeOpCreateMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1113,33 +1185,61 @@ func (m *awsRestjson1_deserializeOpDeleteConfiguredTable) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateMembership(response, &metadata) } - output := &DeleteConfiguredTableOutput{} + output := &CreateMembershipOutput{} out.Result = output - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - if len(headerCode) != 0 { - errorCode = restjson.SanitizeErrorCode(headerCode) - } - var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateMembershipOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() jsonCode, message, err := restjson.GetErrorInfo(decoder) @@ -1174,6 +1274,9 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.R case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -1190,14 +1293,50 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.R } } -type awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule struct { +func awsRestjson1_deserializeOpDocumentCreateMembershipOutput(v **CreateMembershipOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateMembershipOutput + if *v == nil { + sv = &CreateMembershipOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "membership": + if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) ID() string { +type awsRestjson1_deserializeOpDeleteAnalysisTemplate struct { +} + +func (*awsRestjson1_deserializeOpDeleteAnalysisTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1211,15 +1350,15 @@ func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(response, &metadata) } - output := &DeleteConfiguredTableAnalysisRuleOutput{} + output := &DeleteAnalysisTemplateOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1263,9 +1402,6 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response * case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) @@ -1288,14 +1424,14 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response * } } -type awsRestjson1_deserializeOpDeleteConfiguredTableAssociation struct { +type awsRestjson1_deserializeOpDeleteCollaboration struct { } -func (*awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) ID() string { +func (*awsRestjson1_deserializeOpDeleteCollaboration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1309,15 +1445,15 @@ func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteCollaboration(response, &metadata) } - output := &DeleteConfiguredTableAssociationOutput{} + output := &DeleteCollaborationOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1361,15 +1497,9 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response *s case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -1386,14 +1516,14 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response *s } } -type awsRestjson1_deserializeOpDeleteMember struct { +type awsRestjson1_deserializeOpDeleteConfiguredTable struct { } -func (*awsRestjson1_deserializeOpDeleteMember) ID() string { +func (*awsRestjson1_deserializeOpDeleteConfiguredTable) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1407,15 +1537,15 @@ func (m *awsRestjson1_deserializeOpDeleteMember) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteMember(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response, &metadata) } - output := &DeleteMemberOutput{} + output := &DeleteConfiguredTableOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteMember(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1484,14 +1614,14 @@ func awsRestjson1_deserializeOpErrorDeleteMember(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpDeleteMembership struct { +type awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule struct { } -func (*awsRestjson1_deserializeOpDeleteMembership) ID() string { +func (*awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1505,15 +1635,15 @@ func (m *awsRestjson1_deserializeOpDeleteMembership) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response, &metadata) } - output := &DeleteMembershipOutput{} + output := &DeleteConfiguredTableAnalysisRuleOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1582,14 +1712,14 @@ func awsRestjson1_deserializeOpErrorDeleteMembership(response *smithyhttp.Respon } } -type awsRestjson1_deserializeOpGetCollaboration struct { +type awsRestjson1_deserializeOpDeleteConfiguredTableAssociation struct { } -func (*awsRestjson1_deserializeOpGetCollaboration) ID() string { +func (*awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1603,43 +1733,15 @@ func (m *awsRestjson1_deserializeOpGetCollaboration) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetCollaboration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response, &metadata) } - output := &GetCollaborationOutput{} + output := &DeleteConfiguredTableAssociationOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetCollaborationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1683,9 +1785,15 @@ func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -1702,50 +1810,14 @@ func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentGetCollaborationOutput(v **GetCollaborationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetCollaborationOutput - if *v == nil { - sv = &GetCollaborationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "collaboration": - if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetConfiguredTable struct { +type awsRestjson1_deserializeOpDeleteMember struct { } -func (*awsRestjson1_deserializeOpGetConfiguredTable) ID() string { +func (*awsRestjson1_deserializeOpDeleteMember) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1759,43 +1831,113 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTable(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteMember(response, &metadata) } - output := &GetConfiguredTableOutput{} + output := &DeleteMemberOutput{} out.Result = output + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteMember(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - + body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err + return err } - err = awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteMembership struct { +} + +func (*awsRestjson1_deserializeOpDeleteMembership) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteMembership(response, &metadata) } + output := &DeleteMembershipOutput{} + out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1839,6 +1981,9 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTable(response *smithyhttp.Resp case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) @@ -1861,50 +2006,14 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTable(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(v **GetConfiguredTableOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetConfiguredTableOutput - if *v == nil { - sv = &GetConfiguredTableOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "configuredTable": - if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule struct { +type awsRestjson1_deserializeOpGetAnalysisTemplate struct { } -func (*awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpGetAnalysisTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1918,9 +2027,9 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetAnalysisTemplate(response, &metadata) } - output := &GetConfiguredTableAnalysisRuleOutput{} + output := &GetAnalysisTemplateOutput{} out.Result = output var buff [1024]byte @@ -1941,7 +2050,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeseria return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetAnalysisTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1954,7 +2063,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeseria return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2020,7 +2129,7 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response *smi } } -func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v **GetConfiguredTableAnalysisRuleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetAnalysisTemplateOutput(v **GetAnalysisTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2033,17 +2142,17 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetConfiguredTableAnalysisRuleOutput + var sv *GetAnalysisTemplateOutput if *v == nil { - sv = &GetConfiguredTableAnalysisRuleOutput{} + sv = &GetAnalysisTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisRule": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { + case "analysisTemplate": + if err := awsRestjson1_deserializeDocumentAnalysisTemplate(&sv.AnalysisTemplate, value); err != nil { return err } @@ -2056,14 +2165,14 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v ** return nil } -type awsRestjson1_deserializeOpGetConfiguredTableAssociation struct { +type awsRestjson1_deserializeOpGetCollaboration struct { } -func (*awsRestjson1_deserializeOpGetConfiguredTableAssociation) ID() string { +func (*awsRestjson1_deserializeOpGetCollaboration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2077,9 +2186,9 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCollaboration(response, &metadata) } - output := &GetConfiguredTableAssociationOutput{} + output := &GetCollaborationOutput{} out.Result = output var buff [1024]byte @@ -2100,7 +2209,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserial return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCollaborationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2113,7 +2222,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserial return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2160,9 +2269,6 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response *smit case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -2179,7 +2285,7 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response *smit } } -func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **GetConfiguredTableAssociationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCollaborationOutput(v **GetCollaborationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2192,17 +2298,17 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **G return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetConfiguredTableAssociationOutput + var sv *GetCollaborationOutput if *v == nil { - sv = &GetConfiguredTableAssociationOutput{} + sv = &GetCollaborationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableAssociation": - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { + case "collaboration": + if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { return err } @@ -2215,14 +2321,14 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **G return nil } -type awsRestjson1_deserializeOpGetMembership struct { +type awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate struct { } -func (*awsRestjson1_deserializeOpGetMembership) ID() string { +func (*awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2236,9 +2342,9 @@ func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCollaborationAnalysisTemplate(response, &metadata) } - output := &GetMembershipOutput{} + output := &GetCollaborationAnalysisTemplateOutput{} out.Result = output var buff [1024]byte @@ -2259,7 +2365,7 @@ func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCollaborationAnalysisTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2272,7 +2378,7 @@ func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCollaborationAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2338,7 +2444,7 @@ func awsRestjson1_deserializeOpErrorGetMembership(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCollaborationAnalysisTemplateOutput(v **GetCollaborationAnalysisTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2351,17 +2457,17 @@ func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetMembershipOutput + var sv *GetCollaborationAnalysisTemplateOutput if *v == nil { - sv = &GetMembershipOutput{} + sv = &GetCollaborationAnalysisTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "membership": - if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + case "collaborationAnalysisTemplate": + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(&sv.CollaborationAnalysisTemplate, value); err != nil { return err } @@ -2374,14 +2480,14 @@ func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutp return nil } -type awsRestjson1_deserializeOpGetProtectedQuery struct { +type awsRestjson1_deserializeOpGetConfiguredTable struct { } -func (*awsRestjson1_deserializeOpGetProtectedQuery) ID() string { +func (*awsRestjson1_deserializeOpGetConfiguredTable) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2395,9 +2501,9 @@ func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetProtectedQuery(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTable(response, &metadata) } - output := &GetProtectedQueryOutput{} + output := &GetConfiguredTableOutput{} out.Result = output var buff [1024]byte @@ -2418,7 +2524,7 @@ func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2431,7 +2537,7 @@ func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2497,7 +2603,7 @@ func awsRestjson1_deserializeOpErrorGetProtectedQuery(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQueryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(v **GetConfiguredTableOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2510,17 +2616,17 @@ func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetProtectedQueryOutput + var sv *GetConfiguredTableOutput if *v == nil { - sv = &GetProtectedQueryOutput{} + sv = &GetConfiguredTableOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "protectedQuery": - if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + case "configuredTable": + if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { return err } @@ -2533,14 +2639,14 @@ func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQ return nil } -type awsRestjson1_deserializeOpGetSchema struct { +type awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule struct { } -func (*awsRestjson1_deserializeOpGetSchema) ID() string { +func (*awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2554,9 +2660,9 @@ func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSchema(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response, &metadata) } - output := &GetSchemaOutput{} + output := &GetConfiguredTableAnalysisRuleOutput{} out.Result = output var buff [1024]byte @@ -2577,7 +2683,7 @@ func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSchemaOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2590,7 +2696,7 @@ func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSchema(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2656,7 +2762,7 @@ func awsRestjson1_deserializeOpErrorGetSchema(response *smithyhttp.Response, met } } -func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v **GetConfiguredTableAnalysisRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2669,17 +2775,17 @@ func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSchemaOutput + var sv *GetConfiguredTableAnalysisRuleOutput if *v == nil { - sv = &GetSchemaOutput{} + sv = &GetConfiguredTableAnalysisRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "schema": - if err := awsRestjson1_deserializeDocumentSchema(&sv.Schema, value); err != nil { + case "analysisRule": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { return err } @@ -2692,14 +2798,14 @@ func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, valu return nil } -type awsRestjson1_deserializeOpGetSchemaAnalysisRule struct { +type awsRestjson1_deserializeOpGetConfiguredTableAssociation struct { } -func (*awsRestjson1_deserializeOpGetSchemaAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpGetConfiguredTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2713,9 +2819,9 @@ func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response, &metadata) } - output := &GetSchemaAnalysisRuleOutput{} + output := &GetConfiguredTableAssociationOutput{} out.Result = output var buff [1024]byte @@ -2736,7 +2842,7 @@ func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2749,7 +2855,7 @@ func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2815,7 +2921,7 @@ func awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchemaAnalysisRuleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **GetConfiguredTableAssociationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2828,17 +2934,17 @@ func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchema return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSchemaAnalysisRuleOutput + var sv *GetConfiguredTableAssociationOutput if *v == nil { - sv = &GetSchemaAnalysisRuleOutput{} + sv = &GetConfiguredTableAssociationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisRule": - if err := awsRestjson1_deserializeDocumentAnalysisRule(&sv.AnalysisRule, value); err != nil { + case "configuredTableAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { return err } @@ -2851,14 +2957,14 @@ func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchema return nil } -type awsRestjson1_deserializeOpListCollaborations struct { +type awsRestjson1_deserializeOpGetMembership struct { } -func (*awsRestjson1_deserializeOpListCollaborations) ID() string { +func (*awsRestjson1_deserializeOpGetMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2872,9 +2978,9 @@ func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListCollaborations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetMembership(response, &metadata) } - output := &ListCollaborationsOutput{} + output := &GetMembershipOutput{} out.Result = output var buff [1024]byte @@ -2895,7 +3001,7 @@ func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListCollaborationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetMembershipOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2908,7 +3014,7 @@ func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2955,6 +3061,9 @@ func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Resp case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -2971,7 +3080,7 @@ func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollaborationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2984,29 +3093,20 @@ func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollabor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCollaborationsOutput + var sv *GetMembershipOutput if *v == nil { - sv = &ListCollaborationsOutput{} + sv = &GetMembershipOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "collaborationList": - if err := awsRestjson1_deserializeDocumentCollaborationSummaryList(&sv.CollaborationList, value); err != nil { + case "membership": + if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { return err } - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - default: _, _ = key, value @@ -3016,14 +3116,14 @@ func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollabor return nil } -type awsRestjson1_deserializeOpListConfiguredTableAssociations struct { +type awsRestjson1_deserializeOpGetProtectedQuery struct { } -func (*awsRestjson1_deserializeOpListConfiguredTableAssociations) ID() string { +func (*awsRestjson1_deserializeOpGetProtectedQuery) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3037,9 +3137,9 @@ func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetProtectedQuery(response, &metadata) } - output := &ListConfiguredTableAssociationsOutput{} + output := &GetProtectedQueryOutput{} out.Result = output var buff [1024]byte @@ -3060,7 +3160,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeseri return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3073,7 +3173,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeseri return out, metadata, err } -func awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3139,7 +3239,7 @@ func awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response *sm } } -func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v **ListConfiguredTableAssociationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQueryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3152,29 +3252,20 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v * return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListConfiguredTableAssociationsOutput + var sv *GetProtectedQueryOutput if *v == nil { - sv = &ListConfiguredTableAssociationsOutput{} + sv = &GetProtectedQueryOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableAssociationSummaries": - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(&sv.ConfiguredTableAssociationSummaries, value); err != nil { + case "protectedQuery": + if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { return err } - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - default: _, _ = key, value @@ -3184,14 +3275,14 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v * return nil } -type awsRestjson1_deserializeOpListConfiguredTables struct { +type awsRestjson1_deserializeOpGetSchema struct { } -func (*awsRestjson1_deserializeOpListConfiguredTables) ID() string { +func (*awsRestjson1_deserializeOpGetSchema) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3205,9 +3296,9 @@ func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTables(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSchema(response, &metadata) } - output := &ListConfiguredTablesOutput{} + output := &GetSchemaOutput{} out.Result = output var buff [1024]byte @@ -3228,7 +3319,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSchemaOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3241,7 +3332,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListConfiguredTables(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSchema(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3288,6 +3379,9 @@ func awsRestjson1_deserializeOpErrorListConfiguredTables(response *smithyhttp.Re case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -3304,7 +3398,7 @@ func awsRestjson1_deserializeOpErrorListConfiguredTables(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfiguredTablesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3317,29 +3411,20 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfig return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListConfiguredTablesOutput + var sv *GetSchemaOutput if *v == nil { - sv = &ListConfiguredTablesOutput{} + sv = &GetSchemaOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableSummaries": - if err := awsRestjson1_deserializeDocumentConfiguredTableSummaryList(&sv.ConfiguredTableSummaries, value); err != nil { + case "schema": + if err := awsRestjson1_deserializeDocumentSchema(&sv.Schema, value); err != nil { return err } - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - default: _, _ = key, value @@ -3349,14 +3434,14 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfig return nil } -type awsRestjson1_deserializeOpListMembers struct { +type awsRestjson1_deserializeOpGetSchemaAnalysisRule struct { } -func (*awsRestjson1_deserializeOpListMembers) ID() string { +func (*awsRestjson1_deserializeOpGetSchemaAnalysisRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3370,9 +3455,9 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response, &metadata) } - output := &ListMembersOutput{} + output := &GetSchemaAnalysisRuleOutput{} out.Result = output var buff [1024]byte @@ -3393,7 +3478,7 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3406,7 +3491,7 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3472,7 +3557,7 @@ func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchemaAnalysisRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3485,29 +3570,20 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListMembersOutput + var sv *GetSchemaAnalysisRuleOutput if *v == nil { - sv = &ListMembersOutput{} + sv = &GetSchemaAnalysisRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "memberSummaries": - if err := awsRestjson1_deserializeDocumentMemberSummaryList(&sv.MemberSummaries, value); err != nil { + case "analysisRule": + if err := awsRestjson1_deserializeDocumentAnalysisRule(&sv.AnalysisRule, value); err != nil { return err } - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - default: _, _ = key, value @@ -3517,14 +3593,14 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, return nil } -type awsRestjson1_deserializeOpListMemberships struct { +type awsRestjson1_deserializeOpListAnalysisTemplates struct { } -func (*awsRestjson1_deserializeOpListMemberships) ID() string { +func (*awsRestjson1_deserializeOpListAnalysisTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAnalysisTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3538,9 +3614,9 @@ func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListMemberships(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAnalysisTemplates(response, &metadata) } - output := &ListMembershipsOutput{} + output := &ListAnalysisTemplatesOutput{} out.Result = output var buff [1024]byte @@ -3561,7 +3637,7 @@ func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListMembershipsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3574,7 +3650,7 @@ func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAnalysisTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3621,6 +3697,9 @@ func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Respons case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -3637,7 +3716,7 @@ func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMembershipsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(v **ListAnalysisTemplatesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3650,17 +3729,17 @@ func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMemberships return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListMembershipsOutput + var sv *ListAnalysisTemplatesOutput if *v == nil { - sv = &ListMembershipsOutput{} + sv = &ListAnalysisTemplatesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "membershipSummaries": - if err := awsRestjson1_deserializeDocumentMembershipSummaryList(&sv.MembershipSummaries, value); err != nil { + case "analysisTemplateSummaries": + if err := awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(&sv.AnalysisTemplateSummaries, value); err != nil { return err } @@ -3682,14 +3761,14 @@ func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMemberships return nil } -type awsRestjson1_deserializeOpListProtectedQueries struct { +type awsRestjson1_deserializeOpListCollaborationAnalysisTemplates struct { } -func (*awsRestjson1_deserializeOpListProtectedQueries) ID() string { +func (*awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3703,9 +3782,9 @@ func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListProtectedQueries(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListCollaborationAnalysisTemplates(response, &metadata) } - output := &ListProtectedQueriesOutput{} + output := &ListCollaborationAnalysisTemplatesOutput{} out.Result = output var buff [1024]byte @@ -3726,7 +3805,7 @@ func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3739,7 +3818,7 @@ func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListProtectedQueries(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCollaborationAnalysisTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3805,7 +3884,7 @@ func awsRestjson1_deserializeOpErrorListProtectedQueries(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtectedQueriesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput(v **ListCollaborationAnalysisTemplatesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3818,15 +3897,20 @@ func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtec return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListProtectedQueriesOutput + var sv *ListCollaborationAnalysisTemplatesOutput if *v == nil { - sv = &ListProtectedQueriesOutput{} + sv = &ListCollaborationAnalysisTemplatesOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "collaborationAnalysisTemplateSummaries": + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(&sv.CollaborationAnalysisTemplateSummaries, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -3836,11 +3920,6 @@ func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtec sv.NextToken = ptr.String(jtv) } - case "protectedQueries": - if err := awsRestjson1_deserializeDocumentProtectedQuerySummaryList(&sv.ProtectedQueries, value); err != nil { - return err - } - default: _, _ = key, value @@ -3850,14 +3929,14 @@ func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtec return nil } -type awsRestjson1_deserializeOpListSchemas struct { +type awsRestjson1_deserializeOpListCollaborations struct { } -func (*awsRestjson1_deserializeOpListSchemas) ID() string { +func (*awsRestjson1_deserializeOpListCollaborations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3871,9 +3950,9 @@ func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListSchemas(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListCollaborations(response, &metadata) } - output := &ListSchemasOutput{} + output := &ListCollaborationsOutput{} out.Result = output var buff [1024]byte @@ -3894,7 +3973,7 @@ func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListSchemasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCollaborationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3907,7 +3986,7 @@ func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListSchemas(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3954,9 +4033,6 @@ func awsRestjson1_deserializeOpErrorListSchemas(response *smithyhttp.Response, m case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -3973,7 +4049,7 @@ func awsRestjson1_deserializeOpErrorListSchemas(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollaborationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3986,15 +4062,20 @@ func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListSchemasOutput + var sv *ListCollaborationsOutput if *v == nil { - sv = &ListSchemasOutput{} + sv = &ListCollaborationsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "collaborationList": + if err := awsRestjson1_deserializeDocumentCollaborationSummaryList(&sv.CollaborationList, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -4004,11 +4085,6 @@ func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, sv.NextToken = ptr.String(jtv) } - case "schemaSummaries": - if err := awsRestjson1_deserializeDocumentSchemaSummaryList(&sv.SchemaSummaries, value); err != nil { - return err - } - default: _, _ = key, value @@ -4018,14 +4094,14 @@ func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, return nil } -type awsRestjson1_deserializeOpListTagsForResource struct { +type awsRestjson1_deserializeOpListConfiguredTableAssociations struct { } -func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { +func (*awsRestjson1_deserializeOpListConfiguredTableAssociations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4039,9 +4115,9 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListConfiguredTableAssociationsOutput{} out.Result = output var buff [1024]byte @@ -4062,7 +4138,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4075,7 +4151,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4116,9 +4192,18 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -4132,7 +4217,7 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v **ListConfiguredTableAssociationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4145,20 +4230,29 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTagsForResourceOutput + var sv *ListConfiguredTableAssociationsOutput if *v == nil { - sv = &ListTagsForResourceOutput{} + sv = &ListConfiguredTableAssociationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "configuredTableAssociationSummaries": + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(&sv.ConfiguredTableAssociationSummaries, value); err != nil { return err } + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + default: _, _ = key, value @@ -4168,14 +4262,14 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } -type awsRestjson1_deserializeOpStartProtectedQuery struct { +type awsRestjson1_deserializeOpListConfiguredTables struct { } -func (*awsRestjson1_deserializeOpStartProtectedQuery) ID() string { +func (*awsRestjson1_deserializeOpListConfiguredTables) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4189,9 +4283,9 @@ func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartProtectedQuery(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTables(response, &metadata) } - output := &StartProtectedQueryOutput{} + output := &ListConfiguredTablesOutput{} out.Result = output var buff [1024]byte @@ -4212,7 +4306,7 @@ func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4225,7 +4319,7 @@ func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorStartProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListConfiguredTables(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4272,12 +4366,6 @@ func awsRestjson1_deserializeOpErrorStartProtectedQuery(response *smithyhttp.Res case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -4294,7 +4382,7 @@ func awsRestjson1_deserializeOpErrorStartProtectedQuery(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(v **StartProtectedQueryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfiguredTablesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4307,37 +4395,46 @@ func awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(v **StartProtec return fmt.Errorf("unexpected JSON type %v", value) } - var sv *StartProtectedQueryOutput + var sv *ListConfiguredTablesOutput if *v == nil { - sv = &StartProtectedQueryOutput{} + sv = &ListConfiguredTablesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "protectedQuery": - if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + case "configuredTableSummaries": + if err := awsRestjson1_deserializeDocumentConfiguredTableSummaryList(&sv.ConfiguredTableSummaries, value); err != nil { return err } - default: - _, _ = key, value - - } - } + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } *v = sv return nil } -type awsRestjson1_deserializeOpTagResource struct { +type awsRestjson1_deserializeOpListMembers struct { } -func (*awsRestjson1_deserializeOpTagResource) ID() string { +func (*awsRestjson1_deserializeOpListMembers) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4351,101 +4448,43 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata) } - output := &TagResourceOutput{} + output := &ListMembersOutput{} out.Result = output - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - if len(headerCode) != 0 { - errorCode = restjson.SanitizeErrorCode(headerCode) - } - var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() - jsonCode, message, err := restjson.GetErrorInfo(decoder) - if err != nil { + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(headerCode) == 0 && len(jsonCode) != 0 { - errorCode = restjson.SanitizeErrorCode(jsonCode) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpUntagResource struct { -} - -func (*awsRestjson1_deserializeOpUntagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { return out, metadata, err } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } } - output := &UntagResourceOutput{} - out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4486,9 +4525,18 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -4502,14 +4550,59 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpUpdateCollaboration struct { +func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListMembersOutput + if *v == nil { + sv = &ListMembersOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "memberSummaries": + if err := awsRestjson1_deserializeDocumentMemberSummaryList(&sv.MemberSummaries, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpUpdateCollaboration) ID() string { +type awsRestjson1_deserializeOpListMemberships struct { +} + +func (*awsRestjson1_deserializeOpListMemberships) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4523,9 +4616,9 @@ func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateCollaboration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListMemberships(response, &metadata) } - output := &UpdateCollaborationOutput{} + output := &ListMembershipsOutput{} out.Result = output var buff [1024]byte @@ -4546,7 +4639,7 @@ func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListMembershipsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4559,7 +4652,7 @@ func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4622,7 +4715,7 @@ func awsRestjson1_deserializeOpErrorUpdateCollaboration(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateCollaborationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMembershipsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4635,20 +4728,29 @@ func awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateColla return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateCollaborationOutput + var sv *ListMembershipsOutput if *v == nil { - sv = &UpdateCollaborationOutput{} + sv = &ListMembershipsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "collaboration": - if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { + case "membershipSummaries": + if err := awsRestjson1_deserializeDocumentMembershipSummaryList(&sv.MembershipSummaries, value); err != nil { return err } + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + default: _, _ = key, value @@ -4658,14 +4760,14 @@ func awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateColla return nil } -type awsRestjson1_deserializeOpUpdateConfiguredTable struct { +type awsRestjson1_deserializeOpListProtectedQueries struct { } -func (*awsRestjson1_deserializeOpUpdateConfiguredTable) ID() string { +func (*awsRestjson1_deserializeOpListProtectedQueries) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4679,9 +4781,9 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListProtectedQueries(response, &metadata) } - output := &UpdateConfiguredTableOutput{} + output := &ListProtectedQueriesOutput{} out.Result = output var buff [1024]byte @@ -4702,7 +4804,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4715,7 +4817,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListProtectedQueries(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4759,9 +4861,6 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.R case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) @@ -4784,7 +4883,7 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateConfiguredTableOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtectedQueriesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4797,17 +4896,26 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateConfiguredTableOutput + var sv *ListProtectedQueriesOutput if *v == nil { - sv = &UpdateConfiguredTableOutput{} + sv = &ListProtectedQueriesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTable": - if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "protectedQueries": + if err := awsRestjson1_deserializeDocumentProtectedQuerySummaryList(&sv.ProtectedQueries, value); err != nil { return err } @@ -4820,14 +4928,14 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateCon return nil } -type awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule struct { +type awsRestjson1_deserializeOpListSchemas struct { } -func (*awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpListSchemas) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4841,9 +4949,9 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListSchemas(response, &metadata) } - output := &UpdateConfiguredTableAnalysisRuleOutput{} + output := &ListSchemasOutput{} out.Result = output var buff [1024]byte @@ -4864,7 +4972,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDese return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListSchemasOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4877,7 +4985,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDese return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListSchemas(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4921,9 +5029,6 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response * case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) @@ -4946,7 +5051,7 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response * } } -func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(v **UpdateConfiguredTableAnalysisRuleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4959,17 +5064,26 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateConfiguredTableAnalysisRuleOutput + var sv *ListSchemasOutput if *v == nil { - sv = &UpdateConfiguredTableAnalysisRuleOutput{} + sv = &ListSchemasOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisRule": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "schemaSummaries": + if err := awsRestjson1_deserializeDocumentSchemaSummaryList(&sv.SchemaSummaries, value); err != nil { return err } @@ -4982,14 +5096,14 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(v return nil } -type awsRestjson1_deserializeOpUpdateConfiguredTableAssociation struct { +type awsRestjson1_deserializeOpListTagsForResource struct { } -func (*awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) ID() string { +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5003,9 +5117,9 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &UpdateConfiguredTableAssociationOutput{} + output := &ListTagsForResourceOutput{} out.Result = output var buff [1024]byte @@ -5026,7 +5140,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5039,7 +5153,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5080,21 +5194,9 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *s } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -5108,7 +5210,7 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *s } } -func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v **UpdateConfiguredTableAssociationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5121,17 +5223,17 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateConfiguredTableAssociationOutput + var sv *ListTagsForResourceOutput if *v == nil { - sv = &UpdateConfiguredTableAssociationOutput{} + sv = &ListTagsForResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableAssociation": - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err } @@ -5144,14 +5246,14 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v return nil } -type awsRestjson1_deserializeOpUpdateMembership struct { +type awsRestjson1_deserializeOpStartProtectedQuery struct { } -func (*awsRestjson1_deserializeOpUpdateMembership) ID() string { +func (*awsRestjson1_deserializeOpStartProtectedQuery) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5165,9 +5267,9 @@ func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorStartProtectedQuery(response, &metadata) } - output := &UpdateMembershipOutput{} + output := &StartProtectedQueryOutput{} out.Result = output var buff [1024]byte @@ -5188,7 +5290,7 @@ func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5201,7 +5303,7 @@ func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorStartProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5245,15 +5347,15 @@ func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -5270,7 +5372,7 @@ func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(v **StartProtectedQueryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5283,17 +5385,17 @@ func awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembersh return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateMembershipOutput + var sv *StartProtectedQueryOutput if *v == nil { - sv = &UpdateMembershipOutput{} + sv = &StartProtectedQueryOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "membership": - if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + case "protectedQuery": + if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { return err } @@ -5306,14 +5408,14 @@ func awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembersh return nil } -type awsRestjson1_deserializeOpUpdateProtectedQuery struct { +type awsRestjson1_deserializeOpTagResource struct { } -func (*awsRestjson1_deserializeOpUpdateProtectedQuery) ID() string { +func (*awsRestjson1_deserializeOpTagResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5327,43 +5429,15 @@ func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) } - output := &UpdateProtectedQueryOutput{} + output := &TagResourceOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5404,21 +5478,9 @@ func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -5432,52 +5494,58 @@ func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(v **UpdateProtectedQueryOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +type awsRestjson1_deserializeOpUntagResource struct { +} + +func (*awsRestjson1_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err } - shape, ok := value.(map[string]interface{}) + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var sv *UpdateProtectedQueryOutput - if *v == nil { - sv = &UpdateProtectedQueryOutput{} - } else { - sv = *v + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) } + output := &UntagResourceOutput{} + out.Result = output - for key, value := range shape { - switch key { - case "protectedQuery": - if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { - return err - } + return out, metadata, err +} - default: - _, _ = key, value +func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) - } + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) } - *v = sv - return nil -} -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -5487,29 +5555,62 @@ func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Res return err } - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + switch { + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) +type awsRestjson1_deserializeOpUpdateAnalysisTemplate struct { +} - return output +func (*awsRestjson1_deserializeOpUpdateAnalysisTemplate) ID() string { + return "OperationDeserializer" } -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} +func (m *awsRestjson1_deserializeOpUpdateAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(response, &metadata) + } + output := &UpdateAnalysisTemplateOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -5520,47 +5621,44 @@ func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Respons Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdateAnalysisTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalServerException{} +func awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) - + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5572,88 +5670,106 @@ func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - return output -} + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) -func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) +func awsRestjson1_deserializeOpDocumentUpdateAnalysisTemplateOutput(v **UpdateAnalysisTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - errorBody.Seek(0, io.SeekStart) + var sv *UpdateAnalysisTemplateOutput + if *v == nil { + sv = &UpdateAnalysisTemplateOutput{} + } else { + sv = *v + } - return output -} + for key, value := range shape { + switch key { + case "analysisTemplate": + if err := awsRestjson1_deserializeDocumentAnalysisTemplate(&sv.AnalysisTemplate, value); err != nil { + return err + } -func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ServiceQuotaExceededException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + default: + _, _ = key, value - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) +type awsRestjson1_deserializeOpUpdateCollaboration struct { +} + +func (*awsRestjson1_deserializeOpUpdateCollaboration) ID() string { + return "OperationDeserializer" +} +func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - return output -} + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateCollaboration(response, &metadata) + } + output := &UpdateCollaborationOutput{} + out.Result = output -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -5664,47 +5780,44 @@ func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} +func awsRestjson1_deserializeOpErrorUpdateCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentValidationException(&output, shape) - + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5716,11 +5829,37 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo } errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - return output + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } } -func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateCollaborationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5733,31 +5872,18 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var sv *UpdateCollaborationOutput if *v == nil { - sv = &types.AccessDeniedException{} + sv = &UpdateCollaborationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "reason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AccessDeniedExceptionReason to be of type string, got %T instead", value) - } - sv.Reason = types.AccessDeniedExceptionReason(jtv) + case "collaboration": + if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { + return err } default: @@ -5769,86 +5895,133 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentAggregateColumn(v **types.AggregateColumn, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +type awsRestjson1_deserializeOpUpdateConfiguredTable struct { +} + +func (*awsRestjson1_deserializeOpUpdateConfiguredTable) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err } - shape, ok := value.(map[string]interface{}) + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var sv *types.AggregateColumn - if *v == nil { - sv = &types.AggregateColumn{} - } else { - sv = *v + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response, &metadata) } + output := &UpdateConfiguredTableOutput{} + out.Result = output - for key, value := range shape { - switch key { - case "columnNames": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(&sv.ColumnNames, value); err != nil { - return err - } + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) - case "function": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AggregateFunctionName to be of type string, got %T instead", value) - } - sv.Function = types.AggregateFunctionName(jtv) - } + body := io.TeeReader(response.Body, ringBuffer) - default: - _, _ = key, value + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), } } - *v = sv - return nil + + return out, metadata, err } -func awsRestjson1_deserializeDocumentAggregateColumnList(v *[]types.AggregateColumn, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) +func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } - if value == nil { - return nil + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } - var cv []types.AggregateColumn - if *v == nil { - cv = []types.AggregateColumn{} - } else { - cv = *v + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message } - for _, value := range shape { - var col types.AggregateColumn - destAddr := &col - if err := awsRestjson1_deserializeDocumentAggregateColumn(&destAddr, value); err != nil { - return err + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - col = *destAddr - cv = append(cv, col) + return genericError } - *v = cv - return nil } -func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.AggregationConstraint, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateConfiguredTableOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5861,44 +6034,18 @@ func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.Aggregation return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AggregationConstraint + var sv *UpdateConfiguredTableOutput if *v == nil { - sv = &types.AggregationConstraint{} + sv = &UpdateConfiguredTableOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "columnName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) - } - sv.ColumnName = ptr.String(jtv) - } - - case "minimum": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Minimum = ptr.Int32(int32(i64)) - } - - case "type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AggregationType to be of type string, got %T instead", value) - } - sv.Type = types.AggregationType(jtv) + case "configuredTable": + if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { + return err } default: @@ -5910,172 +6057,133 @@ func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.Aggregation return nil } -func awsRestjson1_deserializeDocumentAggregationConstraints(v *[]types.AggregationConstraint, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.AggregationConstraint - if *v == nil { - cv = []types.AggregationConstraint{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.AggregationConstraint - destAddr := &col - if err := awsRestjson1_deserializeDocumentAggregationConstraint(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) +type awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule struct { +} - } - *v = cv - return nil +func (*awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) ID() string { + return "OperationDeserializer" } -func awsRestjson1_deserializeDocumentAllowedColumnList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err } - shape, ok := value.([]interface{}) + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response, &metadata) } + output := &UpdateConfiguredTableAnalysisRuleOutput{} + out.Result = output - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) - } - *v = cv - return nil -} + body := io.TeeReader(response.Body, ringBuffer) -func awsRestjson1_deserializeDocumentAnalysisRule(v **types.AnalysisRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } } - var sv *types.AnalysisRule - if *v == nil { - sv = &types.AnalysisRule{} - } else { - sv = *v + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } + errorBody := bytes.NewReader(errorBuffer.Bytes()) - for key, value := range shape { - switch key { - case "collaborationId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationIdentifier to be of type string, got %T instead", value) - } - sv.CollaborationId = ptr.String(jtv) - } + errorCode := "UnknownError" + errorMessage := errorCode - case "createTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) - } - } + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } - case "name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - case "policy": - if err := awsRestjson1_deserializeDocumentAnalysisRulePolicy(&sv.Policy, value); err != nil { - return err - } + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case "type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) - } - sv.Type = types.AnalysisRuleType(jtv) - } + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case "updateTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - } - } + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - default: - _, _ = key, value + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + } - *v = sv - return nil } -func awsRestjson1_deserializeDocumentAnalysisRuleAggregation(v **types.AnalysisRuleAggregation, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(v **UpdateConfiguredTableAnalysisRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6088,51 +6196,17 @@ func awsRestjson1_deserializeDocumentAnalysisRuleAggregation(v **types.AnalysisR return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisRuleAggregation + var sv *UpdateConfiguredTableAnalysisRuleOutput if *v == nil { - sv = &types.AnalysisRuleAggregation{} + sv = &UpdateConfiguredTableAnalysisRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "aggregateColumns": - if err := awsRestjson1_deserializeDocumentAggregateColumnList(&sv.AggregateColumns, value); err != nil { - return err - } - - case "allowedJoinOperators": - if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { - return err - } - - case "dimensionColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.DimensionColumns, value); err != nil { - return err - } - - case "joinColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { - return err - } - - case "joinRequired": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected JoinRequiredOption to be of type string, got %T instead", value) - } - sv.JoinRequired = types.JoinRequiredOption(jtv) - } - - case "outputConstraints": - if err := awsRestjson1_deserializeDocumentAggregationConstraints(&sv.OutputConstraints, value); err != nil { - return err - } - - case "scalarFunctions": - if err := awsRestjson1_deserializeDocumentScalarFunctionsList(&sv.ScalarFunctions, value); err != nil { + case "analysisRule": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { return err } @@ -6145,125 +6219,133 @@ func awsRestjson1_deserializeDocumentAnalysisRuleAggregation(v **types.AnalysisR return nil } -func awsRestjson1_deserializeDocumentAnalysisRuleColumnList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +type awsRestjson1_deserializeOpUpdateConfiguredTableAssociation struct { +} + +func (*awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err } - shape, ok := value.([]interface{}) + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response, &metadata) } + output := &UpdateConfiguredTableAssociationOutput{} + out.Result = output - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) - } - *v = cv - return nil -} + body := io.TeeReader(response.Body, ringBuffer) -func awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err } - if value == nil { - return nil + + err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } + errorBody := bytes.NewReader(errorBuffer.Bytes()) - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } - *v = cv - return nil -} -func awsRestjson1_deserializeDocumentAnalysisRuleList(v **types.AnalysisRuleList, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if value == nil { - return nil + if len(message) != 0 { + errorMessage = message } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - var sv *types.AnalysisRuleList - if *v == nil { - sv = &types.AnalysisRuleList{} - } else { - sv = *v - } + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) - for key, value := range shape { - switch key { - case "allowedJoinOperators": - if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { - return err - } + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case "joinColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { - return err - } + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case "listColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.ListColumns, value); err != nil { - return err - } + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - default: - _, _ = key, value + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + } - *v = sv - return nil } -func awsRestjson1_deserializeDocumentAnalysisRulePolicy(v *types.AnalysisRulePolicy, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v **UpdateConfiguredTableAssociationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6276,110 +6358,2070 @@ func awsRestjson1_deserializeDocumentAnalysisRulePolicy(v *types.AnalysisRulePol return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.AnalysisRulePolicy -loop: + var sv *UpdateConfiguredTableAssociationOutput + if *v == nil { + sv = &UpdateConfiguredTableAssociationOutput{} + } else { + sv = *v + } + for key, value := range shape { - if value == nil { - continue - } switch key { - case "v1": - var mv types.AnalysisRulePolicyV1 - if err := awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(&mv, value); err != nil { + case "configuredTableAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { return err } - uv = &types.AnalysisRulePolicyMemberV1{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(v *types.AnalysisRulePolicyV1, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +type awsRestjson1_deserializeOpUpdateMembership struct { +} + +func (*awsRestjson1_deserializeOpUpdateMembership) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err } - shape, ok := value.(map[string]interface{}) + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var uv types.AnalysisRulePolicyV1 -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "aggregation": - var mv types.AnalysisRuleAggregation - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleAggregation(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.AnalysisRulePolicyV1MemberAggregation{Value: mv} - break loop + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateMembership(response, &metadata) + } + output := &UpdateMembershipOutput{} + out.Result = output - case "list": - var mv types.AnalysisRuleList - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleList(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.AnalysisRulePolicyV1MemberList{Value: mv} - break loop + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } - *v = uv - return nil -} -func awsRestjson1_deserializeDocumentAnalysisRuleTypeList(v *[]types.AnalysisRuleType, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil + err = awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembershipOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateMembershipOutput + if *v == nil { + sv = &UpdateMembershipOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "membership": + if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateProtectedQuery struct { +} + +func (*awsRestjson1_deserializeOpUpdateProtectedQuery) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response, &metadata) + } + output := &UpdateProtectedQueryOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(v **UpdateProtectedQueryOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateProtectedQueryOutput + if *v == nil { + sv = &UpdateProtectedQueryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "protectedQuery": + if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceQuotaExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "reason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccessDeniedExceptionReason to be of type string, got %T instead", value) + } + sv.Reason = types.AccessDeniedExceptionReason(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregateColumn(v **types.AggregateColumn, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AggregateColumn + if *v == nil { + sv = &types.AggregateColumn{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "columnNames": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(&sv.ColumnNames, value); err != nil { + return err + } + + case "function": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AggregateFunctionName to be of type string, got %T instead", value) + } + sv.Function = types.AggregateFunctionName(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregateColumnList(v *[]types.AggregateColumn, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AggregateColumn + if *v == nil { + cv = []types.AggregateColumn{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AggregateColumn + destAddr := &col + if err := awsRestjson1_deserializeDocumentAggregateColumn(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.AggregationConstraint, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AggregationConstraint + if *v == nil { + sv = &types.AggregationConstraint{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "columnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) + } + sv.ColumnName = ptr.String(jtv) + } + + case "minimum": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Minimum = ptr.Int32(int32(i64)) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AggregationType to be of type string, got %T instead", value) + } + sv.Type = types.AggregationType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationConstraints(v *[]types.AggregationConstraint, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AggregationConstraint + if *v == nil { + cv = []types.AggregationConstraint{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AggregationConstraint + destAddr := &col + if err := awsRestjson1_deserializeDocumentAggregationConstraint(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAllowedAnalysesList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArnOrQueryWildcard to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAllowedAnalysisProviderList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAllowedColumnList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisParameter(v **types.AnalysisParameter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisParameter + if *v == nil { + sv = &types.AnalysisParameter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "defaultValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) + } + sv.DefaultValue = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterType to be of type string, got %T instead", value) + } + sv.Type = types.ParameterType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisParameterList(v *[]types.AnalysisParameter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AnalysisParameter + if *v == nil { + cv = []types.AnalysisParameter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisParameter + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisParameter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRule(v **types.AnalysisRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRule + if *v == nil { + sv = &types.AnalysisRule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationIdentifier to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "policy": + if err := awsRestjson1_deserializeDocumentAnalysisRulePolicy(&sv.Policy, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) + } + sv.Type = types.AnalysisRuleType(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleAggregation(v **types.AnalysisRuleAggregation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRuleAggregation + if *v == nil { + sv = &types.AnalysisRuleAggregation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aggregateColumns": + if err := awsRestjson1_deserializeDocumentAggregateColumnList(&sv.AggregateColumns, value); err != nil { + return err + } + + case "allowedJoinOperators": + if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { + return err + } + + case "dimensionColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.DimensionColumns, value); err != nil { + return err + } + + case "joinColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { + return err + } + + case "joinRequired": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected JoinRequiredOption to be of type string, got %T instead", value) + } + sv.JoinRequired = types.JoinRequiredOption(jtv) + } + + case "outputConstraints": + if err := awsRestjson1_deserializeDocumentAggregationConstraints(&sv.OutputConstraints, value); err != nil { + return err + } + + case "scalarFunctions": + if err := awsRestjson1_deserializeDocumentScalarFunctionsList(&sv.ScalarFunctions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleColumnList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleCustom(v **types.AnalysisRuleCustom, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRuleCustom + if *v == nil { + sv = &types.AnalysisRuleCustom{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "allowedAnalyses": + if err := awsRestjson1_deserializeDocumentAllowedAnalysesList(&sv.AllowedAnalyses, value); err != nil { + return err + } + + case "allowedAnalysisProviders": + if err := awsRestjson1_deserializeDocumentAllowedAnalysisProviderList(&sv.AllowedAnalysisProviders, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleList(v **types.AnalysisRuleList, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRuleList + if *v == nil { + sv = &types.AnalysisRuleList{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "allowedJoinOperators": + if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { + return err + } + + case "joinColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { + return err + } + + case "listColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.ListColumns, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRulePolicy(v *types.AnalysisRulePolicy, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.AnalysisRulePolicy +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "v1": + var mv types.AnalysisRulePolicyV1 + if err := awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(&mv, value); err != nil { + return err + } + uv = &types.AnalysisRulePolicyMemberV1{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(v *types.AnalysisRulePolicyV1, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.AnalysisRulePolicyV1 +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "aggregation": + var mv types.AnalysisRuleAggregation + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleAggregation(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AnalysisRulePolicyV1MemberAggregation{Value: mv} + break loop + + case "custom": + var mv types.AnalysisRuleCustom + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleCustom(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AnalysisRulePolicyV1MemberCustom{Value: mv} + break loop + + case "list": + var mv types.AnalysisRuleList + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleList(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AnalysisRulePolicyV1MemberList{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleTypeList(v *[]types.AnalysisRuleType, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } var cv []types.AnalysisRuleType if *v == nil { - cv = []types.AnalysisRuleType{} + cv = []types.AnalysisRuleType{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisRuleType + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) + } + col = types.AnalysisRuleType(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisSchema(v **types.AnalysisSchema, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisSchema + if *v == nil { + sv = &types.AnalysisSchema{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "referencedTables": + if err := awsRestjson1_deserializeDocumentQueryTables(&sv.ReferencedTables, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisSource(v *types.AnalysisSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.AnalysisSource +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "text": + var mv string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateText to be of type string, got %T instead", value) + } + mv = jtv + } + uv = &types.AnalysisSourceMemberText{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisTemplate + if *v == nil { + sv = &types.AnalysisTemplate{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "analysisParameters": + if err := awsRestjson1_deserializeDocumentAnalysisParameterList(&sv.AnalysisParameters, value); err != nil { + return err + } + + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "format": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisFormat to be of type string, got %T instead", value) + } + sv.Format = types.AnalysisFormat(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } + + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "schema": + if err := awsRestjson1_deserializeDocumentAnalysisSchema(&sv.Schema, value); err != nil { + return err + } + + case "source": + if err := awsRestjson1_deserializeDocumentAnalysisSource(&sv.Source, value); err != nil { + return err + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisTemplateSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisTemplateSummary + if *v == nil { + sv = &types.AnalysisTemplateSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } + + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(v *[]types.AnalysisTemplateSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AnalysisTemplateSummary + if *v == nil { + cv = []types.AnalysisTemplateSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisTemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisTemplateSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError(v **types.BatchGetCollaborationAnalysisTemplateError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchGetCollaborationAnalysisTemplateError + if *v == nil { + sv = &types.BatchGetCollaborationAnalysisTemplateError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Code = ptr.String(jtv) + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateErrorList(v *[]types.BatchGetCollaborationAnalysisTemplateError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.BatchGetCollaborationAnalysisTemplateError + if *v == nil { + cv = []types.BatchGetCollaborationAnalysisTemplateError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchGetCollaborationAnalysisTemplateError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetSchemaError(v **types.BatchGetSchemaError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchGetSchemaError + if *v == nil { + sv = &types.BatchGetSchemaError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Code = ptr.String(jtv) + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGetSchemaError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.BatchGetSchemaError + if *v == nil { + cv = []types.BatchGetSchemaError{} } else { cv = *v } for _, value := range shape { - var col types.AnalysisRuleType - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) - } - col = types.AnalysisRuleType(jtv) + var col types.BatchGetSchemaError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchGetSchemaError(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -6387,7 +8429,165 @@ func awsRestjson1_deserializeDocumentAnalysisRuleTypeList(v *[]types.AnalysisRul return nil } -func awsRestjson1_deserializeDocumentBatchGetSchemaError(v **types.BatchGetSchemaError, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Collaboration + if *v == nil { + sv = &types.Collaboration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } + + case "creatorDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + } + sv.CreatorDisplayName = ptr.String(jtv) + } + + case "dataEncryptionMetadata": + if err := awsRestjson1_deserializeDocumentDataEncryptionMetadata(&sv.DataEncryptionMetadata, value); err != nil { + return err + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } + + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "memberStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) + } + sv.MemberStatus = types.MemberStatus(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "queryLogStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationQueryLogStatus to be of type string, got %T instead", value) + } + sv.QueryLogStatus = types.CollaborationQueryLogStatus(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(v **types.CollaborationAnalysisTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6395,47 +8595,139 @@ func awsRestjson1_deserializeDocumentBatchGetSchemaError(v **types.BatchGetSchem return nil } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CollaborationAnalysisTemplate + if *v == nil { + sv = &types.CollaborationAnalysisTemplate{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "analysisParameters": + if err := awsRestjson1_deserializeDocumentAnalysisParameterList(&sv.AnalysisParameters, value); err != nil { + return err + } + + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } - var sv *types.BatchGetSchemaError - if *v == nil { - sv = &types.BatchGetSchemaError{} - } else { - sv = *v - } + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "code": + case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) } - sv.Code = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "message": + case "format": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected AnalysisFormat to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Format = types.AnalysisFormat(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) } case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } + case "schema": + if err := awsRestjson1_deserializeDocumentAnalysisSchema(&sv.Schema, value); err != nil { + return err + } + + case "source": + if err := awsRestjson1_deserializeDocumentAnalysisSource(&sv.Source, value); err != nil { + return err + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + default: _, _ = key, value @@ -6445,7 +8737,7 @@ func awsRestjson1_deserializeDocumentBatchGetSchemaError(v **types.BatchGetSchem return nil } -func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGetSchemaError, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateList(v *[]types.CollaborationAnalysisTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6458,17 +8750,17 @@ func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.BatchGetSchemaError + var cv []types.CollaborationAnalysisTemplate if *v == nil { - cv = []types.BatchGetSchemaError{} + cv = []types.CollaborationAnalysisTemplate{} } else { cv = *v } for _, value := range shape { - var col types.BatchGetSchemaError + var col types.CollaborationAnalysisTemplate destAddr := &col - if err := awsRestjson1_deserializeDocumentBatchGetSchemaError(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(&destAddr, value); err != nil { return err } col = *destAddr @@ -6479,7 +8771,7 @@ func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGet return nil } -func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(v **types.CollaborationAnalysisTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6492,9 +8784,9 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Collaboration + var sv *types.CollaborationAnalysisTemplateSummary if *v == nil { - sv = &types.Collaboration{} + sv = &types.CollaborationAnalysisTemplateSummary{} } else { sv = *v } @@ -6505,11 +8797,29 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + case "createTime": if value != nil { switch jtv := value.(type) { @@ -6535,25 +8845,11 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu sv.CreatorAccountId = ptr.String(jtv) } - case "creatorDisplayName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) - } - sv.CreatorDisplayName = ptr.String(jtv) - } - - case "dataEncryptionMetadata": - if err := awsRestjson1_deserializeDocumentDataEncryptionMetadata(&sv.DataEncryptionMetadata, value); err != nil { - return err - } - case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) } sv.Description = ptr.String(jtv) } @@ -6562,56 +8858,20 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } - case "membershipArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) - } - sv.MembershipArn = ptr.String(jtv) - } - - case "membershipId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) - } - sv.MembershipId = ptr.String(jtv) - } - - case "memberStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) - } - sv.MemberStatus = types.MemberStatus(jtv) - } - case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "queryLogStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationQueryLogStatus to be of type string, got %T instead", value) - } - sv.QueryLogStatus = types.CollaborationQueryLogStatus(jtv) - } - case "updateTime": if value != nil { switch jtv := value.(type) { @@ -6637,6 +8897,40 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu return nil } +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(v *[]types.CollaborationAnalysisTemplateSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.CollaborationAnalysisTemplateSummary + if *v == nil { + cv = []types.CollaborationAnalysisTemplateSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CollaborationAnalysisTemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentCollaborationSummary(v **types.CollaborationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7175,6 +9469,16 @@ loop: uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberAggregation{Value: mv} break loop + case "custom": + var mv types.AnalysisRuleCustom + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleCustom(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberCustom{Value: mv} + break loop + case "list": var mv types.AnalysisRuleList destAddr := &mv @@ -8429,6 +10733,42 @@ func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]types.MemberSummary, return nil } +func awsRestjson1_deserializeDocumentParameterMap(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + func awsRestjson1_deserializeDocumentProtectedQuery(v **types.ProtectedQuery, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8858,6 +11198,20 @@ func awsRestjson1_deserializeDocumentProtectedQuerySQLParameters(v **types.Prote for key, value := range shape { switch key { + case "analysisTemplateArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.AnalysisTemplateArn = ptr.String(jtv) + } + + case "parameters": + if err := awsRestjson1_deserializeDocumentParameterMap(&sv.Parameters, value); err != nil { + return err + } + case "queryString": if value != nil { jtv, ok := value.(string) @@ -9037,6 +11391,42 @@ func awsRestjson1_deserializeDocumentProtectedQuerySummaryList(v *[]types.Protec return nil } +func awsRestjson1_deserializeDocumentQueryTables(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/cleanrooms/endpoints_test.go b/service/cleanrooms/endpoints_test.go index 30553c5cc85..8d74b02587f 100644 --- a/service/cleanrooms/endpoints_test.go +++ b/service/cleanrooms/endpoints_test.go @@ -17,9 +17,9 @@ import ( // For region us-gov-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase0(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -56,9 +56,9 @@ func TestEndpointCase0(t *testing.T) { // For region us-gov-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase1(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -95,9 +95,9 @@ func TestEndpointCase1(t *testing.T) { // For region us-gov-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase2(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -134,9 +134,9 @@ func TestEndpointCase2(t *testing.T) { // For region us-gov-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase3(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -173,9 +173,9 @@ func TestEndpointCase3(t *testing.T) { // For region cn-north-1 with FIPS enabled and DualStack enabled func TestEndpointCase4(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(true), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -212,9 +212,9 @@ func TestEndpointCase4(t *testing.T) { // For region cn-north-1 with FIPS enabled and DualStack disabled func TestEndpointCase5(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(false), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -251,9 +251,9 @@ func TestEndpointCase5(t *testing.T) { // For region cn-north-1 with FIPS disabled and DualStack enabled func TestEndpointCase6(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(true), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -290,9 +290,9 @@ func TestEndpointCase6(t *testing.T) { // For region cn-north-1 with FIPS disabled and DualStack disabled func TestEndpointCase7(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -329,9 +329,9 @@ func TestEndpointCase7(t *testing.T) { // For region us-iso-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase8(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -349,9 +349,9 @@ func TestEndpointCase8(t *testing.T) { // For region us-iso-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase9(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -388,9 +388,9 @@ func TestEndpointCase9(t *testing.T) { // For region us-iso-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase10(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -408,9 +408,9 @@ func TestEndpointCase10(t *testing.T) { // For region us-iso-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase11(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -447,9 +447,9 @@ func TestEndpointCase11(t *testing.T) { // For region us-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase12(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -486,9 +486,9 @@ func TestEndpointCase12(t *testing.T) { // For region us-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase13(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -525,9 +525,9 @@ func TestEndpointCase13(t *testing.T) { // For region us-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase14(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -564,9 +564,9 @@ func TestEndpointCase14(t *testing.T) { // For region us-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase15(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -603,9 +603,9 @@ func TestEndpointCase15(t *testing.T) { // For region us-isob-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase16(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -623,9 +623,9 @@ func TestEndpointCase16(t *testing.T) { // For region us-isob-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase17(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -662,9 +662,9 @@ func TestEndpointCase17(t *testing.T) { // For region us-isob-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase18(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -682,9 +682,9 @@ func TestEndpointCase18(t *testing.T) { // For region us-isob-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase19(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -721,9 +721,9 @@ func TestEndpointCase19(t *testing.T) { // For custom endpoint with fips disabled and dualstack disabled func TestEndpointCase20(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-east-1"), Endpoint: ptr.String("https://example.com"), } @@ -761,9 +761,9 @@ func TestEndpointCase20(t *testing.T) { // For custom endpoint with fips enabled and dualstack disabled func TestEndpointCase21(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-east-1"), Endpoint: ptr.String("https://example.com"), } @@ -782,9 +782,9 @@ func TestEndpointCase21(t *testing.T) { // For custom endpoint with fips disabled and dualstack enabled func TestEndpointCase22(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-east-1"), Endpoint: ptr.String("https://example.com"), } diff --git a/service/cleanrooms/generated.json b/service/cleanrooms/generated.json index 523b0be9d14..f078eb3667d 100644 --- a/service/cleanrooms/generated.json +++ b/service/cleanrooms/generated.json @@ -9,19 +9,24 @@ "files": [ "api_client.go", "api_client_test.go", + "api_op_BatchGetCollaborationAnalysisTemplate.go", "api_op_BatchGetSchema.go", + "api_op_CreateAnalysisTemplate.go", "api_op_CreateCollaboration.go", "api_op_CreateConfiguredTable.go", "api_op_CreateConfiguredTableAnalysisRule.go", "api_op_CreateConfiguredTableAssociation.go", "api_op_CreateMembership.go", + "api_op_DeleteAnalysisTemplate.go", "api_op_DeleteCollaboration.go", "api_op_DeleteConfiguredTable.go", "api_op_DeleteConfiguredTableAnalysisRule.go", "api_op_DeleteConfiguredTableAssociation.go", "api_op_DeleteMember.go", "api_op_DeleteMembership.go", + "api_op_GetAnalysisTemplate.go", "api_op_GetCollaboration.go", + "api_op_GetCollaborationAnalysisTemplate.go", "api_op_GetConfiguredTable.go", "api_op_GetConfiguredTableAnalysisRule.go", "api_op_GetConfiguredTableAssociation.go", @@ -29,6 +34,8 @@ "api_op_GetProtectedQuery.go", "api_op_GetSchema.go", "api_op_GetSchemaAnalysisRule.go", + "api_op_ListAnalysisTemplates.go", + "api_op_ListCollaborationAnalysisTemplates.go", "api_op_ListCollaborations.go", "api_op_ListConfiguredTableAssociations.go", "api_op_ListConfiguredTables.go", @@ -40,6 +47,7 @@ "api_op_StartProtectedQuery.go", "api_op_TagResource.go", "api_op_UntagResource.go", + "api_op_UpdateAnalysisTemplate.go", "api_op_UpdateCollaboration.go", "api_op_UpdateConfiguredTable.go", "api_op_UpdateConfiguredTableAnalysisRule.go", diff --git a/service/cleanrooms/go.mod b/service/cleanrooms/go.mod index 21ba01bfdb8..d685ba9c329 100644 --- a/service/cleanrooms/go.mod +++ b/service/cleanrooms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cleanrooms/go.sum b/service/cleanrooms/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cleanrooms/go.sum +++ b/service/cleanrooms/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanrooms/serializers.go b/service/cleanrooms/serializers.go index c2e0f739e39..6feff657a6e 100644 --- a/service/cleanrooms/serializers.go +++ b/service/cleanrooms/serializers.go @@ -14,6 +14,96 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +type awsRestjson1_serializeOpBatchGetCollaborationAnalysisTemplate struct { +} + +func (*awsRestjson1_serializeOpBatchGetCollaborationAnalysisTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpBatchGetCollaborationAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*BatchGetCollaborationAnalysisTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/batch-analysistemplates") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsBatchGetCollaborationAnalysisTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentBatchGetCollaborationAnalysisTemplateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsBatchGetCollaborationAnalysisTemplateInput(v *BatchGetCollaborationAnalysisTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchGetCollaborationAnalysisTemplateInput(v *BatchGetCollaborationAnalysisTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AnalysisTemplateArns != nil { + ok := object.Key("analysisTemplateArns") + if err := awsRestjson1_serializeDocumentAnalysisTemplateArnList(v.AnalysisTemplateArns, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpBatchGetSchema struct { } @@ -104,6 +194,125 @@ func awsRestjson1_serializeOpDocumentBatchGetSchemaInput(v *BatchGetSchemaInput, return nil } +type awsRestjson1_serializeOpCreateAnalysisTemplate struct { +} + +func (*awsRestjson1_serializeOpCreateAnalysisTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateAnalysisTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateAnalysisTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateAnalysisTemplateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateAnalysisTemplateInput(v *CreateAnalysisTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateAnalysisTemplateInput(v *CreateAnalysisTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AnalysisParameters != nil { + ok := object.Key("analysisParameters") + if err := awsRestjson1_serializeDocumentAnalysisParameterList(v.AnalysisParameters, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if len(v.Format) > 0 { + ok := object.Key("format") + ok.String(string(v.Format)) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.Source != nil { + ok := object.Key("source") + if err := awsRestjson1_serializeDocumentAnalysisSource(v.Source, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpCreateCollaboration struct { } @@ -620,6 +829,80 @@ func awsRestjson1_serializeOpDocumentCreateMembershipInput(v *CreateMembershipIn return nil } +type awsRestjson1_serializeOpDeleteAnalysisTemplate struct { +} + +func (*awsRestjson1_serializeOpDeleteAnalysisTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteAnalysisTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteAnalysisTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteAnalysisTemplateInput(v *DeleteAnalysisTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AnalysisTemplateIdentifier == nil || len(*v.AnalysisTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member analysisTemplateIdentifier must not be empty")} + } + if v.AnalysisTemplateIdentifier != nil { + if err := encoder.SetURI("analysisTemplateIdentifier").String(*v.AnalysisTemplateIdentifier); err != nil { + return err + } + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDeleteCollaboration struct { } @@ -1037,14 +1320,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMembershipInput(v *DeleteMembersh return nil } -type awsRestjson1_serializeOpGetCollaboration struct { +type awsRestjson1_serializeOpGetAnalysisTemplate struct { } -func (*awsRestjson1_serializeOpGetCollaboration) ID() string { +func (*awsRestjson1_serializeOpGetAnalysisTemplate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetCollaboration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1052,13 +1335,13 @@ func (m *awsRestjson1_serializeOpGetCollaboration) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetCollaborationInput) + input, ok := in.Parameters.(*GetAnalysisTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1074,7 +1357,7 @@ func (m *awsRestjson1_serializeOpGetCollaboration) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetCollaborationInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetAnalysisTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1085,23 +1368,171 @@ func (m *awsRestjson1_serializeOpGetCollaboration) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetCollaborationInput(v *GetCollaborationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetAnalysisTemplateInput(v *GetAnalysisTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + if v.AnalysisTemplateIdentifier == nil || len(*v.AnalysisTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member analysisTemplateIdentifier must not be empty")} } - if v.CollaborationIdentifier != nil { - if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + if v.AnalysisTemplateIdentifier != nil { + if err := encoder.SetURI("analysisTemplateIdentifier").String(*v.AnalysisTemplateIdentifier); err != nil { return err } } - return nil -} - + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetCollaboration struct { +} + +func (*awsRestjson1_serializeOpGetCollaboration) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetCollaboration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetCollaborationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetCollaborationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetCollaborationInput(v *GetCollaborationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetCollaborationAnalysisTemplate struct { +} + +func (*awsRestjson1_serializeOpGetCollaborationAnalysisTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetCollaborationAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetCollaborationAnalysisTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetCollaborationAnalysisTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetCollaborationAnalysisTemplateInput(v *GetCollaborationAnalysisTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AnalysisTemplateArn == nil || len(*v.AnalysisTemplateArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member analysisTemplateArn must not be empty")} + } + if v.AnalysisTemplateArn != nil { + if err := encoder.SetURI("analysisTemplateArn").String(*v.AnalysisTemplateArn); err != nil { + return err + } + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpGetConfiguredTable struct { } @@ -1436,17 +1867,174 @@ func awsRestjson1_serializeOpHttpBindingsGetProtectedQueryInput(v *GetProtectedQ if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} } - if v.MembershipIdentifier != nil { - if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + if v.ProtectedQueryIdentifier == nil || len(*v.ProtectedQueryIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member protectedQueryIdentifier must not be empty")} + } + if v.ProtectedQueryIdentifier != nil { + if err := encoder.SetURI("protectedQueryIdentifier").String(*v.ProtectedQueryIdentifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetSchema struct { +} + +func (*awsRestjson1_serializeOpGetSchema) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetSchemaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetSchemaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetSchemaInput(v *GetSchemaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetSchemaAnalysisRule struct { +} + +func (*awsRestjson1_serializeOpGetSchemaAnalysisRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetSchemaAnalysisRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(v *GetSchemaAnalysisRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } } - if v.ProtectedQueryIdentifier == nil || len(*v.ProtectedQueryIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member protectedQueryIdentifier must not be empty")} + if len(v.Type) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member type must not be empty")} } - if v.ProtectedQueryIdentifier != nil { - if err := encoder.SetURI("protectedQueryIdentifier").String(*v.ProtectedQueryIdentifier); err != nil { + if len(v.Type) > 0 { + if err := encoder.SetURI("type").String(string(v.Type)); err != nil { return err } } @@ -1454,14 +2042,14 @@ func awsRestjson1_serializeOpHttpBindingsGetProtectedQueryInput(v *GetProtectedQ return nil } -type awsRestjson1_serializeOpGetSchema struct { +type awsRestjson1_serializeOpListAnalysisTemplates struct { } -func (*awsRestjson1_serializeOpGetSchema) ID() string { +func (*awsRestjson1_serializeOpListAnalysisTemplates) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListAnalysisTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1469,13 +2057,13 @@ func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSchemaInput) + input, ok := in.Parameters.(*ListAnalysisTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1491,7 +2079,7 @@ func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSchemaInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListAnalysisTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1502,40 +2090,39 @@ func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSchemaInput(v *GetSchemaInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListAnalysisTemplatesInput(v *ListAnalysisTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} - } - if v.CollaborationIdentifier != nil { - if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { - return err - } + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.Name == nil || len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} } - if v.Name != nil { - if err := encoder.SetURI("name").String(*v.Name); err != nil { + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { return err } } + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + return nil } -type awsRestjson1_serializeOpGetSchemaAnalysisRule struct { +type awsRestjson1_serializeOpListCollaborationAnalysisTemplates struct { } -func (*awsRestjson1_serializeOpGetSchemaAnalysisRule) ID() string { +func (*awsRestjson1_serializeOpListCollaborationAnalysisTemplates) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListCollaborationAnalysisTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1543,13 +2130,13 @@ func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSchemaAnalysisRuleInput) + input, ok := in.Parameters.(*ListCollaborationAnalysisTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}") + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/analysistemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1565,7 +2152,7 @@ func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListCollaborationAnalysisTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1576,7 +2163,7 @@ func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(v *GetSchemaAnalysisRuleInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListCollaborationAnalysisTemplatesInput(v *ListCollaborationAnalysisTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1590,22 +2177,12 @@ func awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(v *GetSchema } } - if v.Name == nil || len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } - if v.Name != nil { - if err := encoder.SetURI("name").String(*v.Name); err != nil { - return err - } + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if len(v.Type) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member type must not be empty")} - } - if len(v.Type) > 0 { - if err := encoder.SetURI("type").String(string(v.Type)); err != nil { - return err - } + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) } return nil @@ -2439,6 +3016,103 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return nil } +type awsRestjson1_serializeOpUpdateAnalysisTemplate struct { +} + +func (*awsRestjson1_serializeOpUpdateAnalysisTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateAnalysisTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateAnalysisTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateAnalysisTemplateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisTemplateInput(v *UpdateAnalysisTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AnalysisTemplateIdentifier == nil || len(*v.AnalysisTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member analysisTemplateIdentifier must not be empty")} + } + if v.AnalysisTemplateIdentifier != nil { + if err := encoder.SetURI("analysisTemplateIdentifier").String(*v.AnalysisTemplateIdentifier); err != nil { + return err + } + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateAnalysisTemplateInput(v *UpdateAnalysisTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + return nil +} + type awsRestjson1_serializeOpUpdateCollaboration struct { } @@ -3078,6 +3752,28 @@ func awsRestjson1_serializeDocumentAggregationConstraints(v []types.AggregationC return nil } +func awsRestjson1_serializeDocumentAllowedAnalysesList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAllowedAnalysisProviderList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsRestjson1_serializeDocumentAllowedColumnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3089,6 +3785,41 @@ func awsRestjson1_serializeDocumentAllowedColumnList(v []string, value smithyjso return nil } +func awsRestjson1_serializeDocumentAnalysisParameter(v *types.AnalysisParameter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DefaultValue != nil { + ok := object.Key("defaultValue") + ok.String(*v.DefaultValue) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if len(v.Type) > 0 { + ok := object.Key("type") + ok.String(string(v.Type)) + } + + return nil +} + +func awsRestjson1_serializeDocumentAnalysisParameterList(v []types.AnalysisParameter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAnalysisParameter(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentAnalysisRuleAggregation(v *types.AnalysisRuleAggregation, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3165,6 +3896,27 @@ func awsRestjson1_serializeDocumentAnalysisRuleColumnNameList(v []string, value return nil } +func awsRestjson1_serializeDocumentAnalysisRuleCustom(v *types.AnalysisRuleCustom, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AllowedAnalyses != nil { + ok := object.Key("allowedAnalyses") + if err := awsRestjson1_serializeDocumentAllowedAnalysesList(v.AllowedAnalyses, ok); err != nil { + return err + } + } + + if v.AllowedAnalysisProviders != nil { + ok := object.Key("allowedAnalysisProviders") + if err := awsRestjson1_serializeDocumentAllowedAnalysisProviderList(v.AllowedAnalysisProviders, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentAnalysisRuleList(v *types.AnalysisRuleList, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3193,6 +3945,33 @@ func awsRestjson1_serializeDocumentAnalysisRuleList(v *types.AnalysisRuleList, v return nil } +func awsRestjson1_serializeDocumentAnalysisSource(v types.AnalysisSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.AnalysisSourceMemberText: + av := object.Key("text") + av.String(uv.Value) + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentAnalysisTemplateArnList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsRestjson1_serializeDocumentConfiguredTableAnalysisRulePolicy(v types.ConfiguredTableAnalysisRulePolicy, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3222,6 +4001,12 @@ func awsRestjson1_serializeDocumentConfiguredTableAnalysisRulePolicyV1(v types.C return err } + case *types.ConfiguredTableAnalysisRulePolicyV1MemberCustom: + av := object.Key("custom") + if err := awsRestjson1_serializeDocumentAnalysisRuleCustom(&uv.Value, av); err != nil { + return err + } + case *types.ConfiguredTableAnalysisRulePolicyV1MemberList: av := object.Key("list") if err := awsRestjson1_serializeDocumentAnalysisRuleList(&uv.Value, av); err != nil { @@ -3338,6 +4123,17 @@ func awsRestjson1_serializeDocumentMemberSpecification(v *types.MemberSpecificat return nil } +func awsRestjson1_serializeDocumentParameterMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + func awsRestjson1_serializeDocumentProtectedQueryOutputConfiguration(v types.ProtectedQueryOutputConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3396,6 +4192,18 @@ func awsRestjson1_serializeDocumentProtectedQuerySQLParameters(v *types.Protecte object := value.Object() defer object.Close() + if v.AnalysisTemplateArn != nil { + ok := object.Key("analysisTemplateArn") + ok.String(*v.AnalysisTemplateArn) + } + + if v.Parameters != nil { + ok := object.Key("parameters") + if err := awsRestjson1_serializeDocumentParameterMap(v.Parameters, ok); err != nil { + return err + } + } + if v.QueryString != nil { ok := object.Key("queryString") ok.String(*v.QueryString) diff --git a/service/cleanrooms/types/enums.go b/service/cleanrooms/types/enums.go index fc6b6dfd8fd..bbd0170eda9 100644 --- a/service/cleanrooms/types/enums.go +++ b/service/cleanrooms/types/enums.go @@ -58,6 +58,22 @@ func (AggregationType) Values() []AggregationType { } } +type AnalysisFormat string + +// Enum values for AnalysisFormat +const ( + AnalysisFormatSql AnalysisFormat = "SQL" +) + +// Values returns all known values for AnalysisFormat. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (AnalysisFormat) Values() []AnalysisFormat { + return []AnalysisFormat{ + "SQL", + } +} + type AnalysisMethod string // Enum values for AnalysisMethod @@ -80,6 +96,7 @@ type AnalysisRuleType string const ( AnalysisRuleTypeAggregation AnalysisRuleType = "AGGREGATION" AnalysisRuleTypeList AnalysisRuleType = "LIST" + AnalysisRuleTypeCustom AnalysisRuleType = "CUSTOM" ) // Values returns all known values for AnalysisRuleType. Note that this can be @@ -89,6 +106,7 @@ func (AnalysisRuleType) Values() []AnalysisRuleType { return []AnalysisRuleType{ "AGGREGATION", "LIST", + "CUSTOM", } } @@ -116,6 +134,7 @@ type ConfiguredTableAnalysisRuleType string const ( ConfiguredTableAnalysisRuleTypeAggregation ConfiguredTableAnalysisRuleType = "AGGREGATION" ConfiguredTableAnalysisRuleTypeList ConfiguredTableAnalysisRuleType = "LIST" + ConfiguredTableAnalysisRuleTypeCustom ConfiguredTableAnalysisRuleType = "CUSTOM" ) // Values returns all known values for ConfiguredTableAnalysisRuleType. Note that @@ -126,6 +145,7 @@ func (ConfiguredTableAnalysisRuleType) Values() []ConfiguredTableAnalysisRuleTyp return []ConfiguredTableAnalysisRuleType{ "AGGREGATION", "LIST", + "CUSTOM", } } @@ -279,6 +299,50 @@ func (MemberStatus) Values() []MemberStatus { } } +type ParameterType string + +// Enum values for ParameterType +const ( + ParameterTypeSmallint ParameterType = "SMALLINT" + ParameterTypeInteger ParameterType = "INTEGER" + ParameterTypeBigint ParameterType = "BIGINT" + ParameterTypeDecimal ParameterType = "DECIMAL" + ParameterTypeReal ParameterType = "REAL" + ParameterTypeDoublePrecision ParameterType = "DOUBLE_PRECISION" + ParameterTypeBoolean ParameterType = "BOOLEAN" + ParameterTypeChar ParameterType = "CHAR" + ParameterTypeVarchar ParameterType = "VARCHAR" + ParameterTypeDate ParameterType = "DATE" + ParameterTypeTimestamp ParameterType = "TIMESTAMP" + ParameterTypeTimestamptz ParameterType = "TIMESTAMPTZ" + ParameterTypeTime ParameterType = "TIME" + ParameterTypeTimetz ParameterType = "TIMETZ" + ParameterTypeVarbyte ParameterType = "VARBYTE" +) + +// Values returns all known values for ParameterType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ParameterType) Values() []ParameterType { + return []ParameterType{ + "SMALLINT", + "INTEGER", + "BIGINT", + "DECIMAL", + "REAL", + "DOUBLE_PRECISION", + "BOOLEAN", + "CHAR", + "VARCHAR", + "DATE", + "TIMESTAMP", + "TIMESTAMPTZ", + "TIME", + "TIMETZ", + "VARBYTE", + } +} + type ProtectedQueryStatus string // Enum values for ProtectedQueryStatus @@ -439,9 +503,10 @@ type ValidationExceptionReason string // Enum values for ValidationExceptionReason const ( - ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED" - ValidationExceptionReasonInvalidConfiguration ValidationExceptionReason = "INVALID_CONFIGURATION" - ValidationExceptionReasonInvalidQuery ValidationExceptionReason = "INVALID_QUERY" + ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED" + ValidationExceptionReasonInvalidConfiguration ValidationExceptionReason = "INVALID_CONFIGURATION" + ValidationExceptionReasonInvalidQuery ValidationExceptionReason = "INVALID_QUERY" + ValidationExceptionReasonIamSynchronizationDelay ValidationExceptionReason = "IAM_SYNCHRONIZATION_DELAY" ) // Values returns all known values for ValidationExceptionReason. Note that this @@ -452,5 +517,6 @@ func (ValidationExceptionReason) Values() []ValidationExceptionReason { "FIELD_VALIDATION_FAILED", "INVALID_CONFIGURATION", "INVALID_QUERY", + "IAM_SYNCHRONIZATION_DELAY", } } diff --git a/service/cleanrooms/types/types.go b/service/cleanrooms/types/types.go index de743302b13..c30a0479969 100644 --- a/service/cleanrooms/types/types.go +++ b/service/cleanrooms/types/types.go @@ -49,6 +49,28 @@ type AggregationConstraint struct { noSmithyDocumentSerde } +// Optional. The member who can query can provide this placeholder for a literal +// data value in an analysis template. +type AnalysisParameter struct { + + // The name of the parameter. The name must use only alphanumeric, underscore (_), + // or hyphen (-) characters but cannot start or end with a hyphen. + // + // This member is required. + Name *string + + // The type of parameter. + // + // This member is required. + Type ParameterType + + // Optional. The default value that is applied in the analysis template. The + // member who can query can override this value in the query editor. + DefaultValue *string + + noSmithyDocumentSerde +} + // A specification about how data from the configured table can be used in a query. type AnalysisRule struct { @@ -72,7 +94,7 @@ type AnalysisRule struct { // This member is required. Policy AnalysisRulePolicy - // The type of analysis rule. Valid values are `AGGREGATION` and `LIST`. + // The type of analysis rule. // // This member is required. Type AnalysisRuleType @@ -85,7 +107,8 @@ type AnalysisRule struct { noSmithyDocumentSerde } -// Enables query structure and specified queries that produce aggregate statistics. +// A type of analysis rule that enables query structure and specified queries that +// produce aggregate statistics. type AnalysisRuleAggregation struct { // The columns that query runners are allowed to use in aggregation queries. @@ -127,6 +150,22 @@ type AnalysisRuleAggregation struct { noSmithyDocumentSerde } +// A type of analysis rule that enables the table owner to approve custom SQL +// queries on their configured tables. +type AnalysisRuleCustom struct { + + // The analysis templates that are allowed by the custom analysis rule. + // + // This member is required. + AllowedAnalyses []string + + // The Amazon Web Services accounts that are allowed to query by the custom + // analysis rule. Required when allowedAnalyses is ANY_QUERY . + AllowedAnalysisProviders []string + + noSmithyDocumentSerde +} + // A type of analysis rule that enables row-level analysis. type AnalysisRuleList struct { @@ -141,14 +180,14 @@ type AnalysisRuleList struct { // This member is required. ListColumns []string - // Which logical operators (if any) are to be used in an INNER JOIN match + // The logical operators (if any) that are to be used in an INNER JOIN match // condition. Default is AND . AllowedJoinOperators []JoinOperator noSmithyDocumentSerde } -// Controls on the query specifications that can be run on configured table.. +// Controls on the query specifications that can be run on configured table. // // The following types satisfy this interface: // @@ -157,7 +196,7 @@ type AnalysisRulePolicy interface { isAnalysisRulePolicy() } -// Controls on the query specifications that can be run on configured table.. +// Controls on the query specifications that can be run on configured table. type AnalysisRulePolicyMemberV1 struct { Value AnalysisRulePolicyV1 @@ -166,11 +205,12 @@ type AnalysisRulePolicyMemberV1 struct { func (*AnalysisRulePolicyMemberV1) isAnalysisRulePolicy() {} -// Controls on the query specifications that can be run on configured table.. +// Controls on the query specifications that can be run on configured table. // // The following types satisfy this interface: // // AnalysisRulePolicyV1MemberAggregation +// AnalysisRulePolicyV1MemberCustom // AnalysisRulePolicyV1MemberList type AnalysisRulePolicyV1 interface { isAnalysisRulePolicyV1() @@ -185,6 +225,15 @@ type AnalysisRulePolicyV1MemberAggregation struct { func (*AnalysisRulePolicyV1MemberAggregation) isAnalysisRulePolicyV1() {} +// Analysis rule type that enables custom SQL queries on a configured table. +type AnalysisRulePolicyV1MemberCustom struct { + Value AnalysisRuleCustom + + noSmithyDocumentSerde +} + +func (*AnalysisRulePolicyV1MemberCustom) isAnalysisRulePolicyV1() {} + // Analysis rule type that enables only list queries on a configured table. type AnalysisRulePolicyV1MemberList struct { Value AnalysisRuleList @@ -194,6 +243,182 @@ type AnalysisRulePolicyV1MemberList struct { func (*AnalysisRulePolicyV1MemberList) isAnalysisRulePolicyV1() {} +// A relation within an analysis. +type AnalysisSchema struct { + + // The tables referenced in the analysis schema. + ReferencedTables []string + + noSmithyDocumentSerde +} + +// The structure that defines the body of the analysis template. +// +// The following types satisfy this interface: +// +// AnalysisSourceMemberText +type AnalysisSource interface { + isAnalysisSource() +} + +// The query text. +type AnalysisSourceMemberText struct { + Value string + + noSmithyDocumentSerde +} + +func (*AnalysisSourceMemberText) isAnalysisSource() {} + +// The analysis template. +type AnalysisTemplate struct { + + // The Amazon Resource Name (ARN) of the analysis template. + // + // This member is required. + Arn *string + + // The unique ARN for the analysis template’s associated collaboration. + // + // This member is required. + CollaborationArn *string + + // The unique ID for the associated collaboration of the analysis template. + // + // This member is required. + CollaborationId *string + + // The time that the analysis template was created. + // + // This member is required. + CreateTime *time.Time + + // The format of the analysis template. + // + // This member is required. + Format AnalysisFormat + + // The identifier for the analysis template. + // + // This member is required. + Id *string + + // The Amazon Resource Name (ARN) of the member who created the analysis template. + // + // This member is required. + MembershipArn *string + + // The identifier of a member who created the analysis template. + // + // This member is required. + MembershipId *string + + // The name of the analysis template. + // + // This member is required. + Name *string + + // The entire schema object. + // + // This member is required. + Schema *AnalysisSchema + + // The source of the analysis template. + // + // This member is required. + Source AnalysisSource + + // The time that the analysis template was last updated. + // + // This member is required. + UpdateTime *time.Time + + // The parameters of the analysis template. + AnalysisParameters []AnalysisParameter + + // The description of the analysis template. + Description *string + + noSmithyDocumentSerde +} + +// The metadata of the analysis template. +type AnalysisTemplateSummary struct { + + // The Amazon Resource Name (ARN) of the analysis template. + // + // This member is required. + Arn *string + + // The unique ARN for the analysis template summary’s associated collaboration. + // + // This member is required. + CollaborationArn *string + + // A unique identifier for the collaboration that the analysis template summary + // belongs to. Currently accepts collaboration ID. + // + // This member is required. + CollaborationId *string + + // The time that the analysis template summary was created. + // + // This member is required. + CreateTime *time.Time + + // The identifier of the analysis template. + // + // This member is required. + Id *string + + // The Amazon Resource Name (ARN) of the member who created the analysis template. + // + // This member is required. + MembershipArn *string + + // The identifier for a membership resource. + // + // This member is required. + MembershipId *string + + // The name of the analysis template. + // + // This member is required. + Name *string + + // The time that the analysis template summary was last updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the analysis template. + Description *string + + noSmithyDocumentSerde +} + +// Details of errors thrown by the call to retrieve multiple analysis templates +// within a collaboration by their identifiers. +type BatchGetCollaborationAnalysisTemplateError struct { + + // The Amazon Resource Name (ARN) of the analysis template. + // + // This member is required. + Arn *string + + // An error code for the error. + // + // This member is required. + Code *string + + // A description of why the call failed. + // + // This member is required. + Message *string + + noSmithyDocumentSerde +} + // An error describing why a schema could not be fetched. type BatchGetSchemaError struct { @@ -282,6 +507,128 @@ type Collaboration struct { noSmithyDocumentSerde } +// The analysis template within a collaboration. +type CollaborationAnalysisTemplate struct { + + // The Amazon Resource Name (ARN) of the analysis template. + // + // This member is required. + Arn *string + + // The unique ARN for the analysis template’s associated collaboration. + // + // This member is required. + CollaborationArn *string + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. + // + // This member is required. + CollaborationId *string + + // The time that the analysis template within a collaboration was created. + // + // This member is required. + CreateTime *time.Time + + // The identifier used to reference members of the collaboration. Currently only + // supports Amazon Web Services account ID. + // + // This member is required. + CreatorAccountId *string + + // The format of the analysis template in the collaboration. + // + // This member is required. + Format AnalysisFormat + + // The identifier of the analysis template. + // + // This member is required. + Id *string + + // The name of the analysis template. + // + // This member is required. + Name *string + + // The entire schema object. + // + // This member is required. + Schema *AnalysisSchema + + // The source of the analysis template within a collaboration. + // + // This member is required. + Source AnalysisSource + + // The time that the analysis template in the collaboration was last updated. + // + // This member is required. + UpdateTime *time.Time + + // The analysis parameters that have been specified in the analysis template. + AnalysisParameters []AnalysisParameter + + // The description of the analysis template. + Description *string + + noSmithyDocumentSerde +} + +// The metadata of the analysis template within a collaboration. +type CollaborationAnalysisTemplateSummary struct { + + // The Amazon Resource Name (ARN) of the analysis template. + // + // This member is required. + Arn *string + + // The unique ARN for the analysis template’s associated collaboration. + // + // This member is required. + CollaborationArn *string + + // A unique identifier for the collaboration that the analysis templates belong + // to. Currently accepts collaboration ID. + // + // This member is required. + CollaborationId *string + + // The time that the summary of the analysis template in a collaboration was + // created. + // + // This member is required. + CreateTime *time.Time + + // The identifier used to reference members of the collaboration. Currently only + // supports Amazon Web Services account ID. + // + // This member is required. + CreatorAccountId *string + + // The identifier of the analysis template. + // + // This member is required. + Id *string + + // The name of the analysis template. + // + // This member is required. + Name *string + + // The time that the summary of the analysis template in the collaboration was + // last updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the analysis template. + Description *string + + noSmithyDocumentSerde +} + // The metadata of the collaboration. type CollaborationSummary struct { @@ -367,9 +714,8 @@ type ConfiguredTable struct { // This member is required. AnalysisMethod AnalysisMethod - // The types of analysis rules associated with this configured table. Valid values - // are `AGGREGATION` and `LIST`. Currently, only one analysis rule may be - // associated with a configured table. + // The types of analysis rules associated with this configured table. Currently, + // only one analysis rule may be associated with a configured table. // // This member is required. AnalysisRuleTypes []ConfiguredTableAnalysisRuleType @@ -434,8 +780,7 @@ type ConfiguredTableAnalysisRule struct { // This member is required. Policy ConfiguredTableAnalysisRulePolicy - // The type of configured table analysis rule. Valid values are `AGGREGATION` and - // `LIST`. + // The type of configured table analysis rule. // // This member is required. Type ConfiguredTableAnalysisRuleType @@ -471,6 +816,7 @@ func (*ConfiguredTableAnalysisRulePolicyMemberV1) isConfiguredTableAnalysisRuleP // The following types satisfy this interface: // // ConfiguredTableAnalysisRulePolicyV1MemberAggregation +// ConfiguredTableAnalysisRulePolicyV1MemberCustom // ConfiguredTableAnalysisRulePolicyV1MemberList type ConfiguredTableAnalysisRulePolicyV1 interface { isConfiguredTableAnalysisRulePolicyV1() @@ -486,6 +832,16 @@ type ConfiguredTableAnalysisRulePolicyV1MemberAggregation struct { func (*ConfiguredTableAnalysisRulePolicyV1MemberAggregation) isConfiguredTableAnalysisRulePolicyV1() { } +// A type of analysis rule that enables the table owner to approve custom SQL +// queries on their configured tables. +type ConfiguredTableAnalysisRulePolicyV1MemberCustom struct { + Value AnalysisRuleCustom + + noSmithyDocumentSerde +} + +func (*ConfiguredTableAnalysisRulePolicyV1MemberCustom) isConfiguredTableAnalysisRulePolicyV1() {} + // Analysis rule type that enables only list queries on a configured table. type ConfiguredTableAnalysisRulePolicyV1MemberList struct { Value AnalysisRuleList @@ -1050,6 +1406,13 @@ type ProtectedQueryS3OutputConfiguration struct { // The parameters for the SQL type Protected Query. type ProtectedQuerySQLParameters struct { + // The Amazon Resource Name (ARN) associated with the analysis template within a + // collaboration. + AnalysisTemplateArn *string + + // The protected query SQL parameters. + Parameters map[string]string + // The query string to be submitted. QueryString *string @@ -1100,8 +1463,8 @@ type ProtectedQuerySummary struct { // A schema is a relation within a collaboration. type Schema struct { - // The analysis rule types associated with the schema. Valued values are LIST and - // AGGREGATION. Currently, only one entry is present. + // The analysis rule types associated with the schema. Currently, only one entry + // is present. // // This member is required. AnalysisRuleTypes []AnalysisRuleType @@ -1262,6 +1625,7 @@ type UnknownUnionMember struct { func (*UnknownUnionMember) isAnalysisRulePolicy() {} func (*UnknownUnionMember) isAnalysisRulePolicyV1() {} +func (*UnknownUnionMember) isAnalysisSource() {} func (*UnknownUnionMember) isConfiguredTableAnalysisRulePolicy() {} func (*UnknownUnionMember) isConfiguredTableAnalysisRulePolicyV1() {} func (*UnknownUnionMember) isProtectedQueryOutput() {} diff --git a/service/cleanrooms/types/types_exported_test.go b/service/cleanrooms/types/types_exported_test.go index 1eabf8ecd01..caf1fe1b79b 100644 --- a/service/cleanrooms/types/types_exported_test.go +++ b/service/cleanrooms/types/types_exported_test.go @@ -32,6 +32,9 @@ func ExampleAnalysisRulePolicyV1_outputUsage() { case *types.AnalysisRulePolicyV1MemberAggregation: _ = v.Value // Value is types.AnalysisRuleAggregation + case *types.AnalysisRulePolicyV1MemberCustom: + _ = v.Value // Value is types.AnalysisRuleCustom + case *types.AnalysisRulePolicyV1MemberList: _ = v.Value // Value is types.AnalysisRuleList @@ -45,8 +48,27 @@ func ExampleAnalysisRulePolicyV1_outputUsage() { } var _ *types.AnalysisRuleAggregation +var _ *types.AnalysisRuleCustom var _ *types.AnalysisRuleList +func ExampleAnalysisSource_outputUsage() { + var union types.AnalysisSource + // type switches can be used to check the union value + switch v := union.(type) { + case *types.AnalysisSourceMemberText: + _ = v.Value // Value is string + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *string + func ExampleConfiguredTableAnalysisRulePolicy_outputUsage() { var union types.ConfiguredTableAnalysisRulePolicy // type switches can be used to check the union value @@ -72,6 +94,9 @@ func ExampleConfiguredTableAnalysisRulePolicyV1_outputUsage() { case *types.ConfiguredTableAnalysisRulePolicyV1MemberAggregation: _ = v.Value // Value is types.AnalysisRuleAggregation + case *types.ConfiguredTableAnalysisRulePolicyV1MemberCustom: + _ = v.Value // Value is types.AnalysisRuleCustom + case *types.ConfiguredTableAnalysisRulePolicyV1MemberList: _ = v.Value // Value is types.AnalysisRuleList @@ -85,6 +110,7 @@ func ExampleConfiguredTableAnalysisRulePolicyV1_outputUsage() { } var _ *types.AnalysisRuleAggregation +var _ *types.AnalysisRuleCustom var _ *types.AnalysisRuleList func ExampleProtectedQueryOutput_outputUsage() { diff --git a/service/cleanrooms/validators.go b/service/cleanrooms/validators.go index 71d88ccd324..6b95bf79fe3 100644 --- a/service/cleanrooms/validators.go +++ b/service/cleanrooms/validators.go @@ -10,6 +10,26 @@ import ( "github.com/aws/smithy-go/middleware" ) +type validateOpBatchGetCollaborationAnalysisTemplate struct { +} + +func (*validateOpBatchGetCollaborationAnalysisTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchGetCollaborationAnalysisTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchGetCollaborationAnalysisTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchGetCollaborationAnalysisTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpBatchGetSchema struct { } @@ -30,6 +50,26 @@ func (m *validateOpBatchGetSchema) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpCreateAnalysisTemplate struct { +} + +func (*validateOpCreateAnalysisTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateAnalysisTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateAnalysisTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateAnalysisTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateCollaboration struct { } @@ -130,6 +170,26 @@ func (m *validateOpCreateMembership) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpDeleteAnalysisTemplate struct { +} + +func (*validateOpDeleteAnalysisTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteAnalysisTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteAnalysisTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteAnalysisTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteCollaboration struct { } @@ -250,6 +310,46 @@ func (m *validateOpDeleteMembership) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpGetAnalysisTemplate struct { +} + +func (*validateOpGetAnalysisTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAnalysisTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAnalysisTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAnalysisTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetCollaborationAnalysisTemplate struct { +} + +func (*validateOpGetCollaborationAnalysisTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetCollaborationAnalysisTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetCollaborationAnalysisTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetCollaborationAnalysisTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetCollaboration struct { } @@ -410,6 +510,46 @@ func (m *validateOpGetSchema) HandleInitialize(ctx context.Context, in middlewar return next.HandleInitialize(ctx, in) } +type validateOpListAnalysisTemplates struct { +} + +func (*validateOpListAnalysisTemplates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListAnalysisTemplates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListAnalysisTemplatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListAnalysisTemplatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListCollaborationAnalysisTemplates struct { +} + +func (*validateOpListCollaborationAnalysisTemplates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListCollaborationAnalysisTemplates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListCollaborationAnalysisTemplatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListCollaborationAnalysisTemplatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListConfiguredTableAssociations struct { } @@ -570,6 +710,26 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateAnalysisTemplate struct { +} + +func (*validateOpUpdateAnalysisTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateAnalysisTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateAnalysisTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateAnalysisTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateCollaboration struct { } @@ -690,10 +850,18 @@ func (m *validateOpUpdateProtectedQuery) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +func addOpBatchGetCollaborationAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchGetCollaborationAnalysisTemplate{}, middleware.After) +} + func addOpBatchGetSchemaValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpBatchGetSchema{}, middleware.After) } +func addOpCreateAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateAnalysisTemplate{}, middleware.After) +} + func addOpCreateCollaborationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateCollaboration{}, middleware.After) } @@ -714,6 +882,10 @@ func addOpCreateMembershipValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateMembership{}, middleware.After) } +func addOpDeleteAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteAnalysisTemplate{}, middleware.After) +} + func addOpDeleteCollaborationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteCollaboration{}, middleware.After) } @@ -738,6 +910,14 @@ func addOpDeleteMembershipValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteMembership{}, middleware.After) } +func addOpGetAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAnalysisTemplate{}, middleware.After) +} + +func addOpGetCollaborationAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetCollaborationAnalysisTemplate{}, middleware.After) +} + func addOpGetCollaborationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetCollaboration{}, middleware.After) } @@ -770,6 +950,14 @@ func addOpGetSchemaValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetSchema{}, middleware.After) } +func addOpListAnalysisTemplatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListAnalysisTemplates{}, middleware.After) +} + +func addOpListCollaborationAnalysisTemplatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListCollaborationAnalysisTemplates{}, middleware.After) +} + func addOpListConfiguredTableAssociationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListConfiguredTableAssociations{}, middleware.After) } @@ -802,6 +990,10 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } +func addOpUpdateAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateAnalysisTemplate{}, middleware.After) +} + func addOpUpdateCollaborationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateCollaboration{}, middleware.After) } @@ -899,6 +1091,41 @@ func validateAggregationConstraints(v []types.AggregationConstraint) error { } } +func validateAnalysisParameter(v *types.AnalysisParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AnalysisParameter"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAnalysisParameterList(v []types.AnalysisParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AnalysisParameterList"} + for i := range v { + if err := validateAnalysisParameter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAnalysisRuleAggregation(v *types.AnalysisRuleAggregation) error { if v == nil { return nil @@ -934,6 +1161,21 @@ func validateAnalysisRuleAggregation(v *types.AnalysisRuleAggregation) error { } } +func validateAnalysisRuleCustom(v *types.AnalysisRuleCustom) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AnalysisRuleCustom"} + if v.AllowedAnalyses == nil { + invalidParams.Add(smithy.NewErrParamRequired("AllowedAnalyses")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAnalysisRuleList(v *types.AnalysisRuleList) error { if v == nil { return nil @@ -982,6 +1224,11 @@ func validateConfiguredTableAnalysisRulePolicyV1(v types.ConfiguredTableAnalysis invalidParams.AddNested("[aggregation]", err.(smithy.InvalidParamsError)) } + case *types.ConfiguredTableAnalysisRulePolicyV1MemberCustom: + if err := validateAnalysisRuleCustom(&uv.Value); err != nil { + invalidParams.AddNested("[custom]", err.(smithy.InvalidParamsError)) + } + case *types.ConfiguredTableAnalysisRulePolicyV1MemberList: if err := validateAnalysisRuleList(&uv.Value); err != nil { invalidParams.AddNested("[list]", err.(smithy.InvalidParamsError)) @@ -1150,6 +1397,24 @@ func validateTableReference(v types.TableReference) error { } } +func validateOpBatchGetCollaborationAnalysisTemplateInput(v *BatchGetCollaborationAnalysisTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchGetCollaborationAnalysisTemplateInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if v.AnalysisTemplateArns == nil { + invalidParams.Add(smithy.NewErrParamRequired("AnalysisTemplateArns")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpBatchGetSchemaInput(v *BatchGetSchemaInput) error { if v == nil { return nil @@ -1168,6 +1433,35 @@ func validateOpBatchGetSchemaInput(v *BatchGetSchemaInput) error { } } +func validateOpCreateAnalysisTemplateInput(v *CreateAnalysisTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateAnalysisTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if len(v.Format) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Format")) + } + if v.Source == nil { + invalidParams.Add(smithy.NewErrParamRequired("Source")) + } + if v.AnalysisParameters != nil { + if err := validateAnalysisParameterList(v.AnalysisParameters); err != nil { + invalidParams.AddNested("AnalysisParameters", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateCollaborationInput(v *CreateCollaborationInput) error { if v == nil { return nil @@ -1302,6 +1596,24 @@ func validateOpCreateMembershipInput(v *CreateMembershipInput) error { } } +func validateOpDeleteAnalysisTemplateInput(v *DeleteAnalysisTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteAnalysisTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.AnalysisTemplateIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("AnalysisTemplateIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteCollaborationInput(v *DeleteCollaborationInput) error { if v == nil { return nil @@ -1401,6 +1713,42 @@ func validateOpDeleteMembershipInput(v *DeleteMembershipInput) error { } } +func validateOpGetAnalysisTemplateInput(v *GetAnalysisTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAnalysisTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.AnalysisTemplateIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("AnalysisTemplateIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetCollaborationAnalysisTemplateInput(v *GetCollaborationAnalysisTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetCollaborationAnalysisTemplateInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if v.AnalysisTemplateArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("AnalysisTemplateArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetCollaborationInput(v *GetCollaborationInput) error { if v == nil { return nil @@ -1539,6 +1887,36 @@ func validateOpGetSchemaInput(v *GetSchemaInput) error { } } +func validateOpListAnalysisTemplatesInput(v *ListAnalysisTemplatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListAnalysisTemplatesInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListCollaborationAnalysisTemplatesInput(v *ListCollaborationAnalysisTemplatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListCollaborationAnalysisTemplatesInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListConfiguredTableAssociationsInput(v *ListConfiguredTableAssociationsInput) error { if v == nil { return nil @@ -1678,6 +2056,24 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { } } +func validateOpUpdateAnalysisTemplateInput(v *UpdateAnalysisTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateAnalysisTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.AnalysisTemplateIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("AnalysisTemplateIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateCollaborationInput(v *UpdateCollaborationInput) error { if v == nil { return nil diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index 2b8e92de8e3..a79fe597b75 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudcontrol/go.mod b/service/cloudcontrol/go.mod index 6ee9450e417..ecb939dd289 100644 --- a/service/cloudcontrol/go.mod +++ b/service/cloudcontrol/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudcontrol/go.sum b/service/cloudcontrol/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/cloudcontrol/go.sum +++ b/service/cloudcontrol/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index d7d0986a47b..5193dc93077 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index cf26443ada4..d241862ef76 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index b9291cdcc14..6c299e0fcdb 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index 4503c414e29..a8eeb10c50a 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index 9c23a72ee76..3a9e5ccac6a 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index b462787f1b1..e4eba11b673 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index 166f0c46c57..a7a82ea3de0 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index f588bf34741..fb1375cb219 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtraildata/go.mod b/service/cloudtraildata/go.mod index 21b1277137f..74a3304dfb9 100644 --- a/service/cloudtraildata/go.mod +++ b/service/cloudtraildata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudtraildata/go.sum b/service/cloudtraildata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudtraildata/go.sum +++ b/service/cloudtraildata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index 39ceefb966a..d47ab157a85 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index b65aef94fbc..c86f0831ec5 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index 6af0cd52e7a..8284690af26 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index 8ee10d4a2fa..191c3736a64 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index 68d762e0399..045f5b8a7d1 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecatalyst/go.mod b/service/codecatalyst/go.mod index 57148e0ebd1..eeebcea2005 100644 --- a/service/codecatalyst/go.mod +++ b/service/codecatalyst/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codecatalyst/go.sum b/service/codecatalyst/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codecatalyst/go.sum +++ b/service/codecatalyst/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index 155d4a1dff9..4c2908f630f 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index 9f61f3d5516..c71aaa6bf65 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index 198ae8c16bc..2f9e4297004 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index 4c4c87df1a5..2e940192181 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codegurusecurity/go.mod b/service/codegurusecurity/go.mod index 32334774868..507ab86aebd 100644 --- a/service/codegurusecurity/go.mod +++ b/service/codegurusecurity/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codegurusecurity/go.sum b/service/codegurusecurity/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codegurusecurity/go.sum +++ b/service/codegurusecurity/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index 0b6f0db3e49..d329a46b7e1 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestar/go.mod b/service/codestar/go.mod index 9dd2aef3ad1..4479df4eb89 100644 --- a/service/codestar/go.mod +++ b/service/codestar/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestar/go.sum b/service/codestar/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codestar/go.sum +++ b/service/codestar/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarconnections/api_op_CreateConnection.go b/service/codestarconnections/api_op_CreateConnection.go index 0eae0dcfd0f..8333d894556 100644 --- a/service/codestarconnections/api_op_CreateConnection.go +++ b/service/codestarconnections/api_op_CreateConnection.go @@ -16,10 +16,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a connection that can then be given to other AWS services like -// CodePipeline so that it can access third-party code repositories. The connection -// is in pending status until the third-party connection handshake is completed -// from the console. +// Creates a connection that can then be given to other Amazon Web Services +// services like CodePipeline so that it can access third-party code repositories. +// The connection is in pending status until the third-party connection handshake +// is completed from the console. func (c *Client) CreateConnection(ctx context.Context, params *CreateConnectionInput, optFns ...func(*Options)) (*CreateConnectionOutput, error) { if params == nil { params = &CreateConnectionInput{} @@ -37,8 +37,7 @@ func (c *Client) CreateConnection(ctx context.Context, params *CreateConnectionI type CreateConnectionInput struct { - // The name of the connection to be created. The name must be unique in the - // calling AWS account. + // The name of the connection to be created. // // This member is required. ConnectionName *string @@ -60,8 +59,8 @@ type CreateConnectionInput struct { type CreateConnectionOutput struct { // The Amazon Resource Name (ARN) of the connection to be created. The ARN is used - // as the connection reference when the connection is shared between AWS services. - // The ARN is never reused if the connection is deleted. + // as the connection reference when the connection is shared between Amazon Web + // Services services. The ARN is never reused if the connection is deleted. // // This member is required. ConnectionArn *string diff --git a/service/codestarconnections/api_op_CreateHost.go b/service/codestarconnections/api_op_CreateHost.go index cdc6a31ae60..0cd899c5ec0 100644 --- a/service/codestarconnections/api_op_CreateHost.go +++ b/service/codestarconnections/api_op_CreateHost.go @@ -39,8 +39,7 @@ func (c *Client) CreateHost(ctx context.Context, params *CreateHostInput, optFns type CreateHostInput struct { - // The name of the host to be created. The name must be unique in the calling AWS - // account. + // The name of the host to be created. // // This member is required. Name *string diff --git a/service/codestarconnections/api_op_UntagResource.go b/service/codestarconnections/api_op_UntagResource.go index 04395ac8ce4..8ed8618cd71 100644 --- a/service/codestarconnections/api_op_UntagResource.go +++ b/service/codestarconnections/api_op_UntagResource.go @@ -15,7 +15,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes tags from an AWS resource. +// Removes tags from an Amazon Web Services resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/codestarconnections/deserializers.go b/service/codestarconnections/deserializers.go index 5e0ee563934..5e73315c6ed 100644 --- a/service/codestarconnections/deserializers.go +++ b/service/codestarconnections/deserializers.go @@ -797,6 +797,9 @@ func awsAwsjson10_deserializeOpErrorListConnections(response *smithyhttp.Respons } switch { + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, diff --git a/service/codestarconnections/doc.go b/service/codestarconnections/doc.go index 1efc235f3aa..47b98ddc174 100644 --- a/service/codestarconnections/doc.go +++ b/service/codestarconnections/doc.go @@ -3,23 +3,23 @@ // Package codestarconnections provides the API client, operations, and parameter // types for AWS CodeStar connections. // -// AWS CodeStar Connections This AWS CodeStar Connections API Reference provides -// descriptions and usage examples of the operations and data types for the AWS -// CodeStar Connections API. You can use the connections API to work with -// connections and installations. Connections are configurations that you use to -// connect AWS resources to external code repositories. Each connection is a -// resource that can be given to services such as CodePipeline to connect to a -// third-party repository such as Bitbucket. For example, you can add the -// connection in CodePipeline so that it triggers your pipeline when a code change -// is made to your third-party code repository. Each connection is named and -// associated with a unique ARN that is used to reference the connection. When you -// create a connection, the console initiates a third-party connection handshake. -// Installations are the apps that are used to conduct this handshake. For example, -// the installation for the Bitbucket provider type is the Bitbucket app. When you -// create a connection, you can choose an existing installation or create one. When -// you want to create a connection to an installed provider type such as GitHub -// Enterprise Server, you create a host for your connections. You can work with -// connections by calling: +// AWS CodeStar Connections This Amazon Web Services CodeStar Connections API +// Reference provides descriptions and usage examples of the operations and data +// types for the Amazon Web Services CodeStar Connections API. You can use the +// connections API to work with connections and installations. Connections are +// configurations that you use to connect Amazon Web Services resources to external +// code repositories. Each connection is a resource that can be given to services +// such as CodePipeline to connect to a third-party repository such as Bitbucket. +// For example, you can add the connection in CodePipeline so that it triggers your +// pipeline when a code change is made to your third-party code repository. Each +// connection is named and associated with a unique ARN that is used to reference +// the connection. When you create a connection, the console initiates a +// third-party connection handshake. Installations are the apps that are used to +// conduct this handshake. For example, the installation for the Bitbucket provider +// type is the Bitbucket app. When you create a connection, you can choose an +// existing installation or create one. When you want to create a connection to an +// installed provider type such as GitHub Enterprise Server, you create a host for +// your connections. You can work with connections by calling: // - CreateConnection , which creates a uniquely named connection that can be // referenced by services such as CodePipeline. // - DeleteConnection , which deletes the specified connection. @@ -35,15 +35,17 @@ // status. // - ListHosts , which lists the hosts associated with your account. // -// You can work with tags in AWS CodeStar Connections by calling the following: -// - ListTagsForResource , which gets information about AWS tags for a specified -// Amazon Resource Name (ARN) in AWS CodeStar Connections. -// - TagResource , which adds or updates tags for a resource in AWS CodeStar -// Connections. -// - UntagResource , which removes tags for a resource in AWS CodeStar +// You can work with tags in Amazon Web Services CodeStar Connections by calling +// the following: +// - ListTagsForResource , which gets information about Amazon Web Services tags +// for a specified Amazon Resource Name (ARN) in Amazon Web Services CodeStar // Connections. +// - TagResource , which adds or updates tags for a resource in Amazon Web +// Services CodeStar Connections. +// - UntagResource , which removes tags for a resource in Amazon Web Services +// CodeStar Connections. // -// For information about how to use AWS CodeStar Connections, see the Developer -// Tools User Guide (https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html) +// For information about how to use Amazon Web Services CodeStar Connections, see +// the Developer Tools User Guide (https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html) // . package codestarconnections diff --git a/service/codestarconnections/endpoints_test.go b/service/codestarconnections/endpoints_test.go index ad99521368a..5adcf3a3ebc 100644 --- a/service/codestarconnections/endpoints_test.go +++ b/service/codestarconnections/endpoints_test.go @@ -18,8 +18,8 @@ import ( func TestEndpointCase0(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -57,8 +57,8 @@ func TestEndpointCase0(t *testing.T) { func TestEndpointCase1(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -96,8 +96,8 @@ func TestEndpointCase1(t *testing.T) { func TestEndpointCase2(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-south-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -135,8 +135,8 @@ func TestEndpointCase2(t *testing.T) { func TestEndpointCase3(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-southeast-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -174,8 +174,8 @@ func TestEndpointCase3(t *testing.T) { func TestEndpointCase4(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-southeast-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -213,8 +213,8 @@ func TestEndpointCase4(t *testing.T) { func TestEndpointCase5(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ca-central-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -252,8 +252,8 @@ func TestEndpointCase5(t *testing.T) { func TestEndpointCase6(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-central-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -291,8 +291,8 @@ func TestEndpointCase6(t *testing.T) { func TestEndpointCase7(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -330,8 +330,8 @@ func TestEndpointCase7(t *testing.T) { func TestEndpointCase8(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -369,8 +369,8 @@ func TestEndpointCase8(t *testing.T) { func TestEndpointCase9(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -408,8 +408,8 @@ func TestEndpointCase9(t *testing.T) { func TestEndpointCase10(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-3"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -447,8 +447,8 @@ func TestEndpointCase10(t *testing.T) { func TestEndpointCase11(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("sa-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -486,8 +486,8 @@ func TestEndpointCase11(t *testing.T) { func TestEndpointCase12(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -525,8 +525,8 @@ func TestEndpointCase12(t *testing.T) { func TestEndpointCase13(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -564,8 +564,8 @@ func TestEndpointCase13(t *testing.T) { func TestEndpointCase14(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -603,8 +603,8 @@ func TestEndpointCase14(t *testing.T) { func TestEndpointCase15(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-west-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -642,8 +642,8 @@ func TestEndpointCase15(t *testing.T) { func TestEndpointCase16(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -681,8 +681,8 @@ func TestEndpointCase16(t *testing.T) { func TestEndpointCase17(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -720,8 +720,8 @@ func TestEndpointCase17(t *testing.T) { func TestEndpointCase18(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -759,8 +759,8 @@ func TestEndpointCase18(t *testing.T) { func TestEndpointCase19(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -798,8 +798,8 @@ func TestEndpointCase19(t *testing.T) { func TestEndpointCase20(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -837,8 +837,8 @@ func TestEndpointCase20(t *testing.T) { func TestEndpointCase21(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -876,8 +876,8 @@ func TestEndpointCase21(t *testing.T) { func TestEndpointCase22(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -915,8 +915,8 @@ func TestEndpointCase22(t *testing.T) { func TestEndpointCase23(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -954,8 +954,8 @@ func TestEndpointCase23(t *testing.T) { func TestEndpointCase24(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -993,8 +993,8 @@ func TestEndpointCase24(t *testing.T) { func TestEndpointCase25(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -1032,8 +1032,8 @@ func TestEndpointCase25(t *testing.T) { func TestEndpointCase26(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1067,12 +1067,32 @@ func TestEndpointCase26(t *testing.T) { } } -// For region us-iso-east-1 with FIPS enabled and DualStack disabled +// For region us-iso-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase27(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase28(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1106,12 +1126,32 @@ func TestEndpointCase27(t *testing.T) { } } +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase29(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-iso-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase28(t *testing.T) { +func TestEndpointCase30(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1145,12 +1185,32 @@ func TestEndpointCase28(t *testing.T) { } } +// For region us-isob-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase31(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase29(t *testing.T) { +func TestEndpointCase32(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1184,12 +1244,32 @@ func TestEndpointCase29(t *testing.T) { } } +// For region us-isob-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase33(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase30(t *testing.T) { +func TestEndpointCase34(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -1224,11 +1304,11 @@ func TestEndpointCase30(t *testing.T) { } // For custom endpoint with region set and fips disabled and dualstack disabled -func TestEndpointCase31(t *testing.T) { +func TestEndpointCase35(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1264,10 +1344,10 @@ func TestEndpointCase31(t *testing.T) { } // For custom endpoint with region not set and fips disabled and dualstack disabled -func TestEndpointCase32(t *testing.T) { +func TestEndpointCase36(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1303,11 +1383,11 @@ func TestEndpointCase32(t *testing.T) { } // For custom endpoint with fips enabled and dualstack disabled -func TestEndpointCase33(t *testing.T) { +func TestEndpointCase37(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -1324,11 +1404,11 @@ func TestEndpointCase33(t *testing.T) { } // For custom endpoint with fips disabled and dualstack enabled -func TestEndpointCase34(t *testing.T) { +func TestEndpointCase38(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), Endpoint: ptr.String("https://example.com"), } @@ -1343,3 +1423,19 @@ func TestEndpointCase34(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } + +// Missing region +func TestEndpointCase39(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index 6c415cd5d77..4cb4f966e76 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarconnections/types/enums.go b/service/codestarconnections/types/enums.go index 4422282244d..69f5f636cbc 100644 --- a/service/codestarconnections/types/enums.go +++ b/service/codestarconnections/types/enums.go @@ -29,6 +29,7 @@ const ( ProviderTypeBitbucket ProviderType = "Bitbucket" ProviderTypeGithub ProviderType = "GitHub" ProviderTypeGithubEnterpriseServer ProviderType = "GitHubEnterpriseServer" + ProviderTypeGitlab ProviderType = "GitLab" ) // Values returns all known values for ProviderType. Note that this can be @@ -39,5 +40,6 @@ func (ProviderType) Values() []ProviderType { "Bitbucket", "GitHub", "GitHubEnterpriseServer", + "GitLab", } } diff --git a/service/codestarconnections/types/types.go b/service/codestarconnections/types/types.go index 0f3189d28dd..523d705ab67 100644 --- a/service/codestarconnections/types/types.go +++ b/service/codestarconnections/types/types.go @@ -7,18 +7,18 @@ import ( ) // A resource that is used to connect third-party source providers with services -// like AWS CodePipeline. Note: A connection created through CloudFormation, the -// CLI, or the SDK is in `PENDING` status by default. You can make its status +// like CodePipeline. Note: A connection created through CloudFormation, the CLI, +// or the SDK is in `PENDING` status by default. You can make its status // `AVAILABLE` by updating the connection in the console. type Connection struct { // The Amazon Resource Name (ARN) of the connection. The ARN is used as the - // connection reference when the connection is shared between AWS services. The ARN - // is never reused if the connection is deleted. + // connection reference when the connection is shared between Amazon Web Services. + // The ARN is never reused if the connection is deleted. ConnectionArn *string - // The name of the connection. Connection names must be unique in an AWS user - // account. + // The name of the connection. Connection names must be unique in an Amazon Web + // Services account. ConnectionName *string // The current status of the connection. @@ -75,7 +75,7 @@ type Host struct { } // A tag is a key-value pair that is used to manage the resource. This tag is -// available for use by AWS services that support tags. +// available for use by Amazon Web Services services that support tags. type Tag struct { // The tag's key. diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index d9e3b724cf5..71b21a41428 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index 94b82fb1310..fc5e0b52289 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index 6cb25fdda88..4a112076f81 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index 36a0ed29af7..5e851864256 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index 0967f88a41f..178888aa1ed 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index edc397f590b..7c4dfe13802 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index 796c523e6f2..dc353ba6226 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/configservice/go.mod b/service/configservice/go.mod index b2961bd23ff..01e51cff548 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/configservice/go.sum b/service/configservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connect/go.mod b/service/connect/go.mod index c39071c96f5..0d9de9cf92a 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connect/go.sum b/service/connect/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcampaigns/go.mod b/service/connectcampaigns/go.mod index fa2113186bd..a291c85dd8a 100644 --- a/service/connectcampaigns/go.mod +++ b/service/connectcampaigns/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcampaigns/go.sum b/service/connectcampaigns/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/connectcampaigns/go.sum +++ b/service/connectcampaigns/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcases/go.mod b/service/connectcases/go.mod index 1c8b9ad6f46..346cc8165c8 100644 --- a/service/connectcases/go.mod +++ b/service/connectcases/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcases/go.sum b/service/connectcases/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/connectcases/go.sum +++ b/service/connectcases/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcontactlens/go.mod b/service/connectcontactlens/go.mod index ff23656e0a5..b8a180286d0 100644 --- a/service/connectcontactlens/go.mod +++ b/service/connectcontactlens/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/connectcontactlens/go.sum +++ b/service/connectcontactlens/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index a87dcb68e7e..289bf6562ff 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/controltower/go.mod b/service/controltower/go.mod index aebb9f7a6bc..f4db6014197 100644 --- a/service/controltower/go.mod +++ b/service/controltower/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/controltower/go.sum b/service/controltower/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/controltower/go.sum +++ b/service/controltower/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index 5e9e3382cb4..d7031fbf146 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index 270bf4dfe91..b202ccc4dec 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/customerprofiles/go.mod b/service/customerprofiles/go.mod index 9366f6c4852..127c167b4a4 100644 --- a/service/customerprofiles/go.mod +++ b/service/customerprofiles/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/customerprofiles/go.sum +++ b/service/customerprofiles/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index d409bd24ffd..4e6d72c845b 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/databrew/go.mod b/service/databrew/go.mod index 79d1ca218ff..50633aca700 100644 --- a/service/databrew/go.mod +++ b/service/databrew/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/databrew/go.sum b/service/databrew/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index 1a12eba5c50..e6fcdc37b27 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index 52f21da12bd..7227a15e3b8 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datasync/go.mod b/service/datasync/go.mod index 0caa476f95f..edd814d1f44 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datasync/go.sum b/service/datasync/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dax/go.mod b/service/dax/go.mod index 5cb55f0bf38..b62d852ceed 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dax/go.sum b/service/dax/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/detective/go.mod b/service/detective/go.mod index 9fe59e97557..4fb399b59dd 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/detective/go.sum b/service/detective/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index 9f11dbd2707..3dc1c00bb6e 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devopsguru/go.mod b/service/devopsguru/go.mod index e5dce16fd08..8998358edcc 100644 --- a/service/devopsguru/go.mod +++ b/service/devopsguru/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/devopsguru/go.sum +++ b/service/devopsguru/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index 53197ac0908..01640620969 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index 82cf623fc5c..d7df5086292 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dlm/go.mod b/service/dlm/go.mod index 83bcafdf0ea..c85326da613 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dlm/go.sum b/service/dlm/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/docdb/go.mod b/service/docdb/go.mod index d6c730ca46b..cf8eba780ef 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/docdb/go.sum b/service/docdb/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/docdbelastic/go.mod b/service/docdbelastic/go.mod index 82a439abb95..5f5120a034c 100644 --- a/service/docdbelastic/go.mod +++ b/service/docdbelastic/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/docdbelastic/go.sum b/service/docdbelastic/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/docdbelastic/go.sum +++ b/service/docdbelastic/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/drs/go.mod b/service/drs/go.mod index f811fde417d..4e896da09bc 100644 --- a/service/drs/go.mod +++ b/service/drs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/drs/go.sum b/service/drs/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/drs/go.sum +++ b/service/drs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/drs/types/enums.go b/service/drs/types/enums.go index 170ae948ddd..e58132e5da6 100644 --- a/service/drs/types/enums.go +++ b/service/drs/types/enums.go @@ -849,6 +849,7 @@ type TargetInstanceTypeRightSizingMethod string const ( TargetInstanceTypeRightSizingMethodNone TargetInstanceTypeRightSizingMethod = "NONE" TargetInstanceTypeRightSizingMethodBasic TargetInstanceTypeRightSizingMethod = "BASIC" + TargetInstanceTypeRightSizingMethodInAws TargetInstanceTypeRightSizingMethod = "IN_AWS" ) // Values returns all known values for TargetInstanceTypeRightSizingMethod. Note @@ -859,6 +860,7 @@ func (TargetInstanceTypeRightSizingMethod) Values() []TargetInstanceTypeRightSiz return []TargetInstanceTypeRightSizingMethod{ "NONE", "BASIC", + "IN_AWS", } } diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index 5891dca93fb..553bfd72da1 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 4c45ed520fb..8bb4be59e31 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ebs/go.mod b/service/ebs/go.mod index a2ad12e182f..ea79db63309 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ebs/go.sum b/service/ebs/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ec2/go.mod b/service/ec2/go.mod index d237b82b7b3..261550bd906 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ec2/go.sum b/service/ec2/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index 69fc645c94e..d287c9df294 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ecr/go.mod b/service/ecr/go.mod index 819a66a5a92..96f4566a9f5 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecr/go.sum b/service/ecr/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ecrpublic/go.mod b/service/ecrpublic/go.mod index 4668d259292..8affcd2dbde 100644 --- a/service/ecrpublic/go.mod +++ b/service/ecrpublic/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ecrpublic/go.sum +++ b/service/ecrpublic/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ecs/go.mod b/service/ecs/go.mod index 5f805bd6361..641eaf6177e 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecs/go.sum b/service/ecs/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/efs/go.mod b/service/efs/go.mod index 7ee3bdb5e42..4600347de09 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/efs/go.sum b/service/efs/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eks/go.mod b/service/eks/go.mod index 75bc6dfdff9..7590f281adc 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/eks/go.sum b/service/eks/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index b81bf219783..4cc13e44021 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index 2cb19af08ec..ec98d6ccf74 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index 6d1f3e44576..aebaec45f15 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index 3d308bd7817..9158c45c2a8 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index 95211afb61f..646e7970f8a 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index 57fff7d0376..92e6692d93f 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index ac4c8b417a9..80cdffbcac5 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/emr/go.mod b/service/emr/go.mod index 81b13755b22..48cbf795e3f 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/emr/go.sum b/service/emr/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/emrcontainers/go.mod b/service/emrcontainers/go.mod index 6bd182efcb0..d262906e4b8 100644 --- a/service/emrcontainers/go.mod +++ b/service/emrcontainers/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/emrcontainers/go.sum +++ b/service/emrcontainers/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/emrcontainers/internal/endpoints/endpoints.go b/service/emrcontainers/internal/endpoints/endpoints.go index c006221ec6d..f350498d9bf 100644 --- a/service/emrcontainers/internal/endpoints/endpoints.go +++ b/service/emrcontainers/internal/endpoints/endpoints.go @@ -139,6 +139,9 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "af-south-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-east-1", }: endpoints.Endpoint{}, diff --git a/service/emrserverless/go.mod b/service/emrserverless/go.mod index 29ecba11ec7..bd45fb30004 100644 --- a/service/emrserverless/go.mod +++ b/service/emrserverless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/emrserverless/go.sum b/service/emrserverless/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/emrserverless/go.sum +++ b/service/emrserverless/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/entityresolution/go.mod b/service/entityresolution/go.mod index d906395e429..4eaad7056a5 100644 --- a/service/entityresolution/go.mod +++ b/service/entityresolution/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/entityresolution/go.sum b/service/entityresolution/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/entityresolution/go.sum +++ b/service/entityresolution/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index 83761b464e6..6eab35e9f76 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.28 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/evidently/go.mod b/service/evidently/go.mod index b6a35d0a66d..5f711b27968 100644 --- a/service/evidently/go.mod +++ b/service/evidently/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/evidently/go.sum b/service/evidently/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/evidently/go.sum +++ b/service/evidently/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspace/go.mod b/service/finspace/go.mod index a348232921f..188d983b15e 100644 --- a/service/finspace/go.mod +++ b/service/finspace/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/finspace/go.sum b/service/finspace/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/finspace/go.sum +++ b/service/finspace/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspacedata/go.mod b/service/finspacedata/go.mod index 40449144ea1..826d4dcf171 100644 --- a/service/finspacedata/go.mod +++ b/service/finspacedata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/finspacedata/go.sum +++ b/service/finspacedata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/firehose/go.mod b/service/firehose/go.mod index 4e246c6d978..7816f0284fa 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/firehose/go.sum b/service/firehose/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fis/go.mod b/service/fis/go.mod index d4056c6f38e..8669d617bde 100644 --- a/service/fis/go.mod +++ b/service/fis/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fis/go.sum b/service/fis/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/fis/go.sum +++ b/service/fis/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fms/go.mod b/service/fms/go.mod index cf280c4db53..92f6fd6231a 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fms/go.sum b/service/fms/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecast/go.mod b/service/forecast/go.mod index ca63dbbb545..4601278e110 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/forecast/go.sum b/service/forecast/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index ef2ce7c4d0a..8a8c24d91a4 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index 4407f289a0b..ef81af90a73 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fsx/go.mod b/service/fsx/go.mod index 9d19ea2e0f7..c33b3986a83 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fsx/go.sum b/service/fsx/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index 083826843f1..95c99d7e0f1 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/gamesparks/go.mod b/service/gamesparks/go.mod index 4073ac5411e..65fa48fa5e6 100644 --- a/service/gamesparks/go.mod +++ b/service/gamesparks/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/gamesparks/go.sum b/service/gamesparks/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/gamesparks/go.sum +++ b/service/gamesparks/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glacier/go.mod b/service/glacier/go.mod index 90173681e7d..95b103f9913 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/glacier/go.sum b/service/glacier/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index c6042deecef..162c6a86863 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glue/go.mod b/service/glue/go.mod index fcb240a40af..f03a75842cd 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/glue/go.sum b/service/glue/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/grafana/go.mod b/service/grafana/go.mod index 3c116a4e7ee..aed61b58bb0 100644 --- a/service/grafana/go.mod +++ b/service/grafana/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/grafana/go.sum b/service/grafana/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/grafana/go.sum +++ b/service/grafana/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index a92e6ed0b2d..ec03ab8194c 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrassv2/go.mod b/service/greengrassv2/go.mod index c35e4ce534e..055fdf46d4d 100644 --- a/service/greengrassv2/go.mod +++ b/service/greengrassv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/greengrassv2/go.sum +++ b/service/greengrassv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index 104c0db1d6c..f715f915a78 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index e5fc218e8b8..fe27a5db85c 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/health/go.mod b/service/health/go.mod index 8cc0e77703c..e49fdfedbc0 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/health/go.sum b/service/health/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/healthlake/go.mod b/service/healthlake/go.mod index e52bad7191a..54071a66931 100644 --- a/service/healthlake/go.mod +++ b/service/healthlake/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/healthlake/go.sum +++ b/service/healthlake/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/honeycode/go.mod b/service/honeycode/go.mod index d201ab4cb02..f1cb3708b08 100644 --- a/service/honeycode/go.mod +++ b/service/honeycode/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/honeycode/go.sum b/service/honeycode/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/honeycode/go.sum +++ b/service/honeycode/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iam/go.mod b/service/iam/go.mod index 540cccf21de..cb4ee69dbae 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iam/go.sum b/service/iam/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index 33480167a44..4dd59660d6f 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index 995b196d898..bfba6866d55 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector/go.mod b/service/inspector/go.mod index 533881a7c93..73ee956ba08 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspector/go.sum b/service/inspector/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector2/api_op_BatchGetFindingDetails.go b/service/inspector2/api_op_BatchGetFindingDetails.go new file mode 100644 index 00000000000..14bb2d47515 --- /dev/null +++ b/service/inspector2/api_op_BatchGetFindingDetails.go @@ -0,0 +1,264 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package inspector2 + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/inspector2/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets vulnerability details for findings. +func (c *Client) BatchGetFindingDetails(ctx context.Context, params *BatchGetFindingDetailsInput, optFns ...func(*Options)) (*BatchGetFindingDetailsOutput, error) { + if params == nil { + params = &BatchGetFindingDetailsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchGetFindingDetails", params, optFns, c.addOperationBatchGetFindingDetailsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchGetFindingDetailsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchGetFindingDetailsInput struct { + + // A list of finding ARNs. + // + // This member is required. + FindingArns []string + + noSmithyDocumentSerde +} + +type BatchGetFindingDetailsOutput struct { + + // Error information for findings that details could not be returned for. + Errors []types.FindingDetailsError + + // A finding's vulnerability details. + FindingDetails []types.FindingDetail + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchGetFindingDetailsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchGetFindingDetails{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchGetFindingDetails{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addBatchGetFindingDetailsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpBatchGetFindingDetailsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchGetFindingDetails(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opBatchGetFindingDetails(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "inspector2", + OperationName: "BatchGetFindingDetails", + } +} + +type opBatchGetFindingDetailsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opBatchGetFindingDetailsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opBatchGetFindingDetailsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "inspector2" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "inspector2" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("inspector2") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addBatchGetFindingDetailsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opBatchGetFindingDetailsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/inspector2/deserializers.go b/service/inspector2/deserializers.go index 0f931a5a991..933414cf43e 100644 --- a/service/inspector2/deserializers.go +++ b/service/inspector2/deserializers.go @@ -506,6 +506,167 @@ func awsRestjson1_deserializeOpDocumentBatchGetCodeSnippetOutput(v **BatchGetCod return nil } +type awsRestjson1_deserializeOpBatchGetFindingDetails struct { +} + +func (*awsRestjson1_deserializeOpBatchGetFindingDetails) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpBatchGetFindingDetails) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response, &metadata) + } + output := &BatchGetFindingDetailsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(v **BatchGetFindingDetailsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *BatchGetFindingDetailsOutput + if *v == nil { + sv = &BatchGetFindingDetailsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "errors": + if err := awsRestjson1_deserializeDocumentFindingDetailsErrorList(&sv.Errors, value); err != nil { + return err + } + + case "findingDetails": + if err := awsRestjson1_deserializeDocumentFindingDetails(&sv.FindingDetails, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpBatchGetFreeTrialInfo struct { } @@ -10669,6 +10830,98 @@ func awsRestjson1_deserializeDocumentEpssDetails(v **types.EpssDetails, value in return nil } +func awsRestjson1_deserializeDocumentEvidence(v **types.Evidence, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Evidence + if *v == nil { + sv = &types.Evidence{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "evidenceDetail": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EvidenceDetail to be of type string, got %T instead", value) + } + sv.EvidenceDetail = ptr.String(jtv) + } + + case "evidenceRule": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EvidenceRule to be of type string, got %T instead", value) + } + sv.EvidenceRule = ptr.String(jtv) + } + + case "severity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EvidenceSeverity to be of type string, got %T instead", value) + } + sv.Severity = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentEvidenceList(v *[]types.Evidence, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Evidence + if *v == nil { + cv = []types.Evidence{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Evidence + destAddr := &col + if err := awsRestjson1_deserializeDocumentEvidence(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentExploitabilityDetails(v **types.ExploitabilityDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -11613,6 +11866,254 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ return nil } +func awsRestjson1_deserializeDocumentFindingDetail(v **types.FindingDetail, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FindingDetail + if *v == nil { + sv = &types.FindingDetail{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cisaData": + if err := awsRestjson1_deserializeDocumentCisaData(&sv.CisaData, value); err != nil { + return err + } + + case "cwes": + if err := awsRestjson1_deserializeDocumentCwes(&sv.Cwes, value); err != nil { + return err + } + + case "epssScore": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EpssScore = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.EpssScore = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "evidences": + if err := awsRestjson1_deserializeDocumentEvidenceList(&sv.Evidences, value); err != nil { + return err + } + + case "exploitObserved": + if err := awsRestjson1_deserializeDocumentExploitObserved(&sv.ExploitObserved, value); err != nil { + return err + } + + case "findingArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FindingArn to be of type string, got %T instead", value) + } + sv.FindingArn = ptr.String(jtv) + } + + case "referenceUrls": + if err := awsRestjson1_deserializeDocumentVulnerabilityReferenceUrls(&sv.ReferenceUrls, value); err != nil { + return err + } + + case "riskScore": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected RiskScore to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RiskScore = ptr.Int32(int32(i64)) + } + + case "tools": + if err := awsRestjson1_deserializeDocumentTools(&sv.Tools, value); err != nil { + return err + } + + case "ttps": + if err := awsRestjson1_deserializeDocumentTtps(&sv.Ttps, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFindingDetails(v *[]types.FindingDetail, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.FindingDetail + if *v == nil { + cv = []types.FindingDetail{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FindingDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentFindingDetail(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentFindingDetailsError(v **types.FindingDetailsError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FindingDetailsError + if *v == nil { + sv = &types.FindingDetailsError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "errorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FindingDetailsErrorCode to be of type string, got %T instead", value) + } + sv.ErrorCode = types.FindingDetailsErrorCode(jtv) + } + + case "errorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + case "findingArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FindingArn to be of type string, got %T instead", value) + } + sv.FindingArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFindingDetailsErrorList(v *[]types.FindingDetailsError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.FindingDetailsError + if *v == nil { + cv = []types.FindingDetailsError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FindingDetailsError + destAddr := &col + if err := awsRestjson1_deserializeDocumentFindingDetailsError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentFindingList(v *[]types.Finding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15336,6 +15837,42 @@ func awsRestjson1_deserializeDocumentTitleAggregationResponse(v **types.TitleAgg return nil } +func awsRestjson1_deserializeDocumentTools(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Tool to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentTtps(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/inspector2/generated.json b/service/inspector2/generated.json index d1449677083..768aff79412 100644 --- a/service/inspector2/generated.json +++ b/service/inspector2/generated.json @@ -12,6 +12,7 @@ "api_op_AssociateMember.go", "api_op_BatchGetAccountStatus.go", "api_op_BatchGetCodeSnippet.go", + "api_op_BatchGetFindingDetails.go", "api_op_BatchGetFreeTrialInfo.go", "api_op_BatchGetMemberEc2DeepInspectionStatus.go", "api_op_BatchUpdateMemberEc2DeepInspectionStatus.go", diff --git a/service/inspector2/go.mod b/service/inspector2/go.mod index d670afad0ec..099422fa574 100644 --- a/service/inspector2/go.mod +++ b/service/inspector2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspector2/go.sum b/service/inspector2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/inspector2/go.sum +++ b/service/inspector2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector2/serializers.go b/service/inspector2/serializers.go index 48d90274182..cb9a1f30ecb 100644 --- a/service/inspector2/serializers.go +++ b/service/inspector2/serializers.go @@ -245,6 +245,83 @@ func awsRestjson1_serializeOpDocumentBatchGetCodeSnippetInput(v *BatchGetCodeSni return nil } +type awsRestjson1_serializeOpBatchGetFindingDetails struct { +} + +func (*awsRestjson1_serializeOpBatchGetFindingDetails) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpBatchGetFindingDetails) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*BatchGetFindingDetailsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/findings/details/batch/get") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentBatchGetFindingDetailsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsBatchGetFindingDetailsInput(v *BatchGetFindingDetailsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchGetFindingDetailsInput(v *BatchGetFindingDetailsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FindingArns != nil { + ok := object.Key("findingArns") + if err := awsRestjson1_serializeDocumentFindingArnList(v.FindingArns, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpBatchGetFreeTrialInfo struct { } @@ -4422,6 +4499,17 @@ func awsRestjson1_serializeDocumentFilterCriteria(v *types.FilterCriteria, value return nil } +func awsRestjson1_serializeDocumentFindingArnList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsRestjson1_serializeDocumentFindingArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() diff --git a/service/inspector2/types/enums.go b/service/inspector2/types/enums.go index d305a831e6a..50b076d4a69 100644 --- a/service/inspector2/types/enums.go +++ b/service/inspector2/types/enums.go @@ -494,6 +494,28 @@ func (FilterAction) Values() []FilterAction { } } +type FindingDetailsErrorCode string + +// Enum values for FindingDetailsErrorCode +const ( + FindingDetailsErrorCodeInternalError FindingDetailsErrorCode = "INTERNAL_ERROR" + FindingDetailsErrorCodeAccessDenied FindingDetailsErrorCode = "ACCESS_DENIED" + FindingDetailsErrorCodeFindingDetailsNotFound FindingDetailsErrorCode = "FINDING_DETAILS_NOT_FOUND" + FindingDetailsErrorCodeInvalidInput FindingDetailsErrorCode = "INVALID_INPUT" +) + +// Values returns all known values for FindingDetailsErrorCode. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (FindingDetailsErrorCode) Values() []FindingDetailsErrorCode { + return []FindingDetailsErrorCode{ + "INTERNAL_ERROR", + "ACCESS_DENIED", + "FINDING_DETAILS_NOT_FOUND", + "INVALID_INPUT", + } +} + type FindingStatus string // Enum values for FindingStatus diff --git a/service/inspector2/types/types.go b/service/inspector2/types/types.go index 1706fbf5372..8a181c85a8a 100644 --- a/service/inspector2/types/types.go +++ b/service/inspector2/types/types.go @@ -1044,7 +1044,7 @@ type Destination struct { // This member is required. KmsKeyArn *string - // The prefix of the Amazon S3 bucket used to export findings. + // The prefix that the findings will be written under. KeyPrefix *string noSmithyDocumentSerde @@ -1204,6 +1204,21 @@ type EpssDetails struct { noSmithyDocumentSerde } +// Details of the evidence for a vulnerability identified in a finding. +type Evidence struct { + + // The evidence details. + EvidenceDetail *string + + // The evidence rule. + EvidenceRule *string + + // The evidence severity. + Severity *string + + noSmithyDocumentSerde +} + // The details of an exploit available for a finding discovered in your // environment. type ExploitabilityDetails struct { @@ -1428,7 +1443,7 @@ type FilterCriteria struct { // Details on the date and time a finding was last seen used to filter findings. LastObservedAt []DateFilter - // Details on the ingress source addresses used to filter findings. + // Details on network protocol used to filter findings. NetworkProtocol []StringFilter // Details on the port ranges used to filter findings. @@ -1565,6 +1580,66 @@ type Finding struct { noSmithyDocumentSerde } +// Details of the vulnerability identified in a finding. +type FindingDetail struct { + + // The Cybersecurity and Infrastructure Security Agency (CISA) details for a + // specific vulnerability. + CisaData *CisaData + + // The Common Weakness Enumerations (CWEs) associated with the vulnerability. + Cwes []string + + // The Exploit Prediction Scoring System (EPSS) score of the vulnerability. + EpssScore *float64 + + // Information on the evidence of the vulnerability. + Evidences []Evidence + + // Contains information on when this exploit was observed. + ExploitObserved *ExploitObserved + + // The finding ARN that the vulnerability details are associated with. + FindingArn *string + + // The reference URLs for the vulnerability data. + ReferenceUrls []string + + // The risk score of the vulnerability. + RiskScore *int32 + + // The known malware tools or kits that can exploit the vulnerability. + Tools []string + + // The MITRE adversary tactics, techniques, or procedures (TTPs) associated with + // the vulnerability. + Ttps []string + + noSmithyDocumentSerde +} + +// Details about an error encountered when trying to return vulnerability data for +// a finding. +type FindingDetailsError struct { + + // The error code. + // + // This member is required. + ErrorCode FindingDetailsErrorCode + + // The error message. + // + // This member is required. + ErrorMessage *string + + // The finding ARN that returned an error. + // + // This member is required. + FindingArn *string + + noSmithyDocumentSerde +} + // The details that define an aggregation based on finding type. type FindingTypeAggregation struct { diff --git a/service/inspector2/validators.go b/service/inspector2/validators.go index 9c267c80faf..44817202ca5 100644 --- a/service/inspector2/validators.go +++ b/service/inspector2/validators.go @@ -50,6 +50,26 @@ func (m *validateOpBatchGetCodeSnippet) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpBatchGetFindingDetails struct { +} + +func (*validateOpBatchGetFindingDetails) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchGetFindingDetails) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchGetFindingDetailsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchGetFindingDetailsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpBatchGetFreeTrialInfo struct { } @@ -638,6 +658,10 @@ func addOpBatchGetCodeSnippetValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpBatchGetCodeSnippet{}, middleware.After) } +func addOpBatchGetFindingDetailsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchGetFindingDetails{}, middleware.After) +} + func addOpBatchGetFreeTrialInfoValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpBatchGetFreeTrialInfo{}, middleware.After) } @@ -1765,6 +1789,21 @@ func validateOpBatchGetCodeSnippetInput(v *BatchGetCodeSnippetInput) error { } } +func validateOpBatchGetFindingDetailsInput(v *BatchGetFindingDetailsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchGetFindingDetailsInput"} + if v.FindingArns == nil { + invalidParams.Add(smithy.NewErrParamRequired("FindingArns")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpBatchGetFreeTrialInfoInput(v *BatchGetFreeTrialInfoInput) error { if v == nil { return nil diff --git a/service/internal/accept-encoding/go.mod b/service/internal/accept-encoding/go.mod index 86cacf0b311..d615c38f64b 100644 --- a/service/internal/accept-encoding/go.mod +++ b/service/internal/accept-encoding/go.mod @@ -2,4 +2,4 @@ module github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding go 1.15 -require github.com/aws/smithy-go v1.13.5 +require github.com/aws/smithy-go v1.14.0 diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/internal/accept-encoding/go.sum +++ b/service/internal/accept-encoding/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index d7ae16085a7..762f00e2ea3 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.13.14 github.com/aws/aws-sdk-go-v2/service/s3 v1.37.1 github.com/aws/aws-sdk-go-v2/service/schemas v1.15.14 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index 80b274f1485..6c2a7a85251 100644 --- a/service/internal/benchmark/go.sum +++ b/service/internal/benchmark/go.sum @@ -1,5 +1,7 @@ github.com/aws/aws-sdk-go v1.44.28 h1:h/OAqEqY18wq//v6h4GNPMmCkxuzSDrWuGyrvSiRqf4= github.com/aws/aws-sdk-go v1.44.28/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/checksum/go.mod b/service/internal/checksum/go.mod index 4db803e1216..5da86a59516 100644 --- a/service/internal/checksum/go.mod +++ b/service/internal/checksum/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.19.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/checksum/go.sum b/service/internal/checksum/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/internal/checksum/go.sum +++ b/service/internal/checksum/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/endpoint-discovery/go.mod b/service/internal/endpoint-discovery/go.mod index 49786808c5e..c7e3f453b4a 100644 --- a/service/internal/endpoint-discovery/go.mod +++ b/service/internal/endpoint-discovery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.19.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/endpoint-discovery/go.sum b/service/internal/endpoint-discovery/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/internal/endpoint-discovery/go.sum +++ b/service/internal/endpoint-discovery/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/eventstreamtesting/go.sum b/service/internal/eventstreamtesting/go.sum index 1514953fd86..5ba4098ba99 100644 --- a/service/internal/eventstreamtesting/go.sum +++ b/service/internal/eventstreamtesting/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 90d5a71d894..79cb6abe679 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -85,7 +85,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/wafregional v1.13.17 github.com/aws/aws-sdk-go-v2/service/wafv2 v1.36.1 github.com/aws/aws-sdk-go-v2/service/workspaces v1.28.18 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/presigned-url/go.mod b/service/internal/presigned-url/go.mod index dafbd3359d9..95a2c5f0821 100644 --- a/service/internal/presigned-url/go.mod +++ b/service/internal/presigned-url/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.19.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/internal/presigned-url/go.sum +++ b/service/internal/presigned-url/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/s3shared/go.mod b/service/internal/s3shared/go.mod index 0b4405b6488..fea0c7309c9 100644 --- a/service/internal/s3shared/go.mod +++ b/service/internal/s3shared/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.19.1 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/internal/s3shared/go.sum +++ b/service/internal/s3shared/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internetmonitor/go.mod b/service/internetmonitor/go.mod index c3a47396747..8841440cc56 100644 --- a/service/internetmonitor/go.mod +++ b/service/internetmonitor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internetmonitor/go.sum b/service/internetmonitor/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/internetmonitor/go.sum +++ b/service/internetmonitor/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internetmonitor/internal/endpoints/endpoints.go b/service/internetmonitor/internal/endpoints/endpoints.go index a53fa5dd7b1..0d7f50daa57 100644 --- a/service/internetmonitor/internal/endpoints/endpoints.go +++ b/service/internetmonitor/internal/endpoints/endpoints.go @@ -199,6 +199,12 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "internetmonitor.ca-central-1.api.aws", }, + endpoints.EndpointKey{ + Region: "ca-central-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "internetmonitor-fips.ca-central-1.api.aws", + }, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{ @@ -259,21 +265,45 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "internetmonitor.us-east-1.api.aws", }, + endpoints.EndpointKey{ + Region: "us-east-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "internetmonitor-fips.us-east-1.api.aws", + }, endpoints.EndpointKey{ Region: "us-east-2", }: endpoints.Endpoint{ Hostname: "internetmonitor.us-east-2.api.aws", }, + endpoints.EndpointKey{ + Region: "us-east-2", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "internetmonitor-fips.us-east-2.api.aws", + }, endpoints.EndpointKey{ Region: "us-west-1", }: endpoints.Endpoint{ Hostname: "internetmonitor.us-west-1.api.aws", }, + endpoints.EndpointKey{ + Region: "us-west-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "internetmonitor-fips.us-west-1.api.aws", + }, endpoints.EndpointKey{ Region: "us-west-2", }: endpoints.Endpoint{ Hostname: "internetmonitor.us-west-2.api.aws", }, + endpoints.EndpointKey{ + Region: "us-west-2", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "internetmonitor-fips.us-west-2.api.aws", + }, }, }, { diff --git a/service/iot/go.mod b/service/iot/go.mod index 88514f0da3f..0a487a4c76b 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot/go.sum b/service/iot/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index 9a788fbc401..d485f52c240 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 934e3bdc650..bd3b46bb5c6 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index 453672e1765..7b30d25fb1e 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index e214ba2a5f5..81f7a004ec3 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdeviceadvisor/go.mod b/service/iotdeviceadvisor/go.mod index a32c1f0b379..05e33856644 100644 --- a/service/iotdeviceadvisor/go.mod +++ b/service/iotdeviceadvisor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotdeviceadvisor/go.sum +++ b/service/iotdeviceadvisor/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index fd34f990297..a449b78cb18 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index ee24ef99bbf..2bf8a54cd3b 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleethub/go.mod b/service/iotfleethub/go.mod index 55c89e3d764..fe3099b1e54 100644 --- a/service/iotfleethub/go.mod +++ b/service/iotfleethub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotfleethub/go.sum +++ b/service/iotfleethub/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleetwise/go.mod b/service/iotfleetwise/go.mod index 71d74b347e4..e6ce25d9ba2 100644 --- a/service/iotfleetwise/go.mod +++ b/service/iotfleetwise/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotfleetwise/go.sum b/service/iotfleetwise/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotfleetwise/go.sum +++ b/service/iotfleetwise/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index 8f3f8750dcd..2f1f80e8470 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotroborunner/go.mod b/service/iotroborunner/go.mod index b65b3789821..074a722c83a 100644 --- a/service/iotroborunner/go.mod +++ b/service/iotroborunner/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotroborunner/go.sum b/service/iotroborunner/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotroborunner/go.sum +++ b/service/iotroborunner/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index efcdc3458e3..ffc2b403756 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index 0c9b2bc159c..95d6612656b 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index 8cc21c9d7b0..bfe7b63a82a 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iottwinmaker/go.mod b/service/iottwinmaker/go.mod index 90857ff5f94..955574082dc 100644 --- a/service/iottwinmaker/go.mod +++ b/service/iottwinmaker/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iottwinmaker/go.sum b/service/iottwinmaker/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iottwinmaker/go.sum +++ b/service/iottwinmaker/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotwireless/go.mod b/service/iotwireless/go.mod index 1f87eb62382..be1c5234dd6 100644 --- a/service/iotwireless/go.mod +++ b/service/iotwireless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/iotwireless/go.sum +++ b/service/iotwireless/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivs/go.mod b/service/ivs/go.mod index 8cade151641..5d6b854bf73 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivs/go.sum b/service/ivs/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivschat/go.mod b/service/ivschat/go.mod index 2c6e78ff708..f28c6b688b6 100644 --- a/service/ivschat/go.mod +++ b/service/ivschat/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivschat/go.sum b/service/ivschat/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ivschat/go.sum +++ b/service/ivschat/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivsrealtime/go.mod b/service/ivsrealtime/go.mod index 44ac0b28e9f..46fd86b0fc2 100644 --- a/service/ivsrealtime/go.mod +++ b/service/ivsrealtime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivsrealtime/go.sum b/service/ivsrealtime/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ivsrealtime/go.sum +++ b/service/ivsrealtime/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafka/go.mod b/service/kafka/go.mod index 6f4603e6507..d1e2a6407aa 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kafka/go.sum b/service/kafka/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafkaconnect/go.mod b/service/kafkaconnect/go.mod index 880a75fd632..d18ee65eb81 100644 --- a/service/kafkaconnect/go.mod +++ b/service/kafkaconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kafkaconnect/go.sum b/service/kafkaconnect/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kafkaconnect/go.sum +++ b/service/kafkaconnect/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendra/go.mod b/service/kendra/go.mod index 35277b5d5d7..a0e8935400d 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kendra/go.sum b/service/kendra/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendraranking/go.mod b/service/kendraranking/go.mod index 1fee5d2528f..4343b714eaa 100644 --- a/service/kendraranking/go.mod +++ b/service/kendraranking/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kendraranking/go.sum b/service/kendraranking/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kendraranking/go.sum +++ b/service/kendraranking/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/keyspaces/go.mod b/service/keyspaces/go.mod index c283a4d34d7..9b2948864d6 100644 --- a/service/keyspaces/go.mod +++ b/service/keyspaces/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/keyspaces/go.sum b/service/keyspaces/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/keyspaces/go.sum +++ b/service/keyspaces/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index 8cdc685a125..4353417bd7a 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesis/internal/testing/go.mod b/service/kinesis/internal/testing/go.mod index f2abed0a73b..7076c174cf8 100644 --- a/service/kinesis/internal/testing/go.mod +++ b/service/kinesis/internal/testing/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.0.68 github.com/aws/aws-sdk-go-v2/service/kinesis v1.17.16 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesis/internal/testing/go.sum b/service/kinesis/internal/testing/go.sum index 4be5eca6dca..50e84005387 100644 --- a/service/kinesis/internal/testing/go.sum +++ b/service/kinesis/internal/testing/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index 58ca6e3cc21..edb25c3a9c7 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index 33f92526fed..68c6618996d 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index 10d8392043e..6c9239acfc9 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index 4ac1bff72a2..cd335040812 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index 4939187da9c..8ef4d72a185 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index 62cb873d595..9333ca95da6 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideowebrtcstorage/go.mod b/service/kinesisvideowebrtcstorage/go.mod index 73ae8634e35..df78a00de71 100644 --- a/service/kinesisvideowebrtcstorage/go.mod +++ b/service/kinesisvideowebrtcstorage/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideowebrtcstorage/go.sum b/service/kinesisvideowebrtcstorage/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kinesisvideowebrtcstorage/go.sum +++ b/service/kinesisvideowebrtcstorage/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kms/go.mod b/service/kms/go.mod index 78435daed01..0aa223b8f48 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kms/go.sum b/service/kms/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index 11052c2f4e8..6ad916ee440 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lambda/go.mod b/service/lambda/go.mod index ac7a0a8d650..ef765d60f4b 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lambda/go.sum b/service/lambda/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index a850114929c..0eac73eaf39 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod index 7981dd658cd..986d538fe76 100644 --- a/service/lexmodelsv2/go.mod +++ b/service/lexmodelsv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index 0078eb73f4e..c6434b28c7a 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexruntimev2/go.mod b/service/lexruntimev2/go.mod index f6d31ae088c..ad94a5463d4 100644 --- a/service/lexruntimev2/go.mod +++ b/service/lexruntimev2/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lexruntimev2/go.sum +++ b/service/lexruntimev2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index 953ba360aef..f8d9e940cba 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerlinuxsubscriptions/go.mod b/service/licensemanagerlinuxsubscriptions/go.mod index 600ec571d79..fa7bfe9e9be 100644 --- a/service/licensemanagerlinuxsubscriptions/go.mod +++ b/service/licensemanagerlinuxsubscriptions/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanagerlinuxsubscriptions/go.sum b/service/licensemanagerlinuxsubscriptions/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/licensemanagerlinuxsubscriptions/go.sum +++ b/service/licensemanagerlinuxsubscriptions/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerusersubscriptions/go.mod b/service/licensemanagerusersubscriptions/go.mod index 7325e3d23b3..629d22386e5 100644 --- a/service/licensemanagerusersubscriptions/go.mod +++ b/service/licensemanagerusersubscriptions/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanagerusersubscriptions/go.sum b/service/licensemanagerusersubscriptions/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/licensemanagerusersubscriptions/go.sum +++ b/service/licensemanagerusersubscriptions/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index 422cca60521..dc70314a848 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/location/go.mod b/service/location/go.mod index 3dc48c47d92..688a51c8ec2 100644 --- a/service/location/go.mod +++ b/service/location/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/location/go.sum b/service/location/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/location/go.sum +++ b/service/location/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutequipment/api_op_CreateDataset.go b/service/lookoutequipment/api_op_CreateDataset.go index 11f54e97120..d4db9f246c3 100644 --- a/service/lookoutequipment/api_op_CreateDataset.go +++ b/service/lookoutequipment/api_op_CreateDataset.go @@ -18,8 +18,8 @@ import ( // Creates a container for a collection of data being ingested for analysis. The // dataset contains the metadata describing where the data is and what the data -// actually looks like. In other words, it contains the location of the data -// source, the data schema, and other information. A dataset also contains any tags +// actually looks like. For example, it contains the location of the data source, +// the data schema, and other information. A dataset also contains any tags // associated with the ingested data. func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, optFns ...func(*Options)) (*CreateDatasetOutput, error) { if params == nil { diff --git a/service/lookoutequipment/api_op_CreateLabelGroup.go b/service/lookoutequipment/api_op_CreateLabelGroup.go index b24c8e561c7..af0911bde38 100644 --- a/service/lookoutequipment/api_op_CreateLabelGroup.go +++ b/service/lookoutequipment/api_op_CreateLabelGroup.go @@ -61,7 +61,7 @@ type CreateLabelGroupInput struct { type CreateLabelGroupOutput struct { - // The ARN of the label group that you have created. + // The Amazon Resource Name (ARN) of the label group that you have created. LabelGroupArn *string // The name of the label group that you have created. Data in this field will be diff --git a/service/lookoutequipment/api_op_DeleteResourcePolicy.go b/service/lookoutequipment/api_op_DeleteResourcePolicy.go new file mode 100644 index 00000000000..77d279bbcfd --- /dev/null +++ b/service/lookoutequipment/api_op_DeleteResourcePolicy.go @@ -0,0 +1,257 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the resource policy attached to the resource. +func (c *Client) DeleteResourcePolicy(ctx context.Context, params *DeleteResourcePolicyInput, optFns ...func(*Options)) (*DeleteResourcePolicyOutput, error) { + if params == nil { + params = &DeleteResourcePolicyInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteResourcePolicy", params, optFns, c.addOperationDeleteResourcePolicyMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteResourcePolicyOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteResourcePolicyInput struct { + + // The Amazon Resource Name (ARN) of the resource for which the resource policy + // should be deleted. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type DeleteResourcePolicyOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteResourcePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteResourcePolicy{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteResourcePolicy{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addDeleteResourcePolicyResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDeleteResourcePolicyValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteResourcePolicy(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteResourcePolicy(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "DeleteResourcePolicy", + } +} + +type opDeleteResourcePolicyResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDeleteResourcePolicyResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDeleteResourcePolicyResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDeleteResourcePolicyResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDeleteResourcePolicyResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/api_op_DescribeDataIngestionJob.go b/service/lookoutequipment/api_op_DescribeDataIngestionJob.go index b87088aa0db..c3232028f6d 100644 --- a/service/lookoutequipment/api_op_DescribeDataIngestionJob.go +++ b/service/lookoutequipment/api_op_DescribeDataIngestionJob.go @@ -88,6 +88,10 @@ type DescribeDataIngestionJobOutput struct { // data source being ingested. RoleArn *string + // The Amazon Resource Name (ARN) of the source dataset from which the data used + // for the data ingestion job was imported from. + SourceDatasetArn *string + // Indicates the status of the DataIngestionJob operation. Status types.IngestionJobStatus diff --git a/service/lookoutequipment/api_op_DescribeDataset.go b/service/lookoutequipment/api_op_DescribeDataset.go index 52a60139a11..6b077ff5f07 100644 --- a/service/lookoutequipment/api_op_DescribeDataset.go +++ b/service/lookoutequipment/api_op_DescribeDataset.go @@ -94,6 +94,10 @@ type DescribeDatasetOutput struct { // Lookout for Equipment. ServerSideKmsKeyId *string + // The Amazon Resource Name (ARN) of the source dataset from which the current + // data being described was imported from. + SourceDatasetArn *string + // Indicates the status of the dataset. Status types.DatasetStatus diff --git a/service/lookoutequipment/api_op_DescribeLabel.go b/service/lookoutequipment/api_op_DescribeLabel.go index efd3958b434..c82ed3f1c7f 100644 --- a/service/lookoutequipment/api_op_DescribeLabel.go +++ b/service/lookoutequipment/api_op_DescribeLabel.go @@ -64,7 +64,7 @@ type DescribeLabelOutput struct { // your data. FaultCode *string - // The ARN of the requested label group. + // The Amazon Resource Name (ARN) of the requested label group. LabelGroupArn *string // The name of the requested label group. diff --git a/service/lookoutequipment/api_op_DescribeLabelGroup.go b/service/lookoutequipment/api_op_DescribeLabelGroup.go index 3d6f2c8131e..51adc55f39e 100644 --- a/service/lookoutequipment/api_op_DescribeLabelGroup.go +++ b/service/lookoutequipment/api_op_DescribeLabelGroup.go @@ -51,7 +51,7 @@ type DescribeLabelGroupOutput struct { // group. FaultCodes []string - // The ARN of the label group. + // The Amazon Resource Name (ARN) of the label group. LabelGroupArn *string // The name of the label group. diff --git a/service/lookoutequipment/api_op_DescribeModel.go b/service/lookoutequipment/api_op_DescribeModel.go index c83794cdbc9..2306b205c15 100644 --- a/service/lookoutequipment/api_op_DescribeModel.go +++ b/service/lookoutequipment/api_op_DescribeModel.go @@ -47,6 +47,14 @@ type DescribeModelInput struct { type DescribeModelOutput struct { + // The name of the model version used by the inference schedular when running a + // scheduled inference execution. + ActiveModelVersion *int64 + + // The Amazon Resource Name (ARN) of the model version used by the inference + // scheduler when running a scheduled inference execution. + ActiveModelVersionArn *string + // Indicates the time and date at which the ML model was created. CreatedAt *time.Time @@ -79,6 +87,14 @@ type DescribeModelOutput struct { // failure. FailedReason *string + // The date and time when the import job was completed. This field appears if the + // active model version was imported. + ImportJobEndTime *time.Time + + // The date and time when the import job was started. This field appears if the + // active model version was imported. + ImportJobStartTime *time.Time + // Specifies configuration information about the labels input, including its S3 // location. LabelsInputConfiguration *types.LabelsInputConfiguration @@ -100,11 +116,25 @@ type DescribeModelOutput struct { // The name of the ML model being described. ModelName *string + // The date the active model version was activated. + ModelVersionActivatedAt *time.Time + // Indicates that the asset associated with this sensor has been shut off. As long // as this condition is met, Lookout for Equipment will not use data from this // asset for training, evaluation, or inference. OffCondition *string + // The model version that was set as the active model version prior to the current + // active model version. + PreviousActiveModelVersion *int64 + + // The ARN of the model version that was set as the active model version prior to + // the current active model version. + PreviousActiveModelVersionArn *string + + // The date and time when the previous active model version was activated. + PreviousModelVersionActivatedAt *time.Time + // The Amazon Resource Name (ARN) of a role with permission to access the data // source for the ML model being described. RoleArn *string @@ -119,6 +149,10 @@ type DescribeModelOutput struct { // Lookout for Equipment. ServerSideKmsKeyId *string + // The Amazon Resource Name (ARN) of the source model version. This field appears + // if the active model version was imported. + SourceModelVersionArn *string + // Specifies the current status of the model being described. Status describes the // status of the most recent action of the model. Status types.ModelStatus diff --git a/service/lookoutequipment/api_op_DescribeModelVersion.go b/service/lookoutequipment/api_op_DescribeModelVersion.go new file mode 100644 index 00000000000..e4de2efffe6 --- /dev/null +++ b/service/lookoutequipment/api_op_DescribeModelVersion.go @@ -0,0 +1,375 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/lookoutequipment/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information about a specific machine learning model version. +func (c *Client) DescribeModelVersion(ctx context.Context, params *DescribeModelVersionInput, optFns ...func(*Options)) (*DescribeModelVersionOutput, error) { + if params == nil { + params = &DescribeModelVersionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeModelVersion", params, optFns, c.addOperationDescribeModelVersionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeModelVersionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeModelVersionInput struct { + + // The name of the machine learning model that this version belongs to. + // + // This member is required. + ModelName *string + + // The version of the machine learning model. + // + // This member is required. + ModelVersion *int64 + + noSmithyDocumentSerde +} + +type DescribeModelVersionOutput struct { + + // Indicates the time and date at which the machine learning model version was + // created. + CreatedAt *time.Time + + // The configuration is the TargetSamplingRate , which is the sampling rate of the + // data after post processing by Amazon Lookout for Equipment. For example, if you + // provide data that has been collected at a 1 second level and you want the system + // to resample the data at a 1 minute rate before training, the TargetSamplingRate + // is 1 minute. When providing a value for the TargetSamplingRate , you must attach + // the prefix "PT" to the rate you want. The value for a 1 second rate is therefore + // PT1S, the value for a 15 minute rate is PT15M, and the value for a 1 hour rate + // is PT1H + DataPreProcessingConfiguration *types.DataPreProcessingConfiguration + + // The Amazon Resource Name (ARN) of the dataset used to train the model version. + DatasetArn *string + + // The name of the dataset used to train the model version. + DatasetName *string + + // The date on which the data in the evaluation set began being gathered. If you + // imported the version, this is the date that the evaluation set data in the + // source version finished being gathered. + EvaluationDataEndTime *time.Time + + // The date on which the data in the evaluation set began being gathered. If you + // imported the version, this is the date that the evaluation set data in the + // source version began being gathered. + EvaluationDataStartTime *time.Time + + // The failure message if the training of the model version failed. + FailedReason *string + + // The date and time when the import job completed. This field appears if the + // model version was imported. + ImportJobEndTime *time.Time + + // The date and time when the import job began. This field appears if the model + // version was imported. + ImportJobStartTime *time.Time + + // The size in bytes of the imported data. This field appears if the model version + // was imported. + ImportedDataSizeInBytes *int64 + + // Contains the configuration information for the S3 location being used to hold + // label data. + LabelsInputConfiguration *types.LabelsInputConfiguration + + // Indicates the last time the machine learning model version was updated. + LastUpdatedTime *time.Time + + // The Amazon Resource Name (ARN) of the parent machine learning model that this + // version belong to. + ModelArn *string + + // Shows an aggregated summary, in JSON format, of the model's performance within + // the evaluation time range. These metrics are created when evaluating the model. + ModelMetrics *string + + // The name of the machine learning model that this version belongs to. + ModelName *string + + // The version of the machine learning model. + ModelVersion *int64 + + // The Amazon Resource Name (ARN) of the model version. + ModelVersionArn *string + + // Indicates that the asset associated with this sensor has been shut off. As long + // as this condition is met, Lookout for Equipment will not use data from this + // asset for training, evaluation, or inference. + OffCondition *string + + // The Amazon Resource Name (ARN) of the role that was used to train the model + // version. + RoleArn *string + + // The schema of the data used to train the model version. + Schema *string + + // The identifier of the KMS key key used to encrypt model version data by Amazon + // Lookout for Equipment. + ServerSideKmsKeyId *string + + // If model version was imported, then this field is the arn of the source model + // version. + SourceModelVersionArn *string + + // Indicates whether this model version was created by training or by importing. + SourceType types.ModelVersionSourceType + + // The current status of the model version. + Status types.ModelVersionStatus + + // The date on which the training data finished being gathered. If you imported + // the version, this is the date that the training data in the source version + // finished being gathered. + TrainingDataEndTime *time.Time + + // The date on which the training data began being gathered. If you imported the + // version, this is the date that the training data in the source version began + // being gathered. + TrainingDataStartTime *time.Time + + // The time when the training of the version completed. + TrainingExecutionEndTime *time.Time + + // The time when the training of the version began. + TrainingExecutionStartTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeModelVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDescribeModelVersion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDescribeModelVersion{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addDescribeModelVersionResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDescribeModelVersionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeModelVersion(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeModelVersion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "DescribeModelVersion", + } +} + +type opDescribeModelVersionResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDescribeModelVersionResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDescribeModelVersionResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDescribeModelVersionResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDescribeModelVersionResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/api_op_DescribeResourcePolicy.go b/service/lookoutequipment/api_op_DescribeResourcePolicy.go new file mode 100644 index 00000000000..455f893ad63 --- /dev/null +++ b/service/lookoutequipment/api_op_DescribeResourcePolicy.go @@ -0,0 +1,271 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Provides the details of a resource policy attached to a resource. +func (c *Client) DescribeResourcePolicy(ctx context.Context, params *DescribeResourcePolicyInput, optFns ...func(*Options)) (*DescribeResourcePolicyOutput, error) { + if params == nil { + params = &DescribeResourcePolicyInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeResourcePolicy", params, optFns, c.addOperationDescribeResourcePolicyMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeResourcePolicyOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeResourcePolicyInput struct { + + // The Amazon Resource Name (ARN) of the resource that is associated with the + // resource policy. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type DescribeResourcePolicyOutput struct { + + // The time when the resource policy was created. + CreationTime *time.Time + + // The time when the resource policy was last modified. + LastModifiedTime *time.Time + + // A unique identifier for a revision of the resource policy. + PolicyRevisionId *string + + // The resource policy in a JSON-formatted string. + ResourcePolicy *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeResourcePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDescribeResourcePolicy{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDescribeResourcePolicy{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addDescribeResourcePolicyResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpDescribeResourcePolicyValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeResourcePolicy(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeResourcePolicy(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "DescribeResourcePolicy", + } +} + +type opDescribeResourcePolicyResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opDescribeResourcePolicyResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opDescribeResourcePolicyResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addDescribeResourcePolicyResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opDescribeResourcePolicyResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/api_op_ImportDataset.go b/service/lookoutequipment/api_op_ImportDataset.go new file mode 100644 index 00000000000..27a7b84ab98 --- /dev/null +++ b/service/lookoutequipment/api_op_ImportDataset.go @@ -0,0 +1,324 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/lookoutequipment/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Imports a dataset. +func (c *Client) ImportDataset(ctx context.Context, params *ImportDatasetInput, optFns ...func(*Options)) (*ImportDatasetOutput, error) { + if params == nil { + params = &ImportDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ImportDataset", params, optFns, c.addOperationImportDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ImportDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ImportDatasetInput struct { + + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + // + // This member is required. + ClientToken *string + + // The Amazon Resource Name (ARN) of the dataset to import. + // + // This member is required. + SourceDatasetArn *string + + // The name of the machine learning dataset to be created. If the dataset already + // exists, Amazon Lookout for Equipment overwrites the existing dataset. If you + // don't specify this field, it is filled with the name of the source dataset. + DatasetName *string + + // Provides the identifier of the KMS key key used to encrypt model data by Amazon + // Lookout for Equipment. + ServerSideKmsKeyId *string + + // Any tags associated with the dataset to be created. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type ImportDatasetOutput struct { + + // The Amazon Resource Name (ARN) of the dataset that was imported. + DatasetArn *string + + // The name of the created machine learning dataset. + DatasetName *string + + // A unique identifier for the job of importing the dataset. + JobId *string + + // The status of the ImportDataset operation. + Status types.DatasetStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationImportDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpImportDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpImportDataset{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addImportDatasetResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addIdempotencyToken_opImportDatasetMiddleware(stack, options); err != nil { + return err + } + if err = addOpImportDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpImportDataset struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpImportDataset) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpImportDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*ImportDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *ImportDatasetInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opImportDatasetMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpImportDataset{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opImportDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "ImportDataset", + } +} + +type opImportDatasetResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opImportDatasetResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opImportDatasetResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addImportDatasetResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opImportDatasetResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/api_op_ImportModelVersion.go b/service/lookoutequipment/api_op_ImportModelVersion.go new file mode 100644 index 00000000000..245d165304b --- /dev/null +++ b/service/lookoutequipment/api_op_ImportModelVersion.go @@ -0,0 +1,340 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/lookoutequipment/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Imports a model that has been trained successfully. +func (c *Client) ImportModelVersion(ctx context.Context, params *ImportModelVersionInput, optFns ...func(*Options)) (*ImportModelVersionOutput, error) { + if params == nil { + params = &ImportModelVersionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ImportModelVersion", params, optFns, c.addOperationImportModelVersionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ImportModelVersionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ImportModelVersionInput struct { + + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + // + // This member is required. + ClientToken *string + + // The name of the dataset for the machine learning model being imported. + // + // This member is required. + DatasetName *string + + // The Amazon Resource Name (ARN) of the model version to import. + // + // This member is required. + SourceModelVersionArn *string + + // Contains the configuration information for the S3 location being used to hold + // label data. + LabelsInputConfiguration *types.LabelsInputConfiguration + + // The name for the machine learning model to be created. If the model already + // exists, Amazon Lookout for Equipment creates a new version. If you do not + // specify this field, it is filled with the name of the source model. + ModelName *string + + // The Amazon Resource Name (ARN) of a role with permission to access the data + // source being used to create the machine learning model. + RoleArn *string + + // Provides the identifier of the KMS key key used to encrypt model data by Amazon + // Lookout for Equipment. + ServerSideKmsKeyId *string + + // The tags associated with the machine learning model to be created. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type ImportModelVersionOutput struct { + + // The Amazon Resource Name (ARN) of the model being created. + ModelArn *string + + // The name for the machine learning model. + ModelName *string + + // The version of the model being created. + ModelVersion *int64 + + // The Amazon Resource Name (ARN) of the model version being created. + ModelVersionArn *string + + // The status of the ImportModelVersion operation. + Status types.ModelVersionStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationImportModelVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpImportModelVersion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpImportModelVersion{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addImportModelVersionResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addIdempotencyToken_opImportModelVersionMiddleware(stack, options); err != nil { + return err + } + if err = addOpImportModelVersionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportModelVersion(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpImportModelVersion struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpImportModelVersion) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpImportModelVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*ImportModelVersionInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *ImportModelVersionInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opImportModelVersionMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpImportModelVersion{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opImportModelVersion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "ImportModelVersion", + } +} + +type opImportModelVersionResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opImportModelVersionResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opImportModelVersionResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addImportModelVersionResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opImportModelVersionResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/api_op_ListInferenceEvents.go b/service/lookoutequipment/api_op_ListInferenceEvents.go index 6bdc759409e..76630aa4da1 100644 --- a/service/lookoutequipment/api_op_ListInferenceEvents.go +++ b/service/lookoutequipment/api_op_ListInferenceEvents.go @@ -42,7 +42,7 @@ type ListInferenceEventsInput struct { InferenceSchedulerName *string // Returns all the inference events with an end start time equal to or greater - // than less than the end time given + // than less than the end time given. // // This member is required. IntervalEndTime *time.Time diff --git a/service/lookoutequipment/api_op_ListInferenceSchedulers.go b/service/lookoutequipment/api_op_ListInferenceSchedulers.go index 4f9d23afe88..924015b0c69 100644 --- a/service/lookoutequipment/api_op_ListInferenceSchedulers.go +++ b/service/lookoutequipment/api_op_ListInferenceSchedulers.go @@ -48,7 +48,7 @@ type ListInferenceSchedulersInput struct { // inference schedulers. NextToken *string - // Specifies the current status of the inference schedulers to list. + // Specifies the current status of the inference schedulers. Status types.InferenceSchedulerStatus noSmithyDocumentSerde diff --git a/service/lookoutequipment/api_op_ListModelVersions.go b/service/lookoutequipment/api_op_ListModelVersions.go new file mode 100644 index 00000000000..98d9a4860ee --- /dev/null +++ b/service/lookoutequipment/api_op_ListModelVersions.go @@ -0,0 +1,389 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + "github.com/aws/aws-sdk-go-v2/service/lookoutequipment/types" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Generates a list of all model versions for a given model, including the model +// version, model version ARN, and status. To list a subset of versions, use the +// MaxModelVersion and MinModelVersion fields. +func (c *Client) ListModelVersions(ctx context.Context, params *ListModelVersionsInput, optFns ...func(*Options)) (*ListModelVersionsOutput, error) { + if params == nil { + params = &ListModelVersionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListModelVersions", params, optFns, c.addOperationListModelVersionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListModelVersionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListModelVersionsInput struct { + + // Then name of the machine learning model for which the model versions are to be + // listed. + // + // This member is required. + ModelName *string + + // Filter results to return all the model versions created before this time. + CreatedAtEndTime *time.Time + + // Filter results to return all the model versions created after this time. + CreatedAtStartTime *time.Time + + // Specifies the highest version of the model to return in the list. + MaxModelVersion *int64 + + // Specifies the maximum number of machine learning model versions to list. + MaxResults *int32 + + // Specifies the lowest version of the model to return in the list. + MinModelVersion *int64 + + // If the total number of results exceeds the limit that the response can display, + // the response returns an opaque pagination token indicating where to continue the + // listing of machine learning model versions. Use this token in the NextToken + // field in the request to list the next page of results. + NextToken *string + + // Filter the results based on the way the model version was generated. + SourceType types.ModelVersionSourceType + + // Filter the results based on the current status of the model version. + Status types.ModelVersionStatus + + noSmithyDocumentSerde +} + +type ListModelVersionsOutput struct { + + // Provides information on the specified model version, including the created + // time, model and dataset ARNs, and status. + ModelVersionSummaries []types.ModelVersionSummary + + // If the total number of results exceeds the limit that the response can display, + // the response returns an opaque pagination token indicating where to continue the + // listing of machine learning model versions. Use this token in the NextToken + // field in the request to list the next page of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListModelVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListModelVersions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListModelVersions{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addListModelVersionsResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpListModelVersionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListModelVersions(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListModelVersionsAPIClient is a client that implements the ListModelVersions +// operation. +type ListModelVersionsAPIClient interface { + ListModelVersions(context.Context, *ListModelVersionsInput, ...func(*Options)) (*ListModelVersionsOutput, error) +} + +var _ ListModelVersionsAPIClient = (*Client)(nil) + +// ListModelVersionsPaginatorOptions is the paginator options for ListModelVersions +type ListModelVersionsPaginatorOptions struct { + // Specifies the maximum number of machine learning model versions to list. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListModelVersionsPaginator is a paginator for ListModelVersions +type ListModelVersionsPaginator struct { + options ListModelVersionsPaginatorOptions + client ListModelVersionsAPIClient + params *ListModelVersionsInput + nextToken *string + firstPage bool +} + +// NewListModelVersionsPaginator returns a new ListModelVersionsPaginator +func NewListModelVersionsPaginator(client ListModelVersionsAPIClient, params *ListModelVersionsInput, optFns ...func(*ListModelVersionsPaginatorOptions)) *ListModelVersionsPaginator { + if params == nil { + params = &ListModelVersionsInput{} + } + + options := ListModelVersionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListModelVersionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListModelVersionsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListModelVersions page. +func (p *ListModelVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListModelVersionsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListModelVersions(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListModelVersions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "ListModelVersions", + } +} + +type opListModelVersionsResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opListModelVersionsResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opListModelVersionsResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addListModelVersionsResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opListModelVersionsResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/api_op_PutResourcePolicy.go b/service/lookoutequipment/api_op_PutResourcePolicy.go new file mode 100644 index 00000000000..0b1b9a00cd1 --- /dev/null +++ b/service/lookoutequipment/api_op_PutResourcePolicy.go @@ -0,0 +1,314 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a resource control policy for a given resource. +func (c *Client) PutResourcePolicy(ctx context.Context, params *PutResourcePolicyInput, optFns ...func(*Options)) (*PutResourcePolicyOutput, error) { + if params == nil { + params = &PutResourcePolicyInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutResourcePolicy", params, optFns, c.addOperationPutResourcePolicyMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutResourcePolicyOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutResourcePolicyInput struct { + + // A unique identifier for the request. If you do not set the client request + // token, Amazon Lookout for Equipment generates one. + // + // This member is required. + ClientToken *string + + // The Amazon Resource Name (ARN) of the resource for which the policy is being + // created. + // + // This member is required. + ResourceArn *string + + // The JSON-formatted resource policy to create. + // + // This member is required. + ResourcePolicy *string + + // A unique identifier for a revision of the resource policy. + PolicyRevisionId *string + + noSmithyDocumentSerde +} + +type PutResourcePolicyOutput struct { + + // A unique identifier for a revision of the resource policy. + PolicyRevisionId *string + + // The Amazon Resource Name (ARN) of the resource for which the policy was created. + ResourceArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutResourcePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpPutResourcePolicy{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpPutResourcePolicy{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addPutResourcePolicyResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addIdempotencyToken_opPutResourcePolicyMiddleware(stack, options); err != nil { + return err + } + if err = addOpPutResourcePolicyValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutResourcePolicy(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpPutResourcePolicy struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpPutResourcePolicy) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpPutResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*PutResourcePolicyInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *PutResourcePolicyInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opPutResourcePolicyMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpPutResourcePolicy{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opPutResourcePolicy(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "PutResourcePolicy", + } +} + +type opPutResourcePolicyResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opPutResourcePolicyResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opPutResourcePolicyResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addPutResourcePolicyResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opPutResourcePolicyResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/api_op_UpdateActiveModelVersion.go b/service/lookoutequipment/api_op_UpdateActiveModelVersion.go new file mode 100644 index 00000000000..475ee121f18 --- /dev/null +++ b/service/lookoutequipment/api_op_UpdateActiveModelVersion.go @@ -0,0 +1,288 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lookoutequipment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Sets the active model version for a given machine learning model. +func (c *Client) UpdateActiveModelVersion(ctx context.Context, params *UpdateActiveModelVersionInput, optFns ...func(*Options)) (*UpdateActiveModelVersionOutput, error) { + if params == nil { + params = &UpdateActiveModelVersionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateActiveModelVersion", params, optFns, c.addOperationUpdateActiveModelVersionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateActiveModelVersionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateActiveModelVersionInput struct { + + // The name of the machine learning model for which the active model version is + // being set. + // + // This member is required. + ModelName *string + + // The version of the machine learning model for which the active model version is + // being set. + // + // This member is required. + ModelVersion *int64 + + noSmithyDocumentSerde +} + +type UpdateActiveModelVersionOutput struct { + + // The version that is currently active of the machine learning model for which + // the active model version was set. + CurrentActiveVersion *int64 + + // The Amazon Resource Name (ARN) of the machine learning model version that is + // the current active model version. + CurrentActiveVersionArn *string + + // The Amazon Resource Name (ARN) of the machine learning model for which the + // active model version was set. + ModelArn *string + + // The name of the machine learning model for which the active model version was + // set. + ModelName *string + + // The previous version that was active of the machine learning model for which + // the active model version was set. + PreviousActiveVersion *int64 + + // The Amazon Resource Name (ARN) of the machine learning model version that was + // the previous active model version. + PreviousActiveVersionArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateActiveModelVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateActiveModelVersion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateActiveModelVersion{}, middleware.After) + if err != nil { + return err + } + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addUpdateActiveModelVersionResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateActiveModelVersionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateActiveModelVersion(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addendpointDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateActiveModelVersion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lookoutequipment", + OperationName: "UpdateActiveModelVersion", + } +} + +type opUpdateActiveModelVersionResolveEndpointMiddleware struct { + EndpointResolver EndpointResolverV2 + BuiltInResolver builtInParameterResolver +} + +func (*opUpdateActiveModelVersionResolveEndpointMiddleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *opUpdateActiveModelVersionResolveEndpointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.EndpointResolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := EndpointParameters{} + + m.BuiltInResolver.ResolveBuiltIns(¶ms) + + var resolvedEndpoint smithyendpoints.Endpoint + resolvedEndpoint, err = m.EndpointResolver.ResolveEndpoint(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL = &resolvedEndpoint.URI + + for k := range resolvedEndpoint.Headers { + req.Header.Set( + k, + resolvedEndpoint.Headers.Get(k), + ) + } + + authSchemes, err := internalauth.GetAuthenticationSchemes(&resolvedEndpoint.Properties) + if err != nil { + var nfe *internalauth.NoAuthenticationSchemesFoundError + if errors.As(err, &nfe) { + // if no auth scheme is found, default to sigv4 + signingName := "lookoutequipment" + signingRegion := m.BuiltInResolver.(*builtInResolver).Region + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + + } + var ue *internalauth.UnSupportedAuthenticationSchemeSpecifiedError + if errors.As(err, &ue) { + return out, metadata, fmt.Errorf( + "This operation requests signer version(s) %v but the client only supports %v", + ue.UnsupportedSchemes, + internalauth.SupportedSchemes, + ) + } + } + + for _, authScheme := range authSchemes { + switch authScheme.(type) { + case *internalauth.AuthenticationSchemeV4: + v4Scheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4) + var signingName, signingRegion string + if v4Scheme.SigningName == nil { + signingName = "lookoutequipment" + } else { + signingName = *v4Scheme.SigningName + } + if v4Scheme.SigningRegion == nil { + signingRegion = m.BuiltInResolver.(*builtInResolver).Region + } else { + signingRegion = *v4Scheme.SigningRegion + } + if v4Scheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4Scheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + ctx = awsmiddleware.SetSigningRegion(ctx, signingRegion) + break + case *internalauth.AuthenticationSchemeV4A: + v4aScheme, _ := authScheme.(*internalauth.AuthenticationSchemeV4A) + if v4aScheme.SigningName == nil { + v4aScheme.SigningName = aws.String("lookoutequipment") + } + if v4aScheme.DisableDoubleEncoding != nil { + // The signer sets an equivalent value at client initialization time. + // Setting this context value will cause the signer to extract it + // and override the value set at client initialization time. + ctx = internalauth.SetDisableDoubleEncoding(ctx, *v4aScheme.DisableDoubleEncoding) + } + ctx = awsmiddleware.SetSigningName(ctx, *v4aScheme.SigningName) + ctx = awsmiddleware.SetSigningRegion(ctx, v4aScheme.SigningRegionSet[0]) + break + case *internalauth.AuthenticationSchemeNone: + break + } + } + + return next.HandleSerialize(ctx, in) +} + +func addUpdateActiveModelVersionResolveEndpointMiddleware(stack *middleware.Stack, options Options) error { + return stack.Serialize.Insert(&opUpdateActiveModelVersionResolveEndpointMiddleware{ + EndpointResolver: options.EndpointResolverV2, + BuiltInResolver: &builtInResolver{ + Region: options.Region, + UseDualStack: options.EndpointOptions.UseDualStackEndpoint, + UseFIPS: options.EndpointOptions.UseFIPSEndpoint, + Endpoint: options.BaseEndpoint, + }, + }, "ResolveEndpoint", middleware.After) +} diff --git a/service/lookoutequipment/deserializers.go b/service/lookoutequipment/deserializers.go index 607a94de861..eeefe6b57d8 100644 --- a/service/lookoutequipment/deserializers.go +++ b/service/lookoutequipment/deserializers.go @@ -1180,6 +1180,110 @@ func awsAwsjson10_deserializeOpErrorDeleteModel(response *smithyhttp.Response, m } } +type awsAwsjson10_deserializeOpDeleteResourcePolicy struct { +} + +func (*awsAwsjson10_deserializeOpDeleteResourcePolicy) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response, &metadata) + } + output := &DeleteResourcePolicyOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson10_deserializeOpDescribeDataIngestionJob struct { } @@ -1918,14 +2022,14 @@ func awsAwsjson10_deserializeOpErrorDescribeModel(response *smithyhttp.Response, } } -type awsAwsjson10_deserializeOpListDataIngestionJobs struct { +type awsAwsjson10_deserializeOpDescribeModelVersion struct { } -func (*awsAwsjson10_deserializeOpListDataIngestionJobs) ID() string { +func (*awsAwsjson10_deserializeOpDescribeModelVersion) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListDataIngestionJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpDescribeModelVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1939,9 +2043,9 @@ func (m *awsAwsjson10_deserializeOpListDataIngestionJobs) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListDataIngestionJobs(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorDescribeModelVersion(response, &metadata) } - output := &ListDataIngestionJobsOutput{} + output := &DescribeModelVersionOutput{} out.Result = output var buff [1024]byte @@ -1961,7 +2065,7 @@ func (m *awsAwsjson10_deserializeOpListDataIngestionJobs) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListDataIngestionJobsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentDescribeModelVersionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1975,7 +2079,7 @@ func (m *awsAwsjson10_deserializeOpListDataIngestionJobs) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListDataIngestionJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorDescribeModelVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2022,6 +2126,9 @@ func awsAwsjson10_deserializeOpErrorListDataIngestionJobs(response *smithyhttp.R case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -2038,14 +2145,14 @@ func awsAwsjson10_deserializeOpErrorListDataIngestionJobs(response *smithyhttp.R } } -type awsAwsjson10_deserializeOpListDatasets struct { +type awsAwsjson10_deserializeOpDescribeResourcePolicy struct { } -func (*awsAwsjson10_deserializeOpListDatasets) ID() string { +func (*awsAwsjson10_deserializeOpDescribeResourcePolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListDatasets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpDescribeResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2059,9 +2166,9 @@ func (m *awsAwsjson10_deserializeOpListDatasets) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListDatasets(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorDescribeResourcePolicy(response, &metadata) } - output := &ListDatasetsOutput{} + output := &DescribeResourcePolicyOutput{} out.Result = output var buff [1024]byte @@ -2081,7 +2188,7 @@ func (m *awsAwsjson10_deserializeOpListDatasets) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListDatasetsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentDescribeResourcePolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2095,7 +2202,7 @@ func (m *awsAwsjson10_deserializeOpListDatasets) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListDatasets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorDescribeResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2142,6 +2249,9 @@ func awsAwsjson10_deserializeOpErrorListDatasets(response *smithyhttp.Response, case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -2158,14 +2268,14 @@ func awsAwsjson10_deserializeOpErrorListDatasets(response *smithyhttp.Response, } } -type awsAwsjson10_deserializeOpListInferenceEvents struct { +type awsAwsjson10_deserializeOpImportDataset struct { } -func (*awsAwsjson10_deserializeOpListInferenceEvents) ID() string { +func (*awsAwsjson10_deserializeOpImportDataset) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListInferenceEvents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpImportDataset) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2179,9 +2289,9 @@ func (m *awsAwsjson10_deserializeOpListInferenceEvents) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListInferenceEvents(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorImportDataset(response, &metadata) } - output := &ListInferenceEventsOutput{} + output := &ImportDatasetOutput{} out.Result = output var buff [1024]byte @@ -2201,7 +2311,7 @@ func (m *awsAwsjson10_deserializeOpListInferenceEvents) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListInferenceEventsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentImportDatasetOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2215,7 +2325,7 @@ func (m *awsAwsjson10_deserializeOpListInferenceEvents) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListInferenceEvents(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorImportDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2259,12 +2369,18 @@ func awsAwsjson10_deserializeOpErrorListInferenceEvents(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -2281,14 +2397,14 @@ func awsAwsjson10_deserializeOpErrorListInferenceEvents(response *smithyhttp.Res } } -type awsAwsjson10_deserializeOpListInferenceExecutions struct { +type awsAwsjson10_deserializeOpImportModelVersion struct { } -func (*awsAwsjson10_deserializeOpListInferenceExecutions) ID() string { +func (*awsAwsjson10_deserializeOpImportModelVersion) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListInferenceExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpImportModelVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2302,9 +2418,9 @@ func (m *awsAwsjson10_deserializeOpListInferenceExecutions) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListInferenceExecutions(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorImportModelVersion(response, &metadata) } - output := &ListInferenceExecutionsOutput{} + output := &ImportModelVersionOutput{} out.Result = output var buff [1024]byte @@ -2324,7 +2440,7 @@ func (m *awsAwsjson10_deserializeOpListInferenceExecutions) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListInferenceExecutionsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentImportModelVersionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2338,7 +2454,7 @@ func (m *awsAwsjson10_deserializeOpListInferenceExecutions) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListInferenceExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorImportModelVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2382,12 +2498,18 @@ func awsAwsjson10_deserializeOpErrorListInferenceExecutions(response *smithyhttp case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -2404,14 +2526,14 @@ func awsAwsjson10_deserializeOpErrorListInferenceExecutions(response *smithyhttp } } -type awsAwsjson10_deserializeOpListInferenceSchedulers struct { +type awsAwsjson10_deserializeOpListDataIngestionJobs struct { } -func (*awsAwsjson10_deserializeOpListInferenceSchedulers) ID() string { +func (*awsAwsjson10_deserializeOpListDataIngestionJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListInferenceSchedulers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListDataIngestionJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2425,9 +2547,9 @@ func (m *awsAwsjson10_deserializeOpListInferenceSchedulers) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListInferenceSchedulers(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListDataIngestionJobs(response, &metadata) } - output := &ListInferenceSchedulersOutput{} + output := &ListDataIngestionJobsOutput{} out.Result = output var buff [1024]byte @@ -2447,7 +2569,7 @@ func (m *awsAwsjson10_deserializeOpListInferenceSchedulers) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListInferenceSchedulersOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListDataIngestionJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2461,7 +2583,7 @@ func (m *awsAwsjson10_deserializeOpListInferenceSchedulers) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListInferenceSchedulers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListDataIngestionJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2524,14 +2646,14 @@ func awsAwsjson10_deserializeOpErrorListInferenceSchedulers(response *smithyhttp } } -type awsAwsjson10_deserializeOpListLabelGroups struct { +type awsAwsjson10_deserializeOpListDatasets struct { } -func (*awsAwsjson10_deserializeOpListLabelGroups) ID() string { +func (*awsAwsjson10_deserializeOpListDatasets) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListLabelGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListDatasets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2545,9 +2667,9 @@ func (m *awsAwsjson10_deserializeOpListLabelGroups) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListLabelGroups(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListDatasets(response, &metadata) } - output := &ListLabelGroupsOutput{} + output := &ListDatasetsOutput{} out.Result = output var buff [1024]byte @@ -2567,7 +2689,7 @@ func (m *awsAwsjson10_deserializeOpListLabelGroups) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListLabelGroupsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListDatasetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2581,7 +2703,7 @@ func (m *awsAwsjson10_deserializeOpListLabelGroups) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListLabelGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListDatasets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2644,14 +2766,14 @@ func awsAwsjson10_deserializeOpErrorListLabelGroups(response *smithyhttp.Respons } } -type awsAwsjson10_deserializeOpListLabels struct { +type awsAwsjson10_deserializeOpListInferenceEvents struct { } -func (*awsAwsjson10_deserializeOpListLabels) ID() string { +func (*awsAwsjson10_deserializeOpListInferenceEvents) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListLabels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListInferenceEvents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2665,9 +2787,9 @@ func (m *awsAwsjson10_deserializeOpListLabels) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListLabels(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListInferenceEvents(response, &metadata) } - output := &ListLabelsOutput{} + output := &ListInferenceEventsOutput{} out.Result = output var buff [1024]byte @@ -2687,7 +2809,7 @@ func (m *awsAwsjson10_deserializeOpListLabels) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListLabelsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListInferenceEventsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2701,7 +2823,7 @@ func (m *awsAwsjson10_deserializeOpListLabels) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListLabels(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListInferenceEvents(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2748,6 +2870,9 @@ func awsAwsjson10_deserializeOpErrorListLabels(response *smithyhttp.Response, me case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -2764,14 +2889,14 @@ func awsAwsjson10_deserializeOpErrorListLabels(response *smithyhttp.Response, me } } -type awsAwsjson10_deserializeOpListModels struct { +type awsAwsjson10_deserializeOpListInferenceExecutions struct { } -func (*awsAwsjson10_deserializeOpListModels) ID() string { +func (*awsAwsjson10_deserializeOpListInferenceExecutions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListInferenceExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2785,9 +2910,9 @@ func (m *awsAwsjson10_deserializeOpListModels) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListModels(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListInferenceExecutions(response, &metadata) } - output := &ListModelsOutput{} + output := &ListInferenceExecutionsOutput{} out.Result = output var buff [1024]byte @@ -2807,7 +2932,7 @@ func (m *awsAwsjson10_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListModelsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListInferenceExecutionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2821,7 +2946,7 @@ func (m *awsAwsjson10_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListInferenceExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2868,6 +2993,9 @@ func awsAwsjson10_deserializeOpErrorListModels(response *smithyhttp.Response, me case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -2884,14 +3012,14 @@ func awsAwsjson10_deserializeOpErrorListModels(response *smithyhttp.Response, me } } -type awsAwsjson10_deserializeOpListSensorStatistics struct { +type awsAwsjson10_deserializeOpListInferenceSchedulers struct { } -func (*awsAwsjson10_deserializeOpListSensorStatistics) ID() string { +func (*awsAwsjson10_deserializeOpListInferenceSchedulers) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListSensorStatistics) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListInferenceSchedulers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2905,9 +3033,9 @@ func (m *awsAwsjson10_deserializeOpListSensorStatistics) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListSensorStatistics(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListInferenceSchedulers(response, &metadata) } - output := &ListSensorStatisticsOutput{} + output := &ListInferenceSchedulersOutput{} out.Result = output var buff [1024]byte @@ -2927,7 +3055,7 @@ func (m *awsAwsjson10_deserializeOpListSensorStatistics) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListSensorStatisticsOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListInferenceSchedulersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2941,7 +3069,7 @@ func (m *awsAwsjson10_deserializeOpListSensorStatistics) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListSensorStatistics(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListInferenceSchedulers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2988,9 +3116,6 @@ func awsAwsjson10_deserializeOpErrorListSensorStatistics(response *smithyhttp.Re case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -3007,14 +3132,14 @@ func awsAwsjson10_deserializeOpErrorListSensorStatistics(response *smithyhttp.Re } } -type awsAwsjson10_deserializeOpListTagsForResource struct { +type awsAwsjson10_deserializeOpListLabelGroups struct { } -func (*awsAwsjson10_deserializeOpListTagsForResource) ID() string { +func (*awsAwsjson10_deserializeOpListLabelGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListLabelGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3028,9 +3153,9 @@ func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListLabelGroups(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListLabelGroupsOutput{} out.Result = output var buff [1024]byte @@ -3050,7 +3175,7 @@ func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListLabelGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3064,7 +3189,7 @@ func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListLabelGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3111,9 +3236,6 @@ func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Res case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -3130,14 +3252,14 @@ func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -type awsAwsjson10_deserializeOpStartDataIngestionJob struct { +type awsAwsjson10_deserializeOpListLabels struct { } -func (*awsAwsjson10_deserializeOpStartDataIngestionJob) ID() string { +func (*awsAwsjson10_deserializeOpListLabels) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpStartDataIngestionJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListLabels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3151,9 +3273,9 @@ func (m *awsAwsjson10_deserializeOpStartDataIngestionJob) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorStartDataIngestionJob(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListLabels(response, &metadata) } - output := &StartDataIngestionJobOutput{} + output := &ListLabelsOutput{} out.Result = output var buff [1024]byte @@ -3173,7 +3295,7 @@ func (m *awsAwsjson10_deserializeOpStartDataIngestionJob) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentStartDataIngestionJobOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListLabelsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3187,7 +3309,7 @@ func (m *awsAwsjson10_deserializeOpStartDataIngestionJob) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson10_deserializeOpErrorStartDataIngestionJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListLabels(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3231,18 +3353,9 @@ func awsAwsjson10_deserializeOpErrorStartDataIngestionJob(response *smithyhttp.R case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson10_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -3259,14 +3372,14 @@ func awsAwsjson10_deserializeOpErrorStartDataIngestionJob(response *smithyhttp.R } } -type awsAwsjson10_deserializeOpStartInferenceScheduler struct { +type awsAwsjson10_deserializeOpListModels struct { } -func (*awsAwsjson10_deserializeOpStartInferenceScheduler) ID() string { +func (*awsAwsjson10_deserializeOpListModels) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpStartInferenceScheduler) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3280,9 +3393,9 @@ func (m *awsAwsjson10_deserializeOpStartInferenceScheduler) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorStartInferenceScheduler(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListModels(response, &metadata) } - output := &StartInferenceSchedulerOutput{} + output := &ListModelsOutput{} out.Result = output var buff [1024]byte @@ -3302,7 +3415,7 @@ func (m *awsAwsjson10_deserializeOpStartInferenceScheduler) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentStartInferenceSchedulerOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListModelsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3316,7 +3429,7 @@ func (m *awsAwsjson10_deserializeOpStartInferenceScheduler) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson10_deserializeOpErrorStartInferenceScheduler(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3360,15 +3473,9 @@ func awsAwsjson10_deserializeOpErrorStartInferenceScheduler(response *smithyhttp case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson10_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -3385,14 +3492,14 @@ func awsAwsjson10_deserializeOpErrorStartInferenceScheduler(response *smithyhttp } } -type awsAwsjson10_deserializeOpStopInferenceScheduler struct { +type awsAwsjson10_deserializeOpListModelVersions struct { } -func (*awsAwsjson10_deserializeOpStopInferenceScheduler) ID() string { +func (*awsAwsjson10_deserializeOpListModelVersions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpStopInferenceScheduler) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListModelVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3406,9 +3513,9 @@ func (m *awsAwsjson10_deserializeOpStopInferenceScheduler) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorStopInferenceScheduler(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListModelVersions(response, &metadata) } - output := &StopInferenceSchedulerOutput{} + output := &ListModelVersionsOutput{} out.Result = output var buff [1024]byte @@ -3428,7 +3535,7 @@ func (m *awsAwsjson10_deserializeOpStopInferenceScheduler) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentStopInferenceSchedulerOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListModelVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3442,7 +3549,7 @@ func (m *awsAwsjson10_deserializeOpStopInferenceScheduler) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson10_deserializeOpErrorStopInferenceScheduler(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListModelVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3486,9 +3593,6 @@ func awsAwsjson10_deserializeOpErrorStopInferenceScheduler(response *smithyhttp. case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson10_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) @@ -3511,14 +3615,14 @@ func awsAwsjson10_deserializeOpErrorStopInferenceScheduler(response *smithyhttp. } } -type awsAwsjson10_deserializeOpTagResource struct { +type awsAwsjson10_deserializeOpListSensorStatistics struct { } -func (*awsAwsjson10_deserializeOpTagResource) ID() string { +func (*awsAwsjson10_deserializeOpListSensorStatistics) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListSensorStatistics) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3532,9 +3636,9 @@ func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListSensorStatistics(response, &metadata) } - output := &TagResourceOutput{} + output := &ListSensorStatisticsOutput{} out.Result = output var buff [1024]byte @@ -3554,7 +3658,7 @@ func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentTagResourceOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListSensorStatisticsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3568,7 +3672,7 @@ func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson10_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListSensorStatistics(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3618,9 +3722,6 @@ func awsAwsjson10_deserializeOpErrorTagResource(response *smithyhttp.Response, m case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -3637,14 +3738,14 @@ func awsAwsjson10_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -type awsAwsjson10_deserializeOpUntagResource struct { +type awsAwsjson10_deserializeOpListTagsForResource struct { } -func (*awsAwsjson10_deserializeOpUntagResource) ID() string { +func (*awsAwsjson10_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3658,9 +3759,9 @@ func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorUntagResource(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &UntagResourceOutput{} + output := &ListTagsForResourceOutput{} out.Result = output var buff [1024]byte @@ -3680,7 +3781,7 @@ func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentUntagResourceOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3694,7 +3795,7 @@ func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson10_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3760,14 +3861,14 @@ func awsAwsjson10_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsAwsjson10_deserializeOpUpdateInferenceScheduler struct { +type awsAwsjson10_deserializeOpPutResourcePolicy struct { } -func (*awsAwsjson10_deserializeOpUpdateInferenceScheduler) ID() string { +func (*awsAwsjson10_deserializeOpPutResourcePolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpUpdateInferenceScheduler) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpPutResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3781,21 +3882,43 @@ func (m *awsAwsjson10_deserializeOpUpdateInferenceScheduler) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorUpdateInferenceScheduler(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorPutResourcePolicy(response, &metadata) } - output := &UpdateInferenceSchedulerOutput{} + output := &PutResourcePolicyOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentPutResourcePolicyOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson10_deserializeOpErrorUpdateInferenceScheduler(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3848,6 +3971,9 @@ func awsAwsjson10_deserializeOpErrorUpdateInferenceScheduler(response *smithyhtt case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -3864,14 +3990,14 @@ func awsAwsjson10_deserializeOpErrorUpdateInferenceScheduler(response *smithyhtt } } -type awsAwsjson10_deserializeOpUpdateLabelGroup struct { +type awsAwsjson10_deserializeOpStartDataIngestionJob struct { } -func (*awsAwsjson10_deserializeOpUpdateLabelGroup) ID() string { +func (*awsAwsjson10_deserializeOpStartDataIngestionJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpUpdateLabelGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpStartDataIngestionJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3885,21 +4011,43 @@ func (m *awsAwsjson10_deserializeOpUpdateLabelGroup) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorUpdateLabelGroup(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorStartDataIngestionJob(response, &metadata) } - output := &UpdateLabelGroupOutput{} + output := &StartDataIngestionJobOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentStartDataIngestionJobOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson10_deserializeOpErrorUpdateLabelGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorStartDataIngestionJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3952,6 +4100,9 @@ func awsAwsjson10_deserializeOpErrorUpdateLabelGroup(response *smithyhttp.Respon case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) @@ -3968,46 +4119,36 @@ func awsAwsjson10_deserializeOpErrorUpdateLabelGroup(response *smithyhttp.Respon } } -func awsAwsjson10_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } +type awsAwsjson10_deserializeOpStartInferenceScheduler struct { +} - output := &types.AccessDeniedException{} - err := awsAwsjson10_deserializeDocumentAccessDeniedException(&output, shape) +func (*awsAwsjson10_deserializeOpStartInferenceScheduler) ID() string { + return "OperationDeserializer" +} +func (m *awsAwsjson10_deserializeOpStartInferenceScheduler) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output -} + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorStartInferenceScheduler(response, &metadata) + } + output := &StartInferenceSchedulerOutput{} + out.Result = output -func awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -4018,12 +4159,10 @@ func awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Respons Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.ConflictException{} - err := awsAwsjson10_deserializeDocumentConflictException(&output, shape) - + err = awsAwsjson10_deserializeOpDocumentStartInferenceSchedulerOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4031,57 +4170,35 @@ func awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Respons Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson10_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err +func awsAwsjson10_deserializeOpErrorStartInferenceScheduler(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } + errorBody := bytes.NewReader(errorBuffer.Bytes()) - output := &types.InternalServerException{} - err := awsAwsjson10_deserializeDocumentInternalServerException(&output, shape) + errorCode := "UnknownError" + errorMessage := errorCode - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) } - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -4091,28 +4208,73 @@ func awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp return err } - output := &types.ResourceNotFoundException{} - err := awsAwsjson10_deserializeDocumentResourceNotFoundException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson10_deserializeOpStopInferenceScheduler struct { } -func awsAwsjson10_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson10_deserializeOpStopInferenceScheduler) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpStopInferenceScheduler) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorStopInferenceScheduler(response, &metadata) + } + output := &StopInferenceSchedulerOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -4123,12 +4285,10 @@ func awsAwsjson10_deserializeErrorServiceQuotaExceededException(response *smithy Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.ServiceQuotaExceededException{} - err := awsAwsjson10_deserializeDocumentServiceQuotaExceededException(&output, shape) - + err = awsAwsjson10_deserializeOpDocumentStopInferenceSchedulerOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4136,22 +4296,35 @@ func awsAwsjson10_deserializeErrorServiceQuotaExceededException(response *smithy Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson10_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson10_deserializeOpErrorStopInferenceScheduler(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -4161,28 +4334,73 @@ func awsAwsjson10_deserializeErrorThrottlingException(response *smithyhttp.Respo return err } - output := &types.ThrottlingException{} - err := awsAwsjson10_deserializeDocumentThrottlingException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson10_deserializeOpTagResource struct { } -func awsAwsjson10_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson10_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -4193,12 +4411,10 @@ func awsAwsjson10_deserializeErrorValidationException(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.ValidationException{} - err := awsAwsjson10_deserializeDocumentValidationException(&output, shape) - + err = awsAwsjson10_deserializeOpDocumentTagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4206,68 +4422,838 @@ func awsAwsjson10_deserializeErrorValidationException(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +func awsAwsjson10_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } + errorBody := bytes.NewReader(errorBuffer.Bytes()) - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + errorCode := "UnknownError" + errorMessage := errorCode - var sv *types.AccessDeniedException - if *v == nil { - sv = &types.AccessDeniedException{} - } else { - sv = *v + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return err } - *v = sv - return nil -} -func awsAwsjson10_deserializeDocumentCategoricalValues(v **types.CategoricalValues, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if value == nil { - return nil + if len(message) != 0 { + errorMessage = message } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - var sv *types.CategoricalValues - if *v == nil { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUntagResource struct { +} + +func (*awsAwsjson10_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentUntagResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUpdateActiveModelVersion struct { +} + +func (*awsAwsjson10_deserializeOpUpdateActiveModelVersion) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateActiveModelVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorUpdateActiveModelVersion(response, &metadata) + } + output := &UpdateActiveModelVersionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentUpdateActiveModelVersionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorUpdateActiveModelVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUpdateInferenceScheduler struct { +} + +func (*awsAwsjson10_deserializeOpUpdateInferenceScheduler) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateInferenceScheduler) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorUpdateInferenceScheduler(response, &metadata) + } + output := &UpdateInferenceSchedulerOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorUpdateInferenceScheduler(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUpdateLabelGroup struct { +} + +func (*awsAwsjson10_deserializeOpUpdateLabelGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateLabelGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorUpdateLabelGroup(response, &metadata) + } + output := &UpdateLabelGroupOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorUpdateLabelGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsjson10_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.AccessDeniedException{} + err := awsAwsjson10_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ConflictException{} + err := awsAwsjson10_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InternalServerException{} + err := awsAwsjson10_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceNotFoundException{} + err := awsAwsjson10_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ServiceQuotaExceededException{} + err := awsAwsjson10_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ThrottlingException{} + err := awsAwsjson10_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ValidationException{} + err := awsAwsjson10_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentCategoricalValues(v **types.CategoricalValues, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CategoricalValues + if *v == nil { sv = &types.CategoricalValues{} } else { sv = *v @@ -4403,16 +5389,218 @@ func awsAwsjson10_deserializeDocumentCountPercent(v **types.CountPercent, value case strings.EqualFold(jtv, "-Infinity"): f64 = math.Inf(-1) - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Percentage = float32(f64) + + default: + return fmt.Errorf("expected Float to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentDataIngestionJobSummaries(v *[]types.DataIngestionJobSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataIngestionJobSummary + if *v == nil { + cv = []types.DataIngestionJobSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataIngestionJobSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentDataIngestionJobSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentDataIngestionJobSummary(v **types.DataIngestionJobSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataIngestionJobSummary + if *v == nil { + sv = &types.DataIngestionJobSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "DatasetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) + } + sv.DatasetName = ptr.String(jtv) + } + + case "IngestionInputConfiguration": + if err := awsAwsjson10_deserializeDocumentIngestionInputConfiguration(&sv.IngestionInputConfiguration, value); err != nil { + return err + } + + case "JobId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionJobId to be of type string, got %T instead", value) + } + sv.JobId = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.IngestionJobStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentDataPreProcessingConfiguration(v **types.DataPreProcessingConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataPreProcessingConfiguration + if *v == nil { + sv = &types.DataPreProcessingConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TargetSamplingRate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TargetSamplingRate to be of type string, got %T instead", value) + } + sv.TargetSamplingRate = types.TargetSamplingRate(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentDataQualitySummary(v **types.DataQualitySummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataQualitySummary + if *v == nil { + sv = &types.DataQualitySummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DuplicateTimestamps": + if err := awsAwsjson10_deserializeDocumentDuplicateTimestamps(&sv.DuplicateTimestamps, value); err != nil { + return err + } + + case "InsufficientSensorData": + if err := awsAwsjson10_deserializeDocumentInsufficientSensorData(&sv.InsufficientSensorData, value); err != nil { + return err + } - } - sv.Percentage = float32(f64) + case "InvalidSensorData": + if err := awsAwsjson10_deserializeDocumentInvalidSensorData(&sv.InvalidSensorData, value); err != nil { + return err + } - default: - return fmt.Errorf("expected Float to be a JSON Number, got %T instead", value) + case "MissingSensorData": + if err := awsAwsjson10_deserializeDocumentMissingSensorData(&sv.MissingSensorData, value); err != nil { + return err + } - } + case "UnsupportedTimestamps": + if err := awsAwsjson10_deserializeDocumentUnsupportedTimestamps(&sv.UnsupportedTimestamps, value); err != nil { + return err } default: @@ -4424,7 +5612,7 @@ func awsAwsjson10_deserializeDocumentCountPercent(v **types.CountPercent, value return nil } -func awsAwsjson10_deserializeDocumentDataIngestionJobSummaries(v *[]types.DataIngestionJobSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentDatasetSummaries(v *[]types.DatasetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4437,17 +5625,17 @@ func awsAwsjson10_deserializeDocumentDataIngestionJobSummaries(v *[]types.DataIn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataIngestionJobSummary + var cv []types.DatasetSummary if *v == nil { - cv = []types.DataIngestionJobSummary{} + cv = []types.DatasetSummary{} } else { cv = *v } for _, value := range shape { - var col types.DataIngestionJobSummary + var col types.DatasetSummary destAddr := &col - if err := awsAwsjson10_deserializeDocumentDataIngestionJobSummary(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentDatasetSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -4458,7 +5646,7 @@ func awsAwsjson10_deserializeDocumentDataIngestionJobSummaries(v *[]types.DataIn return nil } -func awsAwsjson10_deserializeDocumentDataIngestionJobSummary(v **types.DataIngestionJobSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentDatasetSummary(v **types.DatasetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4471,15 +5659,31 @@ func awsAwsjson10_deserializeDocumentDataIngestionJobSummary(v **types.DataInges return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataIngestionJobSummary + var sv *types.DatasetSummary if *v == nil { - sv = &types.DataIngestionJobSummary{} + sv = &types.DatasetSummary{} } else { sv = *v } for key, value := range shape { switch key { + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + case "DatasetArn": if value != nil { jtv, ok := value.(string) @@ -4498,27 +5702,13 @@ func awsAwsjson10_deserializeDocumentDataIngestionJobSummary(v **types.DataInges sv.DatasetName = ptr.String(jtv) } - case "IngestionInputConfiguration": - if err := awsAwsjson10_deserializeDocumentIngestionInputConfiguration(&sv.IngestionInputConfiguration, value); err != nil { - return err - } - - case "JobId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IngestionJobId to be of type string, got %T instead", value) - } - sv.JobId = ptr.String(jtv) - } - case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IngestionJobStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetStatus to be of type string, got %T instead", value) } - sv.Status = types.IngestionJobStatus(jtv) + sv.Status = types.DatasetStatus(jtv) } default: @@ -4530,7 +5720,7 @@ func awsAwsjson10_deserializeDocumentDataIngestionJobSummary(v **types.DataInges return nil } -func awsAwsjson10_deserializeDocumentDataPreProcessingConfiguration(v **types.DataPreProcessingConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentDuplicateTimestamps(v **types.DuplicateTimestamps, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4543,22 +5733,26 @@ func awsAwsjson10_deserializeDocumentDataPreProcessingConfiguration(v **types.Da return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPreProcessingConfiguration + var sv *types.DuplicateTimestamps if *v == nil { - sv = &types.DataPreProcessingConfiguration{} + sv = &types.DuplicateTimestamps{} } else { sv = *v } for key, value := range shape { switch key { - case "TargetSamplingRate": + case "TotalNumberOfDuplicateTimestamps": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected TargetSamplingRate to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.TargetSamplingRate = types.TargetSamplingRate(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalNumberOfDuplicateTimestamps = ptr.Int32(int32(i64)) } default: @@ -4570,7 +5764,77 @@ func awsAwsjson10_deserializeDocumentDataPreProcessingConfiguration(v **types.Da return nil } -func awsAwsjson10_deserializeDocumentDataQualitySummary(v **types.DataQualitySummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentFaultCodes(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FaultCode to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentInferenceEventSummaries(v *[]types.InferenceEventSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.InferenceEventSummary + if *v == nil { + cv = []types.InferenceEventSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.InferenceEventSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentInferenceEventSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentInferenceEventSummary(v **types.InferenceEventSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4583,38 +5847,85 @@ func awsAwsjson10_deserializeDocumentDataQualitySummary(v **types.DataQualitySum return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataQualitySummary + var sv *types.InferenceEventSummary if *v == nil { - sv = &types.DataQualitySummary{} + sv = &types.InferenceEventSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "DuplicateTimestamps": - if err := awsAwsjson10_deserializeDocumentDuplicateTimestamps(&sv.DuplicateTimestamps, value); err != nil { - return err + case "Diagnostics": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelMetrics to be of type string, got %T instead", value) + } + sv.Diagnostics = ptr.String(jtv) } - case "InsufficientSensorData": - if err := awsAwsjson10_deserializeDocumentInsufficientSensorData(&sv.InsufficientSensorData, value); err != nil { - return err + case "EventDurationInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected EventDurationInSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.EventDurationInSeconds = ptr.Int64(i64) } - case "InvalidSensorData": - if err := awsAwsjson10_deserializeDocumentInvalidSensorData(&sv.InvalidSensorData, value); err != nil { - return err + case "EventEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EventEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "MissingSensorData": - if err := awsAwsjson10_deserializeDocumentMissingSensorData(&sv.MissingSensorData, value); err != nil { - return err + case "EventStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EventStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "UnsupportedTimestamps": - if err := awsAwsjson10_deserializeDocumentUnsupportedTimestamps(&sv.UnsupportedTimestamps, value); err != nil { - return err + case "InferenceSchedulerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) + } + sv.InferenceSchedulerArn = ptr.String(jtv) + } + + case "InferenceSchedulerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) + } + sv.InferenceSchedulerName = ptr.String(jtv) } default: @@ -4626,7 +5937,7 @@ func awsAwsjson10_deserializeDocumentDataQualitySummary(v **types.DataQualitySum return nil } -func awsAwsjson10_deserializeDocumentDatasetSummaries(v *[]types.DatasetSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceExecutionSummaries(v *[]types.InferenceExecutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4639,17 +5950,17 @@ func awsAwsjson10_deserializeDocumentDatasetSummaries(v *[]types.DatasetSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DatasetSummary + var cv []types.InferenceExecutionSummary if *v == nil { - cv = []types.DatasetSummary{} + cv = []types.InferenceExecutionSummary{} } else { cv = *v } for _, value := range shape { - var col types.DatasetSummary + var col types.InferenceExecutionSummary destAddr := &col - if err := awsAwsjson10_deserializeDocumentDatasetSummary(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentInferenceExecutionSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -4660,7 +5971,7 @@ func awsAwsjson10_deserializeDocumentDatasetSummaries(v *[]types.DatasetSummary, return nil } -func awsAwsjson10_deserializeDocumentDatasetSummary(v **types.DatasetSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceExecutionSummary(v **types.InferenceExecutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4673,16 +5984,21 @@ func awsAwsjson10_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DatasetSummary + var sv *types.InferenceExecutionSummary if *v == nil { - sv = &types.DatasetSummary{} + sv = &types.InferenceExecutionSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedAt": + case "CustomerResultObject": + if err := awsAwsjson10_deserializeDocumentS3Object(&sv.CustomerResultObject, value); err != nil { + return err + } + + case "DataEndTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -4690,7 +6006,7 @@ func awsAwsjson10_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if err != nil { return err } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -4698,31 +6014,100 @@ func awsAwsjson10_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va } } - case "DatasetArn": + case "DataInputConfiguration": + if err := awsAwsjson10_deserializeDocumentInferenceInputConfiguration(&sv.DataInputConfiguration, value); err != nil { + return err + } + + case "DataOutputConfiguration": + if err := awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(&sv.DataOutputConfiguration, value); err != nil { + return err + } + + case "DataStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FailedReason": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) } - sv.DatasetArn = ptr.String(jtv) + sv.FailedReason = ptr.String(jtv) } - case "DatasetName": + case "InferenceSchedulerArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) + } + sv.InferenceSchedulerArn = ptr.String(jtv) + } + + case "InferenceSchedulerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) + } + sv.InferenceSchedulerName = ptr.String(jtv) + } + + case "ModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) + } + sv.ModelArn = ptr.String(jtv) + } + + case "ModelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) + } + sv.ModelName = ptr.String(jtv) + } + + case "ScheduledStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ScheduledStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.DatasetName = ptr.String(jtv) } case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatasetStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceExecutionStatus to be of type string, got %T instead", value) } - sv.Status = types.DatasetStatus(jtv) + sv.Status = types.InferenceExecutionStatus(jtv) } default: @@ -4734,7 +6119,7 @@ func awsAwsjson10_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va return nil } -func awsAwsjson10_deserializeDocumentDuplicateTimestamps(v **types.DuplicateTimestamps, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceInputConfiguration(v **types.InferenceInputConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4747,26 +6132,32 @@ func awsAwsjson10_deserializeDocumentDuplicateTimestamps(v **types.DuplicateTime return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DuplicateTimestamps + var sv *types.InferenceInputConfiguration if *v == nil { - sv = &types.DuplicateTimestamps{} + sv = &types.InferenceInputConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "TotalNumberOfDuplicateTimestamps": + case "InferenceInputNameConfiguration": + if err := awsAwsjson10_deserializeDocumentInferenceInputNameConfiguration(&sv.InferenceInputNameConfiguration, value); err != nil { + return err + } + + case "InputTimeZoneOffset": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected TimeZoneOffset to be of type string, got %T instead", value) } - sv.TotalNumberOfDuplicateTimestamps = ptr.Int32(int32(i64)) + sv.InputTimeZoneOffset = ptr.String(jtv) + } + + case "S3InputConfiguration": + if err := awsAwsjson10_deserializeDocumentInferenceS3InputConfiguration(&sv.S3InputConfiguration, value); err != nil { + return err } default: @@ -4778,7 +6169,7 @@ func awsAwsjson10_deserializeDocumentDuplicateTimestamps(v **types.DuplicateTime return nil } -func awsAwsjson10_deserializeDocumentFaultCodes(v *[]string, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceInputNameConfiguration(v **types.InferenceInputNameConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4786,35 +6177,48 @@ func awsAwsjson10_deserializeDocumentFaultCodes(v *[]string, value interface{}) return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.InferenceInputNameConfiguration if *v == nil { - cv = []string{} + sv = &types.InferenceInputNameConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FaultCode to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "ComponentTimestampDelimiter": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComponentTimestampDelimiter to be of type string, got %T instead", value) + } + sv.ComponentTimestampDelimiter = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + case "TimestampFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileNameTimestampFormat to be of type string, got %T instead", value) + } + sv.TimestampFormat = ptr.String(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson10_deserializeDocumentInferenceEventSummaries(v *[]types.InferenceEventSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(v **types.InferenceOutputConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4822,33 +6226,44 @@ func awsAwsjson10_deserializeDocumentInferenceEventSummaries(v *[]types.Inferenc return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.InferenceEventSummary + var sv *types.InferenceOutputConfiguration if *v == nil { - cv = []types.InferenceEventSummary{} + sv = &types.InferenceOutputConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.InferenceEventSummary - destAddr := &col - if err := awsAwsjson10_deserializeDocumentInferenceEventSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "KmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameOrArn to be of type string, got %T instead", value) + } + sv.KmsKeyId = ptr.String(jtv) + } + + case "S3OutputConfiguration": + if err := awsAwsjson10_deserializeDocumentInferenceS3OutputConfiguration(&sv.S3OutputConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsAwsjson10_deserializeDocumentInferenceEventSummary(v **types.InferenceEventSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceS3InputConfiguration(v **types.InferenceS3InputConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4861,85 +6276,80 @@ func awsAwsjson10_deserializeDocumentInferenceEventSummary(v **types.InferenceEv return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceEventSummary + var sv *types.InferenceS3InputConfiguration if *v == nil { - sv = &types.InferenceEventSummary{} + sv = &types.InferenceS3InputConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Diagnostics": + case "Bucket": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ModelMetrics to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Diagnostics = ptr.String(jtv) + sv.Bucket = ptr.String(jtv) } - case "EventDurationInSeconds": + case "Prefix": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected EventDurationInSeconds to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) } - sv.EventDurationInSeconds = ptr.Int64(i64) + sv.Prefix = ptr.String(jtv) } - case "EventEndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.EventEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + default: + _, _ = key, value - } - } + } + } + *v = sv + return nil +} - case "EventStartTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.EventStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) +func awsAwsjson10_deserializeDocumentInferenceS3OutputConfiguration(v **types.InferenceS3OutputConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - } - } + var sv *types.InferenceS3OutputConfiguration + if *v == nil { + sv = &types.InferenceS3OutputConfiguration{} + } else { + sv = *v + } - case "InferenceSchedulerArn": + for key, value := range shape { + switch key { + case "Bucket": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.InferenceSchedulerArn = ptr.String(jtv) + sv.Bucket = ptr.String(jtv) } - case "InferenceSchedulerName": + case "Prefix": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) } - sv.InferenceSchedulerName = ptr.String(jtv) + sv.Prefix = ptr.String(jtv) } default: @@ -4951,7 +6361,7 @@ func awsAwsjson10_deserializeDocumentInferenceEventSummary(v **types.InferenceEv return nil } -func awsAwsjson10_deserializeDocumentInferenceExecutionSummaries(v *[]types.InferenceExecutionSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceSchedulerSummaries(v *[]types.InferenceSchedulerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4964,17 +6374,17 @@ func awsAwsjson10_deserializeDocumentInferenceExecutionSummaries(v *[]types.Infe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.InferenceExecutionSummary + var cv []types.InferenceSchedulerSummary if *v == nil { - cv = []types.InferenceExecutionSummary{} + cv = []types.InferenceSchedulerSummary{} } else { cv = *v } for _, value := range shape { - var col types.InferenceExecutionSummary + var col types.InferenceSchedulerSummary destAddr := &col - if err := awsAwsjson10_deserializeDocumentInferenceExecutionSummary(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentInferenceSchedulerSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -4985,7 +6395,7 @@ func awsAwsjson10_deserializeDocumentInferenceExecutionSummaries(v *[]types.Infe return nil } -func awsAwsjson10_deserializeDocumentInferenceExecutionSummary(v **types.InferenceExecutionSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentInferenceSchedulerSummary(v **types.InferenceSchedulerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4998,69 +6408,35 @@ func awsAwsjson10_deserializeDocumentInferenceExecutionSummary(v **types.Inferen return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceExecutionSummary + var sv *types.InferenceSchedulerSummary if *v == nil { - sv = &types.InferenceExecutionSummary{} + sv = &types.InferenceSchedulerSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomerResultObject": - if err := awsAwsjson10_deserializeDocumentS3Object(&sv.CustomerResultObject, value); err != nil { - return err - } - - case "DataEndTime": + case "DataDelayOffsetInMinutes": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected DataDelayOffsetInMinutes to be json.Number, got %T instead", value) } - } - - case "DataInputConfiguration": - if err := awsAwsjson10_deserializeDocumentInferenceInputConfiguration(&sv.DataInputConfiguration, value); err != nil { - return err - } - - case "DataOutputConfiguration": - if err := awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(&sv.DataOutputConfiguration, value); err != nil { - return err - } - - case "DataStartTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + i64, err := jtv.Int64() + if err != nil { + return err } + sv.DataDelayOffsetInMinutes = ptr.Int64(i64) } - case "FailedReason": + case "DataUploadFrequency": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + return fmt.Errorf("expected DataUploadFrequency to be of type string, got %T instead", value) } - sv.FailedReason = ptr.String(jtv) + sv.DataUploadFrequency = types.DataUploadFrequency(jtv) } case "InferenceSchedulerArn": @@ -5081,6 +6457,15 @@ func awsAwsjson10_deserializeDocumentInferenceExecutionSummary(v **types.Inferen sv.InferenceSchedulerName = ptr.String(jtv) } + case "LatestInferenceResult": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LatestInferenceResult to be of type string, got %T instead", value) + } + sv.LatestInferenceResult = types.LatestInferenceResult(jtv) + } + case "ModelArn": if value != nil { jtv, ok := value.(string) @@ -5099,29 +6484,13 @@ func awsAwsjson10_deserializeDocumentInferenceExecutionSummary(v **types.Inferen sv.ModelName = ptr.String(jtv) } - case "ScheduledStartTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ScheduledStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceExecutionStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceSchedulerStatus to be of type string, got %T instead", value) } - sv.Status = types.InferenceExecutionStatus(jtv) + sv.Status = types.InferenceSchedulerStatus(jtv) } default: @@ -5133,7 +6502,7 @@ func awsAwsjson10_deserializeDocumentInferenceExecutionSummary(v **types.Inferen return nil } -func awsAwsjson10_deserializeDocumentInferenceInputConfiguration(v **types.InferenceInputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentIngestedFilesSummary(v **types.IngestedFilesSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5146,31 +6515,79 @@ func awsAwsjson10_deserializeDocumentInferenceInputConfiguration(v **types.Infer return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceInputConfiguration + var sv *types.IngestedFilesSummary if *v == nil { - sv = &types.InferenceInputConfiguration{} + sv = &types.IngestedFilesSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "InferenceInputNameConfiguration": - if err := awsAwsjson10_deserializeDocumentInferenceInputNameConfiguration(&sv.InferenceInputNameConfiguration, value); err != nil { + case "DiscardedFiles": + if err := awsAwsjson10_deserializeDocumentListOfDiscardedFiles(&sv.DiscardedFiles, value); err != nil { return err } - case "InputTimeZoneOffset": + case "IngestedNumberOfFiles": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected TimeZoneOffset to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.InputTimeZoneOffset = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.IngestedNumberOfFiles = ptr.Int32(int32(i64)) + } + + case "TotalNumberOfFiles": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalNumberOfFiles = ptr.Int32(int32(i64)) } + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentIngestionInputConfiguration(v **types.IngestionInputConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.IngestionInputConfiguration + if *v == nil { + sv = &types.IngestionInputConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { case "S3InputConfiguration": - if err := awsAwsjson10_deserializeDocumentInferenceS3InputConfiguration(&sv.S3InputConfiguration, value); err != nil { + if err := awsAwsjson10_deserializeDocumentIngestionS3InputConfiguration(&sv.S3InputConfiguration, value); err != nil { return err } @@ -5183,7 +6600,7 @@ func awsAwsjson10_deserializeDocumentInferenceInputConfiguration(v **types.Infer return nil } -func awsAwsjson10_deserializeDocumentInferenceInputNameConfiguration(v **types.InferenceInputNameConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentIngestionS3InputConfiguration(v **types.IngestionS3InputConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5196,31 +6613,40 @@ func awsAwsjson10_deserializeDocumentInferenceInputNameConfiguration(v **types.I return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceInputNameConfiguration + var sv *types.IngestionS3InputConfiguration if *v == nil { - sv = &types.InferenceInputNameConfiguration{} + sv = &types.IngestionS3InputConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ComponentTimestampDelimiter": + case "Bucket": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ComponentTimestampDelimiter to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.ComponentTimestampDelimiter = ptr.String(jtv) + sv.Bucket = ptr.String(jtv) } - case "TimestampFormat": + case "KeyPattern": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FileNameTimestampFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected KeyPattern to be of type string, got %T instead", value) } - sv.TimestampFormat = ptr.String(jtv) + sv.KeyPattern = ptr.String(jtv) + } + + case "Prefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) + } + sv.Prefix = ptr.String(jtv) } default: @@ -5232,7 +6658,7 @@ func awsAwsjson10_deserializeDocumentInferenceInputNameConfiguration(v **types.I return nil } -func awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(v **types.InferenceOutputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentInsufficientSensorData(v **types.InsufficientSensorData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5245,26 +6671,22 @@ func awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(v **types.Infe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceOutputConfiguration + var sv *types.InsufficientSensorData if *v == nil { - sv = &types.InferenceOutputConfiguration{} + sv = &types.InsufficientSensorData{} } else { sv = *v } for key, value := range shape { switch key { - case "KmsKeyId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NameOrArn to be of type string, got %T instead", value) - } - sv.KmsKeyId = ptr.String(jtv) + case "MissingCompleteSensorData": + if err := awsAwsjson10_deserializeDocumentMissingCompleteSensorData(&sv.MissingCompleteSensorData, value); err != nil { + return err } - case "S3OutputConfiguration": - if err := awsAwsjson10_deserializeDocumentInferenceS3OutputConfiguration(&sv.S3OutputConfiguration, value); err != nil { + case "SensorsWithShortDateRange": + if err := awsAwsjson10_deserializeDocumentSensorsWithShortDateRange(&sv.SensorsWithShortDateRange, value); err != nil { return err } @@ -5277,7 +6699,7 @@ func awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(v **types.Infe return nil } -func awsAwsjson10_deserializeDocumentInferenceS3InputConfiguration(v **types.InferenceS3InputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5290,31 +6712,22 @@ func awsAwsjson10_deserializeDocumentInferenceS3InputConfiguration(v **types.Inf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceS3InputConfiguration + var sv *types.InternalServerException if *v == nil { - sv = &types.InferenceS3InputConfiguration{} + sv = &types.InternalServerException{} } else { sv = *v } for key, value := range shape { switch key { - case "Bucket": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) - } - sv.Bucket = ptr.String(jtv) - } - - case "Prefix": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) } - sv.Prefix = ptr.String(jtv) + sv.Message = ptr.String(jtv) } default: @@ -5326,7 +6739,7 @@ func awsAwsjson10_deserializeDocumentInferenceS3InputConfiguration(v **types.Inf return nil } -func awsAwsjson10_deserializeDocumentInferenceS3OutputConfiguration(v **types.InferenceS3OutputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentInvalidSensorData(v **types.InvalidSensorData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5339,31 +6752,39 @@ func awsAwsjson10_deserializeDocumentInferenceS3OutputConfiguration(v **types.In return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceS3OutputConfiguration + var sv *types.InvalidSensorData if *v == nil { - sv = &types.InferenceS3OutputConfiguration{} + sv = &types.InvalidSensorData{} } else { sv = *v } for key, value := range shape { switch key { - case "Bucket": + case "AffectedSensorCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.Bucket = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AffectedSensorCount = ptr.Int32(int32(i64)) } - case "Prefix": + case "TotalNumberOfInvalidValues": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.Prefix = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalNumberOfInvalidValues = ptr.Int32(int32(i64)) } default: @@ -5375,7 +6796,7 @@ func awsAwsjson10_deserializeDocumentInferenceS3OutputConfiguration(v **types.In return nil } -func awsAwsjson10_deserializeDocumentInferenceSchedulerSummaries(v *[]types.InferenceSchedulerSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentLabelGroupSummaries(v *[]types.LabelGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5388,17 +6809,17 @@ func awsAwsjson10_deserializeDocumentInferenceSchedulerSummaries(v *[]types.Infe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.InferenceSchedulerSummary + var cv []types.LabelGroupSummary if *v == nil { - cv = []types.InferenceSchedulerSummary{} + cv = []types.LabelGroupSummary{} } else { cv = *v } for _, value := range shape { - var col types.InferenceSchedulerSummary + var col types.LabelGroupSummary destAddr := &col - if err := awsAwsjson10_deserializeDocumentInferenceSchedulerSummary(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentLabelGroupSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -5409,7 +6830,7 @@ func awsAwsjson10_deserializeDocumentInferenceSchedulerSummaries(v *[]types.Infe return nil } -func awsAwsjson10_deserializeDocumentInferenceSchedulerSummary(v **types.InferenceSchedulerSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentLabelGroupSummary(v **types.LabelGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5422,89 +6843,63 @@ func awsAwsjson10_deserializeDocumentInferenceSchedulerSummary(v **types.Inferen return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InferenceSchedulerSummary + var sv *types.LabelGroupSummary if *v == nil { - sv = &types.InferenceSchedulerSummary{} + sv = &types.LabelGroupSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "DataDelayOffsetInMinutes": + case "CreatedAt": if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected DataDelayOffsetInMinutes to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.DataDelayOffsetInMinutes = ptr.Int64(i64) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "DataUploadFrequency": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataUploadFrequency to be of type string, got %T instead", value) - } - sv.DataUploadFrequency = types.DataUploadFrequency(jtv) - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "InferenceSchedulerArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) } - sv.InferenceSchedulerArn = ptr.String(jtv) } - case "InferenceSchedulerName": + case "LabelGroupArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) + return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) } - sv.InferenceSchedulerName = ptr.String(jtv) + sv.LabelGroupArn = ptr.String(jtv) } - case "LatestInferenceResult": + case "LabelGroupName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LatestInferenceResult to be of type string, got %T instead", value) + return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) } - sv.LatestInferenceResult = types.LatestInferenceResult(jtv) + sv.LabelGroupName = ptr.String(jtv) } - case "ModelArn": + case "UpdatedAt": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) - } - sv.ModelArn = ptr.String(jtv) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "ModelName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) - } - sv.ModelName = ptr.String(jtv) - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected InferenceSchedulerStatus to be of type string, got %T instead", value) } - sv.Status = types.InferenceSchedulerStatus(jtv) } default: @@ -5516,7 +6911,7 @@ func awsAwsjson10_deserializeDocumentInferenceSchedulerSummary(v **types.Inferen return nil } -func awsAwsjson10_deserializeDocumentIngestedFilesSummary(v **types.IngestedFilesSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentLabelsInputConfiguration(v **types.LabelsInputConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5529,44 +6924,27 @@ func awsAwsjson10_deserializeDocumentIngestedFilesSummary(v **types.IngestedFile return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IngestedFilesSummary + var sv *types.LabelsInputConfiguration if *v == nil { - sv = &types.IngestedFilesSummary{} + sv = &types.LabelsInputConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DiscardedFiles": - if err := awsAwsjson10_deserializeDocumentListOfDiscardedFiles(&sv.DiscardedFiles, value); err != nil { - return err - } - - case "IngestedNumberOfFiles": + case "LabelGroupName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) } - sv.IngestedNumberOfFiles = ptr.Int32(int32(i64)) + sv.LabelGroupName = ptr.String(jtv) } - case "TotalNumberOfFiles": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalNumberOfFiles = ptr.Int32(int32(i64)) + case "S3InputConfiguration": + if err := awsAwsjson10_deserializeDocumentLabelsS3InputConfiguration(&sv.S3InputConfiguration, value); err != nil { + return err } default: @@ -5578,7 +6956,7 @@ func awsAwsjson10_deserializeDocumentIngestedFilesSummary(v **types.IngestedFile return nil } -func awsAwsjson10_deserializeDocumentIngestionInputConfiguration(v **types.IngestionInputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentLabelsS3InputConfiguration(v **types.LabelsS3InputConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5591,18 +6969,31 @@ func awsAwsjson10_deserializeDocumentIngestionInputConfiguration(v **types.Inges return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IngestionInputConfiguration + var sv *types.LabelsS3InputConfiguration if *v == nil { - sv = &types.IngestionInputConfiguration{} + sv = &types.LabelsS3InputConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "S3InputConfiguration": - if err := awsAwsjson10_deserializeDocumentIngestionS3InputConfiguration(&sv.S3InputConfiguration, value); err != nil { - return err + case "Bucket": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) + } + sv.Bucket = ptr.String(jtv) + } + + case "Prefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) + } + sv.Prefix = ptr.String(jtv) } default: @@ -5614,7 +7005,7 @@ func awsAwsjson10_deserializeDocumentIngestionInputConfiguration(v **types.Inges return nil } -func awsAwsjson10_deserializeDocumentIngestionS3InputConfiguration(v **types.IngestionS3InputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentLabelSummaries(v *[]types.LabelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5622,57 +7013,33 @@ func awsAwsjson10_deserializeDocumentIngestionS3InputConfiguration(v **types.Ing return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IngestionS3InputConfiguration + var cv []types.LabelSummary if *v == nil { - sv = &types.IngestionS3InputConfiguration{} + cv = []types.LabelSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Bucket": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) - } - sv.Bucket = ptr.String(jtv) - } - - case "KeyPattern": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected KeyPattern to be of type string, got %T instead", value) - } - sv.KeyPattern = ptr.String(jtv) - } - - case "Prefix": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) - } - sv.Prefix = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.LabelSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentLabelSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson10_deserializeDocumentInsufficientSensorData(v **types.InsufficientSensorData, value interface{}) error { +func awsAwsjson10_deserializeDocumentLabelSummary(v **types.LabelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5685,63 +7052,115 @@ func awsAwsjson10_deserializeDocumentInsufficientSensorData(v **types.Insufficie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InsufficientSensorData + var sv *types.LabelSummary if *v == nil { - sv = &types.InsufficientSensorData{} + sv = &types.LabelSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "MissingCompleteSensorData": - if err := awsAwsjson10_deserializeDocumentMissingCompleteSensorData(&sv.MissingCompleteSensorData, value); err != nil { - return err + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "SensorsWithShortDateRange": - if err := awsAwsjson10_deserializeDocumentSensorsWithShortDateRange(&sv.SensorsWithShortDateRange, value); err != nil { - return err + case "EndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - default: - _, _ = key, value + case "Equipment": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Equipment to be of type string, got %T instead", value) + } + sv.Equipment = ptr.String(jtv) + } - } - } - *v = sv - return nil -} + case "FaultCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FaultCode to be of type string, got %T instead", value) + } + sv.FaultCode = ptr.String(jtv) + } -func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "LabelGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) + } + sv.LabelGroupArn = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "LabelGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) + } + sv.LabelGroupName = ptr.String(jtv) + } - var sv *types.InternalServerException - if *v == nil { - sv = &types.InternalServerException{} - } else { - sv = *v - } + case "LabelId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LabelId to be of type string, got %T instead", value) + } + sv.LabelId = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "Message": + case "Rating": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + return fmt.Errorf("expected LabelRating to be of type string, got %T instead", value) + } + sv.Rating = types.LabelRating(jtv) + } + + case "StartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Message = ptr.String(jtv) } default: @@ -5753,7 +7172,7 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS return nil } -func awsAwsjson10_deserializeDocumentInvalidSensorData(v **types.InvalidSensorData, value interface{}) error { +func awsAwsjson10_deserializeDocumentLargeTimestampGaps(v **types.LargeTimestampGaps, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5766,16 +7185,16 @@ func awsAwsjson10_deserializeDocumentInvalidSensorData(v **types.InvalidSensorDa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidSensorData + var sv *types.LargeTimestampGaps if *v == nil { - sv = &types.InvalidSensorData{} + sv = &types.LargeTimestampGaps{} } else { sv = *v } for key, value := range shape { switch key { - case "AffectedSensorCount": + case "MaxTimestampGapInDays": if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5785,10 +7204,10 @@ func awsAwsjson10_deserializeDocumentInvalidSensorData(v **types.InvalidSensorDa if err != nil { return err } - sv.AffectedSensorCount = ptr.Int32(int32(i64)) + sv.MaxTimestampGapInDays = ptr.Int32(int32(i64)) } - case "TotalNumberOfInvalidValues": + case "NumberOfLargeTimestampGaps": if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5798,7 +7217,16 @@ func awsAwsjson10_deserializeDocumentInvalidSensorData(v **types.InvalidSensorDa if err != nil { return err } - sv.TotalNumberOfInvalidValues = ptr.Int32(int32(i64)) + sv.NumberOfLargeTimestampGaps = ptr.Int32(int32(i64)) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatisticalIssueStatus to be of type string, got %T instead", value) + } + sv.Status = types.StatisticalIssueStatus(jtv) } default: @@ -5810,7 +7238,7 @@ func awsAwsjson10_deserializeDocumentInvalidSensorData(v **types.InvalidSensorDa return nil } -func awsAwsjson10_deserializeDocumentLabelGroupSummaries(v *[]types.LabelGroupSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentListOfDiscardedFiles(v *[]types.S3Object, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5823,17 +7251,17 @@ func awsAwsjson10_deserializeDocumentLabelGroupSummaries(v *[]types.LabelGroupSu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.LabelGroupSummary + var cv []types.S3Object if *v == nil { - cv = []types.LabelGroupSummary{} + cv = []types.S3Object{} } else { cv = *v } for _, value := range shape { - var col types.LabelGroupSummary + var col types.S3Object destAddr := &col - if err := awsAwsjson10_deserializeDocumentLabelGroupSummary(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentS3Object(&destAddr, value); err != nil { return err } col = *destAddr @@ -5844,7 +7272,7 @@ func awsAwsjson10_deserializeDocumentLabelGroupSummaries(v *[]types.LabelGroupSu return nil } -func awsAwsjson10_deserializeDocumentLabelGroupSummary(v **types.LabelGroupSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentMissingCompleteSensorData(v **types.MissingCompleteSensorData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5857,63 +7285,83 @@ func awsAwsjson10_deserializeDocumentLabelGroupSummary(v **types.LabelGroupSumma return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LabelGroupSummary + var sv *types.MissingCompleteSensorData if *v == nil { - sv = &types.LabelGroupSummary{} + sv = &types.MissingCompleteSensorData{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "LabelGroupArn": + case "AffectedSensorCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.LabelGroupArn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AffectedSensorCount = ptr.Int32(int32(i64)) } - case "LabelGroupName": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentMissingSensorData(v **types.MissingSensorData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MissingSensorData + if *v == nil { + sv = &types.MissingSensorData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AffectedSensorCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.LabelGroupName = ptr.String(jtv) - } - - case "UpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AffectedSensorCount = ptr.Int32(int32(i64)) + } + case "TotalNumberOfMissingValues": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err } + sv.TotalNumberOfMissingValues = ptr.Int32(int32(i64)) } default: @@ -5925,7 +7373,7 @@ func awsAwsjson10_deserializeDocumentLabelGroupSummary(v **types.LabelGroupSumma return nil } -func awsAwsjson10_deserializeDocumentLabelsInputConfiguration(v **types.LabelsInputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentModelSummaries(v *[]types.ModelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5933,44 +7381,33 @@ func awsAwsjson10_deserializeDocumentLabelsInputConfiguration(v **types.LabelsIn return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LabelsInputConfiguration + var cv []types.ModelSummary if *v == nil { - sv = &types.LabelsInputConfiguration{} + cv = []types.ModelSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "LabelGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) - } - sv.LabelGroupName = ptr.String(jtv) - } - - case "S3InputConfiguration": - if err := awsAwsjson10_deserializeDocumentLabelsS3InputConfiguration(&sv.S3InputConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ModelSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentModelSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson10_deserializeDocumentLabelsS3InputConfiguration(v **types.LabelsS3InputConfiguration, value interface{}) error { +func awsAwsjson10_deserializeDocumentModelSummary(v **types.ModelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5983,31 +7420,96 @@ func awsAwsjson10_deserializeDocumentLabelsS3InputConfiguration(v **types.Labels return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LabelsS3InputConfiguration + var sv *types.ModelSummary if *v == nil { - sv = &types.LabelsS3InputConfiguration{} + sv = &types.ModelSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Bucket": + case "ActiveModelVersion": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ActiveModelVersion = ptr.Int64(i64) + } + + case "ActiveModelVersionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) } - sv.Bucket = ptr.String(jtv) + sv.ActiveModelVersionArn = ptr.String(jtv) } - case "Prefix": + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DatasetArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) } - sv.Prefix = ptr.String(jtv) + sv.DatasetArn = ptr.String(jtv) + } + + case "DatasetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) + } + sv.DatasetName = ptr.String(jtv) + } + + case "ModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) + } + sv.ModelArn = ptr.String(jtv) + } + + case "ModelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) + } + sv.ModelName = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value) + } + sv.Status = types.ModelStatus(jtv) } default: @@ -6019,7 +7521,7 @@ func awsAwsjson10_deserializeDocumentLabelsS3InputConfiguration(v **types.Labels return nil } -func awsAwsjson10_deserializeDocumentLabelSummaries(v *[]types.LabelSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentModelVersionSummaries(v *[]types.ModelVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6032,17 +7534,17 @@ func awsAwsjson10_deserializeDocumentLabelSummaries(v *[]types.LabelSummary, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.LabelSummary + var cv []types.ModelVersionSummary if *v == nil { - cv = []types.LabelSummary{} + cv = []types.ModelVersionSummary{} } else { cv = *v } for _, value := range shape { - var col types.LabelSummary + var col types.ModelVersionSummary destAddr := &col - if err := awsAwsjson10_deserializeDocumentLabelSummary(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentModelVersionSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -6053,7 +7555,7 @@ func awsAwsjson10_deserializeDocumentLabelSummaries(v *[]types.LabelSummary, val return nil } -func awsAwsjson10_deserializeDocumentLabelSummary(v **types.LabelSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentModelVersionSummary(v **types.ModelVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6066,9 +7568,9 @@ func awsAwsjson10_deserializeDocumentLabelSummary(v **types.LabelSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LabelSummary + var sv *types.ModelVersionSummary if *v == nil { - sv = &types.LabelSummary{} + sv = &types.ModelVersionSummary{} } else { sv = *v } @@ -6091,90 +7593,151 @@ func awsAwsjson10_deserializeDocumentLabelSummary(v **types.LabelSummary, value } } - case "EndTime": + case "ModelArn": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } + sv.ModelArn = ptr.String(jtv) } - case "Equipment": + case "ModelName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Equipment to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.Equipment = ptr.String(jtv) + sv.ModelName = ptr.String(jtv) } - case "FaultCode": + case "ModelVersion": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected FaultCode to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) } - sv.FaultCode = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ModelVersion = ptr.Int64(i64) } - case "LabelGroupArn": + case "ModelVersionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) } - sv.LabelGroupArn = ptr.String(jtv) + sv.ModelVersionArn = ptr.String(jtv) } - case "LabelGroupName": + case "SourceType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionSourceType to be of type string, got %T instead", value) } - sv.LabelGroupName = ptr.String(jtv) + sv.SourceType = types.ModelVersionSourceType(jtv) } - case "LabelId": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LabelId to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionStatus to be of type string, got %T instead", value) } - sv.LabelId = ptr.String(jtv) + sv.Status = types.ModelVersionStatus(jtv) } - case "Rating": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentMonotonicValues(v **types.MonotonicValues, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MonotonicValues + if *v == nil { + sv = &types.MonotonicValues{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Monotonicity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LabelRating to be of type string, got %T instead", value) + return fmt.Errorf("expected Monotonicity to be of type string, got %T instead", value) } - sv.Rating = types.LabelRating(jtv) + sv.Monotonicity = types.Monotonicity(jtv) } - case "StartTime": + case "Status": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatisticalIssueStatus to be of type string, got %T instead", value) + } + sv.Status = types.StatisticalIssueStatus(jtv) + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentMultipleOperatingModes(v **types.MultipleOperatingModes, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MultipleOperatingModes + if *v == nil { + sv = &types.MultipleOperatingModes{} + } else { + sv = *v + } + for key, value := range shape { + switch key { + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatisticalIssueStatus to be of type string, got %T instead", value) } + sv.Status = types.StatisticalIssueStatus(jtv) } default: @@ -6186,7 +7749,7 @@ func awsAwsjson10_deserializeDocumentLabelSummary(v **types.LabelSummary, value return nil } -func awsAwsjson10_deserializeDocumentLargeTimestampGaps(v **types.LargeTimestampGaps, value interface{}) error { +func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6199,48 +7762,71 @@ func awsAwsjson10_deserializeDocumentLargeTimestampGaps(v **types.LargeTimestamp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LargeTimestampGaps + var sv *types.ResourceNotFoundException if *v == nil { - sv = &types.LargeTimestampGaps{} + sv = &types.ResourceNotFoundException{} } else { sv = *v } for key, value := range shape { switch key { - case "MaxTimestampGapInDays": + case "Message": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) } - sv.MaxTimestampGapInDays = ptr.Int32(int32(i64)) + sv.Message = ptr.String(jtv) } - case "NumberOfLargeTimestampGaps": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentS3Object(v **types.S3Object, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.S3Object + if *v == nil { + sv = &types.S3Object{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Bucket": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.NumberOfLargeTimestampGaps = ptr.Int32(int32(i64)) + sv.Bucket = ptr.String(jtv) } - case "Status": + case "Key": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StatisticalIssueStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.Status = types.StatisticalIssueStatus(jtv) + sv.Key = ptr.String(jtv) } default: @@ -6252,7 +7838,7 @@ func awsAwsjson10_deserializeDocumentLargeTimestampGaps(v **types.LargeTimestamp return nil } -func awsAwsjson10_deserializeDocumentListOfDiscardedFiles(v *[]types.S3Object, value interface{}) error { +func awsAwsjson10_deserializeDocumentSensorStatisticsSummaries(v *[]types.SensorStatisticsSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6265,17 +7851,17 @@ func awsAwsjson10_deserializeDocumentListOfDiscardedFiles(v *[]types.S3Object, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.S3Object + var cv []types.SensorStatisticsSummary if *v == nil { - cv = []types.S3Object{} + cv = []types.SensorStatisticsSummary{} } else { cv = *v } for _, value := range shape { - var col types.S3Object + var col types.SensorStatisticsSummary destAddr := &col - if err := awsAwsjson10_deserializeDocumentS3Object(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentSensorStatisticsSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -6286,7 +7872,7 @@ func awsAwsjson10_deserializeDocumentListOfDiscardedFiles(v *[]types.S3Object, v return nil } -func awsAwsjson10_deserializeDocumentMissingCompleteSensorData(v **types.MissingCompleteSensorData, value interface{}) error { +func awsAwsjson10_deserializeDocumentSensorStatisticsSummary(v **types.SensorStatisticsSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6299,26 +7885,112 @@ func awsAwsjson10_deserializeDocumentMissingCompleteSensorData(v **types.Missing return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MissingCompleteSensorData + var sv *types.SensorStatisticsSummary if *v == nil { - sv = &types.MissingCompleteSensorData{} + sv = &types.SensorStatisticsSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "AffectedSensorCount": + case "CategoricalValues": + if err := awsAwsjson10_deserializeDocumentCategoricalValues(&sv.CategoricalValues, value); err != nil { + return err + } + + case "ComponentName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + return fmt.Errorf("expected ComponentName to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.ComponentName = ptr.String(jtv) + } + + case "DataEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.AffectedSensorCount = ptr.Int32(int32(i64)) + } + + case "DataExists": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.DataExists = jtv + } + + case "DataStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DuplicateTimestamps": + if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.DuplicateTimestamps, value); err != nil { + return err + } + + case "InvalidDateEntries": + if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.InvalidDateEntries, value); err != nil { + return err + } + + case "InvalidValues": + if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.InvalidValues, value); err != nil { + return err + } + + case "LargeTimestampGaps": + if err := awsAwsjson10_deserializeDocumentLargeTimestampGaps(&sv.LargeTimestampGaps, value); err != nil { + return err + } + + case "MissingValues": + if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.MissingValues, value); err != nil { + return err + } + + case "MonotonicValues": + if err := awsAwsjson10_deserializeDocumentMonotonicValues(&sv.MonotonicValues, value); err != nil { + return err + } + + case "MultipleOperatingModes": + if err := awsAwsjson10_deserializeDocumentMultipleOperatingModes(&sv.MultipleOperatingModes, value); err != nil { + return err + } + + case "SensorName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SensorName to be of type string, got %T instead", value) + } + sv.SensorName = ptr.String(jtv) } default: @@ -6330,7 +8002,7 @@ func awsAwsjson10_deserializeDocumentMissingCompleteSensorData(v **types.Missing return nil } -func awsAwsjson10_deserializeDocumentMissingSensorData(v **types.MissingSensorData, value interface{}) error { +func awsAwsjson10_deserializeDocumentSensorsWithShortDateRange(v **types.SensorsWithShortDateRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6343,9 +8015,9 @@ func awsAwsjson10_deserializeDocumentMissingSensorData(v **types.MissingSensorDa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MissingSensorData + var sv *types.SensorsWithShortDateRange if *v == nil { - sv = &types.MissingSensorData{} + sv = &types.SensorsWithShortDateRange{} } else { sv = *v } @@ -6362,66 +8034,19 @@ func awsAwsjson10_deserializeDocumentMissingSensorData(v **types.MissingSensorDa if err != nil { return err } - sv.AffectedSensorCount = ptr.Int32(int32(i64)) - } - - case "TotalNumberOfMissingValues": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalNumberOfMissingValues = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentModelSummaries(v *[]types.ModelSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ModelSummary - if *v == nil { - cv = []types.ModelSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ModelSummary - destAddr := &col - if err := awsAwsjson10_deserializeDocumentModelSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + sv.AffectedSensorCount = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsAwsjson10_deserializeDocumentModelSummary(v **types.ModelSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6434,74 +8059,22 @@ func awsAwsjson10_deserializeDocumentModelSummary(v **types.ModelSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ModelSummary + var sv *types.ServiceQuotaExceededException if *v == nil { - sv = &types.ModelSummary{} + sv = &types.ServiceQuotaExceededException{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DatasetArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) - } - sv.DatasetArn = ptr.String(jtv) - } - - case "DatasetName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) - } - sv.DatasetName = ptr.String(jtv) - } - - case "ModelArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) - } - sv.ModelArn = ptr.String(jtv) - } - - case "ModelName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) - } - sv.ModelName = ptr.String(jtv) - } - - case "Status": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) } - sv.Status = types.ModelStatus(jtv) + sv.Message = ptr.String(jtv) } default: @@ -6513,7 +8086,7 @@ func awsAwsjson10_deserializeDocumentModelSummary(v **types.ModelSummary, value return nil } -func awsAwsjson10_deserializeDocumentMonotonicValues(v **types.MonotonicValues, value interface{}) error { +func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6526,31 +8099,31 @@ func awsAwsjson10_deserializeDocumentMonotonicValues(v **types.MonotonicValues, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MonotonicValues + var sv *types.Tag if *v == nil { - sv = &types.MonotonicValues{} + sv = &types.Tag{} } else { sv = *v } for key, value := range shape { switch key { - case "Monotonicity": + case "Key": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Monotonicity to be of type string, got %T instead", value) + return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Monotonicity = types.Monotonicity(jtv) + sv.Key = ptr.String(jtv) } - case "Status": + case "Value": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StatisticalIssueStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Status = types.StatisticalIssueStatus(jtv) + sv.Value = ptr.String(jtv) } default: @@ -6562,7 +8135,7 @@ func awsAwsjson10_deserializeDocumentMonotonicValues(v **types.MonotonicValues, return nil } -func awsAwsjson10_deserializeDocumentMultipleOperatingModes(v **types.MultipleOperatingModes, value interface{}) error { +func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6570,39 +8143,33 @@ func awsAwsjson10_deserializeDocumentMultipleOperatingModes(v **types.MultipleOp return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MultipleOperatingModes + var cv []types.Tag if *v == nil { - sv = &types.MultipleOperatingModes{} + cv = []types.Tag{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StatisticalIssueStatus to be of type string, got %T instead", value) - } - sv.Status = types.StatisticalIssueStatus(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.Tag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { +func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6615,9 +8182,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceNotFoundException + var sv *types.ThrottlingException if *v == nil { - sv = &types.ResourceNotFoundException{} + sv = &types.ThrottlingException{} } else { sv = *v } @@ -6642,7 +8209,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson10_deserializeDocumentS3Object(v **types.S3Object, value interface{}) error { +func awsAwsjson10_deserializeDocumentUnsupportedTimestamps(v **types.UnsupportedTimestamps, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6655,31 +8222,26 @@ func awsAwsjson10_deserializeDocumentS3Object(v **types.S3Object, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.S3Object + var sv *types.UnsupportedTimestamps if *v == nil { - sv = &types.S3Object{} + sv = &types.UnsupportedTimestamps{} } else { sv = *v } for key, value := range shape { switch key { - case "Bucket": + case "TotalNumberOfUnsupportedTimestamps": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.Bucket = ptr.String(jtv) - } - - case "Key": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.Key = ptr.String(jtv) + sv.TotalNumberOfUnsupportedTimestamps = ptr.Int32(int32(i64)) } default: @@ -6691,7 +8253,7 @@ func awsAwsjson10_deserializeDocumentS3Object(v **types.S3Object, value interfac return nil } -func awsAwsjson10_deserializeDocumentSensorStatisticsSummaries(v *[]types.SensorStatisticsSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6699,33 +8261,39 @@ func awsAwsjson10_deserializeDocumentSensorStatisticsSummaries(v *[]types.Sensor return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.SensorStatisticsSummary + var sv *types.ValidationException if *v == nil { - cv = []types.SensorStatisticsSummary{} + sv = &types.ValidationException{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.SensorStatisticsSummary - destAddr := &col - if err := awsAwsjson10_deserializeDocumentSensorStatisticsSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsAwsjson10_deserializeDocumentSensorStatisticsSummary(v **types.SensorStatisticsSummary, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6738,112 +8306,98 @@ func awsAwsjson10_deserializeDocumentSensorStatisticsSummary(v **types.SensorSta return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SensorStatisticsSummary + var sv *CreateDatasetOutput if *v == nil { - sv = &types.SensorStatisticsSummary{} + sv = &CreateDatasetOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoricalValues": - if err := awsAwsjson10_deserializeDocumentCategoricalValues(&sv.CategoricalValues, value); err != nil { - return err - } - - case "ComponentName": + case "DatasetArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ComponentName to be of type string, got %T instead", value) - } - sv.ComponentName = ptr.String(jtv) - } - - case "DataEndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) } + sv.DatasetArn = ptr.String(jtv) } - case "DataExists": + case "DatasetName": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.DataExists = jtv + sv.DatasetName = ptr.String(jtv) } - case "DataStartTime": + case "Status": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetStatus to be of type string, got %T instead", value) } + sv.Status = types.DatasetStatus(jtv) } - case "DuplicateTimestamps": - if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.DuplicateTimestamps, value); err != nil { - return err - } - - case "InvalidDateEntries": - if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.InvalidDateEntries, value); err != nil { - return err - } - - case "InvalidValues": - if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.InvalidValues, value); err != nil { - return err - } + default: + _, _ = key, value - case "LargeTimestampGaps": - if err := awsAwsjson10_deserializeDocumentLargeTimestampGaps(&sv.LargeTimestampGaps, value); err != nil { - return err - } + } + } + *v = sv + return nil +} - case "MissingValues": - if err := awsAwsjson10_deserializeDocumentCountPercent(&sv.MissingValues, value); err != nil { - return err - } +func awsAwsjson10_deserializeOpDocumentCreateInferenceSchedulerOutput(v **CreateInferenceSchedulerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "MonotonicValues": - if err := awsAwsjson10_deserializeDocumentMonotonicValues(&sv.MonotonicValues, value); err != nil { - return err + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateInferenceSchedulerOutput + if *v == nil { + sv = &CreateInferenceSchedulerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "InferenceSchedulerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) + } + sv.InferenceSchedulerArn = ptr.String(jtv) } - case "MultipleOperatingModes": - if err := awsAwsjson10_deserializeDocumentMultipleOperatingModes(&sv.MultipleOperatingModes, value); err != nil { - return err + case "InferenceSchedulerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) + } + sv.InferenceSchedulerName = ptr.String(jtv) } - case "SensorName": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SensorName to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceSchedulerStatus to be of type string, got %T instead", value) } - sv.SensorName = ptr.String(jtv) + sv.Status = types.InferenceSchedulerStatus(jtv) } default: @@ -6855,7 +8409,7 @@ func awsAwsjson10_deserializeDocumentSensorStatisticsSummary(v **types.SensorSta return nil } -func awsAwsjson10_deserializeDocumentSensorsWithShortDateRange(v **types.SensorsWithShortDateRange, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentCreateLabelGroupOutput(v **CreateLabelGroupOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6868,26 +8422,31 @@ func awsAwsjson10_deserializeDocumentSensorsWithShortDateRange(v **types.Sensors return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SensorsWithShortDateRange + var sv *CreateLabelGroupOutput if *v == nil { - sv = &types.SensorsWithShortDateRange{} + sv = &CreateLabelGroupOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AffectedSensorCount": + case "LabelGroupArn": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.LabelGroupArn = ptr.String(jtv) + } + + case "LabelGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) } - sv.AffectedSensorCount = ptr.Int32(int32(i64)) + sv.LabelGroupName = ptr.String(jtv) } default: @@ -6899,7 +8458,7 @@ func awsAwsjson10_deserializeDocumentSensorsWithShortDateRange(v **types.Sensors return nil } -func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentCreateLabelOutput(v **CreateLabelOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6912,22 +8471,22 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ServiceQuotaExceededException + var sv *CreateLabelOutput if *v == nil { - sv = &types.ServiceQuotaExceededException{} + sv = &CreateLabelOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "LabelId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + return fmt.Errorf("expected LabelId to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.LabelId = ptr.String(jtv) } default: @@ -6939,7 +8498,7 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser return nil } -func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6952,31 +8511,31 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Tag + var sv *CreateModelOutput if *v == nil { - sv = &types.Tag{} + sv = &CreateModelOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Key": + case "ModelArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.Key = ptr.String(jtv) + sv.ModelArn = ptr.String(jtv) } - case "Value": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value) } - sv.Value = ptr.String(jtv) + sv.Status = types.ModelStatus(jtv) } default: @@ -6988,7 +8547,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **DescribeDataIngestionJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6996,61 +8555,157 @@ func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Tag + var sv *DescribeDataIngestionJobOutput if *v == nil { - cv = []types.Tag{} + sv = &DescribeDataIngestionJobOutput{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Tag - destAddr := &col - if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - } - *v = cv - return nil -} + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) -func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + } + } + + case "DataEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataQualitySummary": + if err := awsAwsjson10_deserializeDocumentDataQualitySummary(&sv.DataQualitySummary, value); err != nil { + return err + } + + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "DataStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FailedReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + } + sv.FailedReason = ptr.String(jtv) + } + + case "IngestedDataSize": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected DataSizeInBytes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.IngestedDataSize = ptr.Int64(i64) + } + + case "IngestedFilesSummary": + if err := awsAwsjson10_deserializeDocumentIngestedFilesSummary(&sv.IngestedFilesSummary, value); err != nil { + return err + } + + case "IngestionInputConfiguration": + if err := awsAwsjson10_deserializeDocumentIngestionInputConfiguration(&sv.IngestionInputConfiguration, value); err != nil { + return err + } + + case "JobId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionJobId to be of type string, got %T instead", value) + } + sv.JobId = ptr.String(jtv) + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "SourceDatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + } + sv.SourceDatasetArn = ptr.String(jtv) + } - var sv *types.ThrottlingException - if *v == nil { - sv = &types.ThrottlingException{} - } else { - sv = *v - } + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.IngestionJobStatus(jtv) + } - for key, value := range shape { - switch key { - case "Message": + case "StatusDetail": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.StatusDetail = ptr.String(jtv) } default: @@ -7062,7 +8717,7 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc return nil } -func awsAwsjson10_deserializeDocumentUnsupportedTimestamps(v **types.UnsupportedTimestamps, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDatasetOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7075,66 +8730,155 @@ func awsAwsjson10_deserializeDocumentUnsupportedTimestamps(v **types.Unsupported return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.UnsupportedTimestamps + var sv *DescribeDatasetOutput if *v == nil { - sv = &types.UnsupportedTimestamps{} + sv = &DescribeDatasetOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "TotalNumberOfUnsupportedTimestamps": + case "CreatedAt": if value != nil { - jtv, ok := value.(json.Number) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataQualitySummary": + if err := awsAwsjson10_deserializeDocumentDataQualitySummary(&sv.DataQualitySummary, value); err != nil { + return err + } + + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.DatasetArn = ptr.String(jtv) + } + + case "DatasetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.TotalNumberOfUnsupportedTimestamps = ptr.Int32(int32(i64)) + sv.DatasetName = ptr.String(jtv) } - default: - _, _ = key, value + case "DataStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - } - } - *v = sv - return nil -} + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) -func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + } + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "IngestedFilesSummary": + if err := awsAwsjson10_deserializeDocumentIngestedFilesSummary(&sv.IngestedFilesSummary, value); err != nil { + return err + } - var sv *types.ValidationException - if *v == nil { - sv = &types.ValidationException{} - } else { - sv = *v - } + case "IngestionInputConfiguration": + if err := awsAwsjson10_deserializeDocumentIngestionInputConfiguration(&sv.IngestionInputConfiguration, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "Message": + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.RoleArn = ptr.String(jtv) + } + + case "Schema": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SynthesizedJsonInlineDataSchema to be of type string, got %T instead", value) + } + sv.Schema = ptr.String(jtv) + } + + case "ServerSideKmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + } + sv.ServerSideKmsKeyId = ptr.String(jtv) + } + + case "SourceDatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + } + sv.SourceDatasetArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetStatus to be of type string, got %T instead", value) + } + sv.Status = types.DatasetStatus(jtv) } default: @@ -7146,7 +8890,7 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc return nil } -func awsAwsjson10_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeInferenceSchedulerOutput(v **DescribeInferenceSchedulerOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7159,89 +8903,124 @@ func awsAwsjson10_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateDatasetOutput + var sv *DescribeInferenceSchedulerOutput if *v == nil { - sv = &CreateDatasetOutput{} + sv = &DescribeInferenceSchedulerOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DatasetArn": + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataDelayOffsetInMinutes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected DataDelayOffsetInMinutes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DataDelayOffsetInMinutes = ptr.Int64(i64) + } + + case "DataInputConfiguration": + if err := awsAwsjson10_deserializeDocumentInferenceInputConfiguration(&sv.DataInputConfiguration, value); err != nil { + return err + } + + case "DataOutputConfiguration": + if err := awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(&sv.DataOutputConfiguration, value); err != nil { + return err + } + + case "DataUploadFrequency": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataUploadFrequency to be of type string, got %T instead", value) + } + sv.DataUploadFrequency = types.DataUploadFrequency(jtv) + } + + case "InferenceSchedulerArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) } - sv.DatasetArn = ptr.String(jtv) + sv.InferenceSchedulerArn = ptr.String(jtv) } - case "DatasetName": + case "InferenceSchedulerName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) } - sv.DatasetName = ptr.String(jtv) + sv.InferenceSchedulerName = ptr.String(jtv) } - case "Status": + case "LatestInferenceResult": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatasetStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected LatestInferenceResult to be of type string, got %T instead", value) } - sv.Status = types.DatasetStatus(jtv) + sv.LatestInferenceResult = types.LatestInferenceResult(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeOpDocumentCreateInferenceSchedulerOutput(v **CreateInferenceSchedulerOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "ModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) + } + sv.ModelArn = ptr.String(jtv) + } - var sv *CreateInferenceSchedulerOutput - if *v == nil { - sv = &CreateInferenceSchedulerOutput{} - } else { - sv = *v - } + case "ModelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) + } + sv.ModelName = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "InferenceSchedulerArn": + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) + return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.InferenceSchedulerArn = ptr.String(jtv) + sv.RoleArn = ptr.String(jtv) } - case "InferenceSchedulerName": + case "ServerSideKmsKeyId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.InferenceSchedulerName = ptr.String(jtv) + sv.ServerSideKmsKeyId = ptr.String(jtv) } case "Status": @@ -7253,6 +9032,22 @@ func awsAwsjson10_deserializeOpDocumentCreateInferenceSchedulerOutput(v **Create sv.Status = types.InferenceSchedulerStatus(jtv) } + case "UpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + default: _, _ = key, value @@ -7262,7 +9057,7 @@ func awsAwsjson10_deserializeOpDocumentCreateInferenceSchedulerOutput(v **Create return nil } -func awsAwsjson10_deserializeOpDocumentCreateLabelGroupOutput(v **CreateLabelGroupOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeLabelGroupOutput(v **DescribeLabelGroupOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7275,15 +9070,36 @@ func awsAwsjson10_deserializeOpDocumentCreateLabelGroupOutput(v **CreateLabelGro return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateLabelGroupOutput + var sv *DescribeLabelGroupOutput if *v == nil { - sv = &CreateLabelGroupOutput{} + sv = &DescribeLabelGroupOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FaultCodes": + if err := awsAwsjson10_deserializeDocumentFaultCodes(&sv.FaultCodes, value); err != nil { + return err + } + case "LabelGroupArn": if value != nil { jtv, ok := value.(string) @@ -7302,6 +9118,22 @@ func awsAwsjson10_deserializeOpDocumentCreateLabelGroupOutput(v **CreateLabelGro sv.LabelGroupName = ptr.String(jtv) } + case "UpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + default: _, _ = key, value @@ -7311,7 +9143,7 @@ func awsAwsjson10_deserializeOpDocumentCreateLabelGroupOutput(v **CreateLabelGro return nil } -func awsAwsjson10_deserializeOpDocumentCreateLabelOutput(v **CreateLabelOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7324,71 +9156,124 @@ func awsAwsjson10_deserializeOpDocumentCreateLabelOutput(v **CreateLabelOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateLabelOutput + var sv *DescribeLabelOutput if *v == nil { - sv = &CreateLabelOutput{} + sv = &DescribeLabelOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "LabelId": + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "EndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Equipment": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LabelId to be of type string, got %T instead", value) + return fmt.Errorf("expected Equipment to be of type string, got %T instead", value) } - sv.LabelId = ptr.String(jtv) + sv.Equipment = ptr.String(jtv) } - default: - _, _ = key, value + case "FaultCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FaultCode to be of type string, got %T instead", value) + } + sv.FaultCode = ptr.String(jtv) + } - } - } - *v = sv - return nil -} + case "LabelGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) + } + sv.LabelGroupArn = ptr.String(jtv) + } -func awsAwsjson10_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "LabelGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) + } + sv.LabelGroupName = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "LabelId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LabelId to be of type string, got %T instead", value) + } + sv.LabelId = ptr.String(jtv) + } - var sv *CreateModelOutput - if *v == nil { - sv = &CreateModelOutput{} - } else { - sv = *v - } + case "Notes": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Comments to be of type string, got %T instead", value) + } + sv.Notes = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "ModelArn": + case "Rating": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) + return fmt.Errorf("expected LabelRating to be of type string, got %T instead", value) } - sv.ModelArn = ptr.String(jtv) + sv.Rating = types.LabelRating(jtv) } - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value) + case "StartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Status = types.ModelStatus(jtv) } default: @@ -7400,7 +9285,7 @@ func awsAwsjson10_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, return nil } -func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **DescribeDataIngestionJobOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7413,15 +9298,37 @@ func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **Descri return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDataIngestionJobOutput + var sv *DescribeModelOutput if *v == nil { - sv = &DescribeDataIngestionJobOutput{} + sv = &DescribeModelOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "ActiveModelVersion": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ActiveModelVersion = ptr.Int64(i64) + } + + case "ActiveModelVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) + } + sv.ActiveModelVersionArn = ptr.String(jtv) + } + case "CreatedAt": if value != nil { switch jtv := value.(type) { @@ -7438,7 +9345,30 @@ func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **Descri } } - case "DataEndTime": + case "DataPreProcessingConfiguration": + if err := awsAwsjson10_deserializeDocumentDataPreProcessingConfiguration(&sv.DataPreProcessingConfiguration, value); err != nil { + return err + } + + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "DatasetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) + } + sv.DatasetName = ptr.String(jtv) + } + + case "EvaluationDataEndTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7446,7 +9376,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **Descri if err != nil { return err } - sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.EvaluationDataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7454,21 +9384,112 @@ func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **Descri } } - case "DataQualitySummary": - if err := awsAwsjson10_deserializeDocumentDataQualitySummary(&sv.DataQualitySummary, value); err != nil { + case "EvaluationDataStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EvaluationDataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FailedReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + } + sv.FailedReason = ptr.String(jtv) + } + + case "ImportJobEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ImportJobEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "ImportJobStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ImportJobStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LabelsInputConfiguration": + if err := awsAwsjson10_deserializeDocumentLabelsInputConfiguration(&sv.LabelsInputConfiguration, value); err != nil { return err } - case "DatasetArn": + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "ModelArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.DatasetArn = ptr.String(jtv) + sv.ModelArn = ptr.String(jtv) } - case "DataStartTime": + case "ModelMetrics": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SynthesizedJsonModelMetrics to be of type string, got %T instead", value) + } + sv.ModelMetrics = ptr.String(jtv) + } + + case "ModelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) + } + sv.ModelName = ptr.String(jtv) + } + + case "ModelVersionActivatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7476,7 +9497,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **Descri if err != nil { return err } - sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.ModelVersionActivatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7484,72 +9505,160 @@ func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **Descri } } - case "FailedReason": + case "OffCondition": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + return fmt.Errorf("expected OffCondition to be of type string, got %T instead", value) } - sv.FailedReason = ptr.String(jtv) + sv.OffCondition = ptr.String(jtv) } - case "IngestedDataSize": + case "PreviousActiveModelVersion": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected DataSizeInBytes to be json.Number, got %T instead", value) + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.IngestedDataSize = ptr.Int64(i64) + sv.PreviousActiveModelVersion = ptr.Int64(i64) } - case "IngestedFilesSummary": - if err := awsAwsjson10_deserializeDocumentIngestedFilesSummary(&sv.IngestedFilesSummary, value); err != nil { - return err + case "PreviousActiveModelVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) + } + sv.PreviousActiveModelVersionArn = ptr.String(jtv) } - case "IngestionInputConfiguration": - if err := awsAwsjson10_deserializeDocumentIngestionInputConfiguration(&sv.IngestionInputConfiguration, value); err != nil { - return err + case "PreviousModelVersionActivatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.PreviousModelVersionActivatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "JobId": + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IngestionJobId to be of type string, got %T instead", value) + return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "Schema": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SynthesizedJsonInlineDataSchema to be of type string, got %T instead", value) + } + sv.Schema = ptr.String(jtv) + } + + case "ServerSideKmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + } + sv.ServerSideKmsKeyId = ptr.String(jtv) + } + + case "SourceModelVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) + } + sv.SourceModelVersionArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value) + } + sv.Status = types.ModelStatus(jtv) + } + + case "TrainingDataEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.TrainingDataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.JobId = ptr.String(jtv) } - case "RoleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + case "TrainingDataStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.TrainingDataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.RoleArn = ptr.String(jtv) } - case "Status": + case "TrainingExecutionEndTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IngestionJobStatus to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.TrainingExecutionEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Status = types.IngestionJobStatus(jtv) } - case "StatusDetail": + case "TrainingExecutionStartTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.TrainingExecutionStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.StatusDetail = ptr.String(jtv) } default: @@ -7561,7 +9670,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeDataIngestionJobOutput(v **Descri return nil } -func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDatasetOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeModelVersionOutput(v **DescribeModelVersionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7574,9 +9683,9 @@ func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDatasetOutput + var sv *DescribeModelVersionOutput if *v == nil { - sv = &DescribeDatasetOutput{} + sv = &DescribeModelVersionOutput{} } else { sv = *v } @@ -7599,24 +9708,8 @@ func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset } } - case "DataEndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DataQualitySummary": - if err := awsAwsjson10_deserializeDocumentDataQualitySummary(&sv.DataQualitySummary, value); err != nil { + case "DataPreProcessingConfiguration": + if err := awsAwsjson10_deserializeDocumentDataPreProcessingConfiguration(&sv.DataPreProcessingConfiguration, value); err != nil { return err } @@ -7638,7 +9731,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset sv.DatasetName = ptr.String(jtv) } - case "DataStartTime": + case "EvaluationDataEndTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7646,7 +9739,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset if err != nil { return err } - sv.DataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.EvaluationDataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7654,17 +9747,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset } } - case "IngestedFilesSummary": - if err := awsAwsjson10_deserializeDocumentIngestedFilesSummary(&sv.IngestedFilesSummary, value); err != nil { - return err - } - - case "IngestionInputConfiguration": - if err := awsAwsjson10_deserializeDocumentIngestionInputConfiguration(&sv.IngestionInputConfiguration, value); err != nil { - return err - } - - case "LastUpdatedAt": + case "EvaluationDataStartTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7672,7 +9755,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset if err != nil { return err } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.EvaluationDataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7680,74 +9763,66 @@ func awsAwsjson10_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset } } - case "RoleArn": + case "FailedReason": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) + sv.FailedReason = ptr.String(jtv) } - case "Schema": + case "ImportedDataSizeInBytes": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected SynthesizedJsonInlineDataSchema to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSizeInBytes to be json.Number, got %T instead", value) } - sv.Schema = ptr.String(jtv) - } - - case "ServerSideKmsKeyId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.ServerSideKmsKeyId = ptr.String(jtv) + sv.ImportedDataSizeInBytes = ptr.Int64(i64) } - case "Status": + case "ImportJobEndTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DatasetStatus to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ImportJobEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Status = types.DatasetStatus(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + case "ImportJobStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ImportJobStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) -func awsAwsjson10_deserializeOpDocumentDescribeInferenceSchedulerOutput(v **DescribeInferenceSchedulerOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + } + } - var sv *DescribeInferenceSchedulerOutput - if *v == nil { - sv = &DescribeInferenceSchedulerOutput{} - } else { - sv = *v - } + case "LabelsInputConfiguration": + if err := awsAwsjson10_deserializeDocumentLabelsInputConfiguration(&sv.LabelsInputConfiguration, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "CreatedAt": + case "LastUpdatedTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7755,7 +9830,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeInferenceSchedulerOutput(v **Desc if err != nil { return err } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7763,111 +9838,135 @@ func awsAwsjson10_deserializeOpDocumentDescribeInferenceSchedulerOutput(v **Desc } } - case "DataDelayOffsetInMinutes": + case "ModelArn": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataDelayOffsetInMinutes to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.DataDelayOffsetInMinutes = ptr.Int64(i64) + sv.ModelArn = ptr.String(jtv) } - case "DataInputConfiguration": - if err := awsAwsjson10_deserializeDocumentInferenceInputConfiguration(&sv.DataInputConfiguration, value); err != nil { - return err + case "ModelMetrics": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelMetrics to be of type string, got %T instead", value) + } + sv.ModelMetrics = ptr.String(jtv) } - case "DataOutputConfiguration": - if err := awsAwsjson10_deserializeDocumentInferenceOutputConfiguration(&sv.DataOutputConfiguration, value); err != nil { - return err + case "ModelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) + } + sv.ModelName = ptr.String(jtv) } - case "DataUploadFrequency": + case "ModelVersion": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected DataUploadFrequency to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) } - sv.DataUploadFrequency = types.DataUploadFrequency(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ModelVersion = ptr.Int64(i64) } - case "InferenceSchedulerArn": + case "ModelVersionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) } - sv.InferenceSchedulerArn = ptr.String(jtv) + sv.ModelVersionArn = ptr.String(jtv) } - case "InferenceSchedulerName": + case "OffCondition": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerName to be of type string, got %T instead", value) + return fmt.Errorf("expected OffCondition to be of type string, got %T instead", value) } - sv.InferenceSchedulerName = ptr.String(jtv) + sv.OffCondition = ptr.String(jtv) } - case "LatestInferenceResult": + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LatestInferenceResult to be of type string, got %T instead", value) + return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.LatestInferenceResult = types.LatestInferenceResult(jtv) + sv.RoleArn = ptr.String(jtv) } - case "ModelArn": + case "Schema": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) + return fmt.Errorf("expected InlineDataSchema to be of type string, got %T instead", value) } - sv.ModelArn = ptr.String(jtv) + sv.Schema = ptr.String(jtv) } - case "ModelName": + case "ServerSideKmsKeyId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.ModelName = ptr.String(jtv) + sv.ServerSideKmsKeyId = ptr.String(jtv) } - case "RoleArn": + case "SourceModelVersionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) + sv.SourceModelVersionArn = ptr.String(jtv) } - case "ServerSideKmsKeyId": + case "SourceType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionSourceType to be of type string, got %T instead", value) } - sv.ServerSideKmsKeyId = ptr.String(jtv) + sv.SourceType = types.ModelVersionSourceType(jtv) } case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InferenceSchedulerStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionStatus to be of type string, got %T instead", value) + } + sv.Status = types.ModelVersionStatus(jtv) + } + + case "TrainingDataEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.TrainingDataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Status = types.InferenceSchedulerStatus(jtv) } - case "UpdatedAt": + case "TrainingDataStartTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7875,7 +9974,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeInferenceSchedulerOutput(v **Desc if err != nil { return err } - sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.TrainingDataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7883,38 +9982,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeInferenceSchedulerOutput(v **Desc } } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeOpDocumentDescribeLabelGroupOutput(v **DescribeLabelGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DescribeLabelGroupOutput - if *v == nil { - sv = &DescribeLabelGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CreatedAt": + case "TrainingExecutionEndTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7922,7 +9990,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelGroupOutput(v **DescribeLabe if err != nil { return err } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.TrainingExecutionEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7930,30 +9998,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelGroupOutput(v **DescribeLabe } } - case "FaultCodes": - if err := awsAwsjson10_deserializeDocumentFaultCodes(&sv.FaultCodes, value); err != nil { - return err - } - - case "LabelGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) - } - sv.LabelGroupArn = ptr.String(jtv) - } - - case "LabelGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) - } - sv.LabelGroupName = ptr.String(jtv) - } - - case "UpdatedAt": + case "TrainingExecutionStartTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7961,7 +10006,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelGroupOutput(v **DescribeLabe if err != nil { return err } - sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.TrainingExecutionStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7978,7 +10023,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelGroupOutput(v **DescribeLabe return nil } -func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDescribeResourcePolicyOutput(v **DescribeResourcePolicyOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7991,16 +10036,16 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeLabelOutput + var sv *DescribeResourcePolicyOutput if *v == nil { - sv = &DescribeLabelOutput{} + sv = &DescribeResourcePolicyOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedAt": + case "CreationTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -8008,7 +10053,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutp if err != nil { return err } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -8016,7 +10061,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutp } } - case "EndTime": + case "LastModifiedTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -8024,7 +10069,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutp if err != nil { return err } - sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -8032,83 +10077,22 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutp } } - case "Equipment": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Equipment to be of type string, got %T instead", value) - } - sv.Equipment = ptr.String(jtv) - } - - case "FaultCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FaultCode to be of type string, got %T instead", value) - } - sv.FaultCode = ptr.String(jtv) - } - - case "LabelGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LabelGroupArn to be of type string, got %T instead", value) - } - sv.LabelGroupArn = ptr.String(jtv) - } - - case "LabelGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LabelGroupName to be of type string, got %T instead", value) - } - sv.LabelGroupName = ptr.String(jtv) - } - - case "LabelId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LabelId to be of type string, got %T instead", value) - } - sv.LabelId = ptr.String(jtv) - } - - case "Notes": + case "PolicyRevisionId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Comments to be of type string, got %T instead", value) + return fmt.Errorf("expected PolicyRevisionId to be of type string, got %T instead", value) } - sv.Notes = ptr.String(jtv) + sv.PolicyRevisionId = ptr.String(jtv) } - case "Rating": + case "ResourcePolicy": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LabelRating to be of type string, got %T instead", value) - } - sv.Rating = types.LabelRating(jtv) - } - - case "StartTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected Policy to be of type string, got %T instead", value) } + sv.ResourcePolicy = ptr.String(jtv) } default: @@ -8120,7 +10104,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLabelOutput(v **DescribeLabelOutp return nil } -func awsAwsjson10_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentImportDatasetOutput(v **ImportDatasetOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8133,36 +10117,15 @@ func awsAwsjson10_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeModelOutput + var sv *ImportDatasetOutput if *v == nil { - sv = &DescribeModelOutput{} + sv = &ImportDatasetOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DataPreProcessingConfiguration": - if err := awsAwsjson10_deserializeDocumentDataPreProcessingConfiguration(&sv.DataPreProcessingConfiguration, value); err != nil { - return err - } - case "DatasetArn": if value != nil { jtv, ok := value.(string) @@ -8181,84 +10144,62 @@ func awsAwsjson10_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutp sv.DatasetName = ptr.String(jtv) } - case "EvaluationDataEndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.EvaluationDataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "EvaluationDataStartTime": + case "JobId": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.EvaluationDataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionJobId to be of type string, got %T instead", value) } + sv.JobId = ptr.String(jtv) } - case "FailedReason": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BoundedLengthString to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetStatus to be of type string, got %T instead", value) } - sv.FailedReason = ptr.String(jtv) + sv.Status = types.DatasetStatus(jtv) } - case "LabelsInputConfiguration": - if err := awsAwsjson10_deserializeDocumentLabelsInputConfiguration(&sv.LabelsInputConfiguration, value); err != nil { - return err - } + default: + _, _ = key, value - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + } + } + *v = sv + return nil +} - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) +func awsAwsjson10_deserializeOpDocumentImportModelVersionOutput(v **ImportModelVersionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - } - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "ModelArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) - } - sv.ModelArn = ptr.String(jtv) - } + var sv *ImportModelVersionOutput + if *v == nil { + sv = &ImportModelVersionOutput{} + } else { + sv = *v + } - case "ModelMetrics": + for key, value := range shape { + switch key { + case "ModelArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SynthesizedJsonModelMetrics to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.ModelMetrics = ptr.String(jtv) + sv.ModelArn = ptr.String(jtv) } case "ModelName": @@ -8270,113 +10211,35 @@ func awsAwsjson10_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutp sv.ModelName = ptr.String(jtv) } - case "OffCondition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OffCondition to be of type string, got %T instead", value) - } - sv.OffCondition = ptr.String(jtv) - } - - case "RoleArn": + case "ModelVersion": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) - } - - case "Schema": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SynthesizedJsonInlineDataSchema to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.Schema = ptr.String(jtv) + sv.ModelVersion = ptr.Int64(i64) } - case "ServerSideKmsKeyId": + case "ModelVersionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) } - sv.ServerSideKmsKeyId = ptr.String(jtv) + sv.ModelVersionArn = ptr.String(jtv) } case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value) - } - sv.Status = types.ModelStatus(jtv) - } - - case "TrainingDataEndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.TrainingDataEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "TrainingDataStartTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.TrainingDataStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "TrainingExecutionEndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.TrainingExecutionEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "TrainingExecutionStartTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.TrainingExecutionStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected ModelVersionStatus to be of type string, got %T instead", value) } + sv.Status = types.ModelVersionStatus(jtv) } default: @@ -8748,6 +10611,51 @@ func awsAwsjson10_deserializeOpDocumentListModelsOutput(v **ListModelsOutput, va return nil } +func awsAwsjson10_deserializeOpDocumentListModelVersionsOutput(v **ListModelVersionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListModelVersionsOutput + if *v == nil { + sv = &ListModelVersionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ModelVersionSummaries": + if err := awsAwsjson10_deserializeDocumentModelVersionSummaries(&sv.ModelVersionSummaries, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeOpDocumentListSensorStatisticsOutput(v **ListSensorStatisticsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8829,6 +10737,55 @@ func awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } +func awsAwsjson10_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePolicyOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutResourcePolicyOutput + if *v == nil { + sv = &PutResourcePolicyOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "PolicyRevisionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PolicyRevisionId to be of type string, got %T instead", value) + } + sv.PolicyRevisionId = ptr.String(jtv) + } + + case "ResourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.ResourceArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeOpDocumentStartDataIngestionJobOutput(v **StartDataIngestionJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9091,3 +11048,96 @@ func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp *v = sv return nil } + +func awsAwsjson10_deserializeOpDocumentUpdateActiveModelVersionOutput(v **UpdateActiveModelVersionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateActiveModelVersionOutput + if *v == nil { + sv = &UpdateActiveModelVersionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CurrentActiveVersion": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.CurrentActiveVersion = ptr.Int64(i64) + } + + case "CurrentActiveVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) + } + sv.CurrentActiveVersionArn = ptr.String(jtv) + } + + case "ModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) + } + sv.ModelArn = ptr.String(jtv) + } + + case "ModelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) + } + sv.ModelName = ptr.String(jtv) + } + + case "PreviousActiveVersion": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ModelVersion to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PreviousActiveVersion = ptr.Int64(i64) + } + + case "PreviousActiveVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelVersionArn to be of type string, got %T instead", value) + } + sv.PreviousActiveVersionArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/lookoutequipment/endpoints_test.go b/service/lookoutequipment/endpoints_test.go index 02b25fc1338..180e5bd9d71 100644 --- a/service/lookoutequipment/endpoints_test.go +++ b/service/lookoutequipment/endpoints_test.go @@ -18,8 +18,8 @@ import ( func TestEndpointCase0(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("ap-northeast-2"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -57,8 +57,8 @@ func TestEndpointCase0(t *testing.T) { func TestEndpointCase1(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("eu-west-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -96,8 +96,8 @@ func TestEndpointCase1(t *testing.T) { func TestEndpointCase2(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -135,8 +135,8 @@ func TestEndpointCase2(t *testing.T) { func TestEndpointCase3(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -174,8 +174,8 @@ func TestEndpointCase3(t *testing.T) { func TestEndpointCase4(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -213,8 +213,8 @@ func TestEndpointCase4(t *testing.T) { func TestEndpointCase5(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -252,8 +252,8 @@ func TestEndpointCase5(t *testing.T) { func TestEndpointCase6(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -291,8 +291,8 @@ func TestEndpointCase6(t *testing.T) { func TestEndpointCase7(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -330,8 +330,8 @@ func TestEndpointCase7(t *testing.T) { func TestEndpointCase8(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -369,8 +369,8 @@ func TestEndpointCase8(t *testing.T) { func TestEndpointCase9(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("cn-north-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -408,8 +408,8 @@ func TestEndpointCase9(t *testing.T) { func TestEndpointCase10(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -447,8 +447,8 @@ func TestEndpointCase10(t *testing.T) { func TestEndpointCase11(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -486,8 +486,8 @@ func TestEndpointCase11(t *testing.T) { func TestEndpointCase12(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -525,8 +525,8 @@ func TestEndpointCase12(t *testing.T) { func TestEndpointCase13(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-gov-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -560,12 +560,32 @@ func TestEndpointCase13(t *testing.T) { } } -// For region us-iso-east-1 with FIPS enabled and DualStack disabled +// For region us-iso-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase14(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase15(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -599,12 +619,32 @@ func TestEndpointCase14(t *testing.T) { } } +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase16(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-iso-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase15(t *testing.T) { +func TestEndpointCase17(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-iso-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -638,12 +678,32 @@ func TestEndpointCase15(t *testing.T) { } } +// For region us-isob-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase18(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase16(t *testing.T) { +func TestEndpointCase19(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -677,12 +737,32 @@ func TestEndpointCase16(t *testing.T) { } } +// For region us-isob-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase20(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + // For region us-isob-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase17(t *testing.T) { +func TestEndpointCase21(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-isob-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -717,11 +797,11 @@ func TestEndpointCase17(t *testing.T) { } // For custom endpoint with region set and fips disabled and dualstack disabled -func TestEndpointCase18(t *testing.T) { +func TestEndpointCase22(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -757,10 +837,10 @@ func TestEndpointCase18(t *testing.T) { } // For custom endpoint with region not set and fips disabled and dualstack disabled -func TestEndpointCase19(t *testing.T) { +func TestEndpointCase23(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -796,11 +876,11 @@ func TestEndpointCase19(t *testing.T) { } // For custom endpoint with fips enabled and dualstack disabled -func TestEndpointCase20(t *testing.T) { +func TestEndpointCase24(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -817,11 +897,11 @@ func TestEndpointCase20(t *testing.T) { } // For custom endpoint with fips disabled and dualstack enabled -func TestEndpointCase21(t *testing.T) { +func TestEndpointCase25(t *testing.T) { var params = EndpointParameters{ Region: ptr.String("us-east-1"), - UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), Endpoint: ptr.String("https://example.com"), } @@ -836,3 +916,19 @@ func TestEndpointCase21(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } + +// Missing region +func TestEndpointCase26(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/lookoutequipment/generated.json b/service/lookoutequipment/generated.json index dfcf08d2261..11856e5d7b6 100644 --- a/service/lookoutequipment/generated.json +++ b/service/lookoutequipment/generated.json @@ -19,12 +19,17 @@ "api_op_DeleteLabel.go", "api_op_DeleteLabelGroup.go", "api_op_DeleteModel.go", + "api_op_DeleteResourcePolicy.go", "api_op_DescribeDataIngestionJob.go", "api_op_DescribeDataset.go", "api_op_DescribeInferenceScheduler.go", "api_op_DescribeLabel.go", "api_op_DescribeLabelGroup.go", "api_op_DescribeModel.go", + "api_op_DescribeModelVersion.go", + "api_op_DescribeResourcePolicy.go", + "api_op_ImportDataset.go", + "api_op_ImportModelVersion.go", "api_op_ListDataIngestionJobs.go", "api_op_ListDatasets.go", "api_op_ListInferenceEvents.go", @@ -32,14 +37,17 @@ "api_op_ListInferenceSchedulers.go", "api_op_ListLabelGroups.go", "api_op_ListLabels.go", + "api_op_ListModelVersions.go", "api_op_ListModels.go", "api_op_ListSensorStatistics.go", "api_op_ListTagsForResource.go", + "api_op_PutResourcePolicy.go", "api_op_StartDataIngestionJob.go", "api_op_StartInferenceScheduler.go", "api_op_StopInferenceScheduler.go", "api_op_TagResource.go", "api_op_UntagResource.go", + "api_op_UpdateActiveModelVersion.go", "api_op_UpdateInferenceScheduler.go", "api_op_UpdateLabelGroup.go", "deserializers.go", diff --git a/service/lookoutequipment/go.mod b/service/lookoutequipment/go.mod index 880c5492edf..f341ac6a85e 100644 --- a/service/lookoutequipment/go.mod +++ b/service/lookoutequipment/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lookoutequipment/go.sum +++ b/service/lookoutequipment/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutequipment/serializers.go b/service/lookoutequipment/serializers.go index 1d57247e161..c0127aa6220 100644 --- a/service/lookoutequipment/serializers.go +++ b/service/lookoutequipment/serializers.go @@ -566,6 +566,61 @@ func (m *awsAwsjson10_serializeOpDeleteModel) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } +type awsAwsjson10_serializeOpDeleteResourcePolicy struct { +} + +func (*awsAwsjson10_serializeOpDeleteResourcePolicy) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpDeleteResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteResourcePolicyInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.DeleteResourcePolicy") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDeleteResourcePolicyInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson10_serializeOpDescribeDataIngestionJob struct { } @@ -896,6 +951,226 @@ func (m *awsAwsjson10_serializeOpDescribeModel) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } +type awsAwsjson10_serializeOpDescribeModelVersion struct { +} + +func (*awsAwsjson10_serializeOpDescribeModelVersion) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpDescribeModelVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeModelVersionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.DescribeModelVersion") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDescribeModelVersionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpDescribeResourcePolicy struct { +} + +func (*awsAwsjson10_serializeOpDescribeResourcePolicy) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpDescribeResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeResourcePolicyInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.DescribeResourcePolicy") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDescribeResourcePolicyInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpImportDataset struct { +} + +func (*awsAwsjson10_serializeOpImportDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpImportDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ImportDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ImportDataset") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentImportDatasetInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpImportModelVersion struct { +} + +func (*awsAwsjson10_serializeOpImportModelVersion) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpImportModelVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ImportModelVersionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ImportModelVersion") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentImportModelVersionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson10_serializeOpListDataIngestionJobs struct { } @@ -1288,7 +1563,117 @@ func (*awsAwsjson10_serializeOpListModels) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpListModels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpListModels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListModelsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ListModels") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListModelsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpListModelVersions struct { +} + +func (*awsAwsjson10_serializeOpListModelVersions) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpListModelVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListModelVersionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ListModelVersions") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListModelVersionsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpListSensorStatistics struct { +} + +func (*awsAwsjson10_serializeOpListSensorStatistics) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpListSensorStatistics) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1296,7 +1681,7 @@ func (m *awsAwsjson10_serializeOpListModels) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelsInput) + input, ok := in.Parameters.(*ListSensorStatisticsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1317,10 +1702,10 @@ func (m *awsAwsjson10_serializeOpListModels) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ListModels") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ListSensorStatistics") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListModelsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentListSensorStatisticsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1336,14 +1721,14 @@ func (m *awsAwsjson10_serializeOpListModels) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpListSensorStatistics struct { +type awsAwsjson10_serializeOpListTagsForResource struct { } -func (*awsAwsjson10_serializeOpListSensorStatistics) ID() string { +func (*awsAwsjson10_serializeOpListTagsForResource) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpListSensorStatistics) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1351,7 +1736,7 @@ func (m *awsAwsjson10_serializeOpListSensorStatistics) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListSensorStatisticsInput) + input, ok := in.Parameters.(*ListTagsForResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1372,10 +1757,10 @@ func (m *awsAwsjson10_serializeOpListSensorStatistics) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ListSensorStatistics") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ListTagsForResource") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListSensorStatisticsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentListTagsForResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1391,14 +1776,14 @@ func (m *awsAwsjson10_serializeOpListSensorStatistics) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpListTagsForResource struct { +type awsAwsjson10_serializeOpPutResourcePolicy struct { } -func (*awsAwsjson10_serializeOpListTagsForResource) ID() string { +func (*awsAwsjson10_serializeOpPutResourcePolicy) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpPutResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1406,7 +1791,7 @@ func (m *awsAwsjson10_serializeOpListTagsForResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTagsForResourceInput) + input, ok := in.Parameters.(*PutResourcePolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1427,10 +1812,10 @@ func (m *awsAwsjson10_serializeOpListTagsForResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.ListTagsForResource") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.PutResourcePolicy") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListTagsForResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentPutResourcePolicyInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1721,6 +2106,61 @@ func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } +type awsAwsjson10_serializeOpUpdateActiveModelVersion struct { +} + +func (*awsAwsjson10_serializeOpUpdateActiveModelVersion) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpUpdateActiveModelVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateActiveModelVersionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSLookoutEquipmentFrontendService.UpdateActiveModelVersion") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUpdateActiveModelVersionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson10_serializeOpUpdateInferenceScheduler struct { } @@ -2401,6 +2841,18 @@ func awsAwsjson10_serializeOpDocumentDeleteModelInput(v *DeleteModelInput, value return nil } +func awsAwsjson10_serializeOpDocumentDeleteResourcePolicyInput(v *DeleteResourcePolicyInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} + func awsAwsjson10_serializeOpDocumentDescribeDataIngestionJobInput(v *DescribeDataIngestionJobInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2478,6 +2930,120 @@ func awsAwsjson10_serializeOpDocumentDescribeModelInput(v *DescribeModelInput, v return nil } +func awsAwsjson10_serializeOpDocumentDescribeModelVersionInput(v *DescribeModelVersionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ModelName != nil { + ok := object.Key("ModelName") + ok.String(*v.ModelName) + } + + if v.ModelVersion != nil { + ok := object.Key("ModelVersion") + ok.Long(*v.ModelVersion) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentDescribeResourcePolicyInput(v *DescribeResourcePolicyInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentImportDatasetInput(v *ImportDatasetInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.DatasetName != nil { + ok := object.Key("DatasetName") + ok.String(*v.DatasetName) + } + + if v.ServerSideKmsKeyId != nil { + ok := object.Key("ServerSideKmsKeyId") + ok.String(*v.ServerSideKmsKeyId) + } + + if v.SourceDatasetArn != nil { + ok := object.Key("SourceDatasetArn") + ok.String(*v.SourceDatasetArn) + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson10_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentImportModelVersionInput(v *ImportModelVersionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.DatasetName != nil { + ok := object.Key("DatasetName") + ok.String(*v.DatasetName) + } + + if v.LabelsInputConfiguration != nil { + ok := object.Key("LabelsInputConfiguration") + if err := awsAwsjson10_serializeDocumentLabelsInputConfiguration(v.LabelsInputConfiguration, ok); err != nil { + return err + } + } + + if v.ModelName != nil { + ok := object.Key("ModelName") + ok.String(*v.ModelName) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.ServerSideKmsKeyId != nil { + ok := object.Key("ServerSideKmsKeyId") + ok.String(*v.ServerSideKmsKeyId) + } + + if v.SourceModelVersionArn != nil { + ok := object.Key("SourceModelVersionArn") + ok.String(*v.SourceModelVersionArn) + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson10_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson10_serializeOpDocumentListDataIngestionJobsInput(v *ListDataIngestionJobsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2724,6 +3290,58 @@ func awsAwsjson10_serializeOpDocumentListModelsInput(v *ListModelsInput, value s return nil } +func awsAwsjson10_serializeOpDocumentListModelVersionsInput(v *ListModelVersionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreatedAtEndTime != nil { + ok := object.Key("CreatedAtEndTime") + ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAtEndTime)) + } + + if v.CreatedAtStartTime != nil { + ok := object.Key("CreatedAtStartTime") + ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAtStartTime)) + } + + if v.MaxModelVersion != nil { + ok := object.Key("MaxModelVersion") + ok.Long(*v.MaxModelVersion) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.MinModelVersion != nil { + ok := object.Key("MinModelVersion") + ok.Long(*v.MinModelVersion) + } + + if v.ModelName != nil { + ok := object.Key("ModelName") + ok.String(*v.ModelName) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.SourceType) > 0 { + ok := object.Key("SourceType") + ok.String(string(v.SourceType)) + } + + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) + } + + return nil +} + func awsAwsjson10_serializeOpDocumentListSensorStatisticsInput(v *ListSensorStatisticsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2763,6 +3381,33 @@ func awsAwsjson10_serializeOpDocumentListTagsForResourceInput(v *ListTagsForReso return nil } +func awsAwsjson10_serializeOpDocumentPutResourcePolicyInput(v *PutResourcePolicyInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.PolicyRevisionId != nil { + ok := object.Key("PolicyRevisionId") + ok.String(*v.PolicyRevisionId) + } + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + if v.ResourcePolicy != nil { + ok := object.Key("ResourcePolicy") + ok.String(*v.ResourcePolicy) + } + + return nil +} + func awsAwsjson10_serializeOpDocumentStartDataIngestionJobInput(v *StartDataIngestionJobInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2854,6 +3499,23 @@ func awsAwsjson10_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, v return nil } +func awsAwsjson10_serializeOpDocumentUpdateActiveModelVersionInput(v *UpdateActiveModelVersionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ModelName != nil { + ok := object.Key("ModelName") + ok.String(*v.ModelName) + } + + if v.ModelVersion != nil { + ok := object.Key("ModelVersion") + ok.Long(*v.ModelVersion) + } + + return nil +} + func awsAwsjson10_serializeOpDocumentUpdateInferenceSchedulerInput(v *UpdateInferenceSchedulerInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/lookoutequipment/types/enums.go b/service/lookoutequipment/types/enums.go index b7f6805fc9b..f13786fe883 100644 --- a/service/lookoutequipment/types/enums.go +++ b/service/lookoutequipment/types/enums.go @@ -9,6 +9,7 @@ const ( DatasetStatusCreated DatasetStatus = "CREATED" DatasetStatusIngestionInProgress DatasetStatus = "INGESTION_IN_PROGRESS" DatasetStatusActive DatasetStatus = "ACTIVE" + DatasetStatusImportInProgress DatasetStatus = "IMPORT_IN_PROGRESS" ) // Values returns all known values for DatasetStatus. Note that this can be @@ -19,6 +20,7 @@ func (DatasetStatus) Values() []DatasetStatus { "CREATED", "INGESTION_IN_PROGRESS", "ACTIVE", + "IMPORT_IN_PROGRESS", } } @@ -92,9 +94,10 @@ type IngestionJobStatus string // Enum values for IngestionJobStatus const ( - IngestionJobStatusInProgress IngestionJobStatus = "IN_PROGRESS" - IngestionJobStatusSuccess IngestionJobStatus = "SUCCESS" - IngestionJobStatusFailed IngestionJobStatus = "FAILED" + IngestionJobStatusInProgress IngestionJobStatus = "IN_PROGRESS" + IngestionJobStatusSuccess IngestionJobStatus = "SUCCESS" + IngestionJobStatusFailed IngestionJobStatus = "FAILED" + IngestionJobStatusImportInProgress IngestionJobStatus = "IMPORT_IN_PROGRESS" ) // Values returns all known values for IngestionJobStatus. Note that this can be @@ -105,6 +108,7 @@ func (IngestionJobStatus) Values() []IngestionJobStatus { "IN_PROGRESS", "SUCCESS", "FAILED", + "IMPORT_IN_PROGRESS", } } @@ -150,9 +154,10 @@ type ModelStatus string // Enum values for ModelStatus const ( - ModelStatusInProgress ModelStatus = "IN_PROGRESS" - ModelStatusSuccess ModelStatus = "SUCCESS" - ModelStatusFailed ModelStatus = "FAILED" + ModelStatusInProgress ModelStatus = "IN_PROGRESS" + ModelStatusSuccess ModelStatus = "SUCCESS" + ModelStatusFailed ModelStatus = "FAILED" + ModelStatusImportInProgress ModelStatus = "IMPORT_IN_PROGRESS" ) // Values returns all known values for ModelStatus. Note that this can be expanded @@ -163,6 +168,51 @@ func (ModelStatus) Values() []ModelStatus { "IN_PROGRESS", "SUCCESS", "FAILED", + "IMPORT_IN_PROGRESS", + } +} + +type ModelVersionSourceType string + +// Enum values for ModelVersionSourceType +const ( + ModelVersionSourceTypeTraining ModelVersionSourceType = "TRAINING" + ModelVersionSourceTypeRetraining ModelVersionSourceType = "RETRAINING" + ModelVersionSourceTypeImport ModelVersionSourceType = "IMPORT" +) + +// Values returns all known values for ModelVersionSourceType. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ModelVersionSourceType) Values() []ModelVersionSourceType { + return []ModelVersionSourceType{ + "TRAINING", + "RETRAINING", + "IMPORT", + } +} + +type ModelVersionStatus string + +// Enum values for ModelVersionStatus +const ( + ModelVersionStatusInProgress ModelVersionStatus = "IN_PROGRESS" + ModelVersionStatusSuccess ModelVersionStatus = "SUCCESS" + ModelVersionStatusFailed ModelVersionStatus = "FAILED" + ModelVersionStatusImportInProgress ModelVersionStatus = "IMPORT_IN_PROGRESS" + ModelVersionStatusCanceled ModelVersionStatus = "CANCELED" +) + +// Values returns all known values for ModelVersionStatus. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ModelVersionStatus) Values() []ModelVersionStatus { + return []ModelVersionStatus{ + "IN_PROGRESS", + "SUCCESS", + "FAILED", + "IMPORT_IN_PROGRESS", + "CANCELED", } } diff --git a/service/lookoutequipment/types/errors.go b/service/lookoutequipment/types/errors.go index 61f94440cb8..7a86e4c347b 100644 --- a/service/lookoutequipment/types/errors.go +++ b/service/lookoutequipment/types/errors.go @@ -168,7 +168,7 @@ func (e *ThrottlingException) ErrorCode() string { func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The input fails to satisfy constraints specified by Amazon Lookout for -// Equipment or a related AWS service that's being utilized. +// Equipment or a related Amazon Web Services service that's being utilized. type ValidationException struct { Message *string diff --git a/service/lookoutequipment/types/types.go b/service/lookoutequipment/types/types.go index 94aa9210449..fd94bff9aaa 100644 --- a/service/lookoutequipment/types/types.go +++ b/service/lookoutequipment/types/types.go @@ -281,7 +281,7 @@ type InferenceOutputConfiguration struct { // This member is required. S3OutputConfiguration *InferenceS3OutputConfiguration - // The ID number for the AWS KMS key used to encrypt the inference output. + // The ID number for the KMS key key used to encrypt the inference output. KmsKeyId *string noSmithyDocumentSerde @@ -404,9 +404,13 @@ type IngestionS3InputConfiguration struct { // This member is required. Bucket *string - // Pattern for matching the Amazon S3 files which will be used for ingestion. If - // no KeyPattern is provided, we will use the default hierarchy file structure, - // which is same as KeyPattern {prefix}/{component_name}/* + // The pattern for matching the Amazon S3 files that will be used for ingestion. + // If the schema was created previously without any KeyPattern, then the default + // KeyPattern {prefix}/{component_name}/* is used to download files from Amazon S3 + // according to the schema. This field is required when ingestion is being done for + // the first time. Valid Values: {prefix}/{component_name}_* | + // {prefix}/{component_name}/* | {prefix}/{component_name}[DELIMITER]* (Allowed + // delimiters : space, dot, underscore, hyphen) KeyPattern *string // The prefix for the S3 location being used for the input data for the data @@ -458,7 +462,7 @@ type LabelGroupSummary struct { // The time at which the label group was created. CreatedAt *time.Time - // The ARN of the label group. + // The Amazon Resource Name (ARN) of the label group. LabelGroupArn *string // The name of the label group. @@ -515,7 +519,7 @@ type LabelSummary struct { // your data. FaultCode *string - // The ARN of the label group. + // The Amazon Resource Name (ARN) of the label group. LabelGroupArn *string // The name of the label group. @@ -584,6 +588,15 @@ type MissingSensorData struct { // names and ARNs, as well as status. type ModelSummary struct { + // The model version that the inference scheduler uses to run an inference + // execution. + ActiveModelVersion *int64 + + // The Amazon Resource Name (ARN) of the model version that is set as active. The + // active model version is the model version that the inference scheduler uses to + // run an inference execution. + ActiveModelVersionArn *string + // The time at which the specific model was created. CreatedAt *time.Time @@ -605,6 +618,34 @@ type ModelSummary struct { noSmithyDocumentSerde } +// Contains information about the specific model version. +type ModelVersionSummary struct { + + // The time when this model version was created. + CreatedAt *time.Time + + // The Amazon Resource Name (ARN) of the model that this model version is a + // version of. + ModelArn *string + + // The name of the model that this model version is a version of. + ModelName *string + + // The version of the model. + ModelVersion *int64 + + // The Amazon Resource Name (ARN) of the model version. + ModelVersionArn *string + + // Indicates how this model version was generated. + SourceType ModelVersionSourceType + + // The current status of the model version. + Status ModelVersionStatus + + noSmithyDocumentSerde +} + // Entity that comprises information on monotonic values in the data. type MonotonicValues struct { @@ -640,8 +681,8 @@ type S3Object struct { // This member is required. Bucket *string - // The AWS Key Management Service (AWS KMS) key being used to encrypt the S3 - // object. Without this key, data in the bucket is not accessible. + // The Amazon Web Services Key Management Service (KMS key) key being used to + // encrypt the S3 object. Without this key, data in the bucket is not accessible. // // This member is required. Key *string diff --git a/service/lookoutequipment/validators.go b/service/lookoutequipment/validators.go index 8e0d441fb89..e00ad79b643 100644 --- a/service/lookoutequipment/validators.go +++ b/service/lookoutequipment/validators.go @@ -210,6 +210,26 @@ func (m *validateOpDeleteModel) HandleInitialize(ctx context.Context, in middlew return next.HandleInitialize(ctx, in) } +type validateOpDeleteResourcePolicy struct { +} + +func (*validateOpDeleteResourcePolicy) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteResourcePolicyInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteResourcePolicyInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeDataIngestionJob struct { } @@ -330,6 +350,86 @@ func (m *validateOpDescribeModel) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpDescribeModelVersion struct { +} + +func (*validateOpDescribeModelVersion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeModelVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeModelVersionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeModelVersionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeResourcePolicy struct { +} + +func (*validateOpDescribeResourcePolicy) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeResourcePolicyInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeResourcePolicyInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpImportDataset struct { +} + +func (*validateOpImportDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpImportDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ImportDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpImportDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpImportModelVersion struct { +} + +func (*validateOpImportModelVersion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpImportModelVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ImportModelVersionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpImportModelVersionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListInferenceEvents struct { } @@ -390,6 +490,26 @@ func (m *validateOpListLabels) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } +type validateOpListModelVersions struct { +} + +func (*validateOpListModelVersions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListModelVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListModelVersionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListModelVersionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListSensorStatistics struct { } @@ -430,6 +550,26 @@ func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpPutResourcePolicy struct { +} + +func (*validateOpPutResourcePolicy) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutResourcePolicyInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutResourcePolicyInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpStartDataIngestionJob struct { } @@ -530,6 +670,26 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateActiveModelVersion struct { +} + +func (*validateOpUpdateActiveModelVersion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateActiveModelVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateActiveModelVersionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateActiveModelVersionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateInferenceScheduler struct { } @@ -610,6 +770,10 @@ func addOpDeleteModelValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteModel{}, middleware.After) } +func addOpDeleteResourcePolicyValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteResourcePolicy{}, middleware.After) +} + func addOpDescribeDataIngestionJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeDataIngestionJob{}, middleware.After) } @@ -634,6 +798,22 @@ func addOpDescribeModelValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeModel{}, middleware.After) } +func addOpDescribeModelVersionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeModelVersion{}, middleware.After) +} + +func addOpDescribeResourcePolicyValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeResourcePolicy{}, middleware.After) +} + +func addOpImportDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpImportDataset{}, middleware.After) +} + +func addOpImportModelVersionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpImportModelVersion{}, middleware.After) +} + func addOpListInferenceEventsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListInferenceEvents{}, middleware.After) } @@ -646,6 +826,10 @@ func addOpListLabelsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListLabels{}, middleware.After) } +func addOpListModelVersionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListModelVersions{}, middleware.After) +} + func addOpListSensorStatisticsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListSensorStatistics{}, middleware.After) } @@ -654,6 +838,10 @@ func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) } +func addOpPutResourcePolicyValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutResourcePolicy{}, middleware.After) +} + func addOpStartDataIngestionJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartDataIngestionJob{}, middleware.After) } @@ -674,6 +862,10 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } +func addOpUpdateActiveModelVersionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateActiveModelVersion{}, middleware.After) +} + func addOpUpdateInferenceSchedulerValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateInferenceScheduler{}, middleware.After) } @@ -1077,6 +1269,21 @@ func validateOpDeleteModelInput(v *DeleteModelInput) error { } } +func validateOpDeleteResourcePolicyInput(v *DeleteResourcePolicyInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteResourcePolicyInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeDataIngestionJobInput(v *DescribeDataIngestionJobInput) error { if v == nil { return nil @@ -1170,6 +1377,93 @@ func validateOpDescribeModelInput(v *DescribeModelInput) error { } } +func validateOpDescribeModelVersionInput(v *DescribeModelVersionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeModelVersionInput"} + if v.ModelName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ModelName")) + } + if v.ModelVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("ModelVersion")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeResourcePolicyInput(v *DescribeResourcePolicyInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeResourcePolicyInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpImportDatasetInput(v *ImportDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ImportDatasetInput"} + if v.SourceDatasetArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("SourceDatasetArn")) + } + if v.ClientToken == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpImportModelVersionInput(v *ImportModelVersionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ImportModelVersionInput"} + if v.SourceModelVersionArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("SourceModelVersionArn")) + } + if v.DatasetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetName")) + } + if v.LabelsInputConfiguration != nil { + if err := validateLabelsInputConfiguration(v.LabelsInputConfiguration); err != nil { + invalidParams.AddNested("LabelsInputConfiguration", err.(smithy.InvalidParamsError)) + } + } + if v.ClientToken == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListInferenceEventsInput(v *ListInferenceEventsInput) error { if v == nil { return nil @@ -1221,6 +1515,21 @@ func validateOpListLabelsInput(v *ListLabelsInput) error { } } +func validateOpListModelVersionsInput(v *ListModelVersionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListModelVersionsInput"} + if v.ModelName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ModelName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListSensorStatisticsInput(v *ListSensorStatisticsInput) error { if v == nil { return nil @@ -1251,6 +1560,27 @@ func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { } } +func validateOpPutResourcePolicyInput(v *PutResourcePolicyInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutResourcePolicyInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.ResourcePolicy == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourcePolicy")) + } + if v.ClientToken == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpStartDataIngestionJobInput(v *StartDataIngestionJobInput) error { if v == nil { return nil @@ -1349,6 +1679,24 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { } } +func validateOpUpdateActiveModelVersionInput(v *UpdateActiveModelVersionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateActiveModelVersionInput"} + if v.ModelName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ModelName")) + } + if v.ModelVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("ModelVersion")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateInferenceSchedulerInput(v *UpdateInferenceSchedulerInput) error { if v == nil { return nil diff --git a/service/lookoutmetrics/go.mod b/service/lookoutmetrics/go.mod index 0eb18095b7d..8bc231d6dcd 100644 --- a/service/lookoutmetrics/go.mod +++ b/service/lookoutmetrics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lookoutmetrics/go.sum +++ b/service/lookoutmetrics/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutvision/go.mod b/service/lookoutvision/go.mod index 9e06f057ab8..bff6f9286bf 100644 --- a/service/lookoutvision/go.mod +++ b/service/lookoutvision/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/lookoutvision/go.sum +++ b/service/lookoutvision/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/m2/go.mod b/service/m2/go.mod index dca24c7841c..31c4b31815f 100644 --- a/service/m2/go.mod +++ b/service/m2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/m2/go.sum b/service/m2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/m2/go.sum +++ b/service/m2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index 63aa786bd09..8225d739220 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/macie/go.mod b/service/macie/go.mod index 1506aafe271..06b10a357f0 100644 --- a/service/macie/go.mod +++ b/service/macie/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/macie/go.sum b/service/macie/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/macie/go.sum +++ b/service/macie/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/macie2/go.mod b/service/macie2/go.mod index f3e951efafe..44867305af8 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/macie2/go.sum b/service/macie2/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index ede495b52a2..acf3557d0b9 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/managedblockchainquery/go.mod b/service/managedblockchainquery/go.mod index e196247dd31..d2a96738a90 100644 --- a/service/managedblockchainquery/go.mod +++ b/service/managedblockchainquery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/managedblockchainquery/go.sum b/service/managedblockchainquery/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/managedblockchainquery/go.sum +++ b/service/managedblockchainquery/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index 6280238357e..18a9bd0a8a4 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index 2f4e50e13cf..7996c5d19d0 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index c7f7fd5dbff..4e666dc2551 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index 6a8a3e80ddc..99a4ef66d78 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index eea24adcae9..9ad109ae4fc 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index 3ef66504087..6f3c8127bf8 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/medialive/go.mod b/service/medialive/go.mod index ed247b54e33..61256650cb5 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/medialive/go.sum b/service/medialive/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index 8215e3c84da..918a8b9cb84 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagev2/go.mod b/service/mediapackagev2/go.mod index 0ed3747dc08..973885e6263 100644 --- a/service/mediapackagev2/go.mod +++ b/service/mediapackagev2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackagev2/go.sum b/service/mediapackagev2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mediapackagev2/go.sum +++ b/service/mediapackagev2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index c8e4b50f122..954ee31cdf1 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index 1cd0a7bb036..069c2f8ff77 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index 1022d76c0f5..6f4d33c53d5 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index b596c9a0e3c..3950eeed138 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/medicalimaging/go.mod b/service/medicalimaging/go.mod index cdc595c028a..774fdecd8c6 100644 --- a/service/medicalimaging/go.mod +++ b/service/medicalimaging/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/medicalimaging/go.sum b/service/medicalimaging/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/medicalimaging/go.sum +++ b/service/medicalimaging/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/memorydb/go.mod b/service/memorydb/go.mod index 1b27ed858c9..de4f9711533 100644 --- a/service/memorydb/go.mod +++ b/service/memorydb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/memorydb/go.sum b/service/memorydb/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/memorydb/go.sum +++ b/service/memorydb/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mgn/go.mod b/service/mgn/go.mod index 885a8abddb9..2967895534b 100644 --- a/service/mgn/go.mod +++ b/service/mgn/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mgn/go.sum b/service/mgn/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mgn/go.sum +++ b/service/mgn/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index ed99e7abe69..a2dbf753bd9 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index 9462426550e..693909b0e21 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhuborchestrator/go.mod b/service/migrationhuborchestrator/go.mod index bd4bb18da31..c92b63adb9a 100644 --- a/service/migrationhuborchestrator/go.mod +++ b/service/migrationhuborchestrator/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhuborchestrator/go.sum b/service/migrationhuborchestrator/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/migrationhuborchestrator/go.sum +++ b/service/migrationhuborchestrator/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubrefactorspaces/go.mod b/service/migrationhubrefactorspaces/go.mod index f89b147d5ac..3ee7992813e 100644 --- a/service/migrationhubrefactorspaces/go.mod +++ b/service/migrationhubrefactorspaces/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubrefactorspaces/go.sum b/service/migrationhubrefactorspaces/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/migrationhubrefactorspaces/go.sum +++ b/service/migrationhubrefactorspaces/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubstrategy/go.mod b/service/migrationhubstrategy/go.mod index 40dc3dc06a2..336a551bf59 100644 --- a/service/migrationhubstrategy/go.mod +++ b/service/migrationhubstrategy/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubstrategy/go.sum b/service/migrationhubstrategy/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/migrationhubstrategy/go.sum +++ b/service/migrationhubstrategy/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mobile/go.mod b/service/mobile/go.mod index 2e4c8c5f67c..fb12a95b946 100644 --- a/service/mobile/go.mod +++ b/service/mobile/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mobile/go.sum b/service/mobile/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mobile/go.sum +++ b/service/mobile/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mq/go.mod b/service/mq/go.mod index 11f6db2edf7..ca74b337bd3 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mq/go.sum b/service/mq/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mturk/go.mod b/service/mturk/go.mod index e5cfee1227d..b8e45512b83 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mturk/go.sum b/service/mturk/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mwaa/go.mod b/service/mwaa/go.mod index a1401a47ccd..87c1c944cda 100644 --- a/service/mwaa/go.mod +++ b/service/mwaa/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/mwaa/go.sum +++ b/service/mwaa/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/neptune/go.mod b/service/neptune/go.mod index 42f1115f6cb..5c7e094002d 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/neptune/go.sum b/service/neptune/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod index 4834be299d9..1979512a845 100644 --- a/service/networkfirewall/go.mod +++ b/service/networkfirewall/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index 9dd1c3f6434..c6145832c88 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/nimble/go.mod b/service/nimble/go.mod index f3a4416173f..3ae346d7ef4 100644 --- a/service/nimble/go.mod +++ b/service/nimble/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/nimble/go.sum b/service/nimble/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/nimble/go.sum +++ b/service/nimble/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/oam/go.mod b/service/oam/go.mod index 91b640f8162..aebf559d404 100644 --- a/service/oam/go.mod +++ b/service/oam/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/oam/go.sum b/service/oam/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/oam/go.sum +++ b/service/oam/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/omics/api_op_GetReadSetMetadata.go b/service/omics/api_op_GetReadSetMetadata.go index 936876b7d7f..3a926387645 100644 --- a/service/omics/api_op_GetReadSetMetadata.go +++ b/service/omics/api_op_GetReadSetMetadata.go @@ -80,6 +80,9 @@ type GetReadSetMetadataOutput struct { // This member is required. Status types.ReadSetStatus + // The creation type of the read set. + CreationType types.CreationType + // The read set's description. Description *string diff --git a/service/omics/deserializers.go b/service/omics/deserializers.go index 110ccebba0a..afee1c0f268 100644 --- a/service/omics/deserializers.go +++ b/service/omics/deserializers.go @@ -4739,6 +4739,15 @@ func awsRestjson1_deserializeOpDocumentGetReadSetMetadataOutput(v **GetReadSetMe sv.CreationTime = ptr.Time(t) } + case "creationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CreationType to be of type string, got %T instead", value) + } + sv.CreationType = types.CreationType(jtv) + } + case "description": if value != nil { jtv, ok := value.(string) @@ -15928,6 +15937,15 @@ func awsRestjson1_deserializeDocumentReadSetListItem(v **types.ReadSetListItem, sv.CreationTime = ptr.Time(t) } + case "creationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CreationType to be of type string, got %T instead", value) + } + sv.CreationType = types.CreationType(jtv) + } + case "description": if value != nil { jtv, ok := value.(string) diff --git a/service/omics/endpoints_test.go b/service/omics/endpoints_test.go index 85568cd971e..fa8511e36ca 100644 --- a/service/omics/endpoints_test.go +++ b/service/omics/endpoints_test.go @@ -14,12 +14,12 @@ import ( "testing" ) -// For region us-gov-east-1 with FIPS enabled and DualStack enabled +// For region us-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase0(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), - Region: ptr.String("us-gov-east-1"), + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -30,7 +30,7 @@ func TestEndpointCase0(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics-fips.us-gov-east-1.api.aws") + uri, _ := url.Parse("https://omics-fips.us-east-1.api.aws") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -53,12 +53,12 @@ func TestEndpointCase0(t *testing.T) { } } -// For region us-gov-east-1 with FIPS enabled and DualStack disabled +// For region us-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase1(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), - Region: ptr.String("us-gov-east-1"), + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -69,7 +69,7 @@ func TestEndpointCase1(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics-fips.us-gov-east-1.amazonaws.com") + uri, _ := url.Parse("https://omics-fips.us-east-1.amazonaws.com") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -92,12 +92,12 @@ func TestEndpointCase1(t *testing.T) { } } -// For region us-gov-east-1 with FIPS disabled and DualStack enabled +// For region us-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase2(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), - Region: ptr.String("us-gov-east-1"), + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -108,7 +108,7 @@ func TestEndpointCase2(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics.us-gov-east-1.api.aws") + uri, _ := url.Parse("https://omics.us-east-1.api.aws") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -131,12 +131,12 @@ func TestEndpointCase2(t *testing.T) { } } -// For region us-gov-east-1 with FIPS disabled and DualStack disabled +// For region us-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase3(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), - Region: ptr.String("us-gov-east-1"), + Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -147,7 +147,7 @@ func TestEndpointCase3(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics.us-gov-east-1.amazonaws.com") + uri, _ := url.Parse("https://omics.us-east-1.amazonaws.com") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -173,9 +173,9 @@ func TestEndpointCase3(t *testing.T) { // For region cn-north-1 with FIPS enabled and DualStack enabled func TestEndpointCase4(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -212,9 +212,9 @@ func TestEndpointCase4(t *testing.T) { // For region cn-north-1 with FIPS enabled and DualStack disabled func TestEndpointCase5(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -251,9 +251,9 @@ func TestEndpointCase5(t *testing.T) { // For region cn-north-1 with FIPS disabled and DualStack enabled func TestEndpointCase6(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -290,9 +290,9 @@ func TestEndpointCase6(t *testing.T) { // For region cn-north-1 with FIPS disabled and DualStack disabled func TestEndpointCase7(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), Region: ptr.String("cn-north-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -326,32 +326,12 @@ func TestEndpointCase7(t *testing.T) { } } -// For region us-iso-east-1 with FIPS enabled and DualStack enabled +// For region us-gov-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase8(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), - Region: ptr.String("us-iso-east-1"), - UseFIPS: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// For region us-iso-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase9(t *testing.T) { - var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), - Region: ptr.String("us-iso-east-1"), + Region: ptr.String("us-gov-east-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -362,7 +342,7 @@ func TestEndpointCase9(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics-fips.us-iso-east-1.c2s.ic.gov") + uri, _ := url.Parse("https://omics-fips.us-gov-east-1.api.aws") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -385,32 +365,12 @@ func TestEndpointCase9(t *testing.T) { } } -// For region us-iso-east-1 with FIPS disabled and DualStack enabled -func TestEndpointCase10(t *testing.T) { - var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), - Region: ptr.String("us-iso-east-1"), - UseFIPS: ptr.Bool(false), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} - -// For region us-iso-east-1 with FIPS disabled and DualStack disabled -func TestEndpointCase11(t *testing.T) { +// For region us-gov-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase9(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-iso-east-1"), - UseFIPS: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -421,7 +381,7 @@ func TestEndpointCase11(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics.us-iso-east-1.c2s.ic.gov") + uri, _ := url.Parse("https://omics-fips.us-gov-east-1.amazonaws.com") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -444,12 +404,12 @@ func TestEndpointCase11(t *testing.T) { } } -// For region us-east-1 with FIPS enabled and DualStack enabled -func TestEndpointCase12(t *testing.T) { +// For region us-gov-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase10(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -460,7 +420,7 @@ func TestEndpointCase12(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics-fips.us-east-1.api.aws") + uri, _ := url.Parse("https://omics.us-gov-east-1.api.aws") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -483,12 +443,12 @@ func TestEndpointCase12(t *testing.T) { } } -// For region us-east-1 with FIPS enabled and DualStack disabled -func TestEndpointCase13(t *testing.T) { +// For region us-gov-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase11(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -499,7 +459,7 @@ func TestEndpointCase13(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics-fips.us-east-1.amazonaws.com") + uri, _ := url.Parse("https://omics.us-gov-east-1.amazonaws.com") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -522,12 +482,32 @@ func TestEndpointCase13(t *testing.T) { } } -// For region us-east-1 with FIPS disabled and DualStack enabled -func TestEndpointCase14(t *testing.T) { +// For region us-iso-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase12(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), UseDualStack: ptr.Bool(true), - Region: ptr.String("us-east-1"), - UseFIPS: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase13(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -538,7 +518,7 @@ func TestEndpointCase14(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics.us-east-1.api.aws") + uri, _ := url.Parse("https://omics-fips.us-iso-east-1.c2s.ic.gov") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -561,12 +541,32 @@ func TestEndpointCase14(t *testing.T) { } } -// For region us-east-1 with FIPS disabled and DualStack disabled +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase14(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase15(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), - Region: ptr.String("us-east-1"), + Region: ptr.String("us-iso-east-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -577,7 +577,7 @@ func TestEndpointCase15(t *testing.T) { t.Fatalf("expect no error, got %v", err) } - uri, _ := url.Parse("https://omics.us-east-1.amazonaws.com") + uri, _ := url.Parse("https://omics.us-iso-east-1.c2s.ic.gov") expectEndpoint := smithyendpoints.Endpoint{ URI: *uri, @@ -603,9 +603,9 @@ func TestEndpointCase15(t *testing.T) { // For region us-isob-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase16(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -623,9 +623,9 @@ func TestEndpointCase16(t *testing.T) { // For region us-isob-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase17(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -662,9 +662,9 @@ func TestEndpointCase17(t *testing.T) { // For region us-isob-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase18(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), } resolver := NewDefaultEndpointResolverV2() @@ -682,9 +682,9 @@ func TestEndpointCase18(t *testing.T) { // For region us-isob-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase19(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), Region: ptr.String("us-isob-east-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), } resolver := NewDefaultEndpointResolverV2() @@ -718,12 +718,12 @@ func TestEndpointCase19(t *testing.T) { } } -// For custom endpoint with fips disabled and dualstack disabled +// For custom endpoint with region set and fips disabled and dualstack disabled func TestEndpointCase20(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(false), Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -758,12 +758,51 @@ func TestEndpointCase20(t *testing.T) { } } -// For custom endpoint with fips enabled and dualstack disabled +// For custom endpoint with region not set and fips disabled and dualstack disabled func TestEndpointCase21(t *testing.T) { var params = EndpointParameters{ + UseFIPS: ptr.Bool(false), UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://example.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with fips enabled and dualstack disabled +func TestEndpointCase22(t *testing.T) { + var params = EndpointParameters{ Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), Endpoint: ptr.String("https://example.com"), } @@ -780,11 +819,11 @@ func TestEndpointCase21(t *testing.T) { } // For custom endpoint with fips disabled and dualstack enabled -func TestEndpointCase22(t *testing.T) { +func TestEndpointCase23(t *testing.T) { var params = EndpointParameters{ - UseDualStack: ptr.Bool(true), Region: ptr.String("us-east-1"), UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), Endpoint: ptr.String("https://example.com"), } @@ -799,3 +838,19 @@ func TestEndpointCase22(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } + +// Missing region +func TestEndpointCase24(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/omics/go.mod b/service/omics/go.mod index c4b2bf3300f..1d453d04024 100644 --- a/service/omics/go.mod +++ b/service/omics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/omics/go.sum b/service/omics/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/omics/go.sum +++ b/service/omics/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/omics/serializers.go b/service/omics/serializers.go index 64842b52423..92a39402b4e 100644 --- a/service/omics/serializers.go +++ b/service/omics/serializers.go @@ -6506,6 +6506,11 @@ func awsRestjson1_serializeDocumentReadSetFilter(v *types.ReadSetFilter, value s ok.String(smithytime.FormatDateTime(*v.CreatedBefore)) } + if len(v.CreationType) > 0 { + ok := object.Key("creationType") + ok.String(string(v.CreationType)) + } + if v.GeneratedFrom != nil { ok := object.Key("generatedFrom") ok.String(*v.GeneratedFrom) diff --git a/service/omics/types/enums.go b/service/omics/types/enums.go index e714b1e7294..b26f13d1f9b 100644 --- a/service/omics/types/enums.go +++ b/service/omics/types/enums.go @@ -55,6 +55,24 @@ func (AnnotationType) Values() []AnnotationType { } } +type CreationType string + +// Enum values for CreationType +const ( + CreationTypeImport CreationType = "IMPORT" + CreationTypeUpload CreationType = "UPLOAD" +) + +// Values returns all known values for CreationType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (CreationType) Values() []CreationType { + return []CreationType{ + "IMPORT", + "UPLOAD", + } +} + type EncryptionType string // Enum values for EncryptionType diff --git a/service/omics/types/types.go b/service/omics/types/types.go index 505ed2baf33..7aaa6ea1deb 100644 --- a/service/omics/types/types.go +++ b/service/omics/types/types.go @@ -701,6 +701,9 @@ type ReadSetFilter struct { // The filter's end date. CreatedBefore *time.Time + // The creation type of the read set. + CreationType CreationType + // Where the source originated. GeneratedFrom *string @@ -755,6 +758,9 @@ type ReadSetListItem struct { // This member is required. Status ReadSetStatus + // The creation type of the read set. + CreationType CreationType + // The read set's description. Description *string diff --git a/service/opensearch/go.mod b/service/opensearch/go.mod index daad348da8e..453757da53f 100644 --- a/service/opensearch/go.mod +++ b/service/opensearch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/opensearch/go.sum b/service/opensearch/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/opensearch/go.sum +++ b/service/opensearch/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opensearchserverless/go.mod b/service/opensearchserverless/go.mod index f977d83c300..66a001439a9 100644 --- a/service/opensearchserverless/go.mod +++ b/service/opensearchserverless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/opensearchserverless/go.sum b/service/opensearchserverless/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/opensearchserverless/go.sum +++ b/service/opensearchserverless/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index 2479e74dfa8..2fa6b202987 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index 4f5906fa7a4..0a811fdf8f3 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/organizations/go.mod b/service/organizations/go.mod index e8fb6e521a0..03dfe9e19e3 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/organizations/go.sum b/service/organizations/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/osis/go.mod b/service/osis/go.mod index 84fd12439fc..e5f437cd2fa 100644 --- a/service/osis/go.mod +++ b/service/osis/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/osis/go.sum b/service/osis/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/osis/go.sum +++ b/service/osis/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/outposts/go.mod b/service/outposts/go.mod index 3d83aeaaabd..b2bc2f9dfad 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/outposts/go.sum b/service/outposts/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/panorama/go.mod b/service/panorama/go.mod index b9be720082a..3020e616ad4 100644 --- a/service/panorama/go.mod +++ b/service/panorama/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/panorama/go.sum b/service/panorama/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/panorama/go.sum +++ b/service/panorama/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptography/go.mod b/service/paymentcryptography/go.mod index 5541fea6a75..e417310d1e4 100644 --- a/service/paymentcryptography/go.mod +++ b/service/paymentcryptography/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/paymentcryptography/go.sum b/service/paymentcryptography/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/paymentcryptography/go.sum +++ b/service/paymentcryptography/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptographydata/go.mod b/service/paymentcryptographydata/go.mod index 733ac25ab2a..4bb57b105f8 100644 --- a/service/paymentcryptographydata/go.mod +++ b/service/paymentcryptographydata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/paymentcryptographydata/go.sum b/service/paymentcryptographydata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/paymentcryptographydata/go.sum +++ b/service/paymentcryptographydata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalize/go.mod b/service/personalize/go.mod index c07568a339b..f770096779c 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalize/go.sum b/service/personalize/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index fe1baeec407..7a3f96cf86e 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index 86890766cb8..ddd317c740c 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pi/go.mod b/service/pi/go.mod index a775697e77b..14e85d1b843 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pi/go.sum b/service/pi/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index 0b1e717099f..27552065648 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index 45c3d670889..a4875ae12ff 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index abbfa79cfbf..8167cfab1ed 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoicev2/go.mod b/service/pinpointsmsvoicev2/go.mod index 4a1d987d7f5..04e59cb9980 100644 --- a/service/pinpointsmsvoicev2/go.mod +++ b/service/pinpointsmsvoicev2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointsmsvoicev2/go.sum b/service/pinpointsmsvoicev2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/pinpointsmsvoicev2/go.sum +++ b/service/pinpointsmsvoicev2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pipes/go.mod b/service/pipes/go.mod index 986672871fd..0eb4fa9c9c0 100644 --- a/service/pipes/go.mod +++ b/service/pipes/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pipes/go.sum b/service/pipes/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/pipes/go.sum +++ b/service/pipes/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/polly/go.mod b/service/polly/go.mod index 2579689d93b..446863b5842 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/polly/go.sum b/service/polly/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pricing/go.mod b/service/pricing/go.mod index 63337d5e5c6..6d37e5053b5 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pricing/go.sum b/service/pricing/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/privatenetworks/go.mod b/service/privatenetworks/go.mod index 971a6e94c94..e960989d3d0 100644 --- a/service/privatenetworks/go.mod +++ b/service/privatenetworks/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/privatenetworks/go.sum b/service/privatenetworks/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/privatenetworks/go.sum +++ b/service/privatenetworks/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/proton/go.mod b/service/proton/go.mod index 341aa8b7750..06efe1deb78 100644 --- a/service/proton/go.mod +++ b/service/proton/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/proton/go.sum b/service/proton/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/proton/go.sum +++ b/service/proton/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/qldb/go.mod b/service/qldb/go.mod index e1bf3e8ac10..12ea9cac643 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qldb/go.sum b/service/qldb/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index 42d03fc46f6..ffbf2e0c866 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index 208aecf8de8..d79b1e2e22f 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ram/go.mod b/service/ram/go.mod index d98e587bbbd..35af2e9ea1c 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ram/go.sum b/service/ram/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rbin/go.mod b/service/rbin/go.mod index 154dc512542..026d80b394e 100644 --- a/service/rbin/go.mod +++ b/service/rbin/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rbin/go.sum b/service/rbin/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/rbin/go.sum +++ b/service/rbin/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rbin/internal/endpoints/endpoints.go b/service/rbin/internal/endpoints/endpoints.go index 3efa5c36dc6..b24fef44727 100644 --- a/service/rbin/internal/endpoints/endpoints.go +++ b/service/rbin/internal/endpoints/endpoints.go @@ -370,6 +370,15 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "fips-us-iso-west-1", + }: endpoints.Endpoint{ + Hostname: "rbin-fips.us-iso-west-1.c2s.ic.gov", + CredentialScope: endpoints.CredentialScope{ + Region: "us-iso-west-1", + }, + Deprecated: aws.TrueTernary, + }, endpoints.EndpointKey{ Region: "us-iso-east-1", }: endpoints.Endpoint{}, @@ -379,6 +388,15 @@ var defaultPartitions = endpoints.Partitions{ }: { Hostname: "rbin-fips.us-iso-east-1.c2s.ic.gov", }, + endpoints.EndpointKey{ + Region: "us-iso-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-iso-west-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rbin-fips.us-iso-west-1.c2s.ic.gov", + }, }, }, { diff --git a/service/rds/api_op_CreateCustomDBEngineVersion.go b/service/rds/api_op_CreateCustomDBEngineVersion.go index 27e1cadd771..a06937fea17 100644 --- a/service/rds/api_op_CreateCustomDBEngineVersion.go +++ b/service/rds/api_op_CreateCustomDBEngineVersion.go @@ -210,6 +210,12 @@ type CreateCustomDBEngineVersionOutput struct { // specific DB engine version. SupportsGlobalDatabases bool + // A value that indicates whether the DB engine version supports forwarding write + // operations from reader DB instances to the writer DB instance in the DB cluster. + // By default, write operations aren't allowed on reader DB instances. Valid for: + // Aurora DB clusters only + SupportsLocalWriteForwarding *bool + // A value that indicates whether the engine version supports exporting the log // types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool diff --git a/service/rds/api_op_CreateDBCluster.go b/service/rds/api_op_CreateDBCluster.go index d6b355be9d1..3820ad96460 100644 --- a/service/rds/api_op_CreateDBCluster.go +++ b/service/rds/api_op_CreateDBCluster.go @@ -192,6 +192,11 @@ type CreateDBClusterInput struct { // in the Amazon Aurora User Guide. Valid for Cluster Type: Aurora DB clusters only EnableIAMDatabaseAuthentication *bool + // Specifies whether read replicas can forward write operations to the writer DB + // instance in the DB cluster. By default, write operations aren't allowed on + // reader DB instances. Valid for: Aurora DB clusters only + EnableLocalWriteForwarding *bool + // Specifies whether to turn on Performance Insights for the DB cluster. For more // information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) // in the Amazon RDS User Guide. Valid for Cluster Type: Multi-AZ DB clusters only diff --git a/service/rds/api_op_DeleteCustomDBEngineVersion.go b/service/rds/api_op_DeleteCustomDBEngineVersion.go index e2c72804724..544bed0c412 100644 --- a/service/rds/api_op_DeleteCustomDBEngineVersion.go +++ b/service/rds/api_op_DeleteCustomDBEngineVersion.go @@ -174,6 +174,12 @@ type DeleteCustomDBEngineVersionOutput struct { // specific DB engine version. SupportsGlobalDatabases bool + // A value that indicates whether the DB engine version supports forwarding write + // operations from reader DB instances to the writer DB instance in the DB cluster. + // By default, write operations aren't allowed on reader DB instances. Valid for: + // Aurora DB clusters only + SupportsLocalWriteForwarding *bool + // A value that indicates whether the engine version supports exporting the log // types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool diff --git a/service/rds/api_op_ModifyCustomDBEngineVersion.go b/service/rds/api_op_ModifyCustomDBEngineVersion.go index f9bd877d727..16938b2db3c 100644 --- a/service/rds/api_op_ModifyCustomDBEngineVersion.go +++ b/service/rds/api_op_ModifyCustomDBEngineVersion.go @@ -184,6 +184,12 @@ type ModifyCustomDBEngineVersionOutput struct { // specific DB engine version. SupportsGlobalDatabases bool + // A value that indicates whether the DB engine version supports forwarding write + // operations from reader DB instances to the writer DB instance in the DB cluster. + // By default, write operations aren't allowed on reader DB instances. Valid for: + // Aurora DB clusters only + SupportsLocalWriteForwarding *bool + // A value that indicates whether the engine version supports exporting the log // types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool diff --git a/service/rds/api_op_ModifyDBCluster.go b/service/rds/api_op_ModifyDBCluster.go index 05a3bf29786..fdb0563c3af 100644 --- a/service/rds/api_op_ModifyDBCluster.go +++ b/service/rds/api_op_ModifyDBCluster.go @@ -181,6 +181,11 @@ type ModifyDBClusterInput struct { // in the Amazon Aurora User Guide. Valid for Cluster Type: Aurora DB clusters only EnableIAMDatabaseAuthentication *bool + // Specifies whether read replicas can forward write operations to the writer DB + // instance in the DB cluster. By default, write operations aren't allowed on + // reader DB instances. Valid for: Aurora DB clusters only + EnableLocalWriteForwarding *bool + // Specifies whether to turn on Performance Insights for the DB cluster. For more // information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) // in the Amazon RDS User Guide. Valid for Cluster Type: Multi-AZ DB clusters only diff --git a/service/rds/deserializers.go b/service/rds/deserializers.go index f9e6ae8ce2f..bcb3696211f 100644 --- a/service/rds/deserializers.go +++ b/service/rds/deserializers.go @@ -24719,6 +24719,19 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith sv.LatestRestorableTime = ptr.Time(t) } + case strings.EqualFold("LocalWriteForwardingStatus", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LocalWriteForwardingStatus = types.LocalWriteForwardingStatus(xtv) + } + case strings.EqualFold("MasterUsername", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -27660,6 +27673,22 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d sv.SupportsGlobalDatabases = xtv } + case strings.EqualFold("SupportsLocalWriteForwarding", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsLocalWriteForwarding = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsLogExportsToCloudwatchLogs", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -45925,6 +45954,22 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod sv.SupportsGlobalDatabases = ptr.Bool(xtv) } + case strings.EqualFold("SupportsLocalWriteForwarding", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsLocalWriteForwarding = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsParallelQuery", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -47617,6 +47662,22 @@ func awsAwsquery_deserializeOpDocumentCreateCustomDBEngineVersionOutput(v **Crea sv.SupportsGlobalDatabases = xtv } + case strings.EqualFold("SupportsLocalWriteForwarding", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsLocalWriteForwarding = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsLogExportsToCloudwatchLogs", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -48783,6 +48844,22 @@ func awsAwsquery_deserializeOpDocumentDeleteCustomDBEngineVersionOutput(v **Dele sv.SupportsGlobalDatabases = xtv } + case strings.EqualFold("SupportsLocalWriteForwarding", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsLocalWriteForwarding = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsLogExportsToCloudwatchLogs", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -52263,6 +52340,22 @@ func awsAwsquery_deserializeOpDocumentModifyCustomDBEngineVersionOutput(v **Modi sv.SupportsGlobalDatabases = xtv } + case strings.EqualFold("SupportsLocalWriteForwarding", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) + } + sv.SupportsLocalWriteForwarding = ptr.Bool(xtv) + } + case strings.EqualFold("SupportsLogExportsToCloudwatchLogs", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/rds/go.mod b/service/rds/go.mod index 5c8cdb0d2ad..01f8fa3dfb1 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rds/go.sum b/service/rds/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/rds/serializers.go b/service/rds/serializers.go index 5e42a0d2ed4..855dda68e08 100644 --- a/service/rds/serializers.go +++ b/service/rds/serializers.go @@ -10246,6 +10246,11 @@ func awsAwsquery_serializeOpDocumentCreateDBClusterInput(v *CreateDBClusterInput objectKey.Boolean(*v.EnableIAMDatabaseAuthentication) } + if v.EnableLocalWriteForwarding != nil { + objectKey := object.Key("EnableLocalWriteForwarding") + objectKey.Boolean(*v.EnableLocalWriteForwarding) + } + if v.EnablePerformanceInsights != nil { objectKey := object.Key("EnablePerformanceInsights") objectKey.Boolean(*v.EnablePerformanceInsights) @@ -13246,6 +13251,11 @@ func awsAwsquery_serializeOpDocumentModifyDBClusterInput(v *ModifyDBClusterInput objectKey.Boolean(*v.EnableIAMDatabaseAuthentication) } + if v.EnableLocalWriteForwarding != nil { + objectKey := object.Key("EnableLocalWriteForwarding") + objectKey.Boolean(*v.EnableLocalWriteForwarding) + } + if v.EnablePerformanceInsights != nil { objectKey := object.Key("EnablePerformanceInsights") objectKey.Boolean(*v.EnablePerformanceInsights) diff --git a/service/rds/types/enums.go b/service/rds/types/enums.go index 69de9ed1dc9..64c843d7843 100644 --- a/service/rds/types/enums.go +++ b/service/rds/types/enums.go @@ -330,6 +330,30 @@ func (IAMAuthMode) Values() []IAMAuthMode { } } +type LocalWriteForwardingStatus string + +// Enum values for LocalWriteForwardingStatus +const ( + LocalWriteForwardingStatusEnabled LocalWriteForwardingStatus = "enabled" + LocalWriteForwardingStatusDisabled LocalWriteForwardingStatus = "disabled" + LocalWriteForwardingStatusEnabling LocalWriteForwardingStatus = "enabling" + LocalWriteForwardingStatusDisabling LocalWriteForwardingStatus = "disabling" + LocalWriteForwardingStatusRequested LocalWriteForwardingStatus = "requested" +) + +// Values returns all known values for LocalWriteForwardingStatus. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (LocalWriteForwardingStatus) Values() []LocalWriteForwardingStatus { + return []LocalWriteForwardingStatus{ + "enabled", + "disabled", + "enabling", + "disabling", + "requested", + } +} + type ReplicaMode string // Enum values for ReplicaMode diff --git a/service/rds/types/types.go b/service/rds/types/types.go index fe93f9c8eae..f6f1e499f59 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -620,6 +620,10 @@ type DBCluster struct { // The latest time to which a database can be restored with point-in-time restore. LatestRestorableTime *time.Time + // Specifies whether an Aurora DB cluster has in-cluster write forwarding enabled, + // not enabled, requested, or is in the process of enabling it. + LocalWriteForwardingStatus LocalWriteForwardingStatus + // The secret managed by RDS in Amazon Web Services Secrets Manager for the master // user password. For more information, see Password management with Amazon Web // Services Secrets Manager (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) @@ -1161,6 +1165,12 @@ type DBEngineVersion struct { // specific DB engine version. SupportsGlobalDatabases bool + // A value that indicates whether the DB engine version supports forwarding write + // operations from reader DB instances to the writer DB instance in the DB cluster. + // By default, write operations aren't allowed on reader DB instances. Valid for: + // Aurora DB clusters only + SupportsLocalWriteForwarding *bool + // A value that indicates whether the engine version supports exporting the log // types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs bool @@ -3734,6 +3744,12 @@ type UpgradeTarget struct { // target engine version. SupportsGlobalDatabases *bool + // A value that indicates whether the target engine version supports forwarding + // write operations from reader DB instances to the writer DB instance in the DB + // cluster. By default, write operations aren't allowed on reader DB instances. + // Valid for: Aurora DB clusters only + SupportsLocalWriteForwarding *bool + // A value that indicates whether you can use Aurora parallel query with the // target engine version. SupportsParallelQuery *bool diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index e7dde0f03eb..9fdae529691 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshift/go.mod b/service/redshift/go.mod index a23b1c627e5..31a12207b9f 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/redshift/go.sum b/service/redshift/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index 24ffeb0517b..c7607ddb8b6 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshiftserverless/go.mod b/service/redshiftserverless/go.mod index e968d9578f6..73f1cd57bcf 100644 --- a/service/redshiftserverless/go.mod +++ b/service/redshiftserverless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/redshiftserverless/go.sum b/service/redshiftserverless/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/redshiftserverless/go.sum +++ b/service/redshiftserverless/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index 9b4f38d38d9..fbeb80a4e46 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/resiliencehub/go.mod b/service/resiliencehub/go.mod index c2636a14aa9..c440c953442 100644 --- a/service/resiliencehub/go.mod +++ b/service/resiliencehub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resiliencehub/go.sum b/service/resiliencehub/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/resiliencehub/go.sum +++ b/service/resiliencehub/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourceexplorer2/go.mod b/service/resourceexplorer2/go.mod index 4ceb12bc7ef..3949cdf0aa3 100644 --- a/service/resourceexplorer2/go.mod +++ b/service/resourceexplorer2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourceexplorer2/go.sum b/service/resourceexplorer2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/resourceexplorer2/go.sum +++ b/service/resourceexplorer2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index bd4a818fdfe..9bb67bec09d 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index 0ae733ee0e4..45cb7f4c9f3 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index c4225d81835..1653cfc10c0 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rolesanywhere/go.mod b/service/rolesanywhere/go.mod index f8d60043cee..18b25ac30e9 100644 --- a/service/rolesanywhere/go.mod +++ b/service/rolesanywhere/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rolesanywhere/go.sum b/service/rolesanywhere/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/rolesanywhere/go.sum +++ b/service/rolesanywhere/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53/api_op_CreateTrafficPolicyInstance.go b/service/route53/api_op_CreateTrafficPolicyInstance.go index f445bff4076..245dddaf652 100644 --- a/service/route53/api_op_CreateTrafficPolicyInstance.go +++ b/service/route53/api_op_CreateTrafficPolicyInstance.go @@ -21,12 +21,7 @@ import ( // associates the resource record sets with a specified domain name (such as // example.com) or subdomain name (such as www.example.com). Amazon Route 53 // responds to DNS queries for the domain or subdomain name by using the resource -// record sets that CreateTrafficPolicyInstance created. After you submit an -// CreateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 -// creates the resource record sets that are specified in the traffic policy -// definition. Use GetTrafficPolicyInstance with the id of new traffic policy -// instance to confirm that the CreateTrafficPolicyInstance request completed -// successfully. For more information, see the State response element. +// record sets that CreateTrafficPolicyInstance created. func (c *Client) CreateTrafficPolicyInstance(ctx context.Context, params *CreateTrafficPolicyInstanceInput, optFns ...func(*Options)) (*CreateTrafficPolicyInstanceOutput, error) { if params == nil { params = &CreateTrafficPolicyInstanceInput{} diff --git a/service/route53/api_op_GetTrafficPolicyInstance.go b/service/route53/api_op_GetTrafficPolicyInstance.go index 9605d85a4b9..fb5d39bebfd 100644 --- a/service/route53/api_op_GetTrafficPolicyInstance.go +++ b/service/route53/api_op_GetTrafficPolicyInstance.go @@ -16,11 +16,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets information about a specified traffic policy instance. Use -// GetTrafficPolicyInstance with the id of new traffic policy instance to confirm -// that the CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request -// completed successfully. For more information, see the State response element. -// In the Route 53 console, traffic policy instances are known as policy records. +// Gets information about a specified traffic policy instance. After you submit a +// CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's +// a brief delay while Amazon Route 53 creates the resource record sets that are +// specified in the traffic policy definition. For more information, see the State +// response element. In the Route 53 console, traffic policy instances are known as +// policy records. func (c *Client) GetTrafficPolicyInstance(ctx context.Context, params *GetTrafficPolicyInstanceInput, optFns ...func(*Options)) (*GetTrafficPolicyInstanceOutput, error) { if params == nil { params = &GetTrafficPolicyInstanceInput{} diff --git a/service/route53/api_op_UpdateTrafficPolicyInstance.go b/service/route53/api_op_UpdateTrafficPolicyInstance.go index 47be4b0a7c4..4ccc5a82be9 100644 --- a/service/route53/api_op_UpdateTrafficPolicyInstance.go +++ b/service/route53/api_op_UpdateTrafficPolicyInstance.go @@ -16,11 +16,6 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// After you submit a UpdateTrafficPolicyInstance request, there's a brief delay -// while Route 53 creates the resource record sets that are specified in the -// traffic policy definition. Use GetTrafficPolicyInstance with the id of updated -// traffic policy instance confirm that the UpdateTrafficPolicyInstance request -// completed successfully. For more information, see the State response element. // Updates the resource record sets in a specified hosted zone that were created // based on the settings in a specified traffic policy version. When you update a // traffic policy instance, Amazon Route 53 continues to respond to DNS queries for diff --git a/service/route53/go.mod b/service/route53/go.mod index 81be83b05ab..96355fe6c90 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53/go.sum b/service/route53/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53/types/enums.go b/service/route53/types/enums.go index cc3464d7a75..e761f92cc2a 100644 --- a/service/route53/types/enums.go +++ b/service/route53/types/enums.go @@ -120,6 +120,7 @@ const ( CloudWatchRegionUsIsoWest1 CloudWatchRegion = "us-iso-west-1" CloudWatchRegionUsIsobEast1 CloudWatchRegion = "us-isob-east-1" CloudWatchRegionApSoutheast4 CloudWatchRegion = "ap-southeast-4" + CloudWatchRegionIlCentral1 CloudWatchRegion = "il-central-1" ) // Values returns all known values for CloudWatchRegion. Note that this can be @@ -161,6 +162,7 @@ func (CloudWatchRegion) Values() []CloudWatchRegion { "us-iso-west-1", "us-isob-east-1", "ap-southeast-4", + "il-central-1", } } @@ -358,6 +360,7 @@ const ( ResourceRecordSetRegionEuSouth1 ResourceRecordSetRegion = "eu-south-1" ResourceRecordSetRegionEuSouth2 ResourceRecordSetRegion = "eu-south-2" ResourceRecordSetRegionApSoutheast4 ResourceRecordSetRegion = "ap-southeast-4" + ResourceRecordSetRegionIlCentral1 ResourceRecordSetRegion = "il-central-1" ) // Values returns all known values for ResourceRecordSetRegion. Note that this can @@ -394,6 +397,7 @@ func (ResourceRecordSetRegion) Values() []ResourceRecordSetRegion { "eu-south-1", "eu-south-2", "ap-southeast-4", + "il-central-1", } } @@ -533,6 +537,7 @@ const ( VPCRegionEuSouth1 VPCRegion = "eu-south-1" VPCRegionEuSouth2 VPCRegion = "eu-south-2" VPCRegionApSoutheast4 VPCRegion = "ap-southeast-4" + VPCRegionIlCentral1 VPCRegion = "il-central-1" ) // Values returns all known values for VPCRegion. Note that this can be expanded @@ -573,5 +578,6 @@ func (VPCRegion) Values() []VPCRegion { "eu-south-1", "eu-south-2", "ap-southeast-4", + "il-central-1", } } diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index 90d8ff2df75..c94d16c8e63 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoverycluster/go.mod b/service/route53recoverycluster/go.mod index ef065c67fec..06a8b1f2c2c 100644 --- a/service/route53recoverycluster/go.mod +++ b/service/route53recoverycluster/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/route53recoverycluster/go.sum +++ b/service/route53recoverycluster/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoverycontrolconfig/go.mod b/service/route53recoverycontrolconfig/go.mod index d75b3e74b21..d6c5e2daa44 100644 --- a/service/route53recoverycontrolconfig/go.mod +++ b/service/route53recoverycontrolconfig/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/route53recoverycontrolconfig/go.sum +++ b/service/route53recoverycontrolconfig/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53recoveryreadiness/go.mod b/service/route53recoveryreadiness/go.mod index cac826f911d..f6e488a99b7 100644 --- a/service/route53recoveryreadiness/go.mod +++ b/service/route53recoveryreadiness/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/route53recoveryreadiness/go.sum +++ b/service/route53recoveryreadiness/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index f11b4a7e5be..46dd3093f97 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rum/go.mod b/service/rum/go.mod index 02e39117567..3fcac54c2f0 100644 --- a/service/rum/go.mod +++ b/service/rum/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rum/go.sum b/service/rum/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/rum/go.sum +++ b/service/rum/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3/go.mod b/service/s3/go.mod index 7643f55a147..3fd5757e27c 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -12,7 +12,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.31 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.30 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.5 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3/go.sum b/service/s3/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3control/go.mod b/service/s3control/go.mod index aaf2e06aa90..832b07b2b03 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.5 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3control/go.sum b/service/s3control/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index 1f86d03c562..f4bbdbcf3af 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index 3d25caf21bc..53af7ace8bb 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index d870a0118f9..b2c78ab9d76 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakeredge/go.mod b/service/sagemakeredge/go.mod index 9b99a0a511e..a761c334966 100644 --- a/service/sagemakeredge/go.mod +++ b/service/sagemakeredge/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sagemakeredge/go.sum +++ b/service/sagemakeredge/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerfeaturestoreruntime/go.mod b/service/sagemakerfeaturestoreruntime/go.mod index 356e1882b14..59cfe495ffb 100644 --- a/service/sagemakerfeaturestoreruntime/go.mod +++ b/service/sagemakerfeaturestoreruntime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sagemakerfeaturestoreruntime/go.sum +++ b/service/sagemakerfeaturestoreruntime/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakergeospatial/go.mod b/service/sagemakergeospatial/go.mod index 654ae3cea47..41940d85872 100644 --- a/service/sagemakergeospatial/go.mod +++ b/service/sagemakergeospatial/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakergeospatial/go.sum b/service/sagemakergeospatial/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sagemakergeospatial/go.sum +++ b/service/sagemakergeospatial/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakermetrics/go.mod b/service/sagemakermetrics/go.mod index 5af1ba519ea..a1a7abe4d82 100644 --- a/service/sagemakermetrics/go.mod +++ b/service/sagemakermetrics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakermetrics/go.sum b/service/sagemakermetrics/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sagemakermetrics/go.sum +++ b/service/sagemakermetrics/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index cbbad8f3783..a7fe0f5a8c2 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index b0f94100c98..38a2981a0a4 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/scheduler/api_op_CreateSchedule.go b/service/scheduler/api_op_CreateSchedule.go index 7db42f2a847..afe837ecd71 100644 --- a/service/scheduler/api_op_CreateSchedule.go +++ b/service/scheduler/api_op_CreateSchedule.go @@ -49,7 +49,7 @@ type CreateScheduleInput struct { // The expression that defines when the schedule runs. The following formats are // supported. // - at expression - at(yyyy-mm-ddThh:mm:ss) - // - rate expression - rate(unit value) + // - rate expression - rate(value unit) // - cron expression - cron(fields) // You can use at expressions to create one-time schedules that invoke a target // once, at the time and in the time zone, that you specify. You can use rate and @@ -72,6 +72,10 @@ type CreateScheduleInput struct { // This member is required. Target *types.Target + // Specifies the action that EventBridge Scheduler applies to the schedule after + // the schedule completes invoking the target. + ActionAfterCompletion types.ActionAfterCompletion + // Unique, case-sensitive identifier you provide to ensure the idempotency of the // request. If you do not specify a client token, EventBridge Scheduler uses a // randomly generated token for the request to ensure idempotency. diff --git a/service/scheduler/api_op_GetSchedule.go b/service/scheduler/api_op_GetSchedule.go index 031c4f9a7c1..936b1a7b446 100644 --- a/service/scheduler/api_op_GetSchedule.go +++ b/service/scheduler/api_op_GetSchedule.go @@ -50,6 +50,10 @@ type GetScheduleInput struct { type GetScheduleOutput struct { + // Indicates the action that EventBridge Scheduler applies to the schedule after + // the schedule completes invoking the target. + ActionAfterCompletion types.ActionAfterCompletion + // The Amazon Resource Name (ARN) of the schedule. Arn *string @@ -85,7 +89,7 @@ type GetScheduleOutput struct { // The expression that defines when the schedule runs. The following formats are // supported. // - at expression - at(yyyy-mm-ddThh:mm:ss) - // - rate expression - rate(unit value) + // - rate expression - rate(value unit) // - cron expression - cron(fields) // You can use at expressions to create one-time schedules that invoke a target // once, at the time and in the time zone, that you specify. You can use rate and diff --git a/service/scheduler/api_op_UpdateSchedule.go b/service/scheduler/api_op_UpdateSchedule.go index 9526b07351a..c4233eaa133 100644 --- a/service/scheduler/api_op_UpdateSchedule.go +++ b/service/scheduler/api_op_UpdateSchedule.go @@ -55,7 +55,7 @@ type UpdateScheduleInput struct { // The expression that defines when the schedule runs. The following formats are // supported. // - at expression - at(yyyy-mm-ddThh:mm:ss) - // - rate expression - rate(unit value) + // - rate expression - rate(value unit) // - cron expression - cron(fields) // You can use at expressions to create one-time schedules that invoke a target // once, at the time and in the time zone, that you specify. You can use rate and @@ -79,6 +79,10 @@ type UpdateScheduleInput struct { // This member is required. Target *types.Target + // Specifies the action that EventBridge Scheduler applies to the schedule after + // the schedule completes invoking the target. + ActionAfterCompletion types.ActionAfterCompletion + // Unique, case-sensitive identifier you provide to ensure the idempotency of the // request. If you do not specify a client token, EventBridge Scheduler uses a // randomly generated token for the request to ensure idempotency. diff --git a/service/scheduler/deserializers.go b/service/scheduler/deserializers.go index 62af6fd212d..be83a09d779 100644 --- a/service/scheduler/deserializers.go +++ b/service/scheduler/deserializers.go @@ -680,6 +680,15 @@ func awsRestjson1_deserializeOpDocumentGetScheduleOutput(v **GetScheduleOutput, for key, value := range shape { switch key { + case "ActionAfterCompletion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ActionAfterCompletion to be of type string, got %T instead", value) + } + sv.ActionAfterCompletion = types.ActionAfterCompletion(jtv) + } + case "Arn": if value != nil { jtv, ok := value.(string) diff --git a/service/scheduler/endpoints_test.go b/service/scheduler/endpoints_test.go index 1b8ef48b6c2..b0e6e9ff3bb 100644 --- a/service/scheduler/endpoints_test.go +++ b/service/scheduler/endpoints_test.go @@ -17,9 +17,9 @@ import ( // For region us-gov-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase0(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -56,9 +56,9 @@ func TestEndpointCase0(t *testing.T) { // For region us-gov-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase1(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -95,9 +95,9 @@ func TestEndpointCase1(t *testing.T) { // For region us-gov-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase2(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -134,9 +134,9 @@ func TestEndpointCase2(t *testing.T) { // For region us-gov-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase3(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-gov-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -173,9 +173,9 @@ func TestEndpointCase3(t *testing.T) { // For region cn-north-1 with FIPS enabled and DualStack enabled func TestEndpointCase4(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -212,9 +212,9 @@ func TestEndpointCase4(t *testing.T) { // For region cn-north-1 with FIPS enabled and DualStack disabled func TestEndpointCase5(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -251,9 +251,9 @@ func TestEndpointCase5(t *testing.T) { // For region cn-north-1 with FIPS disabled and DualStack enabled func TestEndpointCase6(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -290,9 +290,9 @@ func TestEndpointCase6(t *testing.T) { // For region cn-north-1 with FIPS disabled and DualStack disabled func TestEndpointCase7(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), - Region: ptr.String("cn-north-1"), } resolver := NewDefaultEndpointResolverV2() @@ -329,9 +329,9 @@ func TestEndpointCase7(t *testing.T) { // For region us-iso-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase8(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -349,9 +349,9 @@ func TestEndpointCase8(t *testing.T) { // For region us-iso-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase9(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -388,9 +388,9 @@ func TestEndpointCase9(t *testing.T) { // For region us-iso-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase10(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -408,9 +408,9 @@ func TestEndpointCase10(t *testing.T) { // For region us-iso-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase11(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-iso-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -447,9 +447,9 @@ func TestEndpointCase11(t *testing.T) { // For region us-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase12(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -486,9 +486,9 @@ func TestEndpointCase12(t *testing.T) { // For region us-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase13(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -525,9 +525,9 @@ func TestEndpointCase13(t *testing.T) { // For region us-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase14(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -564,9 +564,9 @@ func TestEndpointCase14(t *testing.T) { // For region us-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase15(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -603,9 +603,9 @@ func TestEndpointCase15(t *testing.T) { // For region us-isob-east-1 with FIPS enabled and DualStack enabled func TestEndpointCase16(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -623,9 +623,9 @@ func TestEndpointCase16(t *testing.T) { // For region us-isob-east-1 with FIPS enabled and DualStack disabled func TestEndpointCase17(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -662,9 +662,9 @@ func TestEndpointCase17(t *testing.T) { // For region us-isob-east-1 with FIPS disabled and DualStack enabled func TestEndpointCase18(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -682,9 +682,9 @@ func TestEndpointCase18(t *testing.T) { // For region us-isob-east-1 with FIPS disabled and DualStack disabled func TestEndpointCase19(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-isob-east-1"), } resolver := NewDefaultEndpointResolverV2() @@ -721,9 +721,9 @@ func TestEndpointCase19(t *testing.T) { // For custom endpoint with fips disabled and dualstack disabled func TestEndpointCase20(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-east-1"), Endpoint: ptr.String("https://example.com"), } @@ -761,9 +761,9 @@ func TestEndpointCase20(t *testing.T) { // For custom endpoint with fips enabled and dualstack disabled func TestEndpointCase21(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseDualStack: ptr.Bool(false), UseFIPS: ptr.Bool(true), - Region: ptr.String("us-east-1"), Endpoint: ptr.String("https://example.com"), } @@ -782,9 +782,9 @@ func TestEndpointCase21(t *testing.T) { // For custom endpoint with fips disabled and dualstack enabled func TestEndpointCase22(t *testing.T) { var params = EndpointParameters{ + Region: ptr.String("us-east-1"), UseDualStack: ptr.Bool(true), UseFIPS: ptr.Bool(false), - Region: ptr.String("us-east-1"), Endpoint: ptr.String("https://example.com"), } diff --git a/service/scheduler/go.mod b/service/scheduler/go.mod index dbc058ac1ff..df6802e805e 100644 --- a/service/scheduler/go.mod +++ b/service/scheduler/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/scheduler/go.sum b/service/scheduler/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/scheduler/go.sum +++ b/service/scheduler/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/scheduler/serializers.go b/service/scheduler/serializers.go index 8d02df9b2e8..174d25fe0c8 100644 --- a/service/scheduler/serializers.go +++ b/service/scheduler/serializers.go @@ -95,6 +95,11 @@ func awsRestjson1_serializeOpDocumentCreateScheduleInput(v *CreateScheduleInput, object := value.Object() defer object.Close() + if len(v.ActionAfterCompletion) > 0 { + ok := object.Key("ActionAfterCompletion") + ok.String(string(v.ActionAfterCompletion)) + } + if v.ClientToken != nil { ok := object.Key("ClientToken") ok.String(*v.ClientToken) @@ -978,6 +983,11 @@ func awsRestjson1_serializeOpDocumentUpdateScheduleInput(v *UpdateScheduleInput, object := value.Object() defer object.Close() + if len(v.ActionAfterCompletion) > 0 { + ok := object.Key("ActionAfterCompletion") + ok.String(string(v.ActionAfterCompletion)) + } + if v.ClientToken != nil { ok := object.Key("ClientToken") ok.String(*v.ClientToken) diff --git a/service/scheduler/types/enums.go b/service/scheduler/types/enums.go index 9f220d975ab..b9f1d4a19c8 100644 --- a/service/scheduler/types/enums.go +++ b/service/scheduler/types/enums.go @@ -2,6 +2,24 @@ package types +type ActionAfterCompletion string + +// Enum values for ActionAfterCompletion +const ( + ActionAfterCompletionNone ActionAfterCompletion = "NONE" + ActionAfterCompletionDelete ActionAfterCompletion = "DELETE" +) + +// Values returns all known values for ActionAfterCompletion. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ActionAfterCompletion) Values() []ActionAfterCompletion { + return []ActionAfterCompletion{ + "NONE", + "DELETE", + } +} + type AssignPublicIp string // Enum values for AssignPublicIp diff --git a/service/schemas/go.mod b/service/schemas/go.mod index 29656ba2bb9..eab15f5b16a 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/schemas/go.sum b/service/schemas/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index fed743e4743..942793fee72 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index df4716424a3..700c6d7c2ee 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securitylake/go.mod b/service/securitylake/go.mod index 5bd588fb339..00f4a63798a 100644 --- a/service/securitylake/go.mod +++ b/service/securitylake/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/securitylake/go.sum b/service/securitylake/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/securitylake/go.sum +++ b/service/securitylake/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index 20466a40d77..5ea29e167ed 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index 0423c14d2ef..28d58fbbf6f 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod index 37f4354712d..71e86de090c 100644 --- a/service/servicecatalogappregistry/go.mod +++ b/service/servicecatalogappregistry/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index 79e1ec0608e..e2777554ebb 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index 0dd715f6f3d..2707c2f9a69 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ses/go.mod b/service/ses/go.mod index 421db20a074..f8af597a7ab 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ses/go.sum b/service/ses/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index d2bf98122f1..754fac1f05d 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sfn/go.mod b/service/sfn/go.mod index aed58a76498..2c5ff01b5cb 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sfn/go.sum b/service/sfn/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/shield/go.mod b/service/shield/go.mod index cf553ae3004..45d82943077 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/shield/go.sum b/service/shield/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/signer/go.mod b/service/signer/go.mod index 2153edc2e9d..39885205d5b 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/signer/go.sum b/service/signer/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/simspaceweaver/go.mod b/service/simspaceweaver/go.mod index b624f211739..ee30db7b1ff 100644 --- a/service/simspaceweaver/go.mod +++ b/service/simspaceweaver/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/simspaceweaver/go.sum b/service/simspaceweaver/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/simspaceweaver/go.sum +++ b/service/simspaceweaver/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sms/go.mod b/service/sms/go.mod index 0c294e92399..9fa25e1d8b7 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sms/go.sum b/service/sms/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 4f69dd639a1..dba5822ba27 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/snowball/go.sum b/service/snowball/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowdevicemanagement/go.mod b/service/snowdevicemanagement/go.mod index 786976a0527..353a626aaa6 100644 --- a/service/snowdevicemanagement/go.mod +++ b/service/snowdevicemanagement/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/snowdevicemanagement/go.sum b/service/snowdevicemanagement/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/snowdevicemanagement/go.sum +++ b/service/snowdevicemanagement/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sns/go.mod b/service/sns/go.mod index 2a6ad763ca6..36552c29094 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sns/go.sum b/service/sns/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sqs/go.mod b/service/sqs/go.mod index d0ecd09ba70..142a3b2225d 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sqs/go.sum b/service/sqs/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssm/go.mod b/service/ssm/go.mod index 6a3bdc9ccb8..133abfde536 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssm/go.sum b/service/ssm/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssmcontacts/go.mod b/service/ssmcontacts/go.mod index cd6bd36d4b5..0eecdc59a90 100644 --- a/service/ssmcontacts/go.mod +++ b/service/ssmcontacts/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ssmcontacts/go.sum +++ b/service/ssmcontacts/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssmincidents/go.mod b/service/ssmincidents/go.mod index a592ae1bd42..13bcfe682c0 100644 --- a/service/ssmincidents/go.mod +++ b/service/ssmincidents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/ssmincidents/go.sum +++ b/service/ssmincidents/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssmsap/go.mod b/service/ssmsap/go.mod index de63b7263e5..f34122f60f5 100644 --- a/service/ssmsap/go.mod +++ b/service/ssmsap/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssmsap/go.sum b/service/ssmsap/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ssmsap/go.sum +++ b/service/ssmsap/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sso/go.mod b/service/sso/go.mod index ebc473c667a..5cba0cd0e42 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sso/go.sum b/service/sso/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index b43b21259e5..bd30757f23f 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index 8f01151e7bc..10ac6921ea4 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index 7aa86575f82..d457681f88e 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sts/go.mod b/service/sts/go.mod index 889f77cd650..6c77496aa9e 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sts/go.sum b/service/sts/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/support/go.mod b/service/support/go.mod index 28e4400f4f9..aa99a2200b7 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/support/go.sum b/service/support/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/supportapp/go.mod b/service/supportapp/go.mod index 0bf8454d0f8..1312d61e21f 100644 --- a/service/supportapp/go.mod +++ b/service/supportapp/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/supportapp/go.sum b/service/supportapp/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/supportapp/go.sum +++ b/service/supportapp/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/swf/go.mod b/service/swf/go.mod index c9a3c2930f0..66160edaf0a 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/swf/go.sum b/service/swf/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index c8944be0cd8..77bcf8008e2 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/textract/go.mod b/service/textract/go.mod index 12edb9f59c5..daf2458ca8b 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/textract/go.sum b/service/textract/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index b4a03593288..918ac91a2bc 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index d2481b54acb..cf8cdf5ce2d 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/tnb/go.mod b/service/tnb/go.mod index c1dbff6203f..880c6de6af2 100644 --- a/service/tnb/go.mod +++ b/service/tnb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/tnb/go.sum b/service/tnb/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/tnb/go.sum +++ b/service/tnb/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index ff67f7819f4..6cc9747e4b1 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribestreaming/go.mod b/service/transcribestreaming/go.mod index 13da3479cd0..5fc2a604152 100644 --- a/service/transcribestreaming/go.mod +++ b/service/transcribestreaming/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribestreaming/go.sum b/service/transcribestreaming/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/transcribestreaming/go.sum +++ b/service/transcribestreaming/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribestreaming/internal/testing/go.mod b/service/transcribestreaming/internal/testing/go.mod index 58bc59c2020..e55a7ea2c5a 100644 --- a/service/transcribestreaming/internal/testing/go.mod +++ b/service/transcribestreaming/internal/testing/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.0.68 github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.9.15 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribestreaming/internal/testing/go.sum b/service/transcribestreaming/internal/testing/go.sum index 1514953fd86..5ba4098ba99 100644 --- a/service/transcribestreaming/internal/testing/go.sum +++ b/service/transcribestreaming/internal/testing/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transfer/go.mod b/service/transfer/go.mod index 99d53aceffc..f82f5547a04 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/transfer/go.sum b/service/transfer/go.sum index b03fbb7a350..f15b219ecd3 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/translate/go.mod b/service/translate/go.mod index 3b0b80b98a7..1a2d954cfbc 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/translate/go.sum b/service/translate/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/verifiedpermissions/go.mod b/service/verifiedpermissions/go.mod index 7efa700b60c..118e3658a0e 100644 --- a/service/verifiedpermissions/go.mod +++ b/service/verifiedpermissions/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/verifiedpermissions/go.sum b/service/verifiedpermissions/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/verifiedpermissions/go.sum +++ b/service/verifiedpermissions/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/voiceid/go.mod b/service/voiceid/go.mod index 13a0ed378ef..4ca60d07e56 100644 --- a/service/voiceid/go.mod +++ b/service/voiceid/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/voiceid/go.sum b/service/voiceid/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/voiceid/go.sum +++ b/service/voiceid/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/vpclattice/go.mod b/service/vpclattice/go.mod index eb470b32e60..a9bac8a6329 100644 --- a/service/vpclattice/go.mod +++ b/service/vpclattice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/vpclattice/go.sum b/service/vpclattice/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/vpclattice/go.sum +++ b/service/vpclattice/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/waf/go.mod b/service/waf/go.mod index 950def600aa..bf86c3993f8 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/waf/go.sum b/service/waf/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index ca900d610e2..a69a5f11829 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index 06355a2a4e3..19d17053455 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wellarchitected/go.mod b/service/wellarchitected/go.mod index fbb1fc0af87..1b8865da650 100644 --- a/service/wellarchitected/go.mod +++ b/service/wellarchitected/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/wellarchitected/go.sum +++ b/service/wellarchitected/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wisdom/go.mod b/service/wisdom/go.mod index 6b3efec9681..6e01659b5e2 100644 --- a/service/wisdom/go.mod +++ b/service/wisdom/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wisdom/go.sum b/service/wisdom/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/wisdom/go.sum +++ b/service/wisdom/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index 8074c00ed0e..45d09886295 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/worklink/go.mod b/service/worklink/go.mod index 797448774da..9686e88dffe 100644 --- a/service/worklink/go.mod +++ b/service/worklink/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/worklink/go.sum b/service/worklink/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/worklink/go.sum +++ b/service/worklink/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmail/go.mod b/service/workmail/go.mod index 60d10cfddbb..2bb229db4bc 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workmail/go.sum b/service/workmail/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index fdc8588b911..49b098aeb5e 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index 51ae234ca91..5d6e48207d9 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspacesweb/go.mod b/service/workspacesweb/go.mod index de9461c2038..b225af97e40 100644 --- a/service/workspacesweb/go.mod +++ b/service/workspacesweb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspacesweb/go.sum b/service/workspacesweb/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/workspacesweb/go.sum +++ b/service/workspacesweb/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/xray/go.mod b/service/xray/go.mod index f5d487a28f2..028691a4c4a 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.19.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.36 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.30 - github.com/aws/smithy-go v1.13.5 + github.com/aws/smithy-go v1.14.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/xray/go.sum b/service/xray/go.sum index 975890afbc6..3362e6d3cea 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,3 +1,5 @@ +github.com/aws/smithy-go v1.14.0 h1:+X90sB94fizKjDmwb4vyl2cTTPXTE5E2G/1mjByb0io= +github.com/aws/smithy-go v1.14.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=