| Modifier and Type | Method and Description |
|---|---|
Cluster |
build() |
Cluster.Builder |
clusterName(String clusterName)
(experimental) An optional identifier for the cluster.
|
Cluster.Builder |
clusterType(ClusterType clusterType)
(experimental) Settings for the individual instances that are launched.
|
static Cluster.Builder |
create(software.constructs.Construct scope,
String id) |
Cluster.Builder |
defaultDatabaseName(String defaultDatabaseName)
(experimental) Name of a database which is automatically created inside the cluster.
|
Cluster.Builder |
encrypted(Boolean encrypted)
(experimental) Whether to enable encryption of data at rest in the cluster.
|
Cluster.Builder |
encryptionKey(IKey encryptionKey)
(experimental) The KMS key to use for encryption of data at rest.
|
Cluster.Builder |
loggingBucket(IBucket loggingBucket)
(experimental) Bucket to send logs to.
|
Cluster.Builder |
loggingKeyPrefix(String loggingKeyPrefix)
(experimental) Prefix used for logging.
|
Cluster.Builder |
masterUser(Login masterUser)
(experimental) Username and password for the administrative user.
|
Cluster.Builder |
nodeType(NodeType nodeType)
(experimental) The node type to be provisioned for the cluster.
|
Cluster.Builder |
numberOfNodes(Number numberOfNodes)
(experimental) Number of compute nodes in the cluster.
|
Cluster.Builder |
parameterGroup(IClusterParameterGroup parameterGroup)
(experimental) Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html.
|
Cluster.Builder |
port(Number port)
(experimental) What port to listen on.
|
Cluster.Builder |
preferredMaintenanceWindow(String preferredMaintenanceWindow)
(experimental) A preferred maintenance window day/time range.
|
Cluster.Builder |
publiclyAccessible(Boolean publiclyAccessible)
(experimental) Whether to make cluster publicly accessible.
|
Cluster.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
|
Cluster.Builder |
roles(List<? extends IRole> roles)
(experimental) A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services.
|
Cluster.Builder |
securityGroups(List<? extends ISecurityGroup> securityGroups)
(experimental) Security group.
|
Cluster.Builder |
subnetGroup(IClusterSubnetGroup subnetGroup)
(experimental) A cluster subnet group to use with this cluster.
|
Cluster.Builder |
vpc(IVpc vpc)
(experimental) The VPC to place the cluster in.
|
Cluster.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
(experimental) Where to place the instances within the VPC.
|
@Stability(value=Experimental) public static Cluster.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Cluster.Builder.@Stability(value=Experimental) public Cluster.Builder masterUser(Login masterUser)
masterUser - Username and password for the administrative user. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder vpc(IVpc vpc)
vpc - The VPC to place the cluster in. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder clusterName(String clusterName)
Default: - A name is automatically generated.
clusterName - An optional identifier for the cluster. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder clusterType(ClusterType clusterType)
Default: ClusterType.MULTI_NODE
clusterType - Settings for the individual instances that are launched. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder defaultDatabaseName(String defaultDatabaseName)
Default: - default_db
defaultDatabaseName - Name of a database which is automatically created inside the cluster. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder encrypted(Boolean encrypted)
Default: true
encrypted - Whether to enable encryption of data at rest in the cluster. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder encryptionKey(IKey encryptionKey)
Default: - AWS-managed key, if encryption at rest is enabled
encryptionKey - The KMS key to use for encryption of data at rest. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder loggingBucket(IBucket loggingBucket)
Logging information includes queries and connection attempts, for the specified Amazon Redshift cluster.
Default: - No Logs
loggingBucket - Bucket to send logs to. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder loggingKeyPrefix(String loggingKeyPrefix)
Default: - no prefix
loggingKeyPrefix - Prefix used for logging. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder nodeType(NodeType nodeType)
Default: NodeType.DC2_LARGE
nodeType - The node type to be provisioned for the cluster. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder numberOfNodes(Number numberOfNodes)
Value must be at least 2 and no more than 100.
Default: - 2 if `clusterType` is ClusterType.MULTI_NODE, undefined otherwise
numberOfNodes - Number of compute nodes in the cluster. Only specify this property for multi-node clusters. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder parameterGroup(IClusterParameterGroup parameterGroup)
Default: - No parameter group.
parameterGroup - Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder port(Number port)
Default: - The default for the engine is used.
port - What port to listen on. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
Example: 'Sun:23:45-Mon:00:15'
Default: - 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
preferredMaintenanceWindow - A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). This parameter is required.thishttps://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance@Stability(value=Experimental) public Cluster.Builder publiclyAccessible(Boolean publiclyAccessible)
Default: false
publiclyAccessible - Whether to make cluster publicly accessible. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: RemovalPolicy.RETAIN
removalPolicy - The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder roles(List<? extends IRole> roles)
Specify a maximum of 10 roles.
Default: - No role is attached to the cluster.
roles - A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
Default: - a new security group is created.
securityGroups - Security group. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder subnetGroup(IClusterSubnetGroup subnetGroup)
Default: - a new subnet group will be created.
subnetGroup - A cluster subnet group to use with this cluster. This parameter is required.this@Stability(value=Experimental) public Cluster.Builder vpcSubnets(SubnetSelection vpcSubnets)
Default: - private subnets
vpcSubnets - Where to place the instances within the VPC. This parameter is required.thisCopyright © 2022. All rights reserved.