CloudFront / Client / get_resource_policy
get_resource_policy¶
- CloudFront.Client.get_resource_policy(**kwargs)¶
Retrieves the resource policy for the specified CloudFront resource that you own and have shared.
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 CloudFront resource that is associated with the resource policy.
- Return type:
dict
- Returns:
Response Syntax
{ 'ResourceArn': 'string', 'PolicyDocument': 'string' }
Response Structure
(dict) –
ResourceArn (string) –
The Amazon Resource Name (ARN) of the CloudFront resource that is associated with the resource policy.
PolicyDocument (string) –
The resource policy in JSON format.
Exceptions
CloudFront.Client.exceptions.AccessDeniedCloudFront.Client.exceptions.EntityNotFoundCloudFront.Client.exceptions.UnsupportedOperationCloudFront.Client.exceptions.InvalidArgument