Smaws_Client_ACMPCA.GetPolicyRetrieves 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
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidStateException of Types.invalid_state_exception
| `RequestFailedException of Types.request_failed_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_policy_request ->
(Types.get_policy_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidStateException of Types.invalid_state_exception
| `RequestFailedException of Types.request_failed_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_policy_request ->
(Types.get_policy_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidStateException of Types.invalid_state_exception
| `RequestFailedException of Types.request_failed_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result