| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Grafana.ListPermissions
Description
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_groupId :: Lens' ListPermissions (Maybe Text)
- listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural)
- listPermissions_nextToken :: Lens' ListPermissions (Maybe Text)
- listPermissions_userId :: Lens' ListPermissions (Maybe Text)
- 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.
Constructors
| ListPermissions' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListPermissions |
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: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.
ListPermissions, listPermissions_nextToken - The token to use when requesting the next set of results. You received
this token from a previous ListPermissions operation.
$sel:userId:ListPermissions', listPermissions_userId - (Optional) Limits the results to only the user that matches this ID.
$sel:userType:ListPermissions', listPermissions_userType - (Optional) If you specify SSO_USER, then only the permissions of IAM
Identity Center users are returned. If you specify SSO_GROUP, only the
permissions of IAM Identity Center groups are returned.
$sel:workspaceId:ListPermissions', listPermissions_workspaceId - The ID of the workspace to list permissions for. This parameter is
required.
Request Lenses
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_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_userId :: Lens' ListPermissions (Maybe Text) Source #
(Optional) Limits the results to only the user that matches this ID.
listPermissions_userType :: Lens' ListPermissions (Maybe UserType) Source #
(Optional) If you specify SSO_USER, then only the permissions of IAM
Identity Center users are returned. If you specify SSO_GROUP, only the
permissions of IAM Identity Center 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.
Constructors
| ListPermissionsResponse' | |
Fields
| |
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:
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.