deleteMethod method

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

Deletes an existing Method resource.

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

Parameter httpMethod : The HTTP verb of the Method resource.

Parameter resourceId : The Resource identifier for the Method resource.

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

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