# DatabaseSnapshotReference

A reference to a DatabaseSnapshot resource.

- Source: Generated at build time
- Type last changed: v2.238.0 · 9 Feb 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `databaseSnapshotArn`: string (required) — The ARN of the DatabaseSnapshot resource.

- `relationalDatabaseSnapshotName`: string (required) — The RelationalDatabaseSnapshotName of the DatabaseSnapshot resource.
