Interface CfnRotationScheduleProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.258Z") @Stability(Stable) public interface CfnRotationScheduleProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnRotationSchedule.

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.secretsmanager.*;
 CfnRotationScheduleProps cfnRotationScheduleProps = CfnRotationScheduleProps.builder()
         .secretId("secretId")
         // the properties below are optional
         .hostedRotationLambda(HostedRotationLambdaProperty.builder()
                 .rotationType("rotationType")
                 // the properties below are optional
                 .excludeCharacters("excludeCharacters")
                 .kmsKeyArn("kmsKeyArn")
                 .masterSecretArn("masterSecretArn")
                 .masterSecretKmsKeyArn("masterSecretKmsKeyArn")
                 .rotationLambdaName("rotationLambdaName")
                 .runtime("runtime")
                 .superuserSecretArn("superuserSecretArn")
                 .superuserSecretKmsKeyArn("superuserSecretKmsKeyArn")
                 .vpcSecurityGroupIds("vpcSecurityGroupIds")
                 .vpcSubnetIds("vpcSubnetIds")
                 .build())
         .rotateImmediatelyOnUpdate(false)
         .rotationLambdaArn("rotationLambdaArn")
         .rotationRules(RotationRulesProperty.builder()
                 .automaticallyAfterDays(123)
                 .duration("duration")
                 .scheduleExpression("scheduleExpression")
                 .build())
         .build();
 
  • Method Details

    • getSecretId

      @Stability(Stable) @NotNull String getSecretId()
      The ARN or name of the secret to rotate.

      To reference a secret also created in this template, use the Ref function with the secret's logical ID.

    • getHostedRotationLambda

      @Stability(Stable) @Nullable default Object getHostedRotationLambda()
      Creates a new Lambda rotation function based on one of the Secrets Manager rotation function templates . To use a rotation function that already exists, specify RotationLambdaARN instead.

      For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .

    • getRotateImmediatelyOnUpdate

      @Stability(Stable) @Nullable default Object getRotateImmediatelyOnUpdate()
      Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.

      The rotation schedule is defined in RotationRules .

      If you don't immediately rotate the secret, Secrets Manager tests the rotation configuration by running the testSecret step of the Lambda rotation function. The test creates an AWSPENDING version of the secret and then removes it.

      If you don't specify this value, then by default, Secrets Manager rotates the secret immediately.

      Rotation is an asynchronous process. For more information, see How rotation works .

    • getRotationLambdaArn

      @Stability(Stable) @Nullable default String getRotationLambdaArn()
      The ARN of an existing Lambda rotation function.

      To specify a rotation function that is also defined in this template, use the Ref function.

      For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .

      To create a new rotation function based on one of the Secrets Manager rotation function templates , specify HostedRotationLambda instead.

    • getRotationRules

      @Stability(Stable) @Nullable default Object getRotationRules()
      A structure that defines the rotation configuration for this secret.
    • builder

      @Stability(Stable) static CfnRotationScheduleProps.Builder builder()
      Returns:
      a CfnRotationScheduleProps.Builder of CfnRotationScheduleProps