pub struct DeleteOriginAccessControl { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteOriginAccessControl
.
Deletes a CloudFront origin access control.
You cannot delete an origin access control if it's in use. First, update all distributions to remove the origin access control from all origins, then delete the origin access control.
Implementations§
source§impl DeleteOriginAccessControl
impl DeleteOriginAccessControl
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteOriginAccessControl, AwsResponseRetryClassifier>, SdkError<DeleteOriginAccessControlError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteOriginAccessControl, AwsResponseRetryClassifier>, SdkError<DeleteOriginAccessControlError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteOriginAccessControlOutput, SdkError<DeleteOriginAccessControlError>>
pub async fn send(
self
) -> Result<DeleteOriginAccessControlOutput, SdkError<DeleteOriginAccessControlError>>
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 id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier of the origin access control that you are deleting.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier of the origin access control that you are deleting.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The current version (ETag
value) of the origin access control that you are deleting.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The current version (ETag
value) of the origin access control that you are deleting.
Trait Implementations§
source§impl Clone for DeleteOriginAccessControl
impl Clone for DeleteOriginAccessControl
source§fn clone(&self) -> DeleteOriginAccessControl
fn clone(&self) -> DeleteOriginAccessControl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more