libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
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.CloudWatchLogs.DescribeLogGroups

Description

Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.

CloudWatch Logs doesn’t support IAM policies that control access to the DescribeLogGroups action by using the aws:ResourceTag/key-name condition key. Other CloudWatch Logs actions do support the use of the aws:ResourceTag/key-name condition key to control access. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeLogGroups Source #

See: newDescribeLogGroups smart constructor.

Constructors

DescribeLogGroups' 

Fields

Instances

Instances details
Eq DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Read DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Show DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Generic DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Associated Types

type Rep DescribeLogGroups :: Type -> Type #

NFData DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Methods

rnf :: DescribeLogGroups -> () #

Hashable DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

ToJSON DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

AWSPager DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

AWSRequest DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Associated Types

type AWSResponse DescribeLogGroups #

ToHeaders DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

ToPath DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

ToQuery DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

type Rep DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

type Rep DescribeLogGroups = D1 ('MetaData "DescribeLogGroups" "Amazonka.CloudWatchLogs.DescribeLogGroups" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DescribeLogGroups'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logGroupNamePrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse DescribeLogGroups Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

newDescribeLogGroups :: DescribeLogGroups Source #

Create a value of DescribeLogGroups 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:logGroupNamePrefix:DescribeLogGroups', describeLogGroups_logGroupNamePrefix - The prefix to match.

$sel:nextToken:DescribeLogGroups', describeLogGroups_nextToken - The token for the next set of items to return. (You received this token from a previous call.)

$sel:limit:DescribeLogGroups', describeLogGroups_limit - The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

Request Lenses

describeLogGroups_nextToken :: Lens' DescribeLogGroups (Maybe Text) Source #

The token for the next set of items to return. (You received this token from a previous call.)

describeLogGroups_limit :: Lens' DescribeLogGroups (Maybe Natural) Source #

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

Destructuring the Response

data DescribeLogGroupsResponse Source #

See: newDescribeLogGroupsResponse smart constructor.

Constructors

DescribeLogGroupsResponse' 

Fields

Instances

Instances details
Eq DescribeLogGroupsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Read DescribeLogGroupsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Show DescribeLogGroupsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Generic DescribeLogGroupsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

Associated Types

type Rep DescribeLogGroupsResponse :: Type -> Type #

NFData DescribeLogGroupsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

type Rep DescribeLogGroupsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeLogGroups

type Rep DescribeLogGroupsResponse = D1 ('MetaData "DescribeLogGroupsResponse" "Amazonka.CloudWatchLogs.DescribeLogGroups" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DescribeLogGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LogGroup])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeLogGroupsResponse Source #

Create a value of DescribeLogGroupsResponse 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:logGroups:DescribeLogGroupsResponse', describeLogGroupsResponse_logGroups - The log groups.

If the retentionInDays value if not included for a log group, then that log group is set to have its events never expire.

$sel:nextToken:DescribeLogGroups', describeLogGroupsResponse_nextToken - Undocumented member.

$sel:httpStatus:DescribeLogGroupsResponse', describeLogGroupsResponse_httpStatus - The response's http status code.

Response Lenses

describeLogGroupsResponse_logGroups :: Lens' DescribeLogGroupsResponse (Maybe [LogGroup]) Source #

The log groups.

If the retentionInDays value if not included for a log group, then that log group is set to have its events never expire.