Struct aws_sdk_kms::operation::enable_key::builders::EnableKeyInputBuilder
source · #[non_exhaustive]pub struct EnableKeyInputBuilder { /* private fields */ }
Expand description
A builder for EnableKeyInput
.
Implementations§
source§impl EnableKeyInputBuilder
impl EnableKeyInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Identifies the KMS key to enable.
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 to enable.
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 to enable.
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<EnableKeyInput, BuildError>
pub fn build(self) -> Result<EnableKeyInput, BuildError>
Consumes the builder and constructs a EnableKeyInput
.
source§impl EnableKeyInputBuilder
impl EnableKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EnableKeyOutput, SdkError<EnableKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EnableKeyOutput, SdkError<EnableKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EnableKeyInputBuilder
impl Clone for EnableKeyInputBuilder
source§fn clone(&self) -> EnableKeyInputBuilder
fn clone(&self) -> EnableKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnableKeyInputBuilder
impl Debug for EnableKeyInputBuilder
source§impl Default for EnableKeyInputBuilder
impl Default for EnableKeyInputBuilder
source§fn default() -> EnableKeyInputBuilder
fn default() -> EnableKeyInputBuilder
source§impl PartialEq for EnableKeyInputBuilder
impl PartialEq for EnableKeyInputBuilder
source§fn eq(&self, other: &EnableKeyInputBuilder) -> bool
fn eq(&self, other: &EnableKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.