AWS::Lightsail::DatabaseSnapshotResource Type definition for AWS::Lightsail::DatabaseSnapshot
3 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
RelationalDatabaseName | string | RequiredCreate-only |
RelationalDatabaseSnapshotName | string | RequiredCreate-only |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | The Amazon Resource Name (ARN) of the database snapshot. |
CreatedAt | string | The timestamp when the database snapshot was created. |
Engine | string | The software of the database snapshot (for example, MySQL). |
EngineVersion | string | The database engine version for the database snapshot (for example, 5.7.23). |
FromRelationalDatabaseArn | string | The Amazon Resource Name (ARN) of the database from which the database snapshot was created. |
FromRelationalDatabaseBlueprintId | string | The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database. |
FromRelationalDatabaseBundleId | string | The bundle ID of the database from which the database snapshot was created. |
FromRelationalDatabaseName | string | The name of the source database from which the database snapshot was created. |
Location | object | The Region name and Availability Zone where the database snapshot is located. |
Name | string | The name of the database snapshot. |
ResourceType | string | The Lightsail resource type. |
SizeInGb | integer | The size of the disk in GB (for example, 32) for the database snapshot. |
State | string | The state of the database snapshot. |
SupportCode | string | The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::DatabaseSnapshot
Resources:
MyResource:
Type: AWS::Lightsail::DatabaseSnapshot
Properties:
RelationalDatabaseSnapshotName: "my-relationaldatabasesnapshotname"
RelationalDatabaseName: "my-relationaldatabasename"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
lightsail:CreateRelationalDatabaseSnapshotlightsail:GetRelationalDatabaseSnapshotlightsail:TagResourcelightsail:GetRelationalDatabaseSnapshotlightsail:GetRelationalDatabaseSnapshotlightsail:TagResourcelightsail:UntagResourcelightsail:DeleteRelationalDatabaseSnapshotlightsail:GetRelationalDatabaseSnapshotlightsail:GetRelationalDatabaseSnapshotsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterRelationalDatabaseSnapshotNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
RelationalDatabaseSnapshotNameRelationalDatabaseName