本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
sam remote execution history
從 AWS Lambda 擷取特定持久函數執行的執行歷史記錄。
執行 ARN 應採用 StartDurableExecution 傳回的格式,或在執行日誌中找到。
注意
此命令需要存取 AWS 登入資料。
用途
$sam remote execution historyDURABLE_EXECUTION_ARN[OPTIONS]
必要的引數
DURABLE_EXECUTION_ARN-
要擷取其歷史記錄之耐久函數執行的 Amazon Resource Name (ARN)。
選項
--format [table|json]-
輸出格式。預設:
table --region TEXT-
設定服務的 AWS 區域 (例如
us-east-1)。 --profile TEXT-
從登入資料檔案選取特定設定檔以取得 AWS 登入資料。
--config-env TEXT-
在組態檔案中指定預設參數值的環境名稱。預設:
default --config-file TEXT-
包含預設參數值的組態檔案。預設:
samconfig.toml --save-params-
將透過命令列提供的參數儲存至組態檔案。
--beta-features / --no-beta-features-
啟用/停用 Beta 版功能。
--debug-
開啟偵錯記錄以列印 CLI AWS SAM 產生的偵錯訊息,並顯示時間戳記。
-h, --help-
顯示此訊息並結束。
範例
取得具有預設資料表格式的執行歷史記錄:
$sam remote execution history arn:aws:lambda:us-east-1:123456789012:function:MyFunction:$LATEST/durable-execution/my-execution-name/my-execution-id
取得 JSON 格式的執行歷史記錄:
$sam remote execution history arn:aws:lambda:us-east-1:123456789012:function:MyFunction:$LATEST/durable-execution/my-execution-name/my-execution-id --format json