Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
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:
$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' | |
Instances
Eq UnsubscribeResponse Source # | |
Defined in Amazonka.SNS.Unsubscribe Methods (==) :: UnsubscribeResponse -> UnsubscribeResponse -> Bool # (/=) :: UnsubscribeResponse -> UnsubscribeResponse -> Bool # | |
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 # | |
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 # | |
NFData UnsubscribeResponse Source # | |
Defined in Amazonka.SNS.Unsubscribe Methods rnf :: UnsubscribeResponse -> () # | |
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.