这是 AWS CDK v2 开发者指南。旧版 CDK v1 于 2022 年 6 月 1 日进入维护阶段,并于 2023 年 6 月 1 日终止支持。
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
按问题编号确认通知,并将其隐藏,以免再次显示。
这有助于隐藏已处理或不适用于您的通知。
确认信息将保存在 CDK 项目级别。如果您在一个 CDK 项目中确认了某条通知,其仍会显示在其他项目中,直到在其他项目中得到确认。
使用量
$
cdk acknowledge
<arguments>
<options>
参数
- 通知 ID
-
通知的 ID。
类型:字符串
必需:否
选项
查看适用于所有 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