Interface KeyLookupOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KeyLookupOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:17.463Z")
@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.default Boolean
Whether to return a dummy key if the key was not found.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAliasName
The alias name of the Key.Must be in the format
alias/<AliasName>
. -
getReturnDummyKeyOnMissing
Whether to return a dummy key if the key was not found.If it is set to
true
and the key was not found, a dummy key with a key id '1234abcd-12ab-34cd-56ef-1234567890ab' will be returned. The value of the dummy key id can also be referenced using theKey.DEFAULT_DUMMY_KEY_ID
variable, and you can check if the key is a dummy key by using theKey.isLookupDummy()
method.Default: false
-
builder
- Returns:
- a
KeyLookupOptions.Builder
ofKeyLookupOptions
-