amazonka-iot-2.0: Amazon IoT 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.IoT.ListStreams

Description

Lists all of the streams in your Amazon Web Services account.

Requires permission to access the ListStreams action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListStreams Source #

See: newListStreams smart constructor.

Constructors

ListStreams' 

Fields

Instances

Instances details
ToHeaders ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Methods

toHeaders :: ListStreams -> [Header] #

ToPath ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

ToQuery ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

AWSPager ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

AWSRequest ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Associated Types

type AWSResponse ListStreams #

Generic ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Associated Types

type Rep ListStreams :: Type -> Type #

Read ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Show ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

NFData ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Methods

rnf :: ListStreams -> () #

Eq ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Hashable ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

type AWSResponse ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

type Rep ListStreams Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

type Rep ListStreams = D1 ('MetaData "ListStreams" "Amazonka.IoT.ListStreams" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListStreams'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ascendingOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListStreams :: ListStreams Source #

Create a value of ListStreams 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:ascendingOrder:ListStreams', listStreams_ascendingOrder - Set to true to return the list of streams in ascending order.

$sel:maxResults:ListStreams', listStreams_maxResults - The maximum number of results to return at a time.

ListStreams, listStreams_nextToken - A token used to get the next set of results.

Request Lenses

listStreams_ascendingOrder :: Lens' ListStreams (Maybe Bool) Source #

Set to true to return the list of streams in ascending order.

listStreams_maxResults :: Lens' ListStreams (Maybe Natural) Source #

The maximum number of results to return at a time.

listStreams_nextToken :: Lens' ListStreams (Maybe Text) Source #

A token used to get the next set of results.

Destructuring the Response

data ListStreamsResponse Source #

See: newListStreamsResponse smart constructor.

Constructors

ListStreamsResponse' 

Fields

Instances

Instances details
Generic ListStreamsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Associated Types

type Rep ListStreamsResponse :: Type -> Type #

Read ListStreamsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Show ListStreamsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

NFData ListStreamsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

Methods

rnf :: ListStreamsResponse -> () #

Eq ListStreamsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

type Rep ListStreamsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListStreams

type Rep ListStreamsResponse = D1 ('MetaData "ListStreamsResponse" "Amazonka.IoT.ListStreams" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListStreamsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [StreamSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListStreamsResponse Source #

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

ListStreams, listStreamsResponse_nextToken - A token used to get the next set of results.

$sel:streams:ListStreamsResponse', listStreamsResponse_streams - A list of streams.

$sel:httpStatus:ListStreamsResponse', listStreamsResponse_httpStatus - The response's http status code.

Response Lenses

listStreamsResponse_nextToken :: Lens' ListStreamsResponse (Maybe Text) Source #

A token used to get the next set of results.