class Aws::LexModelsV2::Types::UpdateResourcePolicyRequest

@note When making an API call, you may pass UpdateResourcePolicyRequest

data as a hash:

    {
      resource_arn: "AmazonResourceName", # required
      policy: "Policy", # required
      expected_revision_id: "RevisionId",
    }

@!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]

@!attribute [rw] expected_revision_id

The identifier of the revision of the policy to update. If this
revision ID doesn't match the current revision ID, Amazon Lex
throws an exception.

If you don't specify a revision, Amazon Lex overwrites the contents
of the policy with the new values.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateResourcePolicyRequest AWS API Documentation

Constants

SENSITIVE