Class UpdateResourcePolicyRequest

    • Method Detail

      • resourceArn

        public final String resourceArn()

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

        Returns:
        The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
      • policy

        public final String 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 .

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

        Returns:
        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.

      • expectedRevisionId

        public final String expectedRevisionId()

        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.

        Returns:
        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.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object