acmpca_put_policy: Attaches a resource-based policy to a private CA

Description Usage Arguments Value Request syntax

View source: R/acmpca_operations.R

Description

Attaches a resource-based policy to a private CA.

A policy can also be applied by sharing a private CA through AWS Resource Access Manager (RAM). For more information, see Attach a Policy for Cross-Account Access.

The policy can be displayed with get_policy and removed with delete_policy.

About Policies

Usage

1
acmpca_put_policy(ResourceArn, Policy)

Arguments

ResourceArn

[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 list_certificate_authorities action.

Policy

[required] The path and filename 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 put_policy action returns an InvalidPolicyException. For information about IAM policy and statement structure, see Overview of JSON Policies.

Value

An empty list.

Request syntax

1
2
3
4
svc$put_policy(
  ResourceArn = "string",
  Policy = "string"
)

paws.security.identity documentation built on Aug. 23, 2021, 9:16 a.m.