interface KeyLookupOptions
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.KMS.KeyLookupOptions | 
|  Java | software.amazon.awscdk.services.kms.KeyLookupOptions | 
|  Python | aws_cdk.aws_kms.KeyLookupOptions | 
|  TypeScript (source) | @aws-cdk/aws-kms»KeyLookupOptions | 
Properties for looking up an existing Key.
Example
const myKeyLookup = kms.Key.fromLookup(this, 'MyKeyLookup', {
  aliasName: 'alias/KeyAlias',
});
const role = new iam.Role(this, 'MyRole', {
  assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
});
myKeyLookup.grantEncryptDecrypt(role);
Properties
| Name | Type | Description | 
|---|---|---|
| alias | string | The alias name of the Key. | 
aliasName
Type:
string
The alias name of the Key.
