支援終止通知:2025 年 9 月 10 日, AWS 將停止對 AWS RoboMaker 的支援。2025 年 9 月 10 日之後,您將無法再存取 AWS RoboMaker 主控台或 AWS RoboMaker 資源。如需有關轉換至 AWS Batch 以協助執行容器化模擬的詳細資訊,請參閱此部落格文章
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
DescribeSimulationJob
重要
支援終止通知:2025 年 9 月 10 日, AWS 將停止對 AWS RoboMaker 的支援。2025 年 9 月 10 日之後,您將無法再存取 AWS RoboMaker 主控台或 AWS RoboMaker 資源。如需有關轉換至 AWS Batch 以協助執行容器化模擬的詳細資訊,請參閱此部落格文章
描述模擬任務。
請求語法
POST /describeSimulationJob HTTP/1.1
Content-type: application/json
{
"job": "string
"
}
URI 請求參數
請求不會使用任何 URI 參數。
請求主體
請求接受採用 JSON 格式的下列資料。
- job
-
要描述之模擬任務的 Amazon Resource Name (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 Resource Name (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 Logs 資源。
- SubnetIpLimitExceeded
-
超過子網路 IP 限制。
- ENILimitExceeded
-
超過 ENI 限制。
- BadPermissionsUserCredentials
-
無法使用提供的 角色。
- InvalidBundleRobotApplication
-
無法擷取機器人套件 (無效的格式、綁定錯誤或其他問題)。
- InvalidBundleSimulationApplication
-
無法擷取模擬套件 (無效的格式、綁定錯誤或其他問題)。
- RobotApplicationVersionMismatchedEtag
-
RobotApplication 的 Etag 與版本建立期間的值不相符。
- SimulationApplicationVersionMismatchedEtag
-
SimulationApplication 的 Etag 與版本建立期間的值不相符。
類型:字串
有效值:
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
-
允許模擬執行個體代表您呼叫其相關聯政策中指定的 AWS APIs的 IAM 角色。
類型:字串
長度限制:長度下限為 1。長度上限為 255。
模式:
arn:aws:iam::\w+:role/.*
- lastStartedAt
-
自上次啟動模擬任務以來的時間,以毫秒為單位。
類型:Timestamp
- lastUpdatedAt
-
自上次更新模擬任務後的時間,以毫秒為單位。
類型:Timestamp
- loggingConfig
-
記錄組態。
類型:LoggingConfig 物件
- maxJobDurationInSeconds
-
以秒為單位的最大任務持續時間。值必須為 8 天 (691,200 秒) 或更短。
類型:Long
- name
-
模擬任務的名稱。
類型:字串
長度限制:長度下限為 1。長度上限為 255。
模式:
[a-zA-Z0-9_\-]*
- networkInterface
-
模擬任務的網路介面資訊。
類型:NetworkInterface 物件
- outputLocation
-
模擬任務產生的輸出檔案位置。
類型:OutputLocation 物件
- robotApplications
-
機器人應用程式的清單。
類型:RobotApplicationConfig 物件陣列
陣列成員:固定項目數為 1。
- simulationApplications
-
模擬應用程式的清單。
類型:SimulationApplicationConfig 物件陣列
陣列成員:固定項目數為 1。
- simulationTimeMillis
-
模擬任務執行持續時間,以毫秒為單位。
類型:Long
- status
-
模擬任務的狀態。
類型:字串
有效值:
Pending | Preparing | Running | Restarting | Completed | Failed | RunningFailed | Terminating | Terminated | Canceled
-
新增至指定模擬任務的所有標籤清單。
類型:字串到字串映射
映射項目: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
-
AWS RoboMaker 暫時無法處理請求。請再次嘗試呼叫。
HTTP 狀態碼:400
另請參閱
如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊,請參閱下列內容: