Interface KeyLookupOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
KeyLookupOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-02T15:58:28.583Z") @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);