LookoutEquipment / Client / describe_resource_policy

describe_resource_policy

LookoutEquipment.Client.describe_resource_policy(**kwargs)

Provides the details of a resource policy attached to a resource.

Danger

This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

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 resource that is associated with the resource policy.

Return type:

dict

Returns:

Response Syntax

{
    'PolicyRevisionId': 'string',
    'ResourcePolicy': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • PolicyRevisionId (string) –

      A unique identifier for a revision of the resource policy.

    • ResourcePolicy (string) –

      The resource policy in a JSON-formatted string.

    • CreationTime (datetime) –

      The time when the resource policy was created.

    • LastModifiedTime (datetime) –

      The time when the resource policy was last modified.

Exceptions