class Aws::LexModelsV2::Types::CreateResourcePolicyRequest
@note When making an API call, you may pass CreateResourcePolicyRequest
data as a hash: { resource_arn: "AmazonResourceName", # required policy: "Policy", # required }
@!attribute [rw] resource_arn
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. @return [String]
@!attribute [rw] policy
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 ][1]. If the policy isn't valid, Amazon Lex returns a validation exception. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html @return [String]
@see docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicyRequest AWS API Documentation
Constants
- SENSITIVE