export_snapshot_records
Creates, updates, deletes, gets or lists an export_snapshot_records resource.
Overview
| Name | export_snapshot_records |
| Type | Resource |
| Id | aws.lightsail.export_snapshot_records |
Fields
The following fields are returned by SELECT queries:
- get_export_snapshot_records
| Name | Datatype | Description |
|---|---|---|
name | string | The export snapshot record name. (pattern: <code>\w[\w-]*\w</code>) |
arn | string | The Amazon Resource Name (ARN) of the export snapshot record. (pattern: <code>.\S.</code>) |
created_at | string (date-time) | The date when the export snapshot record was created. |
destination_info | object | A list of objects describing the destination of the export snapshot record. |
location | object | The AWS Region and Availability Zone where the export snapshot record is located. |
resource_type | string | The Lightsail resource type (ExportSnapshotRecord). (ContainerService, Instance, StaticIp, KeyPair, InstanceSnapshot, Domain, PeeredVpc, LoadBalancer, LoadBalancerTlsCertificate, Disk, DiskSnapshot, RelationalDatabase, RelationalDatabaseSnapshot, ExportSnapshotRecord, CloudFormationStackRecord, Alarm, ContactMethod, Distribution, Certificate, Bucket) |
source_info | object | A list of objects describing the source of the export snapshot record. |
state | string | The state of the export snapshot record. (Started, Succeeded, Failed) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_export_snapshot_records | select | region | Returns all export snapshot records created as a result of the export snapshot operation. An export snapshot record can be used to create a new Amazon EC2 instance and its related resources with the CreateCloudFormationStack action. |
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_export_snapshot_records
Returns all export snapshot records created as a result of the export snapshot operation. An export snapshot record can be used to create a new Amazon EC2 instance and its related resources with the CreateCloudFormationStack action.
SELECT
name,
arn,
created_at,
destination_info,
location,
resource_type,
source_info,
state
FROM aws.lightsail.export_snapshot_records
WHERE region = '{{ region }}' -- required
;