Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.
This configuration overwrites any existing configuration.
For more information, see Getting Amazon SNS notifications when your Auto Scaling group scales in the Amazon EC2 Auto Scaling User Guide.
If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group, the call fails.
Synopsis
- data PutNotificationConfiguration = PutNotificationConfiguration' {}
- newPutNotificationConfiguration :: Text -> Text -> PutNotificationConfiguration
- putNotificationConfiguration_autoScalingGroupName :: Lens' PutNotificationConfiguration Text
- putNotificationConfiguration_topicARN :: Lens' PutNotificationConfiguration Text
- putNotificationConfiguration_notificationTypes :: Lens' PutNotificationConfiguration [Text]
- data PutNotificationConfigurationResponse = PutNotificationConfigurationResponse' {
- newPutNotificationConfigurationResponse :: PutNotificationConfigurationResponse
Creating a Request
data PutNotificationConfiguration Source #
See: newPutNotificationConfiguration
smart constructor.
PutNotificationConfiguration' | |
|
Instances
newPutNotificationConfiguration Source #
:: Text | |
-> Text | |
-> PutNotificationConfiguration |
Create a value of PutNotificationConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:autoScalingGroupName:PutNotificationConfiguration'
, putNotificationConfiguration_autoScalingGroupName
- The name of the Auto Scaling group.
$sel:topicARN:PutNotificationConfiguration'
, putNotificationConfiguration_topicARN
- The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
(Amazon SNS) topic.
$sel:notificationTypes:PutNotificationConfiguration'
, putNotificationConfiguration_notificationTypes
- The type of event that causes the notification to be sent. To query the
notification types supported by Amazon EC2 Auto Scaling, call the
DescribeAutoScalingNotificationTypes API.
Request Lenses
putNotificationConfiguration_autoScalingGroupName :: Lens' PutNotificationConfiguration Text Source #
The name of the Auto Scaling group.
putNotificationConfiguration_topicARN :: Lens' PutNotificationConfiguration Text Source #
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.
putNotificationConfiguration_notificationTypes :: Lens' PutNotificationConfiguration [Text] Source #
The type of event that causes the notification to be sent. To query the notification types supported by Amazon EC2 Auto Scaling, call the DescribeAutoScalingNotificationTypes API.
Destructuring the Response
data PutNotificationConfigurationResponse Source #
See: newPutNotificationConfigurationResponse
smart constructor.
Instances
Eq PutNotificationConfigurationResponse Source # | |
Read PutNotificationConfigurationResponse Source # | |
Show PutNotificationConfigurationResponse Source # | |
Generic PutNotificationConfigurationResponse Source # | |
Defined in Amazonka.AutoScaling.PutNotificationConfiguration type Rep PutNotificationConfigurationResponse :: Type -> Type # | |
NFData PutNotificationConfigurationResponse Source # | |
Defined in Amazonka.AutoScaling.PutNotificationConfiguration rnf :: PutNotificationConfigurationResponse -> () # | |
type Rep PutNotificationConfigurationResponse Source # | |
Defined in Amazonka.AutoScaling.PutNotificationConfiguration type Rep PutNotificationConfigurationResponse = D1 ('MetaData "PutNotificationConfigurationResponse" "Amazonka.AutoScaling.PutNotificationConfiguration" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "PutNotificationConfigurationResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newPutNotificationConfigurationResponse :: PutNotificationConfigurationResponse Source #
Create a value of PutNotificationConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.