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

Description

Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a NextToken is also returned. Use the NextToken parameter in a new ListTopics call to get further results.

This action is throttled at 30 transactions per second (TPS).

This operation returns paginated results.

Synopsis

Creating a Request

data ListTopics Source #

See: newListTopics smart constructor.

Constructors

ListTopics' 

Fields

Instances

Instances details
Eq ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Read ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Show ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Generic ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Associated Types

type Rep ListTopics :: Type -> Type #

NFData ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Methods

rnf :: ListTopics -> () #

Hashable ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

AWSPager ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

AWSRequest ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Associated Types

type AWSResponse ListTopics #

ToHeaders ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Methods

toHeaders :: ListTopics -> [Header] #

ToPath ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

ToQuery ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

type Rep ListTopics Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

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

Defined in Amazonka.SNS.ListTopics

newListTopics :: ListTopics Source #

Create a value of ListTopics 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:ListTopics', listTopics_nextToken - Token returned by the previous ListTopics request.

Request Lenses

listTopics_nextToken :: Lens' ListTopics (Maybe Text) Source #

Token returned by the previous ListTopics request.

Destructuring the Response

data ListTopicsResponse Source #

Response for ListTopics action.

See: newListTopicsResponse smart constructor.

Constructors

ListTopicsResponse' 

Fields

  • topics :: Maybe [Topic]

    A list of topic ARNs.

  • nextToken :: Maybe Text

    Token to pass along to the next ListTopics request. This element is returned if there are additional topics to retrieve.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListTopicsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Read ListTopicsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Show ListTopicsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Generic ListTopicsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Associated Types

type Rep ListTopicsResponse :: Type -> Type #

NFData ListTopicsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

Methods

rnf :: ListTopicsResponse -> () #

type Rep ListTopicsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListTopics

type Rep ListTopicsResponse = D1 ('MetaData "ListTopicsResponse" "Amazonka.SNS.ListTopics" "libZSservicesZSamazonka-snsZSamazonka-sns" 'False) (C1 ('MetaCons "ListTopicsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "topics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Topic])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTopicsResponse Source #

Create a value of ListTopicsResponse 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:topics:ListTopicsResponse', listTopicsResponse_topics - A list of topic ARNs.

$sel:nextToken:ListTopics', listTopicsResponse_nextToken - Token to pass along to the next ListTopics request. This element is returned if there are additional topics to retrieve.

$sel:httpStatus:ListTopicsResponse', listTopicsResponse_httpStatus - The response's http status code.

Response Lenses

listTopicsResponse_nextToken :: Lens' ListTopicsResponse (Maybe Text) Source #

Token to pass along to the next ListTopics request. This element is returned if there are additional topics to retrieve.