Interface SecretRotationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecretRotationProps.Jsii$Proxy
Example:
Secret myUserSecret;
Secret myMasterSecret;
IConnectable myDatabase;
Vpc myVpc;
SecretRotation.Builder.create(this, "SecretRotation")
.application(SecretRotationApplication.MYSQL_ROTATION_MULTI_USER)
.secret(myUserSecret) // The secret that will be rotated
.masterSecret(myMasterSecret) // The secret used for the rotation
.target(myDatabase)
.vpc(myVpc)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSecretRotationPropsstatic final classAn implementation forSecretRotationProps -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretRotationProps.Builderbuilder()The serverless application for the rotation.default DurationSpecifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.default IInterfaceVpcEndpointThe VPC interface endpoint to use for the Secrets Manager API.default StringCharacters which should not appear in the generated password.default ISecretThe master secret for a multi user rotation scheme.default BooleanSpecifies whether to rotate the secret immediately or wait until the next scheduled rotation window.The secret to rotate.default ISecurityGroupThe security group for the Lambda rotation function.The target service or database.getVpc()The VPC where the Lambda rotation function will run.default SubnetSelectionThe type of subnets in the VPC where the Lambda rotation function will run.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplication
The serverless application for the rotation. -
getSecret
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::SecretTargetAttachmentor anISecretreturned by theattach()method ofSecret.- See Also:
-
getTarget
The target service or database. -
getVpc
The VPC where the Lambda rotation function will run. -
getAutomaticallyAfter
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.Default: Duration.days(30)
-
getEndpoint
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 -
getExcludeCharacters
Characters which should not appear in the generated password.Default: - no additional characters are explicitly excluded
-
getMasterSecret
The master secret for a multi user rotation scheme.Default: - single user rotation scheme
-
getRotateImmediatelyOnUpdate
Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.Default: true
-
getSecurityGroup
The security group for the Lambda rotation function.Default: - a new security group is created
-
getVpcSubnets
The type of subnets in the VPC where the Lambda rotation function will run.Default: - the Vpc default strategy if not specified.
-
builder
- Returns:
- a
SecretRotationProps.BuilderofSecretRotationProps
-