From a05338f590a69a98c2c5bbad46a63da2adc04573 Mon Sep 17 00:00:00 2001
From: awstools
Date: Wed, 8 May 2024 18:17:00 +0000
Subject: [PATCH] feat(client-ecr): This release adds pull through cache rules
support for GitLab container registry in Amazon ECR.
---
.../src/commands/CreatePullThroughCacheRuleCommand.ts | 4 ++--
.../src/commands/DescribePullThroughCacheRulesCommand.ts | 2 +-
clients/client-ecr/src/models/models_0.ts | 6 ++++++
codegen/sdk-codegen/aws-models/ecr.json | 8 +++++++-
4 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/clients/client-ecr/src/commands/CreatePullThroughCacheRuleCommand.ts b/clients/client-ecr/src/commands/CreatePullThroughCacheRuleCommand.ts
index 20dba858d9ac..a791e7bd4bf7 100644
--- a/clients/client-ecr/src/commands/CreatePullThroughCacheRuleCommand.ts
+++ b/clients/client-ecr/src/commands/CreatePullThroughCacheRuleCommand.ts
@@ -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);
@@ -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",
* // };
*
diff --git a/clients/client-ecr/src/commands/DescribePullThroughCacheRulesCommand.ts b/clients/client-ecr/src/commands/DescribePullThroughCacheRulesCommand.ts
index 1b9084f18b56..0b8c5364a6a0 100644
--- a/clients/client-ecr/src/commands/DescribePullThroughCacheRulesCommand.ts
+++ b/clients/client-ecr/src/commands/DescribePullThroughCacheRulesCommand.ts
@@ -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"),
* // },
* // ],
diff --git a/clients/client-ecr/src/models/models_0.ts b/clients/client-ecr/src/models/models_0.ts
index 51bb359eaa81..94c28a15c1c3 100644
--- a/clients/client-ecr/src/models/models_0.ts
+++ b/clients/client-ecr/src/models/models_0.ts
@@ -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;
@@ -854,6 +855,11 @@ export interface CreatePullThroughCacheRuleRequest {
* .azurecr.io
*
*
+ *
+ * GitLab Container Registry (gitlab-container-registry
) -
+ * registry.gitlab.com
+ *
+ *
*
* @public
*/
diff --git a/codegen/sdk-codegen/aws-models/ecr.json b/codegen/sdk-codegen/aws-models/ecr.json
index cd49b751a0e8..9226efc57bef 100644
--- a/codegen/sdk-codegen/aws-models/ecr.json
+++ b/codegen/sdk-codegen/aws-models/ecr.json
@@ -1905,7 +1905,7 @@
"upstreamRegistryUrl": {
"target": "com.amazonaws.ecr#Url",
"traits": {
- "smithy.api#documentation": "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.
\n \n - \n
Amazon ECR Public (ecr-public
) - public.ecr.aws
\n
\n \n - \n
Docker Hub (docker-hub
) -\n registry-1.docker.io
\n
\n \n - \n
Quay (quay
) - quay.io
\n
\n \n - \n
Kubernetes (k8s
) - registry.k8s.io
\n
\n \n - \n
GitHub Container Registry (github-container-registry
) -\n ghcr.io
\n
\n \n - \n
Microsoft Azure Container Registry (azure-container-registry
) -\n .azurecr.io
\n
\n \n
",
+ "smithy.api#documentation": "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.
\n \n - \n
Amazon ECR Public (ecr-public
) - public.ecr.aws
\n
\n \n - \n
Docker Hub (docker-hub
) -\n registry-1.docker.io
\n
\n \n - \n
Quay (quay
) - quay.io
\n
\n \n - \n
Kubernetes (k8s
) - registry.k8s.io
\n
\n \n - \n
GitHub Container Registry (github-container-registry
) -\n ghcr.io
\n
\n \n - \n
Microsoft Azure Container Registry (azure-container-registry
) -\n .azurecr.io
\n
\n \n - \n
GitLab Container Registry (gitlab-container-registry
) -\n registry.gitlab.com
\n
\n \n
",
"smithy.api#required": {}
}
},
@@ -7711,6 +7711,12 @@
"traits": {
"smithy.api#enumValue": "azure-container-registry"
}
+ },
+ "GitLabContainerRegistry": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "gitlab-container-registry"
+ }
}
}
},