Billing / Client / get_resource_policy
get_resource_policy#
- Billing.Client.get_resource_policy(**kwargs)#
- Returns the resource-based policy document attached to the resource in - JSONformat.- See also: AWS API Documentation - Request Syntax- response = client.get_resource_policy( resourceArn='string' ) - Parameters:
- resourceArn (string) – - [REQUIRED] - The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to. 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'resourceArn': 'string', 'policy': 'string' } - Response Structure- (dict) – - resourceArn (string) – - The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to. 
- policy (string) – - The resource-based policy document attached to the resource in - JSONformat.
 
 
 - Exceptions- Billing.Client.exceptions.ThrottlingException
- Billing.Client.exceptions.ResourceNotFoundException
- Billing.Client.exceptions.AccessDeniedException
- Billing.Client.exceptions.ValidationException
- Billing.Client.exceptions.InternalServerException