getIntegrationResponses method

Future<GetIntegrationResponsesResponse> getIntegrationResponses({
  1. required String apiId,
  2. required String integrationId,
  3. String? maxResults,
  4. String? nextToken,
})

Gets the IntegrationResponses for an Integration.

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.

Parameter apiId : The API identifier.

Parameter integrationId : The integration ID.

Parameter maxResults : The maximum number of elements to be returned for this resource.

Parameter nextToken : The next page of elements from this collection. Not valid for the last element of the collection.

Implementation

Future<GetIntegrationResponsesResponse> getIntegrationResponses({
  required String apiId,
  required String integrationId,
  String? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(integrationId, 'integrationId');
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/integrations/${Uri.encodeComponent(integrationId)}/integrationresponses',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetIntegrationResponsesResponse.fromJson(response);
}