Struct aws_sdk_cloudfront::client::fluent_builders::UpdateKeyGroup [−][src]
pub struct UpdateKeyGroup<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateKeyGroup
.
Updates a key group.
When you update a key group, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a key group:
-
Get the current key group with
GetKeyGroup
orGetKeyGroupConfig
. -
Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs.
-
Call
UpdateKeyGroup
with the entire key group object, including the fields that you modified and those that you didn’t.
Implementations
impl<C, M, R> UpdateKeyGroup<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateKeyGroup<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateKeyGroupOutput, SdkError<UpdateKeyGroupError>> where
R::Policy: SmithyRetryPolicy<UpdateKeyGroupInputOperationOutputAlias, UpdateKeyGroupOutput, UpdateKeyGroupError, UpdateKeyGroupInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateKeyGroupOutput, SdkError<UpdateKeyGroupError>> where
R::Policy: SmithyRetryPolicy<UpdateKeyGroupInputOperationOutputAlias, UpdateKeyGroupOutput, UpdateKeyGroupError, UpdateKeyGroupInputOperationRetryAlias>,
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 key group configuration.
The key group configuration.
The identifier of the key group that you are updating.
The identifier of the key group that you are updating.
The version of the key group that you are updating. The version is the key group’s
ETag
value.
The version of the key group that you are updating. The version is the key group’s
ETag
value.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for UpdateKeyGroup<C, M, R>
impl<C, M, R> Send for UpdateKeyGroup<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateKeyGroup<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateKeyGroup<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for UpdateKeyGroup<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