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. ''CreateDeployment'' requests are idempotent with respect to the ''X-Amzn-Client-Token'' token and the request parameters.
Synopsis
- data CreateDeployment = CreateDeployment' {}
- newCreateDeployment :: Text -> DeploymentType -> CreateDeployment
- createDeployment_deploymentId :: Lens' CreateDeployment (Maybe Text)
- createDeployment_amznClientToken :: Lens' CreateDeployment (Maybe Text)
- createDeployment_groupVersionId :: Lens' CreateDeployment (Maybe Text)
- createDeployment_groupId :: Lens' CreateDeployment Text
- createDeployment_deploymentType :: Lens' CreateDeployment DeploymentType
- data CreateDeploymentResponse = CreateDeploymentResponse' {
- deploymentId :: Maybe Text
- deploymentArn :: Maybe Text
- httpStatus :: Int
- newCreateDeploymentResponse :: Int -> CreateDeploymentResponse
- createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_deploymentArn :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int
Creating a Request
data CreateDeployment Source #
See: newCreateDeployment
smart constructor.
CreateDeployment' | |
|
Instances
:: Text | |
-> DeploymentType | |
-> 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:
$sel:deploymentId:CreateDeployment'
, createDeployment_deploymentId
- The ID of the deployment if you wish to redeploy a previous deployment.
$sel:amznClientToken:CreateDeployment'
, createDeployment_amznClientToken
- A client token used to correlate requests and responses.
$sel:groupVersionId:CreateDeployment'
, createDeployment_groupVersionId
- The ID of the group version to be deployed.
$sel:groupId:CreateDeployment'
, createDeployment_groupId
- The ID of the Greengrass group.
$sel:deploymentType:CreateDeployment'
, createDeployment_deploymentType
- The type of deployment. When used for ''CreateDeployment'', only
''NewDeployment'' and ''Redeployment'' are valid.
Request Lenses
createDeployment_deploymentId :: Lens' CreateDeployment (Maybe Text) Source #
The ID of the deployment if you wish to redeploy a previous deployment.
createDeployment_amznClientToken :: Lens' CreateDeployment (Maybe Text) Source #
A client token used to correlate requests and responses.
createDeployment_groupVersionId :: Lens' CreateDeployment (Maybe Text) Source #
The ID of the group version to be deployed.
createDeployment_groupId :: Lens' CreateDeployment Text Source #
The ID of the Greengrass group.
createDeployment_deploymentType :: Lens' CreateDeployment DeploymentType Source #
The type of deployment. When used for ''CreateDeployment'', only ''NewDeployment'' and ''Redeployment'' are valid.
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:CreateDeployment'
, createDeploymentResponse_deploymentId
- The ID of the deployment.
$sel:deploymentArn:CreateDeploymentResponse'
, createDeploymentResponse_deploymentArn
- The ARN of the deployment.
$sel:httpStatus:CreateDeploymentResponse'
, createDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The ID of the deployment.
createDeploymentResponse_deploymentArn :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The ARN of the deployment.
createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int Source #
The response's http status code.