ResilienceHubV2 / Client / list_test_sources
list_test_sources¶
- ResilienceHubV2.Client.list_test_sources(**kwargs)¶
Lists the monitoring sources attached to a test, optionally filtered by type.
See also: AWS API Documentation
Request Syntax
response = client.list_test_sources( testId='string', serviceArn='string', type='SUCCESS_CRITERIA'|'OBSERVABILITY', maxResults=123, nextToken='string' )
- Parameters:
testId (string) –
[REQUIRED]
The identifier of the test to list sources for.
serviceArn (string) –
[REQUIRED]
The ARN of the service the test belongs to.
type (string) – Filter sources by type.
maxResults (integer) – Pagination page size.
nextToken (string) – Pagination token.
- Return type:
dict
- Returns:
Response Syntax
{ 'testSources': [ { 'successCriteriaAlarm': { 'alarmArn': 'string', 'alarmName': 'string', 'region': 'string', 'accountId': 'string', 'createdAt': datetime(2015, 1, 1) }, 'observabilityAlarm': { 'alarmArn': 'string', 'alarmName': 'string', 'region': 'string', 'accountId': 'string', 'createdAt': datetime(2015, 1, 1) } }, ], 'nextToken': 'string' }
Response Structure
(dict) –
testSources (list) –
The list of configured monitoring sources.
(dict) –
A configured monitoring source returned by ListTestSources. Exactly one member is set.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
successCriteriaAlarm,observabilityAlarm. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
successCriteriaAlarm (dict) –
A configured success criteria alarm.
alarmArn (string) –
The ARN of the CloudWatch alarm.
alarmName (string) –
The name of the CloudWatch alarm.
region (string) –
The Region of the CloudWatch alarm.
accountId (string) –
The account ID that owns the CloudWatch alarm.
createdAt (datetime) –
The timestamp when the source was configured.
observabilityAlarm (dict) –
A configured observability alarm.
alarmArn (string) –
The ARN of the CloudWatch alarm.
alarmName (string) –
The name of the CloudWatch alarm.
region (string) –
The Region of the CloudWatch alarm.
accountId (string) –
The account ID that owns the CloudWatch alarm.
createdAt (datetime) –
The timestamp when the source was configured.
nextToken (string) –
Pagination token.
Exceptions
ResilienceHubV2.Client.exceptions.InternalServerExceptionResilienceHubV2.Client.exceptions.ResourceNotFoundExceptionResilienceHubV2.Client.exceptions.ValidationExceptionResilienceHubV2.Client.exceptions.AccessDeniedException