

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

# 什麼是串流？
<a name="mqtt-based-file-delivery-what-is"></a>

在 中 AWS IoT，*串流*是可公開定址的資源，是可傳輸至 IoT 裝置的檔案清單摘要。典型的串流包含下列資訊：
+ 一個在特定時間唯一識別串流的 **Amazon 資源名稱 (ARN)**。此 ARN 的模式為 `arn:{{partition}}:iot:{{region}}:{{account-ID}}:stream/{{stream ID}}`。
+ 識別串流並在 AWS Command Line Interface () 或 SDK 命令中使用 （通常為必要AWS CLI) 的串流 **ID**。
+ **串流說明**，提供串流資源的說明。
+ **串流版本**，識別串流的特定版本。由於串流資料可在裝置開始資料傳輸之前立即修改，因此裝置可使用串流版本來強制執行一致性檢查。
+ **檔案清單**，可傳輸至裝置。對於清單中的每個檔案，串流會記錄檔案 ID、檔案大小及檔案的地址資訊，這些資訊包含例如 Amazon S3 儲存貯體名稱、物件金鑰和物件版本。
+ ** AWS Identity and Access Management (IAM) 角色**，授予 AWS IoT 以 MQTT 為基礎的檔案交付許可，以讀取存放在資料儲存體中的串流檔案。

AWS IoT 以 MQTT 為基礎的檔案交付提供下列功能，讓裝置可以從 雲端傳輸資料 AWS ：
+ 使用 MQTT 通訊協定傳輸資料。
+ 支援 JSON 或 CBOR 格式。
+ 說明串流 ([https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery-in-devices.html#mqtt-based-file-delivery-describe-stream](https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery-in-devices.html#mqtt-based-file-delivery-describe-stream) API) 的能力，以取得串流檔案清單、串流版本及相關資訊。
+ 在小區塊形式傳送資料 ([https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery-in-devices.html#mqtt-based-file-delivery-get-getstream](https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery-in-devices.html#mqtt-based-file-delivery-get-getstream) API) 的能力，使具有硬體限制的裝置可收到區塊。
+ 支援每個請求的動態區塊大小，以支援具有不同記憶體容量的裝置。
+ 當多個裝置從同一個串流檔案請求資料區塊時，最佳化並行串流請求。
+ Amazon S3 作為串流檔案的資料儲存。
+ 支援從 AWS IoT MQTT 型檔案交付到 CloudWatch 的資料傳輸日誌發佈。

如需 MQTT 型檔案交付配額，請參閱 *AWS 一般參考* 中的 [AWS IoT Core Service Quotas](https://docs.aws.amazon.com//general/latest/gr/iot-core.html#limits_iot)。