

これは AWS CDK v2 デベロッパーガイドです。旧版の CDK v1 は 2022 年 6 月 1 日にメンテナンスを開始し、2023 年 6 月 1 日にサポートを終了しました。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# `cdk notices`
<a name="ref-cli-cmd-notices"></a>

CDK アプリケーションの通知を表示します。

通知には、セキュリティの脆弱性、リグレッション、サポートされていないバージョンの使用に関する重要なメッセージを含めることができます。

承認されているかどうかを問わず、このコマンドは関連する通知を表示します。関連する通知は、デフォルトですべてのコマンドの後に表示される場合もあります。

次の方法で通知を抑制できます。
+ コマンドオプション経由。以下に例を示します。

  ```
  $ cdk deploy --no-notices
  ```
+ プロジェクトの`cdk.json`ファイルのコンテキストを使用し、すべての通知を無期限に抑制します。

  ```
  {
    "notices": false,
    "context": {
      // ...
    }
  }
  ```
+ `cdk acknowledge` コマンドを使用して各通知を確認します。

## 使用
<a name="ref-cli-cmd-notices-usage"></a>

```
$ cdk notices <options>
```

## オプション
<a name="ref-cli-cmd-notices-options"></a>

すべての CDK CLI コマンドで動作するグローバルオプションのリストについては、「[グローバルオプション](ref-cli-cmd.md#ref-cli-cmd-options)」を参照してください。<a name="ref-cli-cmd-notices-options-help"></a>

 `--help, -h <BOOLEAN>`   
`cdk notices` コマンドのコマンドリファレンス情報を表示します。

## 例
<a name="ref-cli-cmd-notices-examples"></a>

### cdk デプロイコマンドの実行後に表示されるデフォルトの通知の例
<a name="ref-cli-cmd-notices-examples-1"></a>

```
$ 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


If you don’t want to see an notice anymore, use "cdk acknowledge ID". For example, "cdk acknowledge 16603"
```

### cdk 通知コマンドを実行する簡単な例
<a name="ref-cli-cmd-notices-examples-2"></a>

```
$ cdk notices

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: framework: <=2.15.0 >=2.10.0

        More information at: https://github.com/aws/aws-cdk/issues/16603


If you don’t want to see a notice anymore, use "cdk acknowledge <id>". For example, "cdk acknowledge 16603"
```