delete_resource

APIGateway.Client.delete_resource(**kwargs)

Deletes a Resource resource.

See also: AWS API Documentation

Request Syntax

response = client.delete_resource(
    restApiId='string',
    resourceId='string'
)
Parameters
  • restApiId (string) --

    [REQUIRED]

    The string identifier of the associated RestApi.

  • resourceId (string) --

    [REQUIRED]

    The identifier of the Resource resource.

Returns

None

Exceptions

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