NotificationConfiguration

class aws_cdk.aws_autoscaling.NotificationConfiguration(*, scaling_events=None, topic)

Bases: object

AutoScalingGroup fleet change notifications configurations.

You can configure AutoScaling to send an SNS notification whenever your Auto Scaling group scales.

Parameters
  • scaling_events (Optional[ScalingEvents]) – Which fleet scaling events triggers a notification. Default: ScalingEvents.ALL

  • topic (ITopic) – SNS topic to send notifications about fleet scaling events.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_autoscaling as autoscaling
import aws_cdk.aws_sns as sns

# scaling_events is of type ScalingEvents
# topic is of type 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

Return type

Optional[ScalingEvents]

topic

SNS topic to send notifications about fleet scaling events.

Return type

ITopic