View a markdown version of this page

Utilisation de DescribeAutoScalingNotificationTypes avec une CLI - Amazon EC2 Auto Scaling

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.

Utilisation de DescribeAutoScalingNotificationTypes avec une CLI

Les exemples de code suivants illustrent comment utiliser DescribeAutoScalingNotificationTypes.

CLI
AWS CLI

Pour décrire les types de notifications disponibles

Cet exemple décrit les types de notifications disponibles.

aws autoscaling describe-auto-scaling-notification-types

Sortie :

{ "AutoScalingNotificationTypes": [ "autoscaling:EC2_INSTANCE_LAUNCH", "autoscaling:EC2_INSTANCE_LAUNCH_ERROR", "autoscaling:EC2_INSTANCE_TERMINATE", "autoscaling:EC2_INSTANCE_TERMINATE_ERROR", "autoscaling:TEST_NOTIFICATION" ] }

Pour plus d’informations, consultez Réception de notifications Amazon SNS lors du dimensionnement de votre groupe Auto Scaling dans le Guide de l’utilisateur Amazon EC2 Auto Scaling.

PowerShell
Outils pour PowerShell V4

Exemple 1 : cet exemple répertorie les types de notification qui sont pris en charge par Auto Scaling.

Get-ASAutoScalingNotificationType

Sortie :

autoscaling:EC2_INSTANCE_LAUNCH autoscaling:EC2_INSTANCE_LAUNCH_ERROR autoscaling:EC2_INSTANCE_TERMINATE autoscaling:EC2_INSTANCE_TERMINATE_ERROR autoscaling:TEST_NOTIFICATION
Outils pour PowerShell V5

Exemple 1 : cet exemple répertorie les types de notification qui sont pris en charge par Auto Scaling.

Get-ASAutoScalingNotificationType

Sortie :

autoscaling:EC2_INSTANCE_LAUNCH autoscaling:EC2_INSTANCE_LAUNCH_ERROR autoscaling:EC2_INSTANCE_TERMINATE autoscaling:EC2_INSTANCE_TERMINATE_ERROR autoscaling:TEST_NOTIFICATION

Pour obtenir la liste complète des guides de développement du AWS SDK et des exemples de code, consultezUtilisation de ce service avec un AWS SDK. Cette rubrique comprend également des informations sur le démarrage et sur les versions précédentes du kit SDK.