public static final class CfnDBInstance.Builder
extends java.lang.Object
CfnDBInstance
.Modifier and Type | Method and Description |
---|---|
CfnDBInstance.Builder |
autoMinorVersionUpgrade(java.lang.Boolean autoMinorVersionUpgrade)
This parameter does not apply to Amazon DocumentDB.
|
CfnDBInstance.Builder |
autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade)
This parameter does not apply to Amazon DocumentDB.
|
CfnDBInstance.Builder |
availabilityZone(java.lang.String availabilityZone)
The Amazon EC2 Availability Zone that the instance is created in.
|
CfnDBInstance |
build() |
static CfnDBInstance.Builder |
create(Construct scope,
java.lang.String id) |
CfnDBInstance.Builder |
dbClusterIdentifier(java.lang.String dbClusterIdentifier)
The identifier of the cluster that the instance will belong to.
|
CfnDBInstance.Builder |
dbInstanceClass(java.lang.String dbInstanceClass)
The compute and memory capacity of the instance;
|
CfnDBInstance.Builder |
dbInstanceIdentifier(java.lang.String dbInstanceIdentifier)
The instance identifier.
|
CfnDBInstance.Builder |
enablePerformanceInsights(java.lang.Boolean enablePerformanceInsights)
`AWS::DocDB::DBInstance.EnablePerformanceInsights`.
|
CfnDBInstance.Builder |
enablePerformanceInsights(IResolvable enablePerformanceInsights)
`AWS::DocDB::DBInstance.EnablePerformanceInsights`.
|
CfnDBInstance.Builder |
preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
CfnDBInstance.Builder |
tags(java.util.List<? extends CfnTag> tags)
The tags to be assigned to the instance.
|
public static CfnDBInstance.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnDBInstance.Builder
.public CfnDBInstance.Builder dbClusterIdentifier(java.lang.String dbClusterIdentifier)
dbClusterIdentifier
- The identifier of the cluster that the instance will belong to. This parameter is required.this
public CfnDBInstance.Builder dbInstanceClass(java.lang.String dbInstanceClass)
for example, db.m4.large
. If you change the class of an instance there can be some interruption in the cluster's service.
dbInstanceClass
- The compute and memory capacity of the instance;. This parameter is required.this
public CfnDBInstance.Builder autoMinorVersionUpgrade(java.lang.Boolean autoMinorVersionUpgrade)
Amazon DocumentDB does not perform minor version upgrades regardless of the value set.
Default: false
autoMinorVersionUpgrade
- This parameter does not apply to Amazon DocumentDB. This parameter is required.this
public CfnDBInstance.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade)
Amazon DocumentDB does not perform minor version upgrades regardless of the value set.
Default: false
autoMinorVersionUpgrade
- This parameter does not apply to Amazon DocumentDB. This parameter is required.this
public CfnDBInstance.Builder availabilityZone(java.lang.String availabilityZone)
Default: A random, system-chosen Availability Zone in the endpoint's AWS Region .
Example: us-east-1d
availabilityZone
- The Amazon EC2 Availability Zone that the instance is created in. This parameter is required.this
public CfnDBInstance.Builder dbInstanceIdentifier(java.lang.String dbInstanceIdentifier)
Constraints:
Example: mydbinstance
dbInstanceIdentifier
- The instance identifier. This parameter is stored as a lowercase string. This parameter is required.this
public CfnDBInstance.Builder enablePerformanceInsights(java.lang.Boolean enablePerformanceInsights)
enablePerformanceInsights
- `AWS::DocDB::DBInstance.EnablePerformanceInsights`. This parameter is required.this
public CfnDBInstance.Builder enablePerformanceInsights(IResolvable enablePerformanceInsights)
enablePerformanceInsights
- `AWS::DocDB::DBInstance.EnablePerformanceInsights`. This parameter is required.this
public CfnDBInstance.Builder preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 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.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
preferredMaintenanceWindow
- The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC). This parameter is required.this
public CfnDBInstance.Builder tags(java.util.List<? extends CfnTag> tags)
You can assign up to 10 tags to an instance.
tags
- The tags to be assigned to the instance. This parameter is required.this
public CfnDBInstance build()