Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_resource_policy

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

  • Schemas.Client.exceptions.BadRequestException
  • Schemas.Client.exceptions.UnauthorizedException
  • Schemas.Client.exceptions.InternalServerErrorException
  • Schemas.Client.exceptions.ForbiddenException
  • Schemas.Client.exceptions.NotFoundException
  • Schemas.Client.exceptions.ServiceUnavailableException