Struct aws_sdk_xray::client::fluent_builders::PutEncryptionConfig
source · [−]pub struct PutEncryptionConfig<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to PutEncryptionConfig
.
Updates the encryption configuration for X-Ray data.
Implementations
impl<C, M, R> PutEncryptionConfig<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutEncryptionConfig<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutEncryptionConfigOutput, SdkError<PutEncryptionConfigError>> where
R::Policy: SmithyRetryPolicy<PutEncryptionConfigInputOperationOutputAlias, PutEncryptionConfigOutput, PutEncryptionConfigError, PutEncryptionConfigInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutEncryptionConfigOutput, SdkError<PutEncryptionConfigError>> where
R::Policy: SmithyRetryPolicy<PutEncryptionConfigInputOperationOutputAlias, PutEncryptionConfigOutput, PutEncryptionConfigError, PutEncryptionConfigInputOperationRetryAlias>,
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.
An Amazon Web Services KMS key in one of the following formats:
-
Alias - The name of the key. For example,
alias/MyKey
. -
Key ID - The KMS key ID of the key. For example,
ae4aa6d49-a4d8-9df9-a475-4ff6d7898456
. Amazon Web Services X-Ray does not support asymmetric KMS keys. -
ARN - The full Amazon Resource Name of the key ID or alias. For example,
arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456
. Use this format to specify a key in a different account.
Omit this key if you set Type
to NONE
.
An Amazon Web Services KMS key in one of the following formats:
-
Alias - The name of the key. For example,
alias/MyKey
. -
Key ID - The KMS key ID of the key. For example,
ae4aa6d49-a4d8-9df9-a475-4ff6d7898456
. Amazon Web Services X-Ray does not support asymmetric KMS keys. -
ARN - The full Amazon Resource Name of the key ID or alias. For example,
arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456
. Use this format to specify a key in a different account.
Omit this key if you set Type
to NONE
.
The type of encryption. Set to KMS
to use your own key for encryption. Set to NONE
for default encryption.
The type of encryption. Set to KMS
to use your own key for encryption. Set to NONE
for default encryption.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PutEncryptionConfig<C, M, R>
impl<C, M, R> Send for PutEncryptionConfig<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutEncryptionConfig<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutEncryptionConfig<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PutEncryptionConfig<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