WorkDocs.Client.
describe_resource_permissions
(**kwargs)¶Describes the permissions of a specified resource.
See also: AWS API Documentation
Request Syntax
response = client.describe_resource_permissions(
AuthenticationToken='string',
ResourceId='string',
PrincipalId='string',
Limit=123,
Marker='string'
)
[REQUIRED]
The ID of the resource.
dict
Response Syntax
{
'Principals': [
{
'Id': 'string',
'Type': 'USER'|'GROUP'|'INVITE'|'ANONYMOUS'|'ORGANIZATION',
'Roles': [
{
'Role': 'VIEWER'|'CONTRIBUTOR'|'OWNER'|'COOWNER',
'Type': 'DIRECT'|'INHERITED'
},
]
},
],
'Marker': 'string'
}
Response Structure
(dict) --
Principals (list) --
The principals.
(dict) --
Describes a resource.
Id (string) --
The ID of the resource.
Type (string) --
The type of resource.
Roles (list) --
The permission information for the resource.
(dict) --
Describes the permissions.
Role (string) --
The role of the user.
Type (string) --
The type of permissions.
Marker (string) --
The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
Exceptions
WorkDocs.Client.exceptions.InvalidArgumentException
WorkDocs.Client.exceptions.UnauthorizedOperationException
WorkDocs.Client.exceptions.UnauthorizedResourceAccessException
WorkDocs.Client.exceptions.FailedDependencyException
WorkDocs.Client.exceptions.ServiceUnavailableException