@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.317Z") @Stability(value=Stable) public interface CfnAliasProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kms.*;
CfnAliasProps cfnAliasProps = CfnAliasProps.builder()
.aliasName("aliasName")
.targetKeyId("targetKeyId")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAliasProps.Builder
A builder for
CfnAliasProps |
static class |
CfnAliasProps.Jsii$Proxy
An implementation for
CfnAliasProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnAliasProps.Builder |
builder() |
String |
getAliasName()
Specifies the alias name.
|
String |
getTargetKeyId()
Associates the alias with the specified [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) .
|
@Stability(value=Stable) @NotNull String getAliasName()
If you change the value of a
Replacementproperty, such asAliasName, 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/ . The alias/aws/ prefix is reserved for AWS managed keys .
Pattern : alias/^[a-zA-Z0-9/_-]+$
Minimum : 1
Maximum : 256
@Stability(value=Stable) @NotNull String getTargetKeyId()
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:
1234abcd-12ab-34cd-56ef-1234567890abarn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890abTo get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey .
@Stability(value=Stable) static CfnAliasProps.Builder builder()
CfnAliasProps.Builder of CfnAliasPropsCopyright © 2022. All rights reserved.