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 |
Returns a list of user groups.
This operation returns paginated results.
Synopsis
- data DescribeUserGroups = DescribeUserGroups' {
- userGroupId :: Maybe Text
- marker :: Maybe Text
- maxRecords :: Maybe Int
- newDescribeUserGroups :: DescribeUserGroups
- describeUserGroups_userGroupId :: Lens' DescribeUserGroups (Maybe Text)
- describeUserGroups_marker :: Lens' DescribeUserGroups (Maybe Text)
- describeUserGroups_maxRecords :: Lens' DescribeUserGroups (Maybe Int)
- data DescribeUserGroupsResponse = DescribeUserGroupsResponse' {
- userGroups :: Maybe [UserGroup]
- marker :: Maybe Text
- httpStatus :: Int
- newDescribeUserGroupsResponse :: Int -> DescribeUserGroupsResponse
- describeUserGroupsResponse_userGroups :: Lens' DescribeUserGroupsResponse (Maybe [UserGroup])
- describeUserGroupsResponse_marker :: Lens' DescribeUserGroupsResponse (Maybe Text)
- describeUserGroupsResponse_httpStatus :: Lens' DescribeUserGroupsResponse Int
Creating a Request
data DescribeUserGroups Source #
See: newDescribeUserGroups
smart constructor.
DescribeUserGroups' | |
|
Instances
newDescribeUserGroups :: DescribeUserGroups Source #
Create a value of DescribeUserGroups
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:userGroupId:DescribeUserGroups'
, describeUserGroups_userGroupId
- The ID of the user group.
$sel:marker:DescribeUserGroups'
, describeUserGroups_marker
- An optional marker returned from a prior request. Use this marker for
pagination of results from this operation. If this parameter is
specified, the response includes only records beyond the marker, up to
the value specified by MaxRecords. >
$sel:maxRecords:DescribeUserGroups'
, describeUserGroups_maxRecords
- The maximum number of records to include in the response. If more
records exist than the specified MaxRecords value, a marker is included
in the response so that the remaining results can be retrieved.
Request Lenses
describeUserGroups_userGroupId :: Lens' DescribeUserGroups (Maybe Text) Source #
The ID of the user group.
describeUserGroups_marker :: Lens' DescribeUserGroups (Maybe Text) Source #
An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >
describeUserGroups_maxRecords :: Lens' DescribeUserGroups (Maybe Int) Source #
The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Destructuring the Response
data DescribeUserGroupsResponse Source #
See: newDescribeUserGroupsResponse
smart constructor.
DescribeUserGroupsResponse' | |
|
Instances
newDescribeUserGroupsResponse Source #
Create a value of DescribeUserGroupsResponse
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:userGroups:DescribeUserGroupsResponse'
, describeUserGroupsResponse_userGroups
- Returns a list of user groups.
$sel:marker:DescribeUserGroups'
, describeUserGroupsResponse_marker
- An optional marker returned from a prior request. Use this marker for
pagination of results from this operation. If this parameter is
specified, the response includes only records beyond the marker, up to
the value specified by MaxRecords. >
$sel:httpStatus:DescribeUserGroupsResponse'
, describeUserGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
describeUserGroupsResponse_userGroups :: Lens' DescribeUserGroupsResponse (Maybe [UserGroup]) Source #
Returns a list of user groups.
describeUserGroupsResponse_marker :: Lens' DescribeUserGroupsResponse (Maybe Text) Source #
An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >
describeUserGroupsResponse_httpStatus :: Lens' DescribeUserGroupsResponse Int Source #
The response's http status code.