Struct aws_sdk_cloudfront::client::fluent_builders::DeleteKeyGroup
source · [−]pub struct DeleteKeyGroup<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteKeyGroup
.
Deletes a key group.
You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove the key group from all cache behaviors, then delete the key group.
To delete a key group, you must provide the key group’s identifier and version. To get these values, use ListKeyGroups
followed by GetKeyGroup
or GetKeyGroupConfig
.
Implementations
impl<C, M, R> DeleteKeyGroup<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteKeyGroup<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteKeyGroupOutput, SdkError<DeleteKeyGroupError>> where
R::Policy: SmithyRetryPolicy<DeleteKeyGroupInputOperationOutputAlias, DeleteKeyGroupOutput, DeleteKeyGroupError, DeleteKeyGroupInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteKeyGroupOutput, SdkError<DeleteKeyGroupError>> where
R::Policy: SmithyRetryPolicy<DeleteKeyGroupInputOperationOutputAlias, DeleteKeyGroupOutput, DeleteKeyGroupError, DeleteKeyGroupInputOperationRetryAlias>,
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 identifier of the key group that you are deleting. To get the identifier, use ListKeyGroups
.
The identifier of the key group that you are deleting. To get the identifier, use ListKeyGroups
.
The version of the key group that you are deleting. The version is the key group’s ETag
value. To get the ETag
, use GetKeyGroup
or GetKeyGroupConfig
.
The version of the key group that you are deleting. The version is the key group’s ETag
value. To get the ETag
, use GetKeyGroup
or GetKeyGroupConfig
.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeleteKeyGroup<C, M, R>
impl<C, M, R> Send for DeleteKeyGroup<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeleteKeyGroup<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeleteKeyGroup<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeleteKeyGroup<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