Skip to content

Retrieves the repository policy for the specified repository

Description

Retrieves the repository policy for the specified repository.

Usage

ecrpublic_get_repository_policy(registryId, repositoryName)

Arguments

  • registryId

    The Amazon Web Services account ID that's associated with the public registry that contains the repository. If you do not specify a registry, the default public registry is assumed.

  • repositoryName

    [required] The name of the repository with the policy to retrieve.

Value

A list with the following syntax:

list(
  registryId = "string",
  repositoryName = "string",
  policyText = "string"
)

Request syntax

svc$get_repository_policy(
  registryId = "string",
  repositoryName = "string"
)