Class AliasProps.Builder
java.lang.Object
software.amazon.awscdk.services.kms.AliasProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AliasProps>
- Enclosing interface:
AliasProps
@Stability(Stable)
public static final class AliasProps.Builder
extends Object
implements software.amazon.jsii.Builder<AliasProps>
A builder for
AliasProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAliasProps.getAliasName()
build()
Builds the configured instance.removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofAliasProps.getRemovalPolicy()
Sets the value ofAliasProps.getTargetKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aliasName
Sets the value ofAliasProps.getAliasName()
- Parameters:
aliasName
- The name of the alias. This parameter is required. 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.- Returns:
this
-
targetKey
Sets the value ofAliasProps.getTargetKey()
- Parameters:
targetKey
- The ID of the key for which you are creating the alias. This parameter is required. Specify the key's globally unique identifier or Amazon Resource Name (ARN). You can't specify another alias.- Returns:
this
-
removalPolicy
Sets the value ofAliasProps.getRemovalPolicy()
- Parameters:
removalPolicy
- Policy to apply when the alias is removed from this stack.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AliasProps>
- Returns:
- a new instance of
AliasProps
- Throws:
NullPointerException
- if any required attribute was not provided
-