Lookup Policy
clouddirectory_lookup_policy | R Documentation |
Lists all policies from the root of the Directory to the object specified¶
Description¶
Lists all policies from the root of the Directory to the object
specified. If there are no policies present, an empty list is returned.
If policies are present, and if some objects don't have the policies
attached, it returns the ObjectIdentifier
for such objects. If
policies are present, it returns ObjectIdentifier
, policyId
, and
policyType
. Paths that don't lead to the root from the target object
are ignored. For more information, see
Policies.
Usage¶
Arguments¶
DirectoryArn
[required] The Amazon Resource Name (ARN) that is associated with the Directory. For more information, see arns.
ObjectReference
[required] Reference that identifies the object whose policies will be looked up.
NextToken
The token to request the next page of results.
MaxResults
The maximum number of items to be retrieved in a single call. This is an approximate number.
Value¶
A list with the following syntax:
list(
PolicyToPathList = list(
list(
Path = "string",
Policies = list(
list(
PolicyId = "string",
ObjectIdentifier = "string",
PolicyType = "string"
)
)
)
),
NextToken = "string"
)