@aws-sdk/client-ecr 3.30.0 → 3.34.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 (257) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/ECR.ts +54 -15
  3. package/ECRClient.ts +8 -0
  4. package/README.md +2 -0
  5. package/commands/CreateRepositoryCommand.ts +1 -1
  6. package/commands/DescribeImageReplicationStatusCommand.ts +102 -0
  7. package/commands/GetAuthorizationTokenCommand.ts +2 -2
  8. package/commands/GetDownloadUrlForLayerCommand.ts +2 -2
  9. package/commands/PutImageTagMutabilityCommand.ts +2 -2
  10. package/commands/PutLifecyclePolicyCommand.ts +2 -2
  11. package/commands/PutRegistryPolicyCommand.ts +1 -1
  12. package/commands/PutReplicationConfigurationCommand.ts +1 -1
  13. package/commands/SetRepositoryPolicyCommand.ts +1 -1
  14. package/commands/StartImageScanCommand.ts +3 -3
  15. package/dist/cjs/ECR.js +17 -0
  16. package/dist/cjs/ECR.js.map +1 -1
  17. package/dist/cjs/ECRClient.js +15 -13
  18. package/dist/cjs/ECRClient.js.map +1 -1
  19. package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js +3 -3
  20. package/dist/cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
  21. package/dist/cjs/commands/BatchDeleteImageCommand.js +3 -3
  22. package/dist/cjs/commands/BatchDeleteImageCommand.js.map +1 -1
  23. package/dist/cjs/commands/BatchGetImageCommand.js +3 -3
  24. package/dist/cjs/commands/BatchGetImageCommand.js.map +1 -1
  25. package/dist/cjs/commands/CompleteLayerUploadCommand.js +3 -3
  26. package/dist/cjs/commands/CompleteLayerUploadCommand.js.map +1 -1
  27. package/dist/cjs/commands/CreateRepositoryCommand.js +4 -4
  28. package/dist/cjs/commands/CreateRepositoryCommand.js.map +1 -1
  29. package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js +3 -3
  30. package/dist/cjs/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
  31. package/dist/cjs/commands/DeleteRegistryPolicyCommand.js +3 -3
  32. package/dist/cjs/commands/DeleteRegistryPolicyCommand.js.map +1 -1
  33. package/dist/cjs/commands/DeleteRepositoryCommand.js +3 -3
  34. package/dist/cjs/commands/DeleteRepositoryCommand.js.map +1 -1
  35. package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js +3 -3
  36. package/dist/cjs/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
  37. package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js +61 -0
  38. package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
  39. package/dist/cjs/commands/DescribeImageScanFindingsCommand.js +3 -3
  40. package/dist/cjs/commands/DescribeImageScanFindingsCommand.js.map +1 -1
  41. package/dist/cjs/commands/DescribeImagesCommand.js +3 -3
  42. package/dist/cjs/commands/DescribeImagesCommand.js.map +1 -1
  43. package/dist/cjs/commands/DescribeRegistryCommand.js +3 -3
  44. package/dist/cjs/commands/DescribeRegistryCommand.js.map +1 -1
  45. package/dist/cjs/commands/DescribeRepositoriesCommand.js +3 -3
  46. package/dist/cjs/commands/DescribeRepositoriesCommand.js.map +1 -1
  47. package/dist/cjs/commands/GetAuthorizationTokenCommand.js +5 -5
  48. package/dist/cjs/commands/GetAuthorizationTokenCommand.js.map +1 -1
  49. package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js +5 -5
  50. package/dist/cjs/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
  51. package/dist/cjs/commands/GetLifecyclePolicyCommand.js +3 -3
  52. package/dist/cjs/commands/GetLifecyclePolicyCommand.js.map +1 -1
  53. package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js +3 -3
  54. package/dist/cjs/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
  55. package/dist/cjs/commands/GetRegistryPolicyCommand.js +3 -3
  56. package/dist/cjs/commands/GetRegistryPolicyCommand.js.map +1 -1
  57. package/dist/cjs/commands/GetRepositoryPolicyCommand.js +3 -3
  58. package/dist/cjs/commands/GetRepositoryPolicyCommand.js.map +1 -1
  59. package/dist/cjs/commands/InitiateLayerUploadCommand.js +3 -3
  60. package/dist/cjs/commands/InitiateLayerUploadCommand.js.map +1 -1
  61. package/dist/cjs/commands/ListImagesCommand.js +3 -3
  62. package/dist/cjs/commands/ListImagesCommand.js.map +1 -1
  63. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  64. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  65. package/dist/cjs/commands/PutImageCommand.js +3 -3
  66. package/dist/cjs/commands/PutImageCommand.js.map +1 -1
  67. package/dist/cjs/commands/PutImageScanningConfigurationCommand.js +3 -3
  68. package/dist/cjs/commands/PutImageScanningConfigurationCommand.js.map +1 -1
  69. package/dist/cjs/commands/PutImageTagMutabilityCommand.js +5 -5
  70. package/dist/cjs/commands/PutImageTagMutabilityCommand.js.map +1 -1
  71. package/dist/cjs/commands/PutLifecyclePolicyCommand.js +5 -5
  72. package/dist/cjs/commands/PutLifecyclePolicyCommand.js.map +1 -1
  73. package/dist/cjs/commands/PutRegistryPolicyCommand.js +4 -4
  74. package/dist/cjs/commands/PutRegistryPolicyCommand.js.map +1 -1
  75. package/dist/cjs/commands/PutReplicationConfigurationCommand.js +4 -4
  76. package/dist/cjs/commands/PutReplicationConfigurationCommand.js.map +1 -1
  77. package/dist/cjs/commands/SetRepositoryPolicyCommand.js +4 -4
  78. package/dist/cjs/commands/SetRepositoryPolicyCommand.js.map +1 -1
  79. package/dist/cjs/commands/StartImageScanCommand.js +6 -6
  80. package/dist/cjs/commands/StartImageScanCommand.js.map +1 -1
  81. package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.js +3 -3
  82. package/dist/cjs/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
  83. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  84. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  85. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  86. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  87. package/dist/cjs/commands/UploadLayerPartCommand.js +3 -3
  88. package/dist/cjs/commands/UploadLayerPartCommand.js.map +1 -1
  89. package/dist/cjs/endpoints.js +1 -1
  90. package/dist/cjs/endpoints.js.map +1 -1
  91. package/dist/cjs/index.js +46 -45
  92. package/dist/cjs/index.js.map +1 -1
  93. package/dist/cjs/models/index.js +1 -1
  94. package/dist/cjs/models/index.js.map +1 -1
  95. package/dist/cjs/models/models_0.js +67 -21
  96. package/dist/cjs/models/models_0.js.map +1 -1
  97. package/dist/cjs/package.json +40 -40
  98. package/dist/cjs/protocols/Aws_json1_1.js +346 -155
  99. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  100. package/dist/cjs/runtimeConfig.browser.js +4 -4
  101. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  102. package/dist/cjs/runtimeConfig.js +8 -8
  103. package/dist/cjs/runtimeConfig.js.map +1 -1
  104. package/dist/cjs/runtimeConfig.native.js +1 -1
  105. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  106. package/dist/cjs/waiters/waitForImageScanComplete.js +3 -3
  107. package/dist/cjs/waiters/waitForImageScanComplete.js.map +1 -1
  108. package/dist/cjs/waiters/waitForLifecyclePolicyPreviewComplete.js +3 -3
  109. package/dist/cjs/waiters/waitForLifecyclePolicyPreviewComplete.js.map +1 -1
  110. package/dist/es/ECR.js +16 -10
  111. package/dist/es/ECR.js.map +1 -1
  112. package/dist/es/ECRClient.js +1 -15
  113. package/dist/es/ECRClient.js.map +1 -1
  114. package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js +2 -34
  115. package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
  116. package/dist/es/commands/BatchDeleteImageCommand.js +2 -32
  117. package/dist/es/commands/BatchDeleteImageCommand.js.map +1 -1
  118. package/dist/es/commands/BatchGetImageCommand.js +2 -30
  119. package/dist/es/commands/BatchGetImageCommand.js.map +1 -1
  120. package/dist/es/commands/CompleteLayerUploadCommand.js +2 -35
  121. package/dist/es/commands/CompleteLayerUploadCommand.js.map +1 -1
  122. package/dist/es/commands/CreateRepositoryCommand.js +2 -28
  123. package/dist/es/commands/CreateRepositoryCommand.js.map +1 -1
  124. package/dist/es/commands/DeleteLifecyclePolicyCommand.js +2 -27
  125. package/dist/es/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
  126. package/dist/es/commands/DeleteRegistryPolicyCommand.js +2 -27
  127. package/dist/es/commands/DeleteRegistryPolicyCommand.js.map +1 -1
  128. package/dist/es/commands/DeleteRepositoryCommand.js +2 -29
  129. package/dist/es/commands/DeleteRepositoryCommand.js.map +1 -1
  130. package/dist/es/commands/DeleteRepositoryPolicyCommand.js +2 -27
  131. package/dist/es/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
  132. package/dist/es/commands/DescribeImageReplicationStatusCommand.js +40 -0
  133. package/dist/es/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
  134. package/dist/es/commands/DescribeImageScanFindingsCommand.js +2 -27
  135. package/dist/es/commands/DescribeImageScanFindingsCommand.js.map +1 -1
  136. package/dist/es/commands/DescribeImagesCommand.js +2 -33
  137. package/dist/es/commands/DescribeImagesCommand.js.map +1 -1
  138. package/dist/es/commands/DescribeRegistryCommand.js +2 -29
  139. package/dist/es/commands/DescribeRegistryCommand.js.map +1 -1
  140. package/dist/es/commands/DescribeRepositoriesCommand.js +2 -27
  141. package/dist/es/commands/DescribeRepositoriesCommand.js.map +1 -1
  142. package/dist/es/commands/GetAuthorizationTokenCommand.js +2 -34
  143. package/dist/es/commands/GetAuthorizationTokenCommand.js.map +1 -1
  144. package/dist/es/commands/GetDownloadUrlForLayerCommand.js +2 -34
  145. package/dist/es/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
  146. package/dist/es/commands/GetLifecyclePolicyCommand.js +2 -27
  147. package/dist/es/commands/GetLifecyclePolicyCommand.js.map +1 -1
  148. package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js +2 -28
  149. package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
  150. package/dist/es/commands/GetRegistryPolicyCommand.js +2 -27
  151. package/dist/es/commands/GetRegistryPolicyCommand.js.map +1 -1
  152. package/dist/es/commands/GetRepositoryPolicyCommand.js +2 -27
  153. package/dist/es/commands/GetRepositoryPolicyCommand.js.map +1 -1
  154. package/dist/es/commands/InitiateLayerUploadCommand.js +2 -34
  155. package/dist/es/commands/InitiateLayerUploadCommand.js.map +1 -1
  156. package/dist/es/commands/ListImagesCommand.js +2 -33
  157. package/dist/es/commands/ListImagesCommand.js.map +1 -1
  158. package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
  159. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  160. package/dist/es/commands/PutImageCommand.js +2 -35
  161. package/dist/es/commands/PutImageCommand.js.map +1 -1
  162. package/dist/es/commands/PutImageScanningConfigurationCommand.js +2 -27
  163. package/dist/es/commands/PutImageScanningConfigurationCommand.js.map +1 -1
  164. package/dist/es/commands/PutImageTagMutabilityCommand.js +2 -29
  165. package/dist/es/commands/PutImageTagMutabilityCommand.js.map +1 -1
  166. package/dist/es/commands/PutLifecyclePolicyCommand.js +2 -29
  167. package/dist/es/commands/PutLifecyclePolicyCommand.js.map +1 -1
  168. package/dist/es/commands/PutRegistryPolicyCommand.js +2 -29
  169. package/dist/es/commands/PutRegistryPolicyCommand.js.map +1 -1
  170. package/dist/es/commands/PutReplicationConfigurationCommand.js +2 -37
  171. package/dist/es/commands/PutReplicationConfigurationCommand.js.map +1 -1
  172. package/dist/es/commands/SetRepositoryPolicyCommand.js +2 -29
  173. package/dist/es/commands/SetRepositoryPolicyCommand.js.map +1 -1
  174. package/dist/es/commands/StartImageScanCommand.js +2 -30
  175. package/dist/es/commands/StartImageScanCommand.js.map +1 -1
  176. package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js +2 -28
  177. package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
  178. package/dist/es/commands/TagResourceCommand.js +2 -28
  179. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  180. package/dist/es/commands/UntagResourceCommand.js +2 -27
  181. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  182. package/dist/es/commands/UploadLayerPartCommand.js +2 -34
  183. package/dist/es/commands/UploadLayerPartCommand.js.map +1 -1
  184. package/dist/es/endpoints.js +1 -1
  185. package/dist/es/endpoints.js.map +1 -1
  186. package/dist/es/index.js +1 -0
  187. package/dist/es/index.js.map +1 -1
  188. package/dist/es/models/models_0.js +34 -377
  189. package/dist/es/models/models_0.js.map +1 -1
  190. package/dist/es/package.json +40 -40
  191. package/dist/es/pagination/DescribeImageScanFindingsPaginator.js +16 -28
  192. package/dist/es/pagination/DescribeImageScanFindingsPaginator.js.map +1 -1
  193. package/dist/es/pagination/DescribeImagesPaginator.js +16 -28
  194. package/dist/es/pagination/DescribeImagesPaginator.js.map +1 -1
  195. package/dist/es/pagination/DescribeRepositoriesPaginator.js +16 -28
  196. package/dist/es/pagination/DescribeRepositoriesPaginator.js.map +1 -1
  197. package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js +16 -28
  198. package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js.map +1 -1
  199. package/dist/es/pagination/ListImagesPaginator.js +16 -28
  200. package/dist/es/pagination/ListImagesPaginator.js.map +1 -1
  201. package/dist/es/protocols/Aws_json1_1.js +1080 -893
  202. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  203. package/dist/es/runtimeConfig.browser.js +0 -3
  204. package/dist/es/runtimeConfig.browser.js.map +1 -1
  205. package/dist/es/runtimeConfig.js +0 -3
  206. package/dist/es/runtimeConfig.js.map +1 -1
  207. package/dist/es/runtimeConfig.native.js +0 -3
  208. package/dist/es/runtimeConfig.native.js.map +1 -1
  209. package/dist/es/runtimeConfig.shared.js +0 -3
  210. package/dist/es/runtimeConfig.shared.js.map +1 -1
  211. package/dist/es/waiters/waitForImageScanComplete.js +9 -18
  212. package/dist/es/waiters/waitForImageScanComplete.js.map +1 -1
  213. package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js +9 -18
  214. package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js.map +1 -1
  215. package/dist/types/ECR.d.ts +24 -15
  216. package/dist/types/ECRClient.d.ts +5 -2
  217. package/dist/types/commands/CreateRepositoryCommand.d.ts +1 -1
  218. package/dist/types/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
  219. package/dist/types/commands/GetAuthorizationTokenCommand.d.ts +2 -2
  220. package/dist/types/commands/GetDownloadUrlForLayerCommand.d.ts +2 -2
  221. package/dist/types/commands/PutImageTagMutabilityCommand.d.ts +2 -2
  222. package/dist/types/commands/PutLifecyclePolicyCommand.d.ts +2 -2
  223. package/dist/types/commands/PutRegistryPolicyCommand.d.ts +1 -1
  224. package/dist/types/commands/PutReplicationConfigurationCommand.d.ts +1 -1
  225. package/dist/types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
  226. package/dist/types/commands/StartImageScanCommand.d.ts +3 -3
  227. package/dist/types/index.d.ts +1 -0
  228. package/dist/types/models/models_0.d.ts +210 -100
  229. package/dist/types/protocols/Aws_json1_1.d.ts +3 -0
  230. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  231. package/dist/types/runtimeConfig.d.ts +1 -0
  232. package/dist/types/runtimeConfig.native.d.ts +1 -0
  233. package/dist/types/ts3.4/ECR.d.ts +24 -15
  234. package/dist/types/ts3.4/ECRClient.d.ts +5 -2
  235. package/dist/types/ts3.4/commands/CreateRepositoryCommand.d.ts +1 -1
  236. package/dist/types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
  237. package/dist/types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -2
  238. package/dist/types/ts3.4/commands/GetDownloadUrlForLayerCommand.d.ts +2 -2
  239. package/dist/types/ts3.4/commands/PutImageTagMutabilityCommand.d.ts +2 -2
  240. package/dist/types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +2 -2
  241. package/dist/types/ts3.4/commands/PutRegistryPolicyCommand.d.ts +1 -1
  242. package/dist/types/ts3.4/commands/PutReplicationConfigurationCommand.d.ts +1 -1
  243. package/dist/types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +1 -1
  244. package/dist/types/ts3.4/commands/StartImageScanCommand.d.ts +3 -3
  245. package/dist/types/ts3.4/index.d.ts +1 -0
  246. package/dist/types/ts3.4/models/models_0.d.ts +210 -100
  247. package/dist/types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  248. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  249. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  250. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  251. package/index.ts +1 -0
  252. package/models/models_0.ts +246 -108
  253. package/package.json +40 -40
  254. package/protocols/Aws_json1_1.ts +242 -10
  255. package/tsconfig.es.json +0 -2
  256. package/tsconfig.json +3 -5
  257. package/tsconfig.types.json +8 -0
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecr",
3
3
  "description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
4
- "version": "3.30.0",
4
+ "version": "3.34.0",
5
5
  "scripts": {
6
- "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
- "build-documentation": "yarn remove-documentation && typedoc ./",
8
- "remove-definitions": "rimraf ./types",
9
- "remove-dist": "rimraf ./dist",
10
- "remove-documentation": "rimraf ./docs",
11
- "test": "exit 0",
6
+ "build": "yarn build:cjs && yarn build:es && yarn build:types",
12
7
  "build:cjs": "tsc -p tsconfig.json",
8
+ "build:docs": "yarn clean:docs && typedoc ./",
13
9
  "build:es": "tsc -p tsconfig.es.json",
14
- "build": "yarn build:cjs && yarn build:es",
15
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
10
+ "build:types": "tsc -p tsconfig.types.json",
11
+ "clean": "yarn clean:dist && yarn clean:docs",
12
+ "clean:dist": "rimraf ./dist",
13
+ "clean:docs": "rimraf ./docs",
14
+ "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
15
+ "test": "exit 0"
16
16
  },
17
17
  "main": "./dist/cjs/index.js",
18
18
  "types": "./dist/types/index.d.ts",
@@ -27,46 +27,46 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.30.0",
31
- "@aws-sdk/config-resolver": "3.30.0",
32
- "@aws-sdk/credential-provider-node": "3.30.0",
33
- "@aws-sdk/fetch-http-handler": "3.29.0",
34
- "@aws-sdk/hash-node": "3.29.0",
35
- "@aws-sdk/invalid-dependency": "3.29.0",
36
- "@aws-sdk/middleware-content-length": "3.29.0",
37
- "@aws-sdk/middleware-host-header": "3.29.0",
38
- "@aws-sdk/middleware-logger": "3.29.0",
39
- "@aws-sdk/middleware-retry": "3.29.0",
40
- "@aws-sdk/middleware-serde": "3.29.0",
41
- "@aws-sdk/middleware-signing": "3.30.0",
42
- "@aws-sdk/middleware-stack": "3.29.0",
43
- "@aws-sdk/middleware-user-agent": "3.29.0",
44
- "@aws-sdk/node-config-provider": "3.29.0",
45
- "@aws-sdk/node-http-handler": "3.29.0",
46
- "@aws-sdk/protocol-http": "3.29.0",
47
- "@aws-sdk/smithy-client": "3.30.0",
48
- "@aws-sdk/types": "3.29.0",
49
- "@aws-sdk/url-parser": "3.29.0",
50
- "@aws-sdk/util-base64-browser": "3.29.0",
51
- "@aws-sdk/util-base64-node": "3.29.0",
52
- "@aws-sdk/util-body-length-browser": "3.29.0",
53
- "@aws-sdk/util-body-length-node": "3.29.0",
54
- "@aws-sdk/util-user-agent-browser": "3.29.0",
55
- "@aws-sdk/util-user-agent-node": "3.29.0",
56
- "@aws-sdk/util-utf8-browser": "3.29.0",
57
- "@aws-sdk/util-utf8-node": "3.29.0",
58
- "@aws-sdk/util-waiter": "3.29.0",
30
+ "@aws-sdk/client-sts": "3.34.0",
31
+ "@aws-sdk/config-resolver": "3.34.0",
32
+ "@aws-sdk/credential-provider-node": "3.34.0",
33
+ "@aws-sdk/fetch-http-handler": "3.34.0",
34
+ "@aws-sdk/hash-node": "3.34.0",
35
+ "@aws-sdk/invalid-dependency": "3.34.0",
36
+ "@aws-sdk/middleware-content-length": "3.34.0",
37
+ "@aws-sdk/middleware-host-header": "3.34.0",
38
+ "@aws-sdk/middleware-logger": "3.34.0",
39
+ "@aws-sdk/middleware-retry": "3.34.0",
40
+ "@aws-sdk/middleware-serde": "3.34.0",
41
+ "@aws-sdk/middleware-signing": "3.34.0",
42
+ "@aws-sdk/middleware-stack": "3.34.0",
43
+ "@aws-sdk/middleware-user-agent": "3.34.0",
44
+ "@aws-sdk/node-config-provider": "3.34.0",
45
+ "@aws-sdk/node-http-handler": "3.34.0",
46
+ "@aws-sdk/protocol-http": "3.34.0",
47
+ "@aws-sdk/smithy-client": "3.34.0",
48
+ "@aws-sdk/types": "3.34.0",
49
+ "@aws-sdk/url-parser": "3.34.0",
50
+ "@aws-sdk/util-base64-browser": "3.34.0",
51
+ "@aws-sdk/util-base64-node": "3.34.0",
52
+ "@aws-sdk/util-body-length-browser": "3.34.0",
53
+ "@aws-sdk/util-body-length-node": "3.34.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.34.0",
55
+ "@aws-sdk/util-user-agent-node": "3.34.0",
56
+ "@aws-sdk/util-utf8-browser": "3.34.0",
57
+ "@aws-sdk/util-utf8-node": "3.34.0",
58
+ "@aws-sdk/util-waiter": "3.34.0",
59
59
  "tslib": "^2.3.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.29.0",
62
+ "@aws-sdk/client-documentation-generator": "3.34.0",
63
63
  "@types/node": "^12.7.5",
64
64
  "downlevel-dts": "0.7.0",
65
65
  "jest": "^26.1.0",
66
66
  "rimraf": "^3.0.0",
67
67
  "ts-jest": "^26.4.1",
68
68
  "typedoc": "^0.19.2",
69
- "typescript": "~4.4.2"
69
+ "typescript": "~4.3.5"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=10.0.0"
@@ -22,6 +22,10 @@ import {
22
22
  DeleteRepositoryPolicyCommandInput,
23
23
  DeleteRepositoryPolicyCommandOutput,
24
24
  } from "../commands/DeleteRepositoryPolicyCommand";
25
+ import {
26
+ DescribeImageReplicationStatusCommandInput,
27
+ DescribeImageReplicationStatusCommandOutput,
28
+ } from "../commands/DescribeImageReplicationStatusCommand";
25
29
  import {
26
30
  DescribeImageScanFindingsCommandInput,
27
31
  DescribeImageScanFindingsCommandOutput,
@@ -107,6 +111,8 @@ import {
107
111
  DeleteRepositoryPolicyResponse,
108
112
  DeleteRepositoryRequest,
109
113
  DeleteRepositoryResponse,
114
+ DescribeImageReplicationStatusRequest,
115
+ DescribeImageReplicationStatusResponse,
110
116
  DescribeImageScanFindingsRequest,
111
117
  DescribeImageScanFindingsResponse,
112
118
  DescribeImagesFilter,
@@ -138,6 +144,7 @@ import {
138
144
  ImageFailure,
139
145
  ImageIdentifier,
140
146
  ImageNotFoundException,
147
+ ImageReplicationStatus,
141
148
  ImageScanFinding,
142
149
  ImageScanFindings,
143
150
  ImageScanFindingsSummary,
@@ -189,6 +196,7 @@ import {
189
196
  ReplicationRule,
190
197
  Repository,
191
198
  RepositoryAlreadyExistsException,
199
+ RepositoryFilter,
192
200
  RepositoryNotEmptyException,
193
201
  RepositoryNotFoundException,
194
202
  RepositoryPolicyNotFoundException,
@@ -217,7 +225,10 @@ import {
217
225
  expectBoolean as __expectBoolean,
218
226
  expectInt32 as __expectInt32,
219
227
  expectLong as __expectLong,
228
+ expectNonNull as __expectNonNull,
229
+ expectNumber as __expectNumber,
220
230
  expectString as __expectString,
231
+ parseEpochTimestamp as __parseEpochTimestamp,
221
232
  } from "@aws-sdk/smithy-client";
222
233
  import {
223
234
  Endpoint as __Endpoint,
@@ -345,6 +356,19 @@ export const serializeAws_json1_1DeleteRepositoryPolicyCommand = async (
345
356
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
357
  };
347
358
 
359
+ export const serializeAws_json1_1DescribeImageReplicationStatusCommand = async (
360
+ input: DescribeImageReplicationStatusCommandInput,
361
+ context: __SerdeContext
362
+ ): Promise<__HttpRequest> => {
363
+ const headers: __HeaderBag = {
364
+ "content-type": "application/x-amz-json-1.1",
365
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus",
366
+ };
367
+ let body: any;
368
+ body = JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(input, context));
369
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
370
+ };
371
+
348
372
  export const serializeAws_json1_1DescribeImagesCommand = async (
349
373
  input: DescribeImagesCommandInput,
350
374
  context: __SerdeContext
@@ -1231,6 +1255,14 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (
1231
1255
  $metadata: deserializeMetadata(output),
1232
1256
  };
1233
1257
  break;
1258
+ case "ValidationException":
1259
+ case "com.amazonaws.ecr#ValidationException":
1260
+ response = {
1261
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1262
+ name: errorCode,
1263
+ $metadata: deserializeMetadata(output),
1264
+ };
1265
+ break;
1234
1266
  default:
1235
1267
  const parsedBody = parsedOutput.body;
1236
1268
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1412,6 +1444,92 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (
1412
1444
  return Promise.reject(Object.assign(new Error(message), response));
1413
1445
  };
1414
1446
 
1447
+ export const deserializeAws_json1_1DescribeImageReplicationStatusCommand = async (
1448
+ output: __HttpResponse,
1449
+ context: __SerdeContext
1450
+ ): Promise<DescribeImageReplicationStatusCommandOutput> => {
1451
+ if (output.statusCode >= 300) {
1452
+ return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(output, context);
1453
+ }
1454
+ const data: any = await parseBody(output.body, context);
1455
+ let contents: any = {};
1456
+ contents = deserializeAws_json1_1DescribeImageReplicationStatusResponse(data, context);
1457
+ const response: DescribeImageReplicationStatusCommandOutput = {
1458
+ $metadata: deserializeMetadata(output),
1459
+ ...contents,
1460
+ };
1461
+ return Promise.resolve(response);
1462
+ };
1463
+
1464
+ const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (
1465
+ output: __HttpResponse,
1466
+ context: __SerdeContext
1467
+ ): Promise<DescribeImageReplicationStatusCommandOutput> => {
1468
+ const parsedOutput: any = {
1469
+ ...output,
1470
+ body: await parseBody(output.body, context),
1471
+ };
1472
+ let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1473
+ let errorCode: string = "UnknownError";
1474
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1475
+ switch (errorCode) {
1476
+ case "ImageNotFoundException":
1477
+ case "com.amazonaws.ecr#ImageNotFoundException":
1478
+ response = {
1479
+ ...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
1480
+ name: errorCode,
1481
+ $metadata: deserializeMetadata(output),
1482
+ };
1483
+ break;
1484
+ case "InvalidParameterException":
1485
+ case "com.amazonaws.ecr#InvalidParameterException":
1486
+ response = {
1487
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
1488
+ name: errorCode,
1489
+ $metadata: deserializeMetadata(output),
1490
+ };
1491
+ break;
1492
+ case "RepositoryNotFoundException":
1493
+ case "com.amazonaws.ecr#RepositoryNotFoundException":
1494
+ response = {
1495
+ ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
1496
+ name: errorCode,
1497
+ $metadata: deserializeMetadata(output),
1498
+ };
1499
+ break;
1500
+ case "ServerException":
1501
+ case "com.amazonaws.ecr#ServerException":
1502
+ response = {
1503
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
1504
+ name: errorCode,
1505
+ $metadata: deserializeMetadata(output),
1506
+ };
1507
+ break;
1508
+ case "ValidationException":
1509
+ case "com.amazonaws.ecr#ValidationException":
1510
+ response = {
1511
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1512
+ name: errorCode,
1513
+ $metadata: deserializeMetadata(output),
1514
+ };
1515
+ break;
1516
+ default:
1517
+ const parsedBody = parsedOutput.body;
1518
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1519
+ response = {
1520
+ ...parsedBody,
1521
+ name: `${errorCode}`,
1522
+ message: parsedBody.message || parsedBody.Message || errorCode,
1523
+ $fault: "client",
1524
+ $metadata: deserializeMetadata(output),
1525
+ } as any;
1526
+ }
1527
+ const message = response.message || response.Message || errorCode;
1528
+ response.message = message;
1529
+ delete response.Message;
1530
+ return Promise.reject(Object.assign(new Error(message), response));
1531
+ };
1532
+
1415
1533
  export const deserializeAws_json1_1DescribeImagesCommand = async (
1416
1534
  output: __HttpResponse,
1417
1535
  context: __SerdeContext
@@ -2073,6 +2191,14 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (
2073
2191
  $metadata: deserializeMetadata(output),
2074
2192
  };
2075
2193
  break;
2194
+ case "ValidationException":
2195
+ case "com.amazonaws.ecr#ValidationException":
2196
+ response = {
2197
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2198
+ name: errorCode,
2199
+ $metadata: deserializeMetadata(output),
2200
+ };
2201
+ break;
2076
2202
  default:
2077
2203
  const parsedBody = parsedOutput.body;
2078
2204
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2767,6 +2893,14 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (
2767
2893
  $metadata: deserializeMetadata(output),
2768
2894
  };
2769
2895
  break;
2896
+ case "ValidationException":
2897
+ case "com.amazonaws.ecr#ValidationException":
2898
+ response = {
2899
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2900
+ name: errorCode,
2901
+ $metadata: deserializeMetadata(output),
2902
+ };
2903
+ break;
2770
2904
  default:
2771
2905
  const parsedBody = parsedOutput.body;
2772
2906
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3909,6 +4043,7 @@ const serializeAws_json1_1CreateRepositoryRequest = (input: CreateRepositoryRequ
3909
4043
  }),
3910
4044
  ...(input.imageTagMutability !== undefined &&
3911
4045
  input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability }),
4046
+ ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3912
4047
  ...(input.repositoryName !== undefined &&
3913
4048
  input.repositoryName !== null && { repositoryName: input.repositoryName }),
3914
4049
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
@@ -3953,6 +4088,19 @@ const serializeAws_json1_1DeleteRepositoryRequest = (input: DeleteRepositoryRequ
3953
4088
  };
3954
4089
  };
3955
4090
 
4091
+ const serializeAws_json1_1DescribeImageReplicationStatusRequest = (
4092
+ input: DescribeImageReplicationStatusRequest,
4093
+ context: __SerdeContext
4094
+ ): any => {
4095
+ return {
4096
+ ...(input.imageId !== undefined &&
4097
+ input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
4098
+ ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
4099
+ ...(input.repositoryName !== undefined &&
4100
+ input.repositoryName !== null && { repositoryName: input.repositoryName }),
4101
+ };
4102
+ };
4103
+
3956
4104
  const serializeAws_json1_1DescribeImageScanFindingsRequest = (
3957
4105
  input: DescribeImageScanFindingsRequest,
3958
4106
  context: __SerdeContext
@@ -4307,6 +4455,10 @@ const serializeAws_json1_1ReplicationRule = (input: ReplicationRule, context: __
4307
4455
  input.destinations !== null && {
4308
4456
  destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
4309
4457
  }),
4458
+ ...(input.repositoryFilters !== undefined &&
4459
+ input.repositoryFilters !== null && {
4460
+ repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
4461
+ }),
4310
4462
  };
4311
4463
  };
4312
4464
 
@@ -4321,6 +4473,24 @@ const serializeAws_json1_1ReplicationRuleList = (input: ReplicationRule[], conte
4321
4473
  });
4322
4474
  };
4323
4475
 
4476
+ const serializeAws_json1_1RepositoryFilter = (input: RepositoryFilter, context: __SerdeContext): any => {
4477
+ return {
4478
+ ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
4479
+ ...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }),
4480
+ };
4481
+ };
4482
+
4483
+ const serializeAws_json1_1RepositoryFilterList = (input: RepositoryFilter[], context: __SerdeContext): any => {
4484
+ return input
4485
+ .filter((e: any) => e != null)
4486
+ .map((entry) => {
4487
+ if (entry === null) {
4488
+ return null as any;
4489
+ }
4490
+ return serializeAws_json1_1RepositoryFilter(entry, context);
4491
+ });
4492
+ };
4493
+
4324
4494
  const serializeAws_json1_1RepositoryNameList = (input: string[], context: __SerdeContext): any => {
4325
4495
  return input
4326
4496
  .filter((e: any) => e != null)
@@ -4448,7 +4618,7 @@ const deserializeAws_json1_1AuthorizationData = (output: any, context: __SerdeCo
4448
4618
  authorizationToken: __expectString(output.authorizationToken),
4449
4619
  expiresAt:
4450
4620
  output.expiresAt !== undefined && output.expiresAt !== null
4451
- ? new Date(Math.round(output.expiresAt * 1000))
4621
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt)))
4452
4622
  : undefined,
4453
4623
  proxyEndpoint: __expectString(output.proxyEndpoint),
4454
4624
  } as any;
@@ -4541,7 +4711,7 @@ const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (
4541
4711
  return {
4542
4712
  lastEvaluatedAt:
4543
4713
  output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
4544
- ? new Date(Math.round(output.lastEvaluatedAt * 1000))
4714
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
4545
4715
  : undefined,
4546
4716
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
4547
4717
  registryId: __expectString(output.registryId),
@@ -4582,6 +4752,23 @@ const deserializeAws_json1_1DeleteRepositoryResponse = (
4582
4752
  } as any;
4583
4753
  };
4584
4754
 
4755
+ const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (
4756
+ output: any,
4757
+ context: __SerdeContext
4758
+ ): DescribeImageReplicationStatusResponse => {
4759
+ return {
4760
+ imageId:
4761
+ output.imageId !== undefined && output.imageId !== null
4762
+ ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4763
+ : undefined,
4764
+ replicationStatuses:
4765
+ output.replicationStatuses !== undefined && output.replicationStatuses !== null
4766
+ ? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
4767
+ : undefined,
4768
+ repositoryName: __expectString(output.repositoryName),
4769
+ } as any;
4770
+ };
4771
+
4585
4772
  const deserializeAws_json1_1DescribeImageScanFindingsResponse = (
4586
4773
  output: any,
4587
4774
  context: __SerdeContext
@@ -4725,7 +4912,7 @@ const deserializeAws_json1_1GetLifecyclePolicyResponse = (
4725
4912
  return {
4726
4913
  lastEvaluatedAt:
4727
4914
  output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
4728
- ? new Date(Math.round(output.lastEvaluatedAt * 1000))
4915
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
4729
4916
  : undefined,
4730
4917
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
4731
4918
  registryId: __expectString(output.registryId),
@@ -4783,7 +4970,7 @@ const deserializeAws_json1_1ImageDetail = (output: any, context: __SerdeContext)
4783
4970
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
4784
4971
  imagePushedAt:
4785
4972
  output.imagePushedAt !== undefined && output.imagePushedAt !== null
4786
- ? new Date(Math.round(output.imagePushedAt * 1000))
4973
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
4787
4974
  : undefined,
4788
4975
  imageScanFindingsSummary:
4789
4976
  output.imageScanFindingsSummary !== undefined && output.imageScanFindingsSummary !== null
@@ -4880,6 +5067,29 @@ const deserializeAws_json1_1ImageNotFoundException = (output: any, context: __Se
4880
5067
  } as any;
4881
5068
  };
4882
5069
 
5070
+ const deserializeAws_json1_1ImageReplicationStatus = (output: any, context: __SerdeContext): ImageReplicationStatus => {
5071
+ return {
5072
+ failureCode: __expectString(output.failureCode),
5073
+ region: __expectString(output.region),
5074
+ registryId: __expectString(output.registryId),
5075
+ status: __expectString(output.status),
5076
+ } as any;
5077
+ };
5078
+
5079
+ const deserializeAws_json1_1ImageReplicationStatusList = (
5080
+ output: any,
5081
+ context: __SerdeContext
5082
+ ): ImageReplicationStatus[] => {
5083
+ return (output || [])
5084
+ .filter((e: any) => e != null)
5085
+ .map((entry: any) => {
5086
+ if (entry === null) {
5087
+ return null as any;
5088
+ }
5089
+ return deserializeAws_json1_1ImageReplicationStatus(entry, context);
5090
+ });
5091
+ };
5092
+
4883
5093
  const deserializeAws_json1_1ImageScanFinding = (output: any, context: __SerdeContext): ImageScanFinding => {
4884
5094
  return {
4885
5095
  attributes:
@@ -4916,11 +5126,11 @@ const deserializeAws_json1_1ImageScanFindings = (output: any, context: __SerdeCo
4916
5126
  : undefined,
4917
5127
  imageScanCompletedAt:
4918
5128
  output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
4919
- ? new Date(Math.round(output.imageScanCompletedAt * 1000))
5129
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
4920
5130
  : undefined,
4921
5131
  vulnerabilitySourceUpdatedAt:
4922
5132
  output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
4923
- ? new Date(Math.round(output.vulnerabilitySourceUpdatedAt * 1000))
5133
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vulnerabilitySourceUpdatedAt)))
4924
5134
  : undefined,
4925
5135
  } as any;
4926
5136
  };
@@ -4936,11 +5146,11 @@ const deserializeAws_json1_1ImageScanFindingsSummary = (
4936
5146
  : undefined,
4937
5147
  imageScanCompletedAt:
4938
5148
  output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
4939
- ? new Date(Math.round(output.imageScanCompletedAt * 1000))
5149
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
4940
5150
  : undefined,
4941
5151
  vulnerabilitySourceUpdatedAt:
4942
5152
  output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
4943
- ? new Date(Math.round(output.vulnerabilitySourceUpdatedAt * 1000))
5153
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vulnerabilitySourceUpdatedAt)))
4944
5154
  : undefined,
4945
5155
  } as any;
4946
5156
  };
@@ -5150,7 +5360,7 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResult = (
5150
5360
  imageDigest: __expectString(output.imageDigest),
5151
5361
  imagePushedAt:
5152
5362
  output.imagePushedAt !== undefined && output.imagePushedAt !== null
5153
- ? new Date(Math.round(output.imagePushedAt * 1000))
5363
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
5154
5364
  : undefined,
5155
5365
  imageTags:
5156
5366
  output.imageTags !== undefined && output.imageTags !== null
@@ -5343,6 +5553,10 @@ const deserializeAws_json1_1ReplicationRule = (output: any, context: __SerdeCont
5343
5553
  output.destinations !== undefined && output.destinations !== null
5344
5554
  ? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
5345
5555
  : undefined,
5556
+ repositoryFilters:
5557
+ output.repositoryFilters !== undefined && output.repositoryFilters !== null
5558
+ ? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
5559
+ : undefined,
5346
5560
  } as any;
5347
5561
  };
5348
5562
 
@@ -5361,7 +5575,7 @@ const deserializeAws_json1_1Repository = (output: any, context: __SerdeContext):
5361
5575
  return {
5362
5576
  createdAt:
5363
5577
  output.createdAt !== undefined && output.createdAt !== null
5364
- ? new Date(Math.round(output.createdAt * 1000))
5578
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
5365
5579
  : undefined,
5366
5580
  encryptionConfiguration:
5367
5581
  output.encryptionConfiguration !== undefined && output.encryptionConfiguration !== null
@@ -5388,6 +5602,24 @@ const deserializeAws_json1_1RepositoryAlreadyExistsException = (
5388
5602
  } as any;
5389
5603
  };
5390
5604
 
5605
+ const deserializeAws_json1_1RepositoryFilter = (output: any, context: __SerdeContext): RepositoryFilter => {
5606
+ return {
5607
+ filter: __expectString(output.filter),
5608
+ filterType: __expectString(output.filterType),
5609
+ } as any;
5610
+ };
5611
+
5612
+ const deserializeAws_json1_1RepositoryFilterList = (output: any, context: __SerdeContext): RepositoryFilter[] => {
5613
+ return (output || [])
5614
+ .filter((e: any) => e != null)
5615
+ .map((entry: any) => {
5616
+ if (entry === null) {
5617
+ return null as any;
5618
+ }
5619
+ return deserializeAws_json1_1RepositoryFilter(entry, context);
5620
+ });
5621
+ };
5622
+
5391
5623
  const deserializeAws_json1_1RepositoryList = (output: any, context: __SerdeContext): Repository[] => {
5392
5624
  return (output || [])
5393
5625
  .filter((e: any) => e != null)
package/tsconfig.es.json CHANGED
@@ -4,8 +4,6 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
8
  "outDir": "dist/es"
11
9
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,9 +11,8 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
14
  "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
15
+ "removeComments": true
18
16
  },
19
17
  "typedocOptions": {
20
18
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -24,9 +22,9 @@
24
22
  "ignoreCompilerErrors": true,
25
23
  "includeDeclarations": true,
26
24
  "stripInternal": true,
27
- "readme": "./README.md",
25
+ "readme": "README.md",
28
26
  "mode": "file",
29
- "out": "./docs",
27
+ "out": "docs",
30
28
  "theme": "minimal",
31
29
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
30
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist/types"
7
+ }
8
+ }