Class SecretRotationProps.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class SecretRotationProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SecretRotationProps
An implementation for SecretRotationProps
  • 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(SecretRotationProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the SecretRotationProps.Builder.
  • Method Details

    • getApplication

      public final SecretRotationApplication getApplication()
      Description copied from interface: SecretRotationProps
      The serverless application for the rotation.
      Specified by:
      getApplication in interface SecretRotationProps
    • getSecret

      public final ISecret getSecret()
      Description copied from interface: SecretRotationProps
      The secret to rotate. It 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 SecretRotationProps
      See Also:
    • getTarget

      public final IConnectable getTarget()
      Description copied from interface: SecretRotationProps
      The target service or database.
      Specified by:
      getTarget in interface SecretRotationProps
    • getVpc

      public final IVpc getVpc()
      Description copied from interface: SecretRotationProps
      The VPC where the Lambda rotation function will run.
      Specified by:
      getVpc in interface SecretRotationProps
    • getAutomaticallyAfter

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

      Default: Duration.days(30)

      Specified by:
      getAutomaticallyAfter in interface SecretRotationProps
    • getEndpoint

      public final IInterfaceVpcEndpoint getEndpoint()
      Description copied from interface: SecretRotationProps
      The VPC interface endpoint to use for the Secrets Manager API.

      If you enable private DNS hostnames for your VPC private endpoint (the default), you don't need to specify an endpoint. The standard Secrets Manager DNS hostname the Secrets Manager CLI and SDKs use by default (https://secretsmanager..amazonaws.com) automatically resolves to your VPC endpoint.

      Default: https://secretsmanager..amazonaws.com

      Specified by:
      getEndpoint in interface SecretRotationProps
    • getExcludeCharacters

      public final String getExcludeCharacters()
      Description copied from interface: SecretRotationProps
      Characters which should not appear in the generated password.

      Default: - no additional characters are explicitly excluded

      Specified by:
      getExcludeCharacters in interface SecretRotationProps
    • getMasterSecret

      public final ISecret getMasterSecret()
      Description copied from interface: SecretRotationProps
      The master secret for a multi user rotation scheme.

      Default: - single user rotation scheme

      Specified by:
      getMasterSecret in interface SecretRotationProps
    • getRotateImmediatelyOnUpdate

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

      Default: true

      Specified by:
      getRotateImmediatelyOnUpdate in interface SecretRotationProps
    • getSecurityGroup

      public final ISecurityGroup getSecurityGroup()
      Description copied from interface: SecretRotationProps
      The security group for the Lambda rotation function.

      Default: - a new security group is created

      Specified by:
      getSecurityGroup in interface SecretRotationProps
    • getVpcSubnets

      public final SubnetSelection getVpcSubnets()
      Description copied from interface: SecretRotationProps
      The type of subnets in the VPC where the Lambda rotation function will run.

      Default: - the Vpc default strategy if not specified.

      Specified by:
      getVpcSubnets in interface SecretRotationProps
    • $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