@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:28.096Z") @Stability(value=Stable) public interface SecretRotationProps extends software.amazon.jsii.JsiiSerializable
Example:
Secret mySecret; IConnectable myDatabase; Vpc myVpc; SecretRotation.Builder.create(this, "SecretRotation") .application(SecretRotationApplication.MYSQL_ROTATION_SINGLE_USER) // MySQL single user scheme .secret(mySecret) .target(myDatabase) // a Connectable .vpc(myVpc) // The VPC where the secret rotation application will be deployed .excludeCharacters(" %+:;{}") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
SecretRotationProps.Builder
A builder for
SecretRotationProps |
static class |
SecretRotationProps.Jsii$Proxy
An implementation for
SecretRotationProps |
Modifier and Type | Method and Description |
---|---|
static SecretRotationProps.Builder |
builder() |
SecretRotationApplication |
getApplication()
The serverless application for the rotation.
|
default Duration |
getAutomaticallyAfter()
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
|
default IInterfaceVpcEndpoint |
getEndpoint()
The VPC interface endpoint to use for the Secrets Manager API.
|
default String |
getExcludeCharacters()
Characters which should not appear in the generated password.
|
default ISecret |
getMasterSecret()
The master secret for a multi user rotation scheme.
|
ISecret |
getSecret()
The secret to rotate.
|
default ISecurityGroup |
getSecurityGroup()
The security group for the Lambda rotation function.
|
IConnectable |
getTarget()
The target service or database.
|
IVpc |
getVpc()
The VPC where the Lambda rotation function will run.
|
default SubnetSelection |
getVpcSubnets()
The type of subnets in the VPC where the Lambda rotation function will run.
|
@Stability(value=Stable) @NotNull SecretRotationApplication getApplication()
@Stability(value=Stable) @NotNull ISecret getSecret()
{ "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
.
@Stability(value=Stable) @NotNull IConnectable getTarget()
@Stability(value=Stable) @NotNull IVpc getVpc()
@Stability(value=Stable) @Nullable default Duration getAutomaticallyAfter()
Default: Duration.days(30)
@Stability(value=Stable) @Nullable default IInterfaceVpcEndpoint getEndpoint()
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.
Default: https://secretsmanager.
@Stability(value=Stable) @Nullable default String getExcludeCharacters()
Default: - no additional characters are explicitly excluded
@Stability(value=Stable) @Nullable default ISecret getMasterSecret()
Default: - single user rotation scheme
@Stability(value=Stable) @Nullable default ISecurityGroup getSecurityGroup()
Default: - a new security group is created
@Stability(value=Stable) @Nullable default SubnetSelection getVpcSubnets()
Default: - the Vpc default strategy if not specified.
@Stability(value=Stable) static SecretRotationProps.Builder builder()
SecretRotationProps.Builder
of SecretRotationProps
Copyright © 2023. All rights reserved.