lexmodelsv2_create_resource_policy: Creates a new resource policy with the specified policy...

View source: R/lexmodelsv2_operations.R

lexmodelsv2_create_resource_policyR Documentation

Creates a new resource policy with the specified policy statements

Description

Creates a new resource policy with the specified policy statements.

See https://www.paws-r-sdk.com/docs/lexmodelsv2_create_resource_policy/ for full documentation.

Usage

lexmodelsv2_create_resource_policy(resourceArn, policy)

Arguments

resourceArn

[required] The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.

policy

[required] A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference .

If the policy isn't valid, Amazon Lex returns a validation exception.


paws.machine.learning documentation built on Sept. 12, 2024, 6:23 a.m.