Skip to main content

auto_snapshots

Creates, updates, deletes, gets or lists an auto_snapshots resource.

Overview​

Nameauto_snapshots
TypeResource
Idaws.lightsail.auto_snapshots

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_snapshotsarrayAn array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
resource_namestringThe name of the source instance or disk for the automatic snapshots. (pattern: <code>\w[\w-]*\w</code>)
resource_typestringThe resource type of the automatic snapshot. The possible values are Instance, and Disk. (ContainerService, Instance, StaticIp, KeyPair, InstanceSnapshot, Domain, PeeredVpc, LoadBalancer, LoadBalancerTlsCertificate, Disk, DiskSnapshot, RelationalDatabase, RelationalDatabaseSnapshot, ExportSnapshotRecord, CloudFormationStackRecord, Alarm, ContactMethod, Distribution, Certificate, Bucket)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_auto_snapshotsselectregionReturns the available automatic snapshots for an instance or disk. For more information, see the Amazon Lightsail Developer Guide.
delete_auto_snapshotdeleteregionDeletes an automatic snapshot of an instance or disk. For more information, see the Amazon Lightsail Developer Guide.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Returns the available automatic snapshots for an instance or disk. For more information, see the Amazon Lightsail Developer Guide.

SELECT
auto_snapshots,
resource_name,
resource_type
FROM aws.lightsail.auto_snapshots
WHERE region = '{{ region }}' -- required
;

DELETE examples​

Deletes an automatic snapshot of an instance or disk. For more information, see the Amazon Lightsail Developer Guide.

DELETE FROM aws.lightsail.auto_snapshots
WHERE region = '{{ region }}' --required
;