amazonka-workmail-2.0: Amazon WorkMail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkMail.Types.Permission

Description

 
Synopsis

Documentation

data Permission Source #

Permission granted to a user, group, or resource to access a certain aspect of another user, group, or resource mailbox.

See: newPermission smart constructor.

Constructors

Permission' 

Fields

  • granteeId :: Text

    The identifier of the user, group, or resource to which the permissions are granted.

  • granteeType :: MemberType

    The type of user, group, or resource referred to in GranteeId.

  • permissionValues :: [PermissionType]

    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.

Instances

Instances details
FromJSON Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

Generic Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

Associated Types

type Rep Permission :: Type -> Type #

Read Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

Show Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

NFData Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

Methods

rnf :: Permission -> () #

Eq Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

Hashable Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

type Rep Permission Source # 
Instance details

Defined in Amazonka.WorkMail.Types.Permission

type Rep Permission = D1 ('MetaData "Permission" "Amazonka.WorkMail.Types.Permission" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "Permission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "granteeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "granteeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MemberType) :*: S1 ('MetaSel ('Just "permissionValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PermissionType]))))

newPermission Source #

Create a value of Permission 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:granteeId:Permission', permission_granteeId - The identifier of the user, group, or resource to which the permissions are granted.

$sel:granteeType:Permission', permission_granteeType - The type of user, group, or resource referred to in GranteeId.

$sel:permissionValues:Permission', permission_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.

permission_granteeId :: Lens' Permission Text Source #

The identifier of the user, group, or resource to which the permissions are granted.

permission_granteeType :: Lens' Permission MemberType Source #

The type of user, group, or resource referred to in GranteeId.

permission_permissionValues :: Lens' Permission [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.