/clients/client-ssm/SSM.ts

https://github.com/aws/aws-sdk-js-v3 · TypeScript · 4971 lines · 3998 code · 122 blank · 851 comment · 1350 complexity · db6669684234cecf7bea5e99e4b49f39 MD5 · raw file

Large files are truncated click here to view the full file

  1. import { SSMClient } from "./SSMClient";
  2. import {
  3. AddTagsToResourceCommand,
  4. AddTagsToResourceCommandInput,
  5. AddTagsToResourceCommandOutput,
  6. } from "./commands/AddTagsToResourceCommand";
  7. import {
  8. CancelCommandCommand,
  9. CancelCommandCommandInput,
  10. CancelCommandCommandOutput,
  11. } from "./commands/CancelCommandCommand";
  12. import {
  13. CancelMaintenanceWindowExecutionCommand,
  14. CancelMaintenanceWindowExecutionCommandInput,
  15. CancelMaintenanceWindowExecutionCommandOutput,
  16. } from "./commands/CancelMaintenanceWindowExecutionCommand";
  17. import {
  18. CreateActivationCommand,
  19. CreateActivationCommandInput,
  20. CreateActivationCommandOutput,
  21. } from "./commands/CreateActivationCommand";
  22. import {
  23. CreateAssociationBatchCommand,
  24. CreateAssociationBatchCommandInput,
  25. CreateAssociationBatchCommandOutput,
  26. } from "./commands/CreateAssociationBatchCommand";
  27. import {
  28. CreateAssociationCommand,
  29. CreateAssociationCommandInput,
  30. CreateAssociationCommandOutput,
  31. } from "./commands/CreateAssociationCommand";
  32. import {
  33. CreateDocumentCommand,
  34. CreateDocumentCommandInput,
  35. CreateDocumentCommandOutput,
  36. } from "./commands/CreateDocumentCommand";
  37. import {
  38. CreateMaintenanceWindowCommand,
  39. CreateMaintenanceWindowCommandInput,
  40. CreateMaintenanceWindowCommandOutput,
  41. } from "./commands/CreateMaintenanceWindowCommand";
  42. import {
  43. CreateOpsItemCommand,
  44. CreateOpsItemCommandInput,
  45. CreateOpsItemCommandOutput,
  46. } from "./commands/CreateOpsItemCommand";
  47. import {
  48. CreatePatchBaselineCommand,
  49. CreatePatchBaselineCommandInput,
  50. CreatePatchBaselineCommandOutput,
  51. } from "./commands/CreatePatchBaselineCommand";
  52. import {
  53. CreateResourceDataSyncCommand,
  54. CreateResourceDataSyncCommandInput,
  55. CreateResourceDataSyncCommandOutput,
  56. } from "./commands/CreateResourceDataSyncCommand";
  57. import {
  58. DeleteActivationCommand,
  59. DeleteActivationCommandInput,
  60. DeleteActivationCommandOutput,
  61. } from "./commands/DeleteActivationCommand";
  62. import {
  63. DeleteAssociationCommand,
  64. DeleteAssociationCommandInput,
  65. DeleteAssociationCommandOutput,
  66. } from "./commands/DeleteAssociationCommand";
  67. import {
  68. DeleteDocumentCommand,
  69. DeleteDocumentCommandInput,
  70. DeleteDocumentCommandOutput,
  71. } from "./commands/DeleteDocumentCommand";
  72. import {
  73. DeleteInventoryCommand,
  74. DeleteInventoryCommandInput,
  75. DeleteInventoryCommandOutput,
  76. } from "./commands/DeleteInventoryCommand";
  77. import {
  78. DeleteMaintenanceWindowCommand,
  79. DeleteMaintenanceWindowCommandInput,
  80. DeleteMaintenanceWindowCommandOutput,
  81. } from "./commands/DeleteMaintenanceWindowCommand";
  82. import {
  83. DeleteParameterCommand,
  84. DeleteParameterCommandInput,
  85. DeleteParameterCommandOutput,
  86. } from "./commands/DeleteParameterCommand";
  87. import {
  88. DeleteParametersCommand,
  89. DeleteParametersCommandInput,
  90. DeleteParametersCommandOutput,
  91. } from "./commands/DeleteParametersCommand";
  92. import {
  93. DeletePatchBaselineCommand,
  94. DeletePatchBaselineCommandInput,
  95. DeletePatchBaselineCommandOutput,
  96. } from "./commands/DeletePatchBaselineCommand";
  97. import {
  98. DeleteResourceDataSyncCommand,
  99. DeleteResourceDataSyncCommandInput,
  100. DeleteResourceDataSyncCommandOutput,
  101. } from "./commands/DeleteResourceDataSyncCommand";
  102. import {
  103. DeregisterManagedInstanceCommand,
  104. DeregisterManagedInstanceCommandInput,
  105. DeregisterManagedInstanceCommandOutput,
  106. } from "./commands/DeregisterManagedInstanceCommand";
  107. import {
  108. DeregisterPatchBaselineForPatchGroupCommand,
  109. DeregisterPatchBaselineForPatchGroupCommandInput,
  110. DeregisterPatchBaselineForPatchGroupCommandOutput,
  111. } from "./commands/DeregisterPatchBaselineForPatchGroupCommand";
  112. import {
  113. DeregisterTargetFromMaintenanceWindowCommand,
  114. DeregisterTargetFromMaintenanceWindowCommandInput,
  115. DeregisterTargetFromMaintenanceWindowCommandOutput,
  116. } from "./commands/DeregisterTargetFromMaintenanceWindowCommand";
  117. import {
  118. DeregisterTaskFromMaintenanceWindowCommand,
  119. DeregisterTaskFromMaintenanceWindowCommandInput,
  120. DeregisterTaskFromMaintenanceWindowCommandOutput,
  121. } from "./commands/DeregisterTaskFromMaintenanceWindowCommand";
  122. import {
  123. DescribeActivationsCommand,
  124. DescribeActivationsCommandInput,
  125. DescribeActivationsCommandOutput,
  126. } from "./commands/DescribeActivationsCommand";
  127. import {
  128. DescribeAssociationCommand,
  129. DescribeAssociationCommandInput,
  130. DescribeAssociationCommandOutput,
  131. } from "./commands/DescribeAssociationCommand";
  132. import {
  133. DescribeAssociationExecutionTargetsCommand,
  134. DescribeAssociationExecutionTargetsCommandInput,
  135. DescribeAssociationExecutionTargetsCommandOutput,
  136. } from "./commands/DescribeAssociationExecutionTargetsCommand";
  137. import {
  138. DescribeAssociationExecutionsCommand,
  139. DescribeAssociationExecutionsCommandInput,
  140. DescribeAssociationExecutionsCommandOutput,
  141. } from "./commands/DescribeAssociationExecutionsCommand";
  142. import {
  143. DescribeAutomationExecutionsCommand,
  144. DescribeAutomationExecutionsCommandInput,
  145. DescribeAutomationExecutionsCommandOutput,
  146. } from "./commands/DescribeAutomationExecutionsCommand";
  147. import {
  148. DescribeAutomationStepExecutionsCommand,
  149. DescribeAutomationStepExecutionsCommandInput,
  150. DescribeAutomationStepExecutionsCommandOutput,
  151. } from "./commands/DescribeAutomationStepExecutionsCommand";
  152. import {
  153. DescribeAvailablePatchesCommand,
  154. DescribeAvailablePatchesCommandInput,
  155. DescribeAvailablePatchesCommandOutput,
  156. } from "./commands/DescribeAvailablePatchesCommand";
  157. import {
  158. DescribeDocumentCommand,
  159. DescribeDocumentCommandInput,
  160. DescribeDocumentCommandOutput,
  161. } from "./commands/DescribeDocumentCommand";
  162. import {
  163. DescribeDocumentPermissionCommand,
  164. DescribeDocumentPermissionCommandInput,
  165. DescribeDocumentPermissionCommandOutput,
  166. } from "./commands/DescribeDocumentPermissionCommand";
  167. import {
  168. DescribeEffectiveInstanceAssociationsCommand,
  169. DescribeEffectiveInstanceAssociationsCommandInput,
  170. DescribeEffectiveInstanceAssociationsCommandOutput,
  171. } from "./commands/DescribeEffectiveInstanceAssociationsCommand";
  172. import {
  173. DescribeEffectivePatchesForPatchBaselineCommand,
  174. DescribeEffectivePatchesForPatchBaselineCommandInput,
  175. DescribeEffectivePatchesForPatchBaselineCommandOutput,
  176. } from "./commands/DescribeEffectivePatchesForPatchBaselineCommand";
  177. import {
  178. DescribeInstanceAssociationsStatusCommand,
  179. DescribeInstanceAssociationsStatusCommandInput,
  180. DescribeInstanceAssociationsStatusCommandOutput,
  181. } from "./commands/DescribeInstanceAssociationsStatusCommand";
  182. import {
  183. DescribeInstanceInformationCommand,
  184. DescribeInstanceInformationCommandInput,
  185. DescribeInstanceInformationCommandOutput,
  186. } from "./commands/DescribeInstanceInformationCommand";
  187. import {
  188. DescribeInstancePatchStatesCommand,
  189. DescribeInstancePatchStatesCommandInput,
  190. DescribeInstancePatchStatesCommandOutput,
  191. } from "./commands/DescribeInstancePatchStatesCommand";
  192. import {
  193. DescribeInstancePatchStatesForPatchGroupCommand,
  194. DescribeInstancePatchStatesForPatchGroupCommandInput,
  195. DescribeInstancePatchStatesForPatchGroupCommandOutput,
  196. } from "./commands/DescribeInstancePatchStatesForPatchGroupCommand";
  197. import {
  198. DescribeInstancePatchesCommand,
  199. DescribeInstancePatchesCommandInput,
  200. DescribeInstancePatchesCommandOutput,
  201. } from "./commands/DescribeInstancePatchesCommand";
  202. import {
  203. DescribeInventoryDeletionsCommand,
  204. DescribeInventoryDeletionsCommandInput,
  205. DescribeInventoryDeletionsCommandOutput,
  206. } from "./commands/DescribeInventoryDeletionsCommand";
  207. import {
  208. DescribeMaintenanceWindowExecutionTaskInvocationsCommand,
  209. DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput,
  210. DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput,
  211. } from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand";
  212. import {
  213. DescribeMaintenanceWindowExecutionTasksCommand,
  214. DescribeMaintenanceWindowExecutionTasksCommandInput,
  215. DescribeMaintenanceWindowExecutionTasksCommandOutput,
  216. } from "./commands/DescribeMaintenanceWindowExecutionTasksCommand";
  217. import {
  218. DescribeMaintenanceWindowExecutionsCommand,
  219. DescribeMaintenanceWindowExecutionsCommandInput,
  220. DescribeMaintenanceWindowExecutionsCommandOutput,
  221. } from "./commands/DescribeMaintenanceWindowExecutionsCommand";
  222. import {
  223. DescribeMaintenanceWindowScheduleCommand,
  224. DescribeMaintenanceWindowScheduleCommandInput,
  225. DescribeMaintenanceWindowScheduleCommandOutput,
  226. } from "./commands/DescribeMaintenanceWindowScheduleCommand";
  227. import {
  228. DescribeMaintenanceWindowTargetsCommand,
  229. DescribeMaintenanceWindowTargetsCommandInput,
  230. DescribeMaintenanceWindowTargetsCommandOutput,
  231. } from "./commands/DescribeMaintenanceWindowTargetsCommand";
  232. import {
  233. DescribeMaintenanceWindowTasksCommand,
  234. DescribeMaintenanceWindowTasksCommandInput,
  235. DescribeMaintenanceWindowTasksCommandOutput,
  236. } from "./commands/DescribeMaintenanceWindowTasksCommand";
  237. import {
  238. DescribeMaintenanceWindowsCommand,
  239. DescribeMaintenanceWindowsCommandInput,
  240. DescribeMaintenanceWindowsCommandOutput,
  241. } from "./commands/DescribeMaintenanceWindowsCommand";
  242. import {
  243. DescribeMaintenanceWindowsForTargetCommand,
  244. DescribeMaintenanceWindowsForTargetCommandInput,
  245. DescribeMaintenanceWindowsForTargetCommandOutput,
  246. } from "./commands/DescribeMaintenanceWindowsForTargetCommand";
  247. import {
  248. DescribeOpsItemsCommand,
  249. DescribeOpsItemsCommandInput,
  250. DescribeOpsItemsCommandOutput,
  251. } from "./commands/DescribeOpsItemsCommand";
  252. import {
  253. DescribeParametersCommand,
  254. DescribeParametersCommandInput,
  255. DescribeParametersCommandOutput,
  256. } from "./commands/DescribeParametersCommand";
  257. import {
  258. DescribePatchBaselinesCommand,
  259. DescribePatchBaselinesCommandInput,
  260. DescribePatchBaselinesCommandOutput,
  261. } from "./commands/DescribePatchBaselinesCommand";
  262. import {
  263. DescribePatchGroupStateCommand,
  264. DescribePatchGroupStateCommandInput,
  265. DescribePatchGroupStateCommandOutput,
  266. } from "./commands/DescribePatchGroupStateCommand";
  267. import {
  268. DescribePatchGroupsCommand,
  269. DescribePatchGroupsCommandInput,
  270. DescribePatchGroupsCommandOutput,
  271. } from "./commands/DescribePatchGroupsCommand";
  272. import {
  273. DescribePatchPropertiesCommand,
  274. DescribePatchPropertiesCommandInput,
  275. DescribePatchPropertiesCommandOutput,
  276. } from "./commands/DescribePatchPropertiesCommand";
  277. import {
  278. DescribeSessionsCommand,
  279. DescribeSessionsCommandInput,
  280. DescribeSessionsCommandOutput,
  281. } from "./commands/DescribeSessionsCommand";
  282. import {
  283. GetAutomationExecutionCommand,
  284. GetAutomationExecutionCommandInput,
  285. GetAutomationExecutionCommandOutput,
  286. } from "./commands/GetAutomationExecutionCommand";
  287. import {
  288. GetCalendarStateCommand,
  289. GetCalendarStateCommandInput,
  290. GetCalendarStateCommandOutput,
  291. } from "./commands/GetCalendarStateCommand";
  292. import {
  293. GetCommandInvocationCommand,
  294. GetCommandInvocationCommandInput,
  295. GetCommandInvocationCommandOutput,
  296. } from "./commands/GetCommandInvocationCommand";
  297. import {
  298. GetConnectionStatusCommand,
  299. GetConnectionStatusCommandInput,
  300. GetConnectionStatusCommandOutput,
  301. } from "./commands/GetConnectionStatusCommand";
  302. import {
  303. GetDefaultPatchBaselineCommand,
  304. GetDefaultPatchBaselineCommandInput,
  305. GetDefaultPatchBaselineCommandOutput,
  306. } from "./commands/GetDefaultPatchBaselineCommand";
  307. import {
  308. GetDeployablePatchSnapshotForInstanceCommand,
  309. GetDeployablePatchSnapshotForInstanceCommandInput,
  310. GetDeployablePatchSnapshotForInstanceCommandOutput,
  311. } from "./commands/GetDeployablePatchSnapshotForInstanceCommand";
  312. import { GetDocumentCommand, GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand";
  313. import {
  314. GetInventoryCommand,
  315. GetInventoryCommandInput,
  316. GetInventoryCommandOutput,
  317. } from "./commands/GetInventoryCommand";
  318. import {
  319. GetInventorySchemaCommand,
  320. GetInventorySchemaCommandInput,
  321. GetInventorySchemaCommandOutput,
  322. } from "./commands/GetInventorySchemaCommand";
  323. import {
  324. GetMaintenanceWindowCommand,
  325. GetMaintenanceWindowCommandInput,
  326. GetMaintenanceWindowCommandOutput,
  327. } from "./commands/GetMaintenanceWindowCommand";
  328. import {
  329. GetMaintenanceWindowExecutionCommand,
  330. GetMaintenanceWindowExecutionCommandInput,
  331. GetMaintenanceWindowExecutionCommandOutput,
  332. } from "./commands/GetMaintenanceWindowExecutionCommand";
  333. import {
  334. GetMaintenanceWindowExecutionTaskCommand,
  335. GetMaintenanceWindowExecutionTaskCommandInput,
  336. GetMaintenanceWindowExecutionTaskCommandOutput,
  337. } from "./commands/GetMaintenanceWindowExecutionTaskCommand";
  338. import {
  339. GetMaintenanceWindowExecutionTaskInvocationCommand,
  340. GetMaintenanceWindowExecutionTaskInvocationCommandInput,
  341. GetMaintenanceWindowExecutionTaskInvocationCommandOutput,
  342. } from "./commands/GetMaintenanceWindowExecutionTaskInvocationCommand";
  343. import {
  344. GetMaintenanceWindowTaskCommand,
  345. GetMaintenanceWindowTaskCommandInput,
  346. GetMaintenanceWindowTaskCommandOutput,
  347. } from "./commands/GetMaintenanceWindowTaskCommand";
  348. import { GetOpsItemCommand, GetOpsItemCommandInput, GetOpsItemCommandOutput } from "./commands/GetOpsItemCommand";
  349. import {
  350. GetOpsSummaryCommand,
  351. GetOpsSummaryCommandInput,
  352. GetOpsSummaryCommandOutput,
  353. } from "./commands/GetOpsSummaryCommand";
  354. import {
  355. GetParameterCommand,
  356. GetParameterCommandInput,
  357. GetParameterCommandOutput,
  358. } from "./commands/GetParameterCommand";
  359. import {
  360. GetParameterHistoryCommand,
  361. GetParameterHistoryCommandInput,
  362. GetParameterHistoryCommandOutput,
  363. } from "./commands/GetParameterHistoryCommand";
  364. import {
  365. GetParametersByPathCommand,
  366. GetParametersByPathCommandInput,
  367. GetParametersByPathCommandOutput,
  368. } from "./commands/GetParametersByPathCommand";
  369. import {
  370. GetParametersCommand,
  371. GetParametersCommandInput,
  372. GetParametersCommandOutput,
  373. } from "./commands/GetParametersCommand";
  374. import {
  375. GetPatchBaselineCommand,
  376. GetPatchBaselineCommandInput,
  377. GetPatchBaselineCommandOutput,
  378. } from "./commands/GetPatchBaselineCommand";
  379. import {
  380. GetPatchBaselineForPatchGroupCommand,
  381. GetPatchBaselineForPatchGroupCommandInput,
  382. GetPatchBaselineForPatchGroupCommandOutput,
  383. } from "./commands/GetPatchBaselineForPatchGroupCommand";
  384. import {
  385. GetServiceSettingCommand,
  386. GetServiceSettingCommandInput,
  387. GetServiceSettingCommandOutput,
  388. } from "./commands/GetServiceSettingCommand";
  389. import {
  390. LabelParameterVersionCommand,
  391. LabelParameterVersionCommandInput,
  392. LabelParameterVersionCommandOutput,
  393. } from "./commands/LabelParameterVersionCommand";
  394. import {
  395. ListAssociationVersionsCommand,
  396. ListAssociationVersionsCommandInput,
  397. ListAssociationVersionsCommandOutput,
  398. } from "./commands/ListAssociationVersionsCommand";
  399. import {
  400. ListAssociationsCommand,
  401. ListAssociationsCommandInput,
  402. ListAssociationsCommandOutput,
  403. } from "./commands/ListAssociationsCommand";
  404. import {
  405. ListCommandInvocationsCommand,
  406. ListCommandInvocationsCommandInput,
  407. ListCommandInvocationsCommandOutput,
  408. } from "./commands/ListCommandInvocationsCommand";
  409. import {
  410. ListCommandsCommand,
  411. ListCommandsCommandInput,
  412. ListCommandsCommandOutput,
  413. } from "./commands/ListCommandsCommand";
  414. import {
  415. ListComplianceItemsCommand,
  416. ListComplianceItemsCommandInput,
  417. ListComplianceItemsCommandOutput,
  418. } from "./commands/ListComplianceItemsCommand";
  419. import {
  420. ListComplianceSummariesCommand,
  421. ListComplianceSummariesCommandInput,
  422. ListComplianceSummariesCommandOutput,
  423. } from "./commands/ListComplianceSummariesCommand";
  424. import {
  425. ListDocumentVersionsCommand,
  426. ListDocumentVersionsCommandInput,
  427. ListDocumentVersionsCommandOutput,
  428. } from "./commands/ListDocumentVersionsCommand";
  429. import {
  430. ListDocumentsCommand,
  431. ListDocumentsCommandInput,
  432. ListDocumentsCommandOutput,
  433. } from "./commands/ListDocumentsCommand";
  434. import {
  435. ListInventoryEntriesCommand,
  436. ListInventoryEntriesCommandInput,
  437. ListInventoryEntriesCommandOutput,
  438. } from "./commands/ListInventoryEntriesCommand";
  439. import {
  440. ListResourceComplianceSummariesCommand,
  441. ListResourceComplianceSummariesCommandInput,
  442. ListResourceComplianceSummariesCommandOutput,
  443. } from "./commands/ListResourceComplianceSummariesCommand";
  444. import {
  445. ListResourceDataSyncCommand,
  446. ListResourceDataSyncCommandInput,
  447. ListResourceDataSyncCommandOutput,
  448. } from "./commands/ListResourceDataSyncCommand";
  449. import {
  450. ListTagsForResourceCommand,
  451. ListTagsForResourceCommandInput,
  452. ListTagsForResourceCommandOutput,
  453. } from "./commands/ListTagsForResourceCommand";
  454. import {
  455. ModifyDocumentPermissionCommand,
  456. ModifyDocumentPermissionCommandInput,
  457. ModifyDocumentPermissionCommandOutput,
  458. } from "./commands/ModifyDocumentPermissionCommand";
  459. import {
  460. PutComplianceItemsCommand,
  461. PutComplianceItemsCommandInput,
  462. PutComplianceItemsCommandOutput,
  463. } from "./commands/PutComplianceItemsCommand";
  464. import {
  465. PutInventoryCommand,
  466. PutInventoryCommandInput,
  467. PutInventoryCommandOutput,
  468. } from "./commands/PutInventoryCommand";
  469. import {
  470. PutParameterCommand,
  471. PutParameterCommandInput,
  472. PutParameterCommandOutput,
  473. } from "./commands/PutParameterCommand";
  474. import {
  475. RegisterDefaultPatchBaselineCommand,
  476. RegisterDefaultPatchBaselineCommandInput,
  477. RegisterDefaultPatchBaselineCommandOutput,
  478. } from "./commands/RegisterDefaultPatchBaselineCommand";
  479. import {
  480. RegisterPatchBaselineForPatchGroupCommand,
  481. RegisterPatchBaselineForPatchGroupCommandInput,
  482. RegisterPatchBaselineForPatchGroupCommandOutput,
  483. } from "./commands/RegisterPatchBaselineForPatchGroupCommand";
  484. import {
  485. RegisterTargetWithMaintenanceWindowCommand,
  486. RegisterTargetWithMaintenanceWindowCommandInput,
  487. RegisterTargetWithMaintenanceWindowCommandOutput,
  488. } from "./commands/RegisterTargetWithMaintenanceWindowCommand";
  489. import {
  490. RegisterTaskWithMaintenanceWindowCommand,
  491. RegisterTaskWithMaintenanceWindowCommandInput,
  492. RegisterTaskWithMaintenanceWindowCommandOutput,
  493. } from "./commands/RegisterTaskWithMaintenanceWindowCommand";
  494. import {
  495. RemoveTagsFromResourceCommand,
  496. RemoveTagsFromResourceCommandInput,
  497. RemoveTagsFromResourceCommandOutput,
  498. } from "./commands/RemoveTagsFromResourceCommand";
  499. import {
  500. ResetServiceSettingCommand,
  501. ResetServiceSettingCommandInput,
  502. ResetServiceSettingCommandOutput,
  503. } from "./commands/ResetServiceSettingCommand";
  504. import {
  505. ResumeSessionCommand,
  506. ResumeSessionCommandInput,
  507. ResumeSessionCommandOutput,
  508. } from "./commands/ResumeSessionCommand";
  509. import {
  510. SendAutomationSignalCommand,
  511. SendAutomationSignalCommandInput,
  512. SendAutomationSignalCommandOutput,
  513. } from "./commands/SendAutomationSignalCommand";
  514. import { SendCommandCommand, SendCommandCommandInput, SendCommandCommandOutput } from "./commands/SendCommandCommand";
  515. import {
  516. StartAssociationsOnceCommand,
  517. StartAssociationsOnceCommandInput,
  518. StartAssociationsOnceCommandOutput,
  519. } from "./commands/StartAssociationsOnceCommand";
  520. import {
  521. StartAutomationExecutionCommand,
  522. StartAutomationExecutionCommandInput,
  523. StartAutomationExecutionCommandOutput,
  524. } from "./commands/StartAutomationExecutionCommand";
  525. import {
  526. StartSessionCommand,
  527. StartSessionCommandInput,
  528. StartSessionCommandOutput,
  529. } from "./commands/StartSessionCommand";
  530. import {
  531. StopAutomationExecutionCommand,
  532. StopAutomationExecutionCommandInput,
  533. StopAutomationExecutionCommandOutput,
  534. } from "./commands/StopAutomationExecutionCommand";
  535. import {
  536. TerminateSessionCommand,
  537. TerminateSessionCommandInput,
  538. TerminateSessionCommandOutput,
  539. } from "./commands/TerminateSessionCommand";
  540. import {
  541. UpdateAssociationCommand,
  542. UpdateAssociationCommandInput,
  543. UpdateAssociationCommandOutput,
  544. } from "./commands/UpdateAssociationCommand";
  545. import {
  546. UpdateAssociationStatusCommand,
  547. UpdateAssociationStatusCommandInput,
  548. UpdateAssociationStatusCommandOutput,
  549. } from "./commands/UpdateAssociationStatusCommand";
  550. import {
  551. UpdateDocumentCommand,
  552. UpdateDocumentCommandInput,
  553. UpdateDocumentCommandOutput,
  554. } from "./commands/UpdateDocumentCommand";
  555. import {
  556. UpdateDocumentDefaultVersionCommand,
  557. UpdateDocumentDefaultVersionCommandInput,
  558. UpdateDocumentDefaultVersionCommandOutput,
  559. } from "./commands/UpdateDocumentDefaultVersionCommand";
  560. import {
  561. UpdateMaintenanceWindowCommand,
  562. UpdateMaintenanceWindowCommandInput,
  563. UpdateMaintenanceWindowCommandOutput,
  564. } from "./commands/UpdateMaintenanceWindowCommand";
  565. import {
  566. UpdateMaintenanceWindowTargetCommand,
  567. UpdateMaintenanceWindowTargetCommandInput,
  568. UpdateMaintenanceWindowTargetCommandOutput,
  569. } from "./commands/UpdateMaintenanceWindowTargetCommand";
  570. import {
  571. UpdateMaintenanceWindowTaskCommand,
  572. UpdateMaintenanceWindowTaskCommandInput,
  573. UpdateMaintenanceWindowTaskCommandOutput,
  574. } from "./commands/UpdateMaintenanceWindowTaskCommand";
  575. import {
  576. UpdateManagedInstanceRoleCommand,
  577. UpdateManagedInstanceRoleCommandInput,
  578. UpdateManagedInstanceRoleCommandOutput,
  579. } from "./commands/UpdateManagedInstanceRoleCommand";
  580. import {
  581. UpdateOpsItemCommand,
  582. UpdateOpsItemCommandInput,
  583. UpdateOpsItemCommandOutput,
  584. } from "./commands/UpdateOpsItemCommand";
  585. import {
  586. UpdatePatchBaselineCommand,
  587. UpdatePatchBaselineCommandInput,
  588. UpdatePatchBaselineCommandOutput,
  589. } from "./commands/UpdatePatchBaselineCommand";
  590. import {
  591. UpdateResourceDataSyncCommand,
  592. UpdateResourceDataSyncCommandInput,
  593. UpdateResourceDataSyncCommandOutput,
  594. } from "./commands/UpdateResourceDataSyncCommand";
  595. import {
  596. UpdateServiceSettingCommand,
  597. UpdateServiceSettingCommandInput,
  598. UpdateServiceSettingCommandOutput,
  599. } from "./commands/UpdateServiceSettingCommand";
  600. import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
  601. /**
  602. * <fullname>AWS Systems Manager</fullname>
  603. * <p>AWS Systems Manager is a collection of capabilities that helps you automate management tasks such as
  604. * collecting system inventory, applying operating system (OS) patches, automating the creation of
  605. * Amazon Machine Images (AMIs), and configuring operating systems (OSs) and applications at scale.
  606. * Systems Manager lets you remotely and securely manage the configuration of your managed instances. A
  607. * <i>managed instance</i> is any Amazon Elastic Compute Cloud instance (EC2 instance), or any
  608. * on-premises server or virtual machine (VM) in your hybrid environment that has been configured
  609. * for Systems Manager.</p>
  610. * <p>This reference is intended to be used with the <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/">AWS Systems Manager User Guide</a>.</p>
  611. * <p>To get started, verify prerequisites and configure managed instances. For more information,
  612. * see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html">Setting up
  613. * AWS Systems Manager</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  614. * <p>For information about other API actions you can perform on EC2 instances, see the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/">Amazon EC2 API Reference</a>. For information
  615. * about how to use a Query API, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/making-api-requests.html">Making API requests</a>. </p>
  616. */
  617. export class SSM extends SSMClient {
  618. /**
  619. * <p>Adds or overwrites one or more tags for the specified resource. Tags are metadata that you
  620. * can assign to your documents, managed instances, maintenance windows, Parameter Store parameters,
  621. * and patch baselines. Tags enable you to categorize your resources in different ways, for example,
  622. * by purpose, owner, or environment. Each tag consists of a key and an optional value, both of
  623. * which you define. For example, you could define a set of tags for your account's managed
  624. * instances that helps you track each instance's owner and stack level. For example: Key=Owner and
  625. * Value=DbAdmin, SysAdmin, or Dev. Or Key=Stack and Value=Production, Pre-Production, or
  626. * Test.</p>
  627. *
  628. * <p>Each resource can have a maximum of 50 tags. </p>
  629. * <p>We recommend that you devise a set of tag keys that meets your needs for each resource type.
  630. * Using a consistent set of tag keys makes it easier for you to manage your resources. You can
  631. * search and filter the resources based on the tags you add. Tags don't have any semantic meaning
  632. * to and are interpreted strictly as a string of characters. </p>
  633. * <p>For more information about using tags with EC2 instances, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html">Tagging your Amazon EC2 resources</a> in the
  634. * <i>Amazon EC2 User Guide</i>.</p>
  635. */
  636. public addTagsToResource(
  637. args: AddTagsToResourceCommandInput,
  638. options?: __HttpHandlerOptions
  639. ): Promise<AddTagsToResourceCommandOutput>;
  640. public addTagsToResource(
  641. args: AddTagsToResourceCommandInput,
  642. cb: (err: any, data?: AddTagsToResourceCommandOutput) => void
  643. ): void;
  644. public addTagsToResource(
  645. args: AddTagsToResourceCommandInput,
  646. options: __HttpHandlerOptions,
  647. cb: (err: any, data?: AddTagsToResourceCommandOutput) => void
  648. ): void;
  649. public addTagsToResource(
  650. args: AddTagsToResourceCommandInput,
  651. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddTagsToResourceCommandOutput) => void),
  652. cb?: (err: any, data?: AddTagsToResourceCommandOutput) => void
  653. ): Promise<AddTagsToResourceCommandOutput> | void {
  654. const command = new AddTagsToResourceCommand(args);
  655. if (typeof optionsOrCb === "function") {
  656. this.send(command, optionsOrCb);
  657. } else if (typeof cb === "function") {
  658. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  659. this.send(command, optionsOrCb || {}, cb);
  660. } else {
  661. return this.send(command, optionsOrCb);
  662. }
  663. }
  664. /**
  665. * <p>Attempts to cancel the command specified by the Command ID. There is no guarantee that the
  666. * command will be terminated and the underlying process stopped.</p>
  667. */
  668. public cancelCommand(
  669. args: CancelCommandCommandInput,
  670. options?: __HttpHandlerOptions
  671. ): Promise<CancelCommandCommandOutput>;
  672. public cancelCommand(
  673. args: CancelCommandCommandInput,
  674. cb: (err: any, data?: CancelCommandCommandOutput) => void
  675. ): void;
  676. public cancelCommand(
  677. args: CancelCommandCommandInput,
  678. options: __HttpHandlerOptions,
  679. cb: (err: any, data?: CancelCommandCommandOutput) => void
  680. ): void;
  681. public cancelCommand(
  682. args: CancelCommandCommandInput,
  683. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CancelCommandCommandOutput) => void),
  684. cb?: (err: any, data?: CancelCommandCommandOutput) => void
  685. ): Promise<CancelCommandCommandOutput> | void {
  686. const command = new CancelCommandCommand(args);
  687. if (typeof optionsOrCb === "function") {
  688. this.send(command, optionsOrCb);
  689. } else if (typeof cb === "function") {
  690. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  691. this.send(command, optionsOrCb || {}, cb);
  692. } else {
  693. return this.send(command, optionsOrCb);
  694. }
  695. }
  696. /**
  697. * <p>Stops a maintenance window execution that is already in progress and cancels any tasks in
  698. * the window that have not already starting running. (Tasks already in progress will continue to
  699. * completion.)</p>
  700. */
  701. public cancelMaintenanceWindowExecution(
  702. args: CancelMaintenanceWindowExecutionCommandInput,
  703. options?: __HttpHandlerOptions
  704. ): Promise<CancelMaintenanceWindowExecutionCommandOutput>;
  705. public cancelMaintenanceWindowExecution(
  706. args: CancelMaintenanceWindowExecutionCommandInput,
  707. cb: (err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void
  708. ): void;
  709. public cancelMaintenanceWindowExecution(
  710. args: CancelMaintenanceWindowExecutionCommandInput,
  711. options: __HttpHandlerOptions,
  712. cb: (err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void
  713. ): void;
  714. public cancelMaintenanceWindowExecution(
  715. args: CancelMaintenanceWindowExecutionCommandInput,
  716. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void),
  717. cb?: (err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void
  718. ): Promise<CancelMaintenanceWindowExecutionCommandOutput> | void {
  719. const command = new CancelMaintenanceWindowExecutionCommand(args);
  720. if (typeof optionsOrCb === "function") {
  721. this.send(command, optionsOrCb);
  722. } else if (typeof cb === "function") {
  723. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  724. this.send(command, optionsOrCb || {}, cb);
  725. } else {
  726. return this.send(command, optionsOrCb);
  727. }
  728. }
  729. /**
  730. * <p>Generates an activation code and activation ID you can use to register your on-premises
  731. * server or virtual machine (VM) with Systems Manager. Registering these machines with Systems Manager makes it
  732. * possible to manage them using Systems Manager capabilities. You use the activation code and ID when
  733. * installing SSM Agent on machines in your hybrid environment. For more information about
  734. * requirements for managing on-premises instances and VMs using Systems Manager, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances.html">Setting up
  735. * AWS Systems Manager for hybrid environments</a> in the <i>AWS Systems Manager User Guide</i>. </p>
  736. * <note>
  737. * <p>On-premises servers or VMs that are registered with Systems Manager and EC2 instances that you manage
  738. * with Systems Manager are all called <i>managed instances</i>.</p>
  739. * </note>
  740. */
  741. public createActivation(
  742. args: CreateActivationCommandInput,
  743. options?: __HttpHandlerOptions
  744. ): Promise<CreateActivationCommandOutput>;
  745. public createActivation(
  746. args: CreateActivationCommandInput,
  747. cb: (err: any, data?: CreateActivationCommandOutput) => void
  748. ): void;
  749. public createActivation(
  750. args: CreateActivationCommandInput,
  751. options: __HttpHandlerOptions,
  752. cb: (err: any, data?: CreateActivationCommandOutput) => void
  753. ): void;
  754. public createActivation(
  755. args: CreateActivationCommandInput,
  756. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateActivationCommandOutput) => void),
  757. cb?: (err: any, data?: CreateActivationCommandOutput) => void
  758. ): Promise<CreateActivationCommandOutput> | void {
  759. const command = new CreateActivationCommand(args);
  760. if (typeof optionsOrCb === "function") {
  761. this.send(command, optionsOrCb);
  762. } else if (typeof cb === "function") {
  763. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  764. this.send(command, optionsOrCb || {}, cb);
  765. } else {
  766. return this.send(command, optionsOrCb);
  767. }
  768. }
  769. /**
  770. * <p>A State Manager association defines the state that you want to maintain on your instances.
  771. * For example, an association can specify that anti-virus software must be installed and running on
  772. * your instances, or that certain ports must be closed. For static targets, the association
  773. * specifies a schedule for when the configuration is reapplied. For dynamic targets, such as an AWS
  774. * Resource Group or an AWS Autoscaling Group, State Manager applies the configuration when new
  775. * instances are added to the group. The association also specifies actions to take when applying
  776. * the configuration. For example, an association for anti-virus software might run once a day. If
  777. * the software is not installed, then State Manager installs it. If the software is installed, but
  778. * the service is not running, then the association might instruct State Manager to start the
  779. * service. </p>
  780. */
  781. public createAssociation(
  782. args: CreateAssociationCommandInput,
  783. options?: __HttpHandlerOptions
  784. ): Promise<CreateAssociationCommandOutput>;
  785. public createAssociation(
  786. args: CreateAssociationCommandInput,
  787. cb: (err: any, data?: CreateAssociationCommandOutput) => void
  788. ): void;
  789. public createAssociation(
  790. args: CreateAssociationCommandInput,
  791. options: __HttpHandlerOptions,
  792. cb: (err: any, data?: CreateAssociationCommandOutput) => void
  793. ): void;
  794. public createAssociation(
  795. args: CreateAssociationCommandInput,
  796. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAssociationCommandOutput) => void),
  797. cb?: (err: any, data?: CreateAssociationCommandOutput) => void
  798. ): Promise<CreateAssociationCommandOutput> | void {
  799. const command = new CreateAssociationCommand(args);
  800. if (typeof optionsOrCb === "function") {
  801. this.send(command, optionsOrCb);
  802. } else if (typeof cb === "function") {
  803. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  804. this.send(command, optionsOrCb || {}, cb);
  805. } else {
  806. return this.send(command, optionsOrCb);
  807. }
  808. }
  809. /**
  810. * <p>Associates the specified Systems Manager document with the specified instances or targets.</p>
  811. * <p>When you associate a document with one or more instances using instance IDs or tags,
  812. * SSM Agent running on the instance processes the document and configures the instance as
  813. * specified.</p>
  814. * <p>If you associate a document with an instance that already has an associated document, the
  815. * system returns the AssociationAlreadyExists exception.</p>
  816. */
  817. public createAssociationBatch(
  818. args: CreateAssociationBatchCommandInput,
  819. options?: __HttpHandlerOptions
  820. ): Promise<CreateAssociationBatchCommandOutput>;
  821. public createAssociationBatch(
  822. args: CreateAssociationBatchCommandInput,
  823. cb: (err: any, data?: CreateAssociationBatchCommandOutput) => void
  824. ): void;
  825. public createAssociationBatch(
  826. args: CreateAssociationBatchCommandInput,
  827. options: __HttpHandlerOptions,
  828. cb: (err: any, data?: CreateAssociationBatchCommandOutput) => void
  829. ): void;
  830. public createAssociationBatch(
  831. args: CreateAssociationBatchCommandInput,
  832. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAssociationBatchCommandOutput) => void),
  833. cb?: (err: any, data?: CreateAssociationBatchCommandOutput) => void
  834. ): Promise<CreateAssociationBatchCommandOutput> | void {
  835. const command = new CreateAssociationBatchCommand(args);
  836. if (typeof optionsOrCb === "function") {
  837. this.send(command, optionsOrCb);
  838. } else if (typeof cb === "function") {
  839. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  840. this.send(command, optionsOrCb || {}, cb);
  841. } else {
  842. return this.send(command, optionsOrCb);
  843. }
  844. }
  845. /**
  846. * <p>Creates a Systems Manager (SSM) document. An SSM document defines the actions that Systems Manager performs on
  847. * your managed instances. For more information about SSM documents, including information about
  848. * supported schemas, features, and syntax, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-ssm-docs.html">AWS Systems Manager Documents</a> in the
  849. * <i>AWS Systems Manager User Guide</i>.</p>
  850. */
  851. public createDocument(
  852. args: CreateDocumentCommandInput,
  853. options?: __HttpHandlerOptions
  854. ): Promise<CreateDocumentCommandOutput>;
  855. public createDocument(
  856. args: CreateDocumentCommandInput,
  857. cb: (err: any, data?: CreateDocumentCommandOutput) => void
  858. ): void;
  859. public createDocument(
  860. args: CreateDocumentCommandInput,
  861. options: __HttpHandlerOptions,
  862. cb: (err: any, data?: CreateDocumentCommandOutput) => void
  863. ): void;
  864. public createDocument(
  865. args: CreateDocumentCommandInput,
  866. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDocumentCommandOutput) => void),
  867. cb?: (err: any, data?: CreateDocumentCommandOutput) => void
  868. ): Promise<CreateDocumentCommandOutput> | void {
  869. const command = new CreateDocumentCommand(args);
  870. if (typeof optionsOrCb === "function") {
  871. this.send(command, optionsOrCb);
  872. } else if (typeof cb === "function") {
  873. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  874. this.send(command, optionsOrCb || {}, cb);
  875. } else {
  876. return this.send(command, optionsOrCb);
  877. }
  878. }
  879. /**
  880. * <p>Creates a new maintenance window.</p>
  881. * <note>
  882. * <p>The value you specify for <code>Duration</code> determines the specific end time for the
  883. * maintenance window based on the time it begins. No maintenance window tasks are permitted to
  884. * start after the resulting endtime minus the number of hours you specify for <code>Cutoff</code>.
  885. * For example, if the maintenance window starts at 3 PM, the duration is three hours, and the
  886. * value you specify for <code>Cutoff</code> is one hour, no maintenance window tasks can start
  887. * after 5 PM.</p>
  888. * </note>
  889. */
  890. public createMaintenanceWindow(
  891. args: CreateMaintenanceWindowCommandInput,
  892. options?: __HttpHandlerOptions
  893. ): Promise<CreateMaintenanceWindowCommandOutput>;
  894. public createMaintenanceWindow(
  895. args: CreateMaintenanceWindowCommandInput,
  896. cb: (err: any, data?: CreateMaintenanceWindowCommandOutput) => void
  897. ): void;
  898. public createMaintenanceWindow(
  899. args: CreateMaintenanceWindowCommandInput,
  900. options: __HttpHandlerOptions,
  901. cb: (err: any, data?: CreateMaintenanceWindowCommandOutput) => void
  902. ): void;
  903. public createMaintenanceWindow(
  904. args: CreateMaintenanceWindowCommandInput,
  905. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateMaintenanceWindowCommandOutput) => void),
  906. cb?: (err: any, data?: CreateMaintenanceWindowCommandOutput) => void
  907. ): Promise<CreateMaintenanceWindowCommandOutput> | void {
  908. const command = new CreateMaintenanceWindowCommand(args);
  909. if (typeof optionsOrCb === "function") {
  910. this.send(command, optionsOrCb);
  911. } else if (typeof cb === "function") {
  912. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  913. this.send(command, optionsOrCb || {}, cb);
  914. } else {
  915. return this.send(command, optionsOrCb);
  916. }
  917. }
  918. /**
  919. * <p>Creates a new OpsItem. You must have permission in AWS Identity and Access Management (IAM)
  920. * to create a new OpsItem. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html">Getting started with
  921. * OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  922. * <p>Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate
  923. * operational issues impacting the performance and health of their AWS resources. For more
  924. * information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html">AWS Systems Manager OpsCenter</a> in the
  925. * <i>AWS Systems Manager User Guide</i>. </p>
  926. */
  927. public createOpsItem(
  928. args: CreateOpsItemCommandInput,
  929. options?: __HttpHandlerOptions
  930. ): Promise<CreateOpsItemCommandOutput>;
  931. public createOpsItem(
  932. args: CreateOpsItemCommandInput,
  933. cb: (err: any, data?: CreateOpsItemCommandOutput) => void
  934. ): void;
  935. public createOpsItem(
  936. args: CreateOpsItemCommandInput,
  937. options: __HttpHandlerOptions,
  938. cb: (err: any, data?: CreateOpsItemCommandOutput) => void
  939. ): void;
  940. public createOpsItem(
  941. args: CreateOpsItemCommandInput,
  942. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateOpsItemCommandOutput) => void),
  943. cb?: (err: any, data?: CreateOpsItemCommandOutput) => void
  944. ): Promise<CreateOpsItemCommandOutput> | void {
  945. const command = new CreateOpsItemCommand(args);
  946. if (typeof optionsOrCb === "function") {
  947. this.send(command, optionsOrCb);
  948. } else if (typeof cb === "function") {
  949. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  950. this.send(command, optionsOrCb || {}, cb);
  951. } else {
  952. return this.send(command, optionsOrCb);
  953. }
  954. }
  955. /**
  956. * <p>Creates a patch baseline.</p>
  957. * <note>
  958. * <p>For information about valid key and value pairs in <code>PatchFilters</code> for each
  959. * supported operating system type, see <a href="http://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html">PatchFilter</a>.</p>
  960. * </note>
  961. */
  962. public createPatchBaseline(
  963. args: CreatePatchBaselineCommandInput,
  964. options?: __HttpHandlerOptions
  965. ): Promise<CreatePatchBaselineCommandOutput>;
  966. public createPatchBaseline(
  967. args: CreatePatchBaselineCommandInput,
  968. cb: (err: any, data?: CreatePatchBaselineCommandOutput) => void
  969. ): void;
  970. public createPatchBaseline(
  971. args: CreatePatchBaselineCommandInput,
  972. options: __HttpHandlerOptions,
  973. cb: (err: any, data?: CreatePatchBaselineCommandOutput) => void
  974. ): void;
  975. public createPatchBaseline(
  976. args: CreatePatchBaselineCommandInput,
  977. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreatePatchBaselineCommandOutput) => void),
  978. cb?: (err: any, data?: CreatePatchBaselineCommandOutput) => void
  979. ): Promise<CreatePatchBaselineCommandOutput> | void {
  980. const command = new CreatePatchBaselineCommand(args);
  981. if (typeof optionsOrCb === "function") {
  982. this.send(command, optionsOrCb);
  983. } else if (typeof cb === "function") {
  984. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  985. this.send(command, optionsOrCb || {}, cb);
  986. } else {
  987. return this.send(command, optionsOrCb);
  988. }
  989. }
  990. /**
  991. * <p>A resource data sync helps you view data from multiple sources in a single location. Systems
  992. * Manager offers two types of resource data sync: <code>SyncToDestination</code> and
  993. * <code>SyncFromSource</code>.</p>
  994. * <p>You can configure Systems Manager Inventory to use the <code>SyncToDestination</code> type to
  995. * synchronize Inventory data from multiple AWS Regions to a single S3 bucket. For more information,
  996. * see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-datasync.html">Configuring Resource Data
  997. * Sync for Inventory</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  998. *
  999. * <p>You can configure Systems Manager Explorer to use the <code>SyncFromSource</code> type to synchronize
  1000. * operational work items (OpsItems) and operational data (OpsData) from multiple AWS Regions to a
  1001. * single S3 bucket. This type can synchronize OpsItems and OpsData from multiple AWS accounts and
  1002. * Regions or <code>EntireOrganization</code> by using AWS Organizations. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/Explorer-resource-data-sync.html">Setting up Systems Manager Explorer to display data from multiple accounts and Regions</a> in the
  1003. * <i>AWS Systems Manager User Guide</i>.</p>
  1004. *
  1005. * <p>A resource data sync is an asynchronous operation that returns immediately. After a
  1006. * successful initial sync is completed, the system continuously syncs data. To check the status of
  1007. * a sync, use the <a>ListResourceDataSync</a>.</p>
  1008. *
  1009. * <note>
  1010. * <p>By default, data is not encrypted in Amazon S3. We strongly recommend that you enable encryption
  1011. * in Amazon S3 to ensure secure data storage. We also recommend that you secure access to the Amazon S3
  1012. * bucket by creating a restrictive bucket policy. </p>
  1013. * </note>
  1014. */
  1015. public createResourceDataSync(
  1016. args: CreateResourceDataSyncCommandInput,
  1017. options?: __HttpHandlerOptions
  1018. ): Promise<CreateResourceDataSyncCommandOutput>;
  1019. public createResourceDataSync(
  1020. args: CreateResourceDataSyncCommandInput,
  1021. cb: (err: any, data?: CreateResourceDataSyncCommandOutput) => void
  1022. ): void;
  1023. public createResourceDataSync(
  1024. args: CreateResourceDataSyncCommandInput,
  1025. options: __HttpHandlerOptions,
  1026. cb: (err: any, data?: CreateResourceDataSyncCommandOutput) => void
  1027. ): void;
  1028. public createResourceDataSync(
  1029. args: CreateResourceDataSyncCommandInput,
  1030. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateResourceDataSyncCommandOutput) => void),
  1031. cb?: (err: any, data?: CreateResourceDataSyncCommandOutput) => void
  1032. ): Promise<CreateResourceDataSyncCommandOutput> | void {
  1033. const command = new CreateResourceDataSyncCommand(args);
  1034. if (typeof optionsOrCb === "function") {
  1035. this.send(command, optionsOrCb);
  1036. } else if (typeof cb === "function") {
  1037. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1038. this.send(command, optionsOrCb || {}, cb);
  1039. } else {
  1040. return this.send(command, optionsOrCb);
  1041. }
  1042. }
  1043. /**
  1044. * <p>Deletes an activation. You are not required to delete an activation. If you delete an
  1045. * activation, you can no longer use it to register additional managed instances. Deleting an
  1046. * activation does not de-register managed instances. You must manually de-register managed
  1047. * instances.</p>
  1048. */
  1049. public deleteActivation(
  1050. args: DeleteActivationCommandInput,
  1051. options?: __HttpHandlerOptions
  1052. ): Promise<DeleteActivationCommandOutput>;
  1053. public deleteActivation(
  1054. args: DeleteActivationCommandInput,
  1055. cb: (err: any, data?: DeleteActivationCommandOutput) => void
  1056. ): void;
  1057. public deleteActivation(
  1058. args: DeleteActivationCommandInput,
  1059. options: __HttpHandlerOptions,
  1060. cb: (err: any, data?: DeleteActivationCommandOutput) => void
  1061. ): void;
  1062. public deleteActivation(
  1063. args: DeleteActivationCommandInput,
  1064. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteActivationCommandOutput) => void),
  1065. cb?: (err: any, data?: DeleteActivationCommandOutput) => void
  1066. ): Promise<DeleteActivationCommandOutput> | void {
  1067. const command = new DeleteActivationCommand(args);
  1068. if (typeof optionsOrCb === "function") {
  1069. this.send(command, optionsOrCb);
  1070. } else if (typeof cb === "function") {
  1071. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1072. this.send(command, optionsOrCb || {}, cb);
  1073. } else {
  1074. return this.send(command, optionsOrCb);
  1075. }
  1076. }
  1077. /**
  1078. * <p>Disassociates the specified Systems Manager document from the specified instance.</p>
  1079. * <p>When you disassociate a document from an instance, it does not change the configuration of
  1080. * the instance. To change the configuration state of an instance after you disassociate a document,
  1081. * you must create a new document with the desired configuration and associate it with the
  1082. * instance.</p>
  1083. */
  1084. public deleteAssociation(
  1085. args: DeleteAssociationCommandInput,
  1086. options?: __HttpHandlerOptions
  1087. ): Promise<DeleteAssociationCommandOutput>;
  1088. public deleteAssociation(
  1089. args: DeleteAssociationCommandInput,
  1090. cb: (err: any, data?: DeleteAssociationCommandOutput) => void
  1091. ): void;
  1092. public deleteAssociation(
  1093. args: DeleteAssociationCommandInput,
  1094. options: __HttpHandlerOptions,
  1095. cb: (err: any, data?: DeleteAssociationCommandOutput) => void
  1096. ): void;
  1097. public deleteAssociation(
  1098. args: DeleteAssociationCommandInput,
  1099. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAssociationCommandOutput) => void),
  1100. cb?: (err: any, data?: DeleteAssociationCommandOutput) => void
  1101. ): Promise<DeleteAssociationCommandOutput> | void {
  1102. const command = new DeleteAssociationCommand(args);
  1103. if (typeof optionsOrCb === "function") {
  1104. this.send(command, optionsOrCb);
  1105. } else if (typeof cb === "function") {
  1106. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1107. this.send(command, optionsOrCb || {}, cb);
  1108. } else {
  1109. return this.send(command, optionsOrCb);
  1110. }
  1111. }
  1112. /**
  1113. * <p>Deletes the Systems Manager document and all instance associations to the document.</p>
  1114. * <p>Before you delete the document, we recommend that you use <a>DeleteAssociation</a> to disassociate all instances that are associated with the document.</p>
  1115. */
  1116. public deleteDocument(
  1117. args: DeleteDocumentCommandInput,
  1118. options?: __HttpHandlerOptions
  1119. ): Promise<DeleteDocumentCommandOutput>;
  1120. public deleteDocument(
  1121. args: DeleteDocumentCommandInput,
  1122. cb: (err: any, data?: DeleteDocumentCommandOutput) => void
  1123. ): void;
  1124. public deleteDocument(
  1125. args: DeleteDocumentCommandInput,
  1126. options: __HttpHandlerOptions,
  1127. cb: (err: any, data?: DeleteDocumentCommandOutput) => void
  1128. ): void;
  1129. public deleteDocument(
  1130. args: DeleteDocumentCommandInput,
  1131. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDocumentCommandOutput) => void),
  1132. cb?: (err: any, data?: DeleteDocumentCommandOutput) => void
  1133. ): Promise<DeleteDocumentCommandOutput> | void {
  1134. const command = new DeleteDocumentCommand(args);
  1135. if (typeof optionsOrCb === "function") {
  1136. this.send(command, optionsOrCb);
  1137. } else if (typeof cb === "function") {
  1138. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1139. this.send(command, optionsOrCb || {}, cb);
  1140. } else {
  1141. return this.send(command, optionsOrCb);
  1142. }
  1143. }
  1144. /**
  1145. * <p>Delete a custom inventory type, or the data associated with a custom Inventory type.
  1146. * Deleting a custom inventory type is also referred to as deleting a custom inventory
  1147. * schema.</p>
  1148. */
  1149. public deleteInventory(
  1150. args: DeleteInventoryCommandInput,
  1151. options?: __HttpHandlerOptions
  1152. ): Promise<DeleteInventoryCommandOutput>;
  1153. public deleteInventory(
  1154. args: DeleteInventoryCommandInput,
  1155. cb: (err: any, data?: DeleteInventoryCommandOutput) => void
  1156. ): void;
  1157. public deleteInventory(
  1158. args: DeleteInventoryCommandInput,
  1159. options: __HttpHandlerOptions,
  1160. cb: (err: any, data?: DeleteInventoryCommandOutput) => void
  1161. ): void;
  1162. public deleteInventory(
  1163. args: DeleteInventoryCommandInput,
  1164. optionsOrCb?: __HttpHandlerOptions | ((err: any,