stopDataCollectionByAgentIds method

Future<StopDataCollectionByAgentIdsResponse> stopDataCollectionByAgentIds({
  1. required List<String> agentIds,
})

Instructs the specified agents or connectors to stop collecting data.

May throw AuthorizationErrorException. May throw InvalidParameterException. May throw InvalidParameterValueException. May throw ServerInternalErrorException. May throw HomeRegionNotSetException.

Parameter agentIds : The IDs of the agents or connectors from which to stop collecting data.

Implementation

Future<StopDataCollectionByAgentIdsResponse> stopDataCollectionByAgentIds({
  required List<String> agentIds,
}) async {
  ArgumentError.checkNotNull(agentIds, 'agentIds');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AWSPoseidonService_V2015_11_01.StopDataCollectionByAgentIds'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'agentIds': agentIds,
    },
  );

  return StopDataCollectionByAgentIdsResponse.fromJson(jsonResponse.body);
}