Skip to content
v2.278.0

CfnDatabaseSnapshotProps Struct ​

Properties for defining a CfnDatabaseSnapshot.

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 lightsail } from 'aws-cdk-lib';
const cfnDatabaseSnapshotProps: lightsail.CfnDatabaseSnapshotProps = {
  relationalDatabaseName: 'relationalDatabaseName',
  relationalDatabaseSnapshotName: 'relationalDatabaseSnapshotName',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

cfn_database_snapshot_props = lightsail.CfnDatabaseSnapshotProps(
    relational_database_name="relationalDatabaseName",
    relational_database_snapshot_name="relationalDatabaseSnapshotName",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.lightsail.*;

CfnDatabaseSnapshotProps cfnDatabaseSnapshotProps = CfnDatabaseSnapshotProps.builder()
        .relationalDatabaseName("relationalDatabaseName")
        .relationalDatabaseSnapshotName("relationalDatabaseSnapshotName")

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.Lightsail;

var cfnDatabaseSnapshotProps = new CfnDatabaseSnapshotProps {
    RelationalDatabaseName = "relationalDatabaseName",
    RelationalDatabaseSnapshotName = "relationalDatabaseSnapshotName",

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnDatabaseSnapshotProps := &CfnDatabaseSnapshotProps{
	RelationalDatabaseName: jsii.String("relationalDatabaseName"),
	RelationalDatabaseSnapshotName: jsii.String("relationalDatabaseSnapshotName"),

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

relationalDatabaseNamestringrelational_database_namestrrelationalDatabaseNameStringRelationalDatabaseNamestringRelationalDatabaseName*string required #
The name of the database on which to base your new snapshot.
relationalDatabaseSnapshotNamestringrelational_database_snapshot_namestrrelationalDatabaseSnapshotNameStringRelationalDatabaseSnapshotNamestringRelationalDatabaseSnapshotName*string required #
The name for your new database snapshot.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.