Interface KeyLookupOptions

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

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:20.829Z") @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);