Struct aws_sdk_s3::client::fluent_builders::DeleteBucketLifecycle [−][src]
pub struct DeleteBucketLifecycle<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteBucketLifecycle
.
Deletes the lifecycle configuration from the specified bucket. Amazon S3 removes all the lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 no longer automatically deletes any objects on the basis of rules contained in the deleted lifecycle configuration.
To use this operation, you must have permission to perform the
s3:PutLifecycleConfiguration
action. By default, the bucket owner has this
permission and the bucket owner can grant this permission to others.
There is usually some time lag before lifecycle configuration deletion is fully propagated to all the Amazon S3 systems.
For more information about the object expiration, see Elements to Describe Lifecycle Actions.
Related actions include:
Implementations
impl<C, M, R> DeleteBucketLifecycle<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteBucketLifecycle<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteBucketLifecycleOutput, SdkError<DeleteBucketLifecycleError>> where
R::Policy: SmithyRetryPolicy<DeleteBucketLifecycleInputOperationOutputAlias, DeleteBucketLifecycleOutput, DeleteBucketLifecycleError, DeleteBucketLifecycleInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteBucketLifecycleOutput, SdkError<DeleteBucketLifecycleError>> where
R::Policy: SmithyRetryPolicy<DeleteBucketLifecycleInputOperationOutputAlias, DeleteBucketLifecycleOutput, DeleteBucketLifecycleError, DeleteBucketLifecycleInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The bucket name of the lifecycle to delete.
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied)
error.
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied)
error.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for DeleteBucketLifecycle<C, M, R>
impl<C, M, R> Send for DeleteBucketLifecycle<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeleteBucketLifecycle<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeleteBucketLifecycle<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for DeleteBucketLifecycle<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more