describe_resource_permissions
async
¶
describe_resource_permissions(
resource_id: ResourceIdType,
*,
config_overrides: Optional[AsyncWorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
principal_id: Optional[IdType] = None,
limit: Optional[LimitType] = None,
marker: Optional[PageMarkerType] = None,
) -> DescribeResourcePermissionsResponse
Describes the permissions of a specified resource.
Parameters:
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
resource_id(ResourceIdType) –The ID of the resource.
-
principal_id(Optional[IdType], default:None) –The ID of the principal to filter permissions by.
-
limit(Optional[LimitType], default:None) –The maximum number of items to return with this call.
-
marker(Optional[PageMarkerType], default:None) –The marker for the next set of results. (You received this marker from a previous call)
Raises:
-
FailedDependencyException–The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.
-
InvalidArgumentException–The pagination marker or limit fields are not valid.
-
ServiceUnavailableException–One or more of the dependencies is unavailable.
-
UnauthorizedOperationException–The operation is not permitted.
-
UnauthorizedResourceAccessException–The caller does not have access to perform the action on the resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workdocs/_services/async_work_docs.py
2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 | |