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

Description

Returns a list of the requester's subscriptions. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a NextToken is also returned. Use the NextToken parameter in a new ListSubscriptions 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 ListSubscriptions Source #

Input for ListSubscriptions action.

See: newListSubscriptions smart constructor.

Constructors

ListSubscriptions' 

Fields

Instances

Instances details
Eq ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Read ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Show ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Generic ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Associated Types

type Rep ListSubscriptions :: Type -> Type #

NFData ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Methods

rnf :: ListSubscriptions -> () #

Hashable ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

AWSPager ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

AWSRequest ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Associated Types

type AWSResponse ListSubscriptions #

ToHeaders ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

ToPath ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

ToQuery ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

type Rep ListSubscriptions Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

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

Defined in Amazonka.SNS.ListSubscriptions

newListSubscriptions :: ListSubscriptions Source #

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

Request Lenses

listSubscriptions_nextToken :: Lens' ListSubscriptions (Maybe Text) Source #

Token returned by the previous ListSubscriptions request.

Destructuring the Response

data ListSubscriptionsResponse Source #

Response for ListSubscriptions action

See: newListSubscriptionsResponse smart constructor.

Constructors

ListSubscriptionsResponse' 

Fields

Instances

Instances details
Eq ListSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Read ListSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Show ListSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Generic ListSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

Associated Types

type Rep ListSubscriptionsResponse :: Type -> Type #

NFData ListSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

type Rep ListSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.SNS.ListSubscriptions

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

newListSubscriptionsResponse Source #

Create a value of ListSubscriptionsResponse 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:ListSubscriptions', listSubscriptionsResponse_nextToken - Token to pass along to the next ListSubscriptions request. This element is returned if there are more subscriptions to retrieve.

$sel:subscriptions:ListSubscriptionsResponse', listSubscriptionsResponse_subscriptions - A list of subscriptions.

$sel:httpStatus:ListSubscriptionsResponse', listSubscriptionsResponse_httpStatus - The response's http status code.

Response Lenses

listSubscriptionsResponse_nextToken :: Lens' ListSubscriptionsResponse (Maybe Text) Source #

Token to pass along to the next ListSubscriptions request. This element is returned if there are more subscriptions to retrieve.