<a id="cli-aws-ecr-public-create-premium-repository"></a>

# create-premium-repository

## Description

Creates a premium repository in a public registry for paid content that’s sold through Amazon Web Services Marketplace. Your registry must be verified and have an approved custom registry alias; otherwise, the request fails with `ValidationException` . The repository starts in the `DRAFT` state, and you make it available with `SetRepositoryState` .

See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/CreatePremiumRepository)

## Synopsis

```
  create-premium-repository
--repository-name <value>
[--catalog-data <value>]
--marketplace-products <value>
[--tags <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]
```

## Options

`--repository-name` (string) [required]

> The name to use for the premium repository. You can specify the name on its own (for example `nginx-web-app` ) or prepend a namespace to group the repository into a category (for example `project-a/nginx-web-app` ). You can give a premium repository the same name as a free repository in the same registry.

> Constraints:

> * min: `2`
> * max: `205`
> * pattern: `[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*(\/[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*)*`

`--catalog-data` (structure)

> The details about the premium repository that are publicly visible in the Amazon ECR Public Gallery. A premium repository is listed in the Amazon ECR Public Gallery when it’s `AVAILABLE` and at least one of its Amazon Web Services Marketplace products is public.

> description -> (string)

> > A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.

> > Constraints:

> > * max: `1024`

> architectures -> (list)

> > The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.

> > #### NOTE
> > If an unsupported tag is added to your repository catalog data, it’s associated with the repository and can be retrieved using the API but isn’t discoverable in the Amazon ECR Public Gallery.

> > * `ARM`
> > * `ARM 64`
> > * `x86`
> > * `x86-64`

> > Constraints:

> > * max: `50`

> > (string)

> > > Constraints:

> > > * min: `1`
> > > * max: `50`

> operatingSystems -> (list)

> > The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.

> > #### NOTE
> > If an unsupported tag is added to your repository catalog data, it’s associated with the repository and can be retrieved using the API but isn’t discoverable in the Amazon ECR Public Gallery.

> > * `Linux`
> > * `Windows`

> > Constraints:

> > * max: `50`

> > (string)

> > > Constraints:

> > > * min: `1`
> > > * max: `50`

> logoImageBlob -> (blob)

> > The base64-encoded repository logo payload.

> > #### NOTE
> > The repository logo is only publicly visible in the Amazon ECR Public Gallery for verified accounts.

> > Constraints:

> > * min: `0`
> > * max: `512000`

> aboutText -> (string)

> > A detailed description of the contents of the repository. It’s publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.

> > Constraints:

> > * max: `25600`

> usageText -> (string)

> > Detailed information about how to use the contents of the repository. It’s publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.

> > Constraints:

> > * max: `25600`

> categories -> (list)

> > The categories that the repository belongs to in the Amazon ECR Public Gallery. You can specify up to three categories, and each category can only be specified once.

> > Constraints:

> > * max: `3`

> > (string)

> > > Possible values:

> > > * `BASE_IMAGES`
> > > * `APPLICATION_RUNTIMES`
> > > * `DATABASES`
> > > * `AI_ML`
> > > * `NETWORKING`
> > > * `SECURITY`
> > > * `MONITORING`
> > > * `CI_CD_TOOLS`
> > > * `KUBERNETES_EXTENSIONS`
> > > * `WEB_SERVERS`
> > > * `STREAMING`

Shorthand Syntax:

```
description=string,architectures=string,string,operatingSystems=string,string,logoImageBlob=blob,aboutText=string,usageText=string,categories=string,string
```

JSON Syntax:

```json
{
  "description": "string",
  "architectures": ["string", ...],
  "operatingSystems": ["string", ...],
  "logoImageBlob": blob,
  "aboutText": "string",
  "usageText": "string",
  "categories": ["BASE_IMAGES"|"APPLICATION_RUNTIMES"|"DATABASES"|"AI_ML"|"NETWORKING"|"SECURITY"|"MONITORING"|"CI_CD_TOOLS"|"KUBERNETES_EXTENSIONS"|"WEB_SERVERS"|"STREAMING", ...]
}
```

`--marketplace-products` (list) [required]

> The list of Amazon Web Services Marketplace product IDs for the premium repository. You can specify from one to five product IDs. Your account must own each product, and each product must have an Amazon ECR Public Premium delivery option. You can’t specify the same product ID more than once.

> Constraints:

> * min: `1`
> * max: `5`

> (string)

> > Constraints:

> > * min: `1`
> > * max: `255`
> > * pattern: `[A-Za-z0-9_-]+`

Syntax:

```
"string" "string" ...
```

`--tags` (list)

> The metadata that you apply to the premium repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

> Constraints:

> * min: `0`
> * max: `200`

> (structure)

> > The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

> > Key -> (string)

> > > One part of a key-value pair that make up a tag. A `key` is a general label that acts like a category for more specific tag values.

> > > Constraints:

> > > * min: `1`
> > > * max: `128`

> > Value -> (string)

> > > The optional part of a key-value pair that make up a tag. A `value` acts as a descriptor within a tag category (key).

> > > Constraints:

> > > * min: `0`
> > > * max: `256`

Shorthand Syntax:

```
Key=string,Value=string ...
```

JSON Syntax:

```json
[
  {
    "Key": "string",
    "Value": "string"
  }
  ...
]
```

`--cli-input-json` | `--cli-input-yaml` (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by `--generate-cli-skeleton`. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with `--cli-input-yaml`.

`--generate-cli-skeleton` (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value `input`, prints a sample input JSON that can be used as an argument for `--cli-input-json`. Similarly, if provided `yaml-input` it will print a sample input YAML that can be used with `--cli-input-yaml`. If provided with the value `output`, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

## Global Options

`--debug` (boolean)

Turn on debug logging.

`--endpoint-url` (string)

Override command’s default URL with the given URL.

`--no-verify-ssl` (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

`--no-paginate` (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

`--output` (string)

The formatting style for command output.

* json
* text
* table
* yaml
* yaml-stream
* off

`--query` (string)

A JMESPath query to use in filtering the response data.

`--profile` (string)

Use a specific profile from your credential file.

`--region` (string)

The region to use. Overrides config/env settings.

`--version` (string)

Display the version of this tool.

`--color` (string)

Turn on/off color output.

* on
* off
* auto

`--no-sign-request` (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

`--ca-bundle` (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

`--cli-read-timeout` (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

`--cli-connect-timeout` (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

`--cli-binary-format` (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob `fileb://` will always be treated as binary and use the file contents directly regardless of the `cli-binary-format` setting. When using `file://` the file contents will need to properly formatted for the configured `cli-binary-format`.

* base64
* raw-in-base64-out

`--no-cli-pager` (boolean)

Disable cli pager for output.

`--cli-auto-prompt` (boolean)

Automatically prompt for CLI input parameters.

`--no-cli-auto-prompt` (boolean)

Disable automatically prompt for CLI input parameters.

`--cli-error-format` (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

* legacy
* json
* yaml
* text
* table
* enhanced

`--help` (boolean)

Display help for the command/subcommand.

## Output

premiumRepository -> (structure)

> The premium repository that was created.

> repositoryArn -> (string)

> > The ARN for the premium repository. The ARN has the format `arn:aws:ecr-public::012345678910:premium-repository/repository-name` .

> > Constraints:

> > * min: `1`
> > * max: `2048`

> registryId -> (string)

> > The Amazon Web Services account ID that’s associated with the public registry that contains the premium repository.

> > Constraints:

> > * pattern: `[0-9]{12}`

> repositoryName -> (string)

> > The name of the premium repository.

> > Constraints:

> > * min: `2`
> > * max: `205`
> > * pattern: `[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*(\/[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*)*`

> repositoryUri -> (string)

> > The URI of the premium repository. You can use this URI for image `push` and `pull` operations.

> createdAt -> (timestamp)

> > The date and time, in JavaScript date format, when the premium repository was created.

> marketplaceProducts -> (list)

> > The Amazon Web Services Marketplace product IDs for the premium repository.

> > Constraints:

> > * min: `1`
> > * max: `5`

> > (string)

> > > Constraints:

> > > * min: `1`
> > > * max: `255`
> > > * pattern: `[A-Za-z0-9_-]+`

> associatedRepositories -> (list)

> > The repositories that are associated with the premium repository.

> > Constraints:

> > * min: `0`
> > * max: `1`

> > (structure)

> > > An object that identifies a repository that’s associated with another repository.

> > > repositoryName -> (string)

> > > > The name of the associated repository.

> > > > Constraints:

> > > > * min: `2`
> > > > * max: `205`
> > > > * pattern: `[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*(\/[a-z0-9]+((\.|_|__|-+)[a-z0-9]+)*)*`

> > > repositoryType -> (string)

> > > > The type of the associated repository.

> > > > Possible values:

> > > > * `FREE`
> > > > * `PREMIUM`

> state -> (string)

> > The state of the premium repository. A premium repository in the `DRAFT` state is only accessible to you. A premium repository in the `AVAILABLE` state is listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public. A premium repository in the `HIDDEN` state isn’t listed in the Amazon ECR Public Gallery, but buyers with an active entitlement can still pull from it.

> > Possible values:

> > * `DRAFT`
> > * `AVAILABLE`
> > * `HIDDEN`

catalogData -> (structure)

> The catalog data for the premium repository that was created.

> description -> (string)

> > The short description of the repository.

> > Constraints:

> > * max: `1024`

> architectures -> (list)

> > The architecture tags that are associated with the repository.

> > #### NOTE
> > Only supported operating system tags appear publicly in the Amazon ECR Public Gallery. For more information, see `RepositoryCatalogDataInput` .

> > Constraints:

> > * max: `50`

> > (string)

> > > Constraints:

> > > * min: `1`
> > > * max: `50`

> operatingSystems -> (list)

> > The operating system tags that are associated with the repository.

> > #### NOTE
> > Only supported operating system tags appear publicly in the Amazon ECR Public Gallery. For more information, see `RepositoryCatalogDataInput` .

> > Constraints:

> > * max: `50`

> > (string)

> > > Constraints:

> > > * min: `1`
> > > * max: `50`

> logoUrl -> (string)

> > The URL that contains the logo that’s associated with the repository.

> > Constraints:

> > * max: `2048`

> aboutText -> (string)

> > The longform description of the contents of the repository. This text appears in the repository details on the Amazon ECR Public Gallery.

> > Constraints:

> > * max: `25600`

> usageText -> (string)

> > The longform usage details of the contents of the repository. The usage text provides context for users of the repository.

> > Constraints:

> > * max: `25600`

> marketplaceCertified -> (boolean)

> > Indicates whether the repository is certified by Amazon Web Services Marketplace.

> categories -> (list)

> > The categories that the repository belongs to in the Amazon ECR Public Gallery.

> > Constraints:

> > * max: `3`

> > (string)

> > > Possible values:

> > > * `BASE_IMAGES`
> > > * `APPLICATION_RUNTIMES`
> > > * `DATABASES`
> > > * `AI_ML`
> > > * `NETWORKING`
> > > * `SECURITY`
> > > * `MONITORING`
> > > * `CI_CD_TOOLS`
> > > * `KUBERNETES_EXTENSIONS`
> > > * `WEB_SERVERS`
> > > * `STREAMING`

> badges -> (list)

> > The badges that apply to the repository, such as `FIPS` or `SBOM` .

> > Constraints:

> > * max: `5`

> > (string)

> > > Possible values:

> > > * `FIPS`
> > > * `STIG`
> > > * `SIGNED`
> > > * `SBOM`
> > > * `CIS`

> artifactTypes -> (list)

> > The types of artifacts that the repository contains, such as `IMAGE` or `HELM` .

> > Constraints:

> > * max: `2`

> > (string)

> > > Possible values:

> > > * `IMAGE`
> > > * `HELM`
