/clients/client-ssm/protocols/Aws_json1_1.ts

https://github.com/aws/aws-sdk-js-v3 · TypeScript · 21434 lines · 20235 code · 1197 blank · 2 comment · 9421 complexity · 1dd7c4013cc9f8061e821a65b1248307 MD5 · raw file

Large files are truncated click here to view the full file

  1. import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "../commands/AddTagsToResourceCommand";
  2. import { CancelCommandCommandInput, CancelCommandCommandOutput } from "../commands/CancelCommandCommand";
  3. import {
  4. CancelMaintenanceWindowExecutionCommandInput,
  5. CancelMaintenanceWindowExecutionCommandOutput,
  6. } from "../commands/CancelMaintenanceWindowExecutionCommand";
  7. import { CreateActivationCommandInput, CreateActivationCommandOutput } from "../commands/CreateActivationCommand";
  8. import {
  9. CreateAssociationBatchCommandInput,
  10. CreateAssociationBatchCommandOutput,
  11. } from "../commands/CreateAssociationBatchCommand";
  12. import { CreateAssociationCommandInput, CreateAssociationCommandOutput } from "../commands/CreateAssociationCommand";
  13. import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "../commands/CreateDocumentCommand";
  14. import {
  15. CreateMaintenanceWindowCommandInput,
  16. CreateMaintenanceWindowCommandOutput,
  17. } from "../commands/CreateMaintenanceWindowCommand";
  18. import { CreateOpsItemCommandInput, CreateOpsItemCommandOutput } from "../commands/CreateOpsItemCommand";
  19. import {
  20. CreatePatchBaselineCommandInput,
  21. CreatePatchBaselineCommandOutput,
  22. } from "../commands/CreatePatchBaselineCommand";
  23. import {
  24. CreateResourceDataSyncCommandInput,
  25. CreateResourceDataSyncCommandOutput,
  26. } from "../commands/CreateResourceDataSyncCommand";
  27. import { DeleteActivationCommandInput, DeleteActivationCommandOutput } from "../commands/DeleteActivationCommand";
  28. import { DeleteAssociationCommandInput, DeleteAssociationCommandOutput } from "../commands/DeleteAssociationCommand";
  29. import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "../commands/DeleteDocumentCommand";
  30. import { DeleteInventoryCommandInput, DeleteInventoryCommandOutput } from "../commands/DeleteInventoryCommand";
  31. import {
  32. DeleteMaintenanceWindowCommandInput,
  33. DeleteMaintenanceWindowCommandOutput,
  34. } from "../commands/DeleteMaintenanceWindowCommand";
  35. import { DeleteParameterCommandInput, DeleteParameterCommandOutput } from "../commands/DeleteParameterCommand";
  36. import { DeleteParametersCommandInput, DeleteParametersCommandOutput } from "../commands/DeleteParametersCommand";
  37. import {
  38. DeletePatchBaselineCommandInput,
  39. DeletePatchBaselineCommandOutput,
  40. } from "../commands/DeletePatchBaselineCommand";
  41. import {
  42. DeleteResourceDataSyncCommandInput,
  43. DeleteResourceDataSyncCommandOutput,
  44. } from "../commands/DeleteResourceDataSyncCommand";
  45. import {
  46. DeregisterManagedInstanceCommandInput,
  47. DeregisterManagedInstanceCommandOutput,
  48. } from "../commands/DeregisterManagedInstanceCommand";
  49. import {
  50. DeregisterPatchBaselineForPatchGroupCommandInput,
  51. DeregisterPatchBaselineForPatchGroupCommandOutput,
  52. } from "../commands/DeregisterPatchBaselineForPatchGroupCommand";
  53. import {
  54. DeregisterTargetFromMaintenanceWindowCommandInput,
  55. DeregisterTargetFromMaintenanceWindowCommandOutput,
  56. } from "../commands/DeregisterTargetFromMaintenanceWindowCommand";
  57. import {
  58. DeregisterTaskFromMaintenanceWindowCommandInput,
  59. DeregisterTaskFromMaintenanceWindowCommandOutput,
  60. } from "../commands/DeregisterTaskFromMaintenanceWindowCommand";
  61. import {
  62. DescribeActivationsCommandInput,
  63. DescribeActivationsCommandOutput,
  64. } from "../commands/DescribeActivationsCommand";
  65. import {
  66. DescribeAssociationCommandInput,
  67. DescribeAssociationCommandOutput,
  68. } from "../commands/DescribeAssociationCommand";
  69. import {
  70. DescribeAssociationExecutionTargetsCommandInput,
  71. DescribeAssociationExecutionTargetsCommandOutput,
  72. } from "../commands/DescribeAssociationExecutionTargetsCommand";
  73. import {
  74. DescribeAssociationExecutionsCommandInput,
  75. DescribeAssociationExecutionsCommandOutput,
  76. } from "../commands/DescribeAssociationExecutionsCommand";
  77. import {
  78. DescribeAutomationExecutionsCommandInput,
  79. DescribeAutomationExecutionsCommandOutput,
  80. } from "../commands/DescribeAutomationExecutionsCommand";
  81. import {
  82. DescribeAutomationStepExecutionsCommandInput,
  83. DescribeAutomationStepExecutionsCommandOutput,
  84. } from "../commands/DescribeAutomationStepExecutionsCommand";
  85. import {
  86. DescribeAvailablePatchesCommandInput,
  87. DescribeAvailablePatchesCommandOutput,
  88. } from "../commands/DescribeAvailablePatchesCommand";
  89. import { DescribeDocumentCommandInput, DescribeDocumentCommandOutput } from "../commands/DescribeDocumentCommand";
  90. import {
  91. DescribeDocumentPermissionCommandInput,
  92. DescribeDocumentPermissionCommandOutput,
  93. } from "../commands/DescribeDocumentPermissionCommand";
  94. import {
  95. DescribeEffectiveInstanceAssociationsCommandInput,
  96. DescribeEffectiveInstanceAssociationsCommandOutput,
  97. } from "../commands/DescribeEffectiveInstanceAssociationsCommand";
  98. import {
  99. DescribeEffectivePatchesForPatchBaselineCommandInput,
  100. DescribeEffectivePatchesForPatchBaselineCommandOutput,
  101. } from "../commands/DescribeEffectivePatchesForPatchBaselineCommand";
  102. import {
  103. DescribeInstanceAssociationsStatusCommandInput,
  104. DescribeInstanceAssociationsStatusCommandOutput,
  105. } from "../commands/DescribeInstanceAssociationsStatusCommand";
  106. import {
  107. DescribeInstanceInformationCommandInput,
  108. DescribeInstanceInformationCommandOutput,
  109. } from "../commands/DescribeInstanceInformationCommand";
  110. import {
  111. DescribeInstancePatchStatesCommandInput,
  112. DescribeInstancePatchStatesCommandOutput,
  113. } from "../commands/DescribeInstancePatchStatesCommand";
  114. import {
  115. DescribeInstancePatchStatesForPatchGroupCommandInput,
  116. DescribeInstancePatchStatesForPatchGroupCommandOutput,
  117. } from "../commands/DescribeInstancePatchStatesForPatchGroupCommand";
  118. import {
  119. DescribeInstancePatchesCommandInput,
  120. DescribeInstancePatchesCommandOutput,
  121. } from "../commands/DescribeInstancePatchesCommand";
  122. import {
  123. DescribeInventoryDeletionsCommandInput,
  124. DescribeInventoryDeletionsCommandOutput,
  125. } from "../commands/DescribeInventoryDeletionsCommand";
  126. import {
  127. DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput,
  128. DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput,
  129. } from "../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand";
  130. import {
  131. DescribeMaintenanceWindowExecutionTasksCommandInput,
  132. DescribeMaintenanceWindowExecutionTasksCommandOutput,
  133. } from "../commands/DescribeMaintenanceWindowExecutionTasksCommand";
  134. import {
  135. DescribeMaintenanceWindowExecutionsCommandInput,
  136. DescribeMaintenanceWindowExecutionsCommandOutput,
  137. } from "../commands/DescribeMaintenanceWindowExecutionsCommand";
  138. import {
  139. DescribeMaintenanceWindowScheduleCommandInput,
  140. DescribeMaintenanceWindowScheduleCommandOutput,
  141. } from "../commands/DescribeMaintenanceWindowScheduleCommand";
  142. import {
  143. DescribeMaintenanceWindowTargetsCommandInput,
  144. DescribeMaintenanceWindowTargetsCommandOutput,
  145. } from "../commands/DescribeMaintenanceWindowTargetsCommand";
  146. import {
  147. DescribeMaintenanceWindowTasksCommandInput,
  148. DescribeMaintenanceWindowTasksCommandOutput,
  149. } from "../commands/DescribeMaintenanceWindowTasksCommand";
  150. import {
  151. DescribeMaintenanceWindowsCommandInput,
  152. DescribeMaintenanceWindowsCommandOutput,
  153. } from "../commands/DescribeMaintenanceWindowsCommand";
  154. import {
  155. DescribeMaintenanceWindowsForTargetCommandInput,
  156. DescribeMaintenanceWindowsForTargetCommandOutput,
  157. } from "../commands/DescribeMaintenanceWindowsForTargetCommand";
  158. import { DescribeOpsItemsCommandInput, DescribeOpsItemsCommandOutput } from "../commands/DescribeOpsItemsCommand";
  159. import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "../commands/DescribeParametersCommand";
  160. import {
  161. DescribePatchBaselinesCommandInput,
  162. DescribePatchBaselinesCommandOutput,
  163. } from "../commands/DescribePatchBaselinesCommand";
  164. import {
  165. DescribePatchGroupStateCommandInput,
  166. DescribePatchGroupStateCommandOutput,
  167. } from "../commands/DescribePatchGroupStateCommand";
  168. import {
  169. DescribePatchGroupsCommandInput,
  170. DescribePatchGroupsCommandOutput,
  171. } from "../commands/DescribePatchGroupsCommand";
  172. import {
  173. DescribePatchPropertiesCommandInput,
  174. DescribePatchPropertiesCommandOutput,
  175. } from "../commands/DescribePatchPropertiesCommand";
  176. import { DescribeSessionsCommandInput, DescribeSessionsCommandOutput } from "../commands/DescribeSessionsCommand";
  177. import {
  178. GetAutomationExecutionCommandInput,
  179. GetAutomationExecutionCommandOutput,
  180. } from "../commands/GetAutomationExecutionCommand";
  181. import { GetCalendarStateCommandInput, GetCalendarStateCommandOutput } from "../commands/GetCalendarStateCommand";
  182. import {
  183. GetCommandInvocationCommandInput,
  184. GetCommandInvocationCommandOutput,
  185. } from "../commands/GetCommandInvocationCommand";
  186. import {
  187. GetConnectionStatusCommandInput,
  188. GetConnectionStatusCommandOutput,
  189. } from "../commands/GetConnectionStatusCommand";
  190. import {
  191. GetDefaultPatchBaselineCommandInput,
  192. GetDefaultPatchBaselineCommandOutput,
  193. } from "../commands/GetDefaultPatchBaselineCommand";
  194. import {
  195. GetDeployablePatchSnapshotForInstanceCommandInput,
  196. GetDeployablePatchSnapshotForInstanceCommandOutput,
  197. } from "../commands/GetDeployablePatchSnapshotForInstanceCommand";
  198. import { GetDocumentCommandInput, GetDocumentCommandOutput } from "../commands/GetDocumentCommand";
  199. import { GetInventoryCommandInput, GetInventoryCommandOutput } from "../commands/GetInventoryCommand";
  200. import { GetInventorySchemaCommandInput, GetInventorySchemaCommandOutput } from "../commands/GetInventorySchemaCommand";
  201. import {
  202. GetMaintenanceWindowCommandInput,
  203. GetMaintenanceWindowCommandOutput,
  204. } from "../commands/GetMaintenanceWindowCommand";
  205. import {
  206. GetMaintenanceWindowExecutionCommandInput,
  207. GetMaintenanceWindowExecutionCommandOutput,
  208. } from "../commands/GetMaintenanceWindowExecutionCommand";
  209. import {
  210. GetMaintenanceWindowExecutionTaskCommandInput,
  211. GetMaintenanceWindowExecutionTaskCommandOutput,
  212. } from "../commands/GetMaintenanceWindowExecutionTaskCommand";
  213. import {
  214. GetMaintenanceWindowExecutionTaskInvocationCommandInput,
  215. GetMaintenanceWindowExecutionTaskInvocationCommandOutput,
  216. } from "../commands/GetMaintenanceWindowExecutionTaskInvocationCommand";
  217. import {
  218. GetMaintenanceWindowTaskCommandInput,
  219. GetMaintenanceWindowTaskCommandOutput,
  220. } from "../commands/GetMaintenanceWindowTaskCommand";
  221. import { GetOpsItemCommandInput, GetOpsItemCommandOutput } from "../commands/GetOpsItemCommand";
  222. import { GetOpsSummaryCommandInput, GetOpsSummaryCommandOutput } from "../commands/GetOpsSummaryCommand";
  223. import { GetParameterCommandInput, GetParameterCommandOutput } from "../commands/GetParameterCommand";
  224. import {
  225. GetParameterHistoryCommandInput,
  226. GetParameterHistoryCommandOutput,
  227. } from "../commands/GetParameterHistoryCommand";
  228. import {
  229. GetParametersByPathCommandInput,
  230. GetParametersByPathCommandOutput,
  231. } from "../commands/GetParametersByPathCommand";
  232. import { GetParametersCommandInput, GetParametersCommandOutput } from "../commands/GetParametersCommand";
  233. import { GetPatchBaselineCommandInput, GetPatchBaselineCommandOutput } from "../commands/GetPatchBaselineCommand";
  234. import {
  235. GetPatchBaselineForPatchGroupCommandInput,
  236. GetPatchBaselineForPatchGroupCommandOutput,
  237. } from "../commands/GetPatchBaselineForPatchGroupCommand";
  238. import { GetServiceSettingCommandInput, GetServiceSettingCommandOutput } from "../commands/GetServiceSettingCommand";
  239. import {
  240. LabelParameterVersionCommandInput,
  241. LabelParameterVersionCommandOutput,
  242. } from "../commands/LabelParameterVersionCommand";
  243. import {
  244. ListAssociationVersionsCommandInput,
  245. ListAssociationVersionsCommandOutput,
  246. } from "../commands/ListAssociationVersionsCommand";
  247. import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "../commands/ListAssociationsCommand";
  248. import {
  249. ListCommandInvocationsCommandInput,
  250. ListCommandInvocationsCommandOutput,
  251. } from "../commands/ListCommandInvocationsCommand";
  252. import { ListCommandsCommandInput, ListCommandsCommandOutput } from "../commands/ListCommandsCommand";
  253. import {
  254. ListComplianceItemsCommandInput,
  255. ListComplianceItemsCommandOutput,
  256. } from "../commands/ListComplianceItemsCommand";
  257. import {
  258. ListComplianceSummariesCommandInput,
  259. ListComplianceSummariesCommandOutput,
  260. } from "../commands/ListComplianceSummariesCommand";
  261. import {
  262. ListDocumentVersionsCommandInput,
  263. ListDocumentVersionsCommandOutput,
  264. } from "../commands/ListDocumentVersionsCommand";
  265. import { ListDocumentsCommandInput, ListDocumentsCommandOutput } from "../commands/ListDocumentsCommand";
  266. import {
  267. ListInventoryEntriesCommandInput,
  268. ListInventoryEntriesCommandOutput,
  269. } from "../commands/ListInventoryEntriesCommand";
  270. import {
  271. ListResourceComplianceSummariesCommandInput,
  272. ListResourceComplianceSummariesCommandOutput,
  273. } from "../commands/ListResourceComplianceSummariesCommand";
  274. import {
  275. ListResourceDataSyncCommandInput,
  276. ListResourceDataSyncCommandOutput,
  277. } from "../commands/ListResourceDataSyncCommand";
  278. import {
  279. ListTagsForResourceCommandInput,
  280. ListTagsForResourceCommandOutput,
  281. } from "../commands/ListTagsForResourceCommand";
  282. import {
  283. ModifyDocumentPermissionCommandInput,
  284. ModifyDocumentPermissionCommandOutput,
  285. } from "../commands/ModifyDocumentPermissionCommand";
  286. import { PutComplianceItemsCommandInput, PutComplianceItemsCommandOutput } from "../commands/PutComplianceItemsCommand";
  287. import { PutInventoryCommandInput, PutInventoryCommandOutput } from "../commands/PutInventoryCommand";
  288. import { PutParameterCommandInput, PutParameterCommandOutput } from "../commands/PutParameterCommand";
  289. import {
  290. RegisterDefaultPatchBaselineCommandInput,
  291. RegisterDefaultPatchBaselineCommandOutput,
  292. } from "../commands/RegisterDefaultPatchBaselineCommand";
  293. import {
  294. RegisterPatchBaselineForPatchGroupCommandInput,
  295. RegisterPatchBaselineForPatchGroupCommandOutput,
  296. } from "../commands/RegisterPatchBaselineForPatchGroupCommand";
  297. import {
  298. RegisterTargetWithMaintenanceWindowCommandInput,
  299. RegisterTargetWithMaintenanceWindowCommandOutput,
  300. } from "../commands/RegisterTargetWithMaintenanceWindowCommand";
  301. import {
  302. RegisterTaskWithMaintenanceWindowCommandInput,
  303. RegisterTaskWithMaintenanceWindowCommandOutput,
  304. } from "../commands/RegisterTaskWithMaintenanceWindowCommand";
  305. import {
  306. RemoveTagsFromResourceCommandInput,
  307. RemoveTagsFromResourceCommandOutput,
  308. } from "../commands/RemoveTagsFromResourceCommand";
  309. import {
  310. ResetServiceSettingCommandInput,
  311. ResetServiceSettingCommandOutput,
  312. } from "../commands/ResetServiceSettingCommand";
  313. import { ResumeSessionCommandInput, ResumeSessionCommandOutput } from "../commands/ResumeSessionCommand";
  314. import {
  315. SendAutomationSignalCommandInput,
  316. SendAutomationSignalCommandOutput,
  317. } from "../commands/SendAutomationSignalCommand";
  318. import { SendCommandCommandInput, SendCommandCommandOutput } from "../commands/SendCommandCommand";
  319. import {
  320. StartAssociationsOnceCommandInput,
  321. StartAssociationsOnceCommandOutput,
  322. } from "../commands/StartAssociationsOnceCommand";
  323. import {
  324. StartAutomationExecutionCommandInput,
  325. StartAutomationExecutionCommandOutput,
  326. } from "../commands/StartAutomationExecutionCommand";
  327. import { StartSessionCommandInput, StartSessionCommandOutput } from "../commands/StartSessionCommand";
  328. import {
  329. StopAutomationExecutionCommandInput,
  330. StopAutomationExecutionCommandOutput,
  331. } from "../commands/StopAutomationExecutionCommand";
  332. import { TerminateSessionCommandInput, TerminateSessionCommandOutput } from "../commands/TerminateSessionCommand";
  333. import { UpdateAssociationCommandInput, UpdateAssociationCommandOutput } from "../commands/UpdateAssociationCommand";
  334. import {
  335. UpdateAssociationStatusCommandInput,
  336. UpdateAssociationStatusCommandOutput,
  337. } from "../commands/UpdateAssociationStatusCommand";
  338. import { UpdateDocumentCommandInput, UpdateDocumentCommandOutput } from "../commands/UpdateDocumentCommand";
  339. import {
  340. UpdateDocumentDefaultVersionCommandInput,
  341. UpdateDocumentDefaultVersionCommandOutput,
  342. } from "../commands/UpdateDocumentDefaultVersionCommand";
  343. import {
  344. UpdateMaintenanceWindowCommandInput,
  345. UpdateMaintenanceWindowCommandOutput,
  346. } from "../commands/UpdateMaintenanceWindowCommand";
  347. import {
  348. UpdateMaintenanceWindowTargetCommandInput,
  349. UpdateMaintenanceWindowTargetCommandOutput,
  350. } from "../commands/UpdateMaintenanceWindowTargetCommand";
  351. import {
  352. UpdateMaintenanceWindowTaskCommandInput,
  353. UpdateMaintenanceWindowTaskCommandOutput,
  354. } from "../commands/UpdateMaintenanceWindowTaskCommand";
  355. import {
  356. UpdateManagedInstanceRoleCommandInput,
  357. UpdateManagedInstanceRoleCommandOutput,
  358. } from "../commands/UpdateManagedInstanceRoleCommand";
  359. import { UpdateOpsItemCommandInput, UpdateOpsItemCommandOutput } from "../commands/UpdateOpsItemCommand";
  360. import {
  361. UpdatePatchBaselineCommandInput,
  362. UpdatePatchBaselineCommandOutput,
  363. } from "../commands/UpdatePatchBaselineCommand";
  364. import {
  365. UpdateResourceDataSyncCommandInput,
  366. UpdateResourceDataSyncCommandOutput,
  367. } from "../commands/UpdateResourceDataSyncCommand";
  368. import {
  369. UpdateServiceSettingCommandInput,
  370. UpdateServiceSettingCommandOutput,
  371. } from "../commands/UpdateServiceSettingCommand";
  372. import {
  373. AccountSharingInfo,
  374. Activation,
  375. AddTagsToResourceRequest,
  376. AddTagsToResourceResult,
  377. AlreadyExistsException,
  378. AssociatedInstances,
  379. AssociationAlreadyExists,
  380. AssociationDescription,
  381. AssociationDoesNotExist,
  382. AssociationExecution,
  383. AssociationExecutionDoesNotExist,
  384. AssociationExecutionFilter,
  385. AssociationExecutionTarget,
  386. AssociationExecutionTargetsFilter,
  387. AssociationLimitExceeded,
  388. AssociationOverview,
  389. AssociationStatus,
  390. AttachmentInformation,
  391. AttachmentsSource,
  392. AutomationExecutionFilter,
  393. AutomationExecutionMetadata,
  394. AutomationExecutionNotFoundException,
  395. CancelCommandRequest,
  396. CancelCommandResult,
  397. CancelMaintenanceWindowExecutionRequest,
  398. CancelMaintenanceWindowExecutionResult,
  399. CreateActivationRequest,
  400. CreateActivationResult,
  401. CreateAssociationBatchRequest,
  402. CreateAssociationBatchRequestEntry,
  403. CreateAssociationBatchResult,
  404. CreateAssociationRequest,
  405. CreateAssociationResult,
  406. CreateDocumentRequest,
  407. CreateDocumentResult,
  408. CreateMaintenanceWindowRequest,
  409. CreateMaintenanceWindowResult,
  410. CreateOpsItemRequest,
  411. CreateOpsItemResponse,
  412. CreatePatchBaselineRequest,
  413. CreatePatchBaselineResult,
  414. CreateResourceDataSyncRequest,
  415. CreateResourceDataSyncResult,
  416. DeleteActivationRequest,
  417. DeleteActivationResult,
  418. DeleteAssociationRequest,
  419. DeleteAssociationResult,
  420. DeleteDocumentRequest,
  421. DeleteDocumentResult,
  422. DeleteInventoryRequest,
  423. DeleteInventoryResult,
  424. DeleteMaintenanceWindowRequest,
  425. DeleteMaintenanceWindowResult,
  426. DeleteParameterRequest,
  427. DeleteParameterResult,
  428. DeleteParametersRequest,
  429. DeleteParametersResult,
  430. DeletePatchBaselineRequest,
  431. DeletePatchBaselineResult,
  432. DeleteResourceDataSyncRequest,
  433. DeleteResourceDataSyncResult,
  434. DeregisterManagedInstanceRequest,
  435. DeregisterManagedInstanceResult,
  436. DeregisterPatchBaselineForPatchGroupRequest,
  437. DeregisterPatchBaselineForPatchGroupResult,
  438. DeregisterTargetFromMaintenanceWindowRequest,
  439. DeregisterTargetFromMaintenanceWindowResult,
  440. DeregisterTaskFromMaintenanceWindowRequest,
  441. DeregisterTaskFromMaintenanceWindowResult,
  442. DescribeActivationsFilter,
  443. DescribeActivationsRequest,
  444. DescribeActivationsResult,
  445. DescribeAssociationExecutionTargetsRequest,
  446. DescribeAssociationExecutionTargetsResult,
  447. DescribeAssociationExecutionsRequest,
  448. DescribeAssociationExecutionsResult,
  449. DescribeAssociationRequest,
  450. DescribeAssociationResult,
  451. DescribeAutomationExecutionsRequest,
  452. DescribeAutomationExecutionsResult,
  453. DescribeAutomationStepExecutionsRequest,
  454. DescribeAutomationStepExecutionsResult,
  455. DescribeAvailablePatchesRequest,
  456. DescribeAvailablePatchesResult,
  457. DescribeDocumentPermissionRequest,
  458. DescribeDocumentPermissionResponse,
  459. DescribeDocumentRequest,
  460. DescribeDocumentResult,
  461. DescribeEffectiveInstanceAssociationsRequest,
  462. DescribeEffectiveInstanceAssociationsResult,
  463. DescribeEffectivePatchesForPatchBaselineRequest,
  464. DescribeEffectivePatchesForPatchBaselineResult,
  465. DescribeInstanceAssociationsStatusRequest,
  466. DescribeInstanceAssociationsStatusResult,
  467. DescribeInstanceInformationRequest,
  468. DescribeInstanceInformationResult,
  469. DescribeInstancePatchStatesForPatchGroupRequest,
  470. DescribeInstancePatchStatesForPatchGroupResult,
  471. DescribeInstancePatchStatesRequest,
  472. DescribeInstancePatchStatesResult,
  473. DescribeInstancePatchesRequest,
  474. DescribeInstancePatchesResult,
  475. DescribeInventoryDeletionsRequest,
  476. DescribeInventoryDeletionsResult,
  477. DescribeMaintenanceWindowExecutionTaskInvocationsRequest,
  478. DescribeMaintenanceWindowExecutionTaskInvocationsResult,
  479. DescribeMaintenanceWindowExecutionTasksRequest,
  480. DescribeMaintenanceWindowExecutionTasksResult,
  481. DescribeMaintenanceWindowExecutionsRequest,
  482. DescribeMaintenanceWindowExecutionsResult,
  483. DescribeMaintenanceWindowScheduleRequest,
  484. DescribeMaintenanceWindowScheduleResult,
  485. DescribeMaintenanceWindowTargetsRequest,
  486. DescribeMaintenanceWindowTargetsResult,
  487. DescribeMaintenanceWindowTasksRequest,
  488. DescribeMaintenanceWindowTasksResult,
  489. DescribeMaintenanceWindowsForTargetRequest,
  490. DescribeMaintenanceWindowsForTargetResult,
  491. DescribeMaintenanceWindowsRequest,
  492. DescribeMaintenanceWindowsResult,
  493. DescribeOpsItemsRequest,
  494. DescribeOpsItemsResponse,
  495. DescribeParametersRequest,
  496. DescribeParametersResult,
  497. DescribePatchBaselinesRequest,
  498. DescribePatchBaselinesResult,
  499. DescribePatchGroupStateRequest,
  500. DescribePatchGroupStateResult,
  501. DescribePatchGroupsRequest,
  502. DescribePatchGroupsResult,
  503. DescribePatchPropertiesRequest,
  504. DescribePatchPropertiesResult,
  505. DescribeSessionsRequest,
  506. DocumentAlreadyExists,
  507. DocumentDescription,
  508. DocumentLimitExceeded,
  509. DocumentParameter,
  510. DocumentRequires,
  511. DoesNotExistException,
  512. DuplicateInstanceId,
  513. EffectivePatch,
  514. FailedCreateAssociation,
  515. FailureDetails,
  516. IdempotentParameterMismatch,
  517. InstanceAggregatedAssociationOverview,
  518. InstanceAssociation,
  519. InstanceAssociationOutputLocation,
  520. InstanceAssociationOutputUrl,
  521. InstanceAssociationStatusInfo,
  522. InstanceInformation,
  523. InstanceInformationFilter,
  524. InstanceInformationStringFilter,
  525. InstancePatchState,
  526. InstancePatchStateFilter,
  527. InternalServerError,
  528. InvalidActivation,
  529. InvalidActivationId,
  530. InvalidAssociationVersion,
  531. InvalidCommandId,
  532. InvalidDeleteInventoryParametersException,
  533. InvalidDeletionIdException,
  534. InvalidDocument,
  535. InvalidDocumentContent,
  536. InvalidDocumentOperation,
  537. InvalidDocumentSchemaVersion,
  538. InvalidDocumentVersion,
  539. InvalidFilter,
  540. InvalidFilterKey,
  541. InvalidFilterOption,
  542. InvalidFilterValue,
  543. InvalidInstanceId,
  544. InvalidInstanceInformationFilterValue,
  545. InvalidInventoryRequestException,
  546. InvalidNextToken,
  547. InvalidOptionException,
  548. InvalidOutputLocation,
  549. InvalidParameters,
  550. InvalidPermissionType,
  551. InvalidResourceId,
  552. InvalidResourceType,
  553. InvalidSchedule,
  554. InvalidTarget,
  555. InvalidTypeNameException,
  556. InventoryDeletionStatusItem,
  557. InventoryDeletionSummary,
  558. InventoryDeletionSummaryItem,
  559. LoggingInfo,
  560. MaintenanceWindowExecution,
  561. MaintenanceWindowExecutionTaskIdentity,
  562. MaintenanceWindowExecutionTaskInvocationIdentity,
  563. MaintenanceWindowFilter,
  564. MaintenanceWindowIdentity,
  565. MaintenanceWindowIdentityForTarget,
  566. MaintenanceWindowTarget,
  567. MaintenanceWindowTask,
  568. MaintenanceWindowTaskParameterValueExpression,
  569. MaxDocumentSizeExceeded,
  570. OpsItemAlreadyExistsException,
  571. OpsItemDataValue,
  572. OpsItemFilter,
  573. OpsItemInvalidParameterException,
  574. OpsItemLimitExceededException,
  575. OpsItemNotification,
  576. OpsItemSummary,
  577. OutputSource,
  578. ParameterInlinePolicy,
  579. ParameterMetadata,
  580. ParameterNotFound,
  581. ParameterStringFilter,
  582. ParametersFilter,
  583. Patch,
  584. PatchBaselineIdentity,
  585. PatchComplianceData,
  586. PatchFilter,
  587. PatchFilterGroup,
  588. PatchGroupPatchBaselineMapping,
  589. PatchOrchestratorFilter,
  590. PatchRule,
  591. PatchRuleGroup,
  592. PatchSource,
  593. PatchStatus,
  594. PlatformType,
  595. RelatedOpsItem,
  596. ResolvedTargets,
  597. ResourceDataSyncAlreadyExistsException,
  598. ResourceDataSyncAwsOrganizationsSource,
  599. ResourceDataSyncCountExceededException,
  600. ResourceDataSyncDestinationDataSharing,
  601. ResourceDataSyncInvalidConfigurationException,
  602. ResourceDataSyncNotFoundException,
  603. ResourceDataSyncOrganizationalUnit,
  604. ResourceDataSyncS3Destination,
  605. ResourceDataSyncSource,
  606. ResourceInUseException,
  607. ResourceLimitExceededException,
  608. S3OutputLocation,
  609. S3OutputUrl,
  610. ScheduledWindowExecution,
  611. SessionFilter,
  612. SessionManagerOutputUrl,
  613. StepExecution,
  614. StepExecutionFilter,
  615. Tag,
  616. Target,
  617. TargetInUseException,
  618. TargetLocation,
  619. TooManyTagsError,
  620. TooManyUpdates,
  621. UnsupportedOperatingSystem,
  622. UnsupportedPlatformType,
  623. } from "../models/models_0";
  624. import {
  625. Association,
  626. AssociationFilter,
  627. AssociationVersionInfo,
  628. AssociationVersionLimitExceeded,
  629. AttachmentContent,
  630. AutomationDefinitionNotFoundException,
  631. AutomationDefinitionVersionNotFoundException,
  632. AutomationExecution,
  633. AutomationExecutionLimitExceededException,
  634. AutomationStepNotFoundException,
  635. CloudWatchOutputConfig,
  636. Command,
  637. CommandFilter,
  638. CommandInvocation,
  639. CommandPlugin,
  640. ComplianceExecutionSummary,
  641. ComplianceItem,
  642. ComplianceItemEntry,
  643. ComplianceStringFilter,
  644. ComplianceSummaryItem,
  645. ComplianceTypeCountLimitExceededException,
  646. CompliantSummary,
  647. CustomSchemaCountLimitExceededException,
  648. DescribeSessionsResponse,
  649. DocumentDefaultVersionDescription,
  650. DocumentFilter,
  651. DocumentIdentifier,
  652. DocumentKeyValuesFilter,
  653. DocumentPermissionLimit,
  654. DocumentVersionInfo,
  655. DocumentVersionLimitExceeded,
  656. DuplicateDocumentContent,
  657. DuplicateDocumentVersionName,
  658. FeatureNotAvailableException,
  659. GetAutomationExecutionRequest,
  660. GetAutomationExecutionResult,
  661. GetCalendarStateRequest,
  662. GetCalendarStateResponse,
  663. GetCommandInvocationRequest,
  664. GetCommandInvocationResult,
  665. GetConnectionStatusRequest,
  666. GetConnectionStatusResponse,
  667. GetDefaultPatchBaselineRequest,
  668. GetDefaultPatchBaselineResult,
  669. GetDeployablePatchSnapshotForInstanceRequest,
  670. GetDeployablePatchSnapshotForInstanceResult,
  671. GetDocumentRequest,
  672. GetDocumentResult,
  673. GetInventoryRequest,
  674. GetInventoryResult,
  675. GetInventorySchemaRequest,
  676. GetInventorySchemaResult,
  677. GetMaintenanceWindowExecutionRequest,
  678. GetMaintenanceWindowExecutionResult,
  679. GetMaintenanceWindowExecutionTaskInvocationRequest,
  680. GetMaintenanceWindowExecutionTaskInvocationResult,
  681. GetMaintenanceWindowExecutionTaskRequest,
  682. GetMaintenanceWindowExecutionTaskResult,
  683. GetMaintenanceWindowRequest,
  684. GetMaintenanceWindowResult,
  685. GetMaintenanceWindowTaskRequest,
  686. GetMaintenanceWindowTaskResult,
  687. GetOpsItemRequest,
  688. GetOpsItemResponse,
  689. GetOpsSummaryRequest,
  690. GetOpsSummaryResult,
  691. GetParameterHistoryRequest,
  692. GetParameterHistoryResult,
  693. GetParameterRequest,
  694. GetParameterResult,
  695. GetParametersByPathRequest,
  696. GetParametersByPathResult,
  697. GetParametersRequest,
  698. GetParametersResult,
  699. GetPatchBaselineForPatchGroupRequest,
  700. GetPatchBaselineForPatchGroupResult,
  701. GetPatchBaselineRequest,
  702. GetPatchBaselineResult,
  703. GetServiceSettingRequest,
  704. GetServiceSettingResult,
  705. HierarchyLevelLimitExceededException,
  706. HierarchyTypeMismatchException,
  707. IncompatiblePolicyException,
  708. InvalidAggregatorException,
  709. InvalidAllowedPatternException,
  710. InvalidAssociation,
  711. InvalidAutomationExecutionParametersException,
  712. InvalidAutomationSignalException,
  713. InvalidAutomationStatusUpdateException,
  714. InvalidDocumentType,
  715. InvalidInventoryGroupException,
  716. InvalidInventoryItemContextException,
  717. InvalidItemContentException,
  718. InvalidKeyId,
  719. InvalidNotificationConfig,
  720. InvalidOutputFolder,
  721. InvalidPluginName,
  722. InvalidPolicyAttributeException,
  723. InvalidPolicyTypeException,
  724. InvalidResultAttributeException,
  725. InvalidRole,
  726. InvalidUpdate,
  727. InventoryAggregator,
  728. InventoryFilter,
  729. InventoryGroup,
  730. InventoryItem,
  731. InventoryItemAttribute,
  732. InventoryItemSchema,
  733. InventoryResultEntity,
  734. InventoryResultItem,
  735. InvocationDoesNotExist,
  736. ItemContentMismatchException,
  737. ItemSizeLimitExceededException,
  738. LabelParameterVersionRequest,
  739. LabelParameterVersionResult,
  740. ListAssociationVersionsRequest,
  741. ListAssociationVersionsResult,
  742. ListAssociationsRequest,
  743. ListAssociationsResult,
  744. ListCommandInvocationsRequest,
  745. ListCommandInvocationsResult,
  746. ListCommandsRequest,
  747. ListCommandsResult,
  748. ListComplianceItemsRequest,
  749. ListComplianceItemsResult,
  750. ListComplianceSummariesRequest,
  751. ListComplianceSummariesResult,
  752. ListDocumentVersionsRequest,
  753. ListDocumentVersionsResult,
  754. ListDocumentsRequest,
  755. ListDocumentsResult,
  756. ListInventoryEntriesRequest,
  757. ListInventoryEntriesResult,
  758. ListResourceComplianceSummariesRequest,
  759. ListResourceComplianceSummariesResult,
  760. ListResourceDataSyncRequest,
  761. ListResourceDataSyncResult,
  762. ListTagsForResourceRequest,
  763. ListTagsForResourceResult,
  764. MaintenanceWindowAutomationParameters,
  765. MaintenanceWindowLambdaParameters,
  766. MaintenanceWindowRunCommandParameters,
  767. MaintenanceWindowStepFunctionsParameters,
  768. MaintenanceWindowTaskInvocationParameters,
  769. ModifyDocumentPermissionRequest,
  770. ModifyDocumentPermissionResponse,
  771. NonCompliantSummary,
  772. NotificationConfig,
  773. NotificationEvent,
  774. OpsAggregator,
  775. OpsEntity,
  776. OpsEntityItem,
  777. OpsFilter,
  778. OpsItem,
  779. OpsItemNotFoundException,
  780. OpsResultAttribute,
  781. Parameter,
  782. ParameterAlreadyExists,
  783. ParameterHistory,
  784. ParameterLimitExceeded,
  785. ParameterMaxVersionLimitExceeded,
  786. ParameterPatternMismatchException,
  787. ParameterVersionLabelLimitExceeded,
  788. ParameterVersionNotFound,
  789. PoliciesLimitExceededException,
  790. ProgressCounters,
  791. PutComplianceItemsRequest,
  792. PutComplianceItemsResult,
  793. PutInventoryRequest,
  794. PutInventoryResult,
  795. PutParameterRequest,
  796. PutParameterResult,
  797. RegisterDefaultPatchBaselineRequest,
  798. RegisterDefaultPatchBaselineResult,
  799. RegisterPatchBaselineForPatchGroupRequest,
  800. RegisterPatchBaselineForPatchGroupResult,
  801. RegisterTargetWithMaintenanceWindowRequest,
  802. RegisterTargetWithMaintenanceWindowResult,
  803. RegisterTaskWithMaintenanceWindowRequest,
  804. RegisterTaskWithMaintenanceWindowResult,
  805. RemoveTagsFromResourceRequest,
  806. RemoveTagsFromResourceResult,
  807. ResetServiceSettingRequest,
  808. ResetServiceSettingResult,
  809. ResourceComplianceSummaryItem,
  810. ResourceDataSyncConflictException,
  811. ResourceDataSyncItem,
  812. ResourceDataSyncSourceWithState,
  813. ResultAttribute,
  814. ResumeSessionRequest,
  815. ResumeSessionResponse,
  816. SendAutomationSignalRequest,
  817. SendAutomationSignalResult,
  818. SendCommandRequest,
  819. SendCommandResult,
  820. ServiceSetting,
  821. ServiceSettingNotFound,
  822. Session,
  823. SeveritySummary,
  824. StartAssociationsOnceRequest,
  825. StartAssociationsOnceResult,
  826. StartAutomationExecutionRequest,
  827. StartAutomationExecutionResult,
  828. StartSessionRequest,
  829. StartSessionResponse,
  830. StatusUnchanged,
  831. StopAutomationExecutionRequest,
  832. StopAutomationExecutionResult,
  833. SubTypeCountLimitExceededException,
  834. TargetNotConnected,
  835. TerminateSessionRequest,
  836. TerminateSessionResponse,
  837. TotalSizeLimitExceededException,
  838. UnsupportedCalendarException,
  839. UnsupportedFeatureRequiredException,
  840. UnsupportedInventoryItemContextException,
  841. UnsupportedInventorySchemaVersionException,
  842. UnsupportedParameterType,
  843. UpdateAssociationRequest,
  844. UpdateAssociationResult,
  845. UpdateAssociationStatusRequest,
  846. UpdateAssociationStatusResult,
  847. UpdateDocumentDefaultVersionRequest,
  848. UpdateDocumentDefaultVersionResult,
  849. UpdateDocumentRequest,
  850. UpdateDocumentResult,
  851. UpdateMaintenanceWindowRequest,
  852. UpdateMaintenanceWindowResult,
  853. UpdateMaintenanceWindowTargetRequest,
  854. UpdateMaintenanceWindowTargetResult,
  855. UpdateMaintenanceWindowTaskRequest,
  856. UpdateMaintenanceWindowTaskResult,
  857. UpdateManagedInstanceRoleRequest,
  858. UpdateManagedInstanceRoleResult,
  859. UpdateOpsItemRequest,
  860. UpdateOpsItemResponse,
  861. UpdatePatchBaselineRequest,
  862. UpdatePatchBaselineResult,
  863. UpdateResourceDataSyncRequest,
  864. UpdateResourceDataSyncResult,
  865. UpdateServiceSettingRequest,
  866. UpdateServiceSettingResult,
  867. } from "../models/models_1";
  868. import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
  869. import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client";
  870. import {
  871. Endpoint as __Endpoint,
  872. HeaderBag as __HeaderBag,
  873. MetadataBearer as __MetadataBearer,
  874. ResponseMetadata as __ResponseMetadata,
  875. SerdeContext as __SerdeContext,
  876. } from "@aws-sdk/types";
  877. import { v4 as generateIdempotencyToken } from "uuid";
  878. export const serializeAws_json1_1AddTagsToResourceCommand = async (
  879. input: AddTagsToResourceCommandInput,
  880. context: __SerdeContext
  881. ): Promise<__HttpRequest> => {
  882. const headers: __HeaderBag = {
  883. "Content-Type": "application/x-amz-json-1.1",
  884. "X-Amz-Target": "AmazonSSM.AddTagsToResource",
  885. };
  886. let body: any;
  887. body = JSON.stringify(serializeAws_json1_1AddTagsToResourceRequest(input, context));
  888. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  889. };
  890. export const serializeAws_json1_1CancelCommandCommand = async (
  891. input: CancelCommandCommandInput,
  892. context: __SerdeContext
  893. ): Promise<__HttpRequest> => {
  894. const headers: __HeaderBag = {
  895. "Content-Type": "application/x-amz-json-1.1",
  896. "X-Amz-Target": "AmazonSSM.CancelCommand",
  897. };
  898. let body: any;
  899. body = JSON.stringify(serializeAws_json1_1CancelCommandRequest(input, context));
  900. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  901. };
  902. export const serializeAws_json1_1CancelMaintenanceWindowExecutionCommand = async (
  903. input: CancelMaintenanceWindowExecutionCommandInput,
  904. context: __SerdeContext
  905. ): Promise<__HttpRequest> => {
  906. const headers: __HeaderBag = {
  907. "Content-Type": "application/x-amz-json-1.1",
  908. "X-Amz-Target": "AmazonSSM.CancelMaintenanceWindowExecution",
  909. };
  910. let body: any;
  911. body = JSON.stringify(serializeAws_json1_1CancelMaintenanceWindowExecutionRequest(input, context));
  912. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  913. };
  914. export const serializeAws_json1_1CreateActivationCommand = async (
  915. input: CreateActivationCommandInput,
  916. context: __SerdeContext
  917. ): Promise<__HttpRequest> => {
  918. const headers: __HeaderBag = {
  919. "Content-Type": "application/x-amz-json-1.1",
  920. "X-Amz-Target": "AmazonSSM.CreateActivation",
  921. };
  922. let body: any;
  923. body = JSON.stringify(serializeAws_json1_1CreateActivationRequest(input, context));
  924. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  925. };
  926. export const serializeAws_json1_1CreateAssociationCommand = async (
  927. input: CreateAssociationCommandInput,
  928. context: __SerdeContext
  929. ): Promise<__HttpRequest> => {
  930. const headers: __HeaderBag = {
  931. "Content-Type": "application/x-amz-json-1.1",
  932. "X-Amz-Target": "AmazonSSM.CreateAssociation",
  933. };
  934. let body: any;
  935. body = JSON.stringify(serializeAws_json1_1CreateAssociationRequest(input, context));
  936. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  937. };
  938. export const serializeAws_json1_1CreateAssociationBatchCommand = async (
  939. input: CreateAssociationBatchCommandInput,
  940. context: __SerdeContext
  941. ): Promise<__HttpRequest> => {
  942. const headers: __HeaderBag = {
  943. "Content-Type": "application/x-amz-json-1.1",
  944. "X-Amz-Target": "AmazonSSM.CreateAssociationBatch",
  945. };
  946. let body: any;
  947. body = JSON.stringify(serializeAws_json1_1CreateAssociationBatchRequest(input, context));
  948. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  949. };
  950. export const serializeAws_json1_1CreateDocumentCommand = async (
  951. input: CreateDocumentCommandInput,
  952. context: __SerdeContext
  953. ): Promise<__HttpRequest> => {
  954. const headers: __HeaderBag = {
  955. "Content-Type": "application/x-amz-json-1.1",
  956. "X-Amz-Target": "AmazonSSM.CreateDocument",
  957. };
  958. let body: any;
  959. body = JSON.stringify(serializeAws_json1_1CreateDocumentRequest(input, context));
  960. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  961. };
  962. export const serializeAws_json1_1CreateMaintenanceWindowCommand = async (
  963. input: CreateMaintenanceWindowCommandInput,
  964. context: __SerdeContext
  965. ): Promise<__HttpRequest> => {
  966. const headers: __HeaderBag = {
  967. "Content-Type": "application/x-amz-json-1.1",
  968. "X-Amz-Target": "AmazonSSM.CreateMaintenanceWindow",
  969. };
  970. let body: any;
  971. body = JSON.stringify(serializeAws_json1_1CreateMaintenanceWindowRequest(input, context));
  972. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  973. };
  974. export const serializeAws_json1_1CreateOpsItemCommand = async (
  975. input: CreateOpsItemCommandInput,
  976. context: __SerdeContext
  977. ): Promise<__HttpRequest> => {
  978. const headers: __HeaderBag = {
  979. "Content-Type": "application/x-amz-json-1.1",
  980. "X-Amz-Target": "AmazonSSM.CreateOpsItem",
  981. };
  982. let body: any;
  983. body = JSON.stringify(serializeAws_json1_1CreateOpsItemRequest(input, context));
  984. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  985. };
  986. export const serializeAws_json1_1CreatePatchBaselineCommand = async (
  987. input: CreatePatchBaselineCommandInput,
  988. context: __SerdeContext
  989. ): Promise<__HttpRequest> => {
  990. const headers: __HeaderBag = {
  991. "Content-Type": "application/x-amz-json-1.1",
  992. "X-Amz-Target": "AmazonSSM.CreatePatchBaseline",
  993. };
  994. let body: any;
  995. body = JSON.stringify(serializeAws_json1_1CreatePatchBaselineRequest(input, context));
  996. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  997. };
  998. export const serializeAws_json1_1CreateResourceDataSyncCommand = async (
  999. input: CreateResourceDataSyncCommandInput,
  1000. context: __SerdeContext
  1001. ): Promise<__HttpRequest> => {
  1002. const headers: __HeaderBag = {
  1003. "Content-Type": "application/x-amz-json-1.1",
  1004. "X-Amz-Target": "AmazonSSM.CreateResourceDataSync",
  1005. };
  1006. let body: any;
  1007. body = JSON.stringify(serializeAws_json1_1CreateResourceDataSyncRequest(input, context));
  1008. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1009. };
  1010. export const serializeAws_json1_1DeleteActivationCommand = async (
  1011. input: DeleteActivationCommandInput,
  1012. context: __SerdeContext
  1013. ): Promise<__HttpRequest> => {
  1014. const headers: __HeaderBag = {
  1015. "Content-Type": "application/x-amz-json-1.1",
  1016. "X-Amz-Target": "AmazonSSM.DeleteActivation",
  1017. };
  1018. let body: any;
  1019. body = JSON.stringify(serializeAws_json1_1DeleteActivationRequest(input, context));
  1020. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1021. };
  1022. export const serializeAws_json1_1DeleteAssociationCommand = async (
  1023. input: DeleteAssociationCommandInput,
  1024. context: __SerdeContext
  1025. ): Promise<__HttpRequest> => {
  1026. const headers: __HeaderBag = {
  1027. "Content-Type": "application/x-amz-json-1.1",
  1028. "X-Amz-Target": "AmazonSSM.DeleteAssociation",
  1029. };
  1030. let body: any;
  1031. body = JSON.stringify(serializeAws_json1_1DeleteAssociationRequest(input, context));
  1032. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1033. };
  1034. export const serializeAws_json1_1DeleteDocumentCommand = async (
  1035. input: DeleteDocumentCommandInput,
  1036. context: __SerdeContext
  1037. ): Promise<__HttpRequest> => {
  1038. const headers: __HeaderBag = {
  1039. "Content-Type": "application/x-amz-json-1.1",
  1040. "X-Amz-Target": "AmazonSSM.DeleteDocument",
  1041. };
  1042. let body: any;
  1043. body = JSON.stringify(serializeAws_json1_1DeleteDocumentRequest(input, context));
  1044. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1045. };
  1046. export const serializeAws_json1_1DeleteInventoryCommand = async (
  1047. input: DeleteInventoryCommandInput,
  1048. context: __SerdeContext
  1049. ): Promise<__HttpRequest> => {
  1050. const headers: __HeaderBag = {
  1051. "Content-Type": "application/x-amz-json-1.1",
  1052. "X-Amz-Target": "AmazonSSM.DeleteInventory",
  1053. };
  1054. let body: any;
  1055. body = JSON.stringify(serializeAws_json1_1DeleteInventoryRequest(input, context));
  1056. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1057. };
  1058. export const serializeAws_json1_1DeleteMaintenanceWindowCommand = async (
  1059. input: DeleteMaintenanceWindowCommandInput,
  1060. context: __SerdeContext
  1061. ): Promise<__HttpRequest> => {
  1062. const headers: __HeaderBag = {
  1063. "Content-Type": "application/x-amz-json-1.1",
  1064. "X-Amz-Target": "AmazonSSM.DeleteMaintenanceWindow",
  1065. };
  1066. let body: any;
  1067. body = JSON.stringify(serializeAws_json1_1DeleteMaintenanceWindowRequest(input, context));
  1068. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1069. };
  1070. export const serializeAws_json1_1DeleteParameterCommand = async (
  1071. input: DeleteParameterCommandInput,
  1072. context: __SerdeContext
  1073. ): Promise<__HttpRequest> => {
  1074. const headers: __HeaderBag = {
  1075. "Content-Type": "application/x-amz-json-1.1",
  1076. "X-Amz-Target": "AmazonSSM.DeleteParameter",
  1077. };
  1078. let body: any;
  1079. body = JSON.stringify(serializeAws_json1_1DeleteParameterRequest(input, context));
  1080. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1081. };
  1082. export const serializeAws_json1_1DeleteParametersCommand = async (
  1083. input: DeleteParametersCommandInput,
  1084. context: __SerdeContext
  1085. ): Promise<__HttpRequest> => {
  1086. const headers: __HeaderBag = {
  1087. "Content-Type": "application/x-amz-json-1.1",
  1088. "X-Amz-Target": "AmazonSSM.DeleteParameters",
  1089. };
  1090. let body: any;
  1091. body = JSON.stringify(serializeAws_json1_1DeleteParametersRequest(input, context));
  1092. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1093. };
  1094. export const serializeAws_json1_1DeletePatchBaselineCommand = async (
  1095. input: DeletePatchBaselineCommandInput,
  1096. context: __SerdeContext
  1097. ): Promise<__HttpRequest> => {
  1098. const headers: __HeaderBag = {
  1099. "Content-Type": "application/x-amz-json-1.1",
  1100. "X-Amz-Target": "AmazonSSM.DeletePatchBaseline",
  1101. };
  1102. let body: any;
  1103. body = JSON.stringify(serializeAws_json1_1DeletePatchBaselineRequest(input, context));
  1104. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1105. };
  1106. export const serializeAws_json1_1DeleteResourceDataSyncCommand = async (
  1107. input: DeleteResourceDataSyncCommandInput,
  1108. context: __SerdeContext
  1109. ): Promise<__HttpRequest> => {
  1110. const headers: __HeaderBag = {
  1111. "Content-Type": "application/x-amz-json-1.1",
  1112. "X-Amz-Target": "AmazonSSM.DeleteResourceDataSync",
  1113. };
  1114. let body: any;
  1115. body = JSON.stringify(serializeAws_json1_1DeleteResourceDataSyncRequest(input, context));
  1116. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1117. };
  1118. export const serializeAws_json1_1DeregisterManagedInstanceCommand = async (
  1119. input: DeregisterManagedInstanceCommandInput,
  1120. context: __SerdeContext
  1121. ): Promise<__HttpRequest> => {
  1122. const headers: __HeaderBag = {
  1123. "Content-Type": "application/x-amz-json-1.1",
  1124. "X-Amz-Target": "AmazonSSM.DeregisterManagedInstance",
  1125. };
  1126. let body: any;
  1127. body = JSON.stringify(serializeAws_json1_1DeregisterManagedInstanceRequest(input, context));
  1128. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1129. };
  1130. export const serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = async (
  1131. input: DeregisterPatchBaselineForPatchGroupCommandInput,
  1132. context: __SerdeContext
  1133. ): Promise<__HttpRequest> => {
  1134. const headers: __HeaderBag = {
  1135. "Content-Type": "application/x-amz-json-1.1",
  1136. "X-Amz-Target": "AmazonSSM.DeregisterPatchBaselineForPatchGroup",
  1137. };
  1138. let body: any;
  1139. body = JSON.stringify(serializeAws_json1_1DeregisterPatchBaselineForPatchGroupRequest(input, context));
  1140. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1141. };
  1142. export const serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = async (
  1143. input: DeregisterTargetFromMaintenanceWindowCommandInput,
  1144. context: __SerdeContext
  1145. ): Promise<__HttpRequest> => {
  1146. const headers: __HeaderBag = {
  1147. "Content-Type": "application/x-amz-json-1.1",
  1148. "X-Amz-Target": "AmazonSSM.DeregisterTargetFromMaintenanceWindow",
  1149. };
  1150. let body: any;
  1151. body = JSON.stringify(serializeAws_json1_1DeregisterTargetFromMaintenanceWindowRequest(input, context));
  1152. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1153. };
  1154. export const serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = async (
  1155. input: DeregisterTaskFromMaintenanceWindowCommandInput,
  1156. context: __SerdeContext
  1157. ): Promise<__HttpRequest> => {
  1158. const headers: __HeaderBag = {
  1159. "Content-Type": "application/x-amz-json-1.1",
  1160. "X-Amz-Target": "AmazonSSM.DeregisterTaskFromMaintenanceWindow",
  1161. };
  1162. let body: any;
  1163. body = JSON.stringify(serializeAws_json1_1DeregisterTaskFromMaintenanceWindowRequest(input, context));
  1164. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1165. };
  1166. export const serializeAws_json1_1DescribeActivationsCommand = async (
  1167. input: DescribeActivationsCommandInput,
  1168. context: __SerdeContext
  1169. ): Promise<__HttpRequest> => {
  1170. const headers: __HeaderBag = {
  1171. "Content-Type": "application/x-amz-json-1.1",
  1172. "X-Amz-Target": "AmazonSSM.DescribeActivations",
  1173. };
  1174. let body: any;
  1175. body = JSON.stringify(serializeAws_json1_1DescribeActivationsRequest(input, context));
  1176. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1177. };
  1178. export const serializeAws_json1_1DescribeAssociationCommand = async (
  1179. input: DescribeAssociationCommandInput,
  1180. context: __SerdeContext
  1181. ): Promise<__HttpRequest> => {
  1182. const headers: __HeaderBag = {
  1183. "Content-Type": "application/x-amz-json-1.1",
  1184. "X-Amz-Target": "AmazonSSM.DescribeAssociation",
  1185. };
  1186. let body: any;
  1187. body = JSON.stringify(serializeAws_json1_1DescribeAssociationRequest(input, context));
  1188. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1189. };
  1190. export const serializeAws_json1_1DescribeAssociationExecutionsCommand = async (
  1191. input: DescribeAssociationExecutionsCommandInput,
  1192. context: __SerdeContext
  1193. ): Promise<__HttpRequest> => {
  1194. const headers: __HeaderBag = {
  1195. "Content-Type": "application/x-amz-json-1.1",
  1196. "X-Amz-Target": "AmazonSSM.DescribeAssociationExecutions",
  1197. };
  1198. let body: any;
  1199. body = JSON.stringify(serializeAws_json1_1DescribeAssociationExecutionsRequest(input, context));
  1200. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1201. };
  1202. export const serializeAws_json1_1DescribeAssociationExecutionTargetsCommand = async (
  1203. input: DescribeAssociationExecutionTargetsCommandInput,
  1204. context: __SerdeContext
  1205. ): Promise<__HttpRequest> => {
  1206. const headers: __HeaderBag = {
  1207. "Content-Type": "application/x-amz-json-1.1",
  1208. "X-Amz-Target": "AmazonSSM.DescribeAssociationExecutionTargets",
  1209. };
  1210. let body: any;
  1211. body = JSON.stringify(serializeAws_json1_1DescribeAssociationExecutionTargetsRequest(input, context));
  1212. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1213. };
  1214. export const serializeAws_json1_1DescribeAutomationExecutionsCommand = async (
  1215. input: DescribeAutomationExecutionsCommandInput,
  1216. context: __SerdeContext
  1217. ): Promise<__HttpRequest> => {
  1218. const headers: __HeaderBag = {
  1219. "Content-Type": "application/x-amz-json-1.1",
  1220. "X-Amz-Target": "AmazonSSM.DescribeAutomationExecutions",
  1221. };
  1222. let body: any;
  1223. body = JSON.stringify(serializeAws_json1_1DescribeAutomationExecutionsRequest(input, context));
  1224. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1225. };
  1226. export const serializeAws_json1_1DescribeAutomationStepExecutionsCommand = async (
  1227. input: DescribeAutomationStepExecutionsCommandInput,
  1228. context: __SerdeContext
  1229. ): Promise<__HttpRequest> => {
  1230. const headers: __HeaderBag = {
  1231. "Content-Type": "application/x-amz-json-1.1",
  1232. "X-Amz-Target": "AmazonSSM.DescribeAutomationStepExecutions",
  1233. };
  1234. let body: any;
  1235. body = JSON.stringify(serializeAws_json1_1DescribeAutomationStepExecutionsRequest(input, context));
  1236. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1237. };
  1238. export const serializeAws_json1_1DescribeAvailablePatchesCommand = async (
  1239. input: DescribeAvailablePatchesCommandInput,
  1240. context: __SerdeContext
  1241. ): Promise<__HttpRequest> => {
  1242. const headers: __HeaderBag = {
  1243. "Content-Type": "application/x-amz-json-1.1",
  1244. "X-Amz-Target": "AmazonSSM.DescribeAvailablePatches",
  1245. };
  1246. let body: any;
  1247. body = JSON.stringify(serializeAws_json1_1DescribeAvailablePatchesRequest(input, context));
  1248. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1249. };
  1250. export const serializeAws_json1_1DescribeDocumentCommand = async (
  1251. input: DescribeDocumentCommandInput,
  1252. context: __SerdeContext
  1253. ): Promise<__HttpRequest> => {
  1254. const headers: __HeaderBag = {
  1255. "Content-Type": "application/x-amz-json-1.1",
  1256. "X-Amz-Target": "AmazonSSM.DescribeDocument",
  1257. };
  1258. let body: any;
  1259. body = JSON.stringify(serializeAws_json1_1DescribeDocumentRequest(input, context));
  1260. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1261. };
  1262. export const serializeAws_json1_1DescribeDocumentPermissionCommand = async (
  1263. input: DescribeDocumentPermissionCommandInput,
  1264. context: __SerdeContext
  1265. ): Promise<__HttpRequest> => {
  1266. const headers: __HeaderBag = {
  1267. "Content-Type": "application/x-amz-json-1.1",
  1268. "X-Amz-Target": "AmazonSSM.DescribeDocumentPermission",
  1269. };
  1270. let body: any;
  1271. body = JSON.stringify(serializeAws_json1_1DescribeDocumentPermissionRequest(input, context));
  1272. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1273. };
  1274. export const serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = async (
  1275. input: DescribeEffectiveInstanceAssociationsCommandInput,
  1276. context: __SerdeContext
  1277. ): Promise<__HttpRequest> => {
  1278. const headers: __HeaderBag = {
  1279. "Content-Type": "application/x-amz-json-1.1",
  1280. "X-Amz-Target": "AmazonSSM.DescribeEffectiveInstanceAssociations",
  1281. };
  1282. let body: any;
  1283. body = JSON.stringify(serializeAws_json1_1DescribeEffectiveInstanceAssociationsRequest(input, context));
  1284. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1285. };
  1286. export const serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = async (
  1287. input: DescribeEffectivePatchesForPatchBaselineCommandInput,
  1288. context: __SerdeContext
  1289. ): Promise<__HttpRequest> => {
  1290. const headers: __HeaderBag = {
  1291. "Content-Type": "application/x-amz-json-1.1",
  1292. "X-Amz-Target": "AmazonSSM.DescribeEffectivePatchesForPatchBaseline",
  1293. };
  1294. let body: any;
  1295. body = JSON.stringify(serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineRequest(input, context));
  1296. return buildHttpRpcRequest(context, headers, "/", undefined, body);
  1297. };
  1298. export const serializeAws_json1_1DescribeInstanceAssociationsStatusCommand = async (
  1299. input: Desc