@aws-sdk/client-ecr-public 3.35.0 → 3.38.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 (241) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ECRPUBLIC.js +0 -10
  3. package/dist-cjs/ECRPUBLICClient.js +0 -15
  4. package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +0 -31
  5. package/dist-cjs/commands/BatchDeleteImageCommand.js +0 -30
  6. package/dist-cjs/commands/CompleteLayerUploadCommand.js +0 -32
  7. package/dist-cjs/commands/CreateRepositoryCommand.js +0 -26
  8. package/dist-cjs/commands/DeleteRepositoryCommand.js +0 -27
  9. package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +0 -25
  10. package/dist-cjs/commands/DescribeImageTagsCommand.js +0 -25
  11. package/dist-cjs/commands/DescribeImagesCommand.js +0 -31
  12. package/dist-cjs/commands/DescribeRegistriesCommand.js +0 -25
  13. package/dist-cjs/commands/DescribeRepositoriesCommand.js +0 -25
  14. package/dist-cjs/commands/GetAuthorizationTokenCommand.js +0 -29
  15. package/dist-cjs/commands/GetRegistryCatalogDataCommand.js +0 -25
  16. package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js +0 -26
  17. package/dist-cjs/commands/GetRepositoryPolicyCommand.js +0 -25
  18. package/dist-cjs/commands/InitiateLayerUploadCommand.js +0 -31
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  20. package/dist-cjs/commands/PutImageCommand.js +0 -32
  21. package/dist-cjs/commands/PutRegistryCatalogDataCommand.js +0 -25
  22. package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js +0 -25
  23. package/dist-cjs/commands/SetRepositoryPolicyCommand.js +0 -27
  24. package/dist-cjs/commands/TagResourceCommand.js +0 -28
  25. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  26. package/dist-cjs/commands/UploadLayerPartCommand.js +0 -31
  27. package/dist-cjs/commands/index.js +26 -0
  28. package/dist-cjs/endpoints.js +1 -2
  29. package/dist-cjs/index.js +4 -31
  30. package/dist-cjs/models/index.js +0 -1
  31. package/dist-cjs/models/models_0.js +0 -256
  32. package/dist-cjs/pagination/DescribeImageTagsPaginator.js +0 -11
  33. package/dist-cjs/pagination/DescribeImagesPaginator.js +0 -11
  34. package/dist-cjs/pagination/DescribeRegistriesPaginator.js +0 -11
  35. package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +0 -11
  36. package/dist-cjs/pagination/Interfaces.js +0 -1
  37. package/dist-cjs/pagination/index.js +8 -0
  38. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  39. package/dist-cjs/runtimeConfig.browser.js +1 -6
  40. package/dist-cjs/runtimeConfig.js +2 -7
  41. package/dist-cjs/runtimeConfig.native.js +0 -4
  42. package/dist-cjs/runtimeConfig.shared.js +0 -4
  43. package/dist-es/ECRPUBLIC.js +0 -1
  44. package/dist-es/ECRPUBLICClient.js +0 -1
  45. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +0 -1
  46. package/dist-es/commands/BatchDeleteImageCommand.js +0 -1
  47. package/dist-es/commands/CompleteLayerUploadCommand.js +0 -1
  48. package/dist-es/commands/CreateRepositoryCommand.js +0 -1
  49. package/dist-es/commands/DeleteRepositoryCommand.js +0 -1
  50. package/dist-es/commands/DeleteRepositoryPolicyCommand.js +0 -1
  51. package/dist-es/commands/DescribeImageTagsCommand.js +0 -1
  52. package/dist-es/commands/DescribeImagesCommand.js +0 -1
  53. package/dist-es/commands/DescribeRegistriesCommand.js +0 -1
  54. package/dist-es/commands/DescribeRepositoriesCommand.js +0 -1
  55. package/dist-es/commands/GetAuthorizationTokenCommand.js +0 -1
  56. package/dist-es/commands/GetRegistryCatalogDataCommand.js +0 -1
  57. package/dist-es/commands/GetRepositoryCatalogDataCommand.js +0 -1
  58. package/dist-es/commands/GetRepositoryPolicyCommand.js +0 -1
  59. package/dist-es/commands/InitiateLayerUploadCommand.js +0 -1
  60. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  61. package/dist-es/commands/PutImageCommand.js +0 -1
  62. package/dist-es/commands/PutRegistryCatalogDataCommand.js +0 -1
  63. package/dist-es/commands/PutRepositoryCatalogDataCommand.js +0 -1
  64. package/dist-es/commands/SetRepositoryPolicyCommand.js +0 -1
  65. package/dist-es/commands/TagResourceCommand.js +0 -1
  66. package/dist-es/commands/UntagResourceCommand.js +0 -1
  67. package/dist-es/commands/UploadLayerPartCommand.js +0 -1
  68. package/dist-es/commands/index.js +23 -0
  69. package/dist-es/endpoints.js +1 -2
  70. package/dist-es/index.js +4 -31
  71. package/dist-es/models/index.js +0 -1
  72. package/dist-es/models/models_0.js +0 -1
  73. package/dist-es/pagination/DescribeImageTagsPaginator.js +0 -1
  74. package/dist-es/pagination/DescribeImagesPaginator.js +0 -1
  75. package/dist-es/pagination/DescribeRegistriesPaginator.js +0 -1
  76. package/dist-es/pagination/DescribeRepositoriesPaginator.js +0 -1
  77. package/dist-es/pagination/Interfaces.js +0 -1
  78. package/dist-es/pagination/index.js +5 -0
  79. package/dist-es/protocols/Aws_json1_1.js +0 -1
  80. package/dist-es/runtimeConfig.browser.js +1 -2
  81. package/dist-es/runtimeConfig.js +2 -3
  82. package/dist-es/runtimeConfig.native.js +0 -1
  83. package/dist-es/runtimeConfig.shared.js +0 -1
  84. package/dist-types/commands/index.d.ts +23 -0
  85. package/dist-types/index.d.ts +4 -30
  86. package/dist-types/pagination/index.d.ts +5 -0
  87. package/dist-types/ts3.4/ECRPUBLIC.d.ts +24 -134
  88. package/dist-types/ts3.4/ECRPUBLICClient.d.ts +24 -95
  89. package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -26
  90. package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +2 -25
  91. package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +2 -27
  92. package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +2 -21
  93. package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +2 -22
  94. package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +2 -20
  95. package/dist-types/ts3.4/commands/DescribeImageTagsCommand.d.ts +2 -20
  96. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +2 -26
  97. package/dist-types/ts3.4/commands/DescribeRegistriesCommand.d.ts +2 -20
  98. package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +2 -20
  99. package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -24
  100. package/dist-types/ts3.4/commands/GetRegistryCatalogDataCommand.d.ts +2 -20
  101. package/dist-types/ts3.4/commands/GetRepositoryCatalogDataCommand.d.ts +2 -21
  102. package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +2 -26
  104. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  105. package/dist-types/ts3.4/commands/PutImageCommand.d.ts +2 -27
  106. package/dist-types/ts3.4/commands/PutRegistryCatalogDataCommand.d.ts +2 -20
  107. package/dist-types/ts3.4/commands/PutRepositoryCatalogDataCommand.d.ts +2 -20
  108. package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +2 -22
  109. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
  110. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +2 -26
  112. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  113. package/dist-types/ts3.4/index.d.ts +4 -30
  114. package/dist-types/ts3.4/models/models_0.d.ts +298 -1145
  115. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  116. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  117. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  118. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  119. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  120. package/package.json +33 -30
  121. package/dist-cjs/ECRPUBLIC.js.map +0 -1
  122. package/dist-cjs/ECRPUBLICClient.js.map +0 -1
  123. package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
  124. package/dist-cjs/commands/BatchDeleteImageCommand.js.map +0 -1
  125. package/dist-cjs/commands/CompleteLayerUploadCommand.js.map +0 -1
  126. package/dist-cjs/commands/CreateRepositoryCommand.js.map +0 -1
  127. package/dist-cjs/commands/DeleteRepositoryCommand.js.map +0 -1
  128. package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
  129. package/dist-cjs/commands/DescribeImageTagsCommand.js.map +0 -1
  130. package/dist-cjs/commands/DescribeImagesCommand.js.map +0 -1
  131. package/dist-cjs/commands/DescribeRegistriesCommand.js.map +0 -1
  132. package/dist-cjs/commands/DescribeRepositoriesCommand.js.map +0 -1
  133. package/dist-cjs/commands/GetAuthorizationTokenCommand.js.map +0 -1
  134. package/dist-cjs/commands/GetRegistryCatalogDataCommand.js.map +0 -1
  135. package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
  136. package/dist-cjs/commands/GetRepositoryPolicyCommand.js.map +0 -1
  137. package/dist-cjs/commands/InitiateLayerUploadCommand.js.map +0 -1
  138. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  139. package/dist-cjs/commands/PutImageCommand.js.map +0 -1
  140. package/dist-cjs/commands/PutRegistryCatalogDataCommand.js.map +0 -1
  141. package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
  142. package/dist-cjs/commands/SetRepositoryPolicyCommand.js.map +0 -1
  143. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  144. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  145. package/dist-cjs/commands/UploadLayerPartCommand.js.map +0 -1
  146. package/dist-cjs/endpoints.js.map +0 -1
  147. package/dist-cjs/index.js.map +0 -1
  148. package/dist-cjs/models/index.js.map +0 -1
  149. package/dist-cjs/models/models_0.js.map +0 -1
  150. package/dist-cjs/pagination/DescribeImageTagsPaginator.js.map +0 -1
  151. package/dist-cjs/pagination/DescribeImagesPaginator.js.map +0 -1
  152. package/dist-cjs/pagination/DescribeRegistriesPaginator.js.map +0 -1
  153. package/dist-cjs/pagination/DescribeRepositoriesPaginator.js.map +0 -1
  154. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  155. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  156. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  157. package/dist-cjs/runtimeConfig.js.map +0 -1
  158. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  159. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  160. package/dist-es/ECRPUBLIC.js.map +0 -1
  161. package/dist-es/ECRPUBLICClient.js.map +0 -1
  162. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
  163. package/dist-es/commands/BatchDeleteImageCommand.js.map +0 -1
  164. package/dist-es/commands/CompleteLayerUploadCommand.js.map +0 -1
  165. package/dist-es/commands/CreateRepositoryCommand.js.map +0 -1
  166. package/dist-es/commands/DeleteRepositoryCommand.js.map +0 -1
  167. package/dist-es/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
  168. package/dist-es/commands/DescribeImageTagsCommand.js.map +0 -1
  169. package/dist-es/commands/DescribeImagesCommand.js.map +0 -1
  170. package/dist-es/commands/DescribeRegistriesCommand.js.map +0 -1
  171. package/dist-es/commands/DescribeRepositoriesCommand.js.map +0 -1
  172. package/dist-es/commands/GetAuthorizationTokenCommand.js.map +0 -1
  173. package/dist-es/commands/GetRegistryCatalogDataCommand.js.map +0 -1
  174. package/dist-es/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
  175. package/dist-es/commands/GetRepositoryPolicyCommand.js.map +0 -1
  176. package/dist-es/commands/InitiateLayerUploadCommand.js.map +0 -1
  177. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  178. package/dist-es/commands/PutImageCommand.js.map +0 -1
  179. package/dist-es/commands/PutRegistryCatalogDataCommand.js.map +0 -1
  180. package/dist-es/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
  181. package/dist-es/commands/SetRepositoryPolicyCommand.js.map +0 -1
  182. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  183. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  184. package/dist-es/commands/UploadLayerPartCommand.js.map +0 -1
  185. package/dist-es/endpoints.js.map +0 -1
  186. package/dist-es/index.js.map +0 -1
  187. package/dist-es/models/index.js.map +0 -1
  188. package/dist-es/models/models_0.js.map +0 -1
  189. package/dist-es/pagination/DescribeImageTagsPaginator.js.map +0 -1
  190. package/dist-es/pagination/DescribeImagesPaginator.js.map +0 -1
  191. package/dist-es/pagination/DescribeRegistriesPaginator.js.map +0 -1
  192. package/dist-es/pagination/DescribeRepositoriesPaginator.js.map +0 -1
  193. package/dist-es/pagination/Interfaces.js.map +0 -1
  194. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  195. package/dist-es/runtimeConfig.browser.js.map +0 -1
  196. package/dist-es/runtimeConfig.js.map +0 -1
  197. package/dist-es/runtimeConfig.native.js.map +0 -1
  198. package/dist-es/runtimeConfig.shared.js.map +0 -1
  199. package/jest.config.js +0 -4
  200. package/src/ECRPUBLIC.ts +0 -901
  201. package/src/ECRPUBLICClient.ts +0 -350
  202. package/src/commands/BatchCheckLayerAvailabilityCommand.ts +0 -106
  203. package/src/commands/BatchDeleteImageCommand.ts +0 -100
  204. package/src/commands/CompleteLayerUploadCommand.ts +0 -102
  205. package/src/commands/CreateRepositoryCommand.ts +0 -96
  206. package/src/commands/DeleteRepositoryCommand.ts +0 -97
  207. package/src/commands/DeleteRepositoryPolicyCommand.ts +0 -95
  208. package/src/commands/DescribeImageTagsCommand.ts +0 -95
  209. package/src/commands/DescribeImagesCommand.ts +0 -101
  210. package/src/commands/DescribeRegistriesCommand.ts +0 -95
  211. package/src/commands/DescribeRepositoriesCommand.ts +0 -95
  212. package/src/commands/GetAuthorizationTokenCommand.ts +0 -99
  213. package/src/commands/GetRegistryCatalogDataCommand.ts +0 -95
  214. package/src/commands/GetRepositoryCatalogDataCommand.ts +0 -96
  215. package/src/commands/GetRepositoryPolicyCommand.ts +0 -95
  216. package/src/commands/InitiateLayerUploadCommand.ts +0 -101
  217. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  218. package/src/commands/PutImageCommand.ts +0 -99
  219. package/src/commands/PutRegistryCatalogDataCommand.ts +0 -95
  220. package/src/commands/PutRepositoryCatalogDataCommand.ts +0 -95
  221. package/src/commands/SetRepositoryPolicyCommand.ts +0 -97
  222. package/src/commands/TagResourceCommand.ts +0 -98
  223. package/src/commands/UntagResourceCommand.ts +0 -95
  224. package/src/commands/UploadLayerPartCommand.ts +0 -101
  225. package/src/endpoints.ts +0 -57
  226. package/src/index.ts +0 -31
  227. package/src/models/index.ts +0 -1
  228. package/src/models/models_0.ts +0 -2292
  229. package/src/pagination/DescribeImageTagsPaginator.ts +0 -59
  230. package/src/pagination/DescribeImagesPaginator.ts +0 -59
  231. package/src/pagination/DescribeRegistriesPaginator.ts +0 -59
  232. package/src/pagination/DescribeRepositoriesPaginator.ts +0 -59
  233. package/src/pagination/Interfaces.ts +0 -8
  234. package/src/protocols/Aws_json1_1.ts +0 -3913
  235. package/src/runtimeConfig.browser.ts +0 -41
  236. package/src/runtimeConfig.native.ts +0 -17
  237. package/src/runtimeConfig.shared.ts +0 -17
  238. package/src/runtimeConfig.ts +0 -46
  239. package/tsconfig.es.json +0 -10
  240. package/tsconfig.json +0 -33
  241. package/tsconfig.types.json +0 -9
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
15
- import { CreateRepositoryRequest, CreateRepositoryResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1CreateRepositoryCommand,
18
- serializeAws_json1_1CreateRepositoryCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface CreateRepositoryCommandInput extends CreateRepositoryRequest {}
22
- export interface CreateRepositoryCommandOutput extends CreateRepositoryResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates a repository in a public registry. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html">Amazon ECR
26
- * repositories</a> in the <i>Amazon Elastic Container Registry User Guide</i>.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { ECRPUBLICClient, CreateRepositoryCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
31
- * // const { ECRPUBLICClient, CreateRepositoryCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
32
- * const client = new ECRPUBLICClient(config);
33
- * const command = new CreateRepositoryCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link CreateRepositoryCommandInput} for command's `input` shape.
38
- * @see {@link CreateRepositoryCommandOutput} for command's `response` shape.
39
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class CreateRepositoryCommand extends $Command<
43
- CreateRepositoryCommandInput,
44
- CreateRepositoryCommandOutput,
45
- ECRPUBLICClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: CreateRepositoryCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: ECRPUBLICClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<CreateRepositoryCommandInput, CreateRepositoryCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "ECRPUBLICClient";
70
- const commandName = "CreateRepositoryCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: CreateRepositoryRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: CreateRepositoryResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: CreateRepositoryCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1CreateRepositoryCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateRepositoryCommandOutput> {
91
- return deserializeAws_json1_1CreateRepositoryCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,97 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
15
- import { DeleteRepositoryRequest, DeleteRepositoryResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DeleteRepositoryCommand,
18
- serializeAws_json1_1DeleteRepositoryCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DeleteRepositoryCommandInput extends DeleteRepositoryRequest {}
22
- export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes a repository in a public registry. If the repository contains images, you must
26
- * either delete all images in the repository or use the <code>force</code> option which
27
- * deletes all images on your behalf before deleting the repository.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { ECRPUBLICClient, DeleteRepositoryCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
32
- * // const { ECRPUBLICClient, DeleteRepositoryCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
33
- * const client = new ECRPUBLICClient(config);
34
- * const command = new DeleteRepositoryCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link DeleteRepositoryCommandInput} for command's `input` shape.
39
- * @see {@link DeleteRepositoryCommandOutput} for command's `response` shape.
40
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class DeleteRepositoryCommand extends $Command<
44
- DeleteRepositoryCommandInput,
45
- DeleteRepositoryCommandOutput,
46
- ECRPUBLICClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: DeleteRepositoryCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: ECRPUBLICClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "ECRPUBLICClient";
71
- const commandName = "DeleteRepositoryCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: DeleteRepositoryRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: DeleteRepositoryResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: DeleteRepositoryCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_1DeleteRepositoryCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteRepositoryCommandOutput> {
92
- return deserializeAws_json1_1DeleteRepositoryCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
15
- import { DeleteRepositoryPolicyRequest, DeleteRepositoryPolicyResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DeleteRepositoryPolicyCommand,
18
- serializeAws_json1_1DeleteRepositoryPolicyCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DeleteRepositoryPolicyCommandInput extends DeleteRepositoryPolicyRequest {}
22
- export interface DeleteRepositoryPolicyCommandOutput extends DeleteRepositoryPolicyResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes the repository policy associated with the specified repository.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ECRPUBLICClient, DeleteRepositoryPolicyCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
- * // const { ECRPUBLICClient, DeleteRepositoryPolicyCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
- * const client = new ECRPUBLICClient(config);
32
- * const command = new DeleteRepositoryPolicyCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DeleteRepositoryPolicyCommandInput} for command's `input` shape.
37
- * @see {@link DeleteRepositoryPolicyCommandOutput} for command's `response` shape.
38
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DeleteRepositoryPolicyCommand extends $Command<
42
- DeleteRepositoryPolicyCommandInput,
43
- DeleteRepositoryPolicyCommandOutput,
44
- ECRPUBLICClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DeleteRepositoryPolicyCommandInput) {
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: ECRPUBLICClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput> {
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 = "ECRPUBLICClient";
69
- const commandName = "DeleteRepositoryPolicyCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DeleteRepositoryPolicyRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DeleteRepositoryPolicyResponse.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: DeleteRepositoryPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1DeleteRepositoryPolicyCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteRepositoryPolicyCommandOutput> {
90
- return deserializeAws_json1_1DeleteRepositoryPolicyCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
15
- import { DescribeImageTagsRequest, DescribeImageTagsResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeImageTagsCommand,
18
- serializeAws_json1_1DescribeImageTagsCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeImageTagsCommandInput extends DescribeImageTagsRequest {}
22
- export interface DescribeImageTagsCommandOutput extends DescribeImageTagsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns the image tag details for a repository in a public registry.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ECRPUBLICClient, DescribeImageTagsCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
- * // const { ECRPUBLICClient, DescribeImageTagsCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
- * const client = new ECRPUBLICClient(config);
32
- * const command = new DescribeImageTagsCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DescribeImageTagsCommandInput} for command's `input` shape.
37
- * @see {@link DescribeImageTagsCommandOutput} for command's `response` shape.
38
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DescribeImageTagsCommand extends $Command<
42
- DescribeImageTagsCommandInput,
43
- DescribeImageTagsCommandOutput,
44
- ECRPUBLICClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DescribeImageTagsCommandInput) {
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: ECRPUBLICClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput> {
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 = "ECRPUBLICClient";
69
- const commandName = "DescribeImageTagsCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DescribeImageTagsRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DescribeImageTagsResponse.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: DescribeImageTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1DescribeImageTagsCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeImageTagsCommandOutput> {
90
- return deserializeAws_json1_1DescribeImageTagsCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,101 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
15
- import { DescribeImagesRequest, DescribeImagesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeImagesCommand,
18
- serializeAws_json1_1DescribeImagesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeImagesCommandInput extends DescribeImagesRequest {}
22
- export interface DescribeImagesCommandOutput extends DescribeImagesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns metadata about the images in a repository in a public registry.</p>
26
- * <note>
27
- * <p>Beginning with Docker version 1.9, the Docker client compresses image layers before
28
- * pushing them to a V2 Docker registry. The output of the <code>docker images</code>
29
- * command shows the uncompressed image size, so it may return a larger image size than the
30
- * image sizes returned by <a>DescribeImages</a>.</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 { ECRPUBLICClient, DescribeImagesCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
36
- * // const { ECRPUBLICClient, DescribeImagesCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
37
- * const client = new ECRPUBLICClient(config);
38
- * const command = new DescribeImagesCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link DescribeImagesCommandInput} for command's `input` shape.
43
- * @see {@link DescribeImagesCommandOutput} for command's `response` shape.
44
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class DescribeImagesCommand extends $Command<
48
- DescribeImagesCommandInput,
49
- DescribeImagesCommandOutput,
50
- ECRPUBLICClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: DescribeImagesCommandInput) {
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: ECRPUBLICClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<DescribeImagesCommandInput, DescribeImagesCommandOutput> {
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 = "ECRPUBLICClient";
75
- const commandName = "DescribeImagesCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: DescribeImagesRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: DescribeImagesResponse.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: DescribeImagesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_1DescribeImagesCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeImagesCommandOutput> {
96
- return deserializeAws_json1_1DescribeImagesCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
15
- import { DescribeRegistriesRequest, DescribeRegistriesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeRegistriesCommand,
18
- serializeAws_json1_1DescribeRegistriesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeRegistriesCommandInput extends DescribeRegistriesRequest {}
22
- export interface DescribeRegistriesCommandOutput extends DescribeRegistriesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns details for a public registry.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ECRPUBLICClient, DescribeRegistriesCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
- * // const { ECRPUBLICClient, DescribeRegistriesCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
- * const client = new ECRPUBLICClient(config);
32
- * const command = new DescribeRegistriesCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DescribeRegistriesCommandInput} for command's `input` shape.
37
- * @see {@link DescribeRegistriesCommandOutput} for command's `response` shape.
38
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DescribeRegistriesCommand extends $Command<
42
- DescribeRegistriesCommandInput,
43
- DescribeRegistriesCommandOutput,
44
- ECRPUBLICClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DescribeRegistriesCommandInput) {
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: ECRPUBLICClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DescribeRegistriesCommandInput, DescribeRegistriesCommandOutput> {
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 = "ECRPUBLICClient";
69
- const commandName = "DescribeRegistriesCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DescribeRegistriesRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DescribeRegistriesResponse.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: DescribeRegistriesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1DescribeRegistriesCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeRegistriesCommandOutput> {
90
- return deserializeAws_json1_1DescribeRegistriesCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ECRPUBLICClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRPUBLICClient";
15
- import { DescribeRepositoriesRequest, DescribeRepositoriesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeRepositoriesCommand,
18
- serializeAws_json1_1DescribeRepositoriesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeRepositoriesCommandInput extends DescribeRepositoriesRequest {}
22
- export interface DescribeRepositoriesCommandOutput extends DescribeRepositoriesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Describes repositories in a public registry.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ECRPUBLICClient, DescribeRepositoriesCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
- * // const { ECRPUBLICClient, DescribeRepositoriesCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
- * const client = new ECRPUBLICClient(config);
32
- * const command = new DescribeRepositoriesCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DescribeRepositoriesCommandInput} for command's `input` shape.
37
- * @see {@link DescribeRepositoriesCommandOutput} for command's `response` shape.
38
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DescribeRepositoriesCommand extends $Command<
42
- DescribeRepositoriesCommandInput,
43
- DescribeRepositoriesCommandOutput,
44
- ECRPUBLICClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DescribeRepositoriesCommandInput) {
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: ECRPUBLICClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DescribeRepositoriesCommandInput, DescribeRepositoriesCommandOutput> {
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 = "ECRPUBLICClient";
69
- const commandName = "DescribeRepositoriesCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DescribeRepositoriesRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DescribeRepositoriesResponse.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: DescribeRepositoriesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1DescribeRepositoriesCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeRepositoriesCommandOutput> {
90
- return deserializeAws_json1_1DescribeRepositoriesCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }