Skip to content

Api Gateway  >  Operations  >  delete_deployment

delete_deployment

Operation

delete_deployment async

delete_deployment(input: DeleteDeploymentInput, plugins: list[Plugin] | None = None) -> DeleteDeploymentOutput

Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.

Parameters:

Name Type Description Default
input DeleteDeploymentInput

An instance of DeleteDeploymentInput.

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
DeleteDeploymentOutput

An instance of DeleteDeploymentOutput.

Input

DeleteDeploymentInput dataclass

Requests API Gateway to delete a Deployment resource.

Attributes

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

The identifier of the Deployment resource to delete.

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

The string identifier of the associated RestApi.

Output

DeleteDeploymentOutput dataclass

Dataclass for DeleteDeploymentOutput structure.