AliasAttributes Struct
Properties of a reference to an existing KMS Alias.
| Source | aws-kms/lib/alias.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kms as kms } from 'aws-cdk-lib';
declare const key: kms.Key;
const aliasAttributes: kms.AliasAttributes = {
aliasName: 'aliasName',
aliasTargetKey: key,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kms as kms
# key: kms.Key
alias_attributes = kms.AliasAttributes(
alias_name="aliasName",
alias_target_key=key
)
java
// 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.*;
Key key;
AliasAttributes aliasAttributes = AliasAttributes.builder()
.aliasName("aliasName")
.aliasTargetKey(key)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.KMS;
Key key;
var aliasAttributes = new AliasAttributes {
AliasName = "aliasName",
AliasTargetKey = key
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var key Key
aliasAttributes := &AliasAttributes{
AliasName: jsii.String("aliasName"),
AliasTargetKey: key,
}
Properties
Specifies the alias name.
This value must begin with alias/ followed by a name (i.e. alias/ExampleAlias)