deleteTestSources method
Removes monitoring sources from a test. The operation is transactional and idempotent — removing a source that is not attached is a no-op.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter serviceArn :
The ARN of the service the test belongs to.
Parameter testId :
The identifier of the test to remove sources from.
Parameter testSources :
The monitoring sources to remove.
Implementation
Future<void> deleteTestSources({
required String serviceArn,
required String testId,
required List<TestSourceInput> testSources,
}) async {
final $payload = <String, dynamic>{
'serviceArn': serviceArn,
'testId': testId,
'testSources': testSources,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v2/delete-test-sources',
exceptionFnMap: _exceptionFns,
);
}