list_object_parents
async
¶
list_object_parents(
directory_arn: Arn,
object_reference: ObjectReference,
*,
config_overrides: Optional[AsyncCloudDirectoryClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[NumberResults] = None,
consistency_level: Optional[ConsistencyLevel] = None,
include_all_links_to_each_parent: Optional[Bool] = None,
) -> ListObjectParentsResponse
Lists parent objects that are associated with a given object in pagination fashion.
Parameters:
-
directory_arn(Arn) – -
object_reference(ObjectReference) –The reference that identifies the object for which parent objects are being listed.
-
next_token(Optional[NextToken], default:None) –The pagination token.
-
max_results(Optional[NumberResults], default:None) –The maximum number of items to be retrieved in a single call. This is an approximate number.
-
consistency_level(Optional[ConsistencyLevel], default:None) –Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.
-
include_all_links_to_each_parent(Optional[Bool], default:None) –When set to True, returns all ListObjectParentsResponse$ParentLinks. There could be multiple links between a parent-child pair.
Raises:
-
AccessDeniedException–Access denied or directory not found. Either you don't have permissions for this directory or the directory does not exist. Try calling ListDirectories and check your permissions.
-
CannotListParentOfRootException–Cannot list the parents of a Directory root.
-
DirectoryNotEnabledException–Operations are only permitted on enabled directories.
-
InternalServiceException–Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in which case you can retry your request until it succeeds. Otherwise, go to the AWS Service Health Dashboard site to see if there are any operational issues with the service.
-
InvalidArnException–Indicates that the provided ARN value is not valid.
-
InvalidNextTokenException–Indicates that the
NextTokenvalue is not valid. -
LimitExceededException–Indicates that limits are exceeded. See Limits for more information.
-
ResourceNotFoundException–The specified resource could not be found.
-
RetryableConflictException–Occurs when a conflict with a previous successful write is detected. For example, if a write operation occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this exception may result. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
ValidationException–Indicates that your request is malformed in some manner. See the exception message.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_clouddirectory/_services/async_cloud_directory.py
3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 | |