Interface DatabaseInstanceAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DatabaseInstanceAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:48.702Z")
@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)
.instanceResourceId("instanceResourceId")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDatabaseInstanceAttributesstatic final classAn implementation forDatabaseInstanceAttributes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default IInstanceEngineThe engine of the existing database Instance.The endpoint address.The instance identifier.default StringThe AWS Region-unique, immutable identifier for the DB instance.getPort()The database port.The security groups of the instance.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceEndpointAddress
The endpoint address. -
getInstanceIdentifier
The instance identifier. -
getPort
The database port. -
getSecurityGroups
The security groups of the instance. -
getEngine
The engine of the existing database Instance.Default: - the imported Instance's engine is unknown
-
getInstanceResourceId
The AWS Region-unique, immutable identifier for the DB instance.This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is accessed.
- See Also:
-
builder
- Returns:
- a
DatabaseInstanceAttributes.BuilderofDatabaseInstanceAttributes
-