delete_method_response

delete_method_response(**kwargs)

Deletes an existing MethodResponse resource.

See also: AWS API Documentation

Request Syntax

response = client.delete_method_response(
    restApiId='string',
    resourceId='string',
    httpMethod='string',
    statusCode='string'
)
Parameters
  • restApiId (string) --

    [REQUIRED]

    The string identifier of the associated RestApi.

  • resourceId (string) --

    [REQUIRED]

    The Resource identifier for the MethodResponse resource.

  • httpMethod (string) --

    [REQUIRED]

    The HTTP verb of the Method resource.

  • statusCode (string) --

    [REQUIRED]

    The status code identifier for the MethodResponse resource.

Returns

None

Exceptions

  • APIGateway.Client.exceptions.UnauthorizedException
  • APIGateway.Client.exceptions.NotFoundException
  • APIGateway.Client.exceptions.TooManyRequestsException
  • APIGateway.Client.exceptions.BadRequestException
  • APIGateway.Client.exceptions.ConflictException