Skip to content

Commit

Permalink
feat(client-ecr): This release adds pull through cache rules support …
Browse files Browse the repository at this point in the history
…for GitLab container registry in Amazon ECR.
  • Loading branch information
awstools committed May 8, 2024
1 parent 20dd731 commit a05338f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface CreatePullThroughCacheRuleCommandOutput extends CreatePullThrou
* ecrRepositoryPrefix: "STRING_VALUE", // required
* upstreamRegistryUrl: "STRING_VALUE", // required
* registryId: "STRING_VALUE",
* upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry",
* upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
* credentialArn: "STRING_VALUE",
* };
* const command = new CreatePullThroughCacheRuleCommand(input);
Expand All @@ -51,7 +51,7 @@ export interface CreatePullThroughCacheRuleCommandOutput extends CreatePullThrou
* // upstreamRegistryUrl: "STRING_VALUE",
* // createdAt: new Date("TIMESTAMP"),
* // registryId: "STRING_VALUE",
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry",
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
* // credentialArn: "STRING_VALUE",
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface DescribePullThroughCacheRulesCommandOutput
* // createdAt: new Date("TIMESTAMP"),
* // registryId: "STRING_VALUE",
* // credentialArn: "STRING_VALUE",
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry",
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
* // updatedAt: new Date("TIMESTAMP"),
* // },
* // ],
Expand Down
6 changes: 6 additions & 0 deletions clients/client-ecr/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ export const UpstreamRegistry = {
DockerHub: "docker-hub",
EcrPublic: "ecr-public",
GitHubContainerRegistry: "github-container-registry",
GitLabContainerRegistry: "gitlab-container-registry",
K8s: "k8s",
Quay: "quay",
} as const;
Expand Down Expand Up @@ -854,6 +855,11 @@ export interface CreatePullThroughCacheRuleRequest {
* <code><custom>.azurecr.io</code>
* </p>
* </li>
* <li>
* <p>GitLab Container Registry (<code>gitlab-container-registry</code>) -
* <code>registry.gitlab.com</code>
* </p>
* </li>
* </ul>
* @public
*/
Expand Down
8 changes: 7 additions & 1 deletion codegen/sdk-codegen/aws-models/ecr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@
"upstreamRegistryUrl": {
"target": "com.amazonaws.ecr#Url",
"traits": {
"smithy.api#documentation": "<p>The registry URL of the upstream public registry to use as the source for the pull\n through cache rule. The following is the syntax to use for each supported upstream\n registry.</p>\n <ul>\n <li>\n <p>Amazon ECR Public (<code>ecr-public</code>) - <code>public.ecr.aws</code>\n </p>\n </li>\n <li>\n <p>Docker Hub (<code>docker-hub</code>) -\n <code>registry-1.docker.io</code>\n </p>\n </li>\n <li>\n <p>Quay (<code>quay</code>) - <code>quay.io</code>\n </p>\n </li>\n <li>\n <p>Kubernetes (<code>k8s</code>) - <code>registry.k8s.io</code>\n </p>\n </li>\n <li>\n <p>GitHub Container Registry (<code>github-container-registry</code>) -\n <code>ghcr.io</code>\n </p>\n </li>\n <li>\n <p>Microsoft Azure Container Registry (<code>azure-container-registry</code>) -\n <code><custom>.azurecr.io</code>\n </p>\n </li>\n </ul>",
"smithy.api#documentation": "<p>The registry URL of the upstream public registry to use as the source for the pull\n through cache rule. The following is the syntax to use for each supported upstream\n registry.</p>\n <ul>\n <li>\n <p>Amazon ECR Public (<code>ecr-public</code>) - <code>public.ecr.aws</code>\n </p>\n </li>\n <li>\n <p>Docker Hub (<code>docker-hub</code>) -\n <code>registry-1.docker.io</code>\n </p>\n </li>\n <li>\n <p>Quay (<code>quay</code>) - <code>quay.io</code>\n </p>\n </li>\n <li>\n <p>Kubernetes (<code>k8s</code>) - <code>registry.k8s.io</code>\n </p>\n </li>\n <li>\n <p>GitHub Container Registry (<code>github-container-registry</code>) -\n <code>ghcr.io</code>\n </p>\n </li>\n <li>\n <p>Microsoft Azure Container Registry (<code>azure-container-registry</code>) -\n <code><custom>.azurecr.io</code>\n </p>\n </li>\n <li>\n <p>GitLab Container Registry (<code>gitlab-container-registry</code>) -\n <code>registry.gitlab.com</code>\n </p>\n </li>\n </ul>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -7711,6 +7711,12 @@
"traits": {
"smithy.api#enumValue": "azure-container-registry"
}
},
"GitLabContainerRegistry": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "gitlab-container-registry"
}
}
}
},
Expand Down

0 comments on commit a05338f

Please sign in to comment.