Skip to content

Commit 873da42

Browse files
author
awstools
committed
docs(client-ecr): Fix for customer issues related to AWS account ID and size limitation for token.
1 parent ba33fb0 commit 873da42

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ export interface DescribeImagesCommandOutput extends DescribeImagesResponse, __M
3030
/**
3131
* <p>Returns metadata about the images in a repository.</p>
3232
* <note>
33-
* <p>Beginning with Docker version 1.9, the Docker client compresses image layers
34-
* before pushing them to a V2 Docker registry. The output of the <code>docker
35-
* images</code> command shows the uncompressed image size, so it may return a
36-
* larger image size than the image sizes returned by <a>DescribeImages</a>.</p>
33+
* <p>Starting with Docker version 1.9, the Docker client compresses image layers before
34+
* pushing them to a V2 Docker registry. The output of the <code>docker images</code>
35+
* command shows the uncompressed image size. Therefore, Docker might return a larger
36+
* image than the image shown in the Amazon Web Services Management Console.</p>
3737
* </note>
3838
* @example
3939
* Use a bare-bones client and the command you need to make an API call.

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ export interface CreatePullThroughCacheRuleRequest {
836836
* <ul>
837837
* <li>
838838
* <p>Amazon ECR (<code>ecr</code>) –
839-
* <code>dkr.ecr.<region>.amazonaws.com</code>
839+
* <code><accountId>.dkr.ecr.<region>.amazonaws.com</code>
840840
* </p>
841841
* </li>
842842
* <li>
@@ -2308,7 +2308,7 @@ export interface ImageDetail {
23082308
* <p>Starting with Docker version 1.9, the Docker client compresses image layers before
23092309
* pushing them to a V2 Docker registry. The output of the <code>docker images</code>
23102310
* command shows the uncompressed image size. Therefore, Docker might return a larger
2311-
* image than the image sizes returned by <a>DescribeImages</a>.</p>
2311+
* image than the image shown in the Amazon Web Services Management Console.</p>
23122312
* </note>
23132313
* @public
23142314
*/
@@ -3518,6 +3518,10 @@ export interface GetAuthorizationTokenResponse {
35183518
/**
35193519
* <p>A list of authorization token data objects that correspond to the
35203520
* <code>registryIds</code> values in the request.</p>
3521+
* <note>
3522+
* <p>The size of the authorization token returned by Amazon ECR is not fixed. We recommend
3523+
* that you don't make assumptions about the maximum size.</p>
3524+
* </note>
35213525
* @public
35223526
*/
35233527
authorizationData?: AuthorizationData[] | undefined;

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@
19351935
"upstreamRegistryUrl": {
19361936
"target": "com.amazonaws.ecr#Url",
19371937
"traits": {
1938-
"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 (<code>ecr</code>) –\n <code>dkr.ecr.<region>.amazonaws.com</code>\n </p>\n </li>\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>GitHub Container Registry (<code>github-container-registry</code>) –\n <code>ghcr.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 <li>\n <p>Kubernetes (<code>k8s</code>) – <code>registry.k8s.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>Quay (<code>quay</code>) – <code>quay.io</code>\n </p>\n </li>\n </ul>",
1938+
"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 (<code>ecr</code>) –\n <code><accountId>.dkr.ecr.<region>.amazonaws.com</code>\n </p>\n </li>\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>GitHub Container Registry (<code>github-container-registry</code>) –\n <code>ghcr.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 <li>\n <p>Kubernetes (<code>k8s</code>) – <code>registry.k8s.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>Quay (<code>quay</code>) – <code>quay.io</code>\n </p>\n </li>\n </ul>",
19391939
"smithy.api#required": {}
19401940
}
19411941
},
@@ -3097,7 +3097,7 @@
30973097
}
30983098
],
30993099
"traits": {
3100-
"smithy.api#documentation": "<p>Returns metadata about the images in a repository.</p>\n <note>\n <p>Beginning with Docker version 1.9, the Docker client compresses image layers\n before pushing them to a V2 Docker registry. The output of the <code>docker\n images</code> command shows the uncompressed image size, so it may return a\n larger image size than the image sizes returned by <a>DescribeImages</a>.</p>\n </note>",
3100+
"smithy.api#documentation": "<p>Returns metadata about the images in a repository.</p>\n <note>\n <p>Starting with Docker version 1.9, the Docker client compresses image layers before\n pushing them to a V2 Docker registry. The output of the <code>docker images</code>\n command shows the uncompressed image size. Therefore, Docker might return a larger\n image than the image shown in the Amazon Web Services Management Console.</p>\n </note>",
31013101
"smithy.api#paginated": {
31023102
"inputToken": "nextToken",
31033103
"outputToken": "nextToken",
@@ -3913,7 +3913,7 @@
39133913
"authorizationData": {
39143914
"target": "com.amazonaws.ecr#AuthorizationDataList",
39153915
"traits": {
3916-
"smithy.api#documentation": "<p>A list of authorization token data objects that correspond to the\n <code>registryIds</code> values in the request.</p>"
3916+
"smithy.api#documentation": "<p>A list of authorization token data objects that correspond to the\n <code>registryIds</code> values in the request.</p>\n <note>\n <p>The size of the authorization token returned by Amazon ECR is not fixed. We recommend\n that you don't make assumptions about the maximum size.</p>\n </note>"
39173917
}
39183918
}
39193919
},
@@ -4533,7 +4533,7 @@
45334533
"imageSizeInBytes": {
45344534
"target": "com.amazonaws.ecr#ImageSizeInBytes",
45354535
"traits": {
4536-
"smithy.api#documentation": "<p>The size, in bytes, of the image in the repository.</p>\n <p>If the image is a manifest list, this will be the max size of all manifests in the\n list.</p>\n <note>\n <p>Starting with Docker version 1.9, the Docker client compresses image layers before\n pushing them to a V2 Docker registry. The output of the <code>docker images</code>\n command shows the uncompressed image size. Therefore, Docker might return a larger\n image than the image sizes returned by <a>DescribeImages</a>.</p>\n </note>"
4536+
"smithy.api#documentation": "<p>The size, in bytes, of the image in the repository.</p>\n <p>If the image is a manifest list, this will be the max size of all manifests in the\n list.</p>\n <note>\n <p>Starting with Docker version 1.9, the Docker client compresses image layers before\n pushing them to a V2 Docker registry. The output of the <code>docker images</code>\n command shows the uncompressed image size. Therefore, Docker might return a larger\n image than the image shown in the Amazon Web Services Management Console.</p>\n </note>"
45374537
}
45384538
},
45394539
"imagePushedAt": {

0 commit comments

Comments
 (0)