get_registry_policy

get_registry_policy()

Retrieves the permissions policy for a registry.

See also: AWS API Documentation

Request Syntax

response = client.get_registry_policy()
Return type
dict
Returns
Response Syntax
{
    'registryId': 'string',
    'policyText': 'string'
}

Response Structure

  • (dict) --
    • registryId (string) --

      The ID of the registry.

    • policyText (string) --

      The JSON text of the permissions policy for a registry.

Exceptions

  • ECR.Client.exceptions.ServerException
  • ECR.Client.exceptions.InvalidParameterException
  • ECR.Client.exceptions.RegistryPolicyNotFoundException
  • ECR.Client.exceptions.ValidationException