@aws-sdk/client-greengrassv2 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 (256) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/GreengrassV2.js +0 -14
  3. package/dist-cjs/GreengrassV2Client.js +0 -19
  4. package/dist-cjs/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +0 -37
  5. package/dist-cjs/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +0 -27
  6. package/dist-cjs/commands/CancelDeploymentCommand.js +0 -27
  7. package/dist-cjs/commands/CreateComponentVersionCommand.js +0 -78
  8. package/dist-cjs/commands/CreateDeploymentCommand.js +0 -35
  9. package/dist-cjs/commands/DeleteComponentCommand.js +0 -31
  10. package/dist-cjs/commands/DeleteCoreDeviceCommand.js +0 -28
  11. package/dist-cjs/commands/DescribeComponentCommand.js +0 -25
  12. package/dist-cjs/commands/GetComponentCommand.js +0 -26
  13. package/dist-cjs/commands/GetComponentVersionArtifactCommand.js +0 -26
  14. package/dist-cjs/commands/GetCoreDeviceCommand.js +0 -25
  15. package/dist-cjs/commands/GetDeploymentCommand.js +0 -25
  16. package/dist-cjs/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +0 -26
  17. package/dist-cjs/commands/ListComponentVersionsCommand.js +0 -25
  18. package/dist-cjs/commands/ListComponentsCommand.js +0 -26
  19. package/dist-cjs/commands/ListCoreDevicesCommand.js +0 -25
  20. package/dist-cjs/commands/ListDeploymentsCommand.js +0 -25
  21. package/dist-cjs/commands/ListEffectiveDeploymentsCommand.js +0 -26
  22. package/dist-cjs/commands/ListInstalledComponentsCommand.js +0 -25
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  24. package/dist-cjs/commands/ResolveComponentCandidatesCommand.js +0 -39
  25. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  26. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  27. package/dist-cjs/commands/index.js +26 -0
  28. package/dist-cjs/endpoints.js +1 -2
  29. package/dist-cjs/index.js +4 -34
  30. package/dist-cjs/models/index.js +0 -1
  31. package/dist-cjs/models/models_0.js +0 -274
  32. package/dist-cjs/pagination/Interfaces.js +0 -1
  33. package/dist-cjs/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +0 -11
  34. package/dist-cjs/pagination/ListComponentVersionsPaginator.js +0 -11
  35. package/dist-cjs/pagination/ListComponentsPaginator.js +0 -11
  36. package/dist-cjs/pagination/ListCoreDevicesPaginator.js +0 -11
  37. package/dist-cjs/pagination/ListDeploymentsPaginator.js +0 -11
  38. package/dist-cjs/pagination/ListEffectiveDeploymentsPaginator.js +0 -11
  39. package/dist-cjs/pagination/ListInstalledComponentsPaginator.js +0 -11
  40. package/dist-cjs/pagination/index.js +11 -0
  41. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  42. package/dist-cjs/runtimeConfig.browser.js +1 -6
  43. package/dist-cjs/runtimeConfig.js +2 -7
  44. package/dist-cjs/runtimeConfig.native.js +0 -4
  45. package/dist-cjs/runtimeConfig.shared.js +0 -4
  46. package/dist-es/GreengrassV2.js +0 -1
  47. package/dist-es/GreengrassV2Client.js +0 -1
  48. package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +0 -1
  49. package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +0 -1
  50. package/dist-es/commands/CancelDeploymentCommand.js +0 -1
  51. package/dist-es/commands/CreateComponentVersionCommand.js +0 -1
  52. package/dist-es/commands/CreateDeploymentCommand.js +0 -1
  53. package/dist-es/commands/DeleteComponentCommand.js +0 -1
  54. package/dist-es/commands/DeleteCoreDeviceCommand.js +0 -1
  55. package/dist-es/commands/DescribeComponentCommand.js +0 -1
  56. package/dist-es/commands/GetComponentCommand.js +0 -1
  57. package/dist-es/commands/GetComponentVersionArtifactCommand.js +0 -1
  58. package/dist-es/commands/GetCoreDeviceCommand.js +0 -1
  59. package/dist-es/commands/GetDeploymentCommand.js +0 -1
  60. package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +0 -1
  61. package/dist-es/commands/ListComponentVersionsCommand.js +0 -1
  62. package/dist-es/commands/ListComponentsCommand.js +0 -1
  63. package/dist-es/commands/ListCoreDevicesCommand.js +0 -1
  64. package/dist-es/commands/ListDeploymentsCommand.js +0 -1
  65. package/dist-es/commands/ListEffectiveDeploymentsCommand.js +0 -1
  66. package/dist-es/commands/ListInstalledComponentsCommand.js +0 -1
  67. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  68. package/dist-es/commands/ResolveComponentCandidatesCommand.js +0 -1
  69. package/dist-es/commands/TagResourceCommand.js +0 -1
  70. package/dist-es/commands/UntagResourceCommand.js +0 -1
  71. package/dist-es/commands/index.js +23 -0
  72. package/dist-es/endpoints.js +1 -2
  73. package/dist-es/index.js +4 -34
  74. package/dist-es/models/index.js +0 -1
  75. package/dist-es/models/models_0.js +0 -1
  76. package/dist-es/pagination/Interfaces.js +0 -1
  77. package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +0 -1
  78. package/dist-es/pagination/ListComponentVersionsPaginator.js +0 -1
  79. package/dist-es/pagination/ListComponentsPaginator.js +0 -1
  80. package/dist-es/pagination/ListCoreDevicesPaginator.js +0 -1
  81. package/dist-es/pagination/ListDeploymentsPaginator.js +0 -1
  82. package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +0 -1
  83. package/dist-es/pagination/ListInstalledComponentsPaginator.js +0 -1
  84. package/dist-es/pagination/index.js +8 -0
  85. package/dist-es/protocols/Aws_restJson1.js +0 -1
  86. package/dist-es/runtimeConfig.browser.js +1 -2
  87. package/dist-es/runtimeConfig.js +2 -3
  88. package/dist-es/runtimeConfig.native.js +0 -1
  89. package/dist-es/runtimeConfig.shared.js +0 -1
  90. package/dist-types/commands/index.d.ts +23 -0
  91. package/dist-types/index.d.ts +4 -33
  92. package/dist-types/pagination/index.d.ts +8 -0
  93. package/dist-types/ts3.4/GreengrassV2.d.ts +24 -190
  94. package/dist-types/ts3.4/GreengrassV2Client.d.ts +24 -99
  95. package/dist-types/ts3.4/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.d.ts +2 -32
  96. package/dist-types/ts3.4/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.d.ts +2 -22
  97. package/dist-types/ts3.4/commands/CancelDeploymentCommand.d.ts +2 -22
  98. package/dist-types/ts3.4/commands/CreateComponentVersionCommand.d.ts +2 -73
  99. package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +2 -30
  100. package/dist-types/ts3.4/commands/DeleteComponentCommand.d.ts +2 -26
  101. package/dist-types/ts3.4/commands/DeleteCoreDeviceCommand.d.ts +2 -23
  102. package/dist-types/ts3.4/commands/DescribeComponentCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/GetComponentCommand.d.ts +2 -21
  104. package/dist-types/ts3.4/commands/GetComponentVersionArtifactCommand.d.ts +2 -21
  105. package/dist-types/ts3.4/commands/GetCoreDeviceCommand.d.ts +2 -20
  106. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +2 -20
  107. package/dist-types/ts3.4/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.d.ts +2 -21
  108. package/dist-types/ts3.4/commands/ListComponentVersionsCommand.d.ts +2 -20
  109. package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +2 -21
  110. package/dist-types/ts3.4/commands/ListCoreDevicesCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/ListEffectiveDeploymentsCommand.d.ts +2 -21
  113. package/dist-types/ts3.4/commands/ListInstalledComponentsCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/ResolveComponentCandidatesCommand.d.ts +2 -34
  116. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -21
  117. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  119. package/dist-types/ts3.4/index.d.ts +4 -33
  120. package/dist-types/ts3.4/models/models_0.d.ts +393 -1492
  121. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  122. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  123. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  124. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  125. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  126. package/package.json +33 -30
  127. package/dist-cjs/GreengrassV2.js.map +0 -1
  128. package/dist-cjs/GreengrassV2Client.js.map +0 -1
  129. package/dist-cjs/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js.map +0 -1
  130. package/dist-cjs/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js.map +0 -1
  131. package/dist-cjs/commands/CancelDeploymentCommand.js.map +0 -1
  132. package/dist-cjs/commands/CreateComponentVersionCommand.js.map +0 -1
  133. package/dist-cjs/commands/CreateDeploymentCommand.js.map +0 -1
  134. package/dist-cjs/commands/DeleteComponentCommand.js.map +0 -1
  135. package/dist-cjs/commands/DeleteCoreDeviceCommand.js.map +0 -1
  136. package/dist-cjs/commands/DescribeComponentCommand.js.map +0 -1
  137. package/dist-cjs/commands/GetComponentCommand.js.map +0 -1
  138. package/dist-cjs/commands/GetComponentVersionArtifactCommand.js.map +0 -1
  139. package/dist-cjs/commands/GetCoreDeviceCommand.js.map +0 -1
  140. package/dist-cjs/commands/GetDeploymentCommand.js.map +0 -1
  141. package/dist-cjs/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js.map +0 -1
  142. package/dist-cjs/commands/ListComponentVersionsCommand.js.map +0 -1
  143. package/dist-cjs/commands/ListComponentsCommand.js.map +0 -1
  144. package/dist-cjs/commands/ListCoreDevicesCommand.js.map +0 -1
  145. package/dist-cjs/commands/ListDeploymentsCommand.js.map +0 -1
  146. package/dist-cjs/commands/ListEffectiveDeploymentsCommand.js.map +0 -1
  147. package/dist-cjs/commands/ListInstalledComponentsCommand.js.map +0 -1
  148. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  149. package/dist-cjs/commands/ResolveComponentCandidatesCommand.js.map +0 -1
  150. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  151. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  152. package/dist-cjs/endpoints.js.map +0 -1
  153. package/dist-cjs/index.js.map +0 -1
  154. package/dist-cjs/models/index.js.map +0 -1
  155. package/dist-cjs/models/models_0.js.map +0 -1
  156. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  157. package/dist-cjs/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js.map +0 -1
  158. package/dist-cjs/pagination/ListComponentVersionsPaginator.js.map +0 -1
  159. package/dist-cjs/pagination/ListComponentsPaginator.js.map +0 -1
  160. package/dist-cjs/pagination/ListCoreDevicesPaginator.js.map +0 -1
  161. package/dist-cjs/pagination/ListDeploymentsPaginator.js.map +0 -1
  162. package/dist-cjs/pagination/ListEffectiveDeploymentsPaginator.js.map +0 -1
  163. package/dist-cjs/pagination/ListInstalledComponentsPaginator.js.map +0 -1
  164. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  165. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  166. package/dist-cjs/runtimeConfig.js.map +0 -1
  167. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  168. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  169. package/dist-es/GreengrassV2.js.map +0 -1
  170. package/dist-es/GreengrassV2Client.js.map +0 -1
  171. package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js.map +0 -1
  172. package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js.map +0 -1
  173. package/dist-es/commands/CancelDeploymentCommand.js.map +0 -1
  174. package/dist-es/commands/CreateComponentVersionCommand.js.map +0 -1
  175. package/dist-es/commands/CreateDeploymentCommand.js.map +0 -1
  176. package/dist-es/commands/DeleteComponentCommand.js.map +0 -1
  177. package/dist-es/commands/DeleteCoreDeviceCommand.js.map +0 -1
  178. package/dist-es/commands/DescribeComponentCommand.js.map +0 -1
  179. package/dist-es/commands/GetComponentCommand.js.map +0 -1
  180. package/dist-es/commands/GetComponentVersionArtifactCommand.js.map +0 -1
  181. package/dist-es/commands/GetCoreDeviceCommand.js.map +0 -1
  182. package/dist-es/commands/GetDeploymentCommand.js.map +0 -1
  183. package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js.map +0 -1
  184. package/dist-es/commands/ListComponentVersionsCommand.js.map +0 -1
  185. package/dist-es/commands/ListComponentsCommand.js.map +0 -1
  186. package/dist-es/commands/ListCoreDevicesCommand.js.map +0 -1
  187. package/dist-es/commands/ListDeploymentsCommand.js.map +0 -1
  188. package/dist-es/commands/ListEffectiveDeploymentsCommand.js.map +0 -1
  189. package/dist-es/commands/ListInstalledComponentsCommand.js.map +0 -1
  190. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  191. package/dist-es/commands/ResolveComponentCandidatesCommand.js.map +0 -1
  192. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  193. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  194. package/dist-es/endpoints.js.map +0 -1
  195. package/dist-es/index.js.map +0 -1
  196. package/dist-es/models/index.js.map +0 -1
  197. package/dist-es/models/models_0.js.map +0 -1
  198. package/dist-es/pagination/Interfaces.js.map +0 -1
  199. package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js.map +0 -1
  200. package/dist-es/pagination/ListComponentVersionsPaginator.js.map +0 -1
  201. package/dist-es/pagination/ListComponentsPaginator.js.map +0 -1
  202. package/dist-es/pagination/ListCoreDevicesPaginator.js.map +0 -1
  203. package/dist-es/pagination/ListDeploymentsPaginator.js.map +0 -1
  204. package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js.map +0 -1
  205. package/dist-es/pagination/ListInstalledComponentsPaginator.js.map +0 -1
  206. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  207. package/dist-es/runtimeConfig.browser.js.map +0 -1
  208. package/dist-es/runtimeConfig.js.map +0 -1
  209. package/dist-es/runtimeConfig.native.js.map +0 -1
  210. package/dist-es/runtimeConfig.shared.js.map +0 -1
  211. package/jest.config.js +0 -4
  212. package/src/GreengrassV2.ts +0 -970
  213. package/src/GreengrassV2Client.ts +0 -345
  214. package/src/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.ts +0 -122
  215. package/src/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.ts +0 -112
  216. package/src/commands/CancelDeploymentCommand.ts +0 -97
  217. package/src/commands/CreateComponentVersionCommand.ts +0 -148
  218. package/src/commands/CreateDeploymentCommand.ts +0 -105
  219. package/src/commands/DeleteComponentCommand.ts +0 -101
  220. package/src/commands/DeleteCoreDeviceCommand.ts +0 -98
  221. package/src/commands/DescribeComponentCommand.ts +0 -95
  222. package/src/commands/GetComponentCommand.ts +0 -96
  223. package/src/commands/GetComponentVersionArtifactCommand.ts +0 -101
  224. package/src/commands/GetCoreDeviceCommand.ts +0 -95
  225. package/src/commands/GetDeploymentCommand.ts +0 -95
  226. package/src/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.ts +0 -111
  227. package/src/commands/ListComponentVersionsCommand.ts +0 -95
  228. package/src/commands/ListComponentsCommand.ts +0 -96
  229. package/src/commands/ListCoreDevicesCommand.ts +0 -95
  230. package/src/commands/ListDeploymentsCommand.ts +0 -95
  231. package/src/commands/ListEffectiveDeploymentsCommand.ts +0 -96
  232. package/src/commands/ListInstalledComponentsCommand.ts +0 -95
  233. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  234. package/src/commands/ResolveComponentCandidatesCommand.ts +0 -112
  235. package/src/commands/TagResourceCommand.ts +0 -96
  236. package/src/commands/UntagResourceCommand.ts +0 -95
  237. package/src/endpoints.ts +0 -84
  238. package/src/index.ts +0 -34
  239. package/src/models/index.ts +0 -1
  240. package/src/models/models_0.ts +0 -2867
  241. package/src/pagination/Interfaces.ts +0 -8
  242. package/src/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.ts +0 -59
  243. package/src/pagination/ListComponentVersionsPaginator.ts +0 -59
  244. package/src/pagination/ListComponentsPaginator.ts +0 -59
  245. package/src/pagination/ListCoreDevicesPaginator.ts +0 -59
  246. package/src/pagination/ListDeploymentsPaginator.ts +0 -59
  247. package/src/pagination/ListEffectiveDeploymentsPaginator.ts +0 -59
  248. package/src/pagination/ListInstalledComponentsPaginator.ts +0 -59
  249. package/src/protocols/Aws_restJson1.ts +0 -4401
  250. package/src/runtimeConfig.browser.ts +0 -41
  251. package/src/runtimeConfig.native.ts +0 -17
  252. package/src/runtimeConfig.shared.ts +0 -17
  253. package/src/runtimeConfig.ts +0 -46
  254. package/tsconfig.es.json +0 -10
  255. package/tsconfig.json +0 -33
  256. package/tsconfig.types.json +0 -9
@@ -1,148 +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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
15
- import { CreateComponentVersionRequest, CreateComponentVersionResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1CreateComponentVersionCommand,
18
- serializeAws_restJson1CreateComponentVersionCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface CreateComponentVersionCommandInput extends CreateComponentVersionRequest {}
22
- export interface CreateComponentVersionCommandOutput extends CreateComponentVersionResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates a component. Components are software that run on Greengrass core devices. After you
26
- * develop and test a component on your core device, you can use this operation to upload your
27
- * component to IoT Greengrass. Then, you can deploy the component to other core devices.</p>
28
- * <p>You can use this operation to do the following:</p>
29
- * <ul>
30
- * <li>
31
- * <p>
32
- * <b>Create components from recipes</b>
33
- * </p>
34
- * <p>Create a component from a recipe, which is a file that defines the component's
35
- * metadata, parameters, dependencies, lifecycle, artifacts, and platform capability. For
36
- * more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/component-recipe-reference.html">IoT Greengrass component recipe
37
- * reference</a> in the <i>IoT Greengrass V2 Developer Guide</i>.</p>
38
- * <p>To create a component from a recipe, specify <code>inlineRecipe</code> when you call
39
- * this operation.</p>
40
- * </li>
41
- * <li>
42
- * <p>
43
- * <b>Create components from Lambda functions</b>
44
- * </p>
45
- * <p>Create a component from an Lambda function that runs on IoT Greengrass. This creates a recipe
46
- * and artifacts from the Lambda function's deployment package. You can use this operation to
47
- * migrate Lambda functions from IoT Greengrass V1 to IoT Greengrass V2.</p>
48
- * <p>This function only accepts Lambda functions that use the following runtimes:</p>
49
- * <ul>
50
- * <li>
51
- * <p>Python 2.7 – <code>python2.7</code>
52
- * </p>
53
- * </li>
54
- * <li>
55
- * <p>Python 3.7 – <code>python3.7</code>
56
- * </p>
57
- * </li>
58
- * <li>
59
- * <p>Python 3.8 – <code>python3.8</code>
60
- * </p>
61
- * </li>
62
- * <li>
63
- * <p>Java 8 – <code>java8</code>
64
- * </p>
65
- * </li>
66
- * <li>
67
- * <p>Node.js 10 – <code>nodejs10.x</code>
68
- * </p>
69
- * </li>
70
- * <li>
71
- * <p>Node.js 12 – <code>nodejs12.x</code>
72
- * </p>
73
- * </li>
74
- * </ul>
75
- * <p>To create a component from a Lambda function, specify <code>lambdaFunction</code>
76
- * when you call this operation.</p>
77
- * </li>
78
- * </ul>
79
- * @example
80
- * Use a bare-bones client and the command you need to make an API call.
81
- * ```javascript
82
- * import { GreengrassV2Client, CreateComponentVersionCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
83
- * // const { GreengrassV2Client, CreateComponentVersionCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
84
- * const client = new GreengrassV2Client(config);
85
- * const command = new CreateComponentVersionCommand(input);
86
- * const response = await client.send(command);
87
- * ```
88
- *
89
- * @see {@link CreateComponentVersionCommandInput} for command's `input` shape.
90
- * @see {@link CreateComponentVersionCommandOutput} for command's `response` shape.
91
- * @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
92
- *
93
- */
94
- export class CreateComponentVersionCommand extends $Command<
95
- CreateComponentVersionCommandInput,
96
- CreateComponentVersionCommandOutput,
97
- GreengrassV2ClientResolvedConfig
98
- > {
99
- // Start section: command_properties
100
- // End section: command_properties
101
-
102
- constructor(readonly input: CreateComponentVersionCommandInput) {
103
- // Start section: command_constructor
104
- super();
105
- // End section: command_constructor
106
- }
107
-
108
- /**
109
- * @internal
110
- */
111
- resolveMiddleware(
112
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
113
- configuration: GreengrassV2ClientResolvedConfig,
114
- options?: __HttpHandlerOptions
115
- ): Handler<CreateComponentVersionCommandInput, CreateComponentVersionCommandOutput> {
116
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
117
-
118
- const stack = clientStack.concat(this.middlewareStack);
119
-
120
- const { logger } = configuration;
121
- const clientName = "GreengrassV2Client";
122
- const commandName = "CreateComponentVersionCommand";
123
- const handlerExecutionContext: HandlerExecutionContext = {
124
- logger,
125
- clientName,
126
- commandName,
127
- inputFilterSensitiveLog: CreateComponentVersionRequest.filterSensitiveLog,
128
- outputFilterSensitiveLog: CreateComponentVersionResponse.filterSensitiveLog,
129
- };
130
- const { requestHandler } = configuration;
131
- return stack.resolve(
132
- (request: FinalizeHandlerArguments<any>) =>
133
- requestHandler.handle(request.request as __HttpRequest, options || {}),
134
- handlerExecutionContext
135
- );
136
- }
137
-
138
- private serialize(input: CreateComponentVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
139
- return serializeAws_restJson1CreateComponentVersionCommand(input, context);
140
- }
141
-
142
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateComponentVersionCommandOutput> {
143
- return deserializeAws_restJson1CreateComponentVersionCommand(output, context);
144
- }
145
-
146
- // Start section: command_body_extra
147
- // End section: command_body_extra
148
- }
@@ -1,105 +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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
15
- import { CreateDeploymentRequest, CreateDeploymentResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1CreateDeploymentCommand,
18
- serializeAws_restJson1CreateDeploymentCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface CreateDeploymentCommandInput extends CreateDeploymentRequest {}
22
- export interface CreateDeploymentCommandOutput extends CreateDeploymentResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates a continuous deployment for a target, which is a Greengrass core device or group of core
26
- * devices. When you add a new core device to a group of core devices that has a deployment, IoT Greengrass
27
- * deploys that group's deployment to the new device.</p>
28
- * <p>You can define one deployment for each target. When you create a new deployment for a
29
- * target that has an existing deployment, you replace the previous deployment. IoT Greengrass applies the
30
- * new deployment to the target devices.</p>
31
- * <p>Every deployment has a revision number that indicates how many deployment revisions you
32
- * define for a target. Use this operation to create a new revision of an existing deployment.
33
- * This operation returns the revision number of the new deployment when you create it.</p>
34
- * <p>For more information, see the <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html">Create deployments</a> in the
35
- * <i>IoT Greengrass V2 Developer Guide</i>.</p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { GreengrassV2Client, CreateDeploymentCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
40
- * // const { GreengrassV2Client, CreateDeploymentCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
41
- * const client = new GreengrassV2Client(config);
42
- * const command = new CreateDeploymentCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link CreateDeploymentCommandInput} for command's `input` shape.
47
- * @see {@link CreateDeploymentCommandOutput} for command's `response` shape.
48
- * @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class CreateDeploymentCommand extends $Command<
52
- CreateDeploymentCommandInput,
53
- CreateDeploymentCommandOutput,
54
- GreengrassV2ClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: CreateDeploymentCommandInput) {
60
- // Start section: command_constructor
61
- super();
62
- // End section: command_constructor
63
- }
64
-
65
- /**
66
- * @internal
67
- */
68
- resolveMiddleware(
69
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
70
- configuration: GreengrassV2ClientResolvedConfig,
71
- options?: __HttpHandlerOptions
72
- ): Handler<CreateDeploymentCommandInput, CreateDeploymentCommandOutput> {
73
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "GreengrassV2Client";
79
- const commandName = "CreateDeploymentCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: CreateDeploymentRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: CreateDeploymentResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: CreateDeploymentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_restJson1CreateDeploymentCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateDeploymentCommandOutput> {
100
- return deserializeAws_restJson1CreateDeploymentCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
15
- import { DeleteComponentRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1DeleteComponentCommand,
18
- serializeAws_restJson1DeleteComponentCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface DeleteComponentCommandInput extends DeleteComponentRequest {}
22
- export interface DeleteComponentCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes a version of a component from IoT Greengrass.</p>
26
- * <note>
27
- * <p>This operation deletes the component's recipe and artifacts. As a result, deployments
28
- * that refer to this component version will fail. If you have deployments that use this
29
- * component version, you can remove the component from the deployment or update the deployment
30
- * to use a valid version.</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 { GreengrassV2Client, DeleteComponentCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
36
- * // const { GreengrassV2Client, DeleteComponentCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
37
- * const client = new GreengrassV2Client(config);
38
- * const command = new DeleteComponentCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link DeleteComponentCommandInput} for command's `input` shape.
43
- * @see {@link DeleteComponentCommandOutput} for command's `response` shape.
44
- * @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class DeleteComponentCommand extends $Command<
48
- DeleteComponentCommandInput,
49
- DeleteComponentCommandOutput,
50
- GreengrassV2ClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: DeleteComponentCommandInput) {
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: GreengrassV2ClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<DeleteComponentCommandInput, DeleteComponentCommandOutput> {
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 = "GreengrassV2Client";
75
- const commandName = "DeleteComponentCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: DeleteComponentRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: (output: any) => output,
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: DeleteComponentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_restJson1DeleteComponentCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteComponentCommandOutput> {
96
- return deserializeAws_restJson1DeleteComponentCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,98 +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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
15
- import { DeleteCoreDeviceRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1DeleteCoreDeviceCommand,
18
- serializeAws_restJson1DeleteCoreDeviceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface DeleteCoreDeviceCommandInput extends DeleteCoreDeviceRequest {}
22
- export interface DeleteCoreDeviceCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes a Greengrass core device, which is an IoT thing. This operation removes the core
26
- * device from the list of core devices. This operation doesn't delete the IoT thing. For more
27
- * information about how to delete the IoT thing, see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_DeleteThing.html">DeleteThing</a> in the
28
- * <i>IoT API Reference</i>.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { GreengrassV2Client, DeleteCoreDeviceCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
33
- * // const { GreengrassV2Client, DeleteCoreDeviceCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
34
- * const client = new GreengrassV2Client(config);
35
- * const command = new DeleteCoreDeviceCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link DeleteCoreDeviceCommandInput} for command's `input` shape.
40
- * @see {@link DeleteCoreDeviceCommandOutput} for command's `response` shape.
41
- * @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class DeleteCoreDeviceCommand extends $Command<
45
- DeleteCoreDeviceCommandInput,
46
- DeleteCoreDeviceCommandOutput,
47
- GreengrassV2ClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: DeleteCoreDeviceCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: GreengrassV2ClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<DeleteCoreDeviceCommandInput, DeleteCoreDeviceCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "GreengrassV2Client";
72
- const commandName = "DeleteCoreDeviceCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: DeleteCoreDeviceRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: (output: any) => output,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: DeleteCoreDeviceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1DeleteCoreDeviceCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteCoreDeviceCommandOutput> {
93
- return deserializeAws_restJson1DeleteCoreDeviceCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
15
- import { DescribeComponentRequest, DescribeComponentResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1DescribeComponentCommand,
18
- serializeAws_restJson1DescribeComponentCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface DescribeComponentCommandInput extends DescribeComponentRequest {}
22
- export interface DescribeComponentCommandOutput extends DescribeComponentResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves metadata for a version of a component.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { GreengrassV2Client, DescribeComponentCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
30
- * // const { GreengrassV2Client, DescribeComponentCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
31
- * const client = new GreengrassV2Client(config);
32
- * const command = new DescribeComponentCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DescribeComponentCommandInput} for command's `input` shape.
37
- * @see {@link DescribeComponentCommandOutput} for command's `response` shape.
38
- * @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DescribeComponentCommand extends $Command<
42
- DescribeComponentCommandInput,
43
- DescribeComponentCommandOutput,
44
- GreengrassV2ClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DescribeComponentCommandInput) {
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: GreengrassV2ClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DescribeComponentCommandInput, DescribeComponentCommandOutput> {
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 = "GreengrassV2Client";
69
- const commandName = "DescribeComponentCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DescribeComponentRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DescribeComponentResponse.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: DescribeComponentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1DescribeComponentCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeComponentCommandOutput> {
90
- return deserializeAws_restJson1DescribeComponentCommand(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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
15
- import { GetComponentRequest, GetComponentResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1GetComponentCommand,
18
- serializeAws_restJson1GetComponentCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface GetComponentCommandInput extends GetComponentRequest {}
22
- export interface GetComponentCommandOutput extends GetComponentResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets the recipe for a version of a component. Core devices can call this operation to
26
- * identify the artifacts and requirements to install a component.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { GreengrassV2Client, GetComponentCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
31
- * // const { GreengrassV2Client, GetComponentCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
32
- * const client = new GreengrassV2Client(config);
33
- * const command = new GetComponentCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link GetComponentCommandInput} for command's `input` shape.
38
- * @see {@link GetComponentCommandOutput} for command's `response` shape.
39
- * @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class GetComponentCommand extends $Command<
43
- GetComponentCommandInput,
44
- GetComponentCommandOutput,
45
- GreengrassV2ClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: GetComponentCommandInput) {
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: GreengrassV2ClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<GetComponentCommandInput, GetComponentCommandOutput> {
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 = "GreengrassV2Client";
70
- const commandName = "GetComponentCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: GetComponentRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: GetComponentResponse.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: GetComponentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_restJson1GetComponentCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetComponentCommandOutput> {
91
- return deserializeAws_restJson1GetComponentCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }