libZSservicesZSamazonka-workdocsZSamazonka-workdocs
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.WorkDocs.AddResourcePermissions

Description

Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.

Synopsis

Creating a Request

data AddResourcePermissions Source #

See: newAddResourcePermissions smart constructor.

Constructors

AddResourcePermissions' 

Fields

Instances

Instances details
Eq AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Show AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Generic AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Associated Types

type Rep AddResourcePermissions :: Type -> Type #

NFData AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Methods

rnf :: AddResourcePermissions -> () #

Hashable AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

ToJSON AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

AWSRequest AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Associated Types

type AWSResponse AddResourcePermissions #

ToHeaders AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

ToPath AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

ToQuery AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

type Rep AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

type Rep AddResourcePermissions = D1 ('MetaData "AddResourcePermissions" "Amazonka.WorkDocs.AddResourcePermissions" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "AddResourcePermissions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "notificationOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationOptions)) :*: S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "principals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [SharePrincipal]))))
type AWSResponse AddResourcePermissions Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

newAddResourcePermissions Source #

Create a value of AddResourcePermissions 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:notificationOptions:AddResourcePermissions', addResourcePermissions_notificationOptions - The notification options.

$sel:authenticationToken:AddResourcePermissions', addResourcePermissions_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

$sel:resourceId:AddResourcePermissions', addResourcePermissions_resourceId - The ID of the resource.

$sel:principals:AddResourcePermissions', addResourcePermissions_principals - The users, groups, or organization being granted permission.

Request Lenses

addResourcePermissions_authenticationToken :: Lens' AddResourcePermissions (Maybe Text) Source #

Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

addResourcePermissions_principals :: Lens' AddResourcePermissions [SharePrincipal] Source #

The users, groups, or organization being granted permission.

Destructuring the Response

data AddResourcePermissionsResponse Source #

See: newAddResourcePermissionsResponse smart constructor.

Constructors

AddResourcePermissionsResponse' 

Fields

Instances

Instances details
Eq AddResourcePermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Show AddResourcePermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Generic AddResourcePermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

Associated Types

type Rep AddResourcePermissionsResponse :: Type -> Type #

NFData AddResourcePermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

type Rep AddResourcePermissionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.AddResourcePermissions

type Rep AddResourcePermissionsResponse = D1 ('MetaData "AddResourcePermissionsResponse" "Amazonka.WorkDocs.AddResourcePermissions" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "AddResourcePermissionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "shareResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ShareResult])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddResourcePermissionsResponse Source #

Create a value of AddResourcePermissionsResponse 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:shareResults:AddResourcePermissionsResponse', addResourcePermissionsResponse_shareResults - The share results.

$sel:httpStatus:AddResourcePermissionsResponse', addResourcePermissionsResponse_httpStatus - The response's http status code.

Response Lenses