DescribeSimulationJob - AWS RoboMaker

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

DescribeSimulationJob

描述模拟作业。

请求语法

POST /describeSimulationJob HTTP/1.1 Content-type: application/json { "job": "string" }

URI 请求参数

该请求不使用任何 URI 参数。

请求体

请求接受采用 JSON 格式的以下数据。

job

要描述模拟作业的 Amazon 资源名称(ARN)。

类型:字符串

长度限制:长度下限为 1。最大长度为 1224。

模式:arn:.*

必需:是

响应语法

HTTP/1.1 200 Content-type: application/json { "arn": "string", "clientRequestToken": "string", "compute": { "computeType": "string", "gpuUnitLimit": number, "simulationUnitLimit": number }, "dataSources": [ { "destination": "string", "name": "string", "s3Bucket": "string", "s3Keys": [ { "etag": "string", "s3Key": "string" } ], "type": "string" } ], "failureBehavior": "string", "failureCode": "string", "failureReason": "string", "iamRole": "string", "lastStartedAt": number, "lastUpdatedAt": number, "loggingConfig": { "recordAllRosTopics": boolean }, "maxJobDurationInSeconds": number, "name": "string", "networkInterface": { "networkInterfaceId": "string", "privateIpAddress": "string", "publicIpAddress": "string" }, "outputLocation": { "s3Bucket": "string", "s3Prefix": "string" }, "robotApplications": [ { "application": "string", "applicationVersion": "string", "launchConfig": { "command": [ "string" ], "environmentVariables": { "string" : "string" }, "launchFile": "string", "packageName": "string", "portForwardingConfig": { "portMappings": [ { "applicationPort": number, "enableOnPublicIp": boolean, "jobPort": number } ] }, "streamUI": boolean }, "tools": [ { "command": "string", "exitBehavior": "string", "name": "string", "streamOutputToCloudWatch": boolean, "streamUI": boolean } ], "uploadConfigurations": [ { "name": "string", "path": "string", "uploadBehavior": "string" } ], "useDefaultTools": boolean, "useDefaultUploadConfigurations": boolean } ], "simulationApplications": [ { "application": "string", "applicationVersion": "string", "launchConfig": { "command": [ "string" ], "environmentVariables": { "string" : "string" }, "launchFile": "string", "packageName": "string", "portForwardingConfig": { "portMappings": [ { "applicationPort": number, "enableOnPublicIp": boolean, "jobPort": number } ] }, "streamUI": boolean }, "tools": [ { "command": "string", "exitBehavior": "string", "name": "string", "streamOutputToCloudWatch": boolean, "streamUI": boolean } ], "uploadConfigurations": [ { "name": "string", "path": "string", "uploadBehavior": "string" } ], "useDefaultTools": boolean, "useDefaultUploadConfigurations": boolean, "worldConfigs": [ { "world": "string" } ] } ], "simulationTimeMillis": number, "status": "string", "tags": { "string" : "string" }, "vpcConfig": { "assignPublicIp": boolean, "securityGroups": [ "string" ], "subnets": [ "string" ], "vpcId": "string" } }

响应元素

如果此操作成功,则该服务将会发送回 HTTP 200 响应。

服务以 JSON 格式返回以下数据。

arn

模拟作业的 Amazon 资源名称(ARN)。

类型:字符串

长度限制:长度下限为 1。最大长度为 1224。

模式:arn:.*

clientRequestToken

用于确保请求的幂等性而提供的唯一、区分大小写的标识符。

类型:字符串

长度限制:长度下限为 1。长度上限为 64。

模式:[a-zA-Z0-9_\-=]*

compute

计算模拟作业的信息。

类型:ComputeResponse 对象

dataSources

模拟作业的数据来源。

类型:DataSource 对象数组

failureBehavior

模拟作业的失败行为。

类型:字符串

有效值:Fail | Continue

failureCode

模拟作业失败时的失败代码:

InternalServiceError

内部服务错误。

RobotApplicationCrash

机器人应用程序异常退出。

SimulationApplicationCrash

模拟应用程序异常退出。

BadPermissionsRobotApplication

无法下载机器人应用程序包。

BadPermissionsSimulationApplication

无法下载模拟应用程序包。

BadPermissionsS3Output

无法将输出发布到客户提供的 S3 存储桶。

BadPermissionsCloudwatchLogs

无法将日志发布到客户提供的 CloudWatch 日志资源。

SubnetIpLimitExceeded

已超出子网 IP 限制。

ENI LimitExceeded

超出 ENI 限制。

BadPermissionsUserCredentials

无法使用提供的角色。

InvalidBundleRobotApplication

无法提取机器人捆绑包(格式无效、捆绑错误或其他问题)。

InvalidBundleSimulationApplication

无法提取模拟捆绑包(格式无效、捆绑错误或其他问题)。

RobotApplicationVersionMismatchedEtag

Etag for 在版本创建期间与值 RobotApplication 不匹配。

SimulationApplicationVersionMismatchedEtag

Etag for 在版本创建期间与值 SimulationApplication 不匹配。

类型:字符串

有效值:InternalServiceError | RobotApplicationCrash | SimulationApplicationCrash | RobotApplicationHealthCheckFailure | SimulationApplicationHealthCheckFailure | BadPermissionsRobotApplication | BadPermissionsSimulationApplication | BadPermissionsS3Object | BadPermissionsS3Output | BadPermissionsCloudwatchLogs | SubnetIpLimitExceeded | ENILimitExceeded | BadPermissionsUserCredentials | InvalidBundleRobotApplication | InvalidBundleSimulationApplication | InvalidS3Resource | ThrottlingError | LimitExceeded | MismatchedEtag | RobotApplicationVersionMismatchedEtag | SimulationApplicationVersionMismatchedEtag | ResourceNotFound | RequestThrottled | BatchTimedOut | BatchCanceled | InvalidInput | WrongRegionS3Bucket | WrongRegionS3Output | WrongRegionRobotApplication | WrongRegionSimulationApplication | UploadContentMismatchError

failureReason

有关模拟作业失败原因的详细信息。有关问题排查的更多信息,请参阅问题排查

类型:字符串

长度约束:最小长度为 0。最大长度为 1024。

模式:.*

iamRole

IAM 角色,此角色可使模拟实例有权代表您调用其关联策略中指定的 AWS API。

类型:字符串

长度限制:长度下限为 1。最大长度为 255。

模式:arn:aws:iam::\w+:role/.*

lastStartedAt

上次启动模拟作业的时间,用从纪元开始的毫秒数表示。

类型:时间戳

lastUpdatedAt

上次更新模拟作业的时间,用从纪元开始的毫秒数表示。

类型:时间戳

loggingConfig

日志记录配置。

类型:LoggingConfig 对象

maxJobDurationInSeconds

作业最长持续时间,以秒为单位。该值必须为 8 天(691,200 秒)或更短。

类型:长整型

name

模拟作业的名称。

类型:字符串

长度限制:长度下限为 1。最大长度为 255。

模式:[a-zA-Z0-9_\-]*

networkInterface

模拟作业的网络接口信息。

类型:NetworkInterface 对象

outputLocation

模拟作业生成的输出文件的位置。

类型:OutputLocation 对象

robotApplications

机器人应用程序列表。

类型:RobotApplicationConfig 对象数组

数组成员:固定数量为 1 项。

simulationApplications

模拟应用程序列表。

类型:SimulationApplicationConfig 对象数组

数组成员:固定数量为 1 项。

simulationTimeMillis

模拟作业执行持续时间(以毫秒为单位)。

类型:长整型

status

模拟作业的状态。

类型:字符串

有效值:Pending | Preparing | Running | Restarting | Completed | Failed | RunningFailed | Terminating | Terminated | Canceled

tags

添加到指定模拟应用作业的所有标签列表。

类型:字符串到字符串映射

映射条目:最低 0 项。最多 50 项。

密钥长度限制:最小长度为 1。长度上限为 128。

键模式:[a-zA-Z0-9 _.\-\/+=:]*

值长度限制:最小长度为 0。最大长度为 256。

价值模式:[a-zA-Z0-9 _.\-\/+=:]*

vpcConfig

VPC 配置。

类型:VPCConfigResponse 对象

错误

有关所有操作的常见错误信息,请参阅常见错误

InternalServerException

AWS RoboMaker 遇到了服务问题。重新尝试您的调用。

HTTP 状态代码:500

InvalidParameterException

在请求中指定的参数无效、不受支持,或无法使用。请求的消息解释错误值。

HTTP 状态代码:400

ResourceNotFoundException

指定的资源不存在。

HTTP 状态代码:400

ThrottlingException

AW RoboMaker S 暂时无法处理该请求。重新尝试您的调用。

HTTP 状态代码:400

另请参阅

有关在特定语言的 AWS SDK 中使用此 API 的更多信息,请参阅以下内容: