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 |
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.
PutMailboxPermissions' | |
|
Instances
newPutMailboxPermissions Source #
:: 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:
$sel:organizationId:PutMailboxPermissions'
, putMailboxPermissions_organizationId
- The identifier of the organization under which the user, group, or
resource exists.
$sel:entityId:PutMailboxPermissions'
, putMailboxPermissions_entityId
- The identifier of the user, group, or resource for which to update
mailbox permissions.
$sel:granteeId:PutMailboxPermissions'
, putMailboxPermissions_granteeId
- The identifier of the user, group, or resource to which to grant the
permissions.
$sel:permissionValues: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.
PutMailboxPermissionsResponse' | |
|
Instances
Eq PutMailboxPermissionsResponse Source # | |
Read PutMailboxPermissionsResponse Source # | |
Show PutMailboxPermissionsResponse Source # | |
Defined in Amazonka.WorkMail.PutMailboxPermissions showsPrec :: Int -> PutMailboxPermissionsResponse -> ShowS # show :: PutMailboxPermissionsResponse -> String # showList :: [PutMailboxPermissionsResponse] -> ShowS # | |
Generic PutMailboxPermissionsResponse Source # | |
NFData PutMailboxPermissionsResponse Source # | |
Defined in Amazonka.WorkMail.PutMailboxPermissions rnf :: PutMailboxPermissionsResponse -> () # | |
type Rep PutMailboxPermissionsResponse Source # | |
Defined in Amazonka.WorkMail.PutMailboxPermissions type Rep PutMailboxPermissionsResponse = D1 ('MetaData "PutMailboxPermissionsResponse" "Amazonka.WorkMail.PutMailboxPermissions" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "PutMailboxPermissionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.