Class RotationScheduleProps.Jsii$Proxy

All Implemented Interfaces:
RotationScheduleOptions, RotationScheduleProps,
Enclosing interface:

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

    • Jsii$Proxy

      protected Jsii$Proxy( objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      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.

      A value of zero will disable automatic rotation - Duration.days(0).

      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
    • 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
    • equals

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

      public final int hashCode()
      hashCode in class Object