@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,99 +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 { GetAuthorizationTokenRequest, GetAuthorizationTokenResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetAuthorizationTokenCommand,
18
- serializeAws_json1_1GetAuthorizationTokenCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetAuthorizationTokenCommandInput extends GetAuthorizationTokenRequest {}
22
- export interface GetAuthorizationTokenCommandOutput extends GetAuthorizationTokenResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves an authorization token. An authorization token represents your IAM
26
- * authentication credentials and can be used to access any Amazon ECR registry that your IAM
27
- * principal has access to. The authorization token is valid for 12 hours. This API requires
28
- * the <code>ecr-public:GetAuthorizationToken</code> and
29
- * <code>sts:GetServiceBearerToken</code> permissions.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ECRPUBLICClient, GetAuthorizationTokenCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
34
- * // const { ECRPUBLICClient, GetAuthorizationTokenCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
35
- * const client = new ECRPUBLICClient(config);
36
- * const command = new GetAuthorizationTokenCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link GetAuthorizationTokenCommandInput} for command's `input` shape.
41
- * @see {@link GetAuthorizationTokenCommandOutput} for command's `response` shape.
42
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class GetAuthorizationTokenCommand extends $Command<
46
- GetAuthorizationTokenCommandInput,
47
- GetAuthorizationTokenCommandOutput,
48
- ECRPUBLICClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: GetAuthorizationTokenCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ECRPUBLICClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ECRPUBLICClient";
73
- const commandName = "GetAuthorizationTokenCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: GetAuthorizationTokenRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: GetAuthorizationTokenResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: GetAuthorizationTokenCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1GetAuthorizationTokenCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetAuthorizationTokenCommandOutput> {
94
- return deserializeAws_json1_1GetAuthorizationTokenCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -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 { GetRegistryCatalogDataRequest, GetRegistryCatalogDataResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetRegistryCatalogDataCommand,
18
- serializeAws_json1_1GetRegistryCatalogDataCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetRegistryCatalogDataCommandInput extends GetRegistryCatalogDataRequest {}
22
- export interface GetRegistryCatalogDataCommandOutput extends GetRegistryCatalogDataResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves catalog metadata 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, GetRegistryCatalogDataCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
- * // const { ECRPUBLICClient, GetRegistryCatalogDataCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
- * const client = new ECRPUBLICClient(config);
32
- * const command = new GetRegistryCatalogDataCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetRegistryCatalogDataCommandInput} for command's `input` shape.
37
- * @see {@link GetRegistryCatalogDataCommandOutput} for command's `response` shape.
38
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class GetRegistryCatalogDataCommand extends $Command<
42
- GetRegistryCatalogDataCommandInput,
43
- GetRegistryCatalogDataCommandOutput,
44
- ECRPUBLICClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: GetRegistryCatalogDataCommandInput) {
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<GetRegistryCatalogDataCommandInput, GetRegistryCatalogDataCommandOutput> {
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 = "GetRegistryCatalogDataCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: GetRegistryCatalogDataRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: GetRegistryCatalogDataResponse.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: GetRegistryCatalogDataCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1GetRegistryCatalogDataCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRegistryCatalogDataCommandOutput> {
90
- return deserializeAws_json1_1GetRegistryCatalogDataCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -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 { GetRepositoryCatalogDataRequest, GetRepositoryCatalogDataResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetRepositoryCatalogDataCommand,
18
- serializeAws_json1_1GetRepositoryCatalogDataCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetRepositoryCatalogDataCommandInput extends GetRepositoryCatalogDataRequest {}
22
- export interface GetRepositoryCatalogDataCommandOutput extends GetRepositoryCatalogDataResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieve catalog metadata for a repository in a public registry. This metadata is
26
- * displayed publicly in the Amazon ECR Public Gallery.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { ECRPUBLICClient, GetRepositoryCatalogDataCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
31
- * // const { ECRPUBLICClient, GetRepositoryCatalogDataCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
32
- * const client = new ECRPUBLICClient(config);
33
- * const command = new GetRepositoryCatalogDataCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link GetRepositoryCatalogDataCommandInput} for command's `input` shape.
38
- * @see {@link GetRepositoryCatalogDataCommandOutput} for command's `response` shape.
39
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class GetRepositoryCatalogDataCommand extends $Command<
43
- GetRepositoryCatalogDataCommandInput,
44
- GetRepositoryCatalogDataCommandOutput,
45
- ECRPUBLICClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: GetRepositoryCatalogDataCommandInput) {
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<GetRepositoryCatalogDataCommandInput, GetRepositoryCatalogDataCommandOutput> {
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 = "GetRepositoryCatalogDataCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: GetRepositoryCatalogDataRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: GetRepositoryCatalogDataResponse.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: GetRepositoryCatalogDataCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1GetRepositoryCatalogDataCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRepositoryCatalogDataCommandOutput> {
91
- return deserializeAws_json1_1GetRepositoryCatalogDataCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -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 { GetRepositoryPolicyRequest, GetRepositoryPolicyResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetRepositoryPolicyCommand,
18
- serializeAws_json1_1GetRepositoryPolicyCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetRepositoryPolicyCommandInput extends GetRepositoryPolicyRequest {}
22
- export interface GetRepositoryPolicyCommandOutput extends GetRepositoryPolicyResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the repository policy for 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, GetRepositoryPolicyCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
- * // const { ECRPUBLICClient, GetRepositoryPolicyCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
- * const client = new ECRPUBLICClient(config);
32
- * const command = new GetRepositoryPolicyCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetRepositoryPolicyCommandInput} for command's `input` shape.
37
- * @see {@link GetRepositoryPolicyCommandOutput} for command's `response` shape.
38
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class GetRepositoryPolicyCommand extends $Command<
42
- GetRepositoryPolicyCommandInput,
43
- GetRepositoryPolicyCommandOutput,
44
- ECRPUBLICClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: GetRepositoryPolicyCommandInput) {
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<GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput> {
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 = "GetRepositoryPolicyCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: GetRepositoryPolicyRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: GetRepositoryPolicyResponse.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: GetRepositoryPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1GetRepositoryPolicyCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRepositoryPolicyCommandOutput> {
90
- return deserializeAws_json1_1GetRepositoryPolicyCommand(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 { InitiateLayerUploadRequest, InitiateLayerUploadResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1InitiateLayerUploadCommand,
18
- serializeAws_json1_1InitiateLayerUploadCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface InitiateLayerUploadCommandInput extends InitiateLayerUploadRequest {}
22
- export interface InitiateLayerUploadCommandOutput extends InitiateLayerUploadResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Notifies Amazon ECR that you intend to upload an image layer.</p>
26
- * <p>When an image is pushed, the InitiateLayerUpload API is called once per image layer that
27
- * has not already been uploaded. Whether or not an image layer has been uploaded is
28
- * determined by the BatchCheckLayerAvailability API action.</p>
29
- * <note>
30
- * <p>This operation is used by the Amazon ECR proxy and is not generally used by 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 { ECRPUBLICClient, InitiateLayerUploadCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
36
- * // const { ECRPUBLICClient, InitiateLayerUploadCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
37
- * const client = new ECRPUBLICClient(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 ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class InitiateLayerUploadCommand extends $Command<
48
- InitiateLayerUploadCommandInput,
49
- InitiateLayerUploadCommandOutput,
50
- ECRPUBLICClientResolvedConfig
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: ECRPUBLICClientResolvedConfig,
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 = "ECRPUBLICClient";
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,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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListTagsForResourceCommand,
18
- serializeAws_json1_1ListTagsForResourceCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
22
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>List the tags for an Amazon ECR Public resource.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ECRPUBLICClient, ListTagsForResourceCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
- * // const { ECRPUBLICClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
- * const client = new ECRPUBLICClient(config);
32
- * const command = new ListTagsForResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
37
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
38
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTagsForResourceCommand extends $Command<
42
- ListTagsForResourceCommandInput,
43
- ListTagsForResourceCommandOutput,
44
- ECRPUBLICClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListTagsForResourceCommandInput) {
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<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
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 = "ListTagsForResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListTagsForResourceResponse.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: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1ListTagsForResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
90
- return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,99 +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 { PutImageRequest, PutImageResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1PutImageCommand, serializeAws_json1_1PutImageCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface PutImageCommandInput extends PutImageRequest {}
19
- export interface PutImageCommandOutput extends PutImageResponse, __MetadataBearer {}
20
-
21
- /**
22
- * <p>Creates or updates the image manifest and tags associated with an image.</p>
23
- * <p>When an image is pushed and all new image layers have been uploaded, the PutImage API is
24
- * called once to create or update the image manifest and the tags associated with the
25
- * image.</p>
26
- *
27
- * <note>
28
- * <p>This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
29
- * </note>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ECRPUBLICClient, PutImageCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
34
- * // const { ECRPUBLICClient, PutImageCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
35
- * const client = new ECRPUBLICClient(config);
36
- * const command = new PutImageCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link PutImageCommandInput} for command's `input` shape.
41
- * @see {@link PutImageCommandOutput} for command's `response` shape.
42
- * @see {@link ECRPUBLICClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class PutImageCommand extends $Command<
46
- PutImageCommandInput,
47
- PutImageCommandOutput,
48
- ECRPUBLICClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: PutImageCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ECRPUBLICClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<PutImageCommandInput, PutImageCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ECRPUBLICClient";
73
- const commandName = "PutImageCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: PutImageRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: PutImageResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: PutImageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1PutImageCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutImageCommandOutput> {
94
- return deserializeAws_json1_1PutImageCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }