Class KeyLookupOptions
Properties for looking up an existing Key.
Inheritance
System.Object
KeyLookupOptions
Implements
Namespace: Amazon.CDK.AWS.KMS
Assembly: Amazon.CDK.AWS.KMS.dll
Syntax (csharp)
public class KeyLookupOptions : Object, IKeyLookupOptions
Syntax (vb)
Public Class KeyLookupOptions
Inherits Object
Implements 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
Constructors
KeyLookupOptions() |
Properties
AliasName | The alias name of the Key. |
Constructors
KeyLookupOptions()
public KeyLookupOptions()
Properties
AliasName
The alias name of the Key.
public string AliasName { get; set; }
Property Value
System.String