@aws-sdk/client-ecr 3.927.0 → 3.929.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 (70) hide show
  1. package/dist-cjs/index.js +2244 -2306
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/ECRClient.js +2 -0
  4. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +3 -9
  5. package/dist-es/commands/BatchDeleteImageCommand.js +3 -9
  6. package/dist-es/commands/BatchGetImageCommand.js +3 -9
  7. package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +3 -9
  8. package/dist-es/commands/CompleteLayerUploadCommand.js +3 -9
  9. package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +3 -9
  10. package/dist-es/commands/CreateRepositoryCommand.js +3 -9
  11. package/dist-es/commands/CreateRepositoryCreationTemplateCommand.js +3 -9
  12. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -9
  13. package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +3 -9
  14. package/dist-es/commands/DeleteRegistryPolicyCommand.js +3 -9
  15. package/dist-es/commands/DeleteRepositoryCommand.js +3 -9
  16. package/dist-es/commands/DeleteRepositoryCreationTemplateCommand.js +3 -9
  17. package/dist-es/commands/DeleteRepositoryPolicyCommand.js +3 -9
  18. package/dist-es/commands/DescribeImageReplicationStatusCommand.js +3 -9
  19. package/dist-es/commands/DescribeImageScanFindingsCommand.js +3 -9
  20. package/dist-es/commands/DescribeImagesCommand.js +3 -9
  21. package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +3 -9
  22. package/dist-es/commands/DescribeRegistryCommand.js +3 -9
  23. package/dist-es/commands/DescribeRepositoriesCommand.js +3 -9
  24. package/dist-es/commands/DescribeRepositoryCreationTemplatesCommand.js +3 -9
  25. package/dist-es/commands/GetAccountSettingCommand.js +3 -9
  26. package/dist-es/commands/GetAuthorizationTokenCommand.js +3 -9
  27. package/dist-es/commands/GetDownloadUrlForLayerCommand.js +3 -9
  28. package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -9
  29. package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +3 -9
  30. package/dist-es/commands/GetRegistryPolicyCommand.js +3 -9
  31. package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +3 -9
  32. package/dist-es/commands/GetRepositoryPolicyCommand.js +3 -9
  33. package/dist-es/commands/InitiateLayerUploadCommand.js +3 -9
  34. package/dist-es/commands/ListImagesCommand.js +3 -9
  35. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  36. package/dist-es/commands/PutAccountSettingCommand.js +3 -9
  37. package/dist-es/commands/PutImageCommand.js +3 -9
  38. package/dist-es/commands/PutImageScanningConfigurationCommand.js +3 -9
  39. package/dist-es/commands/PutImageTagMutabilityCommand.js +3 -9
  40. package/dist-es/commands/PutLifecyclePolicyCommand.js +3 -9
  41. package/dist-es/commands/PutRegistryPolicyCommand.js +3 -9
  42. package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +3 -9
  43. package/dist-es/commands/PutReplicationConfigurationCommand.js +3 -9
  44. package/dist-es/commands/SetRepositoryPolicyCommand.js +3 -9
  45. package/dist-es/commands/StartImageScanCommand.js +3 -9
  46. package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +3 -9
  47. package/dist-es/commands/TagResourceCommand.js +3 -9
  48. package/dist-es/commands/UntagResourceCommand.js +3 -9
  49. package/dist-es/commands/UpdatePullThroughCacheRuleCommand.js +3 -9
  50. package/dist-es/commands/UpdateRepositoryCreationTemplateCommand.js +3 -9
  51. package/dist-es/commands/UploadLayerPartCommand.js +3 -9
  52. package/dist-es/commands/ValidatePullThroughCacheRuleCommand.js +3 -9
  53. package/dist-es/runtimeConfig.shared.js +7 -0
  54. package/dist-es/schemas/schemas_0.js +2041 -0
  55. package/dist-types/ECRClient.d.ts +10 -1
  56. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  57. package/dist-types/runtimeConfig.d.ts +1 -0
  58. package/dist-types/runtimeConfig.native.d.ts +1 -0
  59. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  60. package/dist-types/schemas/schemas_0.d.ts +282 -0
  61. package/dist-types/ts3.4/ECRClient.d.ts +4 -0
  62. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  63. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  64. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  65. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  66. package/dist-types/ts3.4/schemas/schemas_0.d.ts +287 -0
  67. package/package.json +5 -5
  68. package/dist-es/protocols/Aws_json1_1.js +0 -1847
  69. package/dist-types/protocols/Aws_json1_1.d.ts +0 -443
  70. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -593
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdatePullThroughCacheRuleCommand, se_UpdatePullThroughCacheRuleCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdatePullThroughCacheRule } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdatePullThroughCacheRuleCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonEC2ContainerRegistry_V20150921", "UpdatePullThroughCacheRule", {})
17
13
  .n("ECRClient", "UpdatePullThroughCacheRuleCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdatePullThroughCacheRuleCommand)
20
- .de(de_UpdatePullThroughCacheRuleCommand)
14
+ .sc(UpdatePullThroughCacheRule)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRepositoryCreationTemplateCommand, se_UpdateRepositoryCreationTemplateCommand, } from "../protocols/Aws_json1_1";
4
+ import { UpdateRepositoryCreationTemplate } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRepositoryCreationTemplateCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonEC2ContainerRegistry_V20150921", "UpdateRepositoryCreationTemplate", {})
17
13
  .n("ECRClient", "UpdateRepositoryCreationTemplateCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRepositoryCreationTemplateCommand)
20
- .de(de_UpdateRepositoryCreationTemplateCommand)
14
+ .sc(UpdateRepositoryCreationTemplate)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UploadLayerPartCommand, se_UploadLayerPartCommand } from "../protocols/Aws_json1_1";
4
+ import { UploadLayerPart } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UploadLayerPartCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonEC2ContainerRegistry_V20150921", "UploadLayerPart", {})
17
13
  .n("ECRClient", "UploadLayerPartCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UploadLayerPartCommand)
20
- .de(de_UploadLayerPartCommand)
14
+ .sc(UploadLayerPart)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ValidatePullThroughCacheRuleCommand, se_ValidatePullThroughCacheRuleCommand, } from "../protocols/Aws_json1_1";
4
+ import { ValidatePullThroughCacheRule } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ValidatePullThroughCacheRuleCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonEC2ContainerRegistry_V20150921", "ValidatePullThroughCacheRule", {})
17
13
  .n("ECRClient", "ValidatePullThroughCacheRuleCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ValidatePullThroughCacheRuleCommand)
20
- .de(de_ValidatePullThroughCacheRuleCommand)
14
+ .sc(ValidatePullThroughCacheRule)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.ecr",
29
+ serviceTarget: "AmazonEC2ContainerRegistry_V20150921",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "ECR",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,