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 |
Creates and starts a deployment to deploy an application into a runtime environment.
Synopsis
- data CreateDeployment = CreateDeployment' {}
- newCreateDeployment :: Text -> Natural -> Text -> CreateDeployment
- createDeployment_clientToken :: Lens' CreateDeployment (Maybe Text)
- createDeployment_applicationId :: Lens' CreateDeployment Text
- createDeployment_applicationVersion :: Lens' CreateDeployment Natural
- createDeployment_environmentId :: Lens' CreateDeployment Text
- data CreateDeploymentResponse = CreateDeploymentResponse' {
- httpStatus :: Int
- deploymentId :: Text
- newCreateDeploymentResponse :: Int -> Text -> CreateDeploymentResponse
- createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int
- createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse Text
Creating a Request
data CreateDeployment Source #
See: newCreateDeployment
smart constructor.
CreateDeployment' | |
|
Instances
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:
$sel:clientToken:CreateDeployment'
, createDeployment_clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency
of the request to create a deployment. The service generates the
clientToken when the API call is triggered. The token expires after one
hour, so if you retry the API within this timeframe with the same
clientToken, you will get the same response. The service also handles
deleting the clientToken after it expires.
CreateDeployment
, createDeployment_applicationId
- The application identifier.
CreateDeployment
, createDeployment_applicationVersion
- The version of the application to deploy.
CreateDeployment
, createDeployment_environmentId
- The identifier of the runtime environment where you want to deploy this
application.
Request Lenses
createDeployment_clientToken :: Lens' CreateDeployment (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.
createDeployment_applicationId :: Lens' CreateDeployment Text Source #
The application identifier.
createDeployment_applicationVersion :: Lens' CreateDeployment Natural Source #
The version of the application to deploy.
createDeployment_environmentId :: Lens' CreateDeployment Text Source #
The identifier of the runtime environment where you want to deploy this application.
Destructuring the Response
data CreateDeploymentResponse Source #
See: newCreateDeploymentResponse
smart constructor.
CreateDeploymentResponse' | |
|
Instances
newCreateDeploymentResponse Source #
:: Int | |
-> Text | |
-> CreateDeploymentResponse |
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:
$sel:httpStatus:CreateDeploymentResponse'
, createDeploymentResponse_httpStatus
- The response's http status code.
CreateDeploymentResponse
, createDeploymentResponse_deploymentId
- The unique identifier of the deployment.
Response Lenses
createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int Source #
The response's http status code.
createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse Text Source #
The unique identifier of the deployment.