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

Description

Returns a list of phone numbers that are opted out, meaning you cannot send SMS messages to them.

The results for ListPhoneNumbersOptedOut are paginated, and each page returns up to 100 phone numbers. If additional phone numbers are available after the first page of results, then a NextToken string will be returned. To receive the next page, you call ListPhoneNumbersOptedOut again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPhoneNumbersOptedOut Source #

The input for the ListPhoneNumbersOptedOut action.

See: newListPhoneNumbersOptedOut smart constructor.

Constructors

ListPhoneNumbersOptedOut' 

Fields

  • nextToken :: Maybe Text

    A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results.

Instances

Instances details
ToHeaders ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

ToPath ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

ToQuery ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

AWSPager ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

AWSRequest ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Generic ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Associated Types

type Rep ListPhoneNumbersOptedOut :: Type -> Type #

Read ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Show ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

NFData ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Eq ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Hashable ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

type AWSResponse ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

type Rep ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

type Rep ListPhoneNumbersOptedOut = D1 ('MetaData "ListPhoneNumbersOptedOut" "Amazonka.SNS.ListPhoneNumbersOptedOut" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "ListPhoneNumbersOptedOut'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListPhoneNumbersOptedOut :: ListPhoneNumbersOptedOut Source #

Create a value of ListPhoneNumbersOptedOut 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:

ListPhoneNumbersOptedOut, listPhoneNumbersOptedOut_nextToken - A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results.

Request Lenses

listPhoneNumbersOptedOut_nextToken :: Lens' ListPhoneNumbersOptedOut (Maybe Text) Source #

A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results.

Destructuring the Response

data ListPhoneNumbersOptedOutResponse Source #

The response from the ListPhoneNumbersOptedOut action.

See: newListPhoneNumbersOptedOutResponse smart constructor.

Constructors

ListPhoneNumbersOptedOutResponse' 

Fields

  • nextToken :: Maybe Text

    A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if additional records are available after the first page of results.

  • phoneNumbers :: Maybe [Text]

    A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Associated Types

type Rep ListPhoneNumbersOptedOutResponse :: Type -> Type #

Read ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Show ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

NFData ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Eq ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

type Rep ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

type Rep ListPhoneNumbersOptedOutResponse = D1 ('MetaData "ListPhoneNumbersOptedOutResponse" "Amazonka.SNS.ListPhoneNumbersOptedOut" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "ListPhoneNumbersOptedOutResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "phoneNumbers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListPhoneNumbersOptedOutResponse Source #

Create a value of ListPhoneNumbersOptedOutResponse 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:

ListPhoneNumbersOptedOut, listPhoneNumbersOptedOutResponse_nextToken - A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if additional records are available after the first page of results.

$sel:phoneNumbers:ListPhoneNumbersOptedOutResponse', listPhoneNumbersOptedOutResponse_phoneNumbers - A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.

$sel:httpStatus:ListPhoneNumbersOptedOutResponse', listPhoneNumbersOptedOutResponse_httpStatus - The response's http status code.

Response Lenses

listPhoneNumbersOptedOutResponse_nextToken :: Lens' ListPhoneNumbersOptedOutResponse (Maybe Text) Source #

A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if additional records are available after the first page of results.

listPhoneNumbersOptedOutResponse_phoneNumbers :: Lens' ListPhoneNumbersOptedOutResponse (Maybe [Text]) Source #

A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.