| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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:
DeleteDeployment, deleteDeployment_restApiId - The string identifier of the associated RestApi.
DeleteDeployment, deleteDeployment_deploymentId - The identifier of the Deployment resource to delete.
Request Lenses
deleteDeployment_restApiId :: Lens' DeleteDeployment Text Source #
The string identifier of the associated RestApi.
deleteDeployment_deploymentId :: Lens' DeleteDeployment Text Source #
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.