Class CfnAliasPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAliasPropsMixin>
- Enclosing class:
CfnAliasPropsMixin
CfnAliasPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the alias name.build()static CfnAliasPropsMixin.Buildercreate()static CfnAliasPropsMixin.Buildercreate(CfnPropertyMixinOptions options) targetKeyId(String targetKeyId) Associates the alias with the specified customer managed key .targetKeyId(IKeyRef targetKeyId) Associates the alias with the specified customer managed key .targetKeyId(IReplicaKeyRef targetKeyId) Associates the alias with the specified customer managed key .
-
Method Details
-
create
- Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnAliasPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnAliasPropsMixin.Builder.
-
aliasName
Specifies the alias name. This value must begin withalias/followed by a name, such asalias/ExampleAlias.If you change the value of the
AliasNameproperty, the existing alias is deleted and a new alias is created for the specified KMS key. This change can disrupt applications that use the alias. It can also allow or deny access to a KMS key affected by attribute-based access control (ABAC).The alias 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/. Thealias/aws/prefix is reserved for AWS managed keys .- Parameters:
aliasName- Specifies the alias name. This value must begin withalias/followed by a name, such asalias/ExampleAlias. This parameter is required.- Returns:
this- See Also:
-
targetKeyId
Associates the alias with the specified customer managed key . The KMS key must be in the same AWS account and 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 AWS Key Management Service Developer Guide .
Specify the key ID or the 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 .
- Parameters:
targetKeyId- Associates the alias with the specified customer managed key . The KMS key must be in the same AWS account and Region. This parameter is required.- Returns:
this- See Also:
- Key ID:
-
targetKeyId
Associates the alias with the specified customer managed key . The KMS key must be in the same AWS account and 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 AWS Key Management Service Developer Guide .
Specify the key ID or the 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 .
- Parameters:
targetKeyId- Associates the alias with the specified customer managed key . The KMS key must be in the same AWS account and Region. This parameter is required.- Returns:
this- See Also:
- Key ID:
-
targetKeyId
Associates the alias with the specified customer managed key . The KMS key must be in the same AWS account and 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 AWS Key Management Service Developer Guide .
Specify the key ID or the 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 .
- Parameters:
targetKeyId- Associates the alias with the specified customer managed key . The KMS key must be in the same AWS account and Region. This parameter is required.- Returns:
this- See Also:
- Key ID:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAliasPropsMixin>- Returns:
- a newly built instance of
CfnAliasPropsMixin.
-