libZSservicesZSamazonka-robomakerZSamazonka-robomaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.RobOMaker.CreateDeploymentJob

Description

Deploys a specific version of a robot application to robots in a fleet.

The robot application must have a numbered applicationVersion for consistency reasons. To create a new version, use CreateRobotApplicationVersion or see Creating a Robot Application Version.

After 90 days, deployment jobs expire and will be deleted. They will no longer be accessible.

Synopsis

Creating a Request

data CreateDeploymentJob Source #

See: newCreateDeploymentJob smart constructor.

Constructors

CreateDeploymentJob' 

Fields

Instances

Instances details
Eq CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Read CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Show CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Generic CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Associated Types

type Rep CreateDeploymentJob :: Type -> Type #

NFData CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Methods

rnf :: CreateDeploymentJob -> () #

Hashable CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

ToJSON CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

AWSRequest CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Associated Types

type AWSResponse CreateDeploymentJob #

ToHeaders CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

ToPath CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

ToQuery CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

type Rep CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

type Rep CreateDeploymentJob = D1 ('MetaData "CreateDeploymentJob" "Amazonka.RobOMaker.CreateDeploymentJob" "libZSservicesZSamazonka-robomakerZSamazonka-robomaker" 'False) (C1 ('MetaCons "CreateDeploymentJob'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deploymentConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentConfig)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "fleet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "deploymentApplicationConfigs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty DeploymentApplicationConfig))))))
type AWSResponse CreateDeploymentJob Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

newCreateDeploymentJob Source #

Create a value of CreateDeploymentJob 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:deploymentConfig:CreateDeploymentJob', createDeploymentJob_deploymentConfig - The requested deployment configuration.

$sel:tags:CreateDeploymentJob', createDeploymentJob_tags - A map that contains tag keys and tag values that are attached to the deployment job.

$sel:clientRequestToken:CreateDeploymentJob', createDeploymentJob_clientRequestToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

$sel:fleet:CreateDeploymentJob', createDeploymentJob_fleet - The Amazon Resource Name (ARN) of the fleet to deploy.

$sel:deploymentApplicationConfigs:CreateDeploymentJob', createDeploymentJob_deploymentApplicationConfigs - The deployment application configuration.

Request Lenses

createDeploymentJob_tags :: Lens' CreateDeploymentJob (Maybe (HashMap Text Text)) Source #

A map that contains tag keys and tag values that are attached to the deployment job.

createDeploymentJob_clientRequestToken :: Lens' CreateDeploymentJob Text Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

createDeploymentJob_fleet :: Lens' CreateDeploymentJob Text Source #

The Amazon Resource Name (ARN) of the fleet to deploy.

Destructuring the Response

data CreateDeploymentJobResponse Source #

See: newCreateDeploymentJobResponse smart constructor.

Constructors

CreateDeploymentJobResponse' 

Fields

  • failureReason :: Maybe Text

    The failure reason of the deployment job if it failed.

  • status :: Maybe DeploymentStatus

    The status of the deployment job.

  • deploymentApplicationConfigs :: Maybe (NonEmpty DeploymentApplicationConfig)

    The deployment application configuration.

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the deployment job.

  • createdAt :: Maybe POSIX

    The time, in milliseconds since the epoch, when the fleet was created.

  • failureCode :: Maybe DeploymentJobErrorCode

    The failure code of the simulation job if it failed:

    BadPermissionError
    AWS Greengrass requires a service-level role permission to access other services. The role must include the AWSGreengrassResourceAccessRolePolicy managed policy.
    ExtractingBundleFailure
    The robot application could not be extracted from the bundle.
    FailureThresholdBreached
    The percentage of robots that could not be updated exceeded the percentage set for the deployment.
    GreengrassDeploymentFailed
    The robot application could not be deployed to the robot.
    GreengrassGroupVersionDoesNotExist
    The AWS Greengrass group or version associated with a robot is missing.
    InternalServerError
    An internal error has occurred. Retry your request, but if the problem persists, contact us with details.
    MissingRobotApplicationArchitecture
    The robot application does not have a source that matches the architecture of the robot.
    MissingRobotDeploymentResource
    One or more of the resources specified for the robot application are missing. For example, does the robot application have the correct launch package and launch file?
    PostLaunchFileFailure
    The post-launch script failed.
    PreLaunchFileFailure
    The pre-launch script failed.
    ResourceNotFound
    One or more deployment resources are missing. For example, do robot application source bundles still exist?
    RobotDeploymentNoResponse
    There is no response from the robot. It might not be powered on or connected to the internet.
  • deploymentConfig :: Maybe DeploymentConfig

    The deployment configuration.

  • fleet :: Maybe Text

    The target fleet for the deployment job.

  • tags :: Maybe (HashMap Text Text)

    The list of all tags added to the deployment job.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateDeploymentJobResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Read CreateDeploymentJobResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Show CreateDeploymentJobResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Generic CreateDeploymentJobResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

Associated Types

type Rep CreateDeploymentJobResponse :: Type -> Type #

NFData CreateDeploymentJobResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

type Rep CreateDeploymentJobResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.CreateDeploymentJob

type Rep CreateDeploymentJobResponse = D1 ('MetaData "CreateDeploymentJobResponse" "Amazonka.RobOMaker.CreateDeploymentJob" "libZSservicesZSamazonka-robomakerZSamazonka-robomaker" 'False) (C1 ('MetaCons "CreateDeploymentJobResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "failureReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentStatus))) :*: (S1 ('MetaSel ('Just "deploymentApplicationConfigs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty DeploymentApplicationConfig))) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "failureCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentJobErrorCode)) :*: S1 ('MetaSel ('Just "deploymentConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentConfig))) :*: (S1 ('MetaSel ('Just "fleet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newCreateDeploymentJobResponse Source #

Create a value of CreateDeploymentJobResponse 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:failureReason:CreateDeploymentJobResponse', createDeploymentJobResponse_failureReason - The failure reason of the deployment job if it failed.

$sel:status:CreateDeploymentJobResponse', createDeploymentJobResponse_status - The status of the deployment job.

$sel:deploymentApplicationConfigs:CreateDeploymentJob', createDeploymentJobResponse_deploymentApplicationConfigs - The deployment application configuration.

$sel:arn:CreateDeploymentJobResponse', createDeploymentJobResponse_arn - The Amazon Resource Name (ARN) of the deployment job.

$sel:createdAt:CreateDeploymentJobResponse', createDeploymentJobResponse_createdAt - The time, in milliseconds since the epoch, when the fleet was created.

$sel:failureCode:CreateDeploymentJobResponse', createDeploymentJobResponse_failureCode - The failure code of the simulation job if it failed:

BadPermissionError
AWS Greengrass requires a service-level role permission to access other services. The role must include the AWSGreengrassResourceAccessRolePolicy managed policy.
ExtractingBundleFailure
The robot application could not be extracted from the bundle.
FailureThresholdBreached
The percentage of robots that could not be updated exceeded the percentage set for the deployment.
GreengrassDeploymentFailed
The robot application could not be deployed to the robot.
GreengrassGroupVersionDoesNotExist
The AWS Greengrass group or version associated with a robot is missing.
InternalServerError
An internal error has occurred. Retry your request, but if the problem persists, contact us with details.
MissingRobotApplicationArchitecture
The robot application does not have a source that matches the architecture of the robot.
MissingRobotDeploymentResource
One or more of the resources specified for the robot application are missing. For example, does the robot application have the correct launch package and launch file?
PostLaunchFileFailure
The post-launch script failed.
PreLaunchFileFailure
The pre-launch script failed.
ResourceNotFound
One or more deployment resources are missing. For example, do robot application source bundles still exist?
RobotDeploymentNoResponse
There is no response from the robot. It might not be powered on or connected to the internet.

$sel:deploymentConfig:CreateDeploymentJob', createDeploymentJobResponse_deploymentConfig - The deployment configuration.

$sel:fleet:CreateDeploymentJob', createDeploymentJobResponse_fleet - The target fleet for the deployment job.

$sel:tags:CreateDeploymentJob', createDeploymentJobResponse_tags - The list of all tags added to the deployment job.

$sel:httpStatus:CreateDeploymentJobResponse', createDeploymentJobResponse_httpStatus - The response's http status code.

Response Lenses

createDeploymentJobResponse_failureReason :: Lens' CreateDeploymentJobResponse (Maybe Text) Source #

The failure reason of the deployment job if it failed.

createDeploymentJobResponse_arn :: Lens' CreateDeploymentJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the deployment job.

createDeploymentJobResponse_createdAt :: Lens' CreateDeploymentJobResponse (Maybe UTCTime) Source #

The time, in milliseconds since the epoch, when the fleet was created.

createDeploymentJobResponse_failureCode :: Lens' CreateDeploymentJobResponse (Maybe DeploymentJobErrorCode) Source #

The failure code of the simulation job if it failed:

BadPermissionError
AWS Greengrass requires a service-level role permission to access other services. The role must include the AWSGreengrassResourceAccessRolePolicy managed policy.
ExtractingBundleFailure
The robot application could not be extracted from the bundle.
FailureThresholdBreached
The percentage of robots that could not be updated exceeded the percentage set for the deployment.
GreengrassDeploymentFailed
The robot application could not be deployed to the robot.
GreengrassGroupVersionDoesNotExist
The AWS Greengrass group or version associated with a robot is missing.
InternalServerError
An internal error has occurred. Retry your request, but if the problem persists, contact us with details.
MissingRobotApplicationArchitecture
The robot application does not have a source that matches the architecture of the robot.
MissingRobotDeploymentResource
One or more of the resources specified for the robot application are missing. For example, does the robot application have the correct launch package and launch file?
PostLaunchFileFailure
The post-launch script failed.
PreLaunchFileFailure
The pre-launch script failed.
ResourceNotFound
One or more deployment resources are missing. For example, do robot application source bundles still exist?
RobotDeploymentNoResponse
There is no response from the robot. It might not be powered on or connected to the internet.

createDeploymentJobResponse_tags :: Lens' CreateDeploymentJobResponse (Maybe (HashMap Text Text)) Source #

The list of all tags added to the deployment job.