@aws-sdk/client-ecr 3.53.0 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/ECRClient.js +13 -13
  3. package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +3 -3
  4. package/dist-cjs/commands/BatchDeleteImageCommand.js +3 -3
  5. package/dist-cjs/commands/BatchGetImageCommand.js +3 -3
  6. package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +3 -3
  7. package/dist-cjs/commands/CompleteLayerUploadCommand.js +3 -3
  8. package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +3 -3
  9. package/dist-cjs/commands/CreateRepositoryCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +3 -3
  11. package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteRegistryPolicyCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteRepositoryCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +3 -3
  15. package/dist-cjs/commands/DescribeImageReplicationStatusCommand.js +3 -3
  16. package/dist-cjs/commands/DescribeImageScanFindingsCommand.js +3 -3
  17. package/dist-cjs/commands/DescribeImagesCommand.js +3 -3
  18. package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +3 -3
  19. package/dist-cjs/commands/DescribeRegistryCommand.js +3 -3
  20. package/dist-cjs/commands/DescribeRepositoriesCommand.js +3 -3
  21. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +3 -3
  22. package/dist-cjs/commands/GetDownloadUrlForLayerCommand.js +3 -3
  23. package/dist-cjs/commands/GetLifecyclePolicyCommand.js +3 -3
  24. package/dist-cjs/commands/GetLifecyclePolicyPreviewCommand.js +3 -3
  25. package/dist-cjs/commands/GetRegistryPolicyCommand.js +3 -3
  26. package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +3 -3
  27. package/dist-cjs/commands/GetRepositoryPolicyCommand.js +3 -3
  28. package/dist-cjs/commands/InitiateLayerUploadCommand.js +3 -3
  29. package/dist-cjs/commands/ListImagesCommand.js +3 -3
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  31. package/dist-cjs/commands/PutImageCommand.js +3 -3
  32. package/dist-cjs/commands/PutImageScanningConfigurationCommand.js +3 -3
  33. package/dist-cjs/commands/PutImageTagMutabilityCommand.js +3 -3
  34. package/dist-cjs/commands/PutLifecyclePolicyCommand.js +3 -3
  35. package/dist-cjs/commands/PutRegistryPolicyCommand.js +3 -3
  36. package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +3 -3
  37. package/dist-cjs/commands/PutReplicationConfigurationCommand.js +3 -3
  38. package/dist-cjs/commands/SetRepositoryPolicyCommand.js +3 -3
  39. package/dist-cjs/commands/StartImageScanCommand.js +3 -3
  40. package/dist-cjs/commands/StartLifecyclePolicyPreviewCommand.js +3 -3
  41. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  42. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  43. package/dist-cjs/commands/UploadLayerPartCommand.js +3 -3
  44. package/dist-cjs/endpoints.js +1 -1
  45. package/dist-cjs/protocols/Aws_json1_1.js +315 -312
  46. package/dist-cjs/runtimeConfig.browser.js +4 -4
  47. package/dist-cjs/runtimeConfig.js +9 -9
  48. package/dist-cjs/runtimeConfig.native.js +1 -1
  49. package/dist-cjs/waiters/waitForImageScanComplete.js +3 -3
  50. package/dist-cjs/waiters/waitForLifecyclePolicyPreviewComplete.js +3 -3
  51. package/dist-es/ECR.js +41 -41
  52. package/dist-es/pagination/DescribeImageScanFindingsPaginator.js +4 -4
  53. package/dist-es/pagination/DescribeImagesPaginator.js +4 -4
  54. package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +4 -4
  55. package/dist-es/pagination/DescribeRepositoriesPaginator.js +4 -4
  56. package/dist-es/pagination/GetLifecyclePolicyPreviewPaginator.js +4 -4
  57. package/dist-es/pagination/ListImagesPaginator.js +4 -4
  58. package/dist-es/protocols/Aws_json1_1.js +3 -0
  59. package/dist-types/ECR.d.ts +11 -6
  60. package/dist-types/ECRClient.d.ts +2 -2
  61. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +1 -1
  62. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +1 -1
  63. package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +1 -1
  64. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +1 -1
  65. package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +6 -1
  66. package/dist-types/commands/UploadLayerPartCommand.d.ts +1 -1
  67. package/dist-types/models/models_0.d.ts +33 -13
  68. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  69. package/dist-types/runtimeConfig.d.ts +1 -1
  70. package/dist-types/runtimeConfig.native.d.ts +3 -3
  71. package/dist-types/ts3.4/ECRClient.d.ts +2 -2
  72. package/dist-types/ts3.4/models/models_0.d.ts +2 -0
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  76. package/package.json +35 -35
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListImagesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListImagesCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listImages.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listImages.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListImages(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ECR)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof ECRClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -4173,6 +4173,9 @@ var deserializeAws_json1_1ImageDetail = function (output, context) {
4173
4173
  imageTags: output.imageTags !== undefined && output.imageTags !== null
4174
4174
  ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
4175
4175
  : undefined,
4176
+ lastRecordedPullTime: output.lastRecordedPullTime !== undefined && output.lastRecordedPullTime !== null
4177
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRecordedPullTime)))
4178
+ : undefined,
4176
4179
  registryId: __expectString(output.registryId),
4177
4180
  repositoryName: __expectString(output.repositoryName),
4178
4181
  };
@@ -58,7 +58,7 @@ export declare class ECR extends ECRClient {
58
58
  * <p>When an image is pushed to a repository, each image layer is checked to verify if it
59
59
  * has been uploaded before. If it has been uploaded, then the image layer is
60
60
  * skipped.</p>
61
- * <note>
61
+ * <note>
62
62
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
63
63
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
64
64
  * </note>
@@ -98,7 +98,7 @@ export declare class ECR extends ECRClient {
98
98
  * of the image layer for data validation purposes.</p>
99
99
  * <p>When an image is pushed, the CompleteLayerUpload API is called once per each new image
100
100
  * layer to verify that the upload has completed.</p>
101
- * <note>
101
+ * <note>
102
102
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
103
103
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
104
104
  * </note>
@@ -214,7 +214,7 @@ export declare class ECR extends ECRClient {
214
214
  * only get URLs for image layers that are referenced in an image.</p>
215
215
  * <p>When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer
216
216
  * that is not already cached.</p>
217
- * <note>
217
+ * <note>
218
218
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
219
219
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
220
220
  * </note>
@@ -258,7 +258,7 @@ export declare class ECR extends ECRClient {
258
258
  * <p>When an image is pushed, the InitiateLayerUpload API is called once per image layer
259
259
  * that has not already been uploaded. Whether or not an image layer has been uploaded is
260
260
  * determined by the BatchCheckLayerAvailability API action.</p>
261
- * <note>
261
+ * <note>
262
262
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
263
263
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
264
264
  * </note>
@@ -299,7 +299,12 @@ export declare class ECR extends ECRClient {
299
299
  putImage(args: PutImageCommandInput, cb: (err: any, data?: PutImageCommandOutput) => void): void;
300
300
  putImage(args: PutImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutImageCommandOutput) => void): void;
301
301
  /**
302
- * <p>Updates the image scanning configuration for the specified repository.</p>
302
+ * <important>
303
+ * <p>The <code>PutImageScanningConfiguration</code> API is being deprecated, in favor
304
+ * of specifying the image scanning configuration at the registry level. For more
305
+ * information, see <a>PutRegistryScanningConfiguration</a>.</p>
306
+ * </important>
307
+ * <p>Updates the image scanning configuration for the specified repository.</p>
303
308
  */
304
309
  putImageScanningConfiguration(args: PutImageScanningConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutImageScanningConfigurationCommandOutput>;
305
310
  putImageScanningConfiguration(args: PutImageScanningConfigurationCommandInput, cb: (err: any, data?: PutImageScanningConfigurationCommandOutput) => void): void;
@@ -392,7 +397,7 @@ export declare class ECR extends ECRClient {
392
397
  * <p>When an image is pushed, each new image layer is uploaded in parts. The maximum size
393
398
  * of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API
394
399
  * is called once per each new image layer part.</p>
395
- * <note>
400
+ * <note>
396
401
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
397
402
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
398
403
  * </note>
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput } from "./commands/BatchCheckLayerAvailabilityCommand";
10
10
  import { BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput } from "./commands/BatchDeleteImageCommand";
11
11
  import { BatchGetImageCommandInput, BatchGetImageCommandOutput } from "./commands/BatchGetImageCommand";
@@ -69,7 +69,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
69
69
  * A function that can calculate the length of a request body.
70
70
  * @internal
71
71
  */
72
- bodyLengthChecker?: (body: any) => number | undefined;
72
+ bodyLengthChecker?: __BodyLengthCalculator;
73
73
  /**
74
74
  * A function that converts a stream into an array of bytes.
75
75
  * @internal
@@ -11,7 +11,7 @@ export interface BatchCheckLayerAvailabilityCommandOutput extends BatchCheckLaye
11
11
  * <p>When an image is pushed to a repository, each image layer is checked to verify if it
12
12
  * has been uploaded before. If it has been uploaded, then the image layer is
13
13
  * skipped.</p>
14
- * <note>
14
+ * <note>
15
15
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
16
16
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
17
17
  * </note>
@@ -12,7 +12,7 @@ export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadRes
12
12
  * of the image layer for data validation purposes.</p>
13
13
  * <p>When an image is pushed, the CompleteLayerUpload API is called once per each new image
14
14
  * layer to verify that the upload has completed.</p>
15
- * <note>
15
+ * <note>
16
16
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
17
17
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
18
18
  * </note>
@@ -11,7 +11,7 @@ export interface GetDownloadUrlForLayerCommandOutput extends GetDownloadUrlForLa
11
11
  * only get URLs for image layers that are referenced in an image.</p>
12
12
  * <p>When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer
13
13
  * that is not already cached.</p>
14
- * <note>
14
+ * <note>
15
15
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
16
16
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
17
17
  * </note>
@@ -11,7 +11,7 @@ export interface InitiateLayerUploadCommandOutput extends InitiateLayerUploadRes
11
11
  * <p>When an image is pushed, the InitiateLayerUpload API is called once per image layer
12
12
  * that has not already been uploaded. Whether or not an image layer has been uploaded is
13
13
  * determined by the BatchCheckLayerAvailability API action.</p>
14
- * <note>
14
+ * <note>
15
15
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
16
16
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
17
17
  * </note>
@@ -7,7 +7,12 @@ export interface PutImageScanningConfigurationCommandInput extends PutImageScann
7
7
  export interface PutImageScanningConfigurationCommandOutput extends PutImageScanningConfigurationResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Updates the image scanning configuration for the specified repository.</p>
10
+ * <important>
11
+ * <p>The <code>PutImageScanningConfiguration</code> API is being deprecated, in favor
12
+ * of specifying the image scanning configuration at the registry level. For more
13
+ * information, see <a>PutRegistryScanningConfiguration</a>.</p>
14
+ * </important>
15
+ * <p>Updates the image scanning configuration for the specified repository.</p>
11
16
  * @example
12
17
  * Use a bare-bones client and the command you need to make an API call.
13
18
  * ```javascript
@@ -11,7 +11,7 @@ export interface UploadLayerPartCommandOutput extends UploadLayerPartResponse, _
11
11
  * <p>When an image is pushed, each new image layer is uploaded in parts. The maximum size
12
12
  * of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API
13
13
  * is called once per each new image layer part.</p>
14
- * <note>
14
+ * <note>
15
15
  * <p>This operation is used by the Amazon ECR proxy and is not generally used by
16
16
  * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
17
17
  * </note>
@@ -348,7 +348,9 @@ export declare enum ScanningRepositoryFilterType {
348
348
  WILDCARD = "WILDCARD"
349
349
  }
350
350
  /**
351
- * <p>The details of a scanning repository filter.</p>
351
+ * <p>The details of a scanning repository filter. For more information on how to use
352
+ * filters, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html#image-scanning-filters">Using
353
+ * filters</a> in the <i>Amazon Elastic Container Registry User Guide</i>.</p>
352
354
  */
353
355
  export interface ScanningRepositoryFilter {
354
356
  /**
@@ -704,9 +706,8 @@ export declare enum ImageTagMutability {
704
706
  MUTABLE = "MUTABLE"
705
707
  }
706
708
  /**
707
- * <p>The metadata that you apply to a resource to help you categorize and organize them.
708
- * Each tag consists of a key and an optional value, both of which you define.
709
- * Tag keys can have a maximum character length of 128 characters, and tag values can have
709
+ * <p>The metadata to apply to a resource to help you categorize and organize them. Each tag
710
+ * consists of a key and a value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have
710
711
  * a maximum length of 256 characters.</p>
711
712
  */
712
713
  export interface Tag {
@@ -716,8 +717,7 @@ export interface Tag {
716
717
  */
717
718
  Key?: string;
718
719
  /**
719
- * <p>The optional part of a key-value pair that make up a tag. A <code>value</code> acts as
720
- * a descriptor within a tag category (key).</p>
720
+ * <p>A <code>value</code> acts as a descriptor within a tag category (key).</p>
721
721
  */
722
722
  Value?: string;
723
723
  }
@@ -1370,6 +1370,19 @@ export interface ImageDetail {
1370
1370
  * <p>The artifact media type of the image.</p>
1371
1371
  */
1372
1372
  artifactMediaType?: string;
1373
+ /**
1374
+ * <p>The date and time, expressed in standard JavaScript date format, when Amazon ECR recorded
1375
+ * the last image pull.</p>
1376
+ * <note>
1377
+ * <p>Amazon ECR refreshes the last image pull timestamp at least once every 24 hours. For
1378
+ * example, if you pull an image once a day then the <code>lastRecordedPullTime</code>
1379
+ * timestamp will indicate the exact time that the image was last pulled. However, if
1380
+ * you pull an image once an hour, because Amazon ECR refreshes the
1381
+ * <code>lastRecordedPullTime</code> timestamp at least once every 24 hours, the
1382
+ * result may not be the exact time that the image was last pulled.</p>
1383
+ * </note>
1384
+ */
1385
+ lastRecordedPullTime?: Date;
1373
1386
  }
1374
1387
  export declare namespace ImageDetail {
1375
1388
  /**
@@ -2608,7 +2621,11 @@ export declare namespace GetRegistryScanningConfigurationRequest {
2608
2621
  */
2609
2622
  export interface RegistryScanningRule {
2610
2623
  /**
2611
- * <p>The frequency that scans are performed at for a private registry.</p>
2624
+ * <p>The frequency that scans are performed at for a private registry. When the
2625
+ * <code>ENHANCED</code> scan type is specified, the supported scan frequencies are
2626
+ * <code>CONTINUOUS_SCAN</code> and <code>SCAN_ON_PUSH</code>. When the
2627
+ * <code>BASIC</code> scan type is specified, the <code>SCAN_ON_PUSH</code> and
2628
+ * <code>MANUAL</code> scan frequencies are supported.</p>
2612
2629
  */
2613
2630
  scanFrequency: ScanFrequency | string | undefined;
2614
2631
  /**
@@ -3100,12 +3117,15 @@ export declare namespace PutRegistryPolicyResponse {
3100
3117
  export interface PutRegistryScanningConfigurationRequest {
3101
3118
  /**
3102
3119
  * <p>The scanning type to set for the registry.</p>
3103
- * <p>By default, the <code>BASIC</code> scan type is used. When basic scanning is set, you
3104
- * may specify filters to determine which individual repositories, or all repositories, are
3105
- * scanned when new images are pushed. Alternatively, you can do manual scans of images
3106
- * with basic scanning.</p>
3107
- * <p>When the <code>ENHANCED</code> scan type is set, Amazon Inspector provides automated, continuous
3108
- * scanning of all repositories in your registry.</p>
3120
+ * <p>When a registry scanning configuration is not defined, by default the
3121
+ * <code>BASIC</code> scan type is used. When basic scanning is used, you may specify
3122
+ * filters to determine which individual repositories, or all repositories, are scanned
3123
+ * when new images are pushed to those repositories. Alternatively, you can do manual scans
3124
+ * of images with basic scanning.</p>
3125
+ * <p>When the <code>ENHANCED</code> scan type is set, Amazon Inspector provides automated
3126
+ * vulnerability scanning. You may choose between continuous scanning or scan on push and
3127
+ * you may specify filters to determine which individual repositories, or all repositories,
3128
+ * are scanned.</p>
3109
3129
  */
3110
3130
  scanType?: ScanType | string;
3111
3131
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput } from "./commands/BatchCheckLayerAvailabilityCommand";
10
10
  import { BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput } from "./commands/BatchDeleteImageCommand";
11
11
  import { BatchGetImageCommandInput, BatchGetImageCommandOutput } from "./commands/BatchGetImageCommand";
@@ -57,7 +57,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
57
57
 
58
58
  urlParser?: __UrlParser;
59
59
 
60
- bodyLengthChecker?: (body: any) => number | undefined;
60
+ bodyLengthChecker?: __BodyLengthCalculator;
61
61
 
62
62
  streamCollector?: __StreamCollector;
63
63
 
@@ -771,6 +771,8 @@ export interface ImageDetail {
771
771
  imageManifestMediaType?: string;
772
772
 
773
773
  artifactMediaType?: string;
774
+
775
+ lastRecordedPullTime?: Date;
774
776
  }
775
777
  export declare namespace ImageDetail {
776
778
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecr",
3
3
  "description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
4
- "version": "3.53.0",
4
+ "version": "3.55.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,48 +18,48 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.53.0",
22
- "@aws-sdk/config-resolver": "3.53.0",
23
- "@aws-sdk/credential-provider-node": "3.53.0",
24
- "@aws-sdk/fetch-http-handler": "3.53.0",
25
- "@aws-sdk/hash-node": "3.53.0",
26
- "@aws-sdk/invalid-dependency": "3.53.0",
27
- "@aws-sdk/middleware-content-length": "3.53.0",
28
- "@aws-sdk/middleware-host-header": "3.53.0",
29
- "@aws-sdk/middleware-logger": "3.53.0",
30
- "@aws-sdk/middleware-retry": "3.53.0",
31
- "@aws-sdk/middleware-serde": "3.53.0",
32
- "@aws-sdk/middleware-signing": "3.53.0",
33
- "@aws-sdk/middleware-stack": "3.53.0",
34
- "@aws-sdk/middleware-user-agent": "3.53.0",
35
- "@aws-sdk/node-config-provider": "3.53.0",
36
- "@aws-sdk/node-http-handler": "3.53.0",
37
- "@aws-sdk/protocol-http": "3.53.0",
38
- "@aws-sdk/smithy-client": "3.53.0",
39
- "@aws-sdk/types": "3.53.0",
40
- "@aws-sdk/url-parser": "3.53.0",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
- "@aws-sdk/util-user-agent-browser": "3.53.0",
48
- "@aws-sdk/util-user-agent-node": "3.53.0",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "@aws-sdk/util-waiter": "3.53.0",
52
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.55.0",
22
+ "@aws-sdk/config-resolver": "3.55.0",
23
+ "@aws-sdk/credential-provider-node": "3.55.0",
24
+ "@aws-sdk/fetch-http-handler": "3.55.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.55.0",
28
+ "@aws-sdk/middleware-host-header": "3.55.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.55.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.55.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.55.0",
36
+ "@aws-sdk/node-http-handler": "3.55.0",
37
+ "@aws-sdk/protocol-http": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.55.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.55.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.55.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "@aws-sdk/util-waiter": "3.55.0",
52
+ "tslib": "^2.3.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
56
56
  "@tsconfig/recommended": "1.0.1",
57
57
  "@types/node": "^12.7.5",
58
58
  "concurrently": "7.0.0",
59
59
  "downlevel-dts": "0.7.0",
60
60
  "rimraf": "3.0.2",
61
61
  "typedoc": "0.19.2",
62
- "typescript": "~4.3.5"
62
+ "typescript": "~4.6.2"
63
63
  },
64
64
  "engines": {
65
65
  "node": ">=12.0.0"