describe_entitled_images
async
¶
describe_entitled_images(
repository_name: RepositoryName,
registry_alias: RegistryAliasName,
*,
config_overrides: Optional[AsyncECRPUBLICClientConfig] = None,
image_ids: Optional[ImageIdentifierList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> DescribeEntitledImagesResponse
Returns metadata about the images in a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
Parameters:
-
repository_name(RepositoryName) –The name of the premium repository that contains the images to describe.
-
registry_alias(RegistryAliasName) –The registry alias of the publisher that owns the premium repository. The alias is the first part of the premium repository URI.
-
image_ids(Optional[ImageIdentifierList], default:None) –The list of image IDs for the requested premium repository. If you specify images with
imageIds, you can't usemaxResultsornextToken. -
next_token(Optional[NextToken], default:None) –The
nextTokenvalue that's returned from a previous paginatedDescribeEntitledImagesrequest 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.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results that
DescribeEntitledImagesreturns in paginated output. When you use this parameter,DescribeEntitledImagesreturns onlymaxResultsresults in a single page along with anextTokenresponse element. To see the remaining results, send anotherDescribeEntitledImagesrequest with the returnednextTokenvalue. You can specify a value between 1 and 1000. If you don't use this parameter,DescribeEntitledImagesreturns up to 100 results and anextTokenvalue, if applicable.
Raises:
-
EntitlementNotFoundException–You don't have an active Amazon Web Services Marketplace entitlement for the specified premium repository, the repository doesn't exist, or the repository isn't available yet. Check the registry alias and repository name, and use
DescribeEntitledRepositoriesto list the premium repositories that you're entitled to. -
ImageNotFoundException–The image requested doesn't exist in the specified repository. Check the image tag or digest. To list the images in a repository, use
DescribeImagesorDescribeImageTags, or for a premium repository that you're entitled to,DescribeEntitledImagesorDescribeEntitledImageTags. -
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.
-
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 images in an entitled premium repository This example describes the images in the premium repository my-premium-repository, which you're entitled to through an AWS Marketplace purchase.
>>> await client.describe_entitled_images(registry_alias='example-alias', repository_name='my-premium-repository')