

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# CreateReturnShippingLabel
<a name="API_CreateReturnShippingLabel"></a>

**注意**  
 AWS Snowball 邊緣 不再提供給新客戶。新客戶應探索[AWS DataSync](https://aws.amazon.com/datasync/)線上傳輸、用於安全實體傳輸的[AWS 資料傳輸終端機](https://aws.amazon.com/data-transfer-terminal/)，或 AWS 合作夥伴解決方案。針對邊緣運算，探索 [AWS Outposts](https://aws.amazon.com/outposts/)。

建立將用於將 Snow 裝置退還給 AWS的運送標籤。

## 請求語法
<a name="API_CreateReturnShippingLabel_RequestSyntax"></a>

```
{
   "JobId": "string",
   "ShippingOption": "string"
}
```

## 請求參數
<a name="API_CreateReturnShippingLabel_RequestParameters"></a>

如需所有動作的一般參數資訊，請參閱《[Common Parameters](CommonParameters.md)》。

請求接受採用 JSON 格式的下列資料。

 ** [JobId](#API_CreateReturnShippingLabel_RequestSyntax) **   <a name="Snowball-CreateReturnShippingLabel-request-JobId"></a>
您要為其建立傳回運送標籤之任務的 ID；例如，`JID123e4567-e89b-12d3-a456-426655440000`。  
類型：字串  
長度限制：固定長度為 39。  
模式：`(M|J)ID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`  
必要：是

 ** [ShippingOption](#API_CreateReturnShippingLabel_RequestSyntax) **   <a name="Snowball-CreateReturnShippingLabel-request-ShippingOption"></a>
特定任務的運送速度。此速度不會決定裝置被送回的時間 AWS。此速度代表它在傳輸時移動到目的地的速度。區域運送速度如下：  
類型：字串  
有效值:`SECOND_DAY | NEXT_DAY | EXPRESS | STANDARD`   
必要：否

## 回應語法
<a name="API_CreateReturnShippingLabel_ResponseSyntax"></a>

```
{
   "Status": "string"
}
```

## 回應元素
<a name="API_CreateReturnShippingLabel_ResponseElements"></a>

如果動作成功，則服務傳回 HTTP 200 回應。

服務會傳回下列 JSON 格式的資料。

 ** [Status](#API_CreateReturnShippingLabel_ResponseSyntax) **   <a name="Snowball-CreateReturnShippingLabel-response-Status"></a>
要傳回之 Snow 裝置上的任務狀態資訊 AWS。  
類型：字串  
有效值:`InProgress | TimedOut | Succeeded | Failed` 

## 錯誤
<a name="API_CreateReturnShippingLabel_Errors"></a>

如需所有動作常見錯誤的資訊，請參閱[常見錯誤類型](CommonErrors.md)。

 ** ConflictException **   
當您在未完成其他請求時呼叫`CreateReturnShippingLabel`多次時，會收到此例外狀況。    
 ** ConflictResource **   
當您呼叫`CreateReturnShippingLabel`一次以上的其他請求未完成時，您會取得此資源。
HTTP 狀態碼：400

 ** InvalidInputCombinationException **   
任務或叢集建立失敗。一或多個輸入無效。確認 [CreateCluster：SnowballType](API_CreateCluster.md#Snowball-CreateCluster-request-SnowballType) 值支援您的 [CreateJob：JobType](API_CreateJob.md#Snowball-CreateJob-request-JobType)，然後再試一次。  
HTTP 狀態碼：400

 ** InvalidJobStateException **   
無法執行動作，因為任務的目前狀態不允許執行該動作。  
HTTP 狀態碼：400

 ** InvalidResourceException **   
找不到指定的資源。請檢查您在上次請求中提供的資訊，然後再試一次。    
 ** ResourceType **   
提供的資源值無效。
HTTP 狀態碼：400

 ** ReturnShippingLabelAlreadyExistsException **   
如果您呼叫 `CreateReturnShippingLabel`且已存在有效的退回運送標籤，則會收到此例外狀況。在此情況下，請使用 `DescribeReturnShippingLabel`取得 URL。  
HTTP 狀態碼：400

## 另請參閱
<a name="API_CreateReturnShippingLabel_SeeAlso"></a>

如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊，請參閱下列內容：
+  [AWS 命令列界面 V2](https://docs.aws.amazon.com/goto/cli2/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 .NET V4 的 SDK](https://docs.aws.amazon.com/goto/DotNetSDKV4/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 Go 的 SDK v2](https://docs.aws.amazon.com/goto/SdkForGoV2/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 Java V2 的 SDK](https://docs.aws.amazon.com/goto/SdkForJavaV2/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 JavaScript V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 PHP V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForPHPV3/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 Python 的 SDK](https://docs.aws.amazon.com/goto/boto3/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 適用於 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/snowball-2016-06-30/CreateReturnShippingLabel) 