

# EntitledRepository

An object that describes a premium repository that you're entitled to through an AWS Marketplace purchase.

## Contents
<a name="API_EntitledRepository_Contents"></a>

 ** entitledViaProductId **   <a name="ecrpublic-Type-EntitledRepository-entitledViaProductId"></a>
The ID of the AWS Marketplace product that gives you access to the premium repository.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[A-Za-z0-9_-]+`   
Required: No

 ** registryAlias **   <a name="ecrpublic-Type-EntitledRepository-registryAlias"></a>
The registry alias of the publisher that owns the premium repository.  
Type: String  
Length Constraints: Minimum length of 2. Maximum length of 50.  
Pattern: `[a-z][a-z0-9]+(?:[._-][a-z0-9]+)*`   
Required: No

 ** registryDisplayName **   <a name="ecrpublic-Type-EntitledRepository-registryDisplayName"></a>
The display name of the publisher's registry. This value can be empty.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Required: No

 ** repositoryArn **   <a name="ecrpublic-Type-EntitledRepository-repositoryArn"></a>
The ARN of the premium repository. This ARN doesn't contain an account ID. It has the format `arn:aws:ecr-public:::entitled-repository/registry-alias/repository-name`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Required: No

 ** repositoryName **   <a name="ecrpublic-Type-EntitledRepository-repositoryName"></a>
The name of the premium repository.  
Type: String  
Length Constraints: Minimum length of 2. Maximum length of 205.  
Pattern: `[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*(\/[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*)*`   
Required: No

 ** repositoryUri **   <a name="ecrpublic-Type-EntitledRepository-repositoryUri"></a>
The URI of the premium repository. Use this URI to pull images from the repository.  
Type: String  
Required: No

 ** state **   <a name="ecrpublic-Type-EntitledRepository-state"></a>
The state of the premium repository. Valid values:  
+  `AVAILABLE`: The repository is shown in the Amazon ECR Public Gallery, and you can pull from it.
+  `HIDDEN`: The repository isn't shown in the Amazon ECR Public Gallery, but because you have an active entitlement, you can still pull from it.
Type: String  
Valid Values: `DRAFT | AVAILABLE | HIDDEN`   
Required: No

## See Also
<a name="API_EntitledRepository_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/ecr-public-2020-10-30/EntitledRepository) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ecr-public-2020-10-30/EntitledRepository) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ecr-public-2020-10-30/EntitledRepository) 