putTestSources method

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

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.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ValidationException.

Parameter serviceArn : The ARN of the service the test belongs to.

Parameter testId : The identifier of the test to add sources to.

Parameter testSources : The monitoring sources to add or update.

Implementation

Future<void> putTestSources({
  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/put-test-sources',
    exceptionFnMap: _exceptionFns,
  );
}