Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Sets permissions for a user or group. This replaces any pre-existing permissions set for the entity.
Synopsis
- putMailboxPermissions :: Text -> Text -> Text -> PutMailboxPermissions
- data PutMailboxPermissions
- pmpOrganizationId :: Lens' PutMailboxPermissions Text
- pmpEntityId :: Lens' PutMailboxPermissions Text
- pmpGranteeId :: Lens' PutMailboxPermissions Text
- pmpPermissionValues :: Lens' PutMailboxPermissions [PermissionType]
- putMailboxPermissionsResponse :: Int -> PutMailboxPermissionsResponse
- data PutMailboxPermissionsResponse
- pmprsResponseStatus :: Lens' PutMailboxPermissionsResponse Int
Creating a Request
putMailboxPermissions Source #
Creates a value of PutMailboxPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pmpOrganizationId
- The identifier of the organization under which the entity (user or group) exists.pmpEntityId
- The identifier of the entity (user or group) for which to update mailbox permissions.pmpGranteeId
- The identifier of the entity (user or group) to which to grant the permissions.pmpPermissionValues
- 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.
data PutMailboxPermissions Source #
See: putMailboxPermissions
smart constructor.
Instances
Request Lenses
pmpOrganizationId :: Lens' PutMailboxPermissions Text Source #
The identifier of the organization under which the entity (user or group) exists.
pmpEntityId :: Lens' PutMailboxPermissions Text Source #
The identifier of the entity (user or group) for which to update mailbox permissions.
pmpGranteeId :: Lens' PutMailboxPermissions Text Source #
The identifier of the entity (user or group) to which to grant the permissions.
pmpPermissionValues :: 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
putMailboxPermissionsResponse Source #
Creates a value of PutMailboxPermissionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pmprsResponseStatus
- -- | The response status code.
data PutMailboxPermissionsResponse Source #
See: putMailboxPermissionsResponse
smart constructor.
Instances
Response Lenses
pmprsResponseStatus :: Lens' PutMailboxPermissionsResponse Int Source #
- - | The response status code.