libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AutoScaling.PutNotificationConfiguration

Description

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

Creating a Request

data PutNotificationConfiguration Source #

See: newPutNotificationConfiguration smart constructor.

Constructors

PutNotificationConfiguration' 

Fields

  • autoScalingGroupName :: Text

    The name of the Auto Scaling group.

  • topicARN :: Text

    The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.

  • notificationTypes :: [Text]

    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.

Instances

Instances details
Eq PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Read PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Show PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Generic PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Associated Types

type Rep PutNotificationConfiguration :: Type -> Type #

NFData PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Hashable PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

AWSRequest PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

ToHeaders PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

ToPath PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

ToQuery PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

type Rep PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

type Rep PutNotificationConfiguration = D1 ('MetaData "PutNotificationConfiguration" "Amazonka.AutoScaling.PutNotificationConfiguration" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "PutNotificationConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "topicARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "notificationTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse PutNotificationConfiguration Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

newPutNotificationConfiguration Source #

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_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 #

Instances

Instances details
Eq PutNotificationConfigurationResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Read PutNotificationConfigurationResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Show PutNotificationConfigurationResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

Generic PutNotificationConfigurationResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

NFData PutNotificationConfigurationResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutNotificationConfiguration

type Rep PutNotificationConfigurationResponse Source # 
Instance details

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.