@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.816Z") @Stability(value=Stable) public interface NotificationConfiguration extends software.amazon.jsii.JsiiSerializable
You can configure AutoScaling to send an SNS notification whenever your Auto Scaling group scales.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.autoscaling.*;
import software.amazon.awscdk.services.sns.*;
ScalingEvents scalingEvents;
Topic topic;
NotificationConfiguration notificationConfiguration = NotificationConfiguration.builder()
.topic(topic)
// the properties below are optional
.scalingEvents(scalingEvents)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
NotificationConfiguration.Builder
A builder for
NotificationConfiguration |
static class |
NotificationConfiguration.Jsii$Proxy
An implementation for
NotificationConfiguration |
| Modifier and Type | Method and Description |
|---|---|
static NotificationConfiguration.Builder |
builder() |
default ScalingEvents |
getScalingEvents()
Which fleet scaling events triggers a notification.
|
ITopic |
getTopic()
SNS topic to send notifications about fleet scaling events.
|
@Stability(value=Stable) @NotNull ITopic getTopic()
@Stability(value=Stable) @Nullable default ScalingEvents getScalingEvents()
Default: ScalingEvents.ALL
@Stability(value=Stable) static NotificationConfiguration.Builder builder()
NotificationConfiguration.Builder of NotificationConfigurationCopyright © 2022. All rights reserved.