Interface AliasAttributes

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:09.038Z") @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