Class KeySigningKey.Builder

java.lang.Object
software.amazon.awscdk.services.route53.KeySigningKey.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<KeySigningKey>
Enclosing class:
KeySigningKey

@Stability(Stable) public static final class KeySigningKey.Builder extends Object implements software.amazon.jsii.Builder<KeySigningKey>
A fluent builder for KeySigningKey.
  • Method Details

    • create

      @Stability(Stable) public static KeySigningKey.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of KeySigningKey.Builder.
    • hostedZone

      @Stability(Stable) public KeySigningKey.Builder hostedZone(IHostedZone hostedZone)
      The hosted zone that this key will be used to sign.

      Parameters:
      hostedZone - The hosted zone that this key will be used to sign. This parameter is required.
      Returns:
      this
    • kmsKey

      @Stability(Stable) public KeySigningKey.Builder kmsKey(IKey kmsKey)
      The customer-managed KMS key that that will be used to sign the records.

      The KMS Key must be unique for each KSK within a hosted zone. Additionally, the KMS key must be an asymetric customer-managed key using the ECC_NIST_P256 algorithm.

      Parameters:
      kmsKey - The customer-managed KMS key that that will be used to sign the records. This parameter is required.
      Returns:
      this
      See Also:
    • keySigningKeyName

      @Stability(Stable) public KeySigningKey.Builder keySigningKeyName(String keySigningKeyName)
      The name for the key signing key.

      This name must be unique within a hosted zone.

      Default: an autogenerated name

      Parameters:
      keySigningKeyName - The name for the key signing key. This parameter is required.
      Returns:
      this
    • status

      @Stability(Stable) public KeySigningKey.Builder status(KeySigningKeyStatus status)
      The status of the key signing key.

      Default: ACTIVE

      Parameters:
      status - The status of the key signing key. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public KeySigningKey build()
      Specified by:
      build in interface software.amazon.jsii.Builder<KeySigningKey>
      Returns:
      a newly built instance of KeySigningKey.