Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data DescribeLogGroups = DescribeLogGroups' {}
- newDescribeLogGroups :: DescribeLogGroups
- describeLogGroups_logGroupNamePrefix :: Lens' DescribeLogGroups (Maybe Text)
- describeLogGroups_nextToken :: Lens' DescribeLogGroups (Maybe Text)
- describeLogGroups_limit :: Lens' DescribeLogGroups (Maybe Natural)
- data DescribeLogGroupsResponse = DescribeLogGroupsResponse' {}
- newDescribeLogGroupsResponse :: Int -> DescribeLogGroupsResponse
- describeLogGroupsResponse_logGroups :: Lens' DescribeLogGroupsResponse (Maybe [LogGroup])
- describeLogGroupsResponse_nextToken :: Lens' DescribeLogGroupsResponse (Maybe Text)
- describeLogGroupsResponse_httpStatus :: Lens' DescribeLogGroupsResponse Int
Creating a Request
data DescribeLogGroups Source #
See: newDescribeLogGroups
smart constructor.
Instances
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_logGroupNamePrefix :: Lens' DescribeLogGroups (Maybe Text) Source #
The prefix to match.
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.
Instances
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.
describeLogGroupsResponse_nextToken :: Lens' DescribeLogGroupsResponse (Maybe Text) Source #
Undocumented member.
describeLogGroupsResponse_httpStatus :: Lens' DescribeLogGroupsResponse Int Source #
The response's http status code.