@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:40.416Z") public class Cluster extends Resource implements ICluster
Example:
import software.amazon.awscdk.services.ec2.*; Vpc vpc = new Vpc(this, "Vpc"); Cluster cluster = Cluster.Builder.create(this, "Redshift") .masterUser(Login.builder() .masterUsername("admin") .build()) .vpc(vpc) .build();
Modifier and Type | Class and Description |
---|---|
static class |
Cluster.Builder
(experimental) A fluent builder for
Cluster . |
ICluster.Jsii$Default, ICluster.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Cluster(software.amazon.jsii.JsiiObjectRef objRef) |
|
Cluster(software.constructs.Construct scope,
java.lang.String id,
ClusterProps props) |
Modifier and Type | Method and Description |
---|---|
SecretRotation |
addRotationMultiUser(java.lang.String id,
RotationMultiUserOptions options)
(experimental) Adds the multi user rotation to this cluster.
|
SecretRotation |
addRotationSingleUser()
(experimental) Adds the single user rotation of the master password to this cluster.
|
SecretRotation |
addRotationSingleUser(Duration automaticallyAfter)
(experimental) Adds the single user rotation of the master password to this cluster.
|
SecretAttachmentTargetProps |
asSecretAttachmentTarget()
(experimental) Renders the secret attachment target specifications.
|
static ICluster |
fromClusterAttributes(software.constructs.Construct scope,
java.lang.String id,
ClusterAttributes attrs)
(experimental) Import an existing DatabaseCluster from properties.
|
Endpoint |
getClusterEndpoint()
(experimental) The endpoint to use for read/write operations.
|
java.lang.String |
getClusterName()
(experimental) Identifier of the cluster.
|
Connections |
getConnections()
(experimental) Access to the network connections.
|
ISecret |
getSecret()
(experimental) The secret attached to this cluster.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected Cluster(software.amazon.jsii.JsiiObjectRef objRef)
protected Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Cluster(software.constructs.Construct scope, java.lang.String id, ClusterProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static ICluster fromClusterAttributes(software.constructs.Construct scope, java.lang.String id, ClusterAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public SecretRotation addRotationMultiUser(java.lang.String id, RotationMultiUserOptions options)
id
- This parameter is required.options
- This parameter is required.public SecretRotation addRotationSingleUser(Duration automaticallyAfter)
automaticallyAfter
- Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.public SecretRotation addRotationSingleUser()
public SecretAttachmentTargetProps asSecretAttachmentTarget()
asSecretAttachmentTarget
in interface ISecretAttachmentTarget
public Endpoint getClusterEndpoint()
getClusterEndpoint
in interface ICluster
public java.lang.String getClusterName()
getClusterName
in interface ICluster
public Connections getConnections()
getConnections
in interface IConnectable
public ISecret getSecret()