pub struct DeleteBucketCorsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteBucketCors
.
This operation is not supported for directory buckets.
Deletes the cors
configuration information set for the bucket.
To use this operation, you must have permission to perform the s3:PutBucketCORS
action. The bucket owner has this permission by default and can grant this permission to others.
For information about cors
, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide.
Related Resources
Implementations§
source§impl DeleteBucketCorsFluentBuilder
impl DeleteBucketCorsFluentBuilder
sourcepub fn as_input(&self) -> &DeleteBucketCorsInputBuilder
pub fn as_input(&self) -> &DeleteBucketCorsInputBuilder
Access the DeleteBucketCors as a reference.
sourcepub async fn send(
self,
) -> Result<DeleteBucketCorsOutput, SdkError<DeleteBucketCorsError, HttpResponse>>
pub async fn send( self, ) -> Result<DeleteBucketCorsOutput, SdkError<DeleteBucketCorsError, HttpResponse>>
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.
sourcepub fn customize(
self,
) -> CustomizableOperation<DeleteBucketCorsOutput, DeleteBucketCorsError, Self>
pub fn customize( self, ) -> CustomizableOperation<DeleteBucketCorsOutput, DeleteBucketCorsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
Specifies the bucket whose cors
configuration is being deleted.
sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
Specifies the bucket whose cors
configuration is being deleted.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
Specifies the bucket whose cors
configuration is being deleted.
sourcepub fn expected_bucket_owner(self, input: impl Into<String>) -> Self
pub fn expected_bucket_owner(self, input: impl Into<String>) -> Self
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
sourcepub fn set_expected_bucket_owner(self, input: Option<String>) -> Self
pub fn set_expected_bucket_owner(self, input: Option<String>) -> Self
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
sourcepub fn get_expected_bucket_owner(&self) -> &Option<String>
pub fn get_expected_bucket_owner(&self) -> &Option<String>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
Trait Implementations§
source§impl Clone for DeleteBucketCorsFluentBuilder
impl Clone for DeleteBucketCorsFluentBuilder
source§fn clone(&self) -> DeleteBucketCorsFluentBuilder
fn clone(&self) -> DeleteBucketCorsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DeleteBucketCorsFluentBuilder
impl !RefUnwindSafe for DeleteBucketCorsFluentBuilder
impl Send for DeleteBucketCorsFluentBuilder
impl Sync for DeleteBucketCorsFluentBuilder
impl Unpin for DeleteBucketCorsFluentBuilder
impl !UnwindSafe for DeleteBucketCorsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more