| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.APIGateway.DeleteDeployment
Description
Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.
Synopsis
- data DeleteDeployment = DeleteDeployment' {
- restApiId :: Text
- deploymentId :: Text
- newDeleteDeployment :: Text -> Text -> DeleteDeployment
- deleteDeployment_restApiId :: Lens' DeleteDeployment Text
- deleteDeployment_deploymentId :: Lens' DeleteDeployment Text
- data DeleteDeploymentResponse = DeleteDeploymentResponse' {
- newDeleteDeploymentResponse :: DeleteDeploymentResponse
Creating a Request
data DeleteDeployment Source #
Requests API Gateway to delete a Deployment resource.
See: newDeleteDeployment smart constructor.
Constructors
| DeleteDeployment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteDeployment |
Create a value of DeleteDeployment with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:restApiId:DeleteDeployment', deleteDeployment_restApiId - [Required] The string identifier of the associated RestApi.
$sel:deploymentId:DeleteDeployment', deleteDeployment_deploymentId - [Required] The identifier of the Deployment resource to delete.
Request Lenses
deleteDeployment_restApiId :: Lens' DeleteDeployment Text Source #
- Required
- The string identifier of the associated RestApi.
deleteDeployment_deploymentId :: Lens' DeleteDeployment Text Source #
- Required
- The identifier of the Deployment resource to delete.
Destructuring the Response
data DeleteDeploymentResponse Source #
See: newDeleteDeploymentResponse smart constructor.
Constructors
| DeleteDeploymentResponse' | |
Instances
newDeleteDeploymentResponse :: DeleteDeploymentResponse Source #
Create a value of DeleteDeploymentResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.