Class Cluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.redshift.Cluster
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IConnectable
,ICluster
,ISecretAttachmentTarget
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.814Z")
@Stability(Experimental)
public class Cluster
extends Resource
implements ICluster
(experimental) Create a Redshift cluster a given number of nodes.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.redshift.ICluster
ICluster.Jsii$Default, ICluster.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
Cluster
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Cluster
(software.amazon.jsii.JsiiObjectRef objRef) Cluster
(software.constructs.Construct scope, String id, ClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddRotationMultiUser
(String id, RotationMultiUserOptions options) (experimental) Adds the multi user rotation to this cluster.(experimental) Adds the single user rotation of the master password to this cluster.addRotationSingleUser
(Duration automaticallyAfter) (experimental) Adds the single user rotation of the master password to this cluster.(experimental) Renders the secret attachment target specifications.static ICluster
fromClusterAttributes
(software.constructs.Construct scope, String id, ClusterAttributes attrs) (experimental) Import an existing DatabaseCluster from properties.(experimental) The endpoint to use for read/write operations.(experimental) Identifier of the cluster.(experimental) Access to the network connections.(experimental) The secret attached to this cluster.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Cluster
protected Cluster(software.amazon.jsii.JsiiObjectRef objRef) -
Cluster
protected Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Cluster
@Stability(Experimental) public Cluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClusterProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromClusterAttributes
@Stability(Experimental) @NotNull public static ICluster fromClusterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClusterAttributes attrs) (experimental) Import an existing DatabaseCluster from properties.- Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
addRotationMultiUser
@Stability(Experimental) @NotNull public SecretRotation addRotationMultiUser(@NotNull String id, @NotNull RotationMultiUserOptions options) (experimental) Adds the multi user rotation to this cluster.- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addRotationSingleUser
@Stability(Experimental) @NotNull public SecretRotation addRotationSingleUser(@Nullable Duration automaticallyAfter) (experimental) Adds the single user rotation of the master password to this cluster.- Parameters:
automaticallyAfter
- Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
-
addRotationSingleUser
(experimental) Adds the single user rotation of the master password to this cluster. -
asSecretAttachmentTarget
(experimental) Renders the secret attachment target specifications.- Specified by:
asSecretAttachmentTarget
in interfaceISecretAttachmentTarget
-
getClusterEndpoint
(experimental) The endpoint to use for read/write operations.- Specified by:
getClusterEndpoint
in interfaceICluster
-
getClusterName
(experimental) Identifier of the cluster.- Specified by:
getClusterName
in interfaceICluster
-
getConnections
(experimental) Access to the network connections.- Specified by:
getConnections
in interfaceIConnectable
-
getSecret
(experimental) The secret attached to this cluster.
-