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 |
Gets a deployment. Deployments define the components that run on Greengrass core devices.
Synopsis
- data GetDeployment = GetDeployment' {
- deploymentId :: Text
- newGetDeployment :: Text -> GetDeployment
- getDeployment_deploymentId :: Lens' GetDeployment Text
- data GetDeploymentResponse = GetDeploymentResponse' {
- targetArn :: Maybe Text
- components :: Maybe (HashMap Text ComponentDeploymentSpecification)
- deploymentId :: Maybe Text
- iotJobId :: Maybe Text
- iotJobArn :: Maybe Text
- deploymentPolicies :: Maybe DeploymentPolicies
- creationTimestamp :: Maybe POSIX
- iotJobConfiguration :: Maybe DeploymentIoTJobConfiguration
- deploymentStatus :: Maybe DeploymentStatus
- isLatestForTarget :: Maybe Bool
- revisionId :: Maybe Text
- deploymentName :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newGetDeploymentResponse :: Int -> GetDeploymentResponse
- getDeploymentResponse_targetArn :: Lens' GetDeploymentResponse (Maybe Text)
- getDeploymentResponse_components :: Lens' GetDeploymentResponse (Maybe (HashMap Text ComponentDeploymentSpecification))
- getDeploymentResponse_deploymentId :: Lens' GetDeploymentResponse (Maybe Text)
- getDeploymentResponse_iotJobId :: Lens' GetDeploymentResponse (Maybe Text)
- getDeploymentResponse_iotJobArn :: Lens' GetDeploymentResponse (Maybe Text)
- getDeploymentResponse_deploymentPolicies :: Lens' GetDeploymentResponse (Maybe DeploymentPolicies)
- getDeploymentResponse_creationTimestamp :: Lens' GetDeploymentResponse (Maybe UTCTime)
- getDeploymentResponse_iotJobConfiguration :: Lens' GetDeploymentResponse (Maybe DeploymentIoTJobConfiguration)
- getDeploymentResponse_deploymentStatus :: Lens' GetDeploymentResponse (Maybe DeploymentStatus)
- getDeploymentResponse_isLatestForTarget :: Lens' GetDeploymentResponse (Maybe Bool)
- getDeploymentResponse_revisionId :: Lens' GetDeploymentResponse (Maybe Text)
- getDeploymentResponse_deploymentName :: Lens' GetDeploymentResponse (Maybe Text)
- getDeploymentResponse_tags :: Lens' GetDeploymentResponse (Maybe (HashMap Text Text))
- getDeploymentResponse_httpStatus :: Lens' GetDeploymentResponse Int
Creating a Request
data GetDeployment Source #
See: newGetDeployment
smart constructor.
GetDeployment' | |
|
Instances
Create a value of GetDeployment
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:GetDeployment'
, getDeployment_deploymentId
- The ID of the deployment.
Request Lenses
getDeployment_deploymentId :: Lens' GetDeployment Text Source #
The ID of the deployment.
Destructuring the Response
data GetDeploymentResponse Source #
See: newGetDeploymentResponse
smart constructor.
GetDeploymentResponse' | |
|
Instances
newGetDeploymentResponse Source #
Create a value of GetDeploymentResponse
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:targetArn:GetDeploymentResponse'
, getDeploymentResponse_targetArn
- The
ARN
of the target IoT thing or thing group.
$sel:components:GetDeploymentResponse'
, getDeploymentResponse_components
- The components to deploy. This is a dictionary, where each key is the
name of a component, and each key's value is the version and
configuration to deploy for that component.
$sel:deploymentId:GetDeployment'
, getDeploymentResponse_deploymentId
- The ID of the deployment.
$sel:iotJobId:GetDeploymentResponse'
, getDeploymentResponse_iotJobId
- The ID of the IoT job that applies the deployment to target devices.
$sel:iotJobArn:GetDeploymentResponse'
, getDeploymentResponse_iotJobArn
- The
ARN
of the IoT job that applies the deployment to target devices.
$sel:deploymentPolicies:GetDeploymentResponse'
, getDeploymentResponse_deploymentPolicies
- The deployment policies for the deployment. These policies define how
the deployment updates components and handles failure.
$sel:creationTimestamp:GetDeploymentResponse'
, getDeploymentResponse_creationTimestamp
- The time at which the deployment was created, expressed in ISO 8601
format.
$sel:iotJobConfiguration:GetDeploymentResponse'
, getDeploymentResponse_iotJobConfiguration
- The job configuration for the deployment configuration. The job
configuration specifies the rollout, timeout, and stop configurations
for the deployment configuration.
$sel:deploymentStatus:GetDeploymentResponse'
, getDeploymentResponse_deploymentStatus
- The status of the deployment.
$sel:isLatestForTarget:GetDeploymentResponse'
, getDeploymentResponse_isLatestForTarget
- Whether or not the deployment is the latest revision for its target.
$sel:revisionId:GetDeploymentResponse'
, getDeploymentResponse_revisionId
- The revision number of the deployment.
$sel:deploymentName:GetDeploymentResponse'
, getDeploymentResponse_deploymentName
- The name of the deployment.
$sel:tags:GetDeploymentResponse'
, getDeploymentResponse_tags
- A list of key-value pairs that contain metadata for the resource. For
more information, see
Tag your resources
in the IoT Greengrass V2 Developer Guide.
$sel:httpStatus:GetDeploymentResponse'
, getDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
getDeploymentResponse_targetArn :: Lens' GetDeploymentResponse (Maybe Text) Source #
The ARN of the target IoT thing or thing group.
getDeploymentResponse_components :: Lens' GetDeploymentResponse (Maybe (HashMap Text ComponentDeploymentSpecification)) Source #
The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.
getDeploymentResponse_deploymentId :: Lens' GetDeploymentResponse (Maybe Text) Source #
The ID of the deployment.
getDeploymentResponse_iotJobId :: Lens' GetDeploymentResponse (Maybe Text) Source #
The ID of the IoT job that applies the deployment to target devices.
getDeploymentResponse_iotJobArn :: Lens' GetDeploymentResponse (Maybe Text) Source #
The ARN of the IoT job that applies the deployment to target devices.
getDeploymentResponse_deploymentPolicies :: Lens' GetDeploymentResponse (Maybe DeploymentPolicies) Source #
The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.
getDeploymentResponse_creationTimestamp :: Lens' GetDeploymentResponse (Maybe UTCTime) Source #
The time at which the deployment was created, expressed in ISO 8601 format.
getDeploymentResponse_iotJobConfiguration :: Lens' GetDeploymentResponse (Maybe DeploymentIoTJobConfiguration) Source #
The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
getDeploymentResponse_deploymentStatus :: Lens' GetDeploymentResponse (Maybe DeploymentStatus) Source #
The status of the deployment.
getDeploymentResponse_isLatestForTarget :: Lens' GetDeploymentResponse (Maybe Bool) Source #
Whether or not the deployment is the latest revision for its target.
getDeploymentResponse_revisionId :: Lens' GetDeploymentResponse (Maybe Text) Source #
The revision number of the deployment.
getDeploymentResponse_deploymentName :: Lens' GetDeploymentResponse (Maybe Text) Source #
The name of the deployment.
getDeploymentResponse_tags :: Lens' GetDeploymentResponse (Maybe (HashMap Text Text)) Source #
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.
getDeploymentResponse_httpStatus :: Lens' GetDeploymentResponse Int Source #
The response's http status code.