Skip to content

Api Gateway  >  Operations  >  delete_method

delete_method

Operation

delete_method async

delete_method(input: DeleteMethodInput, plugins: list[Plugin] | None = None) -> DeleteMethodOutput

Deletes an existing Method resource.

Parameters:

Name Type Description Default
input DeleteMethodInput

An instance of DeleteMethodInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteMethodOutput

An instance of DeleteMethodOutput.

Input

DeleteMethodInput dataclass

Request to delete an existing Method resource.

Attributes

http_method class-attribute instance-attribute
http_method: str | None = None

The HTTP verb of the Method resource.

resource_id class-attribute instance-attribute
resource_id: str | None = None

The Resource identifier for the Method resource.

rest_api_id class-attribute instance-attribute
rest_api_id: str | None = None

The string identifier of the associated RestApi.

Output

DeleteMethodOutput dataclass

Dataclass for DeleteMethodOutput structure.