XRay.Client.
list_resource_policies
(**kwargs)¶Returns the list of resource policies in the target Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.list_resource_policies(
NextToken='string'
)
{
'ResourcePolicies': [
{
'PolicyName': 'string',
'PolicyDocument': 'string',
'PolicyRevisionId': 'string',
'LastUpdatedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
The list of resource policies in the target Amazon Web Services account.
A resource policy grants one or more Amazon Web Services services and accounts permissions to access X-Ray. Each resource policy is associated with a specific Amazon Web Services account.
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
The resource policy document, which can be up to 5kb in size.
Returns the current policy revision id for this policy name.
When the policy was last updated, in Unix time seconds.
Pagination token. Not currently supported.
Exceptions
XRay.Client.exceptions.InvalidRequestException
XRay.Client.exceptions.ThrottledException