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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forKeyLookupOptions
static final class
An implementation forKeyLookupOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyLookupOptions.Builder
builder()
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.Builder
ofKeyLookupOptions
-