Skip to content

Commit

Permalink
[smithy-rs] Add support for the awsQueryCompatible trait (#2398)
Browse files Browse the repository at this point in the history
* Add support for the awsQueryCompatible trait

This commit adds support for the awsQueryCompatible trait. This allows
services already supporting custom error codes through the AWS Query
protocol with the awsQueryError trait to continue supporting them after
the services switch to the AWS JSON 1.0 protocol.

* Add copyright header

* Fix clippy warning for clippy::manual-map

* Update CHANGELOG.next.toml

* Update CHANGELOG.next.toml

* Update CHANGELOG.next.toml

* Remove unused variables from `errorScope`

This commit addresses smithy-lang/smithy-rs#2398 (comment)

* Reorder arguments for test verification

This commit addresses smithy-lang/smithy-rs#2398 (comment)

---------

Co-authored-by: Yuki Saito <awsaito@amazon.com>
  • Loading branch information
2 people authored and aws-sdk-rust-ci committed Mar 28, 2023
1 parent 53e3e80 commit 7bc9d7a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion sdk/kinesis/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ impl DeregisterStreamConsumerInput {
.set_use_fips(_config.use_fips)
.set_endpoint(_config.endpoint_url.clone())
.set_operation_type(Some("control".to_string()))
.set_stream_arn(self.stream_arn.clone())
.set_consumer_arn(self.consumer_arn.clone())
.set_stream_arn(self.stream_arn.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down
28 changes: 14 additions & 14 deletions sdk/s3control/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ impl CreateAccessPointInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -1481,8 +1481,8 @@ impl DeleteAccessPointInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -1878,8 +1878,8 @@ impl DeleteAccessPointPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -2483,8 +2483,8 @@ impl DeleteBucketLifecycleConfigurationInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -2697,8 +2697,8 @@ impl DeleteBucketPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -2905,8 +2905,8 @@ impl DeleteBucketTaggingInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -4430,8 +4430,8 @@ impl GetAccessPointInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -5017,8 +5017,8 @@ impl GetAccessPointPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -5793,8 +5793,8 @@ impl GetBucketInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -5999,8 +5999,8 @@ impl GetBucketLifecycleConfigurationInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -6211,8 +6211,8 @@ impl GetBucketPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -9821,8 +9821,8 @@ impl PutAccessPointPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -10257,8 +10257,8 @@ impl PutBucketLifecycleConfigurationInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -10780,8 +10780,8 @@ impl PutBucketTaggingInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down
6 changes: 3 additions & 3 deletions versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
smithy_rs_revision = 'd579c561c736b745fb7828e98ad808adf1a908b1'
smithy_rs_revision = 'da264056eb9f5cba1bd5a01d0f81f404d53aeead'
aws_doc_sdk_examples_revision = '97a177aab8c3d2fef97416cb66e4b4d0da840138'

[manual_interventions]
Expand Down Expand Up @@ -1057,7 +1057,7 @@ model_hash = '9ec8a92782fbef7e2cf07fc9b5e656aa37b59668baff33acae10f270cfff4193'
[crates.aws-sdk-kinesis]
category = 'AwsSdk'
version = '0.51.0'
source_hash = 'f62efc1512d5e0e1e8c099d8e13f5d1b31f641640f656aa767a475f0ed1a3540'
source_hash = '378c2471680b3b37d247be9aa64929bdc322573e80a09670b06790a4747ab04f'
model_hash = '5eaef8321cea414140d87258e714988d88f3e41d9cdf4b83a1417027cb702cb9'

[crates.aws-sdk-kinesisanalytics]
Expand Down Expand Up @@ -1669,7 +1669,7 @@ model_hash = 'fb47cfd49cf2d9250063914599f703ed365b51be373988dc3f2cd64321c9583b'
[crates.aws-sdk-s3control]
category = 'AwsSdk'
version = '0.51.0'
source_hash = '4d1bda4b78e120d25731636487b5a81fc64721f33d60c951d9e29d78e5207e0c'
source_hash = 'df73c2864798dbc93ac35de7e6a5345a0dbd35d2da299f6911aee115b1f23ff5'
model_hash = '930bd33c05c393293591ae01cbdb6637fb5062ed3a3ad5e2dadddd8108cc8478'

[crates.aws-sdk-s3outposts]
Expand Down

0 comments on commit 7bc9d7a

Please sign in to comment.