get_policy
(**kwargs)¶Retrieves the resource-based policy attached to a private CA. If either the private CA resource or the policy cannot be found, this action returns a ResourceNotFoundException
.
The policy can be attached or updated with PutPolicy and removed with DeletePolicy.
About Policies
See also: AWS API Documentation
Request Syntax
response = client.get_policy(
ResourceArn='string'
)
[REQUIRED]
The Amazon Resource Number (ARN) of the private CA that will have its policy retrieved. You can find the CA's ARN by calling the ListCertificateAuthorities action.
{
'Policy': 'string'
}
Response Structure
The policy attached to the private CA as a JSON document.
Exceptions
ACMPCA.Client.exceptions.InvalidArnException
ACMPCA.Client.exceptions.InvalidStateException
ACMPCA.Client.exceptions.RequestFailedException
ACMPCA.Client.exceptions.ResourceNotFoundException