

Ceci est le guide du développeur du AWS CDK v2. L'ancien CDK v1 est entré en maintenance le 1er juin 2022 et a pris fin le 1er juin 2023.

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

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

Afficher les notifications relatives à votre application CDK.

Les notifications peuvent inclure des messages importants concernant les failles de sécurité, les régressions et l'utilisation de versions non prises en charge.

Cette commande affiche les notifications pertinentes, qu'elles aient été reconnues ou non. Les notifications pertinentes peuvent également apparaître après chaque commande par défaut.

Vous pouvez supprimer les notifications de différentes manières :
+ Par le biais des options de commande. Voici un exemple :

  ```
  $ cdk deploy --no-notices
  ```
+ Supprimez toutes les notifications indéfiniment en fonction du contexte dans le `cdk.json` fichier du projet :

  ```
  {
    "notices": false,
    "context": {
      // ...
    }
  }
  ```
+ Accusez réception de chaque notification à l'aide de la `cdk acknowledge` commande.

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

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

## Options
<a name="ref-cli-cmd-notices-options"></a>

Pour une liste des options globales qui fonctionnent avec toutes les commandes de la CLI CDK, consultez la section [Options globales](ref-cli-cmd.md#ref-cli-cmd-options).<a name="ref-cli-cmd-notices-options-help"></a>

 `--help, -h <BOOLEAN>`   
Afficher les informations de référence relatives à la `cdk notices` commande.

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

### Exemple d'avis par défaut qui s'affiche après l'exécution de la commande cdk deploy
<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"
```

### Exemple simple d'exécution de la commande cdk notices
<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"
```