amazonka-workmail-1.6.0: Amazon WorkMail SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WorkMail.PutMailboxPermissions

Contents

Description

Sets permissions for a user or group. This replaces any pre-existing permissions set for the entity.

Synopsis

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

Eq PutMailboxPermissions Source # 
Data PutMailboxPermissions Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutMailboxPermissions -> c PutMailboxPermissions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutMailboxPermissions #

toConstr :: PutMailboxPermissions -> Constr #

dataTypeOf :: PutMailboxPermissions -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutMailboxPermissions) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutMailboxPermissions) #

gmapT :: (forall b. Data b => b -> b) -> PutMailboxPermissions -> PutMailboxPermissions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutMailboxPermissions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutMailboxPermissions -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutMailboxPermissions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutMailboxPermissions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutMailboxPermissions -> m PutMailboxPermissions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutMailboxPermissions -> m PutMailboxPermissions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutMailboxPermissions -> m PutMailboxPermissions #

Read PutMailboxPermissions Source # 
Show PutMailboxPermissions Source # 
Generic PutMailboxPermissions Source # 
Hashable PutMailboxPermissions Source # 
ToJSON PutMailboxPermissions Source # 
NFData PutMailboxPermissions Source # 

Methods

rnf :: PutMailboxPermissions -> () #

AWSRequest PutMailboxPermissions Source # 
ToHeaders PutMailboxPermissions Source # 
ToPath PutMailboxPermissions Source # 
ToQuery PutMailboxPermissions Source # 
type Rep PutMailboxPermissions Source # 
type Rep PutMailboxPermissions = D1 * (MetaData "PutMailboxPermissions" "Network.AWS.WorkMail.PutMailboxPermissions" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "PutMailboxPermissions'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pmpOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_pmpEntityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pmpGranteeId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_pmpPermissionValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [PermissionType])))))
type Rs PutMailboxPermissions Source # 

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:

data PutMailboxPermissionsResponse Source #

See: putMailboxPermissionsResponse smart constructor.

Instances

Eq PutMailboxPermissionsResponse Source # 
Data PutMailboxPermissionsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutMailboxPermissionsResponse -> c PutMailboxPermissionsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutMailboxPermissionsResponse #

toConstr :: PutMailboxPermissionsResponse -> Constr #

dataTypeOf :: PutMailboxPermissionsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutMailboxPermissionsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutMailboxPermissionsResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutMailboxPermissionsResponse -> PutMailboxPermissionsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutMailboxPermissionsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutMailboxPermissionsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutMailboxPermissionsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutMailboxPermissionsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutMailboxPermissionsResponse -> m PutMailboxPermissionsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutMailboxPermissionsResponse -> m PutMailboxPermissionsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutMailboxPermissionsResponse -> m PutMailboxPermissionsResponse #

Read PutMailboxPermissionsResponse Source # 
Show PutMailboxPermissionsResponse Source # 
Generic PutMailboxPermissionsResponse Source # 
NFData PutMailboxPermissionsResponse Source # 
type Rep PutMailboxPermissionsResponse Source # 
type Rep PutMailboxPermissionsResponse = D1 * (MetaData "PutMailboxPermissionsResponse" "Network.AWS.WorkMail.PutMailboxPermissions" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" True) (C1 * (MetaCons "PutMailboxPermissionsResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_pmprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses