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();
 
  • 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

      @Stability(Experimental) @NotNull public SecretRotation addRotationSingleUser()
      (experimental) Adds the single user rotation of the master password to this cluster.
    • asSecretAttachmentTarget

      @Stability(Experimental) @NotNull public SecretAttachmentTargetProps asSecretAttachmentTarget()
      (experimental) Renders the secret attachment target specifications.
      Specified by:
      asSecretAttachmentTarget in interface ISecretAttachmentTarget
    • getClusterEndpoint

      @Stability(Experimental) @NotNull public Endpoint getClusterEndpoint()
      (experimental) The endpoint to use for read/write operations.
      Specified by:
      getClusterEndpoint in interface ICluster
    • getClusterName

      @Stability(Experimental) @NotNull public String getClusterName()
      (experimental) Identifier of the cluster.
      Specified by:
      getClusterName in interface ICluster
    • getConnections

      @Stability(Experimental) @NotNull public Connections getConnections()
      (experimental) Access to the network connections.
      Specified by:
      getConnections in interface IConnectable
    • getSecret

      @Stability(Experimental) @Nullable public ISecret getSecret()
      (experimental) The secret attached to this cluster.