cdk acknowledge - AWS Cloud Development Kit (AWS CDK) V2

這是 AWS CDK v2 開發人員指南。較舊的 CDK 第 1 版已於 2022 年 6 月 1 日進入維護,並於 2023 年 6 月 1 日結束支援。

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

cdk acknowledge

依問題編號確認通知,並將其隱藏,以免再次顯示。

這對於隱藏已收到或不適用於您的通知非常有用。

確認會儲存在 CDK 專案層級。如果您確認一個 CDK 專案中的通知,該通知仍會顯示在其他專案中,直到確認該專案為止。

用量

$ cdk acknowledge <arguments> <options>

引數

通知識別碼

通知的識別碼。

類型:字串

必要:否

選項

如需與所有 CDK CLI 指令搭配使用的全域選項清單,請參閱〈〉全域選項

--help, -h BOOLEAN

顯示指令的指cdk acknowledge令參考資訊。

範例

確認並隱藏執行另一個 CDK CLI 指令時顯示的通知

$ cdk deploy ... # Normal output of the command NOTICES 16603 Toggling off auto_delete_objects for Bucket empties the bucket Overview: If a stack is deployed with an S3 bucket with auto_delete_objects=True, and then re-deployed with auto_delete_objects=False, all the objects in the bucket will be deleted. Affected versions: <1.126.0. More information at: https://github.com/aws/aws-cdk/issues/16603 17061 Error when building EKS cluster with monocdk import Overview: When using monocdk/aws-eks to build a stack containing an EKS cluster, error is thrown about missing lambda-layer-node-proxy-agent/layer/package.json. Affected versions: >=1.126.0 <=1.130.0. More information at: https://github.com/aws/aws-cdk/issues/17061 $ cdk acknowledge 16603