Interface DatabaseClusterAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DatabaseClusterAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:31.591Z")
@Stability(Stable)
public interface DatabaseClusterAttributes
extends software.amazon.jsii.JsiiSerializable
Properties that describe an existing cluster instance.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.rds.*;
IClusterEngine clusterEngine;
SecurityGroup securityGroup;
DatabaseClusterAttributes databaseClusterAttributes = DatabaseClusterAttributes.builder()
.clusterIdentifier("clusterIdentifier")
// the properties below are optional
.clusterEndpointAddress("clusterEndpointAddress")
.clusterResourceIdentifier("clusterResourceIdentifier")
.engine(clusterEngine)
.instanceEndpointAddresses(List.of("instanceEndpointAddresses"))
.instanceIdentifiers(List.of("instanceIdentifiers"))
.port(123)
.readerEndpointAddress("readerEndpointAddress")
.securityGroups(List.of(securityGroup))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDatabaseClusterAttributesstatic final classAn implementation forDatabaseClusterAttributes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringCluster endpoint address.Identifier for the cluster.default StringThe immutable identifier for the cluster; for example: cluster-ABCD1234EFGH5678IJKL90MNOP.default IClusterEngineThe engine of the existing Cluster.Endpoint addresses of individual instances.Identifier for the instances.default NumbergetPort()The database port.default StringReader endpoint address.default List<ISecurityGroup>The security groups of the database cluster.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterIdentifier
Identifier for the cluster. -
getClusterEndpointAddress
Cluster endpoint address.Default: - no endpoint address
-
getClusterResourceIdentifier
The immutable identifier for the cluster; for example: cluster-ABCD1234EFGH5678IJKL90MNOP.This AWS Region-unique identifier is used to grant access to the cluster.
Default: none
-
getEngine
The engine of the existing Cluster.Default: - the imported Cluster's engine is unknown
-
getInstanceEndpointAddresses
Endpoint addresses of individual instances.Default: - no instance endpoints
-
getInstanceIdentifiers
Identifier for the instances.Default: - no instance identifiers
-
getPort
The database port.Default: - none
-
getReaderEndpointAddress
Reader endpoint address.Default: - no reader address
-
getSecurityGroups
The security groups of the database cluster.Default: - no security groups
-
builder
- Returns:
- a
DatabaseClusterAttributes.BuilderofDatabaseClusterAttributes
-