LexModelsV2 / Client / describe_resource_policy

describe_resource_policy#

LexModelsV2.Client.describe_resource_policy(**kwargs)#

Gets the resource policy and policy revision for a bot or bot alias.

See also: AWS API Documentation

Request Syntax

response = client.describe_resource_policy(
    resourceArn='string'
)
Parameters:

resourceArn (string) –

[REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'resourceArn': 'string',
    'policy': 'string',
    'revisionId': 'string'
}

Response Structure

  • (dict) –

    • resourceArn (string) –

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

    • policy (string) –

      The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference.

    • revisionId (string) –

      The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.

Exceptions