Smaws_Client_ACMPCA.PutPolicyAttaches a resource-based policy to a private CA.
A policy can also be applied by sharing a private CA through Amazon Web Services Resource Access Manager (RAM). For more information, see Attach a Policy for Cross-Account Access.
The policy can be displayed with GetPolicy and removed with DeletePolicy.
About Policies
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ConcurrentModificationException of Types.concurrent_modification_exception
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidPolicyException of Types.invalid_policy_exception
| `InvalidStateException of Types.invalid_state_exception
| `LockoutPreventedException of Types.lockout_prevented_exception
| `RequestFailedException of Types.request_failed_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.put_policy_request ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidPolicyException of Types.invalid_policy_exception
| `InvalidStateException of Types.invalid_state_exception
| `LockoutPreventedException of Types.lockout_prevented_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.put_policy_request ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidPolicyException of Types.invalid_policy_exception
| `InvalidStateException of Types.invalid_state_exception
| `LockoutPreventedException of Types.lockout_prevented_exception
| `RequestFailedException of Types.request_failed_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result