Skip to content

Commit a05338f

Browse files
author
awstools
committed
feat(client-ecr): This release adds pull through cache rules support for GitLab container registry in Amazon ECR.
1 parent 20dd731 commit a05338f

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

clients/client-ecr/src/commands/CreatePullThroughCacheRuleCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface CreatePullThroughCacheRuleCommandOutput extends CreatePullThrou
4141
* ecrRepositoryPrefix: "STRING_VALUE", // required
4242
* upstreamRegistryUrl: "STRING_VALUE", // required
4343
* registryId: "STRING_VALUE",
44-
* upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry",
44+
* upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
4545
* credentialArn: "STRING_VALUE",
4646
* };
4747
* const command = new CreatePullThroughCacheRuleCommand(input);
@@ -51,7 +51,7 @@ export interface CreatePullThroughCacheRuleCommandOutput extends CreatePullThrou
5151
* // upstreamRegistryUrl: "STRING_VALUE",
5252
* // createdAt: new Date("TIMESTAMP"),
5353
* // registryId: "STRING_VALUE",
54-
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry",
54+
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
5555
* // credentialArn: "STRING_VALUE",
5656
* // };
5757
*

clients/client-ecr/src/commands/DescribePullThroughCacheRulesCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface DescribePullThroughCacheRulesCommandOutput
5757
* // createdAt: new Date("TIMESTAMP"),
5858
* // registryId: "STRING_VALUE",
5959
* // credentialArn: "STRING_VALUE",
60-
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry",
60+
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
6161
* // updatedAt: new Date("TIMESTAMP"),
6262
* // },
6363
* // ],

clients/client-ecr/src/models/models_0.ts

+6
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ export const UpstreamRegistry = {
803803
DockerHub: "docker-hub",
804804
EcrPublic: "ecr-public",
805805
GitHubContainerRegistry: "github-container-registry",
806+
GitLabContainerRegistry: "gitlab-container-registry",
806807
K8s: "k8s",
807808
Quay: "quay",
808809
} as const;
@@ -854,6 +855,11 @@ export interface CreatePullThroughCacheRuleRequest {
854855
* <code><custom>.azurecr.io</code>
855856
* </p>
856857
* </li>
858+
* <li>
859+
* <p>GitLab Container Registry (<code>gitlab-container-registry</code>) -
860+
* <code>registry.gitlab.com</code>
861+
* </p>
862+
* </li>
857863
* </ul>
858864
* @public
859865
*/

codegen/sdk-codegen/aws-models/ecr.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@
19051905
"upstreamRegistryUrl": {
19061906
"target": "com.amazonaws.ecr#Url",
19071907
"traits": {
1908-
"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>",
1908+
"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>",
19091909
"smithy.api#required": {}
19101910
}
19111911
},
@@ -7711,6 +7711,12 @@
77117711
"traits": {
77127712
"smithy.api#enumValue": "azure-container-registry"
77137713
}
7714+
},
7715+
"GitLabContainerRegistry": {
7716+
"target": "smithy.api#Unit",
7717+
"traits": {
7718+
"smithy.api#enumValue": "gitlab-container-registry"
7719+
}
77147720
}
77157721
}
77167722
},

0 commit comments

Comments
 (0)