@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.051Z") @Stability(value=Stable) public interface RotationScheduleProps extends software.amazon.jsii.JsiiSerializable, 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.*;
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.services.secretsmanager.*;
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@Stability(value=Stable) @NotNull 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.
@Stability(value=Stable) static RotationScheduleProps.Builder builder()
builder in interface RotationScheduleOptionsRotationScheduleProps.Builder of RotationSchedulePropsCopyright © 2022. All rights reserved.