auto_snapshots
Creates, updates, deletes, gets or lists an auto_snapshots resource.
Overview
| Name | auto_snapshots |
| Type | Resource |
| Id | aws.lightsail.auto_snapshots |
Fields
The following fields are returned by SELECT queries:
- get_auto_snapshots
| Name | Datatype | Description |
|---|---|---|
auto_snapshots | array | An array of objects that describe the automatic snapshots that are available for the specified source instance or disk. |
resource_name | string | The name of the source instance or disk for the automatic snapshots. (pattern: <code>\w[\w-]*\w</code>) |
resource_type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_auto_snapshots | select | region | Returns the available automatic snapshots for an instance or disk. For more information, see the Amazon Lightsail Developer Guide. | |
delete_auto_snapshot | delete | region | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_auto_snapshots
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
- delete_auto_snapshot
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
;