libZSservicesZSamazonka-snsZSamazonka-sns
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.SNS.Unsubscribe

Description

Deletes a subscription. If the subscription requires authentication for deletion, only the owner of the subscription or the topic's owner can unsubscribe, and an Amazon Web Services signature is required. If the Unsubscribe call does not require authentication and the requester is not the subscription owner, a final cancellation message is delivered to the endpoint, so that the endpoint owner can easily resubscribe to the topic if the Unsubscribe request was unintended.

This action is throttled at 100 transactions per second (TPS).

Synopsis

Creating a Request

data Unsubscribe Source #

Input for Unsubscribe action.

See: newUnsubscribe smart constructor.

Constructors

Unsubscribe' 

Fields

Instances

Instances details
Eq Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Read Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Show Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Generic Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Associated Types

type Rep Unsubscribe :: Type -> Type #

NFData Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Methods

rnf :: Unsubscribe -> () #

Hashable Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

AWSRequest Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Associated Types

type AWSResponse Unsubscribe #

ToHeaders Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Methods

toHeaders :: Unsubscribe -> [Header] #

ToPath Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

ToQuery Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

type Rep Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

type Rep Unsubscribe = D1 ('MetaData "Unsubscribe" "Amazonka.SNS.Unsubscribe" "libZSservicesZSamazonka-snsZSamazonka-sns" 'False) (C1 ('MetaCons "Unsubscribe'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subscriptionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

newUnsubscribe Source #

Create a value of Unsubscribe 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:subscriptionArn:Unsubscribe', unsubscribe_subscriptionArn - The ARN of the subscription to be deleted.

Request Lenses

unsubscribe_subscriptionArn :: Lens' Unsubscribe Text Source #

The ARN of the subscription to be deleted.

Destructuring the Response

data UnsubscribeResponse Source #

See: newUnsubscribeResponse smart constructor.

Constructors

UnsubscribeResponse' 

newUnsubscribeResponse :: UnsubscribeResponse Source #

Create a value of UnsubscribeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.