libZSservicesZSamazonka-sesZSamazonka-ses
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.SES.SetIdentityNotificationTopic

Description

Sets an Amazon Simple Notification Service (Amazon SNS) topic to use when delivering notifications. When you use this operation, you specify a verified identity, such as an email address or domain. When you send an email that uses the chosen identity in the Source field, Amazon SES sends notifications to the topic you specified. You can send bounce, complaint, or delivery notifications (or any combination of the three) to the Amazon SNS topic that you specify.

You can execute this operation no more than once per second.

For more information about feedback notification, see the Amazon SES Developer Guide.

Synopsis

Creating a Request

data SetIdentityNotificationTopic Source #

Represents a request to specify the Amazon SNS topic to which Amazon SES will publish bounce, complaint, or delivery notifications for emails sent with that identity as the Source. For information about Amazon SES notifications, see the Amazon SES Developer Guide.

See: newSetIdentityNotificationTopic smart constructor.

Constructors

SetIdentityNotificationTopic' 

Fields

  • snsTopic :: Maybe Text

    The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled.

  • identity :: Text

    The identity (email address or domain) that you want to set the Amazon SNS topic for.

    You can only specify a verified identity for this parameter.

    You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: sender@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

  • notificationType :: NotificationType

    The type of notifications that will be published to the specified Amazon SNS topic.

Instances

Instances details
Eq SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Read SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Show SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Generic SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Associated Types

type Rep SetIdentityNotificationTopic :: Type -> Type #

NFData SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Hashable SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

AWSRequest SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

ToHeaders SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

ToPath SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

ToQuery SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

type Rep SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

type Rep SetIdentityNotificationTopic = D1 ('MetaData "SetIdentityNotificationTopic" "Amazonka.SES.SetIdentityNotificationTopic" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "SetIdentityNotificationTopic'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snsTopic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "identity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "notificationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NotificationType))))
type AWSResponse SetIdentityNotificationTopic Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

newSetIdentityNotificationTopic Source #

Create a value of SetIdentityNotificationTopic 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:snsTopic:SetIdentityNotificationTopic', setIdentityNotificationTopic_snsTopic - The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled.

$sel:identity:SetIdentityNotificationTopic', setIdentityNotificationTopic_identity - The identity (email address or domain) that you want to set the Amazon SNS topic for.

You can only specify a verified identity for this parameter.

You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: sender@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

$sel:notificationType:SetIdentityNotificationTopic', setIdentityNotificationTopic_notificationType - The type of notifications that will be published to the specified Amazon SNS topic.

Request Lenses

setIdentityNotificationTopic_snsTopic :: Lens' SetIdentityNotificationTopic (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled.

setIdentityNotificationTopic_identity :: Lens' SetIdentityNotificationTopic Text Source #

The identity (email address or domain) that you want to set the Amazon SNS topic for.

You can only specify a verified identity for this parameter.

You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: sender@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

setIdentityNotificationTopic_notificationType :: Lens' SetIdentityNotificationTopic NotificationType Source #

The type of notifications that will be published to the specified Amazon SNS topic.

Destructuring the Response

data SetIdentityNotificationTopicResponse Source #

An empty element returned on a successful request.

See: newSetIdentityNotificationTopicResponse smart constructor.

Constructors

SetIdentityNotificationTopicResponse' 

Fields

Instances

Instances details
Eq SetIdentityNotificationTopicResponse Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Read SetIdentityNotificationTopicResponse Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Show SetIdentityNotificationTopicResponse Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

Generic SetIdentityNotificationTopicResponse Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

NFData SetIdentityNotificationTopicResponse Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

type Rep SetIdentityNotificationTopicResponse Source # 
Instance details

Defined in Amazonka.SES.SetIdentityNotificationTopic

type Rep SetIdentityNotificationTopicResponse = D1 ('MetaData "SetIdentityNotificationTopicResponse" "Amazonka.SES.SetIdentityNotificationTopic" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "SetIdentityNotificationTopicResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSetIdentityNotificationTopicResponse Source #

Create a value of SetIdentityNotificationTopicResponse 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:httpStatus:SetIdentityNotificationTopicResponse', setIdentityNotificationTopicResponse_httpStatus - The response's http status code.

Response Lenses