Skip to main content

test_run_sources

Creates, updates, deletes, gets or lists a test_run_sources resource.

Overview

Nametest_run_sources
TypeResource
Idaws.resiliencehubv2.test_run_sources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
observability_alarmobjectAn observability alarm snapshot captured for the test run.
success_criteria_alarmobjectA success criteria alarm snapshot captured for the test run.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_test_run_sourcesselecttest_run_id, serviceArn, regiontype, maxResults, nextTokenLists 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
serviceArnstringThe ARN of the service the test run belongs to.
test_run_idstringThe identifier of the test run to list sources for.
maxResultsinteger
nextTokenstring
typestringFilter sources by type.

SELECT examples

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 }}'
;