AWS RoboMaker

2020/03/06 - AWS RoboMaker - 9 updated api methods

Changes  Added support for streaming a GUI from robot and simulation applications

BatchDescribeSimulationJob (updated) Link ¶
Changes (response)
{'jobs': {'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
          'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}}

Describes one or more simulation jobs.

See also: AWS API Documentation

Request Syntax

client.batch_describe_simulation_job(
    jobs=[
        'string',
    ]
)
type jobs

list

param jobs

[REQUIRED]

A list of Amazon Resource Names (ARNs) of simulation jobs to describe.

  • (string) --

rtype

dict

returns

Response Syntax

{
    'jobs': [
        {
            'arn': 'string',
            'name': 'string',
            'status': 'Pending'|'Preparing'|'Running'|'Restarting'|'Completed'|'Failed'|'RunningFailed'|'Terminating'|'Terminated'|'Canceled',
            'lastStartedAt': datetime(2015, 1, 1),
            'lastUpdatedAt': datetime(2015, 1, 1),
            'failureBehavior': 'Fail'|'Continue',
            'failureCode': 'InternalServiceError'|'RobotApplicationCrash'|'SimulationApplicationCrash'|'BadPermissionsRobotApplication'|'BadPermissionsSimulationApplication'|'BadPermissionsS3Object'|'BadPermissionsS3Output'|'BadPermissionsCloudwatchLogs'|'SubnetIpLimitExceeded'|'ENILimitExceeded'|'BadPermissionsUserCredentials'|'InvalidBundleRobotApplication'|'InvalidBundleSimulationApplication'|'InvalidS3Resource'|'LimitExceeded'|'MismatchedEtag'|'RobotApplicationVersionMismatchedEtag'|'SimulationApplicationVersionMismatchedEtag'|'ResourceNotFound'|'RequestThrottled'|'BatchTimedOut'|'BatchCanceled'|'InvalidInput'|'WrongRegionS3Bucket'|'WrongRegionS3Output'|'WrongRegionRobotApplication'|'WrongRegionSimulationApplication',
            'failureReason': 'string',
            'clientRequestToken': 'string',
            'outputLocation': {
                's3Bucket': 'string',
                's3Prefix': 'string'
            },
            'loggingConfig': {
                'recordAllRosTopics': True|False
            },
            'maxJobDurationInSeconds': 123,
            'simulationTimeMillis': 123,
            'iamRole': 'string',
            'robotApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'simulationApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'dataSources': [
                {
                    'name': 'string',
                    's3Bucket': 'string',
                    's3Keys': [
                        {
                            's3Key': 'string',
                            'etag': 'string'
                        },
                    ]
                },
            ],
            'tags': {
                'string': 'string'
            },
            'vpcConfig': {
                'subnets': [
                    'string',
                ],
                'securityGroups': [
                    'string',
                ],
                'vpcId': 'string',
                'assignPublicIp': True|False
            },
            'networkInterface': {
                'networkInterfaceId': 'string',
                'privateIpAddress': 'string',
                'publicIpAddress': 'string'
            }
        },
    ],
    'unprocessedJobs': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • jobs (list) --

      A list of simulation jobs.

      • (dict) --

        Information about a simulation job.

        • arn (string) --

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

        • name (string) --

          The name of the simulation job.

        • status (string) --

          Status of the simulation job.

        • lastStartedAt (datetime) --

          The time, in milliseconds since the epoch, when the simulation job was last started.

        • lastUpdatedAt (datetime) --

          The time, in milliseconds since the epoch, when the simulation job was last updated.

        • failureBehavior (string) --

          The failure behavior the simulation job.

          Continue

          Restart the simulation job in the same host instance.

          Fail

          Stop the simulation job and terminate the instance.

        • failureCode (string) --

          The failure code of the simulation job if it failed.

        • failureReason (string) --

          The reason why the simulation job failed.

        • clientRequestToken (string) --

          A unique identifier for this SimulationJob request.

        • outputLocation (dict) --

          Location for output files generated by the simulation job.

          • s3Bucket (string) --

            The S3 bucket for output.

          • s3Prefix (string) --

            The S3 folder in the s3Bucket where output files will be placed.

        • loggingConfig (dict) --

          The logging configuration.

          • recordAllRosTopics (boolean) --

            A boolean indicating whether to record all ROS topics.

        • maxJobDurationInSeconds (integer) --

          The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

        • simulationTimeMillis (integer) --

          The simulation job execution duration in milliseconds.

        • iamRole (string) --

          The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job.

        • robotApplications (list) --

          A list of robot applications.

          • (dict) --

            Application configuration information for a robot.

            • application (string) --

              The application information for the robot application.

            • applicationVersion (string) --

              The version of the robot application.

            • launchConfig (dict) --

              The launch configuration for the robot application.

              • packageName (string) --

                The package name.

              • launchFile (string) --

                The launch file name.

              • environmentVariables (dict) --

                The environment variables for the application launch.

                • (string) --

                  • (string) --

              • portForwardingConfig (dict) --

                The port forwarding configuration.

                • portMappings (list) --

                  The port mappings for the configuration.

                  • (dict) --

                    An object representing a port mapping.

                    • jobPort (integer) --

                      The port number on the simulation job instance to use as a remote connection point.

                    • applicationPort (integer) --

                      The port number on the application.

                    • enableOnPublicIp (boolean) --

                      A Boolean indicating whether to enable this port mapping on public IP.

              • streamUI (boolean) --

                Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

        • simulationApplications (list) --

          A list of simulation applications.

          • (dict) --

            Information about a simulation application configuration.

            • application (string) --

              The application information for the simulation application.

            • applicationVersion (string) --

              The version of the simulation application.

            • launchConfig (dict) --

              The launch configuration for the simulation application.

              • packageName (string) --

                The package name.

              • launchFile (string) --

                The launch file name.

              • environmentVariables (dict) --

                The environment variables for the application launch.

                • (string) --

                  • (string) --

              • portForwardingConfig (dict) --

                The port forwarding configuration.

                • portMappings (list) --

                  The port mappings for the configuration.

                  • (dict) --

                    An object representing a port mapping.

                    • jobPort (integer) --

                      The port number on the simulation job instance to use as a remote connection point.

                    • applicationPort (integer) --

                      The port number on the application.

                    • enableOnPublicIp (boolean) --

                      A Boolean indicating whether to enable this port mapping on public IP.

              • streamUI (boolean) --

                Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

        • dataSources (list) --

          The data sources for the simulation job.

          • (dict) --

            Information about a data source.

            • name (string) --

              The name of the data source.

            • s3Bucket (string) --

              The S3 bucket where the data files are located.

            • s3Keys (list) --

              The list of S3 keys identifying the data source files.

              • (dict) --

                Information about S3 keys.

                • s3Key (string) --

                  The S3 key.

                • etag (string) --

                  The etag for the object.

        • tags (dict) --

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

          • (string) --

            • (string) --

        • vpcConfig (dict) --

          VPC configuration information.

          • subnets (list) --

            A list of subnet IDs associated with the simulation job.

            • (string) --

          • securityGroups (list) --

            A list of security group IDs associated with the simulation job.

            • (string) --

          • vpcId (string) --

            The VPC ID associated with your simulation job.

          • assignPublicIp (boolean) --

            A boolean indicating if a public IP was assigned.

        • networkInterface (dict) --

          Information about a network interface.

          • networkInterfaceId (string) --

            The ID of the network interface.

          • privateIpAddress (string) --

            The IPv4 address of the network interface within the subnet.

          • publicIpAddress (string) --

            The IPv4 public address of the network interface.

    • unprocessedJobs (list) --

      A list of unprocessed simulation job Amazon Resource Names (ARNs).

      • (string) --

CreateDeploymentJob (updated) Link ¶
Changes (response)
{'failureCode': {'InvalidGreengrassGroup', 'LambdaDeleted'}}

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.

Note

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

See also: AWS API Documentation

Request Syntax

client.create_deployment_job(
    deploymentConfig={
        'concurrentDeploymentPercentage': 123,
        'failureThresholdPercentage': 123,
        'robotDeploymentTimeoutInSeconds': 123,
        'downloadConditionFile': {
            'bucket': 'string',
            'key': 'string',
            'etag': 'string'
        }
    },
    clientRequestToken='string',
    fleet='string',
    deploymentApplicationConfigs=[
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'preLaunchFile': 'string',
                'launchFile': 'string',
                'postLaunchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                }
            }
        },
    ],
    tags={
        'string': 'string'
    }
)
type deploymentConfig

dict

param deploymentConfig

The requested deployment configuration.

  • concurrentDeploymentPercentage (integer) --

    The percentage of robots receiving the deployment at the same time.

  • failureThresholdPercentage (integer) --

    The percentage of deployments that need to fail before stopping deployment.

  • robotDeploymentTimeoutInSeconds (integer) --

    The amount of time, in seconds, to wait for deployment to a single robot to complete. Choose a time between 1 minute and 7 days. The default is 5 hours.

  • downloadConditionFile (dict) --

    The download condition file.

    • bucket (string) -- [REQUIRED]

      The bucket containing the object.

    • key (string) -- [REQUIRED]

      The key of the object.

    • etag (string) --

      The etag of the object.

type clientRequestToken

string

param clientRequestToken

[REQUIRED]

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

This field is autopopulated if not provided.

type fleet

string

param fleet

[REQUIRED]

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

type deploymentApplicationConfigs

list

param deploymentApplicationConfigs

[REQUIRED]

The deployment application configuration.

  • (dict) --

    Information about a deployment application configuration.

    • application (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the robot application.

    • applicationVersion (string) -- [REQUIRED]

      The version of the application.

    • launchConfig (dict) -- [REQUIRED]

      The launch configuration.

      • packageName (string) -- [REQUIRED]

        The package name.

      • preLaunchFile (string) --

        The deployment pre-launch file. This file will be executed prior to the launch file.

      • launchFile (string) -- [REQUIRED]

        The launch file name.

      • postLaunchFile (string) --

        The deployment post-launch file. This file will be executed after the launch file.

      • environmentVariables (dict) --

        An array of key/value pairs specifying environment variables for the robot application

        • (string) --

          • (string) --

type tags

dict

param tags

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

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{
    'arn': 'string',
    'fleet': 'string',
    'status': 'Pending'|'Preparing'|'InProgress'|'Failed'|'Succeeded'|'Canceled',
    'deploymentApplicationConfigs': [
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'preLaunchFile': 'string',
                'launchFile': 'string',
                'postLaunchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                }
            }
        },
    ],
    'failureReason': 'string',
    'failureCode': 'ResourceNotFound'|'EnvironmentSetupError'|'EtagMismatch'|'FailureThresholdBreached'|'RobotDeploymentAborted'|'RobotDeploymentNoResponse'|'RobotAgentConnectionTimeout'|'GreengrassDeploymentFailed'|'InvalidGreengrassGroup'|'MissingRobotArchitecture'|'MissingRobotApplicationArchitecture'|'MissingRobotDeploymentResource'|'GreengrassGroupVersionDoesNotExist'|'LambdaDeleted'|'ExtractingBundleFailure'|'PreLaunchFileFailure'|'PostLaunchFileFailure'|'BadPermissionError'|'DownloadConditionFailed'|'InternalServerError',
    'createdAt': datetime(2015, 1, 1),
    'deploymentConfig': {
        'concurrentDeploymentPercentage': 123,
        'failureThresholdPercentage': 123,
        'robotDeploymentTimeoutInSeconds': 123,
        'downloadConditionFile': {
            'bucket': 'string',
            'key': 'string',
            'etag': 'string'
        }
    },
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • arn (string) --

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

    • fleet (string) --

      The target fleet for the deployment job.

    • status (string) --

      The status of the deployment job.

    • deploymentApplicationConfigs (list) --

      The deployment application configuration.

      • (dict) --

        Information about a deployment application configuration.

        • application (string) --

          The Amazon Resource Name (ARN) of the robot application.

        • applicationVersion (string) --

          The version of the application.

        • launchConfig (dict) --

          The launch configuration.

          • packageName (string) --

            The package name.

          • preLaunchFile (string) --

            The deployment pre-launch file. This file will be executed prior to the launch file.

          • launchFile (string) --

            The launch file name.

          • postLaunchFile (string) --

            The deployment post-launch file. This file will be executed after the launch file.

          • environmentVariables (dict) --

            An array of key/value pairs specifying environment variables for the robot application

            • (string) --

              • (string) --

    • failureReason (string) --

      The failure reason of the deployment job if it failed.

    • failureCode (string) --

      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 AWSGreengrassResourceAccessRolePolicymanaged 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.

    • createdAt (datetime) --

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

    • deploymentConfig (dict) --

      The deployment configuration.

      • concurrentDeploymentPercentage (integer) --

        The percentage of robots receiving the deployment at the same time.

      • failureThresholdPercentage (integer) --

        The percentage of deployments that need to fail before stopping deployment.

      • robotDeploymentTimeoutInSeconds (integer) --

        The amount of time, in seconds, to wait for deployment to a single robot to complete. Choose a time between 1 minute and 7 days. The default is 5 hours.

      • downloadConditionFile (dict) --

        The download condition file.

        • bucket (string) --

          The bucket containing the object.

        • key (string) --

          The key of the object.

        • etag (string) --

          The etag of the object.

    • tags (dict) --

      The list of all tags added to the deployment job.

      • (string) --

        • (string) --

CreateSimulationJob (updated) Link ¶
Changes (both)
{'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
 'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}

Creates a simulation job.

Note

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

See also: AWS API Documentation

Request Syntax

client.create_simulation_job(
    clientRequestToken='string',
    outputLocation={
        's3Bucket': 'string',
        's3Prefix': 'string'
    },
    loggingConfig={
        'recordAllRosTopics': True|False
    },
    maxJobDurationInSeconds=123,
    iamRole='string',
    failureBehavior='Fail'|'Continue',
    robotApplications=[
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'launchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                },
                'portForwardingConfig': {
                    'portMappings': [
                        {
                            'jobPort': 123,
                            'applicationPort': 123,
                            'enableOnPublicIp': True|False
                        },
                    ]
                },
                'streamUI': True|False
            }
        },
    ],
    simulationApplications=[
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'launchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                },
                'portForwardingConfig': {
                    'portMappings': [
                        {
                            'jobPort': 123,
                            'applicationPort': 123,
                            'enableOnPublicIp': True|False
                        },
                    ]
                },
                'streamUI': True|False
            }
        },
    ],
    dataSources=[
        {
            'name': 'string',
            's3Bucket': 'string',
            's3Keys': [
                'string',
            ]
        },
    ],
    tags={
        'string': 'string'
    },
    vpcConfig={
        'subnets': [
            'string',
        ],
        'securityGroups': [
            'string',
        ],
        'assignPublicIp': True|False
    }
)
type clientRequestToken

string

param clientRequestToken

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

This field is autopopulated if not provided.

type outputLocation

dict

param outputLocation

Location for output files generated by the simulation job.

  • s3Bucket (string) --

    The S3 bucket for output.

  • s3Prefix (string) --

    The S3 folder in the s3Bucket where output files will be placed.

type loggingConfig

dict

param loggingConfig

The logging configuration.

  • recordAllRosTopics (boolean) -- [REQUIRED]

    A boolean indicating whether to record all ROS topics.

type maxJobDurationInSeconds

integer

param maxJobDurationInSeconds

[REQUIRED]

The maximum simulation job duration in seconds (up to 14 days or 1,209,600 seconds. When maxJobDurationInSeconds is reached, the simulation job will status will transition to Completed .

type iamRole

string

param iamRole

[REQUIRED]

The IAM role name that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job.

type failureBehavior

string

param failureBehavior

The failure behavior the simulation job.

Continue

Restart the simulation job in the same host instance.

Fail

Stop the simulation job and terminate the instance.

type robotApplications

list

param robotApplications

The robot application to use in the simulation job.

  • (dict) --

    Application configuration information for a robot.

    • application (string) -- [REQUIRED]

      The application information for the robot application.

    • applicationVersion (string) --

      The version of the robot application.

    • launchConfig (dict) -- [REQUIRED]

      The launch configuration for the robot application.

      • packageName (string) -- [REQUIRED]

        The package name.

      • launchFile (string) -- [REQUIRED]

        The launch file name.

      • environmentVariables (dict) --

        The environment variables for the application launch.

        • (string) --

          • (string) --

      • portForwardingConfig (dict) --

        The port forwarding configuration.

        • portMappings (list) --

          The port mappings for the configuration.

          • (dict) --

            An object representing a port mapping.

            • jobPort (integer) -- [REQUIRED]

              The port number on the simulation job instance to use as a remote connection point.

            • applicationPort (integer) -- [REQUIRED]

              The port number on the application.

            • enableOnPublicIp (boolean) --

              A Boolean indicating whether to enable this port mapping on public IP.

      • streamUI (boolean) --

        Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

type simulationApplications

list

param simulationApplications

The simulation application to use in the simulation job.

  • (dict) --

    Information about a simulation application configuration.

    • application (string) -- [REQUIRED]

      The application information for the simulation application.

    • applicationVersion (string) --

      The version of the simulation application.

    • launchConfig (dict) -- [REQUIRED]

      The launch configuration for the simulation application.

      • packageName (string) -- [REQUIRED]

        The package name.

      • launchFile (string) -- [REQUIRED]

        The launch file name.

      • environmentVariables (dict) --

        The environment variables for the application launch.

        • (string) --

          • (string) --

      • portForwardingConfig (dict) --

        The port forwarding configuration.

        • portMappings (list) --

          The port mappings for the configuration.

          • (dict) --

            An object representing a port mapping.

            • jobPort (integer) -- [REQUIRED]

              The port number on the simulation job instance to use as a remote connection point.

            • applicationPort (integer) -- [REQUIRED]

              The port number on the application.

            • enableOnPublicIp (boolean) --

              A Boolean indicating whether to enable this port mapping on public IP.

      • streamUI (boolean) --

        Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

type dataSources

list

param dataSources

Specify data sources to mount read-only files from S3 into your simulation. These files are available under /opt/robomaker/datasources/data_source_name .

Note

There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig objects.

  • (dict) --

    Information about a data source.

    • name (string) -- [REQUIRED]

      The name of the data source.

    • s3Bucket (string) -- [REQUIRED]

      The S3 bucket where the data files are located.

    • s3Keys (list) -- [REQUIRED]

      The list of S3 keys identifying the data source files.

      • (string) --

type tags

dict

param tags

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

  • (string) --

    • (string) --

type vpcConfig

dict

param vpcConfig

If your simulation job accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.

  • subnets (list) -- [REQUIRED]

    A list of one or more subnet IDs in your VPC.

    • (string) --

  • securityGroups (list) --

    A list of one or more security groups IDs in your VPC.

    • (string) --

  • assignPublicIp (boolean) --

    A boolean indicating whether to assign a public IP address.

rtype

dict

returns

Response Syntax

{
    'arn': 'string',
    'status': 'Pending'|'Preparing'|'Running'|'Restarting'|'Completed'|'Failed'|'RunningFailed'|'Terminating'|'Terminated'|'Canceled',
    'lastStartedAt': datetime(2015, 1, 1),
    'lastUpdatedAt': datetime(2015, 1, 1),
    'failureBehavior': 'Fail'|'Continue',
    'failureCode': 'InternalServiceError'|'RobotApplicationCrash'|'SimulationApplicationCrash'|'BadPermissionsRobotApplication'|'BadPermissionsSimulationApplication'|'BadPermissionsS3Object'|'BadPermissionsS3Output'|'BadPermissionsCloudwatchLogs'|'SubnetIpLimitExceeded'|'ENILimitExceeded'|'BadPermissionsUserCredentials'|'InvalidBundleRobotApplication'|'InvalidBundleSimulationApplication'|'InvalidS3Resource'|'LimitExceeded'|'MismatchedEtag'|'RobotApplicationVersionMismatchedEtag'|'SimulationApplicationVersionMismatchedEtag'|'ResourceNotFound'|'RequestThrottled'|'BatchTimedOut'|'BatchCanceled'|'InvalidInput'|'WrongRegionS3Bucket'|'WrongRegionS3Output'|'WrongRegionRobotApplication'|'WrongRegionSimulationApplication',
    'clientRequestToken': 'string',
    'outputLocation': {
        's3Bucket': 'string',
        's3Prefix': 'string'
    },
    'loggingConfig': {
        'recordAllRosTopics': True|False
    },
    'maxJobDurationInSeconds': 123,
    'simulationTimeMillis': 123,
    'iamRole': 'string',
    'robotApplications': [
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'launchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                },
                'portForwardingConfig': {
                    'portMappings': [
                        {
                            'jobPort': 123,
                            'applicationPort': 123,
                            'enableOnPublicIp': True|False
                        },
                    ]
                },
                'streamUI': True|False
            }
        },
    ],
    'simulationApplications': [
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'launchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                },
                'portForwardingConfig': {
                    'portMappings': [
                        {
                            'jobPort': 123,
                            'applicationPort': 123,
                            'enableOnPublicIp': True|False
                        },
                    ]
                },
                'streamUI': True|False
            }
        },
    ],
    'dataSources': [
        {
            'name': 'string',
            's3Bucket': 'string',
            's3Keys': [
                {
                    's3Key': 'string',
                    'etag': 'string'
                },
            ]
        },
    ],
    'tags': {
        'string': 'string'
    },
    'vpcConfig': {
        'subnets': [
            'string',
        ],
        'securityGroups': [
            'string',
        ],
        'vpcId': 'string',
        'assignPublicIp': True|False
    }
}

Response Structure

  • (dict) --

    • arn (string) --

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

    • status (string) --

      The status of the simulation job.

    • lastStartedAt (datetime) --

      The time, in milliseconds since the epoch, when the simulation job was last started.

    • lastUpdatedAt (datetime) --

      The time, in milliseconds since the epoch, when the simulation job was last updated.

    • failureBehavior (string) --

      the failure behavior for the simulation job.

    • failureCode (string) --

      The failure code of the simulation job if it failed:

      InternalServiceError

      Internal service error.

      RobotApplicationCrash

      Robot application exited abnormally.

      SimulationApplicationCrash

      Simulation application exited abnormally.

      BadPermissionsRobotApplication

      Robot application bundle could not be downloaded.

      BadPermissionsSimulationApplication

      Simulation application bundle could not be downloaded.

      BadPermissionsS3Output

      Unable to publish outputs to customer-provided S3 bucket.

      BadPermissionsCloudwatchLogs

      Unable to publish logs to customer-provided CloudWatch Logs resource.

      SubnetIpLimitExceeded

      Subnet IP limit exceeded.

      ENILimitExceeded

      ENI limit exceeded.

      BadPermissionsUserCredentials

      Unable to use the Role provided.

      InvalidBundleRobotApplication

      Robot bundle cannot be extracted (invalid format, bundling error, or other issue).

      InvalidBundleSimulationApplication

      Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).

      RobotApplicationVersionMismatchedEtag

      Etag for RobotApplication does not match value during version creation.

      SimulationApplicationVersionMismatchedEtag

      Etag for SimulationApplication does not match value during version creation.

    • clientRequestToken (string) --

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

    • outputLocation (dict) --

      Simulation job output files location.

      • s3Bucket (string) --

        The S3 bucket for output.

      • s3Prefix (string) --

        The S3 folder in the s3Bucket where output files will be placed.

    • loggingConfig (dict) --

      The logging configuration.

      • recordAllRosTopics (boolean) --

        A boolean indicating whether to record all ROS topics.

    • maxJobDurationInSeconds (integer) --

      The maximum simulation job duration in seconds.

    • simulationTimeMillis (integer) --

      The simulation job execution duration in milliseconds.

    • iamRole (string) --

      The IAM role that allows the simulation job to call the AWS APIs that are specified in its associated policies on your behalf.

    • robotApplications (list) --

      The robot application used by the simulation job.

      • (dict) --

        Application configuration information for a robot.

        • application (string) --

          The application information for the robot application.

        • applicationVersion (string) --

          The version of the robot application.

        • launchConfig (dict) --

          The launch configuration for the robot application.

          • packageName (string) --

            The package name.

          • launchFile (string) --

            The launch file name.

          • environmentVariables (dict) --

            The environment variables for the application launch.

            • (string) --

              • (string) --

          • portForwardingConfig (dict) --

            The port forwarding configuration.

            • portMappings (list) --

              The port mappings for the configuration.

              • (dict) --

                An object representing a port mapping.

                • jobPort (integer) --

                  The port number on the simulation job instance to use as a remote connection point.

                • applicationPort (integer) --

                  The port number on the application.

                • enableOnPublicIp (boolean) --

                  A Boolean indicating whether to enable this port mapping on public IP.

          • streamUI (boolean) --

            Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

    • simulationApplications (list) --

      The simulation application used by the simulation job.

      • (dict) --

        Information about a simulation application configuration.

        • application (string) --

          The application information for the simulation application.

        • applicationVersion (string) --

          The version of the simulation application.

        • launchConfig (dict) --

          The launch configuration for the simulation application.

          • packageName (string) --

            The package name.

          • launchFile (string) --

            The launch file name.

          • environmentVariables (dict) --

            The environment variables for the application launch.

            • (string) --

              • (string) --

          • portForwardingConfig (dict) --

            The port forwarding configuration.

            • portMappings (list) --

              The port mappings for the configuration.

              • (dict) --

                An object representing a port mapping.

                • jobPort (integer) --

                  The port number on the simulation job instance to use as a remote connection point.

                • applicationPort (integer) --

                  The port number on the application.

                • enableOnPublicIp (boolean) --

                  A Boolean indicating whether to enable this port mapping on public IP.

          • streamUI (boolean) --

            Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

    • dataSources (list) --

      The data sources for the simulation job.

      • (dict) --

        Information about a data source.

        • name (string) --

          The name of the data source.

        • s3Bucket (string) --

          The S3 bucket where the data files are located.

        • s3Keys (list) --

          The list of S3 keys identifying the data source files.

          • (dict) --

            Information about S3 keys.

            • s3Key (string) --

              The S3 key.

            • etag (string) --

              The etag for the object.

    • tags (dict) --

      The list of all tags added to the simulation job.

      • (string) --

        • (string) --

    • vpcConfig (dict) --

      Information about the vpc configuration.

      • subnets (list) --

        A list of subnet IDs associated with the simulation job.

        • (string) --

      • securityGroups (list) --

        A list of security group IDs associated with the simulation job.

        • (string) --

      • vpcId (string) --

        The VPC ID associated with your simulation job.

      • assignPublicIp (boolean) --

        A boolean indicating if a public IP was assigned.

DescribeDeploymentJob (updated) Link ¶
Changes (response)
{'failureCode': {'InvalidGreengrassGroup', 'LambdaDeleted'},
 'robotDeploymentSummary': {'failureCode': {'InvalidGreengrassGroup',
                                            'LambdaDeleted'}}}

Describes a deployment job.

See also: AWS API Documentation

Request Syntax

client.describe_deployment_job(
    job='string'
)
type job

string

param job

[REQUIRED]

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

rtype

dict

returns

Response Syntax

{
    'arn': 'string',
    'fleet': 'string',
    'status': 'Pending'|'Preparing'|'InProgress'|'Failed'|'Succeeded'|'Canceled',
    'deploymentConfig': {
        'concurrentDeploymentPercentage': 123,
        'failureThresholdPercentage': 123,
        'robotDeploymentTimeoutInSeconds': 123,
        'downloadConditionFile': {
            'bucket': 'string',
            'key': 'string',
            'etag': 'string'
        }
    },
    'deploymentApplicationConfigs': [
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'preLaunchFile': 'string',
                'launchFile': 'string',
                'postLaunchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                }
            }
        },
    ],
    'failureReason': 'string',
    'failureCode': 'ResourceNotFound'|'EnvironmentSetupError'|'EtagMismatch'|'FailureThresholdBreached'|'RobotDeploymentAborted'|'RobotDeploymentNoResponse'|'RobotAgentConnectionTimeout'|'GreengrassDeploymentFailed'|'InvalidGreengrassGroup'|'MissingRobotArchitecture'|'MissingRobotApplicationArchitecture'|'MissingRobotDeploymentResource'|'GreengrassGroupVersionDoesNotExist'|'LambdaDeleted'|'ExtractingBundleFailure'|'PreLaunchFileFailure'|'PostLaunchFileFailure'|'BadPermissionError'|'DownloadConditionFailed'|'InternalServerError',
    'createdAt': datetime(2015, 1, 1),
    'robotDeploymentSummary': [
        {
            'arn': 'string',
            'deploymentStartTime': datetime(2015, 1, 1),
            'deploymentFinishTime': datetime(2015, 1, 1),
            'status': 'Available'|'Registered'|'PendingNewDeployment'|'Deploying'|'Failed'|'InSync'|'NoResponse',
            'progressDetail': {
                'currentProgress': 'Validating'|'DownloadingExtracting'|'ExecutingDownloadCondition'|'ExecutingPreLaunch'|'Launching'|'ExecutingPostLaunch'|'Finished',
                'percentDone': ...,
                'estimatedTimeRemainingSeconds': 123,
                'targetResource': 'string'
            },
            'failureReason': 'string',
            'failureCode': 'ResourceNotFound'|'EnvironmentSetupError'|'EtagMismatch'|'FailureThresholdBreached'|'RobotDeploymentAborted'|'RobotDeploymentNoResponse'|'RobotAgentConnectionTimeout'|'GreengrassDeploymentFailed'|'InvalidGreengrassGroup'|'MissingRobotArchitecture'|'MissingRobotApplicationArchitecture'|'MissingRobotDeploymentResource'|'GreengrassGroupVersionDoesNotExist'|'LambdaDeleted'|'ExtractingBundleFailure'|'PreLaunchFileFailure'|'PostLaunchFileFailure'|'BadPermissionError'|'DownloadConditionFailed'|'InternalServerError'
        },
    ],
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • arn (string) --

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

    • fleet (string) --

      The Amazon Resource Name (ARN) of the fleet.

    • status (string) --

      The status of the deployment job.

    • deploymentConfig (dict) --

      The deployment configuration.

      • concurrentDeploymentPercentage (integer) --

        The percentage of robots receiving the deployment at the same time.

      • failureThresholdPercentage (integer) --

        The percentage of deployments that need to fail before stopping deployment.

      • robotDeploymentTimeoutInSeconds (integer) --

        The amount of time, in seconds, to wait for deployment to a single robot to complete. Choose a time between 1 minute and 7 days. The default is 5 hours.

      • downloadConditionFile (dict) --

        The download condition file.

        • bucket (string) --

          The bucket containing the object.

        • key (string) --

          The key of the object.

        • etag (string) --

          The etag of the object.

    • deploymentApplicationConfigs (list) --

      The deployment application configuration.

      • (dict) --

        Information about a deployment application configuration.

        • application (string) --

          The Amazon Resource Name (ARN) of the robot application.

        • applicationVersion (string) --

          The version of the application.

        • launchConfig (dict) --

          The launch configuration.

          • packageName (string) --

            The package name.

          • preLaunchFile (string) --

            The deployment pre-launch file. This file will be executed prior to the launch file.

          • launchFile (string) --

            The launch file name.

          • postLaunchFile (string) --

            The deployment post-launch file. This file will be executed after the launch file.

          • environmentVariables (dict) --

            An array of key/value pairs specifying environment variables for the robot application

            • (string) --

              • (string) --

    • failureReason (string) --

      A short description of the reason why the deployment job failed.

    • failureCode (string) --

      The deployment job failure code.

    • createdAt (datetime) --

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

    • robotDeploymentSummary (list) --

      A list of robot deployment summaries.

      • (dict) --

        Information about a robot deployment.

        • arn (string) --

          The robot deployment Amazon Resource Name (ARN).

        • deploymentStartTime (datetime) --

          The time, in milliseconds since the epoch, when the deployment was started.

        • deploymentFinishTime (datetime) --

          The time, in milliseconds since the epoch, when the deployment finished.

        • status (string) --

          The status of the robot deployment.

        • progressDetail (dict) --

          Information about how the deployment is progressing.

          • currentProgress (string) --

            The current progress status.

            Validating

            Validating the deployment.

            DownloadingExtracting

            Downloading and extracting the bundle on the robot.

            ExecutingPreLaunch

            Executing pre-launch script(s) if provided.

            Launching

            Launching the robot application.

            ExecutingPostLaunch

            Executing post-launch script(s) if provided.

            Finished

            Deployment is complete.

          • percentDone (float) --

            Precentage of the step that is done. This currently only applies to the Downloading/Extracting step of the deployment. It is empty for other steps.

          • estimatedTimeRemainingSeconds (integer) --

            Estimated amount of time in seconds remaining in the step. This currently only applies to the Downloading/Extracting step of the deployment. It is empty for other steps.

          • targetResource (string) --

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

        • failureReason (string) --

          A short description of the reason why the robot deployment failed.

        • failureCode (string) --

          The robot deployment failure code.

    • tags (dict) --

      The list of all tags added to the specified deployment job.

      • (string) --

        • (string) --

DescribeSimulationJob (updated) Link ¶
Changes (response)
{'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
 'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}

Describes a simulation job.

See also: AWS API Documentation

Request Syntax

client.describe_simulation_job(
    job='string'
)
type job

string

param job

[REQUIRED]

The Amazon Resource Name (ARN) of the simulation job to be described.

rtype

dict

returns

Response Syntax

{
    'arn': 'string',
    'name': 'string',
    'status': 'Pending'|'Preparing'|'Running'|'Restarting'|'Completed'|'Failed'|'RunningFailed'|'Terminating'|'Terminated'|'Canceled',
    'lastStartedAt': datetime(2015, 1, 1),
    'lastUpdatedAt': datetime(2015, 1, 1),
    'failureBehavior': 'Fail'|'Continue',
    'failureCode': 'InternalServiceError'|'RobotApplicationCrash'|'SimulationApplicationCrash'|'BadPermissionsRobotApplication'|'BadPermissionsSimulationApplication'|'BadPermissionsS3Object'|'BadPermissionsS3Output'|'BadPermissionsCloudwatchLogs'|'SubnetIpLimitExceeded'|'ENILimitExceeded'|'BadPermissionsUserCredentials'|'InvalidBundleRobotApplication'|'InvalidBundleSimulationApplication'|'InvalidS3Resource'|'LimitExceeded'|'MismatchedEtag'|'RobotApplicationVersionMismatchedEtag'|'SimulationApplicationVersionMismatchedEtag'|'ResourceNotFound'|'RequestThrottled'|'BatchTimedOut'|'BatchCanceled'|'InvalidInput'|'WrongRegionS3Bucket'|'WrongRegionS3Output'|'WrongRegionRobotApplication'|'WrongRegionSimulationApplication',
    'failureReason': 'string',
    'clientRequestToken': 'string',
    'outputLocation': {
        's3Bucket': 'string',
        's3Prefix': 'string'
    },
    'loggingConfig': {
        'recordAllRosTopics': True|False
    },
    'maxJobDurationInSeconds': 123,
    'simulationTimeMillis': 123,
    'iamRole': 'string',
    'robotApplications': [
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'launchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                },
                'portForwardingConfig': {
                    'portMappings': [
                        {
                            'jobPort': 123,
                            'applicationPort': 123,
                            'enableOnPublicIp': True|False
                        },
                    ]
                },
                'streamUI': True|False
            }
        },
    ],
    'simulationApplications': [
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'launchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                },
                'portForwardingConfig': {
                    'portMappings': [
                        {
                            'jobPort': 123,
                            'applicationPort': 123,
                            'enableOnPublicIp': True|False
                        },
                    ]
                },
                'streamUI': True|False
            }
        },
    ],
    'dataSources': [
        {
            'name': 'string',
            's3Bucket': 'string',
            's3Keys': [
                {
                    's3Key': 'string',
                    'etag': 'string'
                },
            ]
        },
    ],
    'tags': {
        'string': 'string'
    },
    'vpcConfig': {
        'subnets': [
            'string',
        ],
        'securityGroups': [
            'string',
        ],
        'vpcId': 'string',
        'assignPublicIp': True|False
    },
    'networkInterface': {
        'networkInterfaceId': 'string',
        'privateIpAddress': 'string',
        'publicIpAddress': 'string'
    }
}

Response Structure

  • (dict) --

    • arn (string) --

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

    • name (string) --

      The name of the simulation job.

    • status (string) --

      The status of the simulation job.

    • lastStartedAt (datetime) --

      The time, in milliseconds since the epoch, when the simulation job was last started.

    • lastUpdatedAt (datetime) --

      The time, in milliseconds since the epoch, when the simulation job was last updated.

    • failureBehavior (string) --

      The failure behavior for the simulation job.

    • failureCode (string) --

      The failure code of the simulation job if it failed:

      InternalServiceError

      Internal service error.

      RobotApplicationCrash

      Robot application exited abnormally.

      SimulationApplicationCrash

      Simulation application exited abnormally.

      BadPermissionsRobotApplication

      Robot application bundle could not be downloaded.

      BadPermissionsSimulationApplication

      Simulation application bundle could not be downloaded.

      BadPermissionsS3Output

      Unable to publish outputs to customer-provided S3 bucket.

      BadPermissionsCloudwatchLogs

      Unable to publish logs to customer-provided CloudWatch Logs resource.

      SubnetIpLimitExceeded

      Subnet IP limit exceeded.

      ENILimitExceeded

      ENI limit exceeded.

      BadPermissionsUserCredentials

      Unable to use the Role provided.

      InvalidBundleRobotApplication

      Robot bundle cannot be extracted (invalid format, bundling error, or other issue).

      InvalidBundleSimulationApplication

      Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).

      RobotApplicationVersionMismatchedEtag

      Etag for RobotApplication does not match value during version creation.

      SimulationApplicationVersionMismatchedEtag

      Etag for SimulationApplication does not match value during version creation.

    • failureReason (string) --

      Details about why the simulation job failed. For more information about troubleshooting, see Troubleshooting.

    • clientRequestToken (string) --

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

    • outputLocation (dict) --

      Location for output files generated by the simulation job.

      • s3Bucket (string) --

        The S3 bucket for output.

      • s3Prefix (string) --

        The S3 folder in the s3Bucket where output files will be placed.

    • loggingConfig (dict) --

      The logging configuration.

      • recordAllRosTopics (boolean) --

        A boolean indicating whether to record all ROS topics.

    • maxJobDurationInSeconds (integer) --

      The maximum job duration in seconds. The value must be 8 days (691,200 seconds) or less.

    • simulationTimeMillis (integer) --

      The simulation job execution duration in milliseconds.

    • iamRole (string) --

      The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf.

    • robotApplications (list) --

      A list of robot applications.

      • (dict) --

        Application configuration information for a robot.

        • application (string) --

          The application information for the robot application.

        • applicationVersion (string) --

          The version of the robot application.

        • launchConfig (dict) --

          The launch configuration for the robot application.

          • packageName (string) --

            The package name.

          • launchFile (string) --

            The launch file name.

          • environmentVariables (dict) --

            The environment variables for the application launch.

            • (string) --

              • (string) --

          • portForwardingConfig (dict) --

            The port forwarding configuration.

            • portMappings (list) --

              The port mappings for the configuration.

              • (dict) --

                An object representing a port mapping.

                • jobPort (integer) --

                  The port number on the simulation job instance to use as a remote connection point.

                • applicationPort (integer) --

                  The port number on the application.

                • enableOnPublicIp (boolean) --

                  A Boolean indicating whether to enable this port mapping on public IP.

          • streamUI (boolean) --

            Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

    • simulationApplications (list) --

      A list of simulation applications.

      • (dict) --

        Information about a simulation application configuration.

        • application (string) --

          The application information for the simulation application.

        • applicationVersion (string) --

          The version of the simulation application.

        • launchConfig (dict) --

          The launch configuration for the simulation application.

          • packageName (string) --

            The package name.

          • launchFile (string) --

            The launch file name.

          • environmentVariables (dict) --

            The environment variables for the application launch.

            • (string) --

              • (string) --

          • portForwardingConfig (dict) --

            The port forwarding configuration.

            • portMappings (list) --

              The port mappings for the configuration.

              • (dict) --

                An object representing a port mapping.

                • jobPort (integer) --

                  The port number on the simulation job instance to use as a remote connection point.

                • applicationPort (integer) --

                  The port number on the application.

                • enableOnPublicIp (boolean) --

                  A Boolean indicating whether to enable this port mapping on public IP.

          • streamUI (boolean) --

            Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

    • dataSources (list) --

      The data sources for the simulation job.

      • (dict) --

        Information about a data source.

        • name (string) --

          The name of the data source.

        • s3Bucket (string) --

          The S3 bucket where the data files are located.

        • s3Keys (list) --

          The list of S3 keys identifying the data source files.

          • (dict) --

            Information about S3 keys.

            • s3Key (string) --

              The S3 key.

            • etag (string) --

              The etag for the object.

    • tags (dict) --

      The list of all tags added to the specified simulation job.

      • (string) --

        • (string) --

    • vpcConfig (dict) --

      The VPC configuration.

      • subnets (list) --

        A list of subnet IDs associated with the simulation job.

        • (string) --

      • securityGroups (list) --

        A list of security group IDs associated with the simulation job.

        • (string) --

      • vpcId (string) --

        The VPC ID associated with your simulation job.

      • assignPublicIp (boolean) --

        A boolean indicating if a public IP was assigned.

    • networkInterface (dict) --

      The network interface information for the simulation job.

      • networkInterfaceId (string) --

        The ID of the network interface.

      • privateIpAddress (string) --

        The IPv4 address of the network interface within the subnet.

      • publicIpAddress (string) --

        The IPv4 public address of the network interface.

DescribeSimulationJobBatch (updated) Link ¶
Changes (response)
{'failedRequests': {'request': {'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
                                'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}},
 'pendingRequests': {'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
                     'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}}

Describes a simulation job batch.

See also: AWS API Documentation

Request Syntax

client.describe_simulation_job_batch(
    batch='string'
)
type batch

string

param batch

[REQUIRED]

The id of the batch to describe.

rtype

dict

returns

Response Syntax

{
    'arn': 'string',
    'status': 'Pending'|'InProgress'|'Failed'|'Completed'|'Canceled'|'Canceling'|'Completing'|'TimingOut'|'TimedOut',
    'lastUpdatedAt': datetime(2015, 1, 1),
    'createdAt': datetime(2015, 1, 1),
    'clientRequestToken': 'string',
    'batchPolicy': {
        'timeoutInSeconds': 123,
        'maxConcurrency': 123
    },
    'failureCode': 'InternalServiceError',
    'failureReason': 'string',
    'failedRequests': [
        {
            'request': {
                'outputLocation': {
                    's3Bucket': 'string',
                    's3Prefix': 'string'
                },
                'loggingConfig': {
                    'recordAllRosTopics': True|False
                },
                'maxJobDurationInSeconds': 123,
                'iamRole': 'string',
                'failureBehavior': 'Fail'|'Continue',
                'useDefaultApplications': True|False,
                'robotApplications': [
                    {
                        'application': 'string',
                        'applicationVersion': 'string',
                        'launchConfig': {
                            'packageName': 'string',
                            'launchFile': 'string',
                            'environmentVariables': {
                                'string': 'string'
                            },
                            'portForwardingConfig': {
                                'portMappings': [
                                    {
                                        'jobPort': 123,
                                        'applicationPort': 123,
                                        'enableOnPublicIp': True|False
                                    },
                                ]
                            },
                            'streamUI': True|False
                        }
                    },
                ],
                'simulationApplications': [
                    {
                        'application': 'string',
                        'applicationVersion': 'string',
                        'launchConfig': {
                            'packageName': 'string',
                            'launchFile': 'string',
                            'environmentVariables': {
                                'string': 'string'
                            },
                            'portForwardingConfig': {
                                'portMappings': [
                                    {
                                        'jobPort': 123,
                                        'applicationPort': 123,
                                        'enableOnPublicIp': True|False
                                    },
                                ]
                            },
                            'streamUI': True|False
                        }
                    },
                ],
                'dataSources': [
                    {
                        'name': 'string',
                        's3Bucket': 'string',
                        's3Keys': [
                            'string',
                        ]
                    },
                ],
                'vpcConfig': {
                    'subnets': [
                        'string',
                    ],
                    'securityGroups': [
                        'string',
                    ],
                    'assignPublicIp': True|False
                },
                'tags': {
                    'string': 'string'
                }
            },
            'failureReason': 'string',
            'failureCode': 'InternalServiceError'|'RobotApplicationCrash'|'SimulationApplicationCrash'|'BadPermissionsRobotApplication'|'BadPermissionsSimulationApplication'|'BadPermissionsS3Object'|'BadPermissionsS3Output'|'BadPermissionsCloudwatchLogs'|'SubnetIpLimitExceeded'|'ENILimitExceeded'|'BadPermissionsUserCredentials'|'InvalidBundleRobotApplication'|'InvalidBundleSimulationApplication'|'InvalidS3Resource'|'LimitExceeded'|'MismatchedEtag'|'RobotApplicationVersionMismatchedEtag'|'SimulationApplicationVersionMismatchedEtag'|'ResourceNotFound'|'RequestThrottled'|'BatchTimedOut'|'BatchCanceled'|'InvalidInput'|'WrongRegionS3Bucket'|'WrongRegionS3Output'|'WrongRegionRobotApplication'|'WrongRegionSimulationApplication',
            'failedAt': datetime(2015, 1, 1)
        },
    ],
    'pendingRequests': [
        {
            'outputLocation': {
                's3Bucket': 'string',
                's3Prefix': 'string'
            },
            'loggingConfig': {
                'recordAllRosTopics': True|False
            },
            'maxJobDurationInSeconds': 123,
            'iamRole': 'string',
            'failureBehavior': 'Fail'|'Continue',
            'useDefaultApplications': True|False,
            'robotApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'simulationApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'dataSources': [
                {
                    'name': 'string',
                    's3Bucket': 'string',
                    's3Keys': [
                        'string',
                    ]
                },
            ],
            'vpcConfig': {
                'subnets': [
                    'string',
                ],
                'securityGroups': [
                    'string',
                ],
                'assignPublicIp': True|False
            },
            'tags': {
                'string': 'string'
            }
        },
    ],
    'createdRequests': [
        {
            'arn': 'string',
            'lastUpdatedAt': datetime(2015, 1, 1),
            'name': 'string',
            'status': 'Pending'|'Preparing'|'Running'|'Restarting'|'Completed'|'Failed'|'RunningFailed'|'Terminating'|'Terminated'|'Canceled',
            'simulationApplicationNames': [
                'string',
            ],
            'robotApplicationNames': [
                'string',
            ],
            'dataSourceNames': [
                'string',
            ]
        },
    ],
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • arn (string) --

      The Amazon Resource Name (ARN) of the batch.

    • status (string) --

      The status of the batch.

      Pending

      The simulation job batch request is pending.

      InProgress

      The simulation job batch is in progress.

      Failed

      The simulation job batch failed. One or more simulation job requests could not be completed due to an internal failure (like InternalServiceError ). See failureCode and failureReason for more information.

      Completed

      The simulation batch job completed. A batch is complete when (1) there are no pending simulation job requests in the batch and none of the failed simulation job requests are due to InternalServiceError and (2) when all created simulation jobs have reached a terminal state (for example, Completed or Failed ).

      Canceled

      The simulation batch job was cancelled.

      Canceling

      The simulation batch job is being cancelled.

      Completing

      The simulation batch job is completing.

      TimingOut

      The simulation job batch is timing out.

      If a batch timing out, and there are pending requests that were failing due to an internal failure (like InternalServiceError ), the batch status will be Failed . If there are no such failing request, the batch status will be TimedOut .

      TimedOut

      The simulation batch job timed out.

    • lastUpdatedAt (datetime) --

      The time, in milliseconds since the epoch, when the simulation job batch was last updated.

    • createdAt (datetime) --

      The time, in milliseconds since the epoch, when the simulation job batch was created.

    • clientRequestToken (string) --

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

    • batchPolicy (dict) --

      The batch policy.

      • timeoutInSeconds (integer) --

        The amount of time, in seconds, to wait for the batch to complete.

        If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError ), they will be moved to the failed list and the batch status will be Failed . If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut .

      • maxConcurrency (integer) --

        The number of active simulation jobs create as part of the batch that can be in an active state at the same time.

        Active states include: Pending , Preparing , Running , Restarting , RunningFailed and Terminating . All other states are terminal states.

    • failureCode (string) --

      The failure code of the simulation job batch.

    • failureReason (string) --

      The reason the simulation job batch failed.

    • failedRequests (list) --

      A list of failed create simulation job requests. The request failed to be created into a simulation job. Failed requests do not have a simulation job ID.

      • (dict) --

        Information about a failed create simulation job request.

        • request (dict) --

          The simulation job request.

          • outputLocation (dict) --

            The output location.

            • s3Bucket (string) --

              The S3 bucket for output.

            • s3Prefix (string) --

              The S3 folder in the s3Bucket where output files will be placed.

          • loggingConfig (dict) --

            The logging configuration.

            • recordAllRosTopics (boolean) --

              A boolean indicating whether to record all ROS topics.

          • maxJobDurationInSeconds (integer) --

            The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

          • iamRole (string) --

            The IAM role name that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job.

          • failureBehavior (string) --

            The failure behavior the simulation job.

            Continue

            Restart the simulation job in the same host instance.

            Fail

            Stop the simulation job and terminate the instance.

          • useDefaultApplications (boolean) --

            Boolean indicating whether to use default simulation tool applications.

          • robotApplications (list) --

            The robot applications to use in the simulation job.

            • (dict) --

              Application configuration information for a robot.

              • application (string) --

                The application information for the robot application.

              • applicationVersion (string) --

                The version of the robot application.

              • launchConfig (dict) --

                The launch configuration for the robot application.

                • packageName (string) --

                  The package name.

                • launchFile (string) --

                  The launch file name.

                • environmentVariables (dict) --

                  The environment variables for the application launch.

                  • (string) --

                    • (string) --

                • portForwardingConfig (dict) --

                  The port forwarding configuration.

                  • portMappings (list) --

                    The port mappings for the configuration.

                    • (dict) --

                      An object representing a port mapping.

                      • jobPort (integer) --

                        The port number on the simulation job instance to use as a remote connection point.

                      • applicationPort (integer) --

                        The port number on the application.

                      • enableOnPublicIp (boolean) --

                        A Boolean indicating whether to enable this port mapping on public IP.

                • streamUI (boolean) --

                  Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

          • simulationApplications (list) --

            The simulation applications to use in the simulation job.

            • (dict) --

              Information about a simulation application configuration.

              • application (string) --

                The application information for the simulation application.

              • applicationVersion (string) --

                The version of the simulation application.

              • launchConfig (dict) --

                The launch configuration for the simulation application.

                • packageName (string) --

                  The package name.

                • launchFile (string) --

                  The launch file name.

                • environmentVariables (dict) --

                  The environment variables for the application launch.

                  • (string) --

                    • (string) --

                • portForwardingConfig (dict) --

                  The port forwarding configuration.

                  • portMappings (list) --

                    The port mappings for the configuration.

                    • (dict) --

                      An object representing a port mapping.

                      • jobPort (integer) --

                        The port number on the simulation job instance to use as a remote connection point.

                      • applicationPort (integer) --

                        The port number on the application.

                      • enableOnPublicIp (boolean) --

                        A Boolean indicating whether to enable this port mapping on public IP.

                • streamUI (boolean) --

                  Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

          • dataSources (list) --

            Specify data sources to mount read-only files from S3 into your simulation. These files are available under /opt/robomaker/datasources/data_source_name .

            Note

            There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig objects.

            • (dict) --

              Information about a data source.

              • name (string) --

                The name of the data source.

              • s3Bucket (string) --

                The S3 bucket where the data files are located.

              • s3Keys (list) --

                The list of S3 keys identifying the data source files.

                • (string) --

          • vpcConfig (dict) --

            If your simulation job accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and two subnet IDs.

            • subnets (list) --

              A list of one or more subnet IDs in your VPC.

              • (string) --

            • securityGroups (list) --

              A list of one or more security groups IDs in your VPC.

              • (string) --

            • assignPublicIp (boolean) --

              A boolean indicating whether to assign a public IP address.

          • tags (dict) --

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

            • (string) --

              • (string) --

        • failureReason (string) --

          The failure reason of the simulation job request.

        • failureCode (string) --

          The failure code.

        • failedAt (datetime) --

          The time, in milliseconds since the epoch, when the simulation job batch failed.

    • pendingRequests (list) --

      A list of pending simulation job requests. These requests have not yet been created into simulation jobs.

      • (dict) --

        Information about a simulation job request.

        • outputLocation (dict) --

          The output location.

          • s3Bucket (string) --

            The S3 bucket for output.

          • s3Prefix (string) --

            The S3 folder in the s3Bucket where output files will be placed.

        • loggingConfig (dict) --

          The logging configuration.

          • recordAllRosTopics (boolean) --

            A boolean indicating whether to record all ROS topics.

        • maxJobDurationInSeconds (integer) --

          The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

        • iamRole (string) --

          The IAM role name that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job.

        • failureBehavior (string) --

          The failure behavior the simulation job.

          Continue

          Restart the simulation job in the same host instance.

          Fail

          Stop the simulation job and terminate the instance.

        • useDefaultApplications (boolean) --

          Boolean indicating whether to use default simulation tool applications.

        • robotApplications (list) --

          The robot applications to use in the simulation job.

          • (dict) --

            Application configuration information for a robot.

            • application (string) --

              The application information for the robot application.

            • applicationVersion (string) --

              The version of the robot application.

            • launchConfig (dict) --

              The launch configuration for the robot application.

              • packageName (string) --

                The package name.

              • launchFile (string) --

                The launch file name.

              • environmentVariables (dict) --

                The environment variables for the application launch.

                • (string) --

                  • (string) --

              • portForwardingConfig (dict) --

                The port forwarding configuration.

                • portMappings (list) --

                  The port mappings for the configuration.

                  • (dict) --

                    An object representing a port mapping.

                    • jobPort (integer) --

                      The port number on the simulation job instance to use as a remote connection point.

                    • applicationPort (integer) --

                      The port number on the application.

                    • enableOnPublicIp (boolean) --

                      A Boolean indicating whether to enable this port mapping on public IP.

              • streamUI (boolean) --

                Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

        • simulationApplications (list) --

          The simulation applications to use in the simulation job.

          • (dict) --

            Information about a simulation application configuration.

            • application (string) --

              The application information for the simulation application.

            • applicationVersion (string) --

              The version of the simulation application.

            • launchConfig (dict) --

              The launch configuration for the simulation application.

              • packageName (string) --

                The package name.

              • launchFile (string) --

                The launch file name.

              • environmentVariables (dict) --

                The environment variables for the application launch.

                • (string) --

                  • (string) --

              • portForwardingConfig (dict) --

                The port forwarding configuration.

                • portMappings (list) --

                  The port mappings for the configuration.

                  • (dict) --

                    An object representing a port mapping.

                    • jobPort (integer) --

                      The port number on the simulation job instance to use as a remote connection point.

                    • applicationPort (integer) --

                      The port number on the application.

                    • enableOnPublicIp (boolean) --

                      A Boolean indicating whether to enable this port mapping on public IP.

              • streamUI (boolean) --

                Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

        • dataSources (list) --

          Specify data sources to mount read-only files from S3 into your simulation. These files are available under /opt/robomaker/datasources/data_source_name .

          Note

          There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig objects.

          • (dict) --

            Information about a data source.

            • name (string) --

              The name of the data source.

            • s3Bucket (string) --

              The S3 bucket where the data files are located.

            • s3Keys (list) --

              The list of S3 keys identifying the data source files.

              • (string) --

        • vpcConfig (dict) --

          If your simulation job accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and two subnet IDs.

          • subnets (list) --

            A list of one or more subnet IDs in your VPC.

            • (string) --

          • securityGroups (list) --

            A list of one or more security groups IDs in your VPC.

            • (string) --

          • assignPublicIp (boolean) --

            A boolean indicating whether to assign a public IP address.

        • tags (dict) --

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

          • (string) --

            • (string) --

    • createdRequests (list) --

      A list of created simulation job summaries.

      • (dict) --

        Summary information for a simulation job.

        • arn (string) --

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

        • lastUpdatedAt (datetime) --

          The time, in milliseconds since the epoch, when the simulation job was last updated.

        • name (string) --

          The name of the simulation job.

        • status (string) --

          The status of the simulation job.

        • simulationApplicationNames (list) --

          A list of simulation job simulation application names.

          • (string) --

        • robotApplicationNames (list) --

          A list of simulation job robot application names.

          • (string) --

        • dataSourceNames (list) --

          The names of the data sources.

          • (string) --

    • tags (dict) --

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

      • (string) --

        • (string) --

ListDeploymentJobs (updated) Link ¶
Changes (response)
{'deploymentJobs': {'failureCode': {'InvalidGreengrassGroup', 'LambdaDeleted'}}}

Returns a list of deployment jobs for a fleet. You can optionally provide filters to retrieve specific deployment jobs.

See also: AWS API Documentation

Request Syntax

client.list_deployment_jobs(
    filters=[
        {
            'name': 'string',
            'values': [
                'string',
            ]
        },
    ],
    nextToken='string',
    maxResults=123
)
type filters

list

param filters

Optional filters to limit results.

The filter names status and fleetName are supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters, but they must be for the same named item. For example, if you are looking for items with the status InProgress or the status Pending .

  • (dict) --

    Information about a filter.

    • name (string) --

      The name of the filter.

    • values (list) --

      A list of values.

      • (string) --

type nextToken

string

param nextToken

The nextToken value returned from a previous paginated ListDeploymentJobs request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

type maxResults

integer

param maxResults

When this parameter is used, ListDeploymentJobs only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListDeploymentJobs request with the returned nextToken value. This value can be between 1 and 200. If this parameter is not used, then ListDeploymentJobs returns up to 200 results and a nextToken value if applicable.

rtype

dict

returns

Response Syntax

{
    'deploymentJobs': [
        {
            'arn': 'string',
            'fleet': 'string',
            'status': 'Pending'|'Preparing'|'InProgress'|'Failed'|'Succeeded'|'Canceled',
            'deploymentApplicationConfigs': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'preLaunchFile': 'string',
                        'launchFile': 'string',
                        'postLaunchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        }
                    }
                },
            ],
            'deploymentConfig': {
                'concurrentDeploymentPercentage': 123,
                'failureThresholdPercentage': 123,
                'robotDeploymentTimeoutInSeconds': 123,
                'downloadConditionFile': {
                    'bucket': 'string',
                    'key': 'string',
                    'etag': 'string'
                }
            },
            'failureReason': 'string',
            'failureCode': 'ResourceNotFound'|'EnvironmentSetupError'|'EtagMismatch'|'FailureThresholdBreached'|'RobotDeploymentAborted'|'RobotDeploymentNoResponse'|'RobotAgentConnectionTimeout'|'GreengrassDeploymentFailed'|'InvalidGreengrassGroup'|'MissingRobotArchitecture'|'MissingRobotApplicationArchitecture'|'MissingRobotDeploymentResource'|'GreengrassGroupVersionDoesNotExist'|'LambdaDeleted'|'ExtractingBundleFailure'|'PreLaunchFileFailure'|'PostLaunchFileFailure'|'BadPermissionError'|'DownloadConditionFailed'|'InternalServerError',
            'createdAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • deploymentJobs (list) --

      A list of deployment jobs that meet the criteria of the request.

      • (dict) --

        Information about a deployment job.

        • arn (string) --

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

        • fleet (string) --

          The Amazon Resource Name (ARN) of the fleet.

        • status (string) --

          The status of the deployment job.

        • deploymentApplicationConfigs (list) --

          The deployment application configuration.

          • (dict) --

            Information about a deployment application configuration.

            • application (string) --

              The Amazon Resource Name (ARN) of the robot application.

            • applicationVersion (string) --

              The version of the application.

            • launchConfig (dict) --

              The launch configuration.

              • packageName (string) --

                The package name.

              • preLaunchFile (string) --

                The deployment pre-launch file. This file will be executed prior to the launch file.

              • launchFile (string) --

                The launch file name.

              • postLaunchFile (string) --

                The deployment post-launch file. This file will be executed after the launch file.

              • environmentVariables (dict) --

                An array of key/value pairs specifying environment variables for the robot application

                • (string) --

                  • (string) --

        • deploymentConfig (dict) --

          The deployment configuration.

          • concurrentDeploymentPercentage (integer) --

            The percentage of robots receiving the deployment at the same time.

          • failureThresholdPercentage (integer) --

            The percentage of deployments that need to fail before stopping deployment.

          • robotDeploymentTimeoutInSeconds (integer) --

            The amount of time, in seconds, to wait for deployment to a single robot to complete. Choose a time between 1 minute and 7 days. The default is 5 hours.

          • downloadConditionFile (dict) --

            The download condition file.

            • bucket (string) --

              The bucket containing the object.

            • key (string) --

              The key of the object.

            • etag (string) --

              The etag of the object.

        • failureReason (string) --

          A short description of the reason why the deployment job failed.

        • failureCode (string) --

          The deployment job failure code.

        • createdAt (datetime) --

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

    • nextToken (string) --

      The nextToken value to include in a future ListDeploymentJobs request. When the results of a ListDeploymentJobs request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

StartSimulationJobBatch (updated) Link ¶
Changes (request, response)
Request
{'createSimulationJobRequests': {'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
                                 'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}}
Response
{'failedRequests': {'request': {'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
                                'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}},
 'pendingRequests': {'robotApplications': {'launchConfig': {'streamUI': 'boolean'}},
                     'simulationApplications': {'launchConfig': {'streamUI': 'boolean'}}}}

Starts a new simulation job batch. The batch is defined using one or more SimulationJobRequest objects.

See also: AWS API Documentation

Request Syntax

client.start_simulation_job_batch(
    clientRequestToken='string',
    batchPolicy={
        'timeoutInSeconds': 123,
        'maxConcurrency': 123
    },
    createSimulationJobRequests=[
        {
            'outputLocation': {
                's3Bucket': 'string',
                's3Prefix': 'string'
            },
            'loggingConfig': {
                'recordAllRosTopics': True|False
            },
            'maxJobDurationInSeconds': 123,
            'iamRole': 'string',
            'failureBehavior': 'Fail'|'Continue',
            'useDefaultApplications': True|False,
            'robotApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'simulationApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'dataSources': [
                {
                    'name': 'string',
                    's3Bucket': 'string',
                    's3Keys': [
                        'string',
                    ]
                },
            ],
            'vpcConfig': {
                'subnets': [
                    'string',
                ],
                'securityGroups': [
                    'string',
                ],
                'assignPublicIp': True|False
            },
            'tags': {
                'string': 'string'
            }
        },
    ],
    tags={
        'string': 'string'
    }
)
type clientRequestToken

string

param clientRequestToken

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

This field is autopopulated if not provided.

type batchPolicy

dict

param batchPolicy

The batch policy.

  • timeoutInSeconds (integer) --

    The amount of time, in seconds, to wait for the batch to complete.

    If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError ), they will be moved to the failed list and the batch status will be Failed . If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut .

  • maxConcurrency (integer) --

    The number of active simulation jobs create as part of the batch that can be in an active state at the same time.

    Active states include: Pending , Preparing , Running , Restarting , RunningFailed and Terminating . All other states are terminal states.

type createSimulationJobRequests

list

param createSimulationJobRequests

[REQUIRED]

A list of simulation job requests to create in the batch.

  • (dict) --

    Information about a simulation job request.

    • outputLocation (dict) --

      The output location.

      • s3Bucket (string) --

        The S3 bucket for output.

      • s3Prefix (string) --

        The S3 folder in the s3Bucket where output files will be placed.

    • loggingConfig (dict) --

      The logging configuration.

      • recordAllRosTopics (boolean) -- [REQUIRED]

        A boolean indicating whether to record all ROS topics.

    • maxJobDurationInSeconds (integer) -- [REQUIRED]

      The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

    • iamRole (string) --

      The IAM role name that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job.

    • failureBehavior (string) --

      The failure behavior the simulation job.

      Continue

      Restart the simulation job in the same host instance.

      Fail

      Stop the simulation job and terminate the instance.

    • useDefaultApplications (boolean) --

      Boolean indicating whether to use default simulation tool applications.

    • robotApplications (list) --

      The robot applications to use in the simulation job.

      • (dict) --

        Application configuration information for a robot.

        • application (string) -- [REQUIRED]

          The application information for the robot application.

        • applicationVersion (string) --

          The version of the robot application.

        • launchConfig (dict) -- [REQUIRED]

          The launch configuration for the robot application.

          • packageName (string) -- [REQUIRED]

            The package name.

          • launchFile (string) -- [REQUIRED]

            The launch file name.

          • environmentVariables (dict) --

            The environment variables for the application launch.

            • (string) --

              • (string) --

          • portForwardingConfig (dict) --

            The port forwarding configuration.

            • portMappings (list) --

              The port mappings for the configuration.

              • (dict) --

                An object representing a port mapping.

                • jobPort (integer) -- [REQUIRED]

                  The port number on the simulation job instance to use as a remote connection point.

                • applicationPort (integer) -- [REQUIRED]

                  The port number on the application.

                • enableOnPublicIp (boolean) --

                  A Boolean indicating whether to enable this port mapping on public IP.

          • streamUI (boolean) --

            Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

    • simulationApplications (list) --

      The simulation applications to use in the simulation job.

      • (dict) --

        Information about a simulation application configuration.

        • application (string) -- [REQUIRED]

          The application information for the simulation application.

        • applicationVersion (string) --

          The version of the simulation application.

        • launchConfig (dict) -- [REQUIRED]

          The launch configuration for the simulation application.

          • packageName (string) -- [REQUIRED]

            The package name.

          • launchFile (string) -- [REQUIRED]

            The launch file name.

          • environmentVariables (dict) --

            The environment variables for the application launch.

            • (string) --

              • (string) --

          • portForwardingConfig (dict) --

            The port forwarding configuration.

            • portMappings (list) --

              The port mappings for the configuration.

              • (dict) --

                An object representing a port mapping.

                • jobPort (integer) -- [REQUIRED]

                  The port number on the simulation job instance to use as a remote connection point.

                • applicationPort (integer) -- [REQUIRED]

                  The port number on the application.

                • enableOnPublicIp (boolean) --

                  A Boolean indicating whether to enable this port mapping on public IP.

          • streamUI (boolean) --

            Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

    • dataSources (list) --

      Specify data sources to mount read-only files from S3 into your simulation. These files are available under /opt/robomaker/datasources/data_source_name .

      Note

      There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig objects.

      • (dict) --

        Information about a data source.

        • name (string) -- [REQUIRED]

          The name of the data source.

        • s3Bucket (string) -- [REQUIRED]

          The S3 bucket where the data files are located.

        • s3Keys (list) -- [REQUIRED]

          The list of S3 keys identifying the data source files.

          • (string) --

    • vpcConfig (dict) --

      If your simulation job accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and two subnet IDs.

      • subnets (list) -- [REQUIRED]

        A list of one or more subnet IDs in your VPC.

        • (string) --

      • securityGroups (list) --

        A list of one or more security groups IDs in your VPC.

        • (string) --

      • assignPublicIp (boolean) --

        A boolean indicating whether to assign a public IP address.

    • tags (dict) --

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

      • (string) --

        • (string) --

type tags

dict

param tags

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

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{
    'arn': 'string',
    'status': 'Pending'|'InProgress'|'Failed'|'Completed'|'Canceled'|'Canceling'|'Completing'|'TimingOut'|'TimedOut',
    'createdAt': datetime(2015, 1, 1),
    'clientRequestToken': 'string',
    'batchPolicy': {
        'timeoutInSeconds': 123,
        'maxConcurrency': 123
    },
    'failureCode': 'InternalServiceError',
    'failureReason': 'string',
    'failedRequests': [
        {
            'request': {
                'outputLocation': {
                    's3Bucket': 'string',
                    's3Prefix': 'string'
                },
                'loggingConfig': {
                    'recordAllRosTopics': True|False
                },
                'maxJobDurationInSeconds': 123,
                'iamRole': 'string',
                'failureBehavior': 'Fail'|'Continue',
                'useDefaultApplications': True|False,
                'robotApplications': [
                    {
                        'application': 'string',
                        'applicationVersion': 'string',
                        'launchConfig': {
                            'packageName': 'string',
                            'launchFile': 'string',
                            'environmentVariables': {
                                'string': 'string'
                            },
                            'portForwardingConfig': {
                                'portMappings': [
                                    {
                                        'jobPort': 123,
                                        'applicationPort': 123,
                                        'enableOnPublicIp': True|False
                                    },
                                ]
                            },
                            'streamUI': True|False
                        }
                    },
                ],
                'simulationApplications': [
                    {
                        'application': 'string',
                        'applicationVersion': 'string',
                        'launchConfig': {
                            'packageName': 'string',
                            'launchFile': 'string',
                            'environmentVariables': {
                                'string': 'string'
                            },
                            'portForwardingConfig': {
                                'portMappings': [
                                    {
                                        'jobPort': 123,
                                        'applicationPort': 123,
                                        'enableOnPublicIp': True|False
                                    },
                                ]
                            },
                            'streamUI': True|False
                        }
                    },
                ],
                'dataSources': [
                    {
                        'name': 'string',
                        's3Bucket': 'string',
                        's3Keys': [
                            'string',
                        ]
                    },
                ],
                'vpcConfig': {
                    'subnets': [
                        'string',
                    ],
                    'securityGroups': [
                        'string',
                    ],
                    'assignPublicIp': True|False
                },
                'tags': {
                    'string': 'string'
                }
            },
            'failureReason': 'string',
            'failureCode': 'InternalServiceError'|'RobotApplicationCrash'|'SimulationApplicationCrash'|'BadPermissionsRobotApplication'|'BadPermissionsSimulationApplication'|'BadPermissionsS3Object'|'BadPermissionsS3Output'|'BadPermissionsCloudwatchLogs'|'SubnetIpLimitExceeded'|'ENILimitExceeded'|'BadPermissionsUserCredentials'|'InvalidBundleRobotApplication'|'InvalidBundleSimulationApplication'|'InvalidS3Resource'|'LimitExceeded'|'MismatchedEtag'|'RobotApplicationVersionMismatchedEtag'|'SimulationApplicationVersionMismatchedEtag'|'ResourceNotFound'|'RequestThrottled'|'BatchTimedOut'|'BatchCanceled'|'InvalidInput'|'WrongRegionS3Bucket'|'WrongRegionS3Output'|'WrongRegionRobotApplication'|'WrongRegionSimulationApplication',
            'failedAt': datetime(2015, 1, 1)
        },
    ],
    'pendingRequests': [
        {
            'outputLocation': {
                's3Bucket': 'string',
                's3Prefix': 'string'
            },
            'loggingConfig': {
                'recordAllRosTopics': True|False
            },
            'maxJobDurationInSeconds': 123,
            'iamRole': 'string',
            'failureBehavior': 'Fail'|'Continue',
            'useDefaultApplications': True|False,
            'robotApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'simulationApplications': [
                {
                    'application': 'string',
                    'applicationVersion': 'string',
                    'launchConfig': {
                        'packageName': 'string',
                        'launchFile': 'string',
                        'environmentVariables': {
                            'string': 'string'
                        },
                        'portForwardingConfig': {
                            'portMappings': [
                                {
                                    'jobPort': 123,
                                    'applicationPort': 123,
                                    'enableOnPublicIp': True|False
                                },
                            ]
                        },
                        'streamUI': True|False
                    }
                },
            ],
            'dataSources': [
                {
                    'name': 'string',
                    's3Bucket': 'string',
                    's3Keys': [
                        'string',
                    ]
                },
            ],
            'vpcConfig': {
                'subnets': [
                    'string',
                ],
                'securityGroups': [
                    'string',
                ],
                'assignPublicIp': True|False
            },
            'tags': {
                'string': 'string'
            }
        },
    ],
    'createdRequests': [
        {
            'arn': 'string',
            'lastUpdatedAt': datetime(2015, 1, 1),
            'name': 'string',
            'status': 'Pending'|'Preparing'|'Running'|'Restarting'|'Completed'|'Failed'|'RunningFailed'|'Terminating'|'Terminated'|'Canceled',
            'simulationApplicationNames': [
                'string',
            ],
            'robotApplicationNames': [
                'string',
            ],
            'dataSourceNames': [
                'string',
            ]
        },
    ],
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • arn (string) --

      The Amazon Resource Name (arn) of the batch.

    • status (string) --

      The status of the simulation job batch.

      Pending

      The simulation job batch request is pending.

      InProgress

      The simulation job batch is in progress.

      Failed

      The simulation job batch failed. One or more simulation job requests could not be completed due to an internal failure (like InternalServiceError ). See failureCode and failureReason for more information.

      Completed

      The simulation batch job completed. A batch is complete when (1) there are no pending simulation job requests in the batch and none of the failed simulation job requests are due to InternalServiceError and (2) when all created simulation jobs have reached a terminal state (for example, Completed or Failed ).

      Canceled

      The simulation batch job was cancelled.

      Canceling

      The simulation batch job is being cancelled.

      Completing

      The simulation batch job is completing.

      TimingOut

      The simulation job batch is timing out.

      If a batch timing out, and there are pending requests that were failing due to an internal failure (like InternalServiceError ), the batch status will be Failed . If there are no such failing request, the batch status will be TimedOut .

      TimedOut

      The simulation batch job timed out.

    • createdAt (datetime) --

      The time, in milliseconds since the epoch, when the simulation job batch was created.

    • clientRequestToken (string) --

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

    • batchPolicy (dict) --

      The batch policy.

      • timeoutInSeconds (integer) --

        The amount of time, in seconds, to wait for the batch to complete.

        If a batch times out, and there are pending requests that were failing due to an internal failure (like InternalServiceError ), they will be moved to the failed list and the batch status will be Failed . If the pending requests were failing for any other reason, the failed pending requests will be moved to the failed list and the batch status will be TimedOut .

      • maxConcurrency (integer) --

        The number of active simulation jobs create as part of the batch that can be in an active state at the same time.

        Active states include: Pending , Preparing , Running , Restarting , RunningFailed and Terminating . All other states are terminal states.

    • failureCode (string) --

      The failure code if the simulation job batch failed.

    • failureReason (string) --

      The reason the simulation job batch failed.

    • failedRequests (list) --

      A list of failed simulation job requests. The request failed to be created into a simulation job. Failed requests do not have a simulation job ID.

      • (dict) --

        Information about a failed create simulation job request.

        • request (dict) --

          The simulation job request.

          • outputLocation (dict) --

            The output location.

            • s3Bucket (string) --

              The S3 bucket for output.

            • s3Prefix (string) --

              The S3 folder in the s3Bucket where output files will be placed.

          • loggingConfig (dict) --

            The logging configuration.

            • recordAllRosTopics (boolean) --

              A boolean indicating whether to record all ROS topics.

          • maxJobDurationInSeconds (integer) --

            The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

          • iamRole (string) --

            The IAM role name that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job.

          • failureBehavior (string) --

            The failure behavior the simulation job.

            Continue

            Restart the simulation job in the same host instance.

            Fail

            Stop the simulation job and terminate the instance.

          • useDefaultApplications (boolean) --

            Boolean indicating whether to use default simulation tool applications.

          • robotApplications (list) --

            The robot applications to use in the simulation job.

            • (dict) --

              Application configuration information for a robot.

              • application (string) --

                The application information for the robot application.

              • applicationVersion (string) --

                The version of the robot application.

              • launchConfig (dict) --

                The launch configuration for the robot application.

                • packageName (string) --

                  The package name.

                • launchFile (string) --

                  The launch file name.

                • environmentVariables (dict) --

                  The environment variables for the application launch.

                  • (string) --

                    • (string) --

                • portForwardingConfig (dict) --

                  The port forwarding configuration.

                  • portMappings (list) --

                    The port mappings for the configuration.

                    • (dict) --

                      An object representing a port mapping.

                      • jobPort (integer) --

                        The port number on the simulation job instance to use as a remote connection point.

                      • applicationPort (integer) --

                        The port number on the application.

                      • enableOnPublicIp (boolean) --

                        A Boolean indicating whether to enable this port mapping on public IP.

                • streamUI (boolean) --

                  Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

          • simulationApplications (list) --

            The simulation applications to use in the simulation job.

            • (dict) --

              Information about a simulation application configuration.

              • application (string) --

                The application information for the simulation application.

              • applicationVersion (string) --

                The version of the simulation application.

              • launchConfig (dict) --

                The launch configuration for the simulation application.

                • packageName (string) --

                  The package name.

                • launchFile (string) --

                  The launch file name.

                • environmentVariables (dict) --

                  The environment variables for the application launch.

                  • (string) --

                    • (string) --

                • portForwardingConfig (dict) --

                  The port forwarding configuration.

                  • portMappings (list) --

                    The port mappings for the configuration.

                    • (dict) --

                      An object representing a port mapping.

                      • jobPort (integer) --

                        The port number on the simulation job instance to use as a remote connection point.

                      • applicationPort (integer) --

                        The port number on the application.

                      • enableOnPublicIp (boolean) --

                        A Boolean indicating whether to enable this port mapping on public IP.

                • streamUI (boolean) --

                  Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

          • dataSources (list) --

            Specify data sources to mount read-only files from S3 into your simulation. These files are available under /opt/robomaker/datasources/data_source_name .

            Note

            There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig objects.

            • (dict) --

              Information about a data source.

              • name (string) --

                The name of the data source.

              • s3Bucket (string) --

                The S3 bucket where the data files are located.

              • s3Keys (list) --

                The list of S3 keys identifying the data source files.

                • (string) --

          • vpcConfig (dict) --

            If your simulation job accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and two subnet IDs.

            • subnets (list) --

              A list of one or more subnet IDs in your VPC.

              • (string) --

            • securityGroups (list) --

              A list of one or more security groups IDs in your VPC.

              • (string) --

            • assignPublicIp (boolean) --

              A boolean indicating whether to assign a public IP address.

          • tags (dict) --

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

            • (string) --

              • (string) --

        • failureReason (string) --

          The failure reason of the simulation job request.

        • failureCode (string) --

          The failure code.

        • failedAt (datetime) --

          The time, in milliseconds since the epoch, when the simulation job batch failed.

    • pendingRequests (list) --

      A list of pending simulation job requests. These requests have not yet been created into simulation jobs.

      • (dict) --

        Information about a simulation job request.

        • outputLocation (dict) --

          The output location.

          • s3Bucket (string) --

            The S3 bucket for output.

          • s3Prefix (string) --

            The S3 folder in the s3Bucket where output files will be placed.

        • loggingConfig (dict) --

          The logging configuration.

          • recordAllRosTopics (boolean) --

            A boolean indicating whether to record all ROS topics.

        • maxJobDurationInSeconds (integer) --

          The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

        • iamRole (string) --

          The IAM role name that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job.

        • failureBehavior (string) --

          The failure behavior the simulation job.

          Continue

          Restart the simulation job in the same host instance.

          Fail

          Stop the simulation job and terminate the instance.

        • useDefaultApplications (boolean) --

          Boolean indicating whether to use default simulation tool applications.

        • robotApplications (list) --

          The robot applications to use in the simulation job.

          • (dict) --

            Application configuration information for a robot.

            • application (string) --

              The application information for the robot application.

            • applicationVersion (string) --

              The version of the robot application.

            • launchConfig (dict) --

              The launch configuration for the robot application.

              • packageName (string) --

                The package name.

              • launchFile (string) --

                The launch file name.

              • environmentVariables (dict) --

                The environment variables for the application launch.

                • (string) --

                  • (string) --

              • portForwardingConfig (dict) --

                The port forwarding configuration.

                • portMappings (list) --

                  The port mappings for the configuration.

                  • (dict) --

                    An object representing a port mapping.

                    • jobPort (integer) --

                      The port number on the simulation job instance to use as a remote connection point.

                    • applicationPort (integer) --

                      The port number on the application.

                    • enableOnPublicIp (boolean) --

                      A Boolean indicating whether to enable this port mapping on public IP.

              • streamUI (boolean) --

                Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

        • simulationApplications (list) --

          The simulation applications to use in the simulation job.

          • (dict) --

            Information about a simulation application configuration.

            • application (string) --

              The application information for the simulation application.

            • applicationVersion (string) --

              The version of the simulation application.

            • launchConfig (dict) --

              The launch configuration for the simulation application.

              • packageName (string) --

                The package name.

              • launchFile (string) --

                The launch file name.

              • environmentVariables (dict) --

                The environment variables for the application launch.

                • (string) --

                  • (string) --

              • portForwardingConfig (dict) --

                The port forwarding configuration.

                • portMappings (list) --

                  The port mappings for the configuration.

                  • (dict) --

                    An object representing a port mapping.

                    • jobPort (integer) --

                      The port number on the simulation job instance to use as a remote connection point.

                    • applicationPort (integer) --

                      The port number on the application.

                    • enableOnPublicIp (boolean) --

                      A Boolean indicating whether to enable this port mapping on public IP.

              • streamUI (boolean) --

                Boolean indicating whether a streaming session will be configured for the application. If True , AWS RoboMaker will configure a connection so you can interact with your application as it is running in the simulation. You must configure and luanch the component. It must have a graphical user interface.

        • dataSources (list) --

          Specify data sources to mount read-only files from S3 into your simulation. These files are available under /opt/robomaker/datasources/data_source_name .

          Note

          There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig objects.

          • (dict) --

            Information about a data source.

            • name (string) --

              The name of the data source.

            • s3Bucket (string) --

              The S3 bucket where the data files are located.

            • s3Keys (list) --

              The list of S3 keys identifying the data source files.

              • (string) --

        • vpcConfig (dict) --

          If your simulation job accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and two subnet IDs.

          • subnets (list) --

            A list of one or more subnet IDs in your VPC.

            • (string) --

          • securityGroups (list) --

            A list of one or more security groups IDs in your VPC.

            • (string) --

          • assignPublicIp (boolean) --

            A boolean indicating whether to assign a public IP address.

        • tags (dict) --

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

          • (string) --

            • (string) --

    • createdRequests (list) --

      A list of created simulation job request summaries.

      • (dict) --

        Summary information for a simulation job.

        • arn (string) --

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

        • lastUpdatedAt (datetime) --

          The time, in milliseconds since the epoch, when the simulation job was last updated.

        • name (string) --

          The name of the simulation job.

        • status (string) --

          The status of the simulation job.

        • simulationApplicationNames (list) --

          A list of simulation job simulation application names.

          • (string) --

        • robotApplicationNames (list) --

          A list of simulation job robot application names.

          • (string) --

        • dataSourceNames (list) --

          The names of the data sources.

          • (string) --

    • tags (dict) --

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

      • (string) --

        • (string) --

SyncDeploymentJob (updated) Link ¶
Changes (response)
{'failureCode': {'InvalidGreengrassGroup', 'LambdaDeleted'}}

Syncrhonizes robots in a fleet to the latest deployment. This is helpful if robots were added after a deployment.

See also: AWS API Documentation

Request Syntax

client.sync_deployment_job(
    clientRequestToken='string',
    fleet='string'
)
type clientRequestToken

string

param clientRequestToken

[REQUIRED]

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

This field is autopopulated if not provided.

type fleet

string

param fleet

[REQUIRED]

The target fleet for the synchronization.

rtype

dict

returns

Response Syntax

{
    'arn': 'string',
    'fleet': 'string',
    'status': 'Pending'|'Preparing'|'InProgress'|'Failed'|'Succeeded'|'Canceled',
    'deploymentConfig': {
        'concurrentDeploymentPercentage': 123,
        'failureThresholdPercentage': 123,
        'robotDeploymentTimeoutInSeconds': 123,
        'downloadConditionFile': {
            'bucket': 'string',
            'key': 'string',
            'etag': 'string'
        }
    },
    'deploymentApplicationConfigs': [
        {
            'application': 'string',
            'applicationVersion': 'string',
            'launchConfig': {
                'packageName': 'string',
                'preLaunchFile': 'string',
                'launchFile': 'string',
                'postLaunchFile': 'string',
                'environmentVariables': {
                    'string': 'string'
                }
            }
        },
    ],
    'failureReason': 'string',
    'failureCode': 'ResourceNotFound'|'EnvironmentSetupError'|'EtagMismatch'|'FailureThresholdBreached'|'RobotDeploymentAborted'|'RobotDeploymentNoResponse'|'RobotAgentConnectionTimeout'|'GreengrassDeploymentFailed'|'InvalidGreengrassGroup'|'MissingRobotArchitecture'|'MissingRobotApplicationArchitecture'|'MissingRobotDeploymentResource'|'GreengrassGroupVersionDoesNotExist'|'LambdaDeleted'|'ExtractingBundleFailure'|'PreLaunchFileFailure'|'PostLaunchFileFailure'|'BadPermissionError'|'DownloadConditionFailed'|'InternalServerError',
    'createdAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • arn (string) --

      The Amazon Resource Name (ARN) of the synchronization request.

    • fleet (string) --

      The Amazon Resource Name (ARN) of the fleet.

    • status (string) --

      The status of the synchronization job.

    • deploymentConfig (dict) --

      Information about the deployment configuration.

      • concurrentDeploymentPercentage (integer) --

        The percentage of robots receiving the deployment at the same time.

      • failureThresholdPercentage (integer) --

        The percentage of deployments that need to fail before stopping deployment.

      • robotDeploymentTimeoutInSeconds (integer) --

        The amount of time, in seconds, to wait for deployment to a single robot to complete. Choose a time between 1 minute and 7 days. The default is 5 hours.

      • downloadConditionFile (dict) --

        The download condition file.

        • bucket (string) --

          The bucket containing the object.

        • key (string) --

          The key of the object.

        • etag (string) --

          The etag of the object.

    • deploymentApplicationConfigs (list) --

      Information about the deployment application configurations.

      • (dict) --

        Information about a deployment application configuration.

        • application (string) --

          The Amazon Resource Name (ARN) of the robot application.

        • applicationVersion (string) --

          The version of the application.

        • launchConfig (dict) --

          The launch configuration.

          • packageName (string) --

            The package name.

          • preLaunchFile (string) --

            The deployment pre-launch file. This file will be executed prior to the launch file.

          • launchFile (string) --

            The launch file name.

          • postLaunchFile (string) --

            The deployment post-launch file. This file will be executed after the launch file.

          • environmentVariables (dict) --

            An array of key/value pairs specifying environment variables for the robot application

            • (string) --

              • (string) --

    • failureReason (string) --

      The failure reason if the job fails.

    • failureCode (string) --

      The failure code if the job fails:

      InternalServiceError

      Internal service error.

      RobotApplicationCrash

      Robot application exited abnormally.

      SimulationApplicationCrash

      Simulation application exited abnormally.

      BadPermissionsRobotApplication

      Robot application bundle could not be downloaded.

      BadPermissionsSimulationApplication

      Simulation application bundle could not be downloaded.

      BadPermissionsS3Output

      Unable to publish outputs to customer-provided S3 bucket.

      BadPermissionsCloudwatchLogs

      Unable to publish logs to customer-provided CloudWatch Logs resource.

      SubnetIpLimitExceeded

      Subnet IP limit exceeded.

      ENILimitExceeded

      ENI limit exceeded.

      BadPermissionsUserCredentials

      Unable to use the Role provided.

      InvalidBundleRobotApplication

      Robot bundle cannot be extracted (invalid format, bundling error, or other issue).

      InvalidBundleSimulationApplication

      Simulation bundle cannot be extracted (invalid format, bundling error, or other issue).

      RobotApplicationVersionMismatchedEtag

      Etag for RobotApplication does not match value during version creation.

      SimulationApplicationVersionMismatchedEtag

      Etag for SimulationApplication does not match value during version creation.

    • createdAt (datetime) --

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