updateIntegrationResponse method
Represents an update integration response.
May throw BadRequestException.
May throw ConflictException.
May throw LimitExceededException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter httpMethod :
Specifies an update integration response request's HTTP method.
Parameter resourceId :
Specifies an update integration response request's resource identifier.
Parameter restApiId :
The string identifier of the associated RestApi.
Parameter statusCode :
Specifies an update integration response request's status code.
Parameter patchOperations :
For more information about supported patch operations, see Patch
Operations.
Implementation
Future<IntegrationResponse> updateIntegrationResponse({
required String httpMethod,
required String resourceId,
required String restApiId,
required String statusCode,
List<PatchOperation>? patchOperations,
}) async {
final $payload = <String, dynamic>{
if (patchOperations != null) 'patchOperations': patchOperations,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/resources/${Uri.encodeComponent(resourceId)}/methods/${Uri.encodeComponent(httpMethod)}/integration/responses/${Uri.encodeComponent(statusCode)}',
exceptionFnMap: _exceptionFns,
);
return IntegrationResponse.fromJson(response);
}