Skip to content

describe_entitled_images

describe_entitled_images(
    repository_name: RepositoryName,
    registry_alias: RegistryAliasName,
    *,
    config_overrides: Optional[ECRPUBLICClientConfig] = 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 use maxResults or nextToken.

  • next_token (Optional[NextToken], default: None ) –

    The nextToken value that's returned from a previous paginated DescribeEntitledImages request where you used maxResults and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null.

    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 DescribeEntitledImages returns in paginated output. When you use this parameter, DescribeEntitledImages returns only maxResults results in a single page along with a nextToken response element. To see the remaining results, send another DescribeEntitledImages request with the returned nextToken value. You can specify a value between 1 and 1000. If you don't use this parameter, DescribeEntitledImages returns up to 100 results and a nextToken value, 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 DescribeEntitledRepositories to 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 DescribeImages or DescribeImageTags, or for a premium repository that you're entitled to, DescribeEntitledImages or DescribeEntitledImageTags.

  • 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.

>>> client.describe_entitled_images(registry_alias='example-alias', repository_name='my-premium-repository')
Source code in docs_src/capo_ecr_public/_services/ecrpublic.py
def describe_entitled_images(
    self,
    repository_name: "capo_ecr_public.types.repository_name.RepositoryName",
    registry_alias: "capo_ecr_public.types.registry_alias_name.RegistryAliasName",
    *,
    config_overrides: Optional[ECRPUBLICClientConfig] = None,
    image_ids: Optional[
        "capo_ecr_public.types.image_identifier_list.ImageIdentifierList"
    ] = None,
    next_token: Optional["capo_ecr_public.types.next_token.NextToken"] = None,
    max_results: Optional["capo_ecr_public.types.max_results.MaxResults"] = None,
) -> "capo_ecr_public.types.describe_entitled_images_response.DescribeEntitledImagesResponse":
    """<p>Returns metadata about the images in a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.</p>

    Args:
        repository_name: <p>The name of the premium repository that contains the images to describe.</p>
        registry_alias: <p>The registry alias of the publisher that owns the premium repository. The alias is the first part of the premium repository URI.</p>
        image_ids: <p>The list of image IDs for the requested premium repository. If you specify images with <code>imageIds</code>, you can't use <code>maxResults</code> or <code>nextToken</code>.</p>
        next_token: <p>The <code>nextToken</code> value that's returned from a previous paginated <code>DescribeEntitledImages</code> request where you used <code>maxResults</code> and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. If there are no more results to return, this value is <code>null</code>.</p> <note> <p>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.</p> </note>
        max_results: <p>The maximum number of results that <code>DescribeEntitledImages</code> returns in paginated output. When you use this parameter, <code>DescribeEntitledImages</code> returns only <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. To see the remaining results, send another <code>DescribeEntitledImages</code> request with the returned <code>nextToken</code> value. You can specify a value between 1 and 1000. If you don't use this parameter, <code>DescribeEntitledImages</code> returns up to 100 results and a <code>nextToken</code> value, if applicable.</p>

    Raises:
        capo_ecr_public.errors.entitlement_not_found_exception.EntitlementNotFoundException: <p>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 <code>DescribeEntitledRepositories</code> to list the premium repositories that you're entitled to.</p>
        capo_ecr_public.errors.image_not_found_exception.ImageNotFoundException: <p>The image requested doesn't exist in the specified repository. Check the image tag or digest. To list the images in a repository, use <code>DescribeImages</code> or <code>DescribeImageTags</code>, or for a premium repository that you're entitled to, <code>DescribeEntitledImages</code> or <code>DescribeEntitledImageTags</code>.</p>
        capo_ecr_public.errors.invalid_parameter_exception.InvalidParameterException: <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
        capo_ecr_public.errors.limit_exceeded_exception.LimitExceededException: <p>The operation didn't succeed because it would have exceeded a service limit for your account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/public/public-service-quotas.html">Amazon ECR Public service quotas</a> in the Amazon Elastic Container Registry Public User Guide.</p>
        capo_ecr_public.errors.server_exception.ServerException: <p>These errors are usually caused by a server-side issue. Retry the request. If it continues to fail, contact Amazon Web Services Support.</p>
        capo_ecr_public.errors.unsupported_command_exception.UnsupportedCommandException: <p>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.</p>
        capo_ecr_public.errors.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.

        >>> client.describe_entitled_images(registry_alias='example-alias', repository_name='my-premium-repository')
    """

    def _handler(
        req: "OperationRequest[capo_ecr_public.types.describe_entitled_images_request.DescribeEntitledImagesRequest]",
    ) -> OperationResponse[
        "capo_ecr_public.types.describe_entitled_images_response.DescribeEntitledImagesResponse"
    ]:
        import capo_ecr_public._operations.spencer_frontend_service.describe_entitled_images

        output, http_response = (
            capo_ecr_public._operations.spencer_frontend_service.describe_entitled_images.describe_entitled_images(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeEntitledImages")
    )
    input_: capo_ecr_public.types.describe_entitled_images_request.DescribeEntitledImagesRequest = {
        "repository_name": repository_name,
        "registry_alias": registry_alias,
    }
    if image_ids is not None:
        input_["image_ids"] = image_ids
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output