AWS SDK

AWS SDK

rev. 645b1734ce74ebbc529fecda676baac60fe4d581 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_directory_buckets.rs

@@ -237,237 +298,300 @@
  257    257   
            .set_force_path_style(cfg.load::<crate::config::ForcePathStyle>().map(|ty| ty.0))
  258    258   
            .set_use_arn_region(cfg.load::<crate::config::UseArnRegion>().map(|ty| ty.0))
  259    259   
            .set_disable_multi_region_access_points(cfg.load::<crate::config::DisableMultiRegionAccessPoints>().map(|ty| ty.0))
  260    260   
            .set_accelerate(cfg.load::<crate::config::Accelerate>().map(|ty| ty.0))
  261    261   
            .set_disable_s3_express_session_auth(cfg.load::<crate::config::DisableS3ExpressSessionAuth>().map(|ty| ty.0))
  262    262   
            .set_use_s3_express_control_endpoint(Some(true))
  263    263   
            .build()
  264    264   
            .map_err(|err| {
  265    265   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  266    266   
            })?;
         267  +
  267    268   
        cfg.interceptor_state()
  268    269   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         270  +
  269    271   
        ::std::result::Result::Ok(())
  270    272   
    }
  271    273   
}
  272    274   
  273    275   
// The get_* functions below are generated from JMESPath expressions in the
  274    276   
// operationContextParams trait. They target the operation's input shape.
  275    277   
  276    278   
/// Error type for the `ListDirectoryBucketsError` operation.
  277    279   
#[non_exhaustive]
  278    280   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_multipart_uploads.rs

@@ -265,265 +326,328 @@
  285    285   
                    .bucket
  286    286   
                    .clone()
  287    287   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  288    288   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  289    289   
            ))
  290    290   
            .set_prefix(_input.prefix.clone())
  291    291   
            .build()
  292    292   
            .map_err(|err| {
  293    293   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  294    294   
            })?;
         295  +
  295    296   
        cfg.interceptor_state()
  296    297   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         298  +
  297    299   
        ::std::result::Result::Ok(())
  298    300   
    }
  299    301   
}
  300    302   
  301    303   
// The get_* functions below are generated from JMESPath expressions in the
  302    304   
// operationContextParams trait. They target the operation's input shape.
  303    305   
  304    306   
/// Error type for the `ListMultipartUploadsError` operation.
  305    307   
#[non_exhaustive]
  306    308   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_object_versions.rs

@@ -262,262 +323,325 @@
  282    282   
                    .bucket
  283    283   
                    .clone()
  284    284   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  285    285   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  286    286   
            ))
  287    287   
            .set_prefix(_input.prefix.clone())
  288    288   
            .build()
  289    289   
            .map_err(|err| {
  290    290   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  291    291   
            })?;
         292  +
  292    293   
        cfg.interceptor_state()
  293    294   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         295  +
  294    296   
        ::std::result::Result::Ok(())
  295    297   
    }
  296    298   
}
  297    299   
  298    300   
// The get_* functions below are generated from JMESPath expressions in the
  299    301   
// operationContextParams trait. They target the operation's input shape.
  300    302   
  301    303   
#[allow(unreachable_code, unused_variables)]
  302    304   
#[cfg(test)]
  303    305   
mod list_object_versions_test {

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_objects.rs

@@ -264,264 +325,327 @@
  284    284   
                    .bucket
  285    285   
                    .clone()
  286    286   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  287    287   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  288    288   
            ))
  289    289   
            .set_prefix(_input.prefix.clone())
  290    290   
            .build()
  291    291   
            .map_err(|err| {
  292    292   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  293    293   
            })?;
         294  +
  294    295   
        cfg.interceptor_state()
  295    296   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         297  +
  296    298   
        ::std::result::Result::Ok(())
  297    299   
    }
  298    300   
}
  299    301   
  300    302   
// The get_* functions below are generated from JMESPath expressions in the
  301    303   
// operationContextParams trait. They target the operation's input shape.
  302    304   
  303    305   
#[allow(unreachable_code, unused_variables)]
  304    306   
#[cfg(test)]
  305    307   
mod list_objects_test {

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_objects_v2.rs

@@ -275,275 +336,338 @@
  295    295   
                    .bucket
  296    296   
                    .clone()
  297    297   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  298    298   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  299    299   
            ))
  300    300   
            .set_prefix(_input.prefix.clone())
  301    301   
            .build()
  302    302   
            .map_err(|err| {
  303    303   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  304    304   
            })?;
         305  +
  305    306   
        cfg.interceptor_state()
  306    307   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         308  +
  307    309   
        ::std::result::Result::Ok(())
  308    310   
    }
  309    311   
}
  310    312   
  311    313   
// The get_* functions below are generated from JMESPath expressions in the
  312    314   
// operationContextParams trait. They target the operation's input shape.
  313    315   
  314    316   
/// Error type for the `ListObjectsV2Error` operation.
  315    317   
#[non_exhaustive]
  316    318   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_parts.rs

@@ -276,276 +337,339 @@
  296    296   
                _input
  297    297   
                    .key
  298    298   
                    .clone()
  299    299   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  300    300   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("key", "A required field was not set"))?,
  301    301   
            ))
  302    302   
            .build()
  303    303   
            .map_err(|err| {
  304    304   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  305    305   
            })?;
         306  +
  306    307   
        cfg.interceptor_state()
  307    308   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         309  +
  308    310   
        ::std::result::Result::Ok(())
  309    311   
    }
  310    312   
}
  311    313   
  312    314   
// The get_* functions below are generated from JMESPath expressions in the
  313    315   
// operationContextParams trait. They target the operation's input shape.
  314    316   
  315    317   
/// Error type for the `ListPartsError` operation.
  316    318   
#[non_exhaustive]
  317    319   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_accelerate_configuration.rs

@@ -322,322 +383,385 @@
  342    342   
                _input
  343    343   
                    .bucket
  344    344   
                    .clone()
  345    345   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  346    346   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  347    347   
            ))
  348    348   
            .build()
  349    349   
            .map_err(|err| {
  350    350   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  351    351   
            })?;
         352  +
  352    353   
        cfg.interceptor_state()
  353    354   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         355  +
  354    356   
        ::std::result::Result::Ok(())
  355    357   
    }
  356    358   
}
  357    359   
  358    360   
// The get_* functions below are generated from JMESPath expressions in the
  359    361   
// operationContextParams trait. They target the operation's input shape.
  360    362   
  361    363   
/// Error type for the `PutBucketAccelerateConfigurationError` operation.
  362    364   
#[non_exhaustive]
  363    365   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_acl.rs

@@ -305,305 +366,368 @@
  325    325   
                _input
  326    326   
                    .bucket
  327    327   
                    .clone()
  328    328   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  329    329   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  330    330   
            ))
  331    331   
            .build()
  332    332   
            .map_err(|err| {
  333    333   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  334    334   
            })?;
         335  +
  335    336   
        cfg.interceptor_state()
  336    337   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         338  +
  337    339   
        ::std::result::Result::Ok(())
  338    340   
    }
  339    341   
}
  340    342   
  341    343   
// The get_* functions below are generated from JMESPath expressions in the
  342    344   
// operationContextParams trait. They target the operation's input shape.
  343    345   
  344    346   
/// Error type for the `PutBucketAclError` operation.
  345    347   
#[non_exhaustive]
  346    348   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_analytics_configuration.rs

@@ -273,273 +334,336 @@
  293    293   
                _input
  294    294   
                    .bucket
  295    295   
                    .clone()
  296    296   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  297    297   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  298    298   
            ))
  299    299   
            .build()
  300    300   
            .map_err(|err| {
  301    301   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  302    302   
            })?;
         303  +
  303    304   
        cfg.interceptor_state()
  304    305   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         306  +
  305    307   
        ::std::result::Result::Ok(())
  306    308   
    }
  307    309   
}
  308    310   
  309    311   
// The get_* functions below are generated from JMESPath expressions in the
  310    312   
// operationContextParams trait. They target the operation's input shape.
  311    313   
  312    314   
/// Error type for the `PutBucketAnalyticsConfigurationError` operation.
  313    315   
#[non_exhaustive]
  314    316   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_cors.rs

@@ -305,305 +366,368 @@
  325    325   
                _input
  326    326   
                    .bucket
  327    327   
                    .clone()
  328    328   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  329    329   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  330    330   
            ))
  331    331   
            .build()
  332    332   
            .map_err(|err| {
  333    333   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  334    334   
            })?;
         335  +
  335    336   
        cfg.interceptor_state()
  336    337   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         338  +
  337    339   
        ::std::result::Result::Ok(())
  338    340   
    }
  339    341   
}
  340    342   
  341    343   
// The get_* functions below are generated from JMESPath expressions in the
  342    344   
// operationContextParams trait. They target the operation's input shape.
  343    345   
  344    346   
/// Error type for the `PutBucketCorsError` operation.
  345    347   
#[non_exhaustive]
  346    348   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_encryption.rs

@@ -303,303 +364,366 @@
  323    323   
                _input
  324    324   
                    .bucket
  325    325   
                    .clone()
  326    326   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  327    327   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  328    328   
            ))
  329    329   
            .build()
  330    330   
            .map_err(|err| {
  331    331   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  332    332   
            })?;
         333  +
  333    334   
        cfg.interceptor_state()
  334    335   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         336  +
  335    337   
        ::std::result::Result::Ok(())
  336    338   
    }
  337    339   
}
  338    340   
  339    341   
// The get_* functions below are generated from JMESPath expressions in the
  340    342   
// operationContextParams trait. They target the operation's input shape.
  341    343   
  342    344   
/// Error type for the `PutBucketEncryptionError` operation.
  343    345   
#[non_exhaustive]
  344    346   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_intelligent_tiering_configuration.rs

@@ -273,273 +334,336 @@
  293    293   
                _input
  294    294   
                    .bucket
  295    295   
                    .clone()
  296    296   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  297    297   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  298    298   
            ))
  299    299   
            .build()
  300    300   
            .map_err(|err| {
  301    301   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  302    302   
            })?;
         303  +
  303    304   
        cfg.interceptor_state()
  304    305   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         306  +
  305    307   
        ::std::result::Result::Ok(())
  306    308   
    }
  307    309   
}
  308    310   
  309    311   
// The get_* functions below are generated from JMESPath expressions in the
  310    312   
// operationContextParams trait. They target the operation's input shape.
  311    313   
  312    314   
/// Error type for the `PutBucketIntelligentTieringConfigurationError` operation.
  313    315   
#[non_exhaustive]
  314    316   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_inventory_configuration.rs

@@ -273,273 +334,336 @@
  293    293   
                _input
  294    294   
                    .bucket
  295    295   
                    .clone()
  296    296   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  297    297   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  298    298   
            ))
  299    299   
            .build()
  300    300   
            .map_err(|err| {
  301    301   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  302    302   
            })?;
         303  +
  303    304   
        cfg.interceptor_state()
  304    305   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         306  +
  305    307   
        ::std::result::Result::Ok(())
  306    308   
    }
  307    309   
}
  308    310   
  309    311   
// The get_* functions below are generated from JMESPath expressions in the
  310    312   
// operationContextParams trait. They target the operation's input shape.
  311    313   
  312    314   
/// Error type for the `PutBucketInventoryConfigurationError` operation.
  313    315   
#[non_exhaustive]
  314    316   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_lifecycle_configuration.rs

@@ -322,322 +383,385 @@
  342    342   
                _input
  343    343   
                    .bucket
  344    344   
                    .clone()
  345    345   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  346    346   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  347    347   
            ))
  348    348   
            .build()
  349    349   
            .map_err(|err| {
  350    350   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  351    351   
            })?;
         352  +
  352    353   
        cfg.interceptor_state()
  353    354   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         355  +
  354    356   
        ::std::result::Result::Ok(())
  355    357   
    }
  356    358   
}
  357    359   
  358    360   
// The get_* functions below are generated from JMESPath expressions in the
  359    361   
// operationContextParams trait. They target the operation's input shape.
  360    362   
  361    363   
#[allow(unreachable_code, unused_variables)]
  362    364   
#[cfg(test)]
  363    365   
mod put_bucket_lifecycle_configuration_test {

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_logging.rs

@@ -305,305 +366,368 @@
  325    325   
                _input
  326    326   
                    .bucket
  327    327   
                    .clone()
  328    328   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  329    329   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  330    330   
            ))
  331    331   
            .build()
  332    332   
            .map_err(|err| {
  333    333   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  334    334   
            })?;
         335  +
  335    336   
        cfg.interceptor_state()
  336    337   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         338  +
  337    339   
        ::std::result::Result::Ok(())
  338    340   
    }
  339    341   
}
  340    342   
  341    343   
// The get_* functions below are generated from JMESPath expressions in the
  342    344   
// operationContextParams trait. They target the operation's input shape.
  343    345   
  344    346   
/// Error type for the `PutBucketLoggingError` operation.
  345    347   
#[non_exhaustive]
  346    348   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_metrics_configuration.rs

@@ -265,265 +326,328 @@
  285    285   
                _input
  286    286   
                    .bucket
  287    287   
                    .clone()
  288    288   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  289    289   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("bucket", "A required field was not set"))?,
  290    290   
            ))
  291    291   
            .build()
  292    292   
            .map_err(|err| {
  293    293   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  294    294   
            })?;
         295  +
  295    296   
        cfg.interceptor_state()
  296    297   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         298  +
  297    299   
        ::std::result::Result::Ok(())
  298    300   
    }
  299    301   
}
  300    302   
  301    303   
// The get_* functions below are generated from JMESPath expressions in the
  302    304   
// operationContextParams trait. They target the operation's input shape.
  303    305   
  304    306   
/// Error type for the `PutBucketMetricsConfigurationError` operation.
  305    307   
#[non_exhaustive]
  306    308   
#[derive(::std::fmt::Debug)]