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

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

data CheckIfPhoneNumberIsOptedOut Source #

The input for the CheckIfPhoneNumberIsOptedOut action.

See: newCheckIfPhoneNumberIsOptedOut smart constructor.

Constructors

CheckIfPhoneNumberIsOptedOut' 

Fields

  • phoneNumber :: Text

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

Instances

Instances details
Eq CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Read CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Show CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Generic CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Associated Types

type Rep CheckIfPhoneNumberIsOptedOut :: Type -> Type #

NFData CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Hashable CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

AWSRequest CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

ToHeaders CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

ToPath CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

ToQuery CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

type Rep CheckIfPhoneNumberIsOptedOut Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

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

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

newCheckIfPhoneNumberIsOptedOut Source #

Create a value of CheckIfPhoneNumberIsOptedOut 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:phoneNumber:CheckIfPhoneNumberIsOptedOut', checkIfPhoneNumberIsOptedOut_phoneNumber - The phone number for which you want to check the opt out status.

Request Lenses

checkIfPhoneNumberIsOptedOut_phoneNumber :: Lens' CheckIfPhoneNumberIsOptedOut Text Source #

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

Destructuring the Response

data CheckIfPhoneNumberIsOptedOutResponse Source #

The response from the CheckIfPhoneNumberIsOptedOut action.

See: newCheckIfPhoneNumberIsOptedOutResponse smart constructor.

Constructors

CheckIfPhoneNumberIsOptedOutResponse' 

Fields

  • isOptedOut :: Maybe Bool

    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.
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Read CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Show CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

Generic CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

NFData CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

type Rep CheckIfPhoneNumberIsOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.CheckIfPhoneNumberIsOptedOut

type Rep CheckIfPhoneNumberIsOptedOutResponse = D1 ('MetaData "CheckIfPhoneNumberIsOptedOutResponse" "Amazonka.SNS.CheckIfPhoneNumberIsOptedOut" "libZSservicesZSamazonka-snsZSamazonka-sns" 'False) (C1 ('MetaCons "CheckIfPhoneNumberIsOptedOutResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "isOptedOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCheckIfPhoneNumberIsOptedOutResponse Source #

Create a value of CheckIfPhoneNumberIsOptedOutResponse 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:isOptedOut:CheckIfPhoneNumberIsOptedOutResponse', checkIfPhoneNumberIsOptedOutResponse_isOptedOut - 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.

$sel:httpStatus:CheckIfPhoneNumberIsOptedOutResponse', checkIfPhoneNumberIsOptedOutResponse_httpStatus - The response's http status code.

Response Lenses

checkIfPhoneNumberIsOptedOutResponse_isOptedOut :: 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.