DatabaseReference Struct
A reference to a Database resource.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as interfaces_lightsail } from 'aws-cdk-lib/interfaces';
const databaseReference: interfaces_lightsail.DatabaseReference = {
databaseArn: 'databaseArn',
relationalDatabaseName: 'relationalDatabaseName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_lightsail as interfaces_lightsail
database_reference = interfaces_lightsail.DatabaseReference(
database_arn="databaseArn",
relational_database_name="relationalDatabaseName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.lightsail.*;
DatabaseReference databaseReference = DatabaseReference.builder()
.databaseArn("databaseArn")
.relationalDatabaseName("relationalDatabaseName")
.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.Interfaces.Lightsail;
var databaseReference = new DatabaseReference {
DatabaseArn = "databaseArn",
RelationalDatabaseName = "relationalDatabaseName"
};
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"
databaseReference := &DatabaseReference{
DatabaseArn: jsii.String("databaseArn"),
RelationalDatabaseName: jsii.String("relationalDatabaseName"),
}
Properties
The ARN of the Database resource.
relationalDatabaseNamestringrelational_database_namestrrelationalDatabaseNameStringRelationalDatabaseNamestringRelationalDatabaseName*stringrequired#The RelationalDatabaseName of the Database resource.