Organizations.Client.
describe_resource_policy
()¶Retrieves information about a resource policy.
You can only call this operation from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.
See also: AWS API Documentation
Request Syntax
response = client.describe_resource_policy()
{
'ResourcePolicy': {
'ResourcePolicySummary': {
'Id': 'string',
'Arn': 'string'
},
'Content': 'string'
}
}
Response Structure
A structure that contains details about the resource policy.
A structure that contains resource policy ID and Amazon Resource Name (ARN).
The unique identifier (ID) of the resource policy.
The Amazon Resource Name (ARN) of the resource policy.
The policy text of the resource policy.
Exceptions
Organizations.Client.exceptions.AccessDeniedException
Organizations.Client.exceptions.ServiceException
Organizations.Client.exceptions.UnsupportedAPIEndpointException
Organizations.Client.exceptions.TooManyRequestsException
Organizations.Client.exceptions.AWSOrganizationsNotInUseException
Organizations.Client.exceptions.ResourcePolicyNotFoundException
Organizations.Client.exceptions.ConstraintViolationException