@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:38.369Z") public class DatabaseSecret extends Secret
Example:
DatabaseInstance instance; DatabaseSecret myUserSecret = DatabaseSecret.Builder.create(this, "MyUserSecret") .username("myuser") .secretName("my-user-secret") // optional, defaults to a CloudFormation-generated name .masterSecret(instance.getSecret()) .excludeCharacters("{}[]()'\"/\\") .build(); ISecret myUserSecretAttached = myUserSecret.attach(instance); // Adds DB connections information in the secret instance.addRotationMultiUser("MyUser", RotationMultiUserOptions.builder() // Add rotation using the multi user scheme .secret(myUserSecretAttached).build());
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseSecret.Builder
A fluent builder for
DatabaseSecret . |
ISecret.Jsii$Default, ISecret.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
DatabaseSecret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DatabaseSecret(software.amazon.jsii.JsiiObjectRef objRef) |
|
DatabaseSecret(software.constructs.Construct scope,
java.lang.String id,
DatabaseSecretProps props) |
addReplicaRegion, addReplicaRegion, addRotationSchedule, addTargetAttachment, addToResourcePolicy, attach, denyAccountRootDelete, fromSecretArn, fromSecretAttributes, fromSecretCompleteArn, fromSecretName, fromSecretNameV2, fromSecretPartialArn, getArnForPolicies, getAutoCreatePolicy, getEncryptionKey, getSecretArn, getSecretFullArn, getSecretName, getSecretValue, grantRead, grantRead, grantWrite, secretValueFromJson, validate
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected DatabaseSecret(software.amazon.jsii.JsiiObjectRef objRef)
protected DatabaseSecret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public DatabaseSecret(software.constructs.Construct scope, java.lang.String id, DatabaseSecretProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.