| 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.Greengrass.CreateDeployment
Description
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_amznClientToken :: Lens' CreateDeployment (Maybe Text)
- createDeployment_deploymentId :: Lens' CreateDeployment (Maybe Text)
- createDeployment_groupVersionId :: Lens' CreateDeployment (Maybe Text)
- createDeployment_groupId :: Lens' CreateDeployment Text
- createDeployment_deploymentType :: Lens' CreateDeployment DeploymentType
- data CreateDeploymentResponse = CreateDeploymentResponse' {
- deploymentArn :: Maybe Text
- deploymentId :: Maybe Text
- httpStatus :: Int
- newCreateDeploymentResponse :: Int -> CreateDeploymentResponse
- createDeploymentResponse_deploymentArn :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int
Creating a Request
data CreateDeployment Source #
See: newCreateDeployment smart constructor.
Constructors
| CreateDeployment' | |
Fields
| |
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:amznClientToken:CreateDeployment', createDeployment_amznClientToken - A client token used to correlate requests and responses.
CreateDeployment, createDeployment_deploymentId - The ID of the deployment if you wish to redeploy a previous deployment.
$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.
CreateDeployment, createDeployment_deploymentType - The type of deployment. When used for ''CreateDeployment'', only
''NewDeployment'' and ''Redeployment'' are valid.
Request Lenses
createDeployment_amznClientToken :: Lens' CreateDeployment (Maybe Text) Source #
A client token used to correlate requests and responses.
createDeployment_deploymentId :: Lens' CreateDeployment (Maybe Text) Source #
The ID of the deployment if you wish to redeploy a previous deployment.
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.
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_deploymentArn - The ARN of the deployment.
CreateDeployment, createDeploymentResponse_deploymentId - The ID of the deployment.
$sel:httpStatus:CreateDeploymentResponse', createDeploymentResponse_httpStatus - The response's http status code.
Response Lenses
createDeploymentResponse_deploymentArn :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The ARN of the deployment.
createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The ID of the deployment.
createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int Source #
The response's http status code.