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 |
Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.
Synopsis
- data AddResourcePermissions = AddResourcePermissions' {}
- newAddResourcePermissions :: Text -> AddResourcePermissions
- addResourcePermissions_notificationOptions :: Lens' AddResourcePermissions (Maybe NotificationOptions)
- addResourcePermissions_authenticationToken :: Lens' AddResourcePermissions (Maybe Text)
- addResourcePermissions_resourceId :: Lens' AddResourcePermissions Text
- addResourcePermissions_principals :: Lens' AddResourcePermissions [SharePrincipal]
- data AddResourcePermissionsResponse = AddResourcePermissionsResponse' {
- shareResults :: Maybe [ShareResult]
- httpStatus :: Int
- newAddResourcePermissionsResponse :: Int -> AddResourcePermissionsResponse
- addResourcePermissionsResponse_shareResults :: Lens' AddResourcePermissionsResponse (Maybe [ShareResult])
- addResourcePermissionsResponse_httpStatus :: Lens' AddResourcePermissionsResponse Int
Creating a Request
data AddResourcePermissions Source #
See: newAddResourcePermissions
smart constructor.
AddResourcePermissions' | |
|
Instances
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_notificationOptions :: Lens' AddResourcePermissions (Maybe NotificationOptions) Source #
The notification options.
addResourcePermissions_authenticationToken :: Lens' AddResourcePermissions (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
addResourcePermissions_resourceId :: Lens' AddResourcePermissions Text Source #
The ID of the resource.
addResourcePermissions_principals :: Lens' AddResourcePermissions [SharePrincipal] Source #
The users, groups, or organization being granted permission.
Destructuring the Response
data AddResourcePermissionsResponse Source #
See: newAddResourcePermissionsResponse
smart constructor.
AddResourcePermissionsResponse' | |
|
Instances
Eq AddResourcePermissionsResponse Source # | |
Show AddResourcePermissionsResponse Source # | |
Defined in Amazonka.WorkDocs.AddResourcePermissions | |
Generic AddResourcePermissionsResponse Source # | |
NFData AddResourcePermissionsResponse Source # | |
Defined in Amazonka.WorkDocs.AddResourcePermissions rnf :: AddResourcePermissionsResponse -> () # | |
type Rep AddResourcePermissionsResponse Source # | |
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
addResourcePermissionsResponse_shareResults :: Lens' AddResourcePermissionsResponse (Maybe [ShareResult]) Source #
The share results.
addResourcePermissionsResponse_httpStatus :: Lens' AddResourcePermissionsResponse Int Source #
The response's http status code.