Class CfnAliasPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.kms.CfnAliasPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:00.816Z")
@Stability(Stable)
public class CfnAliasPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::KMS::Alias resource specifies a display name for a KMS key . You can use an alias to identify a KMS key in the AWS console, in the DescribeKey operation, and in cryptographic operations , such as Decrypt and GenerateDataKey .
Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for AWS in the AWS Key Management Service Developer Guide .
Using an alias to refer to a KMS key can help you simplify key management. For example, an alias in your code can be associated with different KMS keys in different AWS Regions . For more information, see Using aliases in the AWS Key Management Service Developer Guide .
When specifying an alias, observe the following rules.
- Each alias is associated with one KMS key, but multiple aliases can be associated with the same KMS key.
- The alias and its associated KMS key must be in the same AWS account and Region.
- The alias name must be unique in the AWS account and Region. However, you can create aliases with the same name in different AWS Regions . For example, you can have an
alias/projectKeyin multiple Regions, each of which is associated with a KMS key in its Region. - Each alias name must begin with
alias/followed by a name, such asalias/exampleKey. The alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). Alias names cannot begin withalias/aws/. That alias name prefix is reserved for AWS managed keys .
Regions
AWS CloudFormation resources are available in all AWS Regions in which AWS and CloudFormation are supported.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.kms.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnAliasPropsMixin cfnAliasPropsMixin = CfnAliasPropsMixin.Builder.create(CfnAliasMixinProps.builder()
.aliasName("aliasName")
.targetKeyId("targetKeyId")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::KMS::Alias.CfnAliasPropsMixin(CfnAliasMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::KMS::Alias.protectedCfnAliasPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAliasPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAliasMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAliasPropsMixin
protected CfnAliasPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAliasPropsMixin
protected CfnAliasPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAliasPropsMixin
@Stability(Stable) public CfnAliasPropsMixin(@NotNull CfnAliasMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::KMS::Alias.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAliasPropsMixin
Create a mixin to apply properties toAWS::KMS::Alias.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-