#[non_exhaustive]pub struct CreateAliasInputBuilder { /* private fields */ }
Expand description
A builder for CreateAliasInput
.
Implementations§
source§impl CreateAliasInputBuilder
impl CreateAliasInputBuilder
sourcepub fn alias_name(self, input: impl Into<String>) -> Self
pub fn alias_name(self, input: impl Into<String>) -> Self
Specifies the alias name. This value must begin with alias/
followed by a name, such as alias/ExampleAlias
.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
The AliasName
value must be string of 1-256 characters. It can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with alias/aws/
. The alias/aws/
prefix is reserved for Amazon Web Services managed keys.
sourcepub fn set_alias_name(self, input: Option<String>) -> Self
pub fn set_alias_name(self, input: Option<String>) -> Self
Specifies the alias name. This value must begin with alias/
followed by a name, such as alias/ExampleAlias
.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
The AliasName
value must be string of 1-256 characters. It can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with alias/aws/
. The alias/aws/
prefix is reserved for Amazon Web Services managed keys.
sourcepub fn get_alias_name(&self) -> &Option<String>
pub fn get_alias_name(&self) -> &Option<String>
Specifies the alias name. This value must begin with alias/
followed by a name, such as alias/ExampleAlias
.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
The AliasName
value must be string of 1-256 characters. It can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). The alias name cannot begin with alias/aws/
. The alias/aws/
prefix is reserved for Amazon Web Services managed keys.
sourcepub fn target_key_id(self, input: impl Into<String>) -> Self
pub fn target_key_id(self, input: impl Into<String>) -> Self
Associates the alias with the specified customer managed key. The KMS key must be in the same Amazon Web Services Region.
A valid key ID is required. If you supply a null or empty string value, this operation returns an error.
For help finding the key ID and ARN, see Finding the Key ID and ARN in the Key Management Service Developer Guide .
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_target_key_id(self, input: Option<String>) -> Self
pub fn set_target_key_id(self, input: Option<String>) -> Self
Associates the alias with the specified customer managed key. The KMS key must be in the same Amazon Web Services Region.
A valid key ID is required. If you supply a null or empty string value, this operation returns an error.
For help finding the key ID and ARN, see Finding the Key ID and ARN in the Key Management Service Developer Guide .
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_target_key_id(&self) -> &Option<String>
pub fn get_target_key_id(&self) -> &Option<String>
Associates the alias with the specified customer managed key. The KMS key must be in the same Amazon Web Services Region.
A valid key ID is required. If you supply a null or empty string value, this operation returns an error.
For help finding the key ID and ARN, see Finding the Key ID and ARN in the Key Management Service Developer Guide .
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<CreateAliasInput, BuildError>
pub fn build(self) -> Result<CreateAliasInput, BuildError>
Consumes the builder and constructs a CreateAliasInput
.
source§impl CreateAliasInputBuilder
impl CreateAliasInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateAliasOutput, SdkError<CreateAliasError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateAliasOutput, SdkError<CreateAliasError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateAliasInputBuilder
impl Clone for CreateAliasInputBuilder
source§fn clone(&self) -> CreateAliasInputBuilder
fn clone(&self) -> CreateAliasInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAliasInputBuilder
impl Debug for CreateAliasInputBuilder
source§impl Default for CreateAliasInputBuilder
impl Default for CreateAliasInputBuilder
source§fn default() -> CreateAliasInputBuilder
fn default() -> CreateAliasInputBuilder
source§impl PartialEq for CreateAliasInputBuilder
impl PartialEq for CreateAliasInputBuilder
source§fn eq(&self, other: &CreateAliasInputBuilder) -> bool
fn eq(&self, other: &CreateAliasInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.