Interface DatabaseClusterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DatabaseClusterProps.Jsii$Proxy
Example:
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "ServerlessDatabase") .vpc(vpc) .instanceType(InstanceType.SERVERLESS) .serverlessScalingConfiguration(ServerlessScalingConfiguration.builder() .minCapacity(1) .maxCapacity(5) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDatabaseClusterProps
static final class
An implementation forDatabaseClusterProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseClusterProps.Builder
builder()
(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
(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
(experimental) How many days to retain the backup.(experimental) The list of log types that need to be enabled for exporting to CloudWatch Logs.default RetentionDays
(experimental) The number of days log events are kept in CloudWatch Logs.default IRole
(experimental) The IAM role for the Lambda function associated with the custom resource that sets the retention policy.default IClusterParameterGroup
(experimental) Additional parameters to pass to the database engine.default Boolean
(experimental) Whether to copy tags to the snapshot when a snapshot is created.default String
(experimental) An optional identifier for the cluster.default Boolean
(experimental) Indicates whether the DB cluster should have deletion protection enabled.default EngineVersion
(experimental) What version of the database to start.default Boolean
(experimental) Map AWS Identity and Access Management (IAM) accounts to database accounts.default String
(experimental) Base identifier for instances.default Number
(experimental) Number of Neptune compute instances.(experimental) What type of instance to start for the replicas.default IKey
(experimental) The KMS key for storage encryption.default IParameterGroup
(experimental) The DB parameter group to associate with the instance.default Number
getPort()
(experimental) The port number on which the DB instances in the DB cluster accept connections.default String
(experimental) A daily time range in 24-hours UTC format in which backups preferably execute.default String
(experimental) A weekly time range in which maintenance should preferably execute.default 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.default List<ISecurityGroup>
(experimental) Security group.default ServerlessScalingConfiguration
(experimental) Specify minimum and maximum NCUs capacity for a serverless cluster.default Boolean
(experimental) Whether to enable storage encryption.default ISubnetGroup
(experimental) Existing subnet group for the cluster.getVpc()
(experimental) What subnets to run the Neptune instances in.default SubnetSelection
(experimental) Where to place the instances within the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceType
(experimental) What type of instance to start for the replicas. -
getVpc
(experimental) What subnets to run the Neptune instances in.Must be at least 2 subnets in two different AZs.
-
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: - No role is attached to the cluster.
-
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: - false
-
getBackupRetention
(experimental) How many days to retain the backup.Default: - cdk.Duration.days(1)
-
getCloudwatchLogsExports
(experimental) The list of log types that need to be enabled for exporting to CloudWatch Logs.Default: - no log exports
- See Also:
-
getCloudwatchLogsRetention
(experimental) The number of days log events are kept in CloudWatch Logs.When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to
Infinity
.Default: - logs never expire
-
getCloudwatchLogsRetentionRole
(experimental) The IAM role for the Lambda function associated with the custom resource that sets the retention policy.Default: - a new role is created.
-
getClusterParameterGroup
(experimental) Additional parameters to pass to the database engine.Default: - No parameter group.
-
getCopyTagsToSnapshot
(experimental) Whether to copy tags to the snapshot when a snapshot is created.Default: - false
-
getDbClusterName
(experimental) An optional identifier for the cluster.Default: - A name is automatically generated.
-
getDeletionProtection
(experimental) Indicates whether the DB cluster should have deletion protection enabled.Default: - true if ``removalPolicy`` is RETAIN, false otherwise
-
getEngineVersion
(experimental) What version of the database to start.Default: - The default engine version.
-
getIamAuthentication
(experimental) Map AWS Identity and Access Management (IAM) accounts to database accounts.Default: - `false`
-
getInstanceIdentifierBase
(experimental) Base identifier for instances.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.
-
getInstances
(experimental) Number of Neptune compute instances.Default: 1
-
getKmsKey
(experimental) The KMS key for storage encryption.Default: - default master key.
-
getParameterGroup
(experimental) The DB parameter group to associate with the instance.Default: no parameter group
-
getPort
(experimental) The port number on which the DB instances in the DB cluster accept connections.Default: 8182
-
getPreferredBackupWindow
(experimental) A daily time range in 24-hours UTC format in which backups preferably execute.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
-
getPreferredMaintenanceWindow
(experimental) A weekly time range in which maintenance should preferably execute.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.
-
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.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.
-
getSecurityGroups
(experimental) Security group.Default: a new security group is created.
-
getServerlessScalingConfiguration
@Stability(Experimental) @Nullable default ServerlessScalingConfiguration getServerlessScalingConfiguration()(experimental) Specify minimum and maximum NCUs capacity for a serverless cluster.See https://docs.aws.amazon.com/neptune/latest/userguide/neptune-serverless-capacity-scaling.html
Default: - required if instanceType is db.serverless
-
getStorageEncrypted
(experimental) Whether to enable storage encryption.Default: true
-
getSubnetGroup
(experimental) Existing subnet group for the cluster.Default: - a new subnet group will be created.
-
getVpcSubnets
(experimental) Where to place the instances within the VPC.Default: private subnets
-
builder
- Returns:
- a
DatabaseClusterProps.Builder
ofDatabaseClusterProps
-