@Stability(value=Stable) public static final class DatabaseInstanceProps.Builder extends Object implements software.amazon.jsii.Builder<DatabaseInstanceProps>
DatabaseInstanceProps
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) public DatabaseInstanceProps.Builder cluster(IDatabaseCluster cluster)
DatabaseInstanceProps.getCluster()
cluster
- The DocumentDB database cluster the instance should launch into. This parameter is required.this
@Stability(value=Stable) public DatabaseInstanceProps.Builder instanceType(InstanceType instanceType)
DatabaseInstanceProps.getInstanceType()
instanceType
- The name of the compute and memory capacity classes. This parameter is required.this
@Stability(value=Stable) public DatabaseInstanceProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
DatabaseInstanceProps.getAutoMinorVersionUpgrade()
autoMinorVersionUpgrade
- Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.this
@Stability(value=Stable) public DatabaseInstanceProps.Builder availabilityZone(String availabilityZone)
DatabaseInstanceProps.getAvailabilityZone()
availabilityZone
- The name of the Availability Zone where the DB instance will be located.this
@Stability(value=Stable) public DatabaseInstanceProps.Builder dbInstanceName(String dbInstanceName)
DatabaseInstanceProps.getDbInstanceName()
dbInstanceName
- A name for the DB instance.
If you specify a name, AWS CloudFormation
converts it to lowercase.this
@Stability(value=Stable) public DatabaseInstanceProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
DatabaseInstanceProps.getPreferredMaintenanceWindow()
preferredMaintenanceWindow
- The weekly time range (in UTC) during which system maintenance can occur.
Format: ddd:hh24:mi-ddd:hh24:mi
Constraint: Minimum 30-minute windowthis
@Stability(value=Stable) public DatabaseInstanceProps.Builder removalPolicy(RemovalPolicy removalPolicy)
DatabaseInstanceProps.getRemovalPolicy()
removalPolicy
- The CloudFormation policy to apply when the instance is removed from the stack or replaced during an update.this
@Stability(value=Stable) public DatabaseInstanceProps build()
build
in interface software.amazon.jsii.Builder<DatabaseInstanceProps>
DatabaseInstanceProps
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.