Skip to content

Put Resource Policy

lookoutequipment_put_resource_policy R Documentation

Creates a resource control policy for a given resource

Description

Creates a resource control policy for a given resource.

Usage

lookoutequipment_put_resource_policy(ResourceArn, ResourcePolicy,
  PolicyRevisionId, ClientToken)

Arguments

ResourceArn

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

ResourcePolicy

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

PolicyRevisionId

A unique identifier for a revision of the resource policy.

ClientToken

[required] A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

Value

A list with the following syntax:

list(
  ResourceArn = "string",
  PolicyRevisionId = "string"
)

Request syntax

svc$put_resource_policy(
  ResourceArn = "string",
  ResourcePolicy = "string",
  PolicyRevisionId = "string",
  ClientToken = "string"
)