Class ServerlessV2ClusterInstanceProps.Jsii$Proxy
- All Implemented Interfaces:
ClusterInstanceOptions
,ServerlessV2ClusterInstanceProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
ServerlessV2ClusterInstanceProps
ServerlessV2ClusterInstanceProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.ServerlessV2ClusterInstanceProps
ServerlessV2ClusterInstanceProps.Builder, ServerlessV2ClusterInstanceProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theServerlessV2ClusterInstanceProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Boolean
Whether to allow upgrade of major version for the DB instance.final Boolean
Whether to enable automatic upgrade of minor version for the DB instance.final CaCertificate
The identifier of the CA certificate for this DB cluster's instances.final Boolean
Whether to enable Performance Insights for the DB instance.final String
The identifier for the database instance.final Boolean
Only used for migrating existing clusters from usinginstanceProps
towriter
andreaders
.final IParameterGroup
The DB parameter group to associate with the instance.The parameters in the DBParameterGroup to create automatically.final IKey
The AWS KMS key for encryption of Performance Insights data.The amount of time, in days, to retain Performance Insights data.final String
A preferred maintenance window day/time range.final Boolean
Indicates whether the DB instance is an internet-facing instance.final Boolean
Only applicable to reader instances.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theServerlessV2ClusterInstanceProps.Builder
.
-
-
Method Details
-
getScaleWithWriter
Description copied from interface:ServerlessV2ClusterInstanceProps
Only applicable to reader instances.If this is true then the instance will be placed in promotion tier 1, otherwise it will be placed in promotion tier 2.
For serverless v2 instances this means:
- true: The serverless v2 reader will scale to match the writer instance (provisioned or serverless)
- false: The serverless v2 reader will scale with the read workfload on the instance
Default: false
- Specified by:
getScaleWithWriter
in interfaceServerlessV2ClusterInstanceProps
-
getAllowMajorVersionUpgrade
Description copied from interface:ClusterInstanceOptions
Whether to allow upgrade of major version for the DB instance.Default: - false
- Specified by:
getAllowMajorVersionUpgrade
in interfaceClusterInstanceOptions
-
getAutoMinorVersionUpgrade
Description copied from interface:ClusterInstanceOptions
Whether to enable automatic upgrade of minor version for the DB instance.Default: - true
- Specified by:
getAutoMinorVersionUpgrade
in interfaceClusterInstanceOptions
-
getCaCertificate
Description copied from interface:ClusterInstanceOptions
The identifier of the CA certificate for this DB cluster's instances.Specifying or updating this property triggers a reboot.
For RDS DB engines:
Default: - RDS will choose a certificate authority
- Specified by:
getCaCertificate
in interfaceClusterInstanceOptions
- See Also:
-
getEnablePerformanceInsights
Description copied from interface:ClusterInstanceOptions
Whether to enable Performance Insights for the DB instance.Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
- Specified by:
getEnablePerformanceInsights
in interfaceClusterInstanceOptions
-
getInstanceIdentifier
Description copied from interface:ClusterInstanceOptions
The identifier for the database instance.Default: - CloudFormation generated identifier
- Specified by:
getInstanceIdentifier
in interfaceClusterInstanceOptions
-
getIsFromLegacyInstanceProps
Description copied from interface:ClusterInstanceOptions
Only used for migrating existing clusters from usinginstanceProps
towriter
andreaders
.Default: false
Example:
// existing cluster Vpc vpc; DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database") .engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder() .version(AuroraMysqlEngineVersion.VER_3_03_0) .build())) .instances(2) .instanceProps(InstanceProps.builder() .instanceType(InstanceType.of(InstanceClass.BURSTABLE3, InstanceSize.SMALL)) .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build()) .vpc(vpc) .build()) .build(); // migration Map<String, Object> instanceProps = Map.of( "instanceType", InstanceType.of(InstanceClass.BURSTABLE3, InstanceSize.SMALL), "isFromLegacyInstanceProps", true); DatabaseCluster myCluster = DatabaseCluster.Builder.create(this, "Database") .engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder() .version(AuroraMysqlEngineVersion.VER_3_03_0) .build())) .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build()) .vpc(vpc) .writer(ClusterInstance.provisioned("Instance1", ProvisionedClusterInstanceProps.builder() .instanceType(instanceProps.getInstanceType()) .isFromLegacyInstanceProps(instanceProps.getIsFromLegacyInstanceProps()) .build())) .readers(List.of(ClusterInstance.provisioned("Instance2", ProvisionedClusterInstanceProps.builder() .instanceType(instanceProps.getInstanceType()) .isFromLegacyInstanceProps(instanceProps.getIsFromLegacyInstanceProps()) .build()))) .build();
- Specified by:
getIsFromLegacyInstanceProps
in interfaceClusterInstanceOptions
-
getParameterGroup
Description copied from interface:ClusterInstanceOptions
The DB parameter group to associate with the instance.This is only needed if you need to configure different parameter groups for each individual instance, otherwise you should not provide this and just use the cluster parameter group
Default: the cluster parameter group is used
- Specified by:
getParameterGroup
in interfaceClusterInstanceOptions
-
getParameters
Description copied from interface:ClusterInstanceOptions
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
- Specified by:
getParameters
in interfaceClusterInstanceOptions
-
getPerformanceInsightEncryptionKey
Description copied from interface:ClusterInstanceOptions
The AWS KMS key for encryption of Performance Insights data.Default: - default master key
- Specified by:
getPerformanceInsightEncryptionKey
in interfaceClusterInstanceOptions
-
getPerformanceInsightRetention
Description copied from interface:ClusterInstanceOptions
The amount of time, in days, to retain Performance Insights data.Default: 7
- Specified by:
getPerformanceInsightRetention
in interfaceClusterInstanceOptions
-
getPreferredMaintenanceWindow
Description copied from interface:ClusterInstanceOptions
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.
- Specified by:
getPreferredMaintenanceWindow
in interfaceClusterInstanceOptions
- See Also:
-
getPubliclyAccessible
Description copied from interface:ClusterInstanceOptions
Indicates whether the DB instance is an internet-facing instance.If not specified, the cluster's vpcSubnets will be used to determine if the instance is internet-facing or not.
Default: - `true` if the cluster's `vpcSubnets` is `subnetType: SubnetType.PUBLIC`, `false` otherwise
- Specified by:
getPubliclyAccessible
in interfaceClusterInstanceOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-