MultipartyApproval / Client / get_resource_policy
get_resource_policy¶
- MultipartyApproval.Client.get_resource_policy(**kwargs)¶
Returns details about a policy for a resource.
See also: AWS API Documentation
Request Syntax
response = client.get_resource_policy( ResourceArn='string', PolicyName='string', PolicyType='AWS_MANAGED'|'AWS_RAM' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
Amazon Resource Name (ARN) for the resource.
PolicyName (string) –
[REQUIRED]
Name of the policy.
PolicyType (string) –
[REQUIRED]
The type of policy.
- Return type:
dict
- Returns:
Response Syntax
{ 'ResourceArn': 'string', 'PolicyType': 'AWS_MANAGED'|'AWS_RAM', 'PolicyVersionArn': 'string', 'PolicyName': 'string', 'PolicyDocument': 'string' }
Response Structure
(dict) –
ResourceArn (string) –
Amazon Resource Name (ARN) for the resource.
PolicyType (string) –
The type of policy
PolicyVersionArn (string) –
Amazon Resource Name (ARN) for the policy version.
PolicyName (string) –
Name of the policy.
PolicyDocument (string) –
Document that contains the contents for the policy.
Exceptions