ResilienceHubV2 / Client / delete_test_sources
delete_test_sources¶
- ResilienceHubV2.Client.delete_test_sources(**kwargs)¶
Removes monitoring sources from a test. The operation is transactional and idempotent — removing a source that is not attached is a no-op.
See also: AWS API Documentation
Request Syntax
response = client.delete_test_sources( testId='string', serviceArn='string', testSources=[ { 'successCriteriaAlarm': { 'alarmArn': 'string' }, 'observabilityAlarm': { 'alarmArn': 'string' } }, ] )
- Parameters:
testId (string) –
[REQUIRED]
The identifier of the test to remove sources from.
serviceArn (string) –
[REQUIRED]
The ARN of the service the test belongs to.
testSources (list) –
[REQUIRED]
The monitoring sources to remove.
(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