@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:45.875Z")
public interface ClusterProps
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 | Interface and Description |
---|---|
static class |
ClusterProps.Builder
A builder for
ClusterProps |
static class |
ClusterProps.Jsii$Proxy
An implementation for
ClusterProps |
Modifier and Type | Method and Description |
---|---|
static ClusterProps.Builder |
builder() |
default java.lang.String |
getClusterName()
(experimental) An optional identifier for the cluster.
|
default ClusterType |
getClusterType()
(experimental) Settings for the individual instances that are launched.
|
default java.lang.String |
getDefaultDatabaseName()
(experimental) Name of a database which is automatically created inside the cluster.
|
default java.lang.Boolean |
getEncrypted()
(experimental) Whether to enable encryption of data at rest in the cluster.
|
default IKey |
getEncryptionKey()
(experimental) The KMS key to use for encryption of data at rest.
|
default IBucket |
getLoggingBucket()
(experimental) Bucket to send logs to.
|
default java.lang.String |
getLoggingKeyPrefix()
(experimental) Prefix used for logging.
|
Login |
getMasterUser()
(experimental) Username and password for the administrative user.
|
default NodeType |
getNodeType()
(experimental) The node type to be provisioned for the cluster.
|
default java.lang.Number |
getNumberOfNodes()
(experimental) Number of compute nodes in the cluster.
|
default IClusterParameterGroup |
getParameterGroup()
(experimental) Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html.
|
default java.lang.Number |
getPort()
(experimental) What port to listen on.
|
default java.lang.String |
getPreferredMaintenanceWindow()
(experimental) A preferred maintenance window day/time range.
|
default java.lang.Boolean |
getPubliclyAccessible()
(experimental) Whether to make cluster publicly accessible.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
|
default java.util.List<IRole> |
getRoles()
(experimental) A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services.
|
default java.util.List<ISecurityGroup> |
getSecurityGroups()
(experimental) Security group.
|
default IClusterSubnetGroup |
getSubnetGroup()
(experimental) A cluster subnet group to use with this cluster.
|
IVpc |
getVpc()
(experimental) The VPC to place the cluster in.
|
default SubnetSelection |
getVpcSubnets()
(experimental) Where to place the instances within the VPC.
|
Login getMasterUser()
IVpc getVpc()
default java.lang.String getClusterName()
Default: - A name is automatically generated.
default ClusterType getClusterType()
Default: ClusterType.MULTI_NODE
default java.lang.String getDefaultDatabaseName()
Default: - default_db
default java.lang.Boolean getEncrypted()
Default: true
default IKey getEncryptionKey()
Default: - AWS-managed key, if encryption at rest is enabled
default IBucket getLoggingBucket()
Logging information includes queries and connection attempts, for the specified Amazon Redshift cluster.
Default: - No Logs
default java.lang.String getLoggingKeyPrefix()
Default: - no prefix
default NodeType getNodeType()
Default: NodeType.DC2_LARGE
default java.lang.Number getNumberOfNodes()
Value must be at least 2 and no more than 100.
Default: - 2 if `clusterType` is ClusterType.MULTI_NODE, undefined otherwise
default IClusterParameterGroup getParameterGroup()
Default: - No parameter group.
default java.lang.Number getPort()
Default: - The default for the engine is used.
default java.lang.String getPreferredMaintenanceWindow()
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.
default java.lang.Boolean getPubliclyAccessible()
Default: false
default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.RETAIN
default java.util.List<IRole> getRoles()
Specify a maximum of 10 roles.
Default: - No role is attached to the cluster.
default java.util.List<ISecurityGroup> getSecurityGroups()
Default: - a new security group is created.
default IClusterSubnetGroup getSubnetGroup()
Default: - a new subnet group will be created.
default SubnetSelection getVpcSubnets()
Default: - private subnets
static ClusterProps.Builder builder()
ClusterProps.Builder
of ClusterProps