Interface AliasProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AliasProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:08.290Z")
@Stability(Stable)
public interface AliasProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for a KMS Key Alias object.
Example:
// Passing an encrypted replication bucket created in a different stack.
App app = new App();
Stack replicationStack = Stack.Builder.create(app, "ReplicationStack")
.env(Environment.builder()
.region("us-west-1")
.build())
.build();
Key key = new Key(replicationStack, "ReplicationKey");
Alias alias = Alias.Builder.create(replicationStack, "ReplicationAlias")
// aliasName is required
.aliasName(PhysicalName.GENERATE_IF_NEEDED)
.targetKey(key)
.build();
Bucket replicationBucket = Bucket.Builder.create(replicationStack, "ReplicationBucket")
.bucketName(PhysicalName.GENERATE_IF_NEEDED)
.encryptionKey(alias)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAliasPropsstatic final classAn implementation forAliasProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AliasProps.Builderbuilder()The name of the alias.default RemovalPolicyPolicy to apply when the alias is removed from this stack.The ID of the key for which you are creating the alias.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAliasName
The name of the alias.The name must start with alias followed by a forward slash, such as alias/. You can't specify aliases that begin with alias/AWS. These aliases are reserved.
-
getTargetKey
The ID of the key for which you are creating the alias.Specify the key's globally unique identifier or Amazon Resource Name (ARN). You can't specify another alias.
-
getRemovalPolicy
Policy to apply when the alias is removed from this stack.Default: - The alias will be deleted
-
builder
- Returns:
- a
AliasProps.BuilderofAliasProps
-