deleteTestSources method

Future<void> deleteTestSources({
  1. required String serviceArn,
  2. required String testId,
  3. required List<TestSourceInput> testSources,
})

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,
  );
}