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

Amazonka.WorkMail.PutMailboxPermissions

Description

Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.

Synopsis

Creating a Request

data PutMailboxPermissions Source #

See: newPutMailboxPermissions smart constructor.

Constructors

PutMailboxPermissions' 

Fields

  • organizationId :: Text

    The identifier of the organization under which the user, group, or resource exists.

  • entityId :: Text

    The identifier of the user, group, or resource for which to update mailbox permissions.

  • granteeId :: Text

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

  • 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
Eq PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Read PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Show PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Generic PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Associated Types

type Rep PutMailboxPermissions :: Type -> Type #

NFData PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Methods

rnf :: PutMailboxPermissions -> () #

Hashable PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

ToJSON PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

AWSRequest PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Associated Types

type AWSResponse PutMailboxPermissions #

ToHeaders PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

ToPath PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

ToQuery PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

type Rep PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

type Rep PutMailboxPermissions = D1 ('MetaData "PutMailboxPermissions" "Amazonka.WorkMail.PutMailboxPermissions" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "PutMailboxPermissions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "entityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "granteeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "permissionValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PermissionType]))))
type AWSResponse PutMailboxPermissions Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

newPutMailboxPermissions Source #

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.

Constructors

PutMailboxPermissionsResponse' 

Fields

Instances

Instances details
Eq PutMailboxPermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Read PutMailboxPermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Show PutMailboxPermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Generic PutMailboxPermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

Associated Types

type Rep PutMailboxPermissionsResponse :: Type -> Type #

NFData PutMailboxPermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutMailboxPermissions

type Rep PutMailboxPermissionsResponse Source # 
Instance details

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