@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:53.578Z") @Stability(value=Experimental) public interface DatabaseClusterProps extends software.amazon.jsii.JsiiSerializable
Example:
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
.vpc(vpc)
.instanceType(InstanceType.R5_LARGE)
.instances(2)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseClusterProps.Builder
A builder for
DatabaseClusterProps |
static class |
DatabaseClusterProps.Jsii$Proxy
An implementation for
DatabaseClusterProps |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseClusterProps.Builder |
builder() |
default List<IRole> |
getAssociatedRoles()
(experimental) A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services.
|
default Boolean |
getAutoMinorVersionUpgrade()
(experimental) If set to true, Neptune will automatically update the engine of the entire cluster to the latest minor version after a stabilization window of 2 to 3 weeks.
|
default Duration |
getBackupRetention()
(experimental) How many days to retain the backup.
|
default IClusterParameterGroup |
getClusterParameterGroup()
(experimental) Additional parameters to pass to the database engine.
|
default String |
getDbClusterName()
(experimental) An optional identifier for the cluster.
|
default Boolean |
getDeletionProtection()
(experimental) Indicates whether the DB cluster should have deletion protection enabled.
|
default EngineVersion |
getEngineVersion()
(experimental) What version of the database to start.
|
default Boolean |
getIamAuthentication()
(experimental) Map AWS Identity and Access Management (IAM) accounts to database accounts.
|
default String |
getInstanceIdentifierBase()
(experimental) Base identifier for instances.
|
default Number |
getInstances()
(experimental) Number of Neptune compute instances.
|
InstanceType |
getInstanceType()
(experimental) What type of instance to start for the replicas.
|
default IKey |
getKmsKey()
(experimental) The KMS key for storage encryption.
|
default IParameterGroup |
getParameterGroup()
(experimental) The DB parameter group to associate with the instance.
|
default Number |
getPort()
(experimental) The port the Neptune cluster will listen on.
|
default String |
getPreferredBackupWindow()
(experimental) A daily time range in 24-hours UTC format in which backups preferably execute.
|
default String |
getPreferredMaintenanceWindow()
(experimental) A weekly time range in which maintenance should preferably execute.
|
default RemovalPolicy |
getRemovalPolicy()
(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.
|
default List<ISecurityGroup> |
getSecurityGroups()
(experimental) Security group.
|
default Boolean |
getStorageEncrypted()
(experimental) Whether to enable storage encryption.
|
default ISubnetGroup |
getSubnetGroup()
(experimental) Existing subnet group for the cluster.
|
IVpc |
getVpc()
(experimental) What subnets to run the Neptune instances in.
|
default SubnetSelection |
getVpcSubnets()
(experimental) Where to place the instances within the VPC.
|
@Stability(value=Experimental) @NotNull InstanceType getInstanceType()
@Stability(value=Experimental) @NotNull IVpc getVpc()
Must be at least 2 subnets in two different AZs.
@Stability(value=Experimental) @Nullable default List<IRole> getAssociatedRoles()
Default: - No role is attached to the cluster.
@Stability(value=Experimental) @Nullable default Boolean getAutoMinorVersionUpgrade()
Default: - false
@Stability(value=Experimental) @Nullable default Duration getBackupRetention()
Default: - cdk.Duration.days(1)
@Stability(value=Experimental) @Nullable default IClusterParameterGroup getClusterParameterGroup()
Default: - No parameter group.
@Stability(value=Experimental) @Nullable default String getDbClusterName()
Default: - A name is automatically generated.
@Stability(value=Experimental) @Nullable default Boolean getDeletionProtection()
Default: - true if ``removalPolicy`` is RETAIN, false otherwise
@Stability(value=Experimental) @Nullable default EngineVersion getEngineVersion()
Default: - The default engine version.
@Stability(value=Experimental) @Nullable default Boolean getIamAuthentication()
Default: - `false`
@Stability(value=Experimental) @Nullable default String getInstanceIdentifierBase()
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.
@Stability(value=Experimental) @Nullable default Number getInstances()
Default: 1
@Stability(value=Experimental) @Nullable default IKey getKmsKey()
Default: - default master key.
@Stability(value=Experimental) @Nullable default IParameterGroup getParameterGroup()
Default: no parameter group
@Stability(value=Experimental) @Nullable default Number getPort()
Default: - The default engine port
@Stability(value=Experimental) @Nullable default String getPreferredBackupWindow()
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
@Stability(value=Experimental) @Nullable default String getPreferredMaintenanceWindow()
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.
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
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.
@Stability(value=Experimental) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: a new security group is created.
@Stability(value=Experimental) @Nullable default Boolean getStorageEncrypted()
Default: true
@Stability(value=Experimental) @Nullable default ISubnetGroup getSubnetGroup()
Default: - a new subnet group will be created.
@Stability(value=Experimental) @Nullable default SubnetSelection getVpcSubnets()
Default: private subnets
@Stability(value=Experimental) static DatabaseClusterProps.Builder builder()
DatabaseClusterProps.Builder of DatabaseClusterPropsCopyright © 2022. All rights reserved.