PaymentCryptographyControlPlane / Client / get_resource_policy
get_resource_policy¶
- PaymentCryptographyControlPlane.Client.get_resource_policy(**kwargs)¶
Returns the resource-based policy attached to an Amazon Web Services Payment Cryptography key.
Cross-account use: This operation can’t be used across different Amazon Web Services accounts.
Related operations:
See also: AWS API Documentation
Request Syntax
response = client.get_resource_policy( ResourceArn='string' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The
KeyARNof the key whose resource-based policy you want to retrieve.- Return type:
dict
- Returns:
Response Syntax
{ 'ResourceArn': 'string', 'Policy': 'string' }
Response Structure
(dict) –
ResourceArn (string) –
The
KeyARNof the key.Policy (string) –
The resource-based policy attached to the key, in JSON format.
Exceptions
PaymentCryptographyControlPlane.Client.exceptions.ServiceUnavailableExceptionPaymentCryptographyControlPlane.Client.exceptions.ValidationExceptionPaymentCryptographyControlPlane.Client.exceptions.AccessDeniedExceptionPaymentCryptographyControlPlane.Client.exceptions.ResourceNotFoundExceptionPaymentCryptographyControlPlane.Client.exceptions.ThrottlingExceptionPaymentCryptographyControlPlane.Client.exceptions.InternalServerException