Class RotationScheduleProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.secretsmanager.RotationScheduleProps.Jsii$Proxy
All Implemented Interfaces:
RotationScheduleOptions, RotationScheduleProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
RotationScheduleProps

@Stability(Stable) @Internal public static final class RotationScheduleProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RotationScheduleProps
An implementation for RotationScheduleProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(RotationScheduleProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the RotationScheduleProps.Builder.
  • Method Details

    • getSecret

      public final ISecret getSecret()
      Description copied from interface: RotationScheduleProps
      The secret to rotate.

      If hosted rotation is used, this must be a JSON string with the following format:

       {
         "engine": <required: database engine>,
         "host": <required: instance host name>,
         "username": <required: username>,
         "password": <required: password>,
         "dbname": <optional: database name>,
         "port": <optional: if not specified, default port will be used>,
         "masterarn": <required for multi user rotation: the arn of the master secret which will be used to create users/change passwords>
       }
       

      This is typically the case for a secret referenced from an AWS::SecretsManager::SecretTargetAttachment or an ISecret returned by the attach() method of Secret.

      Specified by:
      getSecret in interface RotationScheduleProps
    • getAutomaticallyAfter

      public final Duration getAutomaticallyAfter()
      Description copied from interface: RotationScheduleOptions
      Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.

      The minimum value is 4 hours. The maximum value is 1000 days.

      A value of zero (Duration.days(0)) will not create RotationRules.

      Default: Duration.days(30)

      Specified by:
      getAutomaticallyAfter in interface RotationScheduleOptions
    • getHostedRotation

      public final HostedRotation getHostedRotation()
      Description copied from interface: RotationScheduleOptions
      Hosted rotation.

      Default: - either `rotationLambda` or `hostedRotation` must be specified

      Specified by:
      getHostedRotation in interface RotationScheduleOptions
    • getRotateImmediatelyOnUpdate

      public final Boolean getRotateImmediatelyOnUpdate()
      Description copied from interface: RotationScheduleOptions
      Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.

      Default: true

      Specified by:
      getRotateImmediatelyOnUpdate in interface RotationScheduleOptions
    • getRotationLambda

      public final IFunction getRotationLambda()
      Description copied from interface: RotationScheduleOptions
      A Lambda function that can rotate the secret.

      Default: - either `rotationLambda` or `hostedRotation` must be specified

      Specified by:
      getRotationLambda in interface RotationScheduleOptions
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object