Class ClusterInstanceOptions.Jsii$Proxy
- All Implemented Interfaces:
ClusterInstanceOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
ClusterInstanceOptions
ClusterInstanceOptions-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.ClusterInstanceOptions
ClusterInstanceOptions.Builder, ClusterInstanceOptions.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(ClusterInstanceOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theClusterInstanceOptions.Builder.protectedJsii$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.JsonNodefinal booleanfinal BooleanWhether to allow upgrade of major version for the DB instance.final BooleanSpecifies whether changes to the DB instance and any pending modifications are applied immediately, regardless of thepreferredMaintenanceWindowsetting.final BooleanWhether to enable automatic upgrade of minor version for the DB instance.final StringThe Availability Zone (AZ) where the database will be created.final CaCertificateThe identifier of the CA certificate for this DB cluster's instances.final BooleanWhether to enable Performance Insights for the DB instance.final StringThe identifier for the database instance.final BooleanOnly used for migrating existing clusters from usinginstancePropstowriterandreaders.final IParameterGroupThe DB parameter group to associate with the instance.The parameters in the DBParameterGroup to create automatically.final IKeyThe AWS KMS key for encryption of Performance Insights data.The amount of time, in days, to retain Performance Insights data.final StringA preferred maintenance window day/time range.final BooleanIndicates whether the DB instance is an internet-facing instance.final inthashCode()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 theClusterInstanceOptions.Builder.
-
-
Method Details
-
getAllowMajorVersionUpgrade
Description copied from interface:ClusterInstanceOptionsWhether to allow upgrade of major version for the DB instance.Default: - false
- Specified by:
getAllowMajorVersionUpgradein interfaceClusterInstanceOptions
-
getApplyImmediately
Description copied from interface:ClusterInstanceOptionsSpecifies whether changes to the DB instance and any pending modifications are applied immediately, regardless of thepreferredMaintenanceWindowsetting.If set to
false, changes are applied during the next maintenance window.Until RDS applies the changes, the DB instance remains in a drift state. As a result, the configuration doesn't fully reflect the requested modifications and temporarily diverges from the intended state.
This property also determines whether the DB instance reboots when a static parameter is modified in the associated DB parameter group.
Default: - Changes will be applied immediately
- Specified by:
getApplyImmediatelyin interfaceClusterInstanceOptions- See Also:
-
getAutoMinorVersionUpgrade
Description copied from interface:ClusterInstanceOptionsWhether to enable automatic upgrade of minor version for the DB instance.Default: - true
- Specified by:
getAutoMinorVersionUpgradein interfaceClusterInstanceOptions
-
getAvailabilityZone
Description copied from interface:ClusterInstanceOptionsThe Availability Zone (AZ) where the database will be created.For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.
Default: - A random, system-chosen Availability Zone in the endpointʼs AWS Region.
- Specified by:
getAvailabilityZonein interfaceClusterInstanceOptions- See Also:
-
getCaCertificate
Description copied from interface:ClusterInstanceOptionsThe 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:
getCaCertificatein interfaceClusterInstanceOptions- See Also:
-
getEnablePerformanceInsights
Description copied from interface:ClusterInstanceOptionsWhether to enable Performance Insights for the DB instance.Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
- Specified by:
getEnablePerformanceInsightsin interfaceClusterInstanceOptions
-
getInstanceIdentifier
Description copied from interface:ClusterInstanceOptionsThe identifier for the database instance.Default: - CloudFormation generated identifier
- Specified by:
getInstanceIdentifierin interfaceClusterInstanceOptions
-
getIsFromLegacyInstanceProps
Description copied from interface:ClusterInstanceOptionsOnly used for migrating existing clusters from usinginstancePropstowriterandreaders.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:
getIsFromLegacyInstancePropsin interfaceClusterInstanceOptions
-
getParameterGroup
Description copied from interface:ClusterInstanceOptionsThe 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:
getParameterGroupin interfaceClusterInstanceOptions
-
getParameters
Description copied from interface:ClusterInstanceOptionsThe 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:
getParametersin interfaceClusterInstanceOptions
-
getPerformanceInsightEncryptionKey
Description copied from interface:ClusterInstanceOptionsThe AWS KMS key for encryption of Performance Insights data.Default: - default master key
- Specified by:
getPerformanceInsightEncryptionKeyin interfaceClusterInstanceOptions
-
getPerformanceInsightRetention
Description copied from interface:ClusterInstanceOptionsThe amount of time, in days, to retain Performance Insights data.Default: 7
- Specified by:
getPerformanceInsightRetentionin interfaceClusterInstanceOptions
-
getPreferredMaintenanceWindow
Description copied from interface:ClusterInstanceOptionsA 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:
getPreferredMaintenanceWindowin interfaceClusterInstanceOptions- See Also:
-
getPubliclyAccessible
Description copied from interface:ClusterInstanceOptionsIndicates 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:
getPubliclyAccessiblein interfaceClusterInstanceOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-