amazonka-sns-2.0: Amazon Simple Notification Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

Amazon SQS queue subscriptions require authentication for deletion. Only the owner of the subscription, or the owner of the topic can unsubscribe using the required Amazon Web Services signature.

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

AWSRequest Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Associated Types

type AWSResponse Unsubscribe #

Generic Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Associated Types

type Rep Unsubscribe :: Type -> Type #

Read Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Show Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

NFData Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Methods

rnf :: Unsubscribe -> () #

Eq Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

Hashable Unsubscribe Source # 
Instance details

Defined in Amazonka.SNS.Unsubscribe

type AWSResponse 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" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "Unsubscribe'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subscriptionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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.