JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.lexmodelsv2.model

Class UpdateResourcePolicyRequest

    • Constructor Detail

      • UpdateResourcePolicyRequest

        public UpdateResourcePolicyRequest()
    • Method Detail

      • setResourceArn

        public void setResourceArn(String resourceArn)

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

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

        public String getResourceArn()

        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.
      • withResourceArn

        public UpdateResourcePolicyRequest withResourceArn(String resourceArn)

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

        Parameters:
        resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPolicy

        public void setPolicy(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.

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

      • getPolicy

        public String getPolicy()

        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.

      • withPolicy

        public UpdateResourcePolicyRequest withPolicy(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • setExpectedRevisionId

        public void setExpectedRevisionId(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.

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

      • getExpectedRevisionId

        public String getExpectedRevisionId()

        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.

      • withExpectedRevisionId

        public UpdateResourcePolicyRequest withExpectedRevisionId(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public 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
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /