Interface IKeyLookupOptions
Properties for looking up an existing Key.
Namespace: Amazon.CDK.AWS.KMS
Assembly: Amazon.CDK.AWS.KMS.dll
Syntax (csharp)
public interface IKeyLookupOptions
Syntax (vb)
Public Interface IKeyLookupOptions
Remarks
ExampleMetadata: infused
Examples
var myKeyLookup = Key.FromLookup(this, "MyKeyLookup", new KeyLookupOptions {
AliasName = "alias/KeyAlias"
});
var role = new Role(this, "MyRole", new RoleProps {
AssumedBy = new ServicePrincipal("lambda.amazonaws.com")
});
myKeyLookup.GrantEncryptDecrypt(role);
Synopsis
Properties
AliasName | The alias name of the Key. |
Properties
AliasName
The alias name of the Key.
string AliasName { get; }
Property Value
System.String