ACMPCA.Client.
put_policy
(**kwargs)¶Attaches 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
See also: AWS API Documentation
Request Syntax
response = client.put_policy(
ResourceArn='string',
Policy='string'
)
[REQUIRED]
The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be found by calling the ListCertificateAuthorities action.
[REQUIRED]
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If this policy does not contain all required statements or if it includes any statement that is not allowed, the PutPolicy
action returns an InvalidPolicyException
. For information about IAM policy and statement structure, see Overview of JSON Policies.
None
Exceptions
ACMPCA.Client.exceptions.ConcurrentModificationException
ACMPCA.Client.exceptions.InvalidArnException
ACMPCA.Client.exceptions.InvalidStateException
ACMPCA.Client.exceptions.InvalidPolicyException
ACMPCA.Client.exceptions.LockoutPreventedException
ACMPCA.Client.exceptions.RequestFailedException
ACMPCA.Client.exceptions.ResourceNotFoundException