8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::delete_bucket_lifecycle_configuration::DeleteBucketLifecycleConfigurationOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::delete_bucket_lifecycle_configuration::DeleteBucketLifecycleConfigurationError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.delete_bucket_lifecycle_configuration();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `DeleteBucketLifecycleConfiguration`.
|
24 24 | ///
|
25 25 | /// <note>
|
26 26 | /// <p>This action deletes an Amazon S3 on Outposts bucket's lifecycle configuration. To delete an S3 bucket's lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html">DeleteBucketLifecycle</a> in the <i>Amazon S3 API Reference</i>.</p>
|
27 27 | /// </note>
|
28 28 | /// <p>Deletes the lifecycle configuration from the specified Outposts bucket. Amazon S3 on Outposts removes all the lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 on Outposts no longer automatically deletes any objects on the basis of rules contained in the deleted lifecycle configuration. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in <i>Amazon S3 User Guide</i>.</p>
|
29 29 | /// <p>To use this operation, you must have permission to perform the <code>s3-outposts:PutLifecycleConfiguration</code> action. By default, the bucket owner has this permission and the Outposts bucket owner can grant this permission to others.</p>
|
30 30 | /// <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketLifecycleConfiguration.html#API_control_DeleteBucketLifecycleConfiguration_Examples">Examples</a> section.</p>
|
31 31 | /// <p>For more information about object expiration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions">Elements to Describe Lifecycle Actions</a>.</p>
|
32 32 | /// <p>Related actions include:</p>
|
33 33 | /// <ul>
|
34 34 | /// <li>
|
35 35 | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a></p></li>
|
36 36 | /// <li>
|
37 37 | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html">GetBucketLifecycleConfiguration</a></p></li>
|
38 - | /// </ul><important>
|
39 - | /// <p>You must URL encode any signed header values that contain spaces. For example, if your header value is <code>my file.txt</code>, containing two spaces after <code>my</code>, you must URL encode this value to <code>my%20%20file.txt</code>.</p>
|
40 - | /// </important>
|
38 + | /// </ul>
|
41 39 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
42 40 | pub struct DeleteBucketLifecycleConfigurationFluentBuilder {
|
43 41 | handle: ::std::sync::Arc<crate::client::Handle>,
|
44 42 | inner: crate::operation::delete_bucket_lifecycle_configuration::builders::DeleteBucketLifecycleConfigurationInputBuilder,
|
45 43 | config_override: ::std::option::Option<crate::config::Builder>,
|
46 44 | }
|
47 45 | impl
|
48 46 | crate::client::customize::internal::CustomizableSend<
|
49 47 | crate::operation::delete_bucket_lifecycle_configuration::DeleteBucketLifecycleConfigurationOutput,
|
50 48 | crate::operation::delete_bucket_lifecycle_configuration::DeleteBucketLifecycleConfigurationError,
|
51 49 | > for DeleteBucketLifecycleConfigurationFluentBuilder
|
52 50 | {
|
53 51 | fn send(
|
54 52 | self,
|
55 53 | config_override: crate::config::Builder,
|
56 54 | ) -> crate::client::customize::internal::BoxFuture<
|
57 55 | crate::client::customize::internal::SendResult<
|
58 56 | crate::operation::delete_bucket_lifecycle_configuration::DeleteBucketLifecycleConfigurationOutput,
|
59 57 | crate::operation::delete_bucket_lifecycle_configuration::DeleteBucketLifecycleConfigurationError,
|
60 58 | >,
|
61 59 | > {
|
62 60 | ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
|
63 61 | }
|
64 62 | }
|
65 63 | impl DeleteBucketLifecycleConfigurationFluentBuilder {
|
66 64 | /// Creates a new `DeleteBucketLifecycleConfigurationFluentBuilder`.
|
67 65 | pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
|
68 66 | Self {
|
69 67 | handle,
|
70 68 | inner: ::std::default::Default::default(),
|