Interface ServerlessClusterAttributes

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ServerlessClusterAttributes.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:50.151Z") @Stability(Stable) public interface ServerlessClusterAttributes 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.*;
 import software.amazon.awscdk.services.secretsmanager.*;
 Secret secret;
 SecurityGroup securityGroup;
 ServerlessClusterAttributes serverlessClusterAttributes = ServerlessClusterAttributes.builder()
         .clusterIdentifier("clusterIdentifier")
         // the properties below are optional
         .clusterEndpointAddress("clusterEndpointAddress")
         .port(123)
         .readerEndpointAddress("readerEndpointAddress")
         .secret(secret)
         .securityGroups(List.of(securityGroup))
         .build();
 
  • Method Details

    • getClusterIdentifier

      @Stability(Stable) @NotNull String getClusterIdentifier()
      Identifier for the cluster.
    • getClusterEndpointAddress

      @Stability(Stable) @Nullable default String getClusterEndpointAddress()
      Cluster endpoint address.

      Default: - no endpoint address

    • getPort

      @Stability(Stable) @Nullable default Number getPort()
      The database port.

      Default: - none

    • getReaderEndpointAddress

      @Stability(Stable) @Nullable default String getReaderEndpointAddress()
      Reader endpoint address.

      Default: - no reader address

    • getSecret

      @Stability(Stable) @Nullable default ISecret getSecret()
      The secret attached to the database cluster.

      Default: - no secret

    • getSecurityGroups

      @Stability(Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
      The security groups of the database cluster.

      Default: - no security groups

    • builder

      @Stability(Stable) static ServerlessClusterAttributes.Builder builder()
      Returns:
      a ServerlessClusterAttributes.Builder of ServerlessClusterAttributes