amazonka-kinesis-2.0: Amazon Kinesis 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.Kinesis.ListStreams

Description

Lists your Kinesis data streams.

The number of streams may be too large to return from a single call to ListStreams. You can limit the number of returned streams using the Limit parameter. If you do not specify a value for the Limit parameter, Kinesis Data Streams uses the default limit, which is currently 100.

You can detect if there are more streams available to list by using the HasMoreStreams flag from the returned output. If there are more streams available, you can request more streams by using the name of the last stream returned by the ListStreams request in the ExclusiveStartStreamName parameter in a subsequent request to ListStreams. The group of stream names returned by the subsequent request is then added to the list. You can continue this process until all the stream names have been collected in the list.

ListStreams has a limit of five transactions per second per account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListStreams Source #

Represents the input for ListStreams.

See: newListStreams smart constructor.

Constructors

ListStreams' 

Fields

Instances

Instances details
ToJSON ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

ToHeaders ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Methods

toHeaders :: ListStreams -> [Header] #

ToPath ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

ToQuery ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

AWSPager ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

AWSRequest ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Associated Types

type AWSResponse ListStreams #

Generic ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Associated Types

type Rep ListStreams :: Type -> Type #

Read ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Show ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

NFData ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Methods

rnf :: ListStreams -> () #

Eq ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Hashable ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

type AWSResponse ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

type Rep ListStreams Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

type Rep ListStreams = D1 ('MetaData "ListStreams" "Amazonka.Kinesis.ListStreams" "amazonka-kinesis-2.0-AW1spVPMUGf3LUqQQ22bci" 'False) (C1 ('MetaCons "ListStreams'" 'PrefixI 'True) (S1 ('MetaSel ('Just "exclusiveStartStreamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "limit") '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:exclusiveStartStreamName:ListStreams', listStreams_exclusiveStartStreamName - The name of the stream to start the list with.

$sel:limit:ListStreams', listStreams_limit - The maximum number of streams to list. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.

ListStreams, listStreams_nextToken -

Request Lenses

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

The name of the stream to start the list with.

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

The maximum number of streams to list. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.

Destructuring the Response

data ListStreamsResponse Source #

Represents the output for ListStreams.

See: newListStreamsResponse smart constructor.

Constructors

ListStreamsResponse' 

Fields

Instances

Instances details
Generic ListStreamsResponse Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Associated Types

type Rep ListStreamsResponse :: Type -> Type #

Read ListStreamsResponse Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Show ListStreamsResponse Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

NFData ListStreamsResponse Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

Methods

rnf :: ListStreamsResponse -> () #

Eq ListStreamsResponse Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

type Rep ListStreamsResponse Source # 
Instance details

Defined in Amazonka.Kinesis.ListStreams

type Rep ListStreamsResponse = D1 ('MetaData "ListStreamsResponse" "Amazonka.Kinesis.ListStreams" "amazonka-kinesis-2.0-AW1spVPMUGf3LUqQQ22bci" 'False) (C1 ('MetaCons "ListStreamsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "streamSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [StreamSummary]))) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "streamNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "hasMoreStreams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))

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 -

$sel:streamSummaries:ListStreamsResponse', listStreamsResponse_streamSummaries -

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

$sel:streamNames:ListStreamsResponse', listStreamsResponse_streamNames - The names of the streams that are associated with the Amazon Web Services account making the ListStreams request.

$sel:hasMoreStreams:ListStreamsResponse', listStreamsResponse_hasMoreStreams - If set to true, there are more streams available to list.

Response Lenses

listStreamsResponse_streamNames :: Lens' ListStreamsResponse [Text] Source #

The names of the streams that are associated with the Amazon Web Services account making the ListStreams request.

listStreamsResponse_hasMoreStreams :: Lens' ListStreamsResponse Bool Source #

If set to true, there are more streams available to list.