amazonka-sns-1.6.1: Amazon Simple Notification Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Contents

Description

Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your account. You cannot send SMS messages to a number that is opted out.

To resume sending messages, you can opt in the number by using the OptInPhoneNumber action.

Synopsis

Creating a Request

checkIfPhoneNumberIsOptedOut Source #

Creates a value of CheckIfPhoneNumberIsOptedOut with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CheckIfPhoneNumberIsOptedOut Source #

The input for the CheckIfPhoneNumberIsOptedOut action.

See: checkIfPhoneNumberIsOptedOut smart constructor.

Instances
Eq CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Data CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CheckIfPhoneNumberIsOptedOut -> c CheckIfPhoneNumberIsOptedOut #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CheckIfPhoneNumberIsOptedOut #

toConstr :: CheckIfPhoneNumberIsOptedOut -> Constr #

dataTypeOf :: CheckIfPhoneNumberIsOptedOut -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CheckIfPhoneNumberIsOptedOut) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CheckIfPhoneNumberIsOptedOut) #

gmapT :: (forall b. Data b => b -> b) -> CheckIfPhoneNumberIsOptedOut -> CheckIfPhoneNumberIsOptedOut #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CheckIfPhoneNumberIsOptedOut -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CheckIfPhoneNumberIsOptedOut -> r #

gmapQ :: (forall d. Data d => d -> u) -> CheckIfPhoneNumberIsOptedOut -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CheckIfPhoneNumberIsOptedOut -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CheckIfPhoneNumberIsOptedOut -> m CheckIfPhoneNumberIsOptedOut #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CheckIfPhoneNumberIsOptedOut -> m CheckIfPhoneNumberIsOptedOut #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CheckIfPhoneNumberIsOptedOut -> m CheckIfPhoneNumberIsOptedOut #

Read CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Show CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Generic CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Associated Types

type Rep CheckIfPhoneNumberIsOptedOut :: Type -> Type #

Hashable CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

AWSRequest CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Associated Types

type Rs CheckIfPhoneNumberIsOptedOut :: Type #

ToHeaders CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

ToPath CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

ToQuery CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

NFData CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

type Rep CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

type Rep CheckIfPhoneNumberIsOptedOut = D1 (MetaData "CheckIfPhoneNumberIsOptedOut" "Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" True) (C1 (MetaCons "CheckIfPhoneNumberIsOptedOut'" PrefixI True) (S1 (MetaSel (Just "_cipniooPhoneNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Request Lenses

cipniooPhoneNumber :: Lens' CheckIfPhoneNumberIsOptedOut Text Source #

The phone number for which you want to check the opt out status.

Destructuring the Response

checkIfPhoneNumberIsOptedOutResponse Source #

Creates a value of CheckIfPhoneNumberIsOptedOutResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cipnioorsIsOptedOut - Indicates whether the phone number is opted out: * true – The phone number is opted out, meaning you cannot publish SMS messages to it. * false – The phone number is opted in, meaning you can publish SMS messages to it.
  • cipnioorsResponseStatus - -- | The response status code.

data CheckIfPhoneNumberIsOptedOutResponse Source #

The response from the CheckIfPhoneNumberIsOptedOut action.

See: checkIfPhoneNumberIsOptedOutResponse smart constructor.

Instances
Eq CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Data CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CheckIfPhoneNumberIsOptedOutResponse -> c CheckIfPhoneNumberIsOptedOutResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CheckIfPhoneNumberIsOptedOutResponse #

toConstr :: CheckIfPhoneNumberIsOptedOutResponse -> Constr #

dataTypeOf :: CheckIfPhoneNumberIsOptedOutResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CheckIfPhoneNumberIsOptedOutResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CheckIfPhoneNumberIsOptedOutResponse) #

gmapT :: (forall b. Data b => b -> b) -> CheckIfPhoneNumberIsOptedOutResponse -> CheckIfPhoneNumberIsOptedOutResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CheckIfPhoneNumberIsOptedOutResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CheckIfPhoneNumberIsOptedOutResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CheckIfPhoneNumberIsOptedOutResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CheckIfPhoneNumberIsOptedOutResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CheckIfPhoneNumberIsOptedOutResponse -> m CheckIfPhoneNumberIsOptedOutResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CheckIfPhoneNumberIsOptedOutResponse -> m CheckIfPhoneNumberIsOptedOutResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CheckIfPhoneNumberIsOptedOutResponse -> m CheckIfPhoneNumberIsOptedOutResponse #

Read CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Show CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

Generic CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

NFData CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

type Rep CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut

type Rep CheckIfPhoneNumberIsOptedOutResponse = D1 (MetaData "CheckIfPhoneNumberIsOptedOutResponse" "Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "CheckIfPhoneNumberIsOptedOutResponse'" PrefixI True) (S1 (MetaSel (Just "_cipnioorsIsOptedOut") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_cipnioorsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cipnioorsIsOptedOut :: Lens' CheckIfPhoneNumberIsOptedOutResponse (Maybe Bool) Source #

Indicates whether the phone number is opted out: * true – The phone number is opted out, meaning you cannot publish SMS messages to it. * false – The phone number is opted in, meaning you can publish SMS messages to it.