Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
Arguments
:: Text | |
-> Unsubscribe |
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' | |
Instances
Generic UnsubscribeResponse Source # | |
Defined in Amazonka.SNS.Unsubscribe Associated Types type Rep UnsubscribeResponse :: Type -> Type # Methods from :: UnsubscribeResponse -> Rep UnsubscribeResponse x # to :: Rep UnsubscribeResponse x -> UnsubscribeResponse # | |
Read UnsubscribeResponse Source # | |
Defined in Amazonka.SNS.Unsubscribe Methods readsPrec :: Int -> ReadS UnsubscribeResponse # readList :: ReadS [UnsubscribeResponse] # | |
Show UnsubscribeResponse Source # | |
Defined in Amazonka.SNS.Unsubscribe Methods showsPrec :: Int -> UnsubscribeResponse -> ShowS # show :: UnsubscribeResponse -> String # showList :: [UnsubscribeResponse] -> ShowS # | |
NFData UnsubscribeResponse Source # | |
Defined in Amazonka.SNS.Unsubscribe Methods rnf :: UnsubscribeResponse -> () # | |
Eq UnsubscribeResponse Source # | |
Defined in Amazonka.SNS.Unsubscribe Methods (==) :: UnsubscribeResponse -> UnsubscribeResponse -> Bool # (/=) :: UnsubscribeResponse -> UnsubscribeResponse -> Bool # | |
type Rep UnsubscribeResponse Source # | |
newUnsubscribeResponse :: UnsubscribeResponse Source #
Create a value of UnsubscribeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.