libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams
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.DynamoDBStreams.ListStreams

Description

Returns an array of stream ARNs associated with the current account and endpoint. If the TableName parameter is present, then ListStreams will return only the streams ARNs for that table.

You can call ListStreams at a maximum rate of 5 times per second.

Synopsis

Creating a Request

data ListStreams Source #

Represents the input of a ListStreams operation.

See: newListStreams smart constructor.

Constructors

ListStreams' 

Fields

  • exclusiveStartStreamArn :: Maybe Text

    The ARN (Amazon Resource Name) of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedStreamArn in the previous operation.

  • limit :: Maybe Natural

    The maximum number of streams to return. The upper limit is 100.

  • tableName :: Maybe Text

    If this parameter is provided, then only the streams associated with this table name are returned.

Instances

Instances details
Eq ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Read ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Show ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Generic ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Associated Types

type Rep ListStreams :: Type -> Type #

NFData ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Methods

rnf :: ListStreams -> () #

Hashable ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

ToJSON ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

AWSRequest ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Associated Types

type AWSResponse ListStreams #

ToHeaders ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Methods

toHeaders :: ListStreams -> [Header] #

ToPath ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

ToQuery ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

type Rep ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

type Rep ListStreams = D1 ('MetaData "ListStreams" "Amazonka.DynamoDBStreams.ListStreams" "libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams" 'False) (C1 ('MetaCons "ListStreams'" 'PrefixI 'True) (S1 ('MetaSel ('Just "exclusiveStartStreamArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))
type AWSResponse ListStreams Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

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:exclusiveStartStreamArn:ListStreams', listStreams_exclusiveStartStreamArn - The ARN (Amazon Resource Name) of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedStreamArn in the previous operation.

$sel:limit:ListStreams', listStreams_limit - The maximum number of streams to return. The upper limit is 100.

$sel:tableName:ListStreams', listStreams_tableName - If this parameter is provided, then only the streams associated with this table name are returned.

Request Lenses

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

The ARN (Amazon Resource Name) of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedStreamArn in the previous operation.

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

The maximum number of streams to return. The upper limit is 100.

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

If this parameter is provided, then only the streams associated with this table name are returned.

Destructuring the Response

data ListStreamsResponse Source #

Represents the output of a ListStreams operation.

See: newListStreamsResponse smart constructor.

Constructors

ListStreamsResponse' 

Fields

  • lastEvaluatedStreamArn :: Maybe Text

    The stream ARN of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

    If LastEvaluatedStreamArn is empty, then the "last page" of results has been processed and there is no more data to be retrieved.

    If LastEvaluatedStreamArn is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedStreamArn is empty.

  • streams :: Maybe [Stream]

    A list of stream descriptors associated with the current account and endpoint.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListStreamsResponse Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Read ListStreamsResponse Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Show ListStreamsResponse Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Generic ListStreamsResponse Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Associated Types

type Rep ListStreamsResponse :: Type -> Type #

NFData ListStreamsResponse Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

Methods

rnf :: ListStreamsResponse -> () #

type Rep ListStreamsResponse Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.ListStreams

type Rep ListStreamsResponse = D1 ('MetaData "ListStreamsResponse" "Amazonka.DynamoDBStreams.ListStreams" "libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams" 'False) (C1 ('MetaCons "ListStreamsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastEvaluatedStreamArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Stream])) :*: 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:

$sel:lastEvaluatedStreamArn:ListStreamsResponse', listStreamsResponse_lastEvaluatedStreamArn - The stream ARN of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedStreamArn is empty, then the "last page" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedStreamArn is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedStreamArn is empty.

$sel:streams:ListStreamsResponse', listStreamsResponse_streams - A list of stream descriptors associated with the current account and endpoint.

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

Response Lenses

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

The stream ARN of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedStreamArn is empty, then the "last page" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedStreamArn is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedStreamArn is empty.

listStreamsResponse_streams :: Lens' ListStreamsResponse (Maybe [Stream]) Source #

A list of stream descriptors associated with the current account and endpoint.