canaries_last_runs
Creates, updates, deletes, gets or lists a canaries_last_runs resource.
Overview
| Name | canaries_last_runs |
| Type | Resource |
| Id | aws.synthetics.canaries_last_runs |
Fields
The following fields are returned by SELECT queries:
- describe_canaries_last_run
| Name | Datatype | Description |
|---|---|---|
canaries_last_run | array | An array that contains the information from the most recent run of each canary. |
next_token | string | A token that indicates that there is more data available. You can use this token in a subsequent DescribeCanariesLastRun operation to retrieve the next set of results. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_canaries_last_run | select | region | Use this operation to see information from the most recent run of each canary that you have created. This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries. |
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
- describe_canaries_last_run
Use this operation to see information from the most recent run of each canary that you have created. This operation supports resource-level authorization using an IAM policy and the Names parameter. If you specify the Names parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response. You are required to use the Names parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see Limiting a user to viewing specific canaries.
SELECT
canaries_last_run,
next_token
FROM aws.synthetics.canaries_last_runs
WHERE region = '{{ region }}' -- required
;