Interface AliasAttributes

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

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-02-23T02:06:34.332Z") @Stability(Stable) public interface AliasAttributes extends software.amazon.jsii.JsiiSerializable
Properties of a reference to an existing KMS Alias.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.kms.*;
 Key key;
 AliasAttributes aliasAttributes = AliasAttributes.builder()
         .aliasName("aliasName")
         .aliasTargetKey(key)
         .build();
 
  • Method Details

    • getAliasName

      @Stability(Stable) @NotNull String getAliasName()
      Specifies the alias name.

      This value must begin with alias/ followed by a name (i.e. alias/ExampleAlias)

    • getAliasTargetKey

      @Stability(Stable) @NotNull IKey getAliasTargetKey()
      The customer master key (CMK) to which the Alias refers.
    • builder

      @Stability(Stable) static AliasAttributes.Builder builder()
      Returns:
      a AliasAttributes.Builder of AliasAttributes