get_resources
async
¶
get_resources(
*,
config_overrides: Optional[AsyncWorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
user_id: Optional[IdType] = None,
collection_type: Optional[ResourceCollectionType] = None,
limit: Optional[LimitType] = None,
marker: Optional[PageMarkerType] = None,
) -> GetResourcesResponse
Retrieves a collection of resources, including folders and documents. The only CollectionType supported is SHARED_WITH_ME.
Parameters:
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –The Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
user_id(Optional[IdType], default:None) –The user ID for the resource collection. This is a required field for accessing the API operation using IAM credentials.
-
collection_type(Optional[ResourceCollectionType], default:None) –The collection type.
-
limit(Optional[LimitType], default:None) –The maximum number of resources to return.
-
marker(Optional[PageMarkerType], default:None) –The marker for the next set of results. This marker was received 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
3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 | |