DatabaseInstanceAttributes Struct
Properties that describe an existing instance.
| Source | aws-docdb/lib/instance.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_docdb as docdb } from 'aws-cdk-lib';
const databaseInstanceAttributes: docdb.DatabaseInstanceAttributes = {
instanceEndpointAddress: 'instanceEndpointAddress',
instanceIdentifier: 'instanceIdentifier',
port: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_docdb as docdb
database_instance_attributes = docdb.DatabaseInstanceAttributes(
instance_endpoint_address="instanceEndpointAddress",
instance_identifier="instanceIdentifier",
port=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.docdb.*;
DatabaseInstanceAttributes databaseInstanceAttributes = DatabaseInstanceAttributes.builder()
.instanceEndpointAddress("instanceEndpointAddress")
.instanceIdentifier("instanceIdentifier")
.port(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DocDB;
var databaseInstanceAttributes = new DatabaseInstanceAttributes {
InstanceEndpointAddress = "instanceEndpointAddress",
InstanceIdentifier = "instanceIdentifier",
Port = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
databaseInstanceAttributes := &DatabaseInstanceAttributes{
InstanceEndpointAddress: jsii.String("instanceEndpointAddress"),
InstanceIdentifier: jsii.String("instanceIdentifier"),
Port: jsii.Number(123),
}
Properties
instanceEndpointAddressstringinstance_endpoint_addressstrinstanceEndpointAddressStringInstanceEndpointAddressstringInstanceEndpointAddress*string required #The endpoint address.
instanceIdentifierstringinstance_identifierstrinstanceIdentifierStringInstanceIdentifierstringInstanceIdentifier*string required #The instance identifier.
The database port.