test_run_sources
Creates, updates, deletes, gets or lists a test_run_sources resource.
Overview
| Name | test_run_sources |
| Type | Resource |
| Id | aws.resiliencehubv2.test_run_sources |
Fields
The following fields are returned by SELECT queries:
- list_test_run_sources
| Name | Datatype | Description |
|---|---|---|
observability_alarm | object | An observability alarm snapshot captured for the test run. |
success_criteria_alarm | object | A success criteria alarm snapshot captured for the test run. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_test_run_sources | select | test_run_id, serviceArn, region | type, maxResults, nextToken | Lists the monitoring source snapshots captured for a test run, optionally filtered by type. |
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) |
serviceArn | string | The ARN of the service the test run belongs to. |
test_run_id | string | The identifier of the test run to list sources for. |
maxResults | integer | |
nextToken | string | |
type | string | Filter sources by type. |
SELECT examples
- list_test_run_sources
Lists the monitoring source snapshots captured for a test run, optionally filtered by type.
SELECT
observability_alarm,
success_criteria_alarm
FROM aws.resiliencehubv2.test_run_sources
WHERE test_run_id = '{{ test_run_id }}' -- required
AND serviceArn = '{{ serviceArn }}' -- required
AND region = '{{ region }}' -- required
AND type = '{{ type }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;