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.

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

  • LookoutEquipment.Client.exceptions.ValidationException

  • LookoutEquipment.Client.exceptions.ResourceNotFoundException

  • LookoutEquipment.Client.exceptions.ThrottlingException

  • LookoutEquipment.Client.exceptions.AccessDeniedException

  • LookoutEquipment.Client.exceptions.InternalServerException