ResilienceHubV2 / Client / put_test_sources
put_test_sources¶
- ResilienceHubV2.Client.put_test_sources(**kwargs)¶
Adds or updates the monitoring sources on a test. The operation is transactional — either every source is written or the call fails and nothing is written.
See also: AWS API Documentation
Request Syntax
response = client.put_test_sources( testId='string', serviceArn='string', testSources=[ { 'successCriteriaAlarm': { 'alarmArn': 'string' }, 'observabilityAlarm': { 'alarmArn': 'string' } }, ] )
- Parameters:
testId (string) –
[REQUIRED]
The identifier of the test to add sources to.
serviceArn (string) –
[REQUIRED]
The ARN of the service the test belongs to.
testSources (list) –
[REQUIRED]
The monitoring sources to add or update.
(dict) –
Identifies a monitoring source to add to or remove from a test. Exactly one member is set.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
successCriteriaAlarm,observabilityAlarm.successCriteriaAlarm (dict) –
A success criteria alarm that determines whether the test passes or fails.
alarmArn (string) – [REQUIRED]
The ARN of the CloudWatch alarm.
observabilityAlarm (dict) –
An observability alarm included for visibility only.
alarmArn (string) – [REQUIRED]
The ARN of the CloudWatch alarm.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
ResilienceHubV2.Client.exceptions.InternalServerExceptionResilienceHubV2.Client.exceptions.ResourceNotFoundExceptionResilienceHubV2.Client.exceptions.ValidationExceptionResilienceHubV2.Client.exceptions.ConflictExceptionResilienceHubV2.Client.exceptions.ServiceQuotaExceededExceptionResilienceHubV2.Client.exceptions.AccessDeniedException