Struct aws_sdk_kms::operation::delete_imported_key_material::builders::DeleteImportedKeyMaterialInputBuilder
source · #[non_exhaustive]pub struct DeleteImportedKeyMaterialInputBuilder { /* private fields */ }
Expand description
A builder for DeleteImportedKeyMaterialInput
.
Implementations§
source§impl DeleteImportedKeyMaterialInputBuilder
impl DeleteImportedKeyMaterialInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Identifies the KMS key from which you are deleting imported key material. The Origin
of the KMS key must be EXTERNAL
.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
Identifies the KMS key from which you are deleting imported key material. The Origin
of the KMS key must be EXTERNAL
.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
Identifies the KMS key from which you are deleting imported key material. The Origin
of the KMS key must be EXTERNAL
.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn build(self) -> Result<DeleteImportedKeyMaterialInput, BuildError>
pub fn build(self) -> Result<DeleteImportedKeyMaterialInput, BuildError>
Consumes the builder and constructs a DeleteImportedKeyMaterialInput
.
source§impl DeleteImportedKeyMaterialInputBuilder
impl DeleteImportedKeyMaterialInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteImportedKeyMaterialOutput, SdkError<DeleteImportedKeyMaterialError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteImportedKeyMaterialOutput, SdkError<DeleteImportedKeyMaterialError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteImportedKeyMaterialInputBuilder
impl Clone for DeleteImportedKeyMaterialInputBuilder
source§fn clone(&self) -> DeleteImportedKeyMaterialInputBuilder
fn clone(&self) -> DeleteImportedKeyMaterialInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeleteImportedKeyMaterialInputBuilder
impl Default for DeleteImportedKeyMaterialInputBuilder
source§fn default() -> DeleteImportedKeyMaterialInputBuilder
fn default() -> DeleteImportedKeyMaterialInputBuilder
source§impl PartialEq for DeleteImportedKeyMaterialInputBuilder
impl PartialEq for DeleteImportedKeyMaterialInputBuilder
source§fn eq(&self, other: &DeleteImportedKeyMaterialInputBuilder) -> bool
fn eq(&self, other: &DeleteImportedKeyMaterialInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.