Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a deployment.
Synopsis
- createDeployment :: Text -> CreateDeployment
- data CreateDeployment
- cdDeploymentId :: Lens' CreateDeployment (Maybe Text)
- cdAmznClientToken :: Lens' CreateDeployment (Maybe Text)
- cdDeploymentType :: Lens' CreateDeployment (Maybe DeploymentType)
- cdGroupVersionId :: Lens' CreateDeployment (Maybe Text)
- cdGroupId :: Lens' CreateDeployment Text
- createDeploymentResponse :: Int -> CreateDeploymentResponse
- data CreateDeploymentResponse
- cdrsDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text)
- cdrsDeploymentARN :: Lens' CreateDeploymentResponse (Maybe Text)
- cdrsResponseStatus :: Lens' CreateDeploymentResponse Int
Creating a Request
Creates a value of CreateDeployment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdDeploymentId
- The ID of the deployment if you wish to redeploy a previous deployment.cdAmznClientToken
- A client token used to correlate requests and responses.cdDeploymentType
- The type of deployment. When used in 'CreateDeployment'
, only 'NewDeployment'
and 'Redeployment'
are valid.cdGroupVersionId
- The ID of the group version to be deployed.cdGroupId
- The ID of the AWS Greengrass group.
data CreateDeployment Source #
See: createDeployment
smart constructor.
Instances
Request Lenses
cdDeploymentId :: Lens' CreateDeployment (Maybe Text) Source #
The ID of the deployment if you wish to redeploy a previous deployment.
cdAmznClientToken :: Lens' CreateDeployment (Maybe Text) Source #
A client token used to correlate requests and responses.
cdDeploymentType :: Lens' CreateDeployment (Maybe DeploymentType) Source #
The type of deployment. When used in 'CreateDeployment'
, only 'NewDeployment'
and 'Redeployment'
are valid.
cdGroupVersionId :: Lens' CreateDeployment (Maybe Text) Source #
The ID of the group version to be deployed.
Destructuring the Response
createDeploymentResponse Source #
Creates a value of CreateDeploymentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdrsDeploymentId
- The ID of the deployment.cdrsDeploymentARN
- The ARN of the deployment.cdrsResponseStatus
- -- | The response status code.
data CreateDeploymentResponse Source #
See: createDeploymentResponse
smart constructor.
Instances
Response Lenses
cdrsDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The ID of the deployment.
cdrsDeploymentARN :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The ARN of the deployment.
cdrsResponseStatus :: Lens' CreateDeploymentResponse Int Source #
- - | The response status code.