@Stability(value=Experimental) public static final class DatabaseCluster.Builder extends Object implements software.amazon.jsii.Builder<DatabaseCluster>
DatabaseCluster.| Modifier and Type | Method and Description |
|---|---|
DatabaseCluster.Builder |
associatedRoles(List<? extends IRole> associatedRoles)
(experimental) A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services.
|
DatabaseCluster.Builder |
backupRetention(Duration backupRetention)
(experimental) How many days to retain the backup.
|
DatabaseCluster |
build() |
DatabaseCluster.Builder |
clusterParameterGroup(IClusterParameterGroup clusterParameterGroup)
(experimental) Additional parameters to pass to the database engine.
|
static DatabaseCluster.Builder |
create(software.constructs.Construct scope,
String id) |
DatabaseCluster.Builder |
dbClusterName(String dbClusterName)
(experimental) An optional identifier for the cluster.
|
DatabaseCluster.Builder |
deletionProtection(Boolean deletionProtection)
(experimental) Indicates whether the DB cluster should have deletion protection enabled.
|
DatabaseCluster.Builder |
engineVersion(EngineVersion engineVersion)
(experimental) What version of the database to start.
|
DatabaseCluster.Builder |
iamAuthentication(Boolean iamAuthentication)
(experimental) Map AWS Identity and Access Management (IAM) accounts to database accounts.
|
DatabaseCluster.Builder |
instanceIdentifierBase(String instanceIdentifierBase)
(experimental) Base identifier for instances.
|
DatabaseCluster.Builder |
instances(Number instances)
(experimental) Number of Neptune compute instances.
|
DatabaseCluster.Builder |
instanceType(InstanceType instanceType)
(experimental) What type of instance to start for the replicas.
|
DatabaseCluster.Builder |
kmsKey(IKey kmsKey)
(experimental) The KMS key for storage encryption.
|
DatabaseCluster.Builder |
parameterGroup(IParameterGroup parameterGroup)
(experimental) The DB parameter group to associate with the instance.
|
DatabaseCluster.Builder |
port(Number port)
(experimental) The port the Neptune cluster will listen on.
|
DatabaseCluster.Builder |
preferredBackupWindow(String preferredBackupWindow)
(experimental) A daily time range in 24-hours UTC format in which backups preferably execute.
|
DatabaseCluster.Builder |
preferredMaintenanceWindow(String preferredMaintenanceWindow)
(experimental) A weekly time range in which maintenance should preferably execute.
|
DatabaseCluster.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) The removal policy to apply when the cluster and its instances are removed or replaced during a stack update, or when the stack is deleted.
|
DatabaseCluster.Builder |
securityGroups(List<? extends ISecurityGroup> securityGroups)
(experimental) Security group.
|
DatabaseCluster.Builder |
storageEncrypted(Boolean storageEncrypted)
(experimental) Whether to enable storage encryption.
|
DatabaseCluster.Builder |
subnetGroup(ISubnetGroup subnetGroup)
(experimental) Existing subnet group for the cluster.
|
DatabaseCluster.Builder |
vpc(IVpc vpc)
(experimental) What subnets to run the Neptune instances in.
|
DatabaseCluster.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
(experimental) Where to place the instances within the VPC.
|
@Stability(value=Experimental) public static DatabaseCluster.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.DatabaseCluster.Builder.@Stability(value=Experimental) public DatabaseCluster.Builder instanceType(InstanceType instanceType)
instanceType - What type of instance to start for the replicas. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder vpc(IVpc vpc)
Must be at least 2 subnets in two different AZs.
vpc - What subnets to run the Neptune instances in. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder associatedRoles(List<? extends IRole> associatedRoles)
Default: - No role is attached to the cluster.
associatedRoles - 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 DatabaseCluster.Builder backupRetention(Duration backupRetention)
Default: - cdk.Duration.days(1)
backupRetention - How many days to retain the backup. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder clusterParameterGroup(IClusterParameterGroup clusterParameterGroup)
Default: - No parameter group.
clusterParameterGroup - Additional parameters to pass to the database engine. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder dbClusterName(String dbClusterName)
Default: - A name is automatically generated.
dbClusterName - An optional identifier for the cluster. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder deletionProtection(Boolean deletionProtection)
Default: - true if ``removalPolicy`` is RETAIN, false otherwise
deletionProtection - Indicates whether the DB cluster should have deletion protection enabled. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder engineVersion(EngineVersion engineVersion)
Default: - The default engine version.
engineVersion - What version of the database to start. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder iamAuthentication(Boolean iamAuthentication)
Default: - `false`
iamAuthentication - Map AWS Identity and Access Management (IAM) accounts to database accounts. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder instanceIdentifierBase(String instanceIdentifierBase)
Every replica is named by appending the replica number to this string, 1-based.
Default: - `dbClusterName` is used with the word "Instance" appended. If `dbClusterName` is not provided, the identifier is automatically generated.
instanceIdentifierBase - Base identifier for instances. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder instances(Number instances)
Default: 1
instances - Number of Neptune compute instances. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder kmsKey(IKey kmsKey)
Default: - default master key.
kmsKey - The KMS key for storage encryption. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder parameterGroup(IParameterGroup parameterGroup)
Default: no parameter group
parameterGroup - The DB parameter group to associate with the instance. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder port(Number port)
Default: - The default engine port
port - The port the Neptune cluster will listen on. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder preferredBackupWindow(String preferredBackupWindow)
Must be at least 30 minutes long.
Example: '01:00-02:00'
Default: - a 30-minute window selected at random from an 8-hour block of time for each AWS Region. To see the time blocks available, see
preferredBackupWindow - A daily time range in 24-hours UTC format in which backups preferably execute. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
Must be at least 30 minutes long.
Example: 'tue:04:17-tue:04:47'
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 weekly time range in which maintenance should preferably execute. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder removalPolicy(RemovalPolicy removalPolicy)
This removal policy also applies to the implicit security group created for the cluster if one is not supplied as a parameter.
Default: - Retain cluster.
removalPolicy - The removal policy to apply when the cluster and its instances are removed or replaced during a stack update, or when the stack is deleted. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.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 DatabaseCluster.Builder storageEncrypted(Boolean storageEncrypted)
Default: true
storageEncrypted - Whether to enable storage encryption. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder subnetGroup(ISubnetGroup subnetGroup)
Default: - a new subnet group will be created.
subnetGroup - Existing subnet group for the cluster. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster.Builder vpcSubnets(SubnetSelection vpcSubnets)
Default: private subnets
vpcSubnets - Where to place the instances within the VPC. This parameter is required.this@Stability(value=Experimental) public DatabaseCluster build()
build in interface software.amazon.jsii.Builder<DatabaseCluster>Copyright © 2022. All rights reserved.