NotificationConfiguration
- class aws_cdk.aws_autoscaling.NotificationConfiguration(*, topic, scaling_events=None)
 Bases:
objectAutoScalingGroup fleet change notifications configurations.
You can configure AutoScaling to send an SNS notification whenever your Auto Scaling group scales.
- Parameters:
 topic (
ITopic) – SNS topic to send notifications about fleet scaling events.scaling_events (
Optional[ScalingEvents]) – Which fleet scaling events triggers a notification. Default: ScalingEvents.ALL
- ExampleMetadata:
 fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_autoscaling as autoscaling from aws_cdk import aws_sns as sns # scaling_events: autoscaling.ScalingEvents # topic: sns.Topic notification_configuration = autoscaling.NotificationConfiguration( topic=topic, # the properties below are optional scaling_events=scaling_events )
Attributes
- scaling_events
 Which fleet scaling events triggers a notification.
- Default:
 ScalingEvents.ALL
- topic
 SNS topic to send notifications about fleet scaling events.