@aws-sdk/client-ecr 3.2.0 → 3.5.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 (286) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +205 -1
  3. package/commands/BatchCheckLayerAvailabilityCommand.ts +1 -5
  4. package/commands/BatchDeleteImageCommand.ts +1 -5
  5. package/commands/BatchGetImageCommand.ts +1 -5
  6. package/commands/CompleteLayerUploadCommand.ts +1 -5
  7. package/commands/CreateRepositoryCommand.ts +1 -5
  8. package/commands/DeleteLifecyclePolicyCommand.ts +1 -5
  9. package/commands/DeleteRegistryPolicyCommand.ts +1 -5
  10. package/commands/DeleteRepositoryCommand.ts +1 -5
  11. package/commands/DeleteRepositoryPolicyCommand.ts +1 -5
  12. package/commands/DescribeImageScanFindingsCommand.ts +1 -5
  13. package/commands/DescribeImagesCommand.ts +1 -5
  14. package/commands/DescribeRegistryCommand.ts +1 -5
  15. package/commands/DescribeRepositoriesCommand.ts +1 -5
  16. package/commands/GetAuthorizationTokenCommand.ts +1 -5
  17. package/commands/GetDownloadUrlForLayerCommand.ts +1 -5
  18. package/commands/GetLifecyclePolicyCommand.ts +1 -5
  19. package/commands/GetLifecyclePolicyPreviewCommand.ts +1 -5
  20. package/commands/GetRegistryPolicyCommand.ts +1 -5
  21. package/commands/GetRepositoryPolicyCommand.ts +1 -5
  22. package/commands/InitiateLayerUploadCommand.ts +1 -5
  23. package/commands/ListImagesCommand.ts +1 -5
  24. package/commands/ListTagsForResourceCommand.ts +1 -5
  25. package/commands/PutImageCommand.ts +1 -5
  26. package/commands/PutImageScanningConfigurationCommand.ts +1 -5
  27. package/commands/PutImageTagMutabilityCommand.ts +1 -5
  28. package/commands/PutLifecyclePolicyCommand.ts +1 -5
  29. package/commands/PutRegistryPolicyCommand.ts +1 -5
  30. package/commands/PutReplicationConfigurationCommand.ts +1 -5
  31. package/commands/SetRepositoryPolicyCommand.ts +1 -5
  32. package/commands/StartImageScanCommand.ts +1 -5
  33. package/commands/StartLifecyclePolicyPreviewCommand.ts +1 -5
  34. package/commands/TagResourceCommand.ts +1 -5
  35. package/commands/UntagResourceCommand.ts +1 -5
  36. package/commands/UploadLayerPartCommand.ts +1 -5
  37. package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js +1 -5
  38. package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
  39. package/dist/cjs/commands/BatchDeleteImageCommand.js +1 -5
  40. package/dist/cjs/commands/BatchDeleteImageCommand.js.map +1 -1
  41. package/dist/cjs/commands/BatchGetImageCommand.js +1 -5
  42. package/dist/cjs/commands/BatchGetImageCommand.js.map +1 -1
  43. package/dist/cjs/commands/CompleteLayerUploadCommand.js +1 -5
  44. package/dist/cjs/commands/CompleteLayerUploadCommand.js.map +1 -1
  45. package/dist/cjs/commands/CreateRepositoryCommand.js +1 -5
  46. package/dist/cjs/commands/CreateRepositoryCommand.js.map +1 -1
  47. package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js +1 -5
  48. package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
  49. package/dist/cjs/commands/DeleteRegistryPolicyCommand.js +1 -5
  50. package/dist/cjs/commands/DeleteRegistryPolicyCommand.js.map +1 -1
  51. package/dist/cjs/commands/DeleteRepositoryCommand.js +1 -5
  52. package/dist/cjs/commands/DeleteRepositoryCommand.js.map +1 -1
  53. package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js +1 -5
  54. package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
  55. package/dist/cjs/commands/DescribeImageScanFindingsCommand.js +1 -5
  56. package/dist/cjs/commands/DescribeImageScanFindingsCommand.js.map +1 -1
  57. package/dist/cjs/commands/DescribeImagesCommand.js +1 -5
  58. package/dist/cjs/commands/DescribeImagesCommand.js.map +1 -1
  59. package/dist/cjs/commands/DescribeRegistryCommand.js +1 -5
  60. package/dist/cjs/commands/DescribeRegistryCommand.js.map +1 -1
  61. package/dist/cjs/commands/DescribeRepositoriesCommand.js +1 -5
  62. package/dist/cjs/commands/DescribeRepositoriesCommand.js.map +1 -1
  63. package/dist/cjs/commands/GetAuthorizationTokenCommand.js +1 -5
  64. package/dist/cjs/commands/GetAuthorizationTokenCommand.js.map +1 -1
  65. package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js +1 -5
  66. package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
  67. package/dist/cjs/commands/GetLifecyclePolicyCommand.js +1 -5
  68. package/dist/cjs/commands/GetLifecyclePolicyCommand.js.map +1 -1
  69. package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js +1 -5
  70. package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
  71. package/dist/cjs/commands/GetRegistryPolicyCommand.js +1 -5
  72. package/dist/cjs/commands/GetRegistryPolicyCommand.js.map +1 -1
  73. package/dist/cjs/commands/GetRepositoryPolicyCommand.js +1 -5
  74. package/dist/cjs/commands/GetRepositoryPolicyCommand.js.map +1 -1
  75. package/dist/cjs/commands/InitiateLayerUploadCommand.js +1 -5
  76. package/dist/cjs/commands/InitiateLayerUploadCommand.js.map +1 -1
  77. package/dist/cjs/commands/ListImagesCommand.js +1 -5
  78. package/dist/cjs/commands/ListImagesCommand.js.map +1 -1
  79. package/dist/cjs/commands/ListTagsForResourceCommand.js +1 -5
  80. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  81. package/dist/cjs/commands/PutImageCommand.js +1 -5
  82. package/dist/cjs/commands/PutImageCommand.js.map +1 -1
  83. package/dist/cjs/commands/PutImageScanningConfigurationCommand.js +1 -5
  84. package/dist/cjs/commands/PutImageScanningConfigurationCommand.js.map +1 -1
  85. package/dist/cjs/commands/PutImageTagMutabilityCommand.js +1 -5
  86. package/dist/cjs/commands/PutImageTagMutabilityCommand.js.map +1 -1
  87. package/dist/cjs/commands/PutLifecyclePolicyCommand.js +1 -5
  88. package/dist/cjs/commands/PutLifecyclePolicyCommand.js.map +1 -1
  89. package/dist/cjs/commands/PutRegistryPolicyCommand.js +1 -5
  90. package/dist/cjs/commands/PutRegistryPolicyCommand.js.map +1 -1
  91. package/dist/cjs/commands/PutReplicationConfigurationCommand.js +1 -5
  92. package/dist/cjs/commands/PutReplicationConfigurationCommand.js.map +1 -1
  93. package/dist/cjs/commands/SetRepositoryPolicyCommand.js +1 -5
  94. package/dist/cjs/commands/SetRepositoryPolicyCommand.js.map +1 -1
  95. package/dist/cjs/commands/StartImageScanCommand.js +1 -5
  96. package/dist/cjs/commands/StartImageScanCommand.js.map +1 -1
  97. package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.js +1 -5
  98. package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
  99. package/dist/cjs/commands/TagResourceCommand.js +1 -5
  100. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  101. package/dist/cjs/commands/UntagResourceCommand.js +1 -5
  102. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  103. package/dist/cjs/commands/UploadLayerPartCommand.js +1 -5
  104. package/dist/cjs/commands/UploadLayerPartCommand.js.map +1 -1
  105. package/dist/cjs/package.json +41 -32
  106. package/dist/cjs/protocols/Aws_json1_1.js +34 -34
  107. package/dist/cjs/runtimeConfig.browser.js +0 -2
  108. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  109. package/dist/cjs/runtimeConfig.js +0 -2
  110. package/dist/cjs/runtimeConfig.js.map +1 -1
  111. package/dist/cjs/runtimeConfig.native.js +2 -2
  112. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  113. package/dist/cjs/runtimeConfig.shared.js +2 -0
  114. package/dist/cjs/runtimeConfig.shared.js.map +1 -1
  115. package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js +1 -5
  116. package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
  117. package/dist/es/commands/BatchDeleteImageCommand.js +1 -5
  118. package/dist/es/commands/BatchDeleteImageCommand.js.map +1 -1
  119. package/dist/es/commands/BatchGetImageCommand.js +1 -5
  120. package/dist/es/commands/BatchGetImageCommand.js.map +1 -1
  121. package/dist/es/commands/CompleteLayerUploadCommand.js +1 -5
  122. package/dist/es/commands/CompleteLayerUploadCommand.js.map +1 -1
  123. package/dist/es/commands/CreateRepositoryCommand.js +1 -5
  124. package/dist/es/commands/CreateRepositoryCommand.js.map +1 -1
  125. package/dist/es/commands/DeleteLifecyclePolicyCommand.js +1 -5
  126. package/dist/es/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
  127. package/dist/es/commands/DeleteRegistryPolicyCommand.js +1 -5
  128. package/dist/es/commands/DeleteRegistryPolicyCommand.js.map +1 -1
  129. package/dist/es/commands/DeleteRepositoryCommand.js +1 -5
  130. package/dist/es/commands/DeleteRepositoryCommand.js.map +1 -1
  131. package/dist/es/commands/DeleteRepositoryPolicyCommand.js +1 -5
  132. package/dist/es/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
  133. package/dist/es/commands/DescribeImageScanFindingsCommand.js +1 -5
  134. package/dist/es/commands/DescribeImageScanFindingsCommand.js.map +1 -1
  135. package/dist/es/commands/DescribeImagesCommand.js +1 -5
  136. package/dist/es/commands/DescribeImagesCommand.js.map +1 -1
  137. package/dist/es/commands/DescribeRegistryCommand.js +1 -5
  138. package/dist/es/commands/DescribeRegistryCommand.js.map +1 -1
  139. package/dist/es/commands/DescribeRepositoriesCommand.js +1 -5
  140. package/dist/es/commands/DescribeRepositoriesCommand.js.map +1 -1
  141. package/dist/es/commands/GetAuthorizationTokenCommand.js +1 -5
  142. package/dist/es/commands/GetAuthorizationTokenCommand.js.map +1 -1
  143. package/dist/es/commands/GetDownloadUrlForLayerCommand.js +1 -5
  144. package/dist/es/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
  145. package/dist/es/commands/GetLifecyclePolicyCommand.js +1 -5
  146. package/dist/es/commands/GetLifecyclePolicyCommand.js.map +1 -1
  147. package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js +1 -5
  148. package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
  149. package/dist/es/commands/GetRegistryPolicyCommand.js +1 -5
  150. package/dist/es/commands/GetRegistryPolicyCommand.js.map +1 -1
  151. package/dist/es/commands/GetRepositoryPolicyCommand.js +1 -5
  152. package/dist/es/commands/GetRepositoryPolicyCommand.js.map +1 -1
  153. package/dist/es/commands/InitiateLayerUploadCommand.js +1 -5
  154. package/dist/es/commands/InitiateLayerUploadCommand.js.map +1 -1
  155. package/dist/es/commands/ListImagesCommand.js +1 -5
  156. package/dist/es/commands/ListImagesCommand.js.map +1 -1
  157. package/dist/es/commands/ListTagsForResourceCommand.js +1 -5
  158. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  159. package/dist/es/commands/PutImageCommand.js +1 -5
  160. package/dist/es/commands/PutImageCommand.js.map +1 -1
  161. package/dist/es/commands/PutImageScanningConfigurationCommand.js +1 -5
  162. package/dist/es/commands/PutImageScanningConfigurationCommand.js.map +1 -1
  163. package/dist/es/commands/PutImageTagMutabilityCommand.js +1 -5
  164. package/dist/es/commands/PutImageTagMutabilityCommand.js.map +1 -1
  165. package/dist/es/commands/PutLifecyclePolicyCommand.js +1 -5
  166. package/dist/es/commands/PutLifecyclePolicyCommand.js.map +1 -1
  167. package/dist/es/commands/PutRegistryPolicyCommand.js +1 -5
  168. package/dist/es/commands/PutRegistryPolicyCommand.js.map +1 -1
  169. package/dist/es/commands/PutReplicationConfigurationCommand.js +1 -5
  170. package/dist/es/commands/PutReplicationConfigurationCommand.js.map +1 -1
  171. package/dist/es/commands/SetRepositoryPolicyCommand.js +1 -5
  172. package/dist/es/commands/SetRepositoryPolicyCommand.js.map +1 -1
  173. package/dist/es/commands/StartImageScanCommand.js +1 -5
  174. package/dist/es/commands/StartImageScanCommand.js.map +1 -1
  175. package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js +1 -5
  176. package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
  177. package/dist/es/commands/TagResourceCommand.js +1 -5
  178. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  179. package/dist/es/commands/UntagResourceCommand.js +1 -5
  180. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  181. package/dist/es/commands/UploadLayerPartCommand.js +1 -5
  182. package/dist/es/commands/UploadLayerPartCommand.js.map +1 -1
  183. package/dist/es/package.json +41 -32
  184. package/dist/es/protocols/Aws_json1_1.js +34 -34
  185. package/dist/es/runtimeConfig.browser.js +1 -2
  186. package/dist/es/runtimeConfig.browser.js.map +1 -1
  187. package/dist/es/runtimeConfig.js +1 -2
  188. package/dist/es/runtimeConfig.js.map +1 -1
  189. package/dist/es/runtimeConfig.native.js +1 -1
  190. package/dist/es/runtimeConfig.native.js.map +1 -1
  191. package/dist/es/runtimeConfig.shared.js +2 -0
  192. package/dist/es/runtimeConfig.shared.js.map +1 -1
  193. package/package.json +41 -32
  194. package/protocols/Aws_json1_1.ts +34 -34
  195. package/runtimeConfig.browser.ts +0 -2
  196. package/runtimeConfig.native.ts +1 -1
  197. package/runtimeConfig.shared.ts +2 -0
  198. package/runtimeConfig.ts +0 -2
  199. package/types/commands/BatchCheckLayerAvailabilityCommand.d.ts +0 -1
  200. package/types/commands/BatchDeleteImageCommand.d.ts +0 -1
  201. package/types/commands/BatchGetImageCommand.d.ts +0 -1
  202. package/types/commands/CompleteLayerUploadCommand.d.ts +0 -1
  203. package/types/commands/CreateRepositoryCommand.d.ts +0 -1
  204. package/types/commands/DeleteLifecyclePolicyCommand.d.ts +0 -1
  205. package/types/commands/DeleteRegistryPolicyCommand.d.ts +0 -1
  206. package/types/commands/DeleteRepositoryCommand.d.ts +0 -1
  207. package/types/commands/DeleteRepositoryPolicyCommand.d.ts +0 -1
  208. package/types/commands/DescribeImageScanFindingsCommand.d.ts +0 -1
  209. package/types/commands/DescribeImagesCommand.d.ts +0 -1
  210. package/types/commands/DescribeRegistryCommand.d.ts +0 -1
  211. package/types/commands/DescribeRepositoriesCommand.d.ts +0 -1
  212. package/types/commands/GetAuthorizationTokenCommand.d.ts +0 -1
  213. package/types/commands/GetDownloadUrlForLayerCommand.d.ts +0 -1
  214. package/types/commands/GetLifecyclePolicyCommand.d.ts +0 -1
  215. package/types/commands/GetLifecyclePolicyPreviewCommand.d.ts +0 -1
  216. package/types/commands/GetRegistryPolicyCommand.d.ts +0 -1
  217. package/types/commands/GetRepositoryPolicyCommand.d.ts +0 -1
  218. package/types/commands/InitiateLayerUploadCommand.d.ts +0 -1
  219. package/types/commands/ListImagesCommand.d.ts +0 -1
  220. package/types/commands/ListTagsForResourceCommand.d.ts +0 -1
  221. package/types/commands/PutImageCommand.d.ts +0 -1
  222. package/types/commands/PutImageScanningConfigurationCommand.d.ts +0 -1
  223. package/types/commands/PutImageTagMutabilityCommand.d.ts +0 -1
  224. package/types/commands/PutLifecyclePolicyCommand.d.ts +0 -1
  225. package/types/commands/PutRegistryPolicyCommand.d.ts +0 -1
  226. package/types/commands/PutReplicationConfigurationCommand.d.ts +0 -1
  227. package/types/commands/SetRepositoryPolicyCommand.d.ts +0 -1
  228. package/types/commands/StartImageScanCommand.d.ts +0 -1
  229. package/types/commands/StartLifecyclePolicyPreviewCommand.d.ts +0 -1
  230. package/types/commands/TagResourceCommand.d.ts +0 -1
  231. package/types/commands/UntagResourceCommand.d.ts +0 -1
  232. package/types/commands/UploadLayerPartCommand.d.ts +0 -1
  233. package/types/runtimeConfig.shared.d.ts +1 -0
  234. package/types/ts3.4/ECR.d.ts +351 -0
  235. package/types/ts3.4/ECRClient.d.ts +138 -0
  236. package/types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +26 -0
  237. package/types/ts3.4/commands/BatchDeleteImageCommand.d.ts +24 -0
  238. package/types/ts3.4/commands/BatchGetImageCommand.d.ts +22 -0
  239. package/types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +27 -0
  240. package/types/ts3.4/commands/CreateRepositoryCommand.d.ts +20 -0
  241. package/types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +19 -0
  242. package/types/ts3.4/commands/DeleteRegistryPolicyCommand.d.ts +19 -0
  243. package/types/ts3.4/commands/DeleteRepositoryCommand.d.ts +21 -0
  244. package/types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +19 -0
  245. package/types/ts3.4/commands/DescribeImageScanFindingsCommand.d.ts +19 -0
  246. package/types/ts3.4/commands/DescribeImagesCommand.d.ts +25 -0
  247. package/types/ts3.4/commands/DescribeRegistryCommand.d.ts +21 -0
  248. package/types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +19 -0
  249. package/types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +26 -0
  250. package/types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +26 -0
  251. package/types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +19 -0
  252. package/types/ts3.4/commands/GetLifecyclePolicyPreviewCommand.d.ts +20 -0
  253. package/types/ts3.4/commands/GetRegistryPolicyCommand.d.ts +19 -0
  254. package/types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +19 -0
  255. package/types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +26 -0
  256. package/types/ts3.4/commands/ListImagesCommand.d.ts +25 -0
  257. package/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +19 -0
  258. package/types/ts3.4/commands/PutImageCommand.d.ts +27 -0
  259. package/types/ts3.4/commands/PutImageScanningConfigurationCommand.d.ts +19 -0
  260. package/types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +21 -0
  261. package/types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +21 -0
  262. package/types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +21 -0
  263. package/types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +29 -0
  264. package/types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +21 -0
  265. package/types/ts3.4/commands/StartImageScanCommand.d.ts +22 -0
  266. package/types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +20 -0
  267. package/types/ts3.4/commands/TagResourceCommand.d.ts +20 -0
  268. package/types/ts3.4/commands/UntagResourceCommand.d.ts +19 -0
  269. package/types/ts3.4/commands/UploadLayerPartCommand.d.ts +26 -0
  270. package/types/ts3.4/endpoints.d.ts +2 -0
  271. package/types/ts3.4/index.d.ts +45 -0
  272. package/types/ts3.4/models/index.d.ts +1 -0
  273. package/types/ts3.4/models/models_0.d.ts +2301 -0
  274. package/types/ts3.4/pagination/DescribeImageScanFindingsPaginator.d.ts +4 -0
  275. package/types/ts3.4/pagination/DescribeImagesPaginator.d.ts +4 -0
  276. package/types/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +4 -0
  277. package/types/ts3.4/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +4 -0
  278. package/types/ts3.4/pagination/Interfaces.d.ts +6 -0
  279. package/types/ts3.4/pagination/ListImagesPaginator.d.ts +4 -0
  280. package/types/ts3.4/protocols/Aws_json1_1.d.ts +104 -0
  281. package/types/ts3.4/runtimeConfig.browser.d.ts +5 -0
  282. package/types/ts3.4/runtimeConfig.d.ts +5 -0
  283. package/types/ts3.4/runtimeConfig.native.d.ts +5 -0
  284. package/types/ts3.4/runtimeConfig.shared.d.ts +12 -0
  285. package/types/ts3.4/waiters/waitForImageScanComplete.d.ts +9 -0
  286. package/types/ts3.4/waiters/waitForLifecyclePolicyPreviewComplete.d.ts +9 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,55 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.5.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.4.1...v3.5.0) (2021-02-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ecr
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.4.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.4.0...v3.4.1) (2021-01-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** use TS 3.4 compatible types for TS 3.9 ([#1978](https://github.com/aws/aws-sdk-js-v3/issues/1978)) ([8bced5c](https://github.com/aws/aws-sdk-js-v3/commit/8bced5c32b9dbc68f1065054d796cb0b8b87bcc4))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.4.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.3.0...v3.4.0) (2021-01-28)
26
+
27
+
28
+ ### Features
29
+
30
+ * **middleware-stack:** allow adding middleware to override an existing one ([#1964](https://github.com/aws/aws-sdk-js-v3/issues/1964)) ([9c21f14](https://github.com/aws/aws-sdk-js-v3/commit/9c21f14412f2b1f591422f3c67dedbe886db723b)), closes [#1883](https://github.com/aws/aws-sdk-js-v3/issues/1883)
31
+ * use downlevel-dts to generate TS 3.4 compatible types ([#1943](https://github.com/aws/aws-sdk-js-v3/issues/1943)) ([63ad215](https://github.com/aws/aws-sdk-js-v3/commit/63ad2151c8bb7be32ea8838a9b0974806ed3906b))
32
+
33
+
34
+
35
+
36
+
37
+ # [3.3.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.2.0...v3.3.0) (2021-01-14)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **clients:** export explicit dependencies on @aws-sdk/types ([#1902](https://github.com/aws/aws-sdk-js-v3/issues/1902)) ([96f1087](https://github.com/aws/aws-sdk-js-v3/commit/96f1087333ba916593d557051297983912b27caa))
43
+ * **clients:** lowercase all header names in serializer ([#1892](https://github.com/aws/aws-sdk-js-v3/issues/1892)) ([1308721](https://github.com/aws/aws-sdk-js-v3/commit/130872194bc94590f599051ee067d862210252f8))
44
+ * **url-parser:** merge browser and node url parser, add rn url parser ([#1903](https://github.com/aws/aws-sdk-js-v3/issues/1903)) ([99be092](https://github.com/aws/aws-sdk-js-v3/commit/99be092fded13bb00802549e17dbdb6d760a8679))
45
+
46
+
47
+ ### Features
48
+
49
+ * **clients:** update README with documentation, usage and more ([#1907](https://github.com/aws/aws-sdk-js-v3/issues/1907)) ([03be111](https://github.com/aws/aws-sdk-js-v3/commit/03be111a086360687f20b2ac1d490584fb4fbefe))
50
+
51
+
52
+
53
+
54
+
6
55
  # [3.2.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.1.0...v3.2.0) (2021-01-09)
7
56
 
8
57
 
package/README.md CHANGED
@@ -3,4 +3,208 @@
3
3
  [![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-ecr/latest.svg)](https://www.npmjs.com/package/@aws-sdk/client-ecr)
4
4
  [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-ecr.svg)](https://www.npmjs.com/package/@aws-sdk/client-ecr)
5
5
 
6
- For SDK usage, please step to [SDK readme](https://github.com/aws/aws-sdk-js-v3).
6
+ ## Description
7
+
8
+ AWS SDK for JavaScript ECR Client for Node.js, Browser and React Native.
9
+
10
+ <fullname>Amazon Elastic Container Registry</fullname>
11
+
12
+ <p>Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Customers can use the
13
+ familiar Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR
14
+ provides a secure, scalable, and reliable registry for your Docker or Open Container
15
+ Initiative (OCI) images. Amazon ECR supports private repositories with resource-based
16
+ permissions using IAM so that specific users or Amazon EC2 instances can access
17
+ repositories and images.</p>
18
+
19
+ ## Installing
20
+
21
+ To install the this package, simply type add or install @aws-sdk/client-ecr
22
+ using your favorite package manager:
23
+
24
+ - `npm install @aws-sdk/client-ecr`
25
+ - `yarn add @aws-sdk/client-ecr`
26
+ - `pnpm add @aws-sdk/client-ecr`
27
+
28
+ ## Getting Started
29
+
30
+ ### Import
31
+
32
+ The AWS SDK is modulized by clients and commands.
33
+ To send a request, you only need to import the `ECRClient` and
34
+ the commands you need, for example `BatchCheckLayerAvailabilityCommand`:
35
+
36
+ ```js
37
+ // ES5 example
38
+ const { ECRClient, BatchCheckLayerAvailabilityCommand } = require("@aws-sdk/client-ecr");
39
+ ```
40
+
41
+ ```ts
42
+ // ES6+ example
43
+ import { ECRClient, BatchCheckLayerAvailabilityCommand } from "@aws-sdk/client-ecr";
44
+ ```
45
+
46
+ ### Usage
47
+
48
+ To send a request, you:
49
+
50
+ - Initiate client with configuration (e.g. credentials, region).
51
+ - Initiate command with input parameters.
52
+ - Call `send` operation on client with command object as input.
53
+ - If you are using a custom http handler, you may call `destroy()` to close open connections.
54
+
55
+ ```js
56
+ // a client can be shared by difference commands.
57
+ const client = new ECRClient({ region: "REGION" });
58
+
59
+ const params = {
60
+ /** input parameters */
61
+ };
62
+ const command = new BatchCheckLayerAvailabilityCommand(params);
63
+ ```
64
+
65
+ #### Async/await
66
+
67
+ We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
68
+ operator to wait for the promise returned by send operation as follows:
69
+
70
+ ```js
71
+ // async/await.
72
+ try {
73
+ const data = await client.send(command);
74
+ // process data.
75
+ } catch (error) {
76
+ // error handling.
77
+ } finally {
78
+ // finally.
79
+ }
80
+ ```
81
+
82
+ Async-await is clean, concise, intuitive, easy to debug and has better error handling
83
+ as compared to using Promise chains or callbacks.
84
+
85
+ #### Promises
86
+
87
+ You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
88
+ to execute send operation.
89
+
90
+ ```js
91
+ client.send(command).then(
92
+ (data) => {
93
+ // process data.
94
+ },
95
+ (error) => {
96
+ // error handling.
97
+ }
98
+ );
99
+ ```
100
+
101
+ Promises can also be called using `.catch()` and `.finally()` as follows:
102
+
103
+ ```js
104
+ client
105
+ .send(command)
106
+ .then((data) => {
107
+ // process data.
108
+ })
109
+ .catch((error) => {
110
+ // error handling.
111
+ })
112
+ .finally(() => {
113
+ // finally.
114
+ });
115
+ ```
116
+
117
+ #### Callbacks
118
+
119
+ We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
120
+ but they are supported by the send operation.
121
+
122
+ ```js
123
+ // callbacks.
124
+ client.send(command, (err, data) => {
125
+ // proccess err and data.
126
+ });
127
+ ```
128
+
129
+ #### v2 compatible style
130
+
131
+ The client can also send requests using v2 compatible style.
132
+ However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
133
+ on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
134
+
135
+ ```ts
136
+ import * as AWS from "@aws-sdk/client-ecr";
137
+ const client = new AWS.ECR({ region: "REGION" });
138
+
139
+ // async/await.
140
+ try {
141
+ const data = client.batchCheckLayerAvailability(params);
142
+ // process data.
143
+ } catch (error) {
144
+ // error handling.
145
+ }
146
+
147
+ // Promises.
148
+ client
149
+ .batchCheckLayerAvailability(params)
150
+ .then((data) => {
151
+ // process data.
152
+ })
153
+ .catch((error) => {
154
+ // error handling.
155
+ });
156
+
157
+ // callbacks.
158
+ client.batchCheckLayerAvailability(params, (err, data) => {
159
+ // proccess err and data.
160
+ });
161
+ ```
162
+
163
+ ### Troubleshooting
164
+
165
+ When the service returns an exception, the error will include the exception information,
166
+ as well as response metadata (e.g. request id).
167
+
168
+ ```js
169
+ try {
170
+ const data = await client.send(command);
171
+ // process data.
172
+ } catch (error) {
173
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
174
+ console.log({ requestId, cfId, extendedRequestId });
175
+ /**
176
+ * The keys within exceptions are also parsed.
177
+ * You can access them by specifying exception names:
178
+ * if (error.name === 'SomeServiceException') {
179
+ * const value = error.specialKeyInException;
180
+ * }
181
+ */
182
+ }
183
+ ```
184
+
185
+ ## Getting Help
186
+
187
+ Please use these community resources for getting help.
188
+ We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
189
+
190
+ - Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
191
+ or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
192
+ - Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
193
+ on AWS Developer Blog.
194
+ - Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
195
+ - Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
196
+ - If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
197
+
198
+ To test your universal JavaScript code in Node.js, browser and react-native environments,
199
+ visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
200
+
201
+ ## Contributing
202
+
203
+ This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-ecr` package is updated.
204
+ To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/master/scripts/generate-clients).
205
+
206
+ ## License
207
+
208
+ This SDK is distributed under the
209
+ [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
210
+ see LICENSE for more information.
@@ -35,7 +35,6 @@ export class BatchCheckLayerAvailabilityCommand extends $Command<
35
35
  BatchCheckLayerAvailabilityCommandOutput,
36
36
  ECRClientResolvedConfig
37
37
  > {
38
- private resolved = false;
39
38
  // Start section: command_properties
40
39
  // End section: command_properties
41
40
 
@@ -53,10 +52,7 @@ export class BatchCheckLayerAvailabilityCommand extends $Command<
53
52
  configuration: ECRClientResolvedConfig,
54
53
  options?: __HttpHandlerOptions
55
54
  ): Handler<BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput> {
56
- if (!this.resolved) {
57
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
58
- this.resolved = true;
59
- }
55
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
60
56
 
61
57
  const stack = clientStack.concat(this.middlewareStack);
62
58
 
@@ -33,7 +33,6 @@ export class BatchDeleteImageCommand extends $Command<
33
33
  BatchDeleteImageCommandOutput,
34
34
  ECRClientResolvedConfig
35
35
  > {
36
- private resolved = false;
37
36
  // Start section: command_properties
38
37
  // End section: command_properties
39
38
 
@@ -51,10 +50,7 @@ export class BatchDeleteImageCommand extends $Command<
51
50
  configuration: ECRClientResolvedConfig,
52
51
  options?: __HttpHandlerOptions
53
52
  ): Handler<BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput> {
54
- if (!this.resolved) {
55
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
56
- this.resolved = true;
57
- }
53
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
58
54
 
59
55
  const stack = clientStack.concat(this.middlewareStack);
60
56
 
@@ -31,7 +31,6 @@ export class BatchGetImageCommand extends $Command<
31
31
  BatchGetImageCommandOutput,
32
32
  ECRClientResolvedConfig
33
33
  > {
34
- private resolved = false;
35
34
  // Start section: command_properties
36
35
  // End section: command_properties
37
36
 
@@ -49,10 +48,7 @@ export class BatchGetImageCommand extends $Command<
49
48
  configuration: ECRClientResolvedConfig,
50
49
  options?: __HttpHandlerOptions
51
50
  ): Handler<BatchGetImageCommandInput, BatchGetImageCommandOutput> {
52
- if (!this.resolved) {
53
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
54
- this.resolved = true;
55
- }
51
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
56
52
 
57
53
  const stack = clientStack.concat(this.middlewareStack);
58
54
 
@@ -36,7 +36,6 @@ export class CompleteLayerUploadCommand extends $Command<
36
36
  CompleteLayerUploadCommandOutput,
37
37
  ECRClientResolvedConfig
38
38
  > {
39
- private resolved = false;
40
39
  // Start section: command_properties
41
40
  // End section: command_properties
42
41
 
@@ -54,10 +53,7 @@ export class CompleteLayerUploadCommand extends $Command<
54
53
  configuration: ECRClientResolvedConfig,
55
54
  options?: __HttpHandlerOptions
56
55
  ): Handler<CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput> {
57
- if (!this.resolved) {
58
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
59
- this.resolved = true;
60
- }
56
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
61
57
 
62
58
  const stack = clientStack.concat(this.middlewareStack);
63
59
 
@@ -29,7 +29,6 @@ export class CreateRepositoryCommand extends $Command<
29
29
  CreateRepositoryCommandOutput,
30
30
  ECRClientResolvedConfig
31
31
  > {
32
- private resolved = false;
33
32
  // Start section: command_properties
34
33
  // End section: command_properties
35
34
 
@@ -47,10 +46,7 @@ export class CreateRepositoryCommand extends $Command<
47
46
  configuration: ECRClientResolvedConfig,
48
47
  options?: __HttpHandlerOptions
49
48
  ): Handler<CreateRepositoryCommandInput, CreateRepositoryCommandOutput> {
50
- if (!this.resolved) {
51
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
52
- this.resolved = true;
53
- }
49
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
54
50
 
55
51
  const stack = clientStack.concat(this.middlewareStack);
56
52
 
@@ -28,7 +28,6 @@ export class DeleteLifecyclePolicyCommand extends $Command<
28
28
  DeleteLifecyclePolicyCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class DeleteLifecyclePolicyCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51
 
@@ -28,7 +28,6 @@ export class DeleteRegistryPolicyCommand extends $Command<
28
28
  DeleteRegistryPolicyCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class DeleteRegistryPolicyCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<DeleteRegistryPolicyCommandInput, DeleteRegistryPolicyCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51
 
@@ -30,7 +30,6 @@ export class DeleteRepositoryCommand extends $Command<
30
30
  DeleteRepositoryCommandOutput,
31
31
  ECRClientResolvedConfig
32
32
  > {
33
- private resolved = false;
34
33
  // Start section: command_properties
35
34
  // End section: command_properties
36
35
 
@@ -48,10 +47,7 @@ export class DeleteRepositoryCommand extends $Command<
48
47
  configuration: ECRClientResolvedConfig,
49
48
  options?: __HttpHandlerOptions
50
49
  ): Handler<DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput> {
51
- if (!this.resolved) {
52
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
- this.resolved = true;
54
- }
50
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
55
51
 
56
52
  const stack = clientStack.concat(this.middlewareStack);
57
53
 
@@ -28,7 +28,6 @@ export class DeleteRepositoryPolicyCommand extends $Command<
28
28
  DeleteRepositoryPolicyCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class DeleteRepositoryPolicyCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51
 
@@ -28,7 +28,6 @@ export class DescribeImageScanFindingsCommand extends $Command<
28
28
  DescribeImageScanFindingsCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class DescribeImageScanFindingsCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<DescribeImageScanFindingsCommandInput, DescribeImageScanFindingsCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51
 
@@ -34,7 +34,6 @@ export class DescribeImagesCommand extends $Command<
34
34
  DescribeImagesCommandOutput,
35
35
  ECRClientResolvedConfig
36
36
  > {
37
- private resolved = false;
38
37
  // Start section: command_properties
39
38
  // End section: command_properties
40
39
 
@@ -52,10 +51,7 @@ export class DescribeImagesCommand extends $Command<
52
51
  configuration: ECRClientResolvedConfig,
53
52
  options?: __HttpHandlerOptions
54
53
  ): Handler<DescribeImagesCommandInput, DescribeImagesCommandOutput> {
55
- if (!this.resolved) {
56
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
57
- this.resolved = true;
58
- }
54
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
59
55
 
60
56
  const stack = clientStack.concat(this.middlewareStack);
61
57
 
@@ -30,7 +30,6 @@ export class DescribeRegistryCommand extends $Command<
30
30
  DescribeRegistryCommandOutput,
31
31
  ECRClientResolvedConfig
32
32
  > {
33
- private resolved = false;
34
33
  // Start section: command_properties
35
34
  // End section: command_properties
36
35
 
@@ -48,10 +47,7 @@ export class DescribeRegistryCommand extends $Command<
48
47
  configuration: ECRClientResolvedConfig,
49
48
  options?: __HttpHandlerOptions
50
49
  ): Handler<DescribeRegistryCommandInput, DescribeRegistryCommandOutput> {
51
- if (!this.resolved) {
52
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
- this.resolved = true;
54
- }
50
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
55
51
 
56
52
  const stack = clientStack.concat(this.middlewareStack);
57
53
 
@@ -28,7 +28,6 @@ export class DescribeRepositoriesCommand extends $Command<
28
28
  DescribeRepositoriesCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class DescribeRepositoriesCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<DescribeRepositoriesCommandInput, DescribeRepositoriesCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51
 
@@ -35,7 +35,6 @@ export class GetAuthorizationTokenCommand extends $Command<
35
35
  GetAuthorizationTokenCommandOutput,
36
36
  ECRClientResolvedConfig
37
37
  > {
38
- private resolved = false;
39
38
  // Start section: command_properties
40
39
  // End section: command_properties
41
40
 
@@ -53,10 +52,7 @@ export class GetAuthorizationTokenCommand extends $Command<
53
52
  configuration: ECRClientResolvedConfig,
54
53
  options?: __HttpHandlerOptions
55
54
  ): Handler<GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput> {
56
- if (!this.resolved) {
57
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
58
- this.resolved = true;
59
- }
55
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
60
56
 
61
57
  const stack = clientStack.concat(this.middlewareStack);
62
58
 
@@ -35,7 +35,6 @@ export class GetDownloadUrlForLayerCommand extends $Command<
35
35
  GetDownloadUrlForLayerCommandOutput,
36
36
  ECRClientResolvedConfig
37
37
  > {
38
- private resolved = false;
39
38
  // Start section: command_properties
40
39
  // End section: command_properties
41
40
 
@@ -53,10 +52,7 @@ export class GetDownloadUrlForLayerCommand extends $Command<
53
52
  configuration: ECRClientResolvedConfig,
54
53
  options?: __HttpHandlerOptions
55
54
  ): Handler<GetDownloadUrlForLayerCommandInput, GetDownloadUrlForLayerCommandOutput> {
56
- if (!this.resolved) {
57
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
58
- this.resolved = true;
59
- }
55
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
60
56
 
61
57
  const stack = clientStack.concat(this.middlewareStack);
62
58
 
@@ -28,7 +28,6 @@ export class GetLifecyclePolicyCommand extends $Command<
28
28
  GetLifecyclePolicyCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class GetLifecyclePolicyCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51
 
@@ -29,7 +29,6 @@ export class GetLifecyclePolicyPreviewCommand extends $Command<
29
29
  GetLifecyclePolicyPreviewCommandOutput,
30
30
  ECRClientResolvedConfig
31
31
  > {
32
- private resolved = false;
33
32
  // Start section: command_properties
34
33
  // End section: command_properties
35
34
 
@@ -47,10 +46,7 @@ export class GetLifecyclePolicyPreviewCommand extends $Command<
47
46
  configuration: ECRClientResolvedConfig,
48
47
  options?: __HttpHandlerOptions
49
48
  ): Handler<GetLifecyclePolicyPreviewCommandInput, GetLifecyclePolicyPreviewCommandOutput> {
50
- if (!this.resolved) {
51
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
52
- this.resolved = true;
53
- }
49
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
54
50
 
55
51
  const stack = clientStack.concat(this.middlewareStack);
56
52
 
@@ -28,7 +28,6 @@ export class GetRegistryPolicyCommand extends $Command<
28
28
  GetRegistryPolicyCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class GetRegistryPolicyCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<GetRegistryPolicyCommandInput, GetRegistryPolicyCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51
 
@@ -28,7 +28,6 @@ export class GetRepositoryPolicyCommand extends $Command<
28
28
  GetRepositoryPolicyCommandOutput,
29
29
  ECRClientResolvedConfig
30
30
  > {
31
- private resolved = false;
32
31
  // Start section: command_properties
33
32
  // End section: command_properties
34
33
 
@@ -46,10 +45,7 @@ export class GetRepositoryPolicyCommand extends $Command<
46
45
  configuration: ECRClientResolvedConfig,
47
46
  options?: __HttpHandlerOptions
48
47
  ): Handler<GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput> {
49
- if (!this.resolved) {
50
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
51
- this.resolved = true;
52
- }
48
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
49
 
54
50
  const stack = clientStack.concat(this.middlewareStack);
55
51