Skip to content

delete_stage

Operation

delete_stage

delete_stage(request: DeleteStageInput | DeleteStageInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteStageInputDict]) -> DeleteStageOutput

Deletes a Stage resource.

Parameters:

Name Type Description Default
request DeleteStageInput | DeleteStageInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteStageInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteStageOutput

An instance of DeleteStageOutput.

delete_stage async

delete_stage(request: DeleteStageInput | DeleteStageInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteStageInputDict]) -> DeleteStageOutput

Deletes a Stage resource.

Parameters:

Name Type Description Default
request DeleteStageInput | DeleteStageInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteStageInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteStageOutput

An instance of DeleteStageOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeleteStageInputDict

Bases: TypedDict

Dictionary form of DeleteStageInput.

Attributes

rest_api_id instance-attribute
rest_api_id: Required[str]

The string identifier of the associated RestApi.

stage_name instance-attribute
stage_name: Required[str]

The name of the Stage resource to delete.

DeleteStageInput dataclass

Bases: _SerdeShape

Requests API Gateway to delete a Stage resource.

Attributes

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

The string identifier of the associated RestApi.

stage_name class-attribute instance-attribute
stage_name: str | None = ...

The name of the Stage resource to delete.

Output

DeleteStageOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteStageOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.