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 |
Removes the permission for the specified principal from the specified resource.
Synopsis
- data RemoveResourcePermission = RemoveResourcePermission' {}
- newRemoveResourcePermission :: Text -> Text -> RemoveResourcePermission
- removeResourcePermission_principalType :: Lens' RemoveResourcePermission (Maybe PrincipalType)
- removeResourcePermission_authenticationToken :: Lens' RemoveResourcePermission (Maybe Text)
- removeResourcePermission_resourceId :: Lens' RemoveResourcePermission Text
- removeResourcePermission_principalId :: Lens' RemoveResourcePermission Text
- data RemoveResourcePermissionResponse = RemoveResourcePermissionResponse' {
- newRemoveResourcePermissionResponse :: RemoveResourcePermissionResponse
Creating a Request
data RemoveResourcePermission Source #
See: newRemoveResourcePermission
smart constructor.
RemoveResourcePermission' | |
|
Instances
newRemoveResourcePermission Source #
:: Text | |
-> Text | |
-> RemoveResourcePermission |
Create a value of RemoveResourcePermission
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:principalType:RemoveResourcePermission'
, removeResourcePermission_principalType
- The principal type of the resource.
$sel:authenticationToken:RemoveResourcePermission'
, removeResourcePermission_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:resourceId:RemoveResourcePermission'
, removeResourcePermission_resourceId
- The ID of the resource.
$sel:principalId:RemoveResourcePermission'
, removeResourcePermission_principalId
- The principal ID of the resource.
Request Lenses
removeResourcePermission_principalType :: Lens' RemoveResourcePermission (Maybe PrincipalType) Source #
The principal type of the resource.
removeResourcePermission_authenticationToken :: Lens' RemoveResourcePermission (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
removeResourcePermission_resourceId :: Lens' RemoveResourcePermission Text Source #
The ID of the resource.
removeResourcePermission_principalId :: Lens' RemoveResourcePermission Text Source #
The principal ID of the resource.
Destructuring the Response
data RemoveResourcePermissionResponse Source #
See: newRemoveResourcePermissionResponse
smart constructor.
Instances
newRemoveResourcePermissionResponse :: RemoveResourcePermissionResponse Source #
Create a value of RemoveResourcePermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.