interface ClusterProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Redshift.ClusterProps |
Java | software.amazon.awscdk.services.redshift.ClusterProps |
Python | aws_cdk.aws_redshift.ClusterProps |
TypeScript (source) | @aws-cdk/aws-redshift ยป ClusterProps |
Properties for a new database cluster.
Example
import * as ec2 from '@aws-cdk/aws-ec2';
const vpc = new ec2.Vpc(this, 'Vpc');
const cluster = new Cluster(this, 'Redshift', {
masterUser: {
masterUsername: 'admin',
},
vpc
});
Properties
Name | Type | Description |
---|---|---|
master | Login | Username and password for the administrative user. |
vpc | IVpc | The VPC to place the cluster in. |
cluster | string | An optional identifier for the cluster. |
cluster | Cluster | Settings for the individual instances that are launched. |
default | string | Name of a database which is automatically created inside the cluster. |
encrypted? | boolean | Whether to enable encryption of data at rest in the cluster. |
encryption | IKey | The KMS key to use for encryption of data at rest. |
logging | IBucket | Bucket to send logs to. |
logging | string | Prefix used for logging. |
node | Node | The node type to be provisioned for the cluster. |
number | number | Number of compute nodes in the cluster. Only specify this property for multi-node clusters. |
parameter | ICluster | Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html. |
port? | number | What port to listen on. |
preferred | string | A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). |
publicly | boolean | Whether to make cluster publicly accessible. |
removal | Removal | The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update. |
roles? | IRole [] | A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services. |
security | ISecurity [] | Security group. |
subnet | ICluster | A cluster subnet group to use with this cluster. |
vpc | Subnet | Where to place the instances within the VPC. |
masterUser
Type:
Login
Username and password for the administrative user.
vpc
Type:
IVpc
The VPC to place the cluster in.
clusterName?
Type:
string
(optional, default: A name is automatically generated.)
An optional identifier for the cluster.
clusterType?
Type:
Cluster
(optional, default: {@link ClusterType.MULTI_NODE})
Settings for the individual instances that are launched.
defaultDatabaseName?
Type:
string
(optional, default: default_db)
Name of a database which is automatically created inside the cluster.
encrypted?
Type:
boolean
(optional, default: true)
Whether to enable encryption of data at rest in the cluster.
encryptionKey?
Type:
IKey
(optional, default: AWS-managed key, if encryption at rest is enabled)
The KMS key to use for encryption of data at rest.
loggingBucket?
Type:
IBucket
(optional, default: No Logs)
Bucket to send logs to.
Logging information includes queries and connection attempts, for the specified Amazon Redshift cluster.
loggingKeyPrefix?
Type:
string
(optional, default: no prefix)
Prefix used for logging.
nodeType?
Type:
Node
(optional, default: {@link NodeType.DC2_LARGE})
The node type to be provisioned for the cluster.
numberOfNodes?
Type:
number
(optional, default: 2 if clusterType
is ClusterType.MULTI_NODE, undefined otherwise)
Number of compute nodes in the cluster. Only specify this property for multi-node clusters.
Value must be at least 2 and no more than 100.
parameterGroup?
Type:
ICluster
(optional, default: No parameter group.)
Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html.
port?
Type:
number
(optional, default: The default for the engine is used.)
What port to listen on.
preferredMaintenanceWindow?
Type:
string
(optional, 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.)
A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC).
Example: 'Sun:23:45-Mon:00:15'
publiclyAccessible?
Type:
boolean
(optional, default: false)
Whether to make cluster publicly accessible.
removalPolicy?
Type:
Removal
(optional, default: RemovalPolicy.RETAIN)
The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
roles?
Type:
IRole
[]
(optional, default: No role is attached to the cluster.)
A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services.
Specify a maximum of 10 roles.
securityGroups?
Type:
ISecurity
[]
(optional, default: a new security group is created.)
Security group.
subnetGroup?
Type:
ICluster
(optional, default: a new subnet group will be created.)
A cluster subnet group to use with this cluster.
vpcSubnets?
Type:
Subnet
(optional, default: private subnets)
Where to place the instances within the VPC.