CloudHSMV2 / Client / get_resource_policy
get_resource_policy#
- CloudHSMV2.Client.get_resource_policy(**kwargs)#
Retrieves the resource policy document attached to a given resource.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.get_resource_policy( ResourceArn='string' )
- Parameters:
ResourceArn (string) – Amazon Resource Name (ARN) of the resource to which a policy is attached.
- Return type:
dict
- Returns:
Response Syntax
{ 'Policy': 'string' }
Response Structure
(dict) –
Policy (string) –
The policy attached to a resource.
Exceptions
CloudHSMV2.Client.exceptions.CloudHsmInternalFailureException
CloudHSMV2.Client.exceptions.CloudHsmServiceException
CloudHSMV2.Client.exceptions.CloudHsmInvalidRequestException
CloudHSMV2.Client.exceptions.CloudHsmResourceNotFoundException
CloudHSMV2.Client.exceptions.CloudHsmAccessDeniedException