本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
sam local execution history
取得持久函數執行的執行歷史記錄。
用途
$sam local execution historyEXECUTION_ID[OPTIONS]
必要的引數
EXECUTION_ID-
要擷取歷史記錄之耐久函數執行的唯一識別符。
選項
--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 local execution history my-execution-id
取得 JSON 格式的執行歷史記錄:
$sam local execution history my-execution-id --format json