@aws-sdk/client-ecr 3.34.0 → 3.37.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 (413) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/ECR.js +1 -13
  3. package/dist-cjs/ECRClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/BatchCheckLayerAvailabilityCommand.js +2 -34
  5. package/{dist/cjs → dist-cjs}/commands/BatchDeleteImageCommand.js +2 -32
  6. package/{dist/cjs → dist-cjs}/commands/BatchGetImageCommand.js +2 -30
  7. package/{dist/cjs → dist-cjs}/commands/CompleteLayerUploadCommand.js +2 -35
  8. package/{dist/cjs → dist-cjs}/commands/CreateRepositoryCommand.js +2 -28
  9. package/{dist/cjs → dist-cjs}/commands/DeleteLifecyclePolicyCommand.js +2 -27
  10. package/{dist/cjs → dist-cjs}/commands/DeleteRegistryPolicyCommand.js +2 -27
  11. package/{dist/cjs → dist-cjs}/commands/DeleteRepositoryCommand.js +2 -29
  12. package/{dist/cjs → dist-cjs}/commands/DeleteRepositoryPolicyCommand.js +2 -27
  13. package/{dist/cjs → dist-cjs}/commands/DescribeImageReplicationStatusCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/DescribeImageScanFindingsCommand.js +2 -27
  15. package/{dist/cjs → dist-cjs}/commands/DescribeImagesCommand.js +2 -33
  16. package/{dist/cjs → dist-cjs}/commands/DescribeRegistryCommand.js +2 -29
  17. package/{dist/cjs → dist-cjs}/commands/DescribeRepositoriesCommand.js +2 -27
  18. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +36 -0
  19. package/{dist/cjs → dist-cjs}/commands/GetDownloadUrlForLayerCommand.js +2 -34
  20. package/{dist/cjs → dist-cjs}/commands/GetLifecyclePolicyCommand.js +2 -27
  21. package/{dist/cjs → dist-cjs}/commands/GetLifecyclePolicyPreviewCommand.js +2 -28
  22. package/{dist/cjs → dist-cjs}/commands/GetRegistryPolicyCommand.js +2 -27
  23. package/{dist/cjs → dist-cjs}/commands/GetRepositoryPolicyCommand.js +2 -27
  24. package/{dist/cjs → dist-cjs}/commands/InitiateLayerUploadCommand.js +2 -34
  25. package/{dist/cjs → dist-cjs}/commands/ListImagesCommand.js +2 -33
  26. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
  27. package/{dist/cjs → dist-cjs}/commands/PutImageCommand.js +2 -35
  28. package/{dist/cjs → dist-cjs}/commands/PutImageScanningConfigurationCommand.js +2 -27
  29. package/{dist/cjs → dist-cjs}/commands/PutImageTagMutabilityCommand.js +2 -29
  30. package/{dist/cjs → dist-cjs}/commands/PutLifecyclePolicyCommand.js +2 -29
  31. package/{dist/cjs → dist-cjs}/commands/PutRegistryPolicyCommand.js +2 -29
  32. package/dist-cjs/commands/PutReplicationConfigurationCommand.js +36 -0
  33. package/{dist/cjs → dist-cjs}/commands/SetRepositoryPolicyCommand.js +2 -29
  34. package/{dist/cjs → dist-cjs}/commands/StartImageScanCommand.js +2 -30
  35. package/{dist/cjs → dist-cjs}/commands/StartLifecyclePolicyPreviewCommand.js +2 -28
  36. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -28
  37. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
  38. package/{dist/cjs → dist-cjs}/commands/UploadLayerPartCommand.js +2 -34
  39. package/{dist/cjs → dist-cjs}/endpoints.js +5 -2
  40. package/{dist/cjs → dist-cjs}/index.js +0 -1
  41. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  42. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -382
  43. package/{dist/cjs → dist-cjs}/pagination/DescribeImageScanFindingsPaginator.js +1 -12
  44. package/{dist/cjs → dist-cjs}/pagination/DescribeImagesPaginator.js +1 -12
  45. package/{dist/cjs → dist-cjs}/pagination/DescribeRepositoriesPaginator.js +1 -12
  46. package/{dist/cjs → dist-cjs}/pagination/GetLifecyclePolicyPreviewPaginator.js +1 -12
  47. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  48. package/{dist/cjs → dist-cjs}/pagination/ListImagesPaginator.js +1 -12
  49. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  50. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  51. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  52. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  53. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  54. package/{dist/cjs → dist-cjs}/waiters/waitForImageScanComplete.js +4 -14
  55. package/{dist/cjs → dist-cjs}/waiters/waitForLifecyclePolicyPreviewComplete.js +4 -14
  56. package/{dist/es → dist-es}/ECR.js +1 -2
  57. package/{dist/es → dist-es}/ECRClient.js +1 -2
  58. package/{dist/es → dist-es}/commands/BatchCheckLayerAvailabilityCommand.js +2 -3
  59. package/{dist/es → dist-es}/commands/BatchDeleteImageCommand.js +2 -3
  60. package/{dist/es → dist-es}/commands/BatchGetImageCommand.js +2 -3
  61. package/{dist/es → dist-es}/commands/CompleteLayerUploadCommand.js +2 -3
  62. package/{dist/es → dist-es}/commands/CreateRepositoryCommand.js +2 -3
  63. package/{dist/es → dist-es}/commands/DeleteLifecyclePolicyCommand.js +2 -3
  64. package/{dist/es → dist-es}/commands/DeleteRegistryPolicyCommand.js +2 -3
  65. package/{dist/es → dist-es}/commands/DeleteRepositoryCommand.js +2 -3
  66. package/{dist/es → dist-es}/commands/DeleteRepositoryPolicyCommand.js +2 -3
  67. package/{dist/es → dist-es}/commands/DescribeImageReplicationStatusCommand.js +2 -3
  68. package/{dist/es → dist-es}/commands/DescribeImageScanFindingsCommand.js +2 -3
  69. package/{dist/es → dist-es}/commands/DescribeImagesCommand.js +2 -3
  70. package/{dist/es → dist-es}/commands/DescribeRegistryCommand.js +2 -3
  71. package/{dist/es → dist-es}/commands/DescribeRepositoriesCommand.js +2 -3
  72. package/{dist/es → dist-es}/commands/GetAuthorizationTokenCommand.js +2 -3
  73. package/{dist/es → dist-es}/commands/GetDownloadUrlForLayerCommand.js +2 -3
  74. package/{dist/es → dist-es}/commands/GetLifecyclePolicyCommand.js +2 -3
  75. package/{dist/es → dist-es}/commands/GetLifecyclePolicyPreviewCommand.js +2 -3
  76. package/{dist/es → dist-es}/commands/GetRegistryPolicyCommand.js +2 -3
  77. package/{dist/es → dist-es}/commands/GetRepositoryPolicyCommand.js +2 -3
  78. package/{dist/es → dist-es}/commands/InitiateLayerUploadCommand.js +2 -3
  79. package/{dist/es → dist-es}/commands/ListImagesCommand.js +2 -3
  80. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
  81. package/{dist/es → dist-es}/commands/PutImageCommand.js +2 -3
  82. package/{dist/es → dist-es}/commands/PutImageScanningConfigurationCommand.js +2 -3
  83. package/{dist/es → dist-es}/commands/PutImageTagMutabilityCommand.js +2 -3
  84. package/{dist/es → dist-es}/commands/PutLifecyclePolicyCommand.js +2 -3
  85. package/{dist/es → dist-es}/commands/PutRegistryPolicyCommand.js +2 -3
  86. package/{dist/es → dist-es}/commands/PutReplicationConfigurationCommand.js +2 -3
  87. package/{dist/es → dist-es}/commands/SetRepositoryPolicyCommand.js +2 -3
  88. package/{dist/es → dist-es}/commands/StartImageScanCommand.js +2 -3
  89. package/{dist/es → dist-es}/commands/StartLifecyclePolicyPreviewCommand.js +2 -3
  90. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  91. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  92. package/{dist/es → dist-es}/commands/UploadLayerPartCommand.js +2 -3
  93. package/{dist/es → dist-es}/endpoints.js +5 -2
  94. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  95. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  96. package/{dist/es → dist-es}/models/models_0.js +0 -1
  97. package/{dist/es → dist-es}/pagination/DescribeImageScanFindingsPaginator.js +1 -2
  98. package/{dist/es → dist-es}/pagination/DescribeImagesPaginator.js +1 -2
  99. package/{dist/es → dist-es}/pagination/DescribeRepositoriesPaginator.js +1 -2
  100. package/{dist/es → dist-es}/pagination/GetLifecyclePolicyPreviewPaginator.js +1 -2
  101. package/dist-es/pagination/Interfaces.js +1 -0
  102. package/{dist/es → dist-es}/pagination/ListImagesPaginator.js +1 -2
  103. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
  104. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  105. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  106. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  107. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  108. package/{dist/es → dist-es}/waiters/waitForImageScanComplete.js +1 -2
  109. package/{dist/es → dist-es}/waiters/waitForLifecyclePolicyPreviewComplete.js +1 -2
  110. package/{dist/types → dist-types}/ECR.d.ts +2 -2
  111. package/{dist/types → dist-types}/ECRClient.d.ts +8 -8
  112. package/{dist/types → dist-types}/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/commands/BatchDeleteImageCommand.d.ts +2 -2
  114. package/{dist/types → dist-types}/commands/BatchGetImageCommand.d.ts +2 -2
  115. package/{dist/types → dist-types}/commands/CompleteLayerUploadCommand.d.ts +2 -2
  116. package/{dist/types → dist-types}/commands/CreateRepositoryCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/commands/DeleteLifecyclePolicyCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/commands/DeleteRegistryPolicyCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/commands/DeleteRepositoryCommand.d.ts +2 -2
  120. package/{dist/types → dist-types}/commands/DeleteRepositoryPolicyCommand.d.ts +2 -2
  121. package/{dist/types → dist-types}/commands/DescribeImageReplicationStatusCommand.d.ts +2 -2
  122. package/{dist/types → dist-types}/commands/DescribeImageScanFindingsCommand.d.ts +2 -2
  123. package/{dist/types → dist-types}/commands/DescribeImagesCommand.d.ts +2 -2
  124. package/{dist/types → dist-types}/commands/DescribeRegistryCommand.d.ts +2 -2
  125. package/{dist/types → dist-types}/commands/DescribeRepositoriesCommand.d.ts +2 -2
  126. package/{dist/types → dist-types}/commands/GetAuthorizationTokenCommand.d.ts +2 -2
  127. package/{dist/types → dist-types}/commands/GetDownloadUrlForLayerCommand.d.ts +2 -2
  128. package/{dist/types → dist-types}/commands/GetLifecyclePolicyCommand.d.ts +2 -2
  129. package/{dist/types → dist-types}/commands/GetLifecyclePolicyPreviewCommand.d.ts +2 -2
  130. package/{dist/types → dist-types}/commands/GetRegistryPolicyCommand.d.ts +2 -2
  131. package/{dist/types → dist-types}/commands/GetRepositoryPolicyCommand.d.ts +2 -2
  132. package/{dist/types → dist-types}/commands/InitiateLayerUploadCommand.d.ts +2 -2
  133. package/{dist/types → dist-types}/commands/ListImagesCommand.d.ts +2 -2
  134. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  135. package/{dist/types → dist-types}/commands/PutImageCommand.d.ts +2 -2
  136. package/{dist/types → dist-types}/commands/PutImageScanningConfigurationCommand.d.ts +2 -2
  137. package/{dist/types → dist-types}/commands/PutImageTagMutabilityCommand.d.ts +2 -2
  138. package/{dist/types → dist-types}/commands/PutLifecyclePolicyCommand.d.ts +2 -2
  139. package/{dist/types → dist-types}/commands/PutRegistryPolicyCommand.d.ts +2 -2
  140. package/{dist/types → dist-types}/commands/PutReplicationConfigurationCommand.d.ts +2 -2
  141. package/{dist/types → dist-types}/commands/SetRepositoryPolicyCommand.d.ts +2 -2
  142. package/{dist/types → dist-types}/commands/StartImageScanCommand.d.ts +2 -2
  143. package/{dist/types → dist-types}/commands/StartLifecyclePolicyPreviewCommand.d.ts +2 -2
  144. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  145. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  146. package/{dist/types → dist-types}/commands/UploadLayerPartCommand.d.ts +2 -2
  147. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  148. package/{index.ts → dist-types/index.d.ts} +0 -0
  149. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  150. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  151. package/{dist/types → dist-types}/pagination/DescribeImageScanFindingsPaginator.d.ts +1 -1
  152. package/{dist/types → dist-types}/pagination/DescribeImagesPaginator.d.ts +1 -1
  153. package/{dist/types → dist-types}/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
  154. package/{dist/types → dist-types}/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +1 -1
  155. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  156. package/{dist/types → dist-types}/pagination/ListImagesPaginator.d.ts +1 -1
  157. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  158. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  159. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  160. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  161. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  162. package/{dist/types → dist-types}/ts3.4/ECR.d.ts +38 -218
  163. package/{dist/types → dist-types}/ts3.4/ECRClient.d.ts +32 -105
  164. package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/BatchGetImageCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +17 -0
  168. package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +17 -0
  169. package/{dist/types → dist-types}/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +4 -22
  170. package/{dist/types → dist-types}/ts3.4/commands/DeleteRegistryPolicyCommand.d.ts +4 -22
  171. package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +17 -0
  172. package/{dist/types → dist-types}/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +4 -22
  173. package/{dist/types → dist-types}/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +4 -22
  174. package/{dist/types → dist-types}/ts3.4/commands/DescribeImageScanFindingsCommand.d.ts +4 -22
  175. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +17 -0
  176. package/dist-types/ts3.4/commands/DescribeRegistryCommand.d.ts +17 -0
  177. package/{dist/types → dist-types}/ts3.4/commands/DescribeRepositoriesCommand.d.ts +4 -22
  178. package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +17 -0
  179. package/dist-types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +17 -0
  180. package/{dist/types → dist-types}/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +4 -22
  181. package/{dist/types → dist-types}/ts3.4/commands/GetLifecyclePolicyPreviewCommand.d.ts +4 -23
  182. package/{dist/types → dist-types}/ts3.4/commands/GetRegistryPolicyCommand.d.ts +4 -22
  183. package/{dist/types → dist-types}/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +4 -22
  184. package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +17 -0
  185. package/dist-types/ts3.4/commands/ListImagesCommand.d.ts +17 -0
  186. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
  187. package/dist-types/ts3.4/commands/PutImageCommand.d.ts +17 -0
  188. package/{dist/types → dist-types}/ts3.4/commands/PutImageScanningConfigurationCommand.d.ts +4 -22
  189. package/dist-types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +17 -0
  190. package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +17 -0
  191. package/dist-types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/StartImageScanCommand.d.ts +17 -0
  195. package/dist-types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +17 -0
  196. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  197. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +4 -22
  198. package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +17 -0
  199. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  200. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  201. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  202. package/dist-types/ts3.4/models/models_0.d.ts +1545 -0
  203. package/{dist/types → dist-types}/ts3.4/pagination/DescribeImageScanFindingsPaginator.d.ts +1 -1
  204. package/{dist/types → dist-types}/ts3.4/pagination/DescribeImagesPaginator.d.ts +1 -1
  205. package/{dist/types → dist-types}/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +1 -1
  206. package/{dist/types → dist-types}/ts3.4/pagination/GetLifecyclePolicyPreviewPaginator.d.ts +1 -1
  207. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  208. package/{dist/types → dist-types}/ts3.4/pagination/ListImagesPaginator.d.ts +1 -1
  209. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  210. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  211. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  212. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  213. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  214. package/{dist/types → dist-types}/ts3.4/waiters/waitForImageScanComplete.d.ts +4 -11
  215. package/{dist/types → dist-types}/ts3.4/waiters/waitForLifecyclePolicyPreviewComplete.d.ts +4 -11
  216. package/{dist/types → dist-types}/waiters/waitForImageScanComplete.d.ts +2 -2
  217. package/{dist/types → dist-types}/waiters/waitForLifecyclePolicyPreviewComplete.d.ts +2 -2
  218. package/package.json +46 -43
  219. package/ECR.ts +0 -1380
  220. package/ECRClient.ts +0 -405
  221. package/commands/BatchCheckLayerAvailabilityCommand.ts +0 -106
  222. package/commands/BatchDeleteImageCommand.ts +0 -99
  223. package/commands/BatchGetImageCommand.ts +0 -97
  224. package/commands/CompleteLayerUploadCommand.ts +0 -102
  225. package/commands/CreateRepositoryCommand.ts +0 -95
  226. package/commands/DeleteLifecyclePolicyCommand.ts +0 -94
  227. package/commands/DeleteRegistryPolicyCommand.ts +0 -94
  228. package/commands/DeleteRepositoryCommand.ts +0 -96
  229. package/commands/DeleteRepositoryPolicyCommand.ts +0 -94
  230. package/commands/DescribeImageReplicationStatusCommand.ts +0 -102
  231. package/commands/DescribeImageScanFindingsCommand.ts +0 -97
  232. package/commands/DescribeImagesCommand.ts +0 -100
  233. package/commands/DescribeRegistryCommand.ts +0 -96
  234. package/commands/DescribeRepositoriesCommand.ts +0 -94
  235. package/commands/GetAuthorizationTokenCommand.ts +0 -101
  236. package/commands/GetDownloadUrlForLayerCommand.ts +0 -101
  237. package/commands/GetLifecyclePolicyCommand.ts +0 -94
  238. package/commands/GetLifecyclePolicyPreviewCommand.ts +0 -98
  239. package/commands/GetRegistryPolicyCommand.ts +0 -94
  240. package/commands/GetRepositoryPolicyCommand.ts +0 -94
  241. package/commands/InitiateLayerUploadCommand.ts +0 -101
  242. package/commands/ListImagesCommand.ts +0 -100
  243. package/commands/ListTagsForResourceCommand.ts +0 -94
  244. package/commands/PutImageCommand.ts +0 -95
  245. package/commands/PutImageScanningConfigurationCommand.ts +0 -99
  246. package/commands/PutImageTagMutabilityCommand.ts +0 -96
  247. package/commands/PutLifecyclePolicyCommand.ts +0 -96
  248. package/commands/PutRegistryPolicyCommand.ts +0 -96
  249. package/commands/PutReplicationConfigurationCommand.ts +0 -109
  250. package/commands/SetRepositoryPolicyCommand.ts +0 -96
  251. package/commands/StartImageScanCommand.ts +0 -97
  252. package/commands/StartLifecyclePolicyPreviewCommand.ts +0 -100
  253. package/commands/TagResourceCommand.ts +0 -95
  254. package/commands/UntagResourceCommand.ts +0 -94
  255. package/commands/UploadLayerPartCommand.ts +0 -101
  256. package/dist/cjs/ECR.js.map +0 -1
  257. package/dist/cjs/ECRClient.js +0 -52
  258. package/dist/cjs/ECRClient.js.map +0 -1
  259. package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
  260. package/dist/cjs/commands/BatchDeleteImageCommand.js.map +0 -1
  261. package/dist/cjs/commands/BatchGetImageCommand.js.map +0 -1
  262. package/dist/cjs/commands/CompleteLayerUploadCommand.js.map +0 -1
  263. package/dist/cjs/commands/CreateRepositoryCommand.js.map +0 -1
  264. package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
  265. package/dist/cjs/commands/DeleteRegistryPolicyCommand.js.map +0 -1
  266. package/dist/cjs/commands/DeleteRepositoryCommand.js.map +0 -1
  267. package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
  268. package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js.map +0 -1
  269. package/dist/cjs/commands/DescribeImageScanFindingsCommand.js.map +0 -1
  270. package/dist/cjs/commands/DescribeImagesCommand.js.map +0 -1
  271. package/dist/cjs/commands/DescribeRegistryCommand.js.map +0 -1
  272. package/dist/cjs/commands/DescribeRepositoriesCommand.js.map +0 -1
  273. package/dist/cjs/commands/GetAuthorizationTokenCommand.js +0 -68
  274. package/dist/cjs/commands/GetAuthorizationTokenCommand.js.map +0 -1
  275. package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js.map +0 -1
  276. package/dist/cjs/commands/GetLifecyclePolicyCommand.js.map +0 -1
  277. package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js.map +0 -1
  278. package/dist/cjs/commands/GetRegistryPolicyCommand.js.map +0 -1
  279. package/dist/cjs/commands/GetRepositoryPolicyCommand.js.map +0 -1
  280. package/dist/cjs/commands/InitiateLayerUploadCommand.js.map +0 -1
  281. package/dist/cjs/commands/ListImagesCommand.js.map +0 -1
  282. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  283. package/dist/cjs/commands/PutImageCommand.js.map +0 -1
  284. package/dist/cjs/commands/PutImageScanningConfigurationCommand.js.map +0 -1
  285. package/dist/cjs/commands/PutImageTagMutabilityCommand.js.map +0 -1
  286. package/dist/cjs/commands/PutLifecyclePolicyCommand.js.map +0 -1
  287. package/dist/cjs/commands/PutRegistryPolicyCommand.js.map +0 -1
  288. package/dist/cjs/commands/PutReplicationConfigurationCommand.js +0 -71
  289. package/dist/cjs/commands/PutReplicationConfigurationCommand.js.map +0 -1
  290. package/dist/cjs/commands/SetRepositoryPolicyCommand.js.map +0 -1
  291. package/dist/cjs/commands/StartImageScanCommand.js.map +0 -1
  292. package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.js.map +0 -1
  293. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  294. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  295. package/dist/cjs/commands/UploadLayerPartCommand.js.map +0 -1
  296. package/dist/cjs/endpoints.js.map +0 -1
  297. package/dist/cjs/index.js.map +0 -1
  298. package/dist/cjs/models/index.js.map +0 -1
  299. package/dist/cjs/models/models_0.js.map +0 -1
  300. package/dist/cjs/package.json +0 -92
  301. package/dist/cjs/pagination/DescribeImageScanFindingsPaginator.js.map +0 -1
  302. package/dist/cjs/pagination/DescribeImagesPaginator.js.map +0 -1
  303. package/dist/cjs/pagination/DescribeRepositoriesPaginator.js.map +0 -1
  304. package/dist/cjs/pagination/GetLifecyclePolicyPreviewPaginator.js.map +0 -1
  305. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  306. package/dist/cjs/pagination/ListImagesPaginator.js.map +0 -1
  307. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  308. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  309. package/dist/cjs/runtimeConfig.js.map +0 -1
  310. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  311. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  312. package/dist/cjs/waiters/waitForImageScanComplete.js.map +0 -1
  313. package/dist/cjs/waiters/waitForLifecyclePolicyPreviewComplete.js.map +0 -1
  314. package/dist/es/ECR.js.map +0 -1
  315. package/dist/es/ECRClient.js.map +0 -1
  316. package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
  317. package/dist/es/commands/BatchDeleteImageCommand.js.map +0 -1
  318. package/dist/es/commands/BatchGetImageCommand.js.map +0 -1
  319. package/dist/es/commands/CompleteLayerUploadCommand.js.map +0 -1
  320. package/dist/es/commands/CreateRepositoryCommand.js.map +0 -1
  321. package/dist/es/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
  322. package/dist/es/commands/DeleteRegistryPolicyCommand.js.map +0 -1
  323. package/dist/es/commands/DeleteRepositoryCommand.js.map +0 -1
  324. package/dist/es/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
  325. package/dist/es/commands/DescribeImageReplicationStatusCommand.js.map +0 -1
  326. package/dist/es/commands/DescribeImageScanFindingsCommand.js.map +0 -1
  327. package/dist/es/commands/DescribeImagesCommand.js.map +0 -1
  328. package/dist/es/commands/DescribeRegistryCommand.js.map +0 -1
  329. package/dist/es/commands/DescribeRepositoriesCommand.js.map +0 -1
  330. package/dist/es/commands/GetAuthorizationTokenCommand.js.map +0 -1
  331. package/dist/es/commands/GetDownloadUrlForLayerCommand.js.map +0 -1
  332. package/dist/es/commands/GetLifecyclePolicyCommand.js.map +0 -1
  333. package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js.map +0 -1
  334. package/dist/es/commands/GetRegistryPolicyCommand.js.map +0 -1
  335. package/dist/es/commands/GetRepositoryPolicyCommand.js.map +0 -1
  336. package/dist/es/commands/InitiateLayerUploadCommand.js.map +0 -1
  337. package/dist/es/commands/ListImagesCommand.js.map +0 -1
  338. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  339. package/dist/es/commands/PutImageCommand.js.map +0 -1
  340. package/dist/es/commands/PutImageScanningConfigurationCommand.js.map +0 -1
  341. package/dist/es/commands/PutImageTagMutabilityCommand.js.map +0 -1
  342. package/dist/es/commands/PutLifecyclePolicyCommand.js.map +0 -1
  343. package/dist/es/commands/PutRegistryPolicyCommand.js.map +0 -1
  344. package/dist/es/commands/PutReplicationConfigurationCommand.js.map +0 -1
  345. package/dist/es/commands/SetRepositoryPolicyCommand.js.map +0 -1
  346. package/dist/es/commands/StartImageScanCommand.js.map +0 -1
  347. package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js.map +0 -1
  348. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  349. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  350. package/dist/es/commands/UploadLayerPartCommand.js.map +0 -1
  351. package/dist/es/endpoints.js.map +0 -1
  352. package/dist/es/index.js +0 -47
  353. package/dist/es/index.js.map +0 -1
  354. package/dist/es/models/index.js +0 -2
  355. package/dist/es/models/index.js.map +0 -1
  356. package/dist/es/models/models_0.js.map +0 -1
  357. package/dist/es/package.json +0 -92
  358. package/dist/es/pagination/DescribeImageScanFindingsPaginator.js.map +0 -1
  359. package/dist/es/pagination/DescribeImagesPaginator.js.map +0 -1
  360. package/dist/es/pagination/DescribeRepositoriesPaginator.js.map +0 -1
  361. package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js.map +0 -1
  362. package/dist/es/pagination/Interfaces.js +0 -2
  363. package/dist/es/pagination/Interfaces.js.map +0 -1
  364. package/dist/es/pagination/ListImagesPaginator.js.map +0 -1
  365. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  366. package/dist/es/runtimeConfig.browser.js.map +0 -1
  367. package/dist/es/runtimeConfig.js.map +0 -1
  368. package/dist/es/runtimeConfig.native.js.map +0 -1
  369. package/dist/es/runtimeConfig.shared.js.map +0 -1
  370. package/dist/es/waiters/waitForImageScanComplete.js.map +0 -1
  371. package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js.map +0 -1
  372. package/dist/types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +0 -42
  373. package/dist/types/ts3.4/commands/BatchDeleteImageCommand.d.ts +0 -40
  374. package/dist/types/ts3.4/commands/BatchGetImageCommand.d.ts +0 -38
  375. package/dist/types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +0 -43
  376. package/dist/types/ts3.4/commands/CreateRepositoryCommand.d.ts +0 -36
  377. package/dist/types/ts3.4/commands/DeleteRepositoryCommand.d.ts +0 -37
  378. package/dist/types/ts3.4/commands/DescribeImagesCommand.d.ts +0 -41
  379. package/dist/types/ts3.4/commands/DescribeRegistryCommand.d.ts +0 -37
  380. package/dist/types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +0 -42
  381. package/dist/types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +0 -42
  382. package/dist/types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +0 -42
  383. package/dist/types/ts3.4/commands/ListImagesCommand.d.ts +0 -41
  384. package/dist/types/ts3.4/commands/PutImageCommand.d.ts +0 -43
  385. package/dist/types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +0 -37
  386. package/dist/types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +0 -37
  387. package/dist/types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +0 -37
  388. package/dist/types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +0 -45
  389. package/dist/types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +0 -37
  390. package/dist/types/ts3.4/commands/StartImageScanCommand.d.ts +0 -38
  391. package/dist/types/ts3.4/commands/StartLifecyclePolicyPreviewCommand.d.ts +0 -36
  392. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -36
  393. package/dist/types/ts3.4/commands/UploadLayerPartCommand.d.ts +0 -42
  394. package/dist/types/ts3.4/models/models_0.d.ts +0 -2779
  395. package/endpoints.ts +0 -229
  396. package/jest.config.js +0 -4
  397. package/models/models_0.ts +0 -3463
  398. package/pagination/DescribeImageScanFindingsPaginator.ts +0 -58
  399. package/pagination/DescribeImagesPaginator.ts +0 -58
  400. package/pagination/DescribeRepositoriesPaginator.ts +0 -58
  401. package/pagination/GetLifecyclePolicyPreviewPaginator.ts +0 -58
  402. package/pagination/Interfaces.ts +0 -7
  403. package/pagination/ListImagesPaginator.ts +0 -54
  404. package/protocols/Aws_json1_1.ts +0 -5862
  405. package/runtimeConfig.browser.ts +0 -40
  406. package/runtimeConfig.native.ts +0 -16
  407. package/runtimeConfig.shared.ts +0 -16
  408. package/runtimeConfig.ts +0 -45
  409. package/tsconfig.es.json +0 -10
  410. package/tsconfig.json +0 -31
  411. package/tsconfig.types.json +0 -8
  412. package/waiters/waitForImageScanComplete.ts +0 -57
  413. package/waiters/waitForLifecyclePolicyPreviewComplete.ts +0 -57
@@ -1,101 +0,0 @@
1
- import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
2
- import { GetDownloadUrlForLayerRequest, GetDownloadUrlForLayerResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetDownloadUrlForLayerCommand,
5
- serializeAws_json1_1GetDownloadUrlForLayerCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetDownloadUrlForLayerCommandInput extends GetDownloadUrlForLayerRequest {}
21
- export interface GetDownloadUrlForLayerCommandOutput extends GetDownloadUrlForLayerResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can
25
- * only get URLs for image layers that are referenced in an image.</p>
26
- * <p>When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer
27
- * that is not already cached.</p>
28
- * <note>
29
- * <p>This operation is used by the Amazon ECR proxy and is not generally used by
30
- * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
31
- * </note>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { ECRClient, GetDownloadUrlForLayerCommand } from "@aws-sdk/client-ecr"; // ES Modules import
36
- * // const { ECRClient, GetDownloadUrlForLayerCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
37
- * const client = new ECRClient(config);
38
- * const command = new GetDownloadUrlForLayerCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link GetDownloadUrlForLayerCommandInput} for command's `input` shape.
43
- * @see {@link GetDownloadUrlForLayerCommandOutput} for command's `response` shape.
44
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class GetDownloadUrlForLayerCommand extends $Command<
48
- GetDownloadUrlForLayerCommandInput,
49
- GetDownloadUrlForLayerCommandOutput,
50
- ECRClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: GetDownloadUrlForLayerCommandInput) {
56
- // Start section: command_constructor
57
- super();
58
- // End section: command_constructor
59
- }
60
-
61
- /**
62
- * @internal
63
- */
64
- resolveMiddleware(
65
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66
- configuration: ECRClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<GetDownloadUrlForLayerCommandInput, GetDownloadUrlForLayerCommandOutput> {
69
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "ECRClient";
75
- const commandName = "GetDownloadUrlForLayerCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: GetDownloadUrlForLayerRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: GetDownloadUrlForLayerResponse.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: GetDownloadUrlForLayerCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_1GetDownloadUrlForLayerCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDownloadUrlForLayerCommandOutput> {
96
- return deserializeAws_json1_1GetDownloadUrlForLayerCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,94 +0,0 @@
1
- import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
2
- import { GetLifecyclePolicyRequest, GetLifecyclePolicyResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetLifecyclePolicyCommand,
5
- serializeAws_json1_1GetLifecyclePolicyCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetLifecyclePolicyCommandInput extends GetLifecyclePolicyRequest {}
21
- export interface GetLifecyclePolicyCommandOutput extends GetLifecyclePolicyResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Retrieves the lifecycle policy for the specified repository.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { ECRClient, GetLifecyclePolicyCommand } from "@aws-sdk/client-ecr"; // ES Modules import
29
- * // const { ECRClient, GetLifecyclePolicyCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
30
- * const client = new ECRClient(config);
31
- * const command = new GetLifecyclePolicyCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link GetLifecyclePolicyCommandInput} for command's `input` shape.
36
- * @see {@link GetLifecyclePolicyCommandOutput} for command's `response` shape.
37
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class GetLifecyclePolicyCommand extends $Command<
41
- GetLifecyclePolicyCommandInput,
42
- GetLifecyclePolicyCommandOutput,
43
- ECRClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: GetLifecyclePolicyCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: ECRClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "ECRClient";
68
- const commandName = "GetLifecyclePolicyCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: GetLifecyclePolicyRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: GetLifecyclePolicyResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: GetLifecyclePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1GetLifecyclePolicyCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetLifecyclePolicyCommandOutput> {
89
- return deserializeAws_json1_1GetLifecyclePolicyCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,98 +0,0 @@
1
- import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
2
- import { GetLifecyclePolicyPreviewRequest, GetLifecyclePolicyPreviewResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetLifecyclePolicyPreviewCommand,
5
- serializeAws_json1_1GetLifecyclePolicyPreviewCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetLifecyclePolicyPreviewCommandInput extends GetLifecyclePolicyPreviewRequest {}
21
- export interface GetLifecyclePolicyPreviewCommandOutput extends GetLifecyclePolicyPreviewResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Retrieves the results of the lifecycle policy preview request for the specified
25
- * repository.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ECRClient, GetLifecyclePolicyPreviewCommand } from "@aws-sdk/client-ecr"; // ES Modules import
30
- * // const { ECRClient, GetLifecyclePolicyPreviewCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
31
- * const client = new ECRClient(config);
32
- * const command = new GetLifecyclePolicyPreviewCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetLifecyclePolicyPreviewCommandInput} for command's `input` shape.
37
- * @see {@link GetLifecyclePolicyPreviewCommandOutput} for command's `response` shape.
38
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class GetLifecyclePolicyPreviewCommand extends $Command<
42
- GetLifecyclePolicyPreviewCommandInput,
43
- GetLifecyclePolicyPreviewCommandOutput,
44
- ECRClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: GetLifecyclePolicyPreviewCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: ECRClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<GetLifecyclePolicyPreviewCommandInput, GetLifecyclePolicyPreviewCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "ECRClient";
69
- const commandName = "GetLifecyclePolicyPreviewCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: GetLifecyclePolicyPreviewRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: GetLifecyclePolicyPreviewResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: GetLifecyclePolicyPreviewCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1GetLifecyclePolicyPreviewCommand(input, context);
87
- }
88
-
89
- private deserialize(
90
- output: __HttpResponse,
91
- context: __SerdeContext
92
- ): Promise<GetLifecyclePolicyPreviewCommandOutput> {
93
- return deserializeAws_json1_1GetLifecyclePolicyPreviewCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,94 +0,0 @@
1
- import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
2
- import { GetRegistryPolicyRequest, GetRegistryPolicyResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetRegistryPolicyCommand,
5
- serializeAws_json1_1GetRegistryPolicyCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetRegistryPolicyCommandInput extends GetRegistryPolicyRequest {}
21
- export interface GetRegistryPolicyCommandOutput extends GetRegistryPolicyResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Retrieves the permissions policy for a registry.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { ECRClient, GetRegistryPolicyCommand } from "@aws-sdk/client-ecr"; // ES Modules import
29
- * // const { ECRClient, GetRegistryPolicyCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
30
- * const client = new ECRClient(config);
31
- * const command = new GetRegistryPolicyCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link GetRegistryPolicyCommandInput} for command's `input` shape.
36
- * @see {@link GetRegistryPolicyCommandOutput} for command's `response` shape.
37
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class GetRegistryPolicyCommand extends $Command<
41
- GetRegistryPolicyCommandInput,
42
- GetRegistryPolicyCommandOutput,
43
- ECRClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: GetRegistryPolicyCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: ECRClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<GetRegistryPolicyCommandInput, GetRegistryPolicyCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "ECRClient";
68
- const commandName = "GetRegistryPolicyCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: GetRegistryPolicyRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: GetRegistryPolicyResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: GetRegistryPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1GetRegistryPolicyCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRegistryPolicyCommandOutput> {
89
- return deserializeAws_json1_1GetRegistryPolicyCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
2
- import { GetRepositoryPolicyRequest, GetRepositoryPolicyResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetRepositoryPolicyCommand,
5
- serializeAws_json1_1GetRepositoryPolicyCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetRepositoryPolicyCommandInput extends GetRepositoryPolicyRequest {}
21
- export interface GetRepositoryPolicyCommandOutput extends GetRepositoryPolicyResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Retrieves the repository policy for the specified repository.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { ECRClient, GetRepositoryPolicyCommand } from "@aws-sdk/client-ecr"; // ES Modules import
29
- * // const { ECRClient, GetRepositoryPolicyCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
30
- * const client = new ECRClient(config);
31
- * const command = new GetRepositoryPolicyCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link GetRepositoryPolicyCommandInput} for command's `input` shape.
36
- * @see {@link GetRepositoryPolicyCommandOutput} for command's `response` shape.
37
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class GetRepositoryPolicyCommand extends $Command<
41
- GetRepositoryPolicyCommandInput,
42
- GetRepositoryPolicyCommandOutput,
43
- ECRClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: GetRepositoryPolicyCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: ECRClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "ECRClient";
68
- const commandName = "GetRepositoryPolicyCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: GetRepositoryPolicyRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: GetRepositoryPolicyResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: GetRepositoryPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1GetRepositoryPolicyCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRepositoryPolicyCommandOutput> {
89
- return deserializeAws_json1_1GetRepositoryPolicyCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,101 +0,0 @@
1
- import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
2
- import { InitiateLayerUploadRequest, InitiateLayerUploadResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1InitiateLayerUploadCommand,
5
- serializeAws_json1_1InitiateLayerUploadCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface InitiateLayerUploadCommandInput extends InitiateLayerUploadRequest {}
21
- export interface InitiateLayerUploadCommandOutput extends InitiateLayerUploadResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Notifies Amazon ECR that you intend to upload an image layer.</p>
25
- * <p>When an image is pushed, the InitiateLayerUpload API is called once per image layer
26
- * that has not already been uploaded. Whether or not an image layer has been uploaded is
27
- * determined by the BatchCheckLayerAvailability API action.</p>
28
- * <note>
29
- * <p>This operation is used by the Amazon ECR proxy and is not generally used by
30
- * customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
31
- * </note>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { ECRClient, InitiateLayerUploadCommand } from "@aws-sdk/client-ecr"; // ES Modules import
36
- * // const { ECRClient, InitiateLayerUploadCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
37
- * const client = new ECRClient(config);
38
- * const command = new InitiateLayerUploadCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link InitiateLayerUploadCommandInput} for command's `input` shape.
43
- * @see {@link InitiateLayerUploadCommandOutput} for command's `response` shape.
44
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class InitiateLayerUploadCommand extends $Command<
48
- InitiateLayerUploadCommandInput,
49
- InitiateLayerUploadCommandOutput,
50
- ECRClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: InitiateLayerUploadCommandInput) {
56
- // Start section: command_constructor
57
- super();
58
- // End section: command_constructor
59
- }
60
-
61
- /**
62
- * @internal
63
- */
64
- resolveMiddleware(
65
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66
- configuration: ECRClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput> {
69
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "ECRClient";
75
- const commandName = "InitiateLayerUploadCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: InitiateLayerUploadRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: InitiateLayerUploadResponse.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: InitiateLayerUploadCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_1InitiateLayerUploadCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<InitiateLayerUploadCommandOutput> {
96
- return deserializeAws_json1_1InitiateLayerUploadCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,100 +0,0 @@
1
- import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
2
- import { ListImagesRequest, ListImagesResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListImagesCommand,
5
- serializeAws_json1_1ListImagesCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface ListImagesCommandInput extends ListImagesRequest {}
21
- export interface ListImagesCommandOutput extends ListImagesResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Lists all the image IDs for the specified repository.</p>
25
- * <p>You can filter images based on whether or not they are tagged by using the
26
- * <code>tagStatus</code> filter and specifying either <code>TAGGED</code>,
27
- * <code>UNTAGGED</code> or <code>ANY</code>. For example, you can filter your results
28
- * to return only <code>UNTAGGED</code> images and then pipe that result to a <a>BatchDeleteImage</a> operation to delete them. Or, you can filter your
29
- * results to return only <code>TAGGED</code> images to list all of the tags in your
30
- * repository.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { ECRClient, ListImagesCommand } from "@aws-sdk/client-ecr"; // ES Modules import
35
- * // const { ECRClient, ListImagesCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
36
- * const client = new ECRClient(config);
37
- * const command = new ListImagesCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link ListImagesCommandInput} for command's `input` shape.
42
- * @see {@link ListImagesCommandOutput} for command's `response` shape.
43
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class ListImagesCommand extends $Command<
47
- ListImagesCommandInput,
48
- ListImagesCommandOutput,
49
- ECRClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: ListImagesCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: ECRClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<ListImagesCommandInput, ListImagesCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "ECRClient";
74
- const commandName = "ListImagesCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: ListImagesRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: ListImagesResponse.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: ListImagesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_1ListImagesCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListImagesCommandOutput> {
95
- return deserializeAws_json1_1ListImagesCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }