@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.436Z") @Stability(value=Stable) public interface DatabaseClusterAttributes extends software.amazon.jsii.JsiiSerializable
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")
.engine(clusterEngine)
.instanceEndpointAddresses(List.of("instanceEndpointAddresses"))
.instanceIdentifiers(List.of("instanceIdentifiers"))
.port(123)
.readerEndpointAddress("readerEndpointAddress")
.securityGroups(List.of(securityGroup))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseClusterAttributes.Builder
A builder for
DatabaseClusterAttributes |
static class |
DatabaseClusterAttributes.Jsii$Proxy
An implementation for
DatabaseClusterAttributes |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseClusterAttributes.Builder |
builder() |
default String |
getClusterEndpointAddress()
Cluster endpoint address.
|
String |
getClusterIdentifier()
Identifier for the cluster.
|
default IClusterEngine |
getEngine()
The engine of the existing Cluster.
|
default List<String> |
getInstanceEndpointAddresses()
Endpoint addresses of individual instances.
|
default List<String> |
getInstanceIdentifiers()
Identifier for the instances.
|
default Number |
getPort()
The database port.
|
default String |
getReaderEndpointAddress()
Reader endpoint address.
|
default List<ISecurityGroup> |
getSecurityGroups()
The security groups of the database cluster.
|
@Stability(value=Stable) @NotNull String getClusterIdentifier()
@Stability(value=Stable) @Nullable default String getClusterEndpointAddress()
Default: - no endpoint address
@Stability(value=Stable) @Nullable default IClusterEngine getEngine()
Default: - the imported Cluster's engine is unknown
@Stability(value=Stable) @Nullable default List<String> getInstanceEndpointAddresses()
Default: - no instance endpoints
@Stability(value=Stable) @Nullable default List<String> getInstanceIdentifiers()
Default: - no instance identifiers
@Stability(value=Stable) @Nullable default Number getPort()
Default: - none
@Stability(value=Stable) @Nullable default String getReaderEndpointAddress()
Default: - no reader address
@Stability(value=Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: - no security groups
@Stability(value=Stable) static DatabaseClusterAttributes.Builder builder()
DatabaseClusterAttributes.Builder of DatabaseClusterAttributesCopyright © 2022. All rights reserved.