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 users and groups who have the Grafana Admin
and Editor
roles in this workspace. If you use this operation without specifying
userId
or groupId
, the operation returns the roles of all users and
groups. If you specify a userId
or a groupId
, only the roles for
that user or group are returned. If you do this, you can specify only
one userId
or one groupId
.
This operation returns paginated results.
Synopsis
- data ListPermissions = ListPermissions' {}
- newListPermissions :: Text -> ListPermissions
- listPermissions_userId :: Lens' ListPermissions (Maybe Text)
- listPermissions_nextToken :: Lens' ListPermissions (Maybe Text)
- listPermissions_groupId :: Lens' ListPermissions (Maybe Text)
- listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural)
- listPermissions_userType :: Lens' ListPermissions (Maybe UserType)
- listPermissions_workspaceId :: Lens' ListPermissions Text
- data ListPermissionsResponse = ListPermissionsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- permissions :: [PermissionEntry]
- newListPermissionsResponse :: Int -> ListPermissionsResponse
- listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text)
- listPermissionsResponse_httpStatus :: Lens' ListPermissionsResponse Int
- listPermissionsResponse_permissions :: Lens' ListPermissionsResponse [PermissionEntry]
Creating a Request
data ListPermissions Source #
See: newListPermissions
smart constructor.
ListPermissions' | |
|
Instances
Create a value of ListPermissions
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:userId:ListPermissions'
, listPermissions_userId
- (Optional) Limits the results to only the user that matches this ID.
$sel:nextToken:ListPermissions'
, listPermissions_nextToken
- The token to use when requesting the next set of results. You received
this token from a previous ListPermissions
operation.
$sel:groupId:ListPermissions'
, listPermissions_groupId
- (Optional) Limits the results to only the group that matches this ID.
$sel:maxResults:ListPermissions'
, listPermissions_maxResults
- The maximum number of results to include in the response.
$sel:userType:ListPermissions'
, listPermissions_userType
- (Optional) If you specify SSO_USER
, then only the permissions of
Amazon Web Services SSO users are returned. If you specify SSO_GROUP
,
only the permissions of Amazon Web Services SSO groups are returned.
$sel:workspaceId:ListPermissions'
, listPermissions_workspaceId
- The ID of the workspace to list permissions for. This parameter is
required.
Request Lenses
listPermissions_userId :: Lens' ListPermissions (Maybe Text) Source #
(Optional) Limits the results to only the user that matches this ID.
listPermissions_nextToken :: Lens' ListPermissions (Maybe Text) Source #
The token to use when requesting the next set of results. You received
this token from a previous ListPermissions
operation.
listPermissions_groupId :: Lens' ListPermissions (Maybe Text) Source #
(Optional) Limits the results to only the group that matches this ID.
listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural) Source #
The maximum number of results to include in the response.
listPermissions_userType :: Lens' ListPermissions (Maybe UserType) Source #
(Optional) If you specify SSO_USER
, then only the permissions of
Amazon Web Services SSO users are returned. If you specify SSO_GROUP
,
only the permissions of Amazon Web Services SSO groups are returned.
listPermissions_workspaceId :: Lens' ListPermissions Text Source #
The ID of the workspace to list permissions for. This parameter is required.
Destructuring the Response
data ListPermissionsResponse Source #
See: newListPermissionsResponse
smart constructor.
ListPermissionsResponse' | |
|
Instances
newListPermissionsResponse Source #
Create a value of ListPermissionsResponse
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:nextToken:ListPermissions'
, listPermissionsResponse_nextToken
- The token to use in a subsequent ListPermissions
operation to return
the next set of results.
$sel:httpStatus:ListPermissionsResponse'
, listPermissionsResponse_httpStatus
- The response's http status code.
$sel:permissions:ListPermissionsResponse'
, listPermissionsResponse_permissions
- The permissions returned by the operation.
Response Lenses
listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text) Source #
The token to use in a subsequent ListPermissions
operation to return
the next set of results.
listPermissionsResponse_httpStatus :: Lens' ListPermissionsResponse Int Source #
The response's http status code.
listPermissionsResponse_permissions :: Lens' ListPermissionsResponse [PermissionEntry] Source #
The permissions returned by the operation.