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.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
Eq ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Read ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Show 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 #

NFData ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Hashable 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

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

type Rep ListPhoneNumbersOptedOut Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

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

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

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:

$sel:nextToken: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

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

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Read ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Show ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Generic ListPhoneNumbersOptedOutResponse Source # 
Instance details

Defined in Amazonka.SNS.ListPhoneNumbersOptedOut

Associated Types

type Rep ListPhoneNumbersOptedOutResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-snsZSamazonka-sns" 'False) (C1 ('MetaCons "ListPhoneNumbersOptedOutResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "phoneNumbers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "nextToken") '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:

$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:nextToken: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:httpStatus:ListPhoneNumbersOptedOutResponse', listPhoneNumbersOptedOutResponse_httpStatus - The response's http status code.

Response Lenses

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.

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.