@Stability(value=Experimental) public static final class InstanceProps.Builder extends Object implements software.amazon.jsii.Builder<InstanceProps>
InstanceProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
InstanceProps |
build()
Builds the configured instance.
|
InstanceProps.Builder |
instanceType(InstanceType instanceType)
Sets the value of
InstanceProps.getInstanceType() |
InstanceProps.Builder |
parameterGroup(IClusterParameterGroup parameterGroup)
Sets the value of
InstanceProps.getParameterGroup() |
InstanceProps.Builder |
securityGroup(ISecurityGroup securityGroup)
Sets the value of
InstanceProps.getSecurityGroup() |
InstanceProps.Builder |
vpc(IVpc vpc)
Sets the value of
InstanceProps.getVpc() |
InstanceProps.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
Sets the value of
InstanceProps.getVpcSubnets() |
@Stability(value=Experimental) public InstanceProps.Builder instanceType(InstanceType instanceType)
InstanceProps.getInstanceType()instanceType - What type of instance to start for the replicas. This parameter is required.this@Stability(value=Experimental) public InstanceProps.Builder vpc(IVpc vpc)
InstanceProps.getVpc()vpc - What subnets to run the DocumentDB instances in. This parameter is required.
Must be at least 2 subnets in two different AZs.this@Stability(value=Experimental) public InstanceProps.Builder parameterGroup(IClusterParameterGroup parameterGroup)
InstanceProps.getParameterGroup()parameterGroup - The DB parameter group to associate with the instance.this@Stability(value=Experimental) public InstanceProps.Builder securityGroup(ISecurityGroup securityGroup)
InstanceProps.getSecurityGroup()securityGroup - Security group.this@Stability(value=Experimental) public InstanceProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
InstanceProps.getVpcSubnets()vpcSubnets - Where to place the instances within the VPC.this@Stability(value=Experimental) public InstanceProps build()
build in interface software.amazon.jsii.Builder<InstanceProps>InstancePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.