deleteIntegration method

Future<void> deleteIntegration({
  1. required String httpMethod,
  2. required String resourceId,
  3. required String restApiId,
})

Represents a delete integration.

May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException. May throw ConflictException.

Parameter httpMethod : Required Specifies a delete integration request's HTTP method.

Parameter resourceId : Required Specifies a delete integration request's resource identifier.

Parameter restApiId : Required The string identifier of the associated RestApi.

Implementation

Future<void> deleteIntegration({
  required String httpMethod,
  required String resourceId,
  required String restApiId,
}) async {
  ArgumentError.checkNotNull(httpMethod, 'httpMethod');
  ArgumentError.checkNotNull(resourceId, 'resourceId');
  ArgumentError.checkNotNull(restApiId, 'restApiId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/resources/${Uri.encodeComponent(resourceId)}/methods/${Uri.encodeComponent(httpMethod)}/integration',
    exceptionFnMap: _exceptionFns,
  );
}