Interface DatabaseInstanceAttributes

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.120Z") @Stability(Stable) public interface DatabaseInstanceAttributes extends software.amazon.jsii.JsiiSerializable
Properties that describe an existing 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.*;
 IInstanceEngine instanceEngine;
 SecurityGroup securityGroup;
 DatabaseInstanceAttributes databaseInstanceAttributes = DatabaseInstanceAttributes.builder()
         .instanceEndpointAddress("instanceEndpointAddress")
         .instanceIdentifier("instanceIdentifier")
         .port(123)
         .securityGroups(List.of(securityGroup))
         // the properties below are optional
         .engine(instanceEngine)
         .build();
 
  • Method Details

    • getInstanceEndpointAddress

      @Stability(Stable) @NotNull String getInstanceEndpointAddress()
      The endpoint address.
    • getInstanceIdentifier

      @Stability(Stable) @NotNull String getInstanceIdentifier()
      The instance identifier.
    • getPort

      @Stability(Stable) @NotNull Number getPort()
      The database port.
    • getSecurityGroups

      @Stability(Stable) @NotNull List<ISecurityGroup> getSecurityGroups()
      The security groups of the instance.
    • getEngine

      @Stability(Stable) @Nullable default IInstanceEngine getEngine()
      The engine of the existing database Instance.

      Default: - the imported Instance's engine is unknown

    • builder

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