| 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.UpdatePermissions
Description
Updates which users in a workspace have the Grafana Admin or Editor
roles.
Synopsis
- data UpdatePermissions = UpdatePermissions' {}
- newUpdatePermissions :: Text -> UpdatePermissions
- updatePermissions_updateInstructionBatch :: Lens' UpdatePermissions [UpdateInstruction]
- updatePermissions_workspaceId :: Lens' UpdatePermissions Text
- data UpdatePermissionsResponse = UpdatePermissionsResponse' {
- httpStatus :: Int
- errors :: [UpdateError]
- newUpdatePermissionsResponse :: Int -> UpdatePermissionsResponse
- updatePermissionsResponse_httpStatus :: Lens' UpdatePermissionsResponse Int
- updatePermissionsResponse_errors :: Lens' UpdatePermissionsResponse [UpdateError]
Creating a Request
data UpdatePermissions Source #
See: newUpdatePermissions smart constructor.
Constructors
| UpdatePermissions' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdatePermissions |
Create a value of UpdatePermissions 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:updateInstructionBatch:UpdatePermissions', updatePermissions_updateInstructionBatch - An array of structures that contain the permission updates to make.
$sel:workspaceId:UpdatePermissions', updatePermissions_workspaceId - The ID of the workspace to update.
Request Lenses
updatePermissions_updateInstructionBatch :: Lens' UpdatePermissions [UpdateInstruction] Source #
An array of structures that contain the permission updates to make.
updatePermissions_workspaceId :: Lens' UpdatePermissions Text Source #
The ID of the workspace to update.
Destructuring the Response
data UpdatePermissionsResponse Source #
See: newUpdatePermissionsResponse smart constructor.
Constructors
| UpdatePermissionsResponse' | |
Fields
| |
Instances
newUpdatePermissionsResponse Source #
Create a value of UpdatePermissionsResponse 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:httpStatus:UpdatePermissionsResponse', updatePermissionsResponse_httpStatus - The response's http status code.
$sel:errors:UpdatePermissionsResponse', updatePermissionsResponse_errors - An array of structures that contain the errors from the operation, if
any.
Response Lenses
updatePermissionsResponse_httpStatus :: Lens' UpdatePermissionsResponse Int Source #
The response's http status code.
updatePermissionsResponse_errors :: Lens' UpdatePermissionsResponse [UpdateError] Source #
An array of structures that contain the errors from the operation, if any.