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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.redshift.ICluster
ICluster.Jsii$Default, ICluster.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCluster(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 IClusterfromClusterAttributes(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, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods 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:
asSecretAttachmentTargetin interfaceISecretAttachmentTarget
-
getClusterEndpoint
(experimental) The endpoint to use for read/write operations.- Specified by:
getClusterEndpointin interfaceICluster
-
getClusterName
(experimental) Identifier of the cluster.- Specified by:
getClusterNamein interfaceICluster
-
getConnections
(experimental) Access to the network connections.- Specified by:
getConnectionsin interfaceIConnectable
-
getSecret
(experimental) The secret attached to this cluster.
-