SetRepositoryStateRequest
¶
Source code in docs_src/capo_ecr_public/types/set_repository_state_request.py
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
¶
state: RepositoryState
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.