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