Struct aws_sdk_ec2::input::ModifyEbsDefaultKmsKeyIdInput
source · #[non_exhaustive]pub struct ModifyEbsDefaultKmsKeyIdInput { /* private fields */ }
Implementations§
source§impl ModifyEbsDefaultKmsKeyIdInput
impl ModifyEbsDefaultKmsKeyIdInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyEbsDefaultKmsKeyId, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyEbsDefaultKmsKeyId, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyEbsDefaultKmsKeyId
>
Examples found in repository?
63619 63620 63621 63622 63623 63624 63625 63626 63627 63628 63629 63630 63631 63632 63633 63634 63635 63636 63637 63638 63639 63640 63641 63642 63643 63644 63645 63646 63647 63648 63649 63650 63651 63652 63653 63654 63655 63656 63657 63658 63659 63660 63661
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyEbsDefaultKmsKeyId,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyEbsDefaultKmsKeyIdError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ModifyEbsDefaultKmsKeyIdOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyEbsDefaultKmsKeyIdError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyEbsDefaultKmsKeyIdInput
.
source§impl ModifyEbsDefaultKmsKeyIdInput
impl ModifyEbsDefaultKmsKeyIdInput
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption. If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId
is specified, the encrypted state must be true
.
You can specify the KMS key using any of the following:
-
Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab.
-
Key alias. For example, alias/ExampleAlias.
-
Key ARN. For example, arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.
-
Alias ARN. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, the action can appear to complete, but eventually fails.
Amazon EBS does not support asymmetric KMS keys.
Trait Implementations§
source§impl Clone for ModifyEbsDefaultKmsKeyIdInput
impl Clone for ModifyEbsDefaultKmsKeyIdInput
source§fn clone(&self) -> ModifyEbsDefaultKmsKeyIdInput
fn clone(&self) -> ModifyEbsDefaultKmsKeyIdInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more