Skip to content

Put Resource Policy

cloudfront_put_resource_policy R Documentation

Creates a resource control policy for a given CloudFront resource

Description

Creates a resource control policy for a given CloudFront resource.

Usage

cloudfront_put_resource_policy(ResourceArn, PolicyDocument)

Arguments

ResourceArn

[required] The Amazon Resource Name (ARN) of the CloudFront resource for which the policy is being created.

PolicyDocument

[required] The JSON-formatted resource policy to create.

Value

A list with the following syntax:

list(
  ResourceArn = "string"
)

Request syntax

svc$put_resource_policy(
  ResourceArn = "string",
  PolicyDocument = "string"
)