Interface InstanceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InstanceProps.Jsii$Proxy
Example:
DatabaseCluster cluster = DatabaseCluster.Builder.create(stack, "Database") .engine(DatabaseClusterEngine.AURORA) .instanceProps(InstanceProps.builder() .instanceType(InstanceType.of(InstanceClass.BURSTABLE3, InstanceSize.SMALL)) .vpc(vpc) .build()) .build(); cluster.addRotationSingleUser(); DatabaseCluster clusterWithCustomRotationOptions = DatabaseCluster.Builder.create(stack, "CustomRotationOptions") .engine(DatabaseClusterEngine.AURORA) .instanceProps(InstanceProps.builder() .instanceType(InstanceType.of(InstanceClass.BURSTABLE3, InstanceSize.SMALL)) .vpc(vpc) .build()) .build(); clusterWithCustomRotationOptions.addRotationSingleUser(RotationSingleUserOptions.builder() .automaticallyAfter(Duration.days(7)) .excludeCharacters("!@#$%^&*") .securityGroup(securityGroup) .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PRIVATE_WITH_EGRESS).build()) .endpoint(endpoint) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forInstanceProps
static final class
An implementation forInstanceProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceProps.Builder
builder()
default Boolean
Whether to allow upgrade of major version for the DB instance.default Boolean
Whether to enable automatic upgrade of minor version for the DB instance.default Boolean
Whether to remove automated backups immediately after the DB instance is deleted for the DB instance.default Boolean
Whether to enable Performance Insights for the DB instance.default InstanceType
What type of instance to start for the replicas.default IParameterGroup
The DB parameter group to associate with the instance.The parameters in the DBParameterGroup to create automatically.default IKey
The AWS KMS key for encryption of Performance Insights data.default PerformanceInsightRetention
The amount of time, in days, to retain Performance Insights data.default String
A preferred maintenance window day/time range.default Boolean
Indicates whether the DB instance is an internet-facing instance.default List<ISecurityGroup>
Security group.getVpc()
What subnets to run the RDS instances in.default SubnetSelection
Where to place the instances within the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
What subnets to run the RDS instances in.Must be at least 2 subnets in two different AZs.
-
getAllowMajorVersionUpgrade
Whether to allow upgrade of major version for the DB instance.Default: - false
-
getAutoMinorVersionUpgrade
Whether to enable automatic upgrade of minor version for the DB instance.Default: - true
-
getDeleteAutomatedBackups
Whether to remove automated backups immediately after the DB instance is deleted for the DB instance.Default: - true
-
getEnablePerformanceInsights
Whether to enable Performance Insights for the DB instance.Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
-
getInstanceType
What type of instance to start for the replicas.Default: - t3.medium (or, more precisely, db.t3.medium)
-
getParameterGroup
The DB parameter group to associate with the instance.Default: no parameter group
-
getParameters
The parameters in the DBParameterGroup to create automatically.You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBParameterGroup.
Default: - None
-
getPerformanceInsightEncryptionKey
The AWS KMS key for encryption of Performance Insights data.Default: - default master key
-
getPerformanceInsightRetention
The amount of time, in days, to retain Performance Insights data.Default: 7
-
getPreferredMaintenanceWindow
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'
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.
- See Also:
-
getPubliclyAccessible
Indicates whether the DB instance is an internet-facing instance.Default: - `true` if `vpcSubnets` is `subnetType: SubnetType.PUBLIC`, `false` otherwise
-
getSecurityGroups
Security group.Default: a new security group is created.
-
getVpcSubnets
Where to place the instances within the VPC.Default: - the Vpc default strategy if not specified.
-
builder
- Returns:
- a
InstanceProps.Builder
ofInstanceProps
-