Skip to content

Put Resource Policy

marketplacecatalog_put_resource_policy R Documentation

Attaches a resource-based policy to an entity

Description

Attaches a resource-based policy to an entity. Examples of an entity include: AmiProduct and ContainerProduct.

Usage

marketplacecatalog_put_resource_policy(ResourceArn, Policy)

Arguments

ResourceArn

[required] The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.

Policy

[required] The policy document to set; formatted in JSON.

Value

An empty list.

Request syntax

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