@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:44.615Z") public interface RotationScheduleProps extends RotationScheduleOptions
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.lambda.*; import software.amazon.awscdk.services.secretsmanager.*; import software.amazon.awscdk.core.*; Function function_; HostedRotation hostedRotation; Secret secret; RotationScheduleProps rotationScheduleProps = RotationScheduleProps.builder() .secret(secret) // the properties below are optional .automaticallyAfter(Duration.minutes(30)) .hostedRotation(hostedRotation) .rotationLambda(function_) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
RotationScheduleProps.Builder
A builder for
RotationScheduleProps |
static class |
RotationScheduleProps.Jsii$Proxy
An implementation for
RotationScheduleProps |
Modifier and Type | Method and Description |
---|---|
static RotationScheduleProps.Builder |
builder() |
ISecret |
getSecret()
The secret to rotate.
|
getAutomaticallyAfter, getHostedRotation, getRotationLambda
ISecret getSecret()
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
.
static RotationScheduleProps.Builder builder()
builder
in interface RotationScheduleOptions
RotationScheduleProps.Builder
of RotationScheduleProps