| 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.WorkMail.PutMailboxPermissions
Description
Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.
Synopsis
- data PutMailboxPermissions = PutMailboxPermissions' {}
- newPutMailboxPermissions :: Text -> Text -> Text -> PutMailboxPermissions
- putMailboxPermissions_organizationId :: Lens' PutMailboxPermissions Text
- putMailboxPermissions_entityId :: Lens' PutMailboxPermissions Text
- putMailboxPermissions_granteeId :: Lens' PutMailboxPermissions Text
- putMailboxPermissions_permissionValues :: Lens' PutMailboxPermissions [PermissionType]
- data PutMailboxPermissionsResponse = PutMailboxPermissionsResponse' {
- httpStatus :: Int
- newPutMailboxPermissionsResponse :: Int -> PutMailboxPermissionsResponse
- putMailboxPermissionsResponse_httpStatus :: Lens' PutMailboxPermissionsResponse Int
Creating a Request
data PutMailboxPermissions Source #
See: newPutMailboxPermissions smart constructor.
Constructors
| PutMailboxPermissions' | |
Fields
| |
Instances
newPutMailboxPermissions Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> PutMailboxPermissions |
Create a value of PutMailboxPermissions 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:
PutMailboxPermissions, putMailboxPermissions_organizationId - The identifier of the organization under which the user, group, or
resource exists.
PutMailboxPermissions, putMailboxPermissions_entityId - The identifier of the user, group, or resource for which to update
mailbox permissions.
PutMailboxPermissions, putMailboxPermissions_granteeId - The identifier of the user, group, or resource to which to grant the
permissions.
PutMailboxPermissions, putMailboxPermissions_permissionValues - The permissions granted to the grantee. SEND_AS allows the grantee to
send email as the owner of the mailbox (the grantee is not mentioned on
these emails). SEND_ON_BEHALF allows the grantee to send email on behalf
of the owner of the mailbox (the grantee is not mentioned as the
physical sender of these emails). FULL_ACCESS allows the grantee full
access to the mailbox, irrespective of other folder-level permissions
set on the mailbox.
Request Lenses
putMailboxPermissions_organizationId :: Lens' PutMailboxPermissions Text Source #
The identifier of the organization under which the user, group, or resource exists.
putMailboxPermissions_entityId :: Lens' PutMailboxPermissions Text Source #
The identifier of the user, group, or resource for which to update mailbox permissions.
putMailboxPermissions_granteeId :: Lens' PutMailboxPermissions Text Source #
The identifier of the user, group, or resource to which to grant the permissions.
putMailboxPermissions_permissionValues :: Lens' PutMailboxPermissions [PermissionType] Source #
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
Destructuring the Response
data PutMailboxPermissionsResponse Source #
See: newPutMailboxPermissionsResponse smart constructor.
Constructors
| PutMailboxPermissionsResponse' | |
Fields
| |
Instances
newPutMailboxPermissionsResponse Source #
Create a value of PutMailboxPermissionsResponse 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:PutMailboxPermissionsResponse', putMailboxPermissionsResponse_httpStatus - The response's http status code.
Response Lenses
putMailboxPermissionsResponse_httpStatus :: Lens' PutMailboxPermissionsResponse Int Source #
The response's http status code.