describe_premium_repositories
async
¶
describe_premium_repositories(
*,
config_overrides: Optional[AsyncECRPUBLICClientConfig] = None,
registry_id: Optional[RegistryId] = None,
repository_names: Optional[RepositoryNameList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribePremiumRepositoriesResponse
Describes the premium repositories in a public registry, including their Amazon Web Services Marketplace products, associated repositories, and state. Repositories in the DRAFT, AVAILABLE, and HIDDEN states are returned.
Parameters:
-
registry_id(Optional[RegistryId], default:None) –The Amazon Web Services account ID that's associated with the public registry that contains the premium repositories to describe. 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_names(Optional[RepositoryNameList], default:None) –The names of the premium repositories to describe. If this parameter isn't specified, all premium repositories in the registry are described. If you specify repository names, you can't use
maxResultsornextToken. -
max_results(Optional[MaxResults], default:None) –The maximum number of results that
DescribePremiumRepositoriesreturns in paginated output. When you use this parameter,DescribePremiumRepositoriesreturns onlymaxResultsresults in a single page along with anextTokenresponse element. To see the remaining results, send anotherDescribePremiumRepositoriesrequest with the returnednextTokenvalue. You can specify a value between 1 and 1000. If you don't use this parameter,DescribePremiumRepositoriesreturns up to 100 results and anextTokenvalue, if applicable. -
next_token(Optional[NextToken], default:None) –The
nextTokenvalue that's returned from a previous paginatedDescribePremiumRepositoriesrequest where you usedmaxResultsand the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. If there are no more results to return, this value isnull.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
LimitExceededException–The operation didn't succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR Public service quotas in the Amazon Elastic Container Registry Public User Guide.
-
RepositoryNotFoundException–The specified repository can't be found. Check the spelling of the specified repository and ensure that you're performing operations on the correct registry.
-
ServerException–These errors are usually caused by a server-side issue. Retry the request. If it continues to fail, contact Amazon Web Services Support.
-
UnsupportedCommandException–The action isn't supported in this Region. Check that the action is available in the Amazon Web Services Region that you're using, and try again in a supported Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the premium repositories in a registry This example describes all of the premium repositories in your default registry.