| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <[email protected]> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.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
- addResourcePermissions :: Text -> AddResourcePermissions
- data AddResourcePermissions
- arpNotificationOptions :: Lens' AddResourcePermissions (Maybe NotificationOptions)
- arpAuthenticationToken :: Lens' AddResourcePermissions (Maybe Text)
- arpResourceId :: Lens' AddResourcePermissions Text
- arpPrincipals :: Lens' AddResourcePermissions [SharePrincipal]
- addResourcePermissionsResponse :: Int -> AddResourcePermissionsResponse
- data AddResourcePermissionsResponse
- arprsShareResults :: Lens' AddResourcePermissionsResponse [ShareResult]
- arprsResponseStatus :: Lens' AddResourcePermissionsResponse Int
Creating a Request
addResourcePermissions Source #
Arguments
| :: Text | |
| -> AddResourcePermissions |
Creates a value of AddResourcePermissions with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
arpNotificationOptions- The notification options.arpAuthenticationToken- Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.arpResourceId- The ID of the resource.arpPrincipals- The users, groups, or organization being granted permission.
data AddResourcePermissions Source #
See: addResourcePermissions smart constructor.
Instances
Request Lenses
arpNotificationOptions :: Lens' AddResourcePermissions (Maybe NotificationOptions) Source #
The notification options.
arpAuthenticationToken :: Lens' AddResourcePermissions (Maybe Text) Source #
Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
arpResourceId :: Lens' AddResourcePermissions Text Source #
The ID of the resource.
arpPrincipals :: Lens' AddResourcePermissions [SharePrincipal] Source #
The users, groups, or organization being granted permission.
Destructuring the Response
addResourcePermissionsResponse Source #
Arguments
| :: Int | |
| -> AddResourcePermissionsResponse |
Creates a value of AddResourcePermissionsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
arprsShareResults- The share results.arprsResponseStatus- -- | The response status code.
data AddResourcePermissionsResponse Source #
See: addResourcePermissionsResponse smart constructor.
Instances
Response Lenses
arprsShareResults :: Lens' AddResourcePermissionsResponse [ShareResult] Source #
The share results.
arprsResponseStatus :: Lens' AddResourcePermissionsResponse Int Source #
- - | The response status code.