Skip to content

SetRepositoryStateRequest

Source code in docs_src/capo_ecr_public/types/set_repository_state_request.py
class SetRepositoryStateRequest(TypedDict, closed=True):
    registry_id: NotRequired["capo_ecr_public.types.registry_id.RegistryId"]
    """<p>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. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.</p>"""
    repository_name: "capo_ecr_public.types.repository_name.RepositoryName"
    """<p>The name of the repository to set the state for.</p>"""
    repository_type: "capo_ecr_public.types.repository_type.RepositoryType"
    """<p>The type of the repository. Currently, you can set the state only for a <code>PREMIUM</code> repository. <code>FREE</code> isn't supported, and the request fails with <code>InvalidParameterException</code>.</p>"""
    state: "capo_ecr_public.types.repository_state.RepositoryState"
    """<p>The state to set on the repository. Valid values:</p> <ul> <li> <p> <code>AVAILABLE</code>: Entitled buyers can pull from the repository, and it's listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public.</p> </li> <li> <p> <code>HIDDEN</code>: The repository isn't listed in the Amazon ECR Public Gallery. Buyers with an active entitlement can still pull from it.</p> </li> </ul> <p>A repository can move from <code>DRAFT</code> to <code>AVAILABLE</code>, and between <code>AVAILABLE</code> and <code>HIDDEN</code>. It can't return to <code>DRAFT</code>. Other changes fail with <code>InvalidParameterException</code>. If you specify the current state, the request succeeds and nothing changes.</p>"""

registry_id instance-attribute

registry_id: NotRequired[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. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.

repository_name instance-attribute

repository_name: RepositoryName

The name of the repository to set the state for.

repository_type instance-attribute

repository_type: RepositoryType

The type of the repository. Currently, you can set the state only for a PREMIUM repository. FREE isn't supported, and the request fails with InvalidParameterException.

state instance-attribute

The state to set on the repository. Valid values:

  • AVAILABLE: Entitled buyers can pull from the repository, and it's listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public.

  • HIDDEN: The repository isn't listed in the Amazon ECR Public Gallery. Buyers with an active entitlement can still pull from it.

A repository can move from DRAFT to AVAILABLE, and between AVAILABLE and HIDDEN. It can't return to DRAFT. Other changes fail with InvalidParameterException. If you specify the current state, the request succeeds and nothing changes.