Skip to content

Api Gateway  >  Operations  >  delete_resource

delete_resource

Operation

delete_resource async

delete_resource(input: DeleteResourceInput, plugins: list[Plugin] | None = None) -> DeleteResourceOutput

Deletes a Resource resource.

Parameters:

Name Type Description Default
input DeleteResourceInput

An instance of DeleteResourceInput.

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
DeleteResourceOutput

An instance of DeleteResourceOutput.

Input

DeleteResourceInput dataclass

Request to delete a Resource.

Attributes

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

The identifier of the Resource resource.

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

The string identifier of the associated RestApi.

Output

DeleteResourceOutput dataclass

Dataclass for DeleteResourceOutput structure.