Skip to content

Put Resource Policy

vpclattice_put_resource_policy R Documentation

Attaches a resource-based permission policy to a service or service network

Description

Attaches a resource-based permission policy to a service or service network. The policy must contain the same actions and condition statements as the Amazon Web Services Resource Access Manager permission for sharing services and service networks.

Usage

vpclattice_put_resource_policy(policy, resourceArn)

Arguments

policy

[required] An IAM policy. The policy string in JSON must not contain newlines or blank lines.

resourceArn

[required] The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.

Value

An empty list.

Request syntax

svc$put_resource_policy(
  policy = "string",
  resourceArn = "string"
)