NotificationConfiguration

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

Bases: object

AutoScalingGroup 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.
import aws_cdk.aws_autoscaling as autoscaling
import aws_cdk.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

Return type

Optional[ScalingEvents]

topic

SNS topic to send notifications about fleet scaling events.

Return type

ITopic