public static final class RotationScheduleProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RotationScheduleProps
RotationScheduleProps
RotationScheduleProps.Builder, RotationScheduleProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
Duration |
getAutomaticallyAfter()
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
|
HostedRotation |
getHostedRotation()
Hosted rotation.
|
IFunction |
getRotationLambda()
A Lambda function that can rotate the secret.
|
ISecret |
getSecret()
The secret to rotate.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final ISecret getSecret()
RotationScheduleProps
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
.
getSecret
in interface RotationScheduleProps
public final Duration getAutomaticallyAfter()
RotationScheduleOptions
A value of zero will disable automatic rotation - Duration.days(0)
.
Default: Duration.days(30)
getAutomaticallyAfter
in interface RotationScheduleOptions
public final HostedRotation getHostedRotation()
RotationScheduleOptions
Default: - either `rotationLambda` or `hostedRotation` must be specified
getHostedRotation
in interface RotationScheduleOptions
public final IFunction getRotationLambda()
RotationScheduleOptions
Default: - either `rotationLambda` or `hostedRotation` must be specified
getRotationLambda
in interface RotationScheduleOptions
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()