APIGateway.Client.delete_deployment(**kwargs)¶Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.
See also: AWS API Documentation
Request Syntax
response = client.delete_deployment(
restApiId='string',
deploymentId='string'
)
[REQUIRED]
The string identifier of the associated RestApi.
[REQUIRED]
The identifier of the Deployment resource to delete.
None
Exceptions
APIGateway.Client.exceptions.BadRequestExceptionAPIGateway.Client.exceptions.ConflictExceptionAPIGateway.Client.exceptions.LimitExceededExceptionAPIGateway.Client.exceptions.NotFoundExceptionAPIGateway.Client.exceptions.UnauthorizedExceptionAPIGateway.Client.exceptions.TooManyRequestsException