@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:53.573Z") @Stability(value=Experimental) public class DatabaseCluster extends DatabaseClusterBase implements IDatabaseCluster
Example:
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
.vpc(vpc)
.instanceType(InstanceType.R5_LARGE)
.instances(2)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
DatabaseCluster.Builder
(experimental) A fluent builder for
DatabaseCluster. |
software.amazon.jsii.JsiiObject.InitializationModeIDatabaseCluster.Jsii$Default, IDatabaseCluster.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static Number |
DEFAULT_NUM_INSTANCES
(experimental) The default number of instances in the Neptune cluster if none are specified.
|
| Modifier | Constructor and Description |
|---|---|
|
DatabaseCluster(software.constructs.Construct scope,
String id,
DatabaseClusterProps props) |
protected |
DatabaseCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DatabaseCluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
getClusterEndpoint()
(experimental) The endpoint to use for read/write operations.
|
String |
getClusterIdentifier()
(experimental) Identifier of the cluster.
|
Endpoint |
getClusterReadEndpoint()
(experimental) Endpoint to use for load-balanced read-only operations.
|
String |
getClusterResourceIdentifier()
(experimental) The resource id for the cluster;
|
Connections |
getConnections()
(experimental) The connections object to implement IConnectable.
|
protected Boolean |
getEnableIamAuthentication() |
List<Endpoint> |
getInstanceEndpoints()
(experimental) Endpoints which address each individual instance.
|
List<String> |
getInstanceIdentifiers()
(experimental) Identifiers of the instance.
|
ISubnetGroup |
getSubnetGroup()
(experimental) Subnet group used by the DB.
|
IVpc |
getVpc()
(experimental) The VPC where the DB subnet group is created.
|
SubnetSelection |
getVpcSubnets()
(experimental) The subnets used by the DB subnet group.
|
protected void |
setEnableIamAuthentication(Boolean value) |
fromDatabaseClusterAttributes, grantConnectapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgrantConnectapplyRemovalPolicy, getEnv, getStackgetNode@Stability(value=Experimental) public static final Number DEFAULT_NUM_INSTANCES
protected DatabaseCluster(software.amazon.jsii.JsiiObjectRef objRef)
protected DatabaseCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public DatabaseCluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
DatabaseClusterProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public Endpoint getClusterEndpoint()
getClusterEndpoint in interface IDatabaseClustergetClusterEndpoint in class DatabaseClusterBase@Stability(value=Experimental) @NotNull public String getClusterIdentifier()
getClusterIdentifier in interface IDatabaseClustergetClusterIdentifier in class DatabaseClusterBase@Stability(value=Experimental) @NotNull public Endpoint getClusterReadEndpoint()
getClusterReadEndpoint in interface IDatabaseClustergetClusterReadEndpoint in class DatabaseClusterBase@Stability(value=Experimental) @NotNull public String getClusterResourceIdentifier()
for example: cluster-ABCD1234EFGH5678IJKL90MNOP. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies.
getClusterResourceIdentifier in interface IDatabaseClustergetClusterResourceIdentifier in class DatabaseClusterBase@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectablegetConnections in class DatabaseClusterBase@Stability(value=Experimental) @NotNull public List<Endpoint> getInstanceEndpoints()
@Stability(value=Experimental) @NotNull public List<String> getInstanceIdentifiers()
@Stability(value=Experimental) @NotNull public ISubnetGroup getSubnetGroup()
@Stability(value=Experimental) @NotNull public IVpc getVpc()
@Stability(value=Experimental) @NotNull public SubnetSelection getVpcSubnets()
@Stability(value=Experimental) @Nullable protected Boolean getEnableIamAuthentication()
getEnableIamAuthentication in class DatabaseClusterBase@Stability(value=Experimental)
protected void setEnableIamAuthentication(@Nullable
Boolean value)
setEnableIamAuthentication in class DatabaseClusterBaseCopyright © 2022. All rights reserved.