Interface InstanceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InstanceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.208Z")
@Stability(Stable)
public interface InstanceProps
extends software.amazon.jsii.JsiiSerializable
Instance properties for database instances.
Example:
Vpc vpc; DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database") .engine(DatabaseClusterEngine.AURORA) .instanceProps(InstanceProps.builder().vpc(vpc).build()) .build(); DatabaseProxy proxy = DatabaseProxy.Builder.create(this, "Proxy") .proxyTarget(ProxyTarget.fromCluster(cluster)) .secrets(List.of(cluster.getSecret())) .vpc(vpc) .build(); Role role = Role.Builder.create(this, "DBProxyRole").assumedBy(new AccountPrincipal(this.account)).build(); proxy.grantConnect(role, "admin");
-
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 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 ``performanceInsightRentention`` 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
-
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
-