Class DatabaseInstance.Builder
java.lang.Object
software.amazon.awscdk.services.neptune.DatabaseInstance.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseInstance>
- Enclosing class:
- DatabaseInstance
@Stability(Experimental)
public static final class DatabaseInstance.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseInstance>
(experimental) A fluent builder for
DatabaseInstance
.-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) (experimental) The name of the Availability Zone where the DB instance will be located.build()
cluster
(IDatabaseCluster cluster) (experimental) The Neptune database cluster the instance should launch into.static DatabaseInstance.Builder
dbInstanceName
(String dbInstanceName) (experimental) A name for the DB instance.instanceType
(InstanceType instanceType) (experimental) What type of instance to start for the replicas.parameterGroup
(IParameterGroup parameterGroup) (experimental) The DB parameter group to associate with the instance.removalPolicy
(RemovalPolicy removalPolicy) (experimental) The CloudFormation policy to apply when the instance is removed from the stack or replaced during an update.
-
Method Details
-
create
@Stability(Experimental) public static DatabaseInstance.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
DatabaseInstance.Builder
.
-
cluster
(experimental) The Neptune database cluster the instance should launch into.- Parameters:
cluster
- The Neptune database cluster the instance should launch into. This parameter is required.- Returns:
this
-
instanceType
(experimental) What type of instance to start for the replicas.- Parameters:
instanceType
- What type of instance to start for the replicas. This parameter is required.- Returns:
this
-
availabilityZone
(experimental) The name of the Availability Zone where the DB instance will be located.Default: - no preference
- Parameters:
availabilityZone
- The name of the Availability Zone where the DB instance will be located. This parameter is required.- Returns:
this
-
dbInstanceName
(experimental) A name for the DB instance.If you specify a name, AWS CloudFormation converts it to lowercase.
Default: - a CloudFormation generated name
- Parameters:
dbInstanceName
- A name for the DB instance. This parameter is required.- Returns:
this
-
parameterGroup
@Stability(Experimental) public DatabaseInstance.Builder parameterGroup(IParameterGroup parameterGroup) (experimental) The DB parameter group to associate with the instance.Default: no parameter group
- Parameters:
parameterGroup
- The DB parameter group to associate with the instance. This parameter is required.- Returns:
this
-
removalPolicy
(experimental) The CloudFormation policy to apply when the instance is removed from the stack or replaced during an update.Default: RemovalPolicy.Retain
- Parameters:
removalPolicy
- The CloudFormation policy to apply when the instance is removed from the stack or replaced during an update. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DatabaseInstance>
- Returns:
- a newly built instance of
DatabaseInstance
.
-