You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::RoboMaker::Client

Inherits:
Seahorse::Client::Base show all
Defined in:
(unknown)

Overview

An API client for AWS RoboMaker. To construct a client, you need to configure a :region and :credentials.

robomaker = Aws::RoboMaker::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

See #initialize for a full list of supported configuration options.

Region

You can configure a default region in the following locations:

  • ENV['AWS_REGION']
  • Aws.config[:region]

Go here for a list of supported regions.

Credentials

Default credentials are loaded automatically from the following locations:

  • ENV['AWS_ACCESS_KEY_ID'] and ENV['AWS_SECRET_ACCESS_KEY']
  • Aws.config[:credentials]
  • The shared credentials ini file at ~/.aws/credentials (more information)
  • From an instance profile when running on EC2

You can also construct a credentials object from one of the following classes:

Alternatively, you configure credentials with :access_key_id and :secret_access_key:

# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))

Aws::RoboMaker::Client.new(
  access_key_id: creds['access_key_id'],
  secret_access_key: creds['secret_access_key']
)

Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

Constructor collapse

API Operations collapse

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Base

add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options = {}) ⇒ Aws::RoboMaker::Client

Constructs an API client.

Options Hash (options):

  • :access_key_id (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :active_endpoint_cache (Boolean)

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false. See Plugins::EndpointDiscovery for more details.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types. See Plugins::ParamConverter for more details.

  • :credentials (required, Credentials)

    Your AWS credentials. The following locations will be searched in order for credentials:

    • :access_key_id, :secret_access_key, and :session_token options
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • HOME/.aws/credentials shared credentials file
    • EC2 instance profile credentials See Plugins::RequestSigner for more details.
  • :disable_host_prefix_injection (Boolean)

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available. See Plugins::EndpointPattern for more details.

  • :endpoint (String)

    A default endpoint is constructed from the :region. See Plugins::RegionalEndpoint for more details.

  • :endpoint_cache_max_entries (Integer)

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000. See Plugins::EndpointDiscovery for more details.

  • :endpoint_cache_max_threads (Integer)

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10. See Plugins::EndpointDiscovery for more details.

  • :endpoint_cache_poll_interval (Integer)

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec. See Plugins::EndpointDiscovery for more details.

  • :endpoint_discovery (Boolean)

    When set to true, endpoint discovery will be enabled for operations when available. Defaults to false. See Plugins::EndpointDiscovery for more details.

  • :http_continue_timeout (Float) — default: 1

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_idle_timeout (Integer) — default: 5

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_open_timeout (Integer) — default: 15

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_proxy (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_read_timeout (Integer) — default: 60

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_wire_trace (Boolean) — default: false

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the logger at. See Plugins::Logging for more details.

  • :log_formatter (Logging::LogFormatter)

    The log formatter. Defaults to Seahorse::Client::Logging::Formatter.default. See Plugins::Logging for more details.

  • :logger (Logger) — default: nil

    The Logger instance to send log messages to. If this option is not set, logging will be disabled. See Plugins::Logging for more details.

  • :profile (String)

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used. See Plugins::RequestSigner for more details.

  • :raise_response_errors (Boolean) — default: true

    When true, response errors are raised. See Seahorse::Client::Plugins::RaiseResponseErrors for more details.

  • :region (required, String)

    The AWS region to connect to. The region is used to construct the client endpoint. Defaults to ENV['AWS_REGION']. Also checks AMAZON_REGION and AWS_DEFAULT_REGION. See Plugins::RegionalEndpoint for more details.

  • :retry_limit (Integer) — default: 3

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors and auth errors from expired credentials. See Plugins::RetryErrors for more details.

  • :secret_access_key (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :session_token (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :ssl_ca_bundle (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_ca_directory (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_ca_store (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_verify_peer (Boolean) — default: true

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :stub_responses (Boolean) — default: false

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled. See Plugins::StubResponses for more details.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request. See Plugins::ParamValidator for more details.

Instance Method Details

#batch_describe_simulation_job(options = {}) ⇒ Types::BatchDescribeSimulationJobResponse

Describes one or more simulation jobs.

Examples:

Request syntax with placeholder values


resp = client.batch_describe_simulation_job({
  jobs: ["Arn"], # required
})

Response structure


resp.jobs #=> Array
resp.jobs[0].arn #=> String
resp.jobs[0].name #=> String
resp.jobs[0].status #=> String, one of "Pending", "Preparing", "Running", "Restarting", "Completed", "Failed", "RunningFailed", "Terminating", "Terminated", "Canceled"
resp.jobs[0].last_started_at #=> Time
resp.jobs[0].last_updated_at #=> Time
resp.jobs[0].failure_behavior #=> String, one of "Fail", "Continue"
resp.jobs[0].failure_code #=> String, one of "InternalServiceError", "RobotApplicationCrash", "SimulationApplicationCrash", "BadPermissionsRobotApplication", "BadPermissionsSimulationApplication", "BadPermissionsS3Object", "BadPermissionsS3Output", "BadPermissionsCloudwatchLogs", "SubnetIpLimitExceeded", "ENILimitExceeded", "BadPermissionsUserCredentials", "InvalidBundleRobotApplication", "InvalidBundleSimulationApplication", "InvalidS3Resource", "MismatchedEtag", "RobotApplicationVersionMismatchedEtag", "SimulationApplicationVersionMismatchedEtag", "ResourceNotFound", "InvalidInput", "WrongRegionS3Bucket", "WrongRegionS3Output", "WrongRegionRobotApplication", "WrongRegionSimulationApplication"
resp.jobs[0].failure_reason #=> String
resp.jobs[0].client_request_token #=> String
resp.jobs[0].output_location.s3_bucket #=> String
resp.jobs[0].output_location.s3_prefix #=> String
resp.jobs[0].logging_config.record_all_ros_topics #=> true/false
resp.jobs[0].max_job_duration_in_seconds #=> Integer
resp.jobs[0].simulation_time_millis #=> Integer
resp.jobs[0].iam_role #=> String
resp.jobs[0].robot_applications #=> Array
resp.jobs[0].robot_applications[0].application #=> String
resp.jobs[0].robot_applications[0].application_version #=> String
resp.jobs[0].robot_applications[0].launch_config.package_name #=> String
resp.jobs[0].robot_applications[0].launch_config.launch_file #=> String
resp.jobs[0].robot_applications[0].launch_config.environment_variables #=> Hash
resp.jobs[0].robot_applications[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.jobs[0].robot_applications[0].launch_config.port_forwarding_config.port_mappings #=> Array
resp.jobs[0].robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].job_port #=> Integer
resp.jobs[0].robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].application_port #=> Integer
resp.jobs[0].robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].enable_on_public_ip #=> true/false
resp.jobs[0].simulation_applications #=> Array
resp.jobs[0].simulation_applications[0].application #=> String
resp.jobs[0].simulation_applications[0].application_version #=> String
resp.jobs[0].simulation_applications[0].launch_config.package_name #=> String
resp.jobs[0].simulation_applications[0].launch_config.launch_file #=> String
resp.jobs[0].simulation_applications[0].launch_config.environment_variables #=> Hash
resp.jobs[0].simulation_applications[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.jobs[0].simulation_applications[0].launch_config.port_forwarding_config.port_mappings #=> Array
resp.jobs[0].simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].job_port #=> Integer
resp.jobs[0].simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].application_port #=> Integer
resp.jobs[0].simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].enable_on_public_ip #=> true/false
resp.jobs[0].data_sources #=> Array
resp.jobs[0].data_sources[0].name #=> String
resp.jobs[0].data_sources[0].s3_bucket #=> String
resp.jobs[0].data_sources[0].s3_keys #=> Array
resp.jobs[0].data_sources[0].s3_keys[0].s3_key #=> String
resp.jobs[0].data_sources[0].s3_keys[0].etag #=> String
resp.jobs[0].tags #=> Hash
resp.jobs[0].tags["TagKey"] #=> String
resp.jobs[0].vpc_config.subnets #=> Array
resp.jobs[0].vpc_config.subnets[0] #=> String
resp.jobs[0].vpc_config.security_groups #=> Array
resp.jobs[0].vpc_config.security_groups[0] #=> String
resp.jobs[0].vpc_config.vpc_id #=> String
resp.jobs[0].vpc_config.assign_public_ip #=> true/false
resp.jobs[0].network_interface.network_interface_id #=> String
resp.jobs[0].network_interface.private_ip_address #=> String
resp.jobs[0].network_interface.public_ip_address #=> String
resp.unprocessed_jobs #=> Array
resp.unprocessed_jobs[0] #=> String

Options Hash (options):

  • :jobs (required, Array<String>)

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

Returns:

See Also:

#cancel_deployment_job(options = {}) ⇒ Struct

Cancels the specified deployment job.

Examples:

Request syntax with placeholder values


resp = client.cancel_deployment_job({
  job: "Arn", # required
})

Options Hash (options):

  • :job (required, String)

    The deployment job ARN to cancel.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#cancel_simulation_job(options = {}) ⇒ Struct

Cancels the specified simulation job.

Examples:

Request syntax with placeholder values


resp = client.cancel_simulation_job({
  job: "Arn", # required
})

Options Hash (options):

  • :job (required, String)

    The simulation job ARN to cancel.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#create_deployment_job(options = {}) ⇒ Types::CreateDeploymentJobResponse

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

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

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

Examples:

Request syntax with placeholder values


resp = client.create_deployment_job({
  deployment_config: {
    concurrent_deployment_percentage: 1,
    failure_threshold_percentage: 1,
    robot_deployment_timeout_in_seconds: 1,
  },
  client_request_token: "ClientRequestToken", # required
  fleet: "Arn", # required
  deployment_application_configs: [ # required
    {
      application: "Arn", # required
      application_version: "DeploymentVersion", # required
      launch_config: { # required
        package_name: "Command", # required
        pre_launch_file: "Path",
        launch_file: "Command", # required
        post_launch_file: "Path",
        environment_variables: {
          "EnvironmentVariableKey" => "EnvironmentVariableValue",
        },
      },
    },
  ],
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.arn #=> String
resp.fleet #=> String
resp.status #=> String, one of "Pending", "Preparing", "InProgress", "Failed", "Succeeded", "Canceled"
resp.deployment_application_configs #=> Array
resp.deployment_application_configs[0].application #=> String
resp.deployment_application_configs[0].application_version #=> String
resp.deployment_application_configs[0].launch_config.package_name #=> String
resp.deployment_application_configs[0].launch_config.pre_launch_file #=> String
resp.deployment_application_configs[0].launch_config.launch_file #=> String
resp.deployment_application_configs[0].launch_config.post_launch_file #=> String
resp.deployment_application_configs[0].launch_config.environment_variables #=> Hash
resp.deployment_application_configs[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.failure_reason #=> String
resp.failure_code #=> String, one of "ResourceNotFound", "EnvironmentSetupError", "EtagMismatch", "FailureThresholdBreached", "RobotDeploymentAborted", "RobotDeploymentNoResponse", "RobotAgentConnectionTimeout", "GreengrassDeploymentFailed", "MissingRobotArchitecture", "MissingRobotApplicationArchitecture", "MissingRobotDeploymentResource", "GreengrassGroupVersionDoesNotExist", "ExtractingBundleFailure", "PreLaunchFileFailure", "PostLaunchFileFailure", "BadPermissionError", "InternalServerError"
resp.created_at #=> Time
resp.deployment_config.concurrent_deployment_percentage #=> Integer
resp.deployment_config.failure_threshold_percentage #=> Integer
resp.deployment_config.robot_deployment_timeout_in_seconds #=> Integer
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :deployment_config (Types::DeploymentConfig)

    The requested deployment configuration.

  • :client_request_token (required, String)

    This parameter will be auto-filled on your behalf with a random UUIDv4 when no value is provided. Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

  • :fleet (required, String)

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

  • :deployment_application_configs (required, Array<Types::DeploymentApplicationConfig>)

    The deployment application configuration.

  • :tags (Hash<String,String>)

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

Returns:

See Also:

#create_fleet(options = {}) ⇒ Types::CreateFleetResponse

Creates a fleet, a logical group of robots running the same robot application.

Examples:

Request syntax with placeholder values


resp = client.create_fleet({
  name: "Name", # required
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.created_at #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :name (required, String)

    The name of the fleet.

  • :tags (Hash<String,String>)

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

Returns:

See Also:

#create_robot(options = {}) ⇒ Types::CreateRobotResponse

Creates a robot.

Examples:

Request syntax with placeholder values


resp = client.create_robot({
  name: "Name", # required
  architecture: "X86_64", # required, accepts X86_64, ARM64, ARMHF
  greengrass_group_id: "Id", # required
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.created_at #=> Time
resp.greengrass_group_id #=> String
resp.architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :name (required, String)

    The name for the robot.

  • :architecture (required, String)

    The target architecture of the robot.

  • :greengrass_group_id (required, String)

    The Greengrass group id.

  • :tags (Hash<String,String>)

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

Returns:

See Also:

#create_robot_application(options = {}) ⇒ Types::CreateRobotApplicationResponse

Creates a robot application.

Examples:

Request syntax with placeholder values


resp = client.create_robot_application({
  name: "Name", # required
  sources: [ # required
    {
      s3_bucket: "S3Bucket",
      s3_key: "S3Key",
      architecture: "X86_64", # accepts X86_64, ARM64, ARMHF
    },
  ],
  robot_software_suite: { # required
    name: "ROS", # accepts ROS, ROS2
    version: "Kinetic", # accepts Kinetic, Melodic, Dashing
  },
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.last_updated_at #=> Time
resp.revision_id #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :name (required, String)

    The name of the robot application.

  • :sources (required, Array<Types::SourceConfig>)

    The sources of the robot application.

  • :robot_software_suite (required, Types::RobotSoftwareSuite)

    The robot software suite used by the robot application.

  • :tags (Hash<String,String>)

    A map that contains tag keys and tag values that are attached to the robot application.

Returns:

See Also:

#create_robot_application_version(options = {}) ⇒ Types::CreateRobotApplicationVersionResponse

Creates a version of a robot application.

Examples:

Request syntax with placeholder values


resp = client.create_robot_application_version({
  application: "Arn", # required
  current_revision_id: "RevisionId",
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.last_updated_at #=> Time
resp.revision_id #=> String

Options Hash (options):

  • :application (required, String)

    The application information for the robot application.

  • :current_revision_id (String)

    The current revision id for the robot application. If you provide a value and it matches the latest revision ID, a new version will be created.

Returns:

See Also:

#create_simulation_application(options = {}) ⇒ Types::CreateSimulationApplicationResponse

Creates a simulation application.

Examples:

Request syntax with placeholder values


resp = client.create_simulation_application({
  name: "Name", # required
  sources: [ # required
    {
      s3_bucket: "S3Bucket",
      s3_key: "S3Key",
      architecture: "X86_64", # accepts X86_64, ARM64, ARMHF
    },
  ],
  simulation_software_suite: { # required
    name: "Gazebo", # accepts Gazebo, RosbagPlay
    version: "SimulationSoftwareSuiteVersionType",
  },
  robot_software_suite: { # required
    name: "ROS", # accepts ROS, ROS2
    version: "Kinetic", # accepts Kinetic, Melodic, Dashing
  },
  rendering_engine: {
    name: "OGRE", # accepts OGRE
    version: "RenderingEngineVersionType",
  },
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.simulation_software_suite.name #=> String, one of "Gazebo", "RosbagPlay"
resp.simulation_software_suite.version #=> String
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.rendering_engine.name #=> String, one of "OGRE"
resp.rendering_engine.version #=> String
resp.last_updated_at #=> Time
resp.revision_id #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :name (required, String)

    The name of the simulation application.

  • :sources (required, Array<Types::SourceConfig>)

    The sources of the simulation application.

  • :simulation_software_suite (required, Types::SimulationSoftwareSuite)

    The simulation software suite used by the simulation application.

  • :robot_software_suite (required, Types::RobotSoftwareSuite)

    The robot software suite of the simulation application.

  • :rendering_engine (Types::RenderingEngine)

    The rendering engine for the simulation application.

  • :tags (Hash<String,String>)

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

Returns:

See Also:

#create_simulation_application_version(options = {}) ⇒ Types::CreateSimulationApplicationVersionResponse

Creates a simulation application with a specific revision id.

Examples:

Request syntax with placeholder values


resp = client.create_simulation_application_version({
  application: "Arn", # required
  current_revision_id: "RevisionId",
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.simulation_software_suite.name #=> String, one of "Gazebo", "RosbagPlay"
resp.simulation_software_suite.version #=> String
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.rendering_engine.name #=> String, one of "OGRE"
resp.rendering_engine.version #=> String
resp.last_updated_at #=> Time
resp.revision_id #=> String

Options Hash (options):

  • :application (required, String)

    The application information for the simulation application.

  • :current_revision_id (String)

    The current revision id for the simulation application. If you provide a value and it matches the latest revision ID, a new version will be created.

Returns:

See Also:

#create_simulation_job(options = {}) ⇒ Types::CreateSimulationJobResponse

Creates a simulation job.

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

Examples:

Request syntax with placeholder values


resp = client.create_simulation_job({
  client_request_token: "ClientRequestToken",
  output_location: {
    s3_bucket: "S3Bucket",
    s3_prefix: "S3Key",
  },
  logging_config: {
    record_all_ros_topics: false, # required
  },
  max_job_duration_in_seconds: 1, # required
  iam_role: "IamRole", # required
  failure_behavior: "Fail", # accepts Fail, Continue
  robot_applications: [
    {
      application: "Arn", # required
      application_version: "Version",
      launch_config: { # required
        package_name: "Command", # required
        launch_file: "Command", # required
        environment_variables: {
          "EnvironmentVariableKey" => "EnvironmentVariableValue",
        },
        port_forwarding_config: {
          port_mappings: [
            {
              job_port: 1, # required
              application_port: 1, # required
              enable_on_public_ip: false,
            },
          ],
        },
      },
    },
  ],
  simulation_applications: [
    {
      application: "Arn", # required
      application_version: "Version",
      launch_config: { # required
        package_name: "Command", # required
        launch_file: "Command", # required
        environment_variables: {
          "EnvironmentVariableKey" => "EnvironmentVariableValue",
        },
        port_forwarding_config: {
          port_mappings: [
            {
              job_port: 1, # required
              application_port: 1, # required
              enable_on_public_ip: false,
            },
          ],
        },
      },
    },
  ],
  data_sources: [
    {
      name: "Name", # required
      s3_bucket: "S3Bucket", # required
      s3_keys: ["S3Key"], # required
    },
  ],
  tags: {
    "TagKey" => "TagValue",
  },
  vpc_config: {
    subnets: ["NonEmptyString"], # required
    security_groups: ["NonEmptyString"],
    assign_public_ip: false,
  },
})

Response structure


resp.arn #=> String
resp.status #=> String, one of "Pending", "Preparing", "Running", "Restarting", "Completed", "Failed", "RunningFailed", "Terminating", "Terminated", "Canceled"
resp.last_started_at #=> Time
resp.last_updated_at #=> Time
resp.failure_behavior #=> String, one of "Fail", "Continue"
resp.failure_code #=> String, one of "InternalServiceError", "RobotApplicationCrash", "SimulationApplicationCrash", "BadPermissionsRobotApplication", "BadPermissionsSimulationApplication", "BadPermissionsS3Object", "BadPermissionsS3Output", "BadPermissionsCloudwatchLogs", "SubnetIpLimitExceeded", "ENILimitExceeded", "BadPermissionsUserCredentials", "InvalidBundleRobotApplication", "InvalidBundleSimulationApplication", "InvalidS3Resource", "MismatchedEtag", "RobotApplicationVersionMismatchedEtag", "SimulationApplicationVersionMismatchedEtag", "ResourceNotFound", "InvalidInput", "WrongRegionS3Bucket", "WrongRegionS3Output", "WrongRegionRobotApplication", "WrongRegionSimulationApplication"
resp.client_request_token #=> String
resp.output_location.s3_bucket #=> String
resp.output_location.s3_prefix #=> String
resp.logging_config.record_all_ros_topics #=> true/false
resp.max_job_duration_in_seconds #=> Integer
resp.simulation_time_millis #=> Integer
resp.iam_role #=> String
resp.robot_applications #=> Array
resp.robot_applications[0].application #=> String
resp.robot_applications[0].application_version #=> String
resp.robot_applications[0].launch_config.package_name #=> String
resp.robot_applications[0].launch_config.launch_file #=> String
resp.robot_applications[0].launch_config.environment_variables #=> Hash
resp.robot_applications[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings #=> Array
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].job_port #=> Integer
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].application_port #=> Integer
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].enable_on_public_ip #=> true/false
resp.simulation_applications #=> Array
resp.simulation_applications[0].application #=> String
resp.simulation_applications[0].application_version #=> String
resp.simulation_applications[0].launch_config.package_name #=> String
resp.simulation_applications[0].launch_config.launch_file #=> String
resp.simulation_applications[0].launch_config.environment_variables #=> Hash
resp.simulation_applications[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings #=> Array
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].job_port #=> Integer
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].application_port #=> Integer
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].enable_on_public_ip #=> true/false
resp.data_sources #=> Array
resp.data_sources[0].name #=> String
resp.data_sources[0].s3_bucket #=> String
resp.data_sources[0].s3_keys #=> Array
resp.data_sources[0].s3_keys[0].s3_key #=> String
resp.data_sources[0].s3_keys[0].etag #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String
resp.vpc_config.subnets #=> Array
resp.vpc_config.subnets[0] #=> String
resp.vpc_config.security_groups #=> Array
resp.vpc_config.security_groups[0] #=> String
resp.vpc_config.vpc_id #=> String
resp.vpc_config.assign_public_ip #=> true/false

Options Hash (options):

  • :client_request_token (String)

    This parameter will be auto-filled on your behalf with a random UUIDv4 when no value is provided. Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

  • :output_location (Types::OutputLocation)

    Location for output files generated by the simulation job.

  • :logging_config (Types::LoggingConfig)

    The logging configuration.

  • :max_job_duration_in_seconds (required, Integer)

    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.

  • :iam_role (required, 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.

  • :failure_behavior (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.

  • :robot_applications (Array<Types::RobotApplicationConfig>)

    The robot application to use in the simulation job.

  • :simulation_applications (Array<Types::SimulationApplicationConfig>)

    The simulation application to use in the simulation job.

  • :data_sources (Array<Types::DataSourceConfig>)

    The data sources for the simulation job.

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

  • :tags (Hash<String,String>)

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

  • :vpc_config (Types::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.

Returns:

See Also:

#delete_fleet(options = {}) ⇒ Struct

Deletes a fleet.

Examples:

Request syntax with placeholder values


resp = client.delete_fleet({
  fleet: "Arn", # required
})

Options Hash (options):

  • :fleet (required, String)

    The Amazon Resource Name (ARN) of the fleet.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#delete_robot(options = {}) ⇒ Struct

Deletes a robot.

Examples:

Request syntax with placeholder values


resp = client.delete_robot({
  robot: "Arn", # required
})

Options Hash (options):

  • :robot (required, String)

    The Amazon Resource Name (ARN) of the robot.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#delete_robot_application(options = {}) ⇒ Struct

Deletes a robot application.

Examples:

Request syntax with placeholder values


resp = client.delete_robot_application({
  application: "Arn", # required
  application_version: "Version",
})

Options Hash (options):

  • :application (required, String)

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

  • :application_version (String)

    The version of the robot application to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#delete_simulation_application(options = {}) ⇒ Struct

Deletes a simulation application.

Examples:

Request syntax with placeholder values


resp = client.delete_simulation_application({
  application: "Arn", # required
  application_version: "Version",
})

Options Hash (options):

  • :application (required, String)

    The application information for the simulation application to delete.

  • :application_version (String)

    The version of the simulation application to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#deregister_robot(options = {}) ⇒ Types::DeregisterRobotResponse

Deregisters a robot.

Examples:

Request syntax with placeholder values


resp = client.deregister_robot({
  fleet: "Arn", # required
  robot: "Arn", # required
})

Response structure


resp.fleet #=> String
resp.robot #=> String

Options Hash (options):

  • :fleet (required, String)

    The Amazon Resource Name (ARN) of the fleet.

  • :robot (required, String)

    The Amazon Resource Name (ARN) of the robot.

Returns:

See Also:

#describe_deployment_job(options = {}) ⇒ Types::DescribeDeploymentJobResponse

Describes a deployment job.

Examples:

Request syntax with placeholder values


resp = client.describe_deployment_job({
  job: "Arn", # required
})

Response structure


resp.arn #=> String
resp.fleet #=> String
resp.status #=> String, one of "Pending", "Preparing", "InProgress", "Failed", "Succeeded", "Canceled"
resp.deployment_config.concurrent_deployment_percentage #=> Integer
resp.deployment_config.failure_threshold_percentage #=> Integer
resp.deployment_config.robot_deployment_timeout_in_seconds #=> Integer
resp.deployment_application_configs #=> Array
resp.deployment_application_configs[0].application #=> String
resp.deployment_application_configs[0].application_version #=> String
resp.deployment_application_configs[0].launch_config.package_name #=> String
resp.deployment_application_configs[0].launch_config.pre_launch_file #=> String
resp.deployment_application_configs[0].launch_config.launch_file #=> String
resp.deployment_application_configs[0].launch_config.post_launch_file #=> String
resp.deployment_application_configs[0].launch_config.environment_variables #=> Hash
resp.deployment_application_configs[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.failure_reason #=> String
resp.failure_code #=> String, one of "ResourceNotFound", "EnvironmentSetupError", "EtagMismatch", "FailureThresholdBreached", "RobotDeploymentAborted", "RobotDeploymentNoResponse", "RobotAgentConnectionTimeout", "GreengrassDeploymentFailed", "MissingRobotArchitecture", "MissingRobotApplicationArchitecture", "MissingRobotDeploymentResource", "GreengrassGroupVersionDoesNotExist", "ExtractingBundleFailure", "PreLaunchFileFailure", "PostLaunchFileFailure", "BadPermissionError", "InternalServerError"
resp.created_at #=> Time
resp.robot_deployment_summary #=> Array
resp.robot_deployment_summary[0].arn #=> String
resp.robot_deployment_summary[0].deployment_start_time #=> Time
resp.robot_deployment_summary[0].deployment_finish_time #=> Time
resp.robot_deployment_summary[0].status #=> String, one of "Available", "Registered", "PendingNewDeployment", "Deploying", "Failed", "InSync", "NoResponse"
resp.robot_deployment_summary[0].progress_detail.current_progress #=> String, one of "Validating", "DownloadingExtracting", "ExecutingPreLaunch", "Launching", "ExecutingPostLaunch", "Finished"
resp.robot_deployment_summary[0].progress_detail.percent_done #=> Float
resp.robot_deployment_summary[0].progress_detail.estimated_time_remaining_seconds #=> Integer
resp.robot_deployment_summary[0].progress_detail.target_resource #=> String
resp.robot_deployment_summary[0].failure_reason #=> String
resp.robot_deployment_summary[0].failure_code #=> String, one of "ResourceNotFound", "EnvironmentSetupError", "EtagMismatch", "FailureThresholdBreached", "RobotDeploymentAborted", "RobotDeploymentNoResponse", "RobotAgentConnectionTimeout", "GreengrassDeploymentFailed", "MissingRobotArchitecture", "MissingRobotApplicationArchitecture", "MissingRobotDeploymentResource", "GreengrassGroupVersionDoesNotExist", "ExtractingBundleFailure", "PreLaunchFileFailure", "PostLaunchFileFailure", "BadPermissionError", "InternalServerError"
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :job (required, String)

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

Returns:

See Also:

#describe_fleet(options = {}) ⇒ Types::DescribeFleetResponse

Describes a fleet.

Examples:

Request syntax with placeholder values


resp = client.describe_fleet({
  fleet: "Arn", # required
})

Response structure


resp.name #=> String
resp.arn #=> String
resp.robots #=> Array
resp.robots[0].arn #=> String
resp.robots[0].name #=> String
resp.robots[0].fleet_arn #=> String
resp.robots[0].status #=> String, one of "Available", "Registered", "PendingNewDeployment", "Deploying", "Failed", "InSync", "NoResponse"
resp.robots[0].green_grass_group_id #=> String
resp.robots[0].created_at #=> Time
resp.robots[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.robots[0].last_deployment_job #=> String
resp.robots[0].last_deployment_time #=> Time
resp.created_at #=> Time
resp.last_deployment_status #=> String, one of "Pending", "Preparing", "InProgress", "Failed", "Succeeded", "Canceled"
resp.last_deployment_job #=> String
resp.last_deployment_time #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :fleet (required, String)

    The Amazon Resource Name (ARN) of the fleet.

Returns:

See Also:

#describe_robot(options = {}) ⇒ Types::DescribeRobotResponse

Describes a robot.

Examples:

Request syntax with placeholder values


resp = client.describe_robot({
  robot: "Arn", # required
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.fleet_arn #=> String
resp.status #=> String, one of "Available", "Registered", "PendingNewDeployment", "Deploying", "Failed", "InSync", "NoResponse"
resp.greengrass_group_id #=> String
resp.created_at #=> Time
resp.architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.last_deployment_job #=> String
resp.last_deployment_time #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :robot (required, String)

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

Returns:

See Also:

#describe_robot_application(options = {}) ⇒ Types::DescribeRobotApplicationResponse

Describes a robot application.

Examples:

Request syntax with placeholder values


resp = client.describe_robot_application({
  application: "Arn", # required
  application_version: "Version",
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.revision_id #=> String
resp.last_updated_at #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :application (required, String)

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

  • :application_version (String)

    The version of the robot application to describe.

Returns:

See Also:

#describe_simulation_application(options = {}) ⇒ Types::DescribeSimulationApplicationResponse

Describes a simulation application.

Examples:

Request syntax with placeholder values


resp = client.describe_simulation_application({
  application: "Arn", # required
  application_version: "Version",
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.simulation_software_suite.name #=> String, one of "Gazebo", "RosbagPlay"
resp.simulation_software_suite.version #=> String
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.rendering_engine.name #=> String, one of "OGRE"
resp.rendering_engine.version #=> String
resp.revision_id #=> String
resp.last_updated_at #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :application (required, String)

    The application information for the simulation application.

  • :application_version (String)

    The version of the simulation application to describe.

Returns:

See Also:

#describe_simulation_job(options = {}) ⇒ Types::DescribeSimulationJobResponse

Describes a simulation job.

Examples:

Request syntax with placeholder values


resp = client.describe_simulation_job({
  job: "Arn", # required
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.status #=> String, one of "Pending", "Preparing", "Running", "Restarting", "Completed", "Failed", "RunningFailed", "Terminating", "Terminated", "Canceled"
resp.last_started_at #=> Time
resp.last_updated_at #=> Time
resp.failure_behavior #=> String, one of "Fail", "Continue"
resp.failure_code #=> String, one of "InternalServiceError", "RobotApplicationCrash", "SimulationApplicationCrash", "BadPermissionsRobotApplication", "BadPermissionsSimulationApplication", "BadPermissionsS3Object", "BadPermissionsS3Output", "BadPermissionsCloudwatchLogs", "SubnetIpLimitExceeded", "ENILimitExceeded", "BadPermissionsUserCredentials", "InvalidBundleRobotApplication", "InvalidBundleSimulationApplication", "InvalidS3Resource", "MismatchedEtag", "RobotApplicationVersionMismatchedEtag", "SimulationApplicationVersionMismatchedEtag", "ResourceNotFound", "InvalidInput", "WrongRegionS3Bucket", "WrongRegionS3Output", "WrongRegionRobotApplication", "WrongRegionSimulationApplication"
resp.failure_reason #=> String
resp.client_request_token #=> String
resp.output_location.s3_bucket #=> String
resp.output_location.s3_prefix #=> String
resp.logging_config.record_all_ros_topics #=> true/false
resp.max_job_duration_in_seconds #=> Integer
resp.simulation_time_millis #=> Integer
resp.iam_role #=> String
resp.robot_applications #=> Array
resp.robot_applications[0].application #=> String
resp.robot_applications[0].application_version #=> String
resp.robot_applications[0].launch_config.package_name #=> String
resp.robot_applications[0].launch_config.launch_file #=> String
resp.robot_applications[0].launch_config.environment_variables #=> Hash
resp.robot_applications[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings #=> Array
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].job_port #=> Integer
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].application_port #=> Integer
resp.robot_applications[0].launch_config.port_forwarding_config.port_mappings[0].enable_on_public_ip #=> true/false
resp.simulation_applications #=> Array
resp.simulation_applications[0].application #=> String
resp.simulation_applications[0].application_version #=> String
resp.simulation_applications[0].launch_config.package_name #=> String
resp.simulation_applications[0].launch_config.launch_file #=> String
resp.simulation_applications[0].launch_config.environment_variables #=> Hash
resp.simulation_applications[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings #=> Array
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].job_port #=> Integer
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].application_port #=> Integer
resp.simulation_applications[0].launch_config.port_forwarding_config.port_mappings[0].enable_on_public_ip #=> true/false
resp.data_sources #=> Array
resp.data_sources[0].name #=> String
resp.data_sources[0].s3_bucket #=> String
resp.data_sources[0].s3_keys #=> Array
resp.data_sources[0].s3_keys[0].s3_key #=> String
resp.data_sources[0].s3_keys[0].etag #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String
resp.vpc_config.subnets #=> Array
resp.vpc_config.subnets[0] #=> String
resp.vpc_config.security_groups #=> Array
resp.vpc_config.security_groups[0] #=> String
resp.vpc_config.vpc_id #=> String
resp.vpc_config.assign_public_ip #=> true/false
resp.network_interface.network_interface_id #=> String
resp.network_interface.private_ip_address #=> String
resp.network_interface.public_ip_address #=> String

Options Hash (options):

  • :job (required, String)

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

Returns:

See Also:

#list_deployment_jobs(options = {}) ⇒ Types::ListDeploymentJobsResponse

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

Examples:

Request syntax with placeholder values


resp = client.list_deployment_jobs({
  filters: [
    {
      name: "Name",
      values: ["Name"],
    },
  ],
  next_token: "PaginationToken",
  max_results: 1,
})

Response structure


resp.deployment_jobs #=> Array
resp.deployment_jobs[0].arn #=> String
resp.deployment_jobs[0].fleet #=> String
resp.deployment_jobs[0].status #=> String, one of "Pending", "Preparing", "InProgress", "Failed", "Succeeded", "Canceled"
resp.deployment_jobs[0].deployment_application_configs #=> Array
resp.deployment_jobs[0].deployment_application_configs[0].application #=> String
resp.deployment_jobs[0].deployment_application_configs[0].application_version #=> String
resp.deployment_jobs[0].deployment_application_configs[0].launch_config.package_name #=> String
resp.deployment_jobs[0].deployment_application_configs[0].launch_config.pre_launch_file #=> String
resp.deployment_jobs[0].deployment_application_configs[0].launch_config.launch_file #=> String
resp.deployment_jobs[0].deployment_application_configs[0].launch_config.post_launch_file #=> String
resp.deployment_jobs[0].deployment_application_configs[0].launch_config.environment_variables #=> Hash
resp.deployment_jobs[0].deployment_application_configs[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.deployment_jobs[0].deployment_config.concurrent_deployment_percentage #=> Integer
resp.deployment_jobs[0].deployment_config.failure_threshold_percentage #=> Integer
resp.deployment_jobs[0].deployment_config.robot_deployment_timeout_in_seconds #=> Integer
resp.deployment_jobs[0].failure_reason #=> String
resp.deployment_jobs[0].failure_code #=> String, one of "ResourceNotFound", "EnvironmentSetupError", "EtagMismatch", "FailureThresholdBreached", "RobotDeploymentAborted", "RobotDeploymentNoResponse", "RobotAgentConnectionTimeout", "GreengrassDeploymentFailed", "MissingRobotArchitecture", "MissingRobotApplicationArchitecture", "MissingRobotDeploymentResource", "GreengrassGroupVersionDoesNotExist", "ExtractingBundleFailure", "PreLaunchFileFailure", "PostLaunchFileFailure", "BadPermissionError", "InternalServerError"
resp.deployment_jobs[0].created_at #=> Time
resp.next_token #=> String

Options Hash (options):

  • :filters (Array<Types::Filter>)

    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.

  • :next_token (String)

    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.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • :max_results (Integer)

    The maximum number of deployment job results returned by ListDeploymentJobs in paginated output. 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 100. If this parameter is not used, then ListDeploymentJobs returns up to 100 results and a nextToken value if applicable.

Returns:

See Also:

#list_fleets(options = {}) ⇒ Types::ListFleetsResponse

Returns a list of fleets. You can optionally provide filters to retrieve specific fleets.

Examples:

Request syntax with placeholder values


resp = client.list_fleets({
  next_token: "PaginationToken",
  max_results: 1,
  filters: [
    {
      name: "Name",
      values: ["Name"],
    },
  ],
})

Response structure


resp.fleet_details #=> Array
resp.fleet_details[0].name #=> String
resp.fleet_details[0].arn #=> String
resp.fleet_details[0].created_at #=> Time
resp.fleet_details[0].last_deployment_status #=> String, one of "Pending", "Preparing", "InProgress", "Failed", "Succeeded", "Canceled"
resp.fleet_details[0].last_deployment_job #=> String
resp.fleet_details[0].last_deployment_time #=> Time
resp.next_token #=> String

Options Hash (options):

  • :next_token (String)

    The nextToken value returned from a previous paginated ListFleets 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.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • :max_results (Integer)

    The maximum number of deployment job results returned by ListFleets in paginated output. When this parameter is used, ListFleets 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 ListFleets request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListFleets returns up to 100 results and a nextToken value if applicable.

  • :filters (Array<Types::Filter>)

    Optional filters to limit results.

    The filter name name is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.

Returns:

See Also:

#list_robot_applications(options = {}) ⇒ Types::ListRobotApplicationsResponse

Returns a list of robot application. You can optionally provide filters to retrieve specific robot applications.

Examples:

Request syntax with placeholder values


resp = client.list_robot_applications({
  version_qualifier: "VersionQualifier",
  next_token: "PaginationToken",
  max_results: 1,
  filters: [
    {
      name: "Name",
      values: ["Name"],
    },
  ],
})

Response structure


resp.robot_application_summaries #=> Array
resp.robot_application_summaries[0].name #=> String
resp.robot_application_summaries[0].arn #=> String
resp.robot_application_summaries[0].version #=> String
resp.robot_application_summaries[0].last_updated_at #=> Time
resp.robot_application_summaries[0].robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_application_summaries[0].robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.next_token #=> String

Options Hash (options):

  • :version_qualifier (String)

    The version qualifier of the robot application.

  • :next_token (String)

    The nextToken value returned from a previous paginated ListRobotApplications 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.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • :max_results (Integer)

    The maximum number of deployment job results returned by ListRobotApplications in paginated output. When this parameter is used, ListRobotApplications 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 ListRobotApplications request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListRobotApplications returns up to 100 results and a nextToken value if applicable.

  • :filters (Array<Types::Filter>)

    Optional filters to limit results.

    The filter name name is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.

Returns:

See Also:

#list_robots(options = {}) ⇒ Types::ListRobotsResponse

Returns a list of robots. You can optionally provide filters to retrieve specific robots.

Examples:

Request syntax with placeholder values


resp = client.list_robots({
  next_token: "PaginationToken",
  max_results: 1,
  filters: [
    {
      name: "Name",
      values: ["Name"],
    },
  ],
})

Response structure


resp.robots #=> Array
resp.robots[0].arn #=> String
resp.robots[0].name #=> String
resp.robots[0].fleet_arn #=> String
resp.robots[0].status #=> String, one of "Available", "Registered", "PendingNewDeployment", "Deploying", "Failed", "InSync", "NoResponse"
resp.robots[0].green_grass_group_id #=> String
resp.robots[0].created_at #=> Time
resp.robots[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.robots[0].last_deployment_job #=> String
resp.robots[0].last_deployment_time #=> Time
resp.next_token #=> String

Options Hash (options):

  • :next_token (String)

    The nextToken value returned from a previous paginated ListRobots 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.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • :max_results (Integer)

    The maximum number of deployment job results returned by ListRobots in paginated output. When this parameter is used, ListRobots 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 ListRobots request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListRobots returns up to 100 results and a nextToken value if applicable.

  • :filters (Array<Types::Filter>)

    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 Registered or the status Available.

Returns:

See Also:

#list_simulation_applications(options = {}) ⇒ Types::ListSimulationApplicationsResponse

Returns a list of simulation applications. You can optionally provide filters to retrieve specific simulation applications.

Examples:

Request syntax with placeholder values


resp = client.list_simulation_applications({
  version_qualifier: "VersionQualifier",
  next_token: "PaginationToken",
  max_results: 1,
  filters: [
    {
      name: "Name",
      values: ["Name"],
    },
  ],
})

Response structure


resp.simulation_application_summaries #=> Array
resp.simulation_application_summaries[0].name #=> String
resp.simulation_application_summaries[0].arn #=> String
resp.simulation_application_summaries[0].version #=> String
resp.simulation_application_summaries[0].last_updated_at #=> Time
resp.simulation_application_summaries[0].robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.simulation_application_summaries[0].robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.simulation_application_summaries[0].simulation_software_suite.name #=> String, one of "Gazebo", "RosbagPlay"
resp.simulation_application_summaries[0].simulation_software_suite.version #=> String
resp.next_token #=> String

Options Hash (options):

  • :version_qualifier (String)

    The version qualifier of the simulation application.

  • :next_token (String)

    The nextToken value returned from a previous paginated ListSimulationApplications 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.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • :max_results (Integer)

    The maximum number of deployment job results returned by ListSimulationApplications in paginated output. When this parameter is used, ListSimulationApplications 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 ListSimulationApplications request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListSimulationApplications returns up to 100 results and a nextToken value if applicable.

  • :filters (Array<Types::Filter>)

    Optional list of filters to limit results.

    The filter name name is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.

Returns:

See Also:

#list_simulation_jobs(options = {}) ⇒ Types::ListSimulationJobsResponse

Returns a list of simulation jobs. You can optionally provide filters to retrieve specific simulation jobs.

Examples:

Request syntax with placeholder values


resp = client.list_simulation_jobs({
  next_token: "PaginationToken",
  max_results: 1,
  filters: [
    {
      name: "Name",
      values: ["Name"],
    },
  ],
})

Response structure


resp.simulation_job_summaries #=> Array
resp.simulation_job_summaries[0].arn #=> String
resp.simulation_job_summaries[0].last_updated_at #=> Time
resp.simulation_job_summaries[0].name #=> String
resp.simulation_job_summaries[0].status #=> String, one of "Pending", "Preparing", "Running", "Restarting", "Completed", "Failed", "RunningFailed", "Terminating", "Terminated", "Canceled"
resp.simulation_job_summaries[0].simulation_application_names #=> Array
resp.simulation_job_summaries[0].simulation_application_names[0] #=> String
resp.simulation_job_summaries[0].robot_application_names #=> Array
resp.simulation_job_summaries[0].robot_application_names[0] #=> String
resp.simulation_job_summaries[0].data_source_names #=> Array
resp.simulation_job_summaries[0].data_source_names[0] #=> String
resp.next_token #=> String

Options Hash (options):

  • :next_token (String)

    The nextToken value returned from a previous paginated ListSimulationJobs 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.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • :max_results (Integer)

    The maximum number of deployment job results returned by ListSimulationJobs in paginated output. When this parameter is used, ListSimulationJobs 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 ListSimulationJobs request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListSimulationJobs returns up to 100 results and a nextToken value if applicable.

  • :filters (Array<Types::Filter>)

    Optional filters to limit results.

    The filter names status and simulationApplicationName and robotApplicationName 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 Preparing or the status Running.

Returns:

See Also:

#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse

Lists all tags on a AWS RoboMaker resource.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  resource_arn: "Arn", # required
})

Response structure


resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Options Hash (options):

  • :resource_arn (required, String)

    The AWS RoboMaker Amazon Resource Name (ARN) with tags to be listed.

Returns:

See Also:

#register_robot(options = {}) ⇒ Types::RegisterRobotResponse

Registers a robot with a fleet.

Examples:

Request syntax with placeholder values


resp = client.register_robot({
  fleet: "Arn", # required
  robot: "Arn", # required
})

Response structure


resp.fleet #=> String
resp.robot #=> String

Options Hash (options):

  • :fleet (required, String)

    The Amazon Resource Name (ARN) of the fleet.

  • :robot (required, String)

    The Amazon Resource Name (ARN) of the robot.

Returns:

See Also:

#restart_simulation_job(options = {}) ⇒ Struct

Restarts a running simulation job.

Examples:

Request syntax with placeholder values


resp = client.restart_simulation_job({
  job: "Arn", # required
})

Options Hash (options):

  • :job (required, String)

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

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#sync_deployment_job(options = {}) ⇒ Types::SyncDeploymentJobResponse

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

Examples:

Request syntax with placeholder values


resp = client.sync_deployment_job({
  client_request_token: "ClientRequestToken", # required
  fleet: "Arn", # required
})

Response structure


resp.arn #=> String
resp.fleet #=> String
resp.status #=> String, one of "Pending", "Preparing", "InProgress", "Failed", "Succeeded", "Canceled"
resp.deployment_config.concurrent_deployment_percentage #=> Integer
resp.deployment_config.failure_threshold_percentage #=> Integer
resp.deployment_config.robot_deployment_timeout_in_seconds #=> Integer
resp.deployment_application_configs #=> Array
resp.deployment_application_configs[0].application #=> String
resp.deployment_application_configs[0].application_version #=> String
resp.deployment_application_configs[0].launch_config.package_name #=> String
resp.deployment_application_configs[0].launch_config.pre_launch_file #=> String
resp.deployment_application_configs[0].launch_config.launch_file #=> String
resp.deployment_application_configs[0].launch_config.post_launch_file #=> String
resp.deployment_application_configs[0].launch_config.environment_variables #=> Hash
resp.deployment_application_configs[0].launch_config.environment_variables["EnvironmentVariableKey"] #=> String
resp.failure_reason #=> String
resp.failure_code #=> String, one of "ResourceNotFound", "EnvironmentSetupError", "EtagMismatch", "FailureThresholdBreached", "RobotDeploymentAborted", "RobotDeploymentNoResponse", "RobotAgentConnectionTimeout", "GreengrassDeploymentFailed", "MissingRobotArchitecture", "MissingRobotApplicationArchitecture", "MissingRobotDeploymentResource", "GreengrassGroupVersionDoesNotExist", "ExtractingBundleFailure", "PreLaunchFileFailure", "PostLaunchFileFailure", "BadPermissionError", "InternalServerError"
resp.created_at #=> Time

Options Hash (options):

  • :client_request_token (required, String)

    This parameter will be auto-filled on your behalf with a random UUIDv4 when no value is provided. Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

  • :fleet (required, String)

    The target fleet for the synchronization.

Returns:

See Also:

#tag_resource(options = {}) ⇒ Struct

Adds or edits tags for a AWS RoboMaker resource.

Each tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty strings.

For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User Guide.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "Arn", # required
  tags: { # required
    "TagKey" => "TagValue",
  },
})

Options Hash (options):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the AWS RoboMaker resource you are tagging.

  • :tags (required, Hash<String,String>)

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

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#untag_resource(options = {}) ⇒ Struct

Removes the specified tags from the specified AWS RoboMaker resource.

To remove a tag, specify the tag key. To change the tag value of an existing tag key, use TagResource .

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "Arn", # required
  tag_keys: ["TagKey"], # required
})

Options Hash (options):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the AWS RoboMaker resource you are removing tags.

  • :tag_keys (required, Array<String>)

    A map that contains tag keys and tag values that will be unattached from the resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#update_robot_application(options = {}) ⇒ Types::UpdateRobotApplicationResponse

Updates a robot application.

Examples:

Request syntax with placeholder values


resp = client.update_robot_application({
  application: "Arn", # required
  sources: [ # required
    {
      s3_bucket: "S3Bucket",
      s3_key: "S3Key",
      architecture: "X86_64", # accepts X86_64, ARM64, ARMHF
    },
  ],
  robot_software_suite: { # required
    name: "ROS", # accepts ROS, ROS2
    version: "Kinetic", # accepts Kinetic, Melodic, Dashing
  },
  current_revision_id: "RevisionId",
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.last_updated_at #=> Time
resp.revision_id #=> String

Options Hash (options):

  • :application (required, String)

    The application information for the robot application.

  • :sources (required, Array<Types::SourceConfig>)

    The sources of the robot application.

  • :robot_software_suite (required, Types::RobotSoftwareSuite)

    The robot software suite used by the robot application.

  • :current_revision_id (String)

    The revision id for the robot application.

Returns:

See Also:

#update_simulation_application(options = {}) ⇒ Types::UpdateSimulationApplicationResponse

Updates a simulation application.

Examples:

Request syntax with placeholder values


resp = client.update_simulation_application({
  application: "Arn", # required
  sources: [ # required
    {
      s3_bucket: "S3Bucket",
      s3_key: "S3Key",
      architecture: "X86_64", # accepts X86_64, ARM64, ARMHF
    },
  ],
  simulation_software_suite: { # required
    name: "Gazebo", # accepts Gazebo, RosbagPlay
    version: "SimulationSoftwareSuiteVersionType",
  },
  robot_software_suite: { # required
    name: "ROS", # accepts ROS, ROS2
    version: "Kinetic", # accepts Kinetic, Melodic, Dashing
  },
  rendering_engine: {
    name: "OGRE", # accepts OGRE
    version: "RenderingEngineVersionType",
  },
  current_revision_id: "RevisionId",
})

Response structure


resp.arn #=> String
resp.name #=> String
resp.version #=> String
resp.sources #=> Array
resp.sources[0].s3_bucket #=> String
resp.sources[0].s3_key #=> String
resp.sources[0].etag #=> String
resp.sources[0].architecture #=> String, one of "X86_64", "ARM64", "ARMHF"
resp.simulation_software_suite.name #=> String, one of "Gazebo", "RosbagPlay"
resp.simulation_software_suite.version #=> String
resp.robot_software_suite.name #=> String, one of "ROS", "ROS2"
resp.robot_software_suite.version #=> String, one of "Kinetic", "Melodic", "Dashing"
resp.rendering_engine.name #=> String, one of "OGRE"
resp.rendering_engine.version #=> String
resp.last_updated_at #=> Time
resp.revision_id #=> String

Options Hash (options):

  • :application (required, String)

    The application information for the simulation application.

  • :sources (required, Array<Types::SourceConfig>)

    The sources of the simulation application.

  • :simulation_software_suite (required, Types::SimulationSoftwareSuite)

    The simulation software suite used by the simulation application.

  • :robot_software_suite (required, Types::RobotSoftwareSuite)

    Information about the robot software suite.

  • :rendering_engine (Types::RenderingEngine)

    The rendering engine for the simulation application.

  • :current_revision_id (String)

    The revision id for the robot application.

Returns:

See Also:

#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean

Waiters polls an API operation until a resource enters a desired state.

Basic Usage

Waiters will poll until they are succesful, they fail by entering a terminal state, or until a maximum number of attempts are made.

# polls in a loop, sleeping between attempts client.waiter_until(waiter_name, params)

Configuration

You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You configure waiters by passing a block to #wait_until:

# poll for ~25 seconds
client.wait_until(...) do |w|
  w.max_attempts = 5
  w.delay = 5
end

Callbacks

You can be notified before each polling attempt and before each delay. If you throw :success or :failure from these callbacks, it will terminate the waiter.

started_at = Time.now
client.wait_until(...) do |w|

  # disable max attempts
  w.max_attempts = nil

  # poll for 1 hour, instead of a number of attempts
  w.before_wait do |attempts, response|
    throw :failure if Time.now - started_at > 3600
  end

end

Handling Errors

When a waiter is successful, it returns true. When a waiter fails, it raises an error. All errors raised extend from Waiters::Errors::WaiterFailed.

begin
  client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
  # resource did not enter the desired state in time
end

Parameters:

  • waiter_name (Symbol)

    The name of the waiter. See #waiter_names for a full list of supported waiters.

  • params (Hash) (defaults to: {})

    Additional request parameters. See the #waiter_names for a list of supported waiters and what request they call. The called request determines the list of accepted parameters.

Yield Parameters:

Returns:

  • (Boolean)

    Returns true if the waiter was successful.

Raises:

  • (Errors::FailureStateError)

    Raised when the waiter terminates because the waiter has entered a state that it will not transition out of, preventing success.

  • (Errors::TooManyAttemptsError)

    Raised when the configured maximum number of attempts have been made, and the waiter is not yet successful.

  • (Errors::UnexpectedError)

    Raised when an error is encounted while polling for a resource that is not expected.

  • (Errors::NoSuchWaiterError)

    Raised when you request to wait for an unknown state.

#waiter_namesArray<Symbol>

Returns the list of supported waiters. The following table lists the supported waiters and the client method they call:

Waiter NameClient MethodDefault Delay:Default Max Attempts:

Returns:

  • (Array<Symbol>)

    the list of supported waiters.