Interface KeyLookupOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KeyLookupOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.306Z")
@Stability(Stable)
public interface KeyLookupOptions
extends software.amazon.jsii.JsiiSerializable
Properties for looking up an existing Key.
Example:
IKey myKeyLookup = Key.fromLookup(this, "MyKeyLookup", KeyLookupOptions.builder()
.aliasName("alias/KeyAlias")
.build());
Role role = Role.Builder.create(this, "MyRole")
.assumedBy(new ServicePrincipal("lambda.amazonaws.com"))
.build();
myKeyLookup.grantEncryptDecrypt(role);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKeyLookupOptionsstatic final classAn implementation forKeyLookupOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyLookupOptions.Builderbuilder()The alias name of the Key.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAliasName
The alias name of the Key. -
builder
- Returns:
- a
KeyLookupOptions.BuilderofKeyLookupOptions
-