@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.316Z") @Stability(value=Stable) public interface AliasProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AliasProps.Builder
A builder for
AliasProps |
static class |
AliasProps.Jsii$Proxy
An implementation for
AliasProps |
| Modifier and Type | Method and Description |
|---|---|
static AliasProps.Builder |
builder() |
String |
getAliasName()
The name of the alias.
|
default RemovalPolicy |
getRemovalPolicy()
Policy to apply when the alias is removed from this stack.
|
IKey |
getTargetKey()
The ID of the key for which you are creating the alias.
|
@Stability(value=Stable) @NotNull String getAliasName()
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.
@Stability(value=Stable) @NotNull IKey getTargetKey()
Specify the key's globally unique identifier or Amazon Resource Name (ARN). You can't specify another alias.
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: - The alias will be deleted
@Stability(value=Stable) static AliasProps.Builder builder()
AliasProps.Builder of AliasPropsCopyright © 2022. All rights reserved.