Interface KeyLookupOptions

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

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-02-23T02:06:34.360Z") @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);