| 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.ApiGatewayV2.CreateDeployment
Description
Creates a Deployment for an API.
Synopsis
- data CreateDeployment = CreateDeployment' {}
- newCreateDeployment :: Text -> CreateDeployment
- createDeployment_description :: Lens' CreateDeployment (Maybe Text)
- createDeployment_stageName :: Lens' CreateDeployment (Maybe Text)
- createDeployment_apiId :: Lens' CreateDeployment Text
- data CreateDeploymentResponse = CreateDeploymentResponse' {}
- newCreateDeploymentResponse :: Int -> CreateDeploymentResponse
- createDeploymentResponse_autoDeployed :: Lens' CreateDeploymentResponse (Maybe Bool)
- createDeploymentResponse_createdDate :: Lens' CreateDeploymentResponse (Maybe UTCTime)
- createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_deploymentStatus :: Lens' CreateDeploymentResponse (Maybe DeploymentStatus)
- createDeploymentResponse_deploymentStatusMessage :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_description :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int
Creating a Request
data CreateDeployment Source #
Creates a new Deployment resource to represent a deployment.
See: newCreateDeployment smart constructor.
Constructors
| CreateDeployment' | |
Instances
Arguments
| :: Text | |
| -> CreateDeployment |
Create a value of CreateDeployment 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:
CreateDeployment, createDeployment_description - The description for the deployment resource.
CreateDeployment, createDeployment_stageName - The name of the Stage resource for the Deployment resource to create.
CreateDeployment, createDeployment_apiId - The API identifier.
Request Lenses
createDeployment_description :: Lens' CreateDeployment (Maybe Text) Source #
The description for the deployment resource.
createDeployment_stageName :: Lens' CreateDeployment (Maybe Text) Source #
The name of the Stage resource for the Deployment resource to create.
createDeployment_apiId :: Lens' CreateDeployment Text Source #
The API identifier.
Destructuring the Response
data CreateDeploymentResponse Source #
See: newCreateDeploymentResponse smart constructor.
Constructors
| CreateDeploymentResponse' | |
Fields
| |
Instances
newCreateDeploymentResponse Source #
Create a value of CreateDeploymentResponse 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:
CreateDeploymentResponse, createDeploymentResponse_autoDeployed - Specifies whether a deployment was automatically released.
CreateDeploymentResponse, createDeploymentResponse_createdDate - The date and time when the Deployment resource was created.
CreateDeploymentResponse, createDeploymentResponse_deploymentId - The identifier for the deployment.
CreateDeploymentResponse, createDeploymentResponse_deploymentStatus - The status of the deployment: PENDING, FAILED, or SUCCEEDED.
CreateDeploymentResponse, createDeploymentResponse_deploymentStatusMessage - May contain additional feedback on the status of an API deployment.
CreateDeployment, createDeploymentResponse_description - The description for the deployment.
$sel:httpStatus:CreateDeploymentResponse', createDeploymentResponse_httpStatus - The response's http status code.
Response Lenses
createDeploymentResponse_autoDeployed :: Lens' CreateDeploymentResponse (Maybe Bool) Source #
Specifies whether a deployment was automatically released.
createDeploymentResponse_createdDate :: Lens' CreateDeploymentResponse (Maybe UTCTime) Source #
The date and time when the Deployment resource was created.
createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The identifier for the deployment.
createDeploymentResponse_deploymentStatus :: Lens' CreateDeploymentResponse (Maybe DeploymentStatus) Source #
The status of the deployment: PENDING, FAILED, or SUCCEEDED.
createDeploymentResponse_deploymentStatusMessage :: Lens' CreateDeploymentResponse (Maybe Text) Source #
May contain additional feedback on the status of an API deployment.
createDeploymentResponse_description :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The description for the deployment.
createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int Source #
The response's http status code.