amazonka-cloudwatch-logs-1.4.3: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchLogs.DescribeLogStreams

Contents

Description

Returns all the log streams that are associated with the specified log group. The list returned in the response is ASCII-sorted by log stream name.

By default, this operation returns up to 50 log streams. If there are more log streams to list, the response would contain a nextToken value in the response body. You can also limit the number of log streams returned in the response by specifying the limit parameter in the request. This operation has a limit of five transactions per second, after which transactions are throttled.

This operation returns paginated results.

Synopsis

Creating a Request

describeLogStreams Source #

Creates a value of DescribeLogStreams with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeLogStreams Source #

See: describeLogStreams smart constructor.

Instances

Eq DescribeLogStreams Source # 
Data DescribeLogStreams Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeLogStreams -> c DescribeLogStreams #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeLogStreams #

toConstr :: DescribeLogStreams -> Constr #

dataTypeOf :: DescribeLogStreams -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeLogStreams) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeLogStreams) #

gmapT :: (forall b. Data b => b -> b) -> DescribeLogStreams -> DescribeLogStreams #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLogStreams -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLogStreams -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeLogStreams -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeLogStreams -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeLogStreams -> m DescribeLogStreams #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLogStreams -> m DescribeLogStreams #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLogStreams -> m DescribeLogStreams #

Read DescribeLogStreams Source # 
Show DescribeLogStreams Source # 
Generic DescribeLogStreams Source # 
Hashable DescribeLogStreams Source # 
ToJSON DescribeLogStreams Source # 
NFData DescribeLogStreams Source # 

Methods

rnf :: DescribeLogStreams -> () #

AWSPager DescribeLogStreams Source # 
AWSRequest DescribeLogStreams Source # 
ToQuery DescribeLogStreams Source # 
ToPath DescribeLogStreams Source # 
ToHeaders DescribeLogStreams Source # 
type Rep DescribeLogStreams Source # 
type Rep DescribeLogStreams = D1 (MetaData "DescribeLogStreams" "Network.AWS.CloudWatchLogs.DescribeLogStreams" "amazonka-cloudwatch-logs-1.4.3-KJyQH8tL8lh8FhkJJO1rsH" False) (C1 (MetaCons "DescribeLogStreams'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dlssOrderBy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OrderBy))) ((:*:) (S1 (MetaSel (Just Symbol "_dlssDescending") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_dlssNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_dlssLogStreamNamePrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dlssLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_dlssLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs DescribeLogStreams Source # 

Request Lenses

dlssOrderBy :: Lens' DescribeLogStreams (Maybe OrderBy) Source #

Specifies what to order the returned log streams by. Valid arguments are 'LogStreamName' or 'LastEventTime'. If you don't specify a value, results are ordered by LogStreamName. If 'LastEventTime' is chosen, the request cannot also contain a logStreamNamePrefix.

dlssDescending :: Lens' DescribeLogStreams (Maybe Bool) Source #

If set to true, results are returned in descending order. If you don't specify a value or set it to false, results are returned in ascending order.

dlssNextToken :: Lens' DescribeLogStreams (Maybe Text) Source #

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeLogStreams request.

dlssLogStreamNamePrefix :: Lens' DescribeLogStreams (Maybe Text) Source #

Will only return log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

dlssLimit :: Lens' DescribeLogStreams (Maybe Natural) Source #

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

dlssLogGroupName :: Lens' DescribeLogStreams Text Source #

The log group name for which log streams are to be listed.

Destructuring the Response

describeLogStreamsResponse Source #

Creates a value of DescribeLogStreamsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeLogStreamsResponse Source #

See: describeLogStreamsResponse smart constructor.

Instances

Eq DescribeLogStreamsResponse Source # 
Data DescribeLogStreamsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeLogStreamsResponse -> c DescribeLogStreamsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeLogStreamsResponse #

toConstr :: DescribeLogStreamsResponse -> Constr #

dataTypeOf :: DescribeLogStreamsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeLogStreamsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeLogStreamsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeLogStreamsResponse -> DescribeLogStreamsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLogStreamsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeLogStreamsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeLogStreamsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeLogStreamsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeLogStreamsResponse -> m DescribeLogStreamsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLogStreamsResponse -> m DescribeLogStreamsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeLogStreamsResponse -> m DescribeLogStreamsResponse #

Read DescribeLogStreamsResponse Source # 
Show DescribeLogStreamsResponse Source # 
Generic DescribeLogStreamsResponse Source # 
NFData DescribeLogStreamsResponse Source # 
type Rep DescribeLogStreamsResponse Source # 
type Rep DescribeLogStreamsResponse = D1 (MetaData "DescribeLogStreamsResponse" "Network.AWS.CloudWatchLogs.DescribeLogStreams" "amazonka-cloudwatch-logs-1.4.3-KJyQH8tL8lh8FhkJJO1rsH" False) (C1 (MetaCons "DescribeLogStreamsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dlsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dlsrsLogStreams") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [LogStream]))) (S1 (MetaSel (Just Symbol "_dlsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses