@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:36.289Z") @Stability(value=Experimental) public interface InstanceProps extends software.amazon.jsii.JsiiSerializable
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");
| Modifier and Type | Interface and Description |
|---|---|
static class |
InstanceProps.Builder
A builder for
InstanceProps |
static class |
InstanceProps.Jsii$Proxy
An implementation for
InstanceProps |
| Modifier and Type | Method and Description |
|---|---|
static InstanceProps.Builder |
builder() |
default Boolean |
getAllowMajorVersionUpgrade()
(experimental) Whether to allow upgrade of major version for the DB instance.
|
default Boolean |
getAutoMinorVersionUpgrade()
(experimental) Whether to enable automatic upgrade of minor version for the DB instance.
|
default Boolean |
getDeleteAutomatedBackups()
(experimental) Whether to remove automated backups immediately after the DB instance is deleted for the DB instance.
|
default Boolean |
getEnablePerformanceInsights()
(experimental) Whether to enable Performance Insights for the DB instance.
|
default InstanceType |
getInstanceType()
(experimental) What type of instance to start for the replicas.
|
default IParameterGroup |
getParameterGroup()
(experimental) The DB parameter group to associate with the instance.
|
default Map<String,String> |
getParameters()
(experimental) The parameters in the DBParameterGroup to create automatically.
|
default IKey |
getPerformanceInsightEncryptionKey()
(experimental) The AWS KMS key for encryption of Performance Insights data.
|
default PerformanceInsightRetention |
getPerformanceInsightRetention()
(experimental) The amount of time, in days, to retain Performance Insights data.
|
default Boolean |
getPubliclyAccessible()
(experimental) Indicates whether the DB instance is an internet-facing instance.
|
default List<ISecurityGroup> |
getSecurityGroups()
(experimental) Security group.
|
IVpc |
getVpc()
(experimental) What subnets to run the RDS instances in.
|
default SubnetSelection |
getVpcSubnets()
(experimental) Where to place the instances within the VPC.
|
@Stability(value=Experimental) @NotNull IVpc getVpc()
Must be at least 2 subnets in two different AZs.
@Stability(value=Experimental) @Nullable default Boolean getAllowMajorVersionUpgrade()
Default: - false
@Stability(value=Experimental) @Nullable default Boolean getAutoMinorVersionUpgrade()
Default: - true
@Stability(value=Experimental) @Nullable default Boolean getDeleteAutomatedBackups()
Default: - true
@Stability(value=Experimental) @Nullable default Boolean getEnablePerformanceInsights()
Default: - false, unless ``performanceInsightRentention`` or ``performanceInsightEncryptionKey`` is set.
@Stability(value=Experimental) @Nullable default InstanceType getInstanceType()
Default: - t3.medium (or, more precisely, db.t3.medium)
@Stability(value=Experimental) @Nullable default IParameterGroup getParameterGroup()
Default: no parameter group
@Stability(value=Experimental) @Nullable default Map<String,String> getParameters()
You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBParameterGroup.
Default: - None
@Stability(value=Experimental) @Nullable default IKey getPerformanceInsightEncryptionKey()
Default: - default master key
@Stability(value=Experimental) @Nullable default PerformanceInsightRetention getPerformanceInsightRetention()
Default: 7
@Stability(value=Experimental) @Nullable default Boolean getPubliclyAccessible()
Default: - `true` if `vpcSubnets` is `subnetType: SubnetType.PUBLIC`, `false` otherwise
@Stability(value=Experimental) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: a new security group is created.
@Stability(value=Experimental) @Nullable default SubnetSelection getVpcSubnets()
Default: - the Vpc default strategy if not specified.
@Stability(value=Experimental) static InstanceProps.Builder builder()
InstanceProps.Builder of InstancePropsCopyright © 2022. All rights reserved.