Schemas / Client / get_resource_policy

get_resource_policy#

Schemas.Client.get_resource_policy(**kwargs)#

Retrieves the resource-based policy attached to a given registry.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    RegistryName='string'
)
Parameters:

RegistryName (string) – The name of the registry.

Return type:

dict

Returns:

Response Syntax

{
    'Policy': 'string',
    'RevisionId': 'string'
}

Response Structure

  • (dict) –

    Get Resource-Based Policy Response

    • Policy (string) –

      The resource-based policy.

    • RevisionId (string) –

      The revision ID.

Exceptions