Skip to content
v2.278.0

DatabaseSnapshotReference Struct ​

A reference to a DatabaseSnapshot 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 databaseSnapshotReference: interfaces_lightsail.DatabaseSnapshotReference = {
  databaseSnapshotArn: 'databaseSnapshotArn',
  relationalDatabaseSnapshotName: 'relationalDatabaseSnapshotName',
};
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_snapshot_reference = interfaces_lightsail.DatabaseSnapshotReference(
    database_snapshot_arn="databaseSnapshotArn",
    relational_database_snapshot_name="relationalDatabaseSnapshotName"
)
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.*;

DatabaseSnapshotReference databaseSnapshotReference = DatabaseSnapshotReference.builder()
        .databaseSnapshotArn("databaseSnapshotArn")
        .relationalDatabaseSnapshotName("relationalDatabaseSnapshotName")
        .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 databaseSnapshotReference = new DatabaseSnapshotReference {
    DatabaseSnapshotArn = "databaseSnapshotArn",
    RelationalDatabaseSnapshotName = "relationalDatabaseSnapshotName"
};
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"

databaseSnapshotReference := &DatabaseSnapshotReference{
	DatabaseSnapshotArn: jsii.String("databaseSnapshotArn"),
	RelationalDatabaseSnapshotName: jsii.String("relationalDatabaseSnapshotName"),
}

Properties ​

databaseSnapshotArnstringdatabase_snapshot_arnstrdatabaseSnapshotArnStringDatabaseSnapshotArnstringDatabaseSnapshotArn*string required #
The ARN of the DatabaseSnapshot resource.
relationalDatabaseSnapshotNamestringrelational_database_snapshot_namestrrelationalDatabaseSnapshotNameStringRelationalDatabaseSnapshotNamestringRelationalDatabaseSnapshotName*string required #
The RelationalDatabaseSnapshotName of the DatabaseSnapshot resource.