/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

  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, data?: DeleteInventoryCommandOutput) => void),
  1165. cb?: (err: any, data?: DeleteInventoryCommandOutput) => void
  1166. ): Promise<DeleteInventoryCommandOutput> | void {
  1167. const command = new DeleteInventoryCommand(args);
  1168. if (typeof optionsOrCb === "function") {
  1169. this.send(command, optionsOrCb);
  1170. } else if (typeof cb === "function") {
  1171. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1172. this.send(command, optionsOrCb || {}, cb);
  1173. } else {
  1174. return this.send(command, optionsOrCb);
  1175. }
  1176. }
  1177. /**
  1178. * <p>Deletes a maintenance window.</p>
  1179. */
  1180. public deleteMaintenanceWindow(
  1181. args: DeleteMaintenanceWindowCommandInput,
  1182. options?: __HttpHandlerOptions
  1183. ): Promise<DeleteMaintenanceWindowCommandOutput>;
  1184. public deleteMaintenanceWindow(
  1185. args: DeleteMaintenanceWindowCommandInput,
  1186. cb: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void
  1187. ): void;
  1188. public deleteMaintenanceWindow(
  1189. args: DeleteMaintenanceWindowCommandInput,
  1190. options: __HttpHandlerOptions,
  1191. cb: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void
  1192. ): void;
  1193. public deleteMaintenanceWindow(
  1194. args: DeleteMaintenanceWindowCommandInput,
  1195. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteMaintenanceWindowCommandOutput) => void),
  1196. cb?: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void
  1197. ): Promise<DeleteMaintenanceWindowCommandOutput> | void {
  1198. const command = new DeleteMaintenanceWindowCommand(args);
  1199. if (typeof optionsOrCb === "function") {
  1200. this.send(command, optionsOrCb);
  1201. } else if (typeof cb === "function") {
  1202. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1203. this.send(command, optionsOrCb || {}, cb);
  1204. } else {
  1205. return this.send(command, optionsOrCb);
  1206. }
  1207. }
  1208. /**
  1209. * <p>Delete a parameter from the system.</p>
  1210. */
  1211. public deleteParameter(
  1212. args: DeleteParameterCommandInput,
  1213. options?: __HttpHandlerOptions
  1214. ): Promise<DeleteParameterCommandOutput>;
  1215. public deleteParameter(
  1216. args: DeleteParameterCommandInput,
  1217. cb: (err: any, data?: DeleteParameterCommandOutput) => void
  1218. ): void;
  1219. public deleteParameter(
  1220. args: DeleteParameterCommandInput,
  1221. options: __HttpHandlerOptions,
  1222. cb: (err: any, data?: DeleteParameterCommandOutput) => void
  1223. ): void;
  1224. public deleteParameter(
  1225. args: DeleteParameterCommandInput,
  1226. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteParameterCommandOutput) => void),
  1227. cb?: (err: any, data?: DeleteParameterCommandOutput) => void
  1228. ): Promise<DeleteParameterCommandOutput> | void {
  1229. const command = new DeleteParameterCommand(args);
  1230. if (typeof optionsOrCb === "function") {
  1231. this.send(command, optionsOrCb);
  1232. } else if (typeof cb === "function") {
  1233. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1234. this.send(command, optionsOrCb || {}, cb);
  1235. } else {
  1236. return this.send(command, optionsOrCb);
  1237. }
  1238. }
  1239. /**
  1240. * <p>Delete a list of parameters.</p>
  1241. */
  1242. public deleteParameters(
  1243. args: DeleteParametersCommandInput,
  1244. options?: __HttpHandlerOptions
  1245. ): Promise<DeleteParametersCommandOutput>;
  1246. public deleteParameters(
  1247. args: DeleteParametersCommandInput,
  1248. cb: (err: any, data?: DeleteParametersCommandOutput) => void
  1249. ): void;
  1250. public deleteParameters(
  1251. args: DeleteParametersCommandInput,
  1252. options: __HttpHandlerOptions,
  1253. cb: (err: any, data?: DeleteParametersCommandOutput) => void
  1254. ): void;
  1255. public deleteParameters(
  1256. args: DeleteParametersCommandInput,
  1257. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteParametersCommandOutput) => void),
  1258. cb?: (err: any, data?: DeleteParametersCommandOutput) => void
  1259. ): Promise<DeleteParametersCommandOutput> | void {
  1260. const command = new DeleteParametersCommand(args);
  1261. if (typeof optionsOrCb === "function") {
  1262. this.send(command, optionsOrCb);
  1263. } else if (typeof cb === "function") {
  1264. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1265. this.send(command, optionsOrCb || {}, cb);
  1266. } else {
  1267. return this.send(command, optionsOrCb);
  1268. }
  1269. }
  1270. /**
  1271. * <p>Deletes a patch baseline.</p>
  1272. */
  1273. public deletePatchBaseline(
  1274. args: DeletePatchBaselineCommandInput,
  1275. options?: __HttpHandlerOptions
  1276. ): Promise<DeletePatchBaselineCommandOutput>;
  1277. public deletePatchBaseline(
  1278. args: DeletePatchBaselineCommandInput,
  1279. cb: (err: any, data?: DeletePatchBaselineCommandOutput) => void
  1280. ): void;
  1281. public deletePatchBaseline(
  1282. args: DeletePatchBaselineCommandInput,
  1283. options: __HttpHandlerOptions,
  1284. cb: (err: any, data?: DeletePatchBaselineCommandOutput) => void
  1285. ): void;
  1286. public deletePatchBaseline(
  1287. args: DeletePatchBaselineCommandInput,
  1288. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeletePatchBaselineCommandOutput) => void),
  1289. cb?: (err: any, data?: DeletePatchBaselineCommandOutput) => void
  1290. ): Promise<DeletePatchBaselineCommandOutput> | void {
  1291. const command = new DeletePatchBaselineCommand(args);
  1292. if (typeof optionsOrCb === "function") {
  1293. this.send(command, optionsOrCb);
  1294. } else if (typeof cb === "function") {
  1295. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1296. this.send(command, optionsOrCb || {}, cb);
  1297. } else {
  1298. return this.send(command, optionsOrCb);
  1299. }
  1300. }
  1301. /**
  1302. * <p>Deletes a Resource Data Sync configuration. After the configuration is deleted, changes to
  1303. * data on managed instances are no longer synced to or from the target. Deleting a sync
  1304. * configuration does not delete data.</p>
  1305. */
  1306. public deleteResourceDataSync(
  1307. args: DeleteResourceDataSyncCommandInput,
  1308. options?: __HttpHandlerOptions
  1309. ): Promise<DeleteResourceDataSyncCommandOutput>;
  1310. public deleteResourceDataSync(
  1311. args: DeleteResourceDataSyncCommandInput,
  1312. cb: (err: any, data?: DeleteResourceDataSyncCommandOutput) => void
  1313. ): void;
  1314. public deleteResourceDataSync(
  1315. args: DeleteResourceDataSyncCommandInput,
  1316. options: __HttpHandlerOptions,
  1317. cb: (err: any, data?: DeleteResourceDataSyncCommandOutput) => void
  1318. ): void;
  1319. public deleteResourceDataSync(
  1320. args: DeleteResourceDataSyncCommandInput,
  1321. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteResourceDataSyncCommandOutput) => void),
  1322. cb?: (err: any, data?: DeleteResourceDataSyncCommandOutput) => void
  1323. ): Promise<DeleteResourceDataSyncCommandOutput> | void {
  1324. const command = new DeleteResourceDataSyncCommand(args);
  1325. if (typeof optionsOrCb === "function") {
  1326. this.send(command, optionsOrCb);
  1327. } else if (typeof cb === "function") {
  1328. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1329. this.send(command, optionsOrCb || {}, cb);
  1330. } else {
  1331. return this.send(command, optionsOrCb);
  1332. }
  1333. }
  1334. /**
  1335. * <p>Removes the server or virtual machine from the list of registered servers. You can
  1336. * reregister the instance again at any time. If you don't plan to use Run Command on the server, we
  1337. * suggest uninstalling SSM Agent first.</p>
  1338. */
  1339. public deregisterManagedInstance(
  1340. args: DeregisterManagedInstanceCommandInput,
  1341. options?: __HttpHandlerOptions
  1342. ): Promise<DeregisterManagedInstanceCommandOutput>;
  1343. public deregisterManagedInstance(
  1344. args: DeregisterManagedInstanceCommandInput,
  1345. cb: (err: any, data?: DeregisterManagedInstanceCommandOutput) => void
  1346. ): void;
  1347. public deregisterManagedInstance(
  1348. args: DeregisterManagedInstanceCommandInput,
  1349. options: __HttpHandlerOptions,
  1350. cb: (err: any, data?: DeregisterManagedInstanceCommandOutput) => void
  1351. ): void;
  1352. public deregisterManagedInstance(
  1353. args: DeregisterManagedInstanceCommandInput,
  1354. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeregisterManagedInstanceCommandOutput) => void),
  1355. cb?: (err: any, data?: DeregisterManagedInstanceCommandOutput) => void
  1356. ): Promise<DeregisterManagedInstanceCommandOutput> | void {
  1357. const command = new DeregisterManagedInstanceCommand(args);
  1358. if (typeof optionsOrCb === "function") {
  1359. this.send(command, optionsOrCb);
  1360. } else if (typeof cb === "function") {
  1361. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1362. this.send(command, optionsOrCb || {}, cb);
  1363. } else {
  1364. return this.send(command, optionsOrCb);
  1365. }
  1366. }
  1367. /**
  1368. * <p>Removes a patch group from a patch baseline.</p>
  1369. */
  1370. public deregisterPatchBaselineForPatchGroup(
  1371. args: DeregisterPatchBaselineForPatchGroupCommandInput,
  1372. options?: __HttpHandlerOptions
  1373. ): Promise<DeregisterPatchBaselineForPatchGroupCommandOutput>;
  1374. public deregisterPatchBaselineForPatchGroup(
  1375. args: DeregisterPatchBaselineForPatchGroupCommandInput,
  1376. cb: (err: any, data?: DeregisterPatchBaselineForPatchGroupCommandOutput) => void
  1377. ): void;
  1378. public deregisterPatchBaselineForPatchGroup(
  1379. args: DeregisterPatchBaselineForPatchGroupCommandInput,
  1380. options: __HttpHandlerOptions,
  1381. cb: (err: any, data?: DeregisterPatchBaselineForPatchGroupCommandOutput) => void
  1382. ): void;
  1383. public deregisterPatchBaselineForPatchGroup(
  1384. args: DeregisterPatchBaselineForPatchGroupCommandInput,
  1385. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeregisterPatchBaselineForPatchGroupCommandOutput) => void),
  1386. cb?: (err: any, data?: DeregisterPatchBaselineForPatchGroupCommandOutput) => void
  1387. ): Promise<DeregisterPatchBaselineForPatchGroupCommandOutput> | void {
  1388. const command = new DeregisterPatchBaselineForPatchGroupCommand(args);
  1389. if (typeof optionsOrCb === "function") {
  1390. this.send(command, optionsOrCb);
  1391. } else if (typeof cb === "function") {
  1392. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1393. this.send(command, optionsOrCb || {}, cb);
  1394. } else {
  1395. return this.send(command, optionsOrCb);
  1396. }
  1397. }
  1398. /**
  1399. * <p>Removes a target from a maintenance window.</p>
  1400. */
  1401. public deregisterTargetFromMaintenanceWindow(
  1402. args: DeregisterTargetFromMaintenanceWindowCommandInput,
  1403. options?: __HttpHandlerOptions
  1404. ): Promise<DeregisterTargetFromMaintenanceWindowCommandOutput>;
  1405. public deregisterTargetFromMaintenanceWindow(
  1406. args: DeregisterTargetFromMaintenanceWindowCommandInput,
  1407. cb: (err: any, data?: DeregisterTargetFromMaintenanceWindowCommandOutput) => void
  1408. ): void;
  1409. public deregisterTargetFromMaintenanceWindow(
  1410. args: DeregisterTargetFromMaintenanceWindowCommandInput,
  1411. options: __HttpHandlerOptions,
  1412. cb: (err: any, data?: DeregisterTargetFromMaintenanceWindowCommandOutput) => void
  1413. ): void;
  1414. public deregisterTargetFromMaintenanceWindow(
  1415. args: DeregisterTargetFromMaintenanceWindowCommandInput,
  1416. optionsOrCb?:
  1417. | __HttpHandlerOptions
  1418. | ((err: any, data?: DeregisterTargetFromMaintenanceWindowCommandOutput) => void),
  1419. cb?: (err: any, data?: DeregisterTargetFromMaintenanceWindowCommandOutput) => void
  1420. ): Promise<DeregisterTargetFromMaintenanceWindowCommandOutput> | void {
  1421. const command = new DeregisterTargetFromMaintenanceWindowCommand(args);
  1422. if (typeof optionsOrCb === "function") {
  1423. this.send(command, optionsOrCb);
  1424. } else if (typeof cb === "function") {
  1425. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1426. this.send(command, optionsOrCb || {}, cb);
  1427. } else {
  1428. return this.send(command, optionsOrCb);
  1429. }
  1430. }
  1431. /**
  1432. * <p>Removes a task from a maintenance window.</p>
  1433. */
  1434. public deregisterTaskFromMaintenanceWindow(
  1435. args: DeregisterTaskFromMaintenanceWindowCommandInput,
  1436. options?: __HttpHandlerOptions
  1437. ): Promise<DeregisterTaskFromMaintenanceWindowCommandOutput>;
  1438. public deregisterTaskFromMaintenanceWindow(
  1439. args: DeregisterTaskFromMaintenanceWindowCommandInput,
  1440. cb: (err: any, data?: DeregisterTaskFromMaintenanceWindowCommandOutput) => void
  1441. ): void;
  1442. public deregisterTaskFromMaintenanceWindow(
  1443. args: DeregisterTaskFromMaintenanceWindowCommandInput,
  1444. options: __HttpHandlerOptions,
  1445. cb: (err: any, data?: DeregisterTaskFromMaintenanceWindowCommandOutput) => void
  1446. ): void;
  1447. public deregisterTaskFromMaintenanceWindow(
  1448. args: DeregisterTaskFromMaintenanceWindowCommandInput,
  1449. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeregisterTaskFromMaintenanceWindowCommandOutput) => void),
  1450. cb?: (err: any, data?: DeregisterTaskFromMaintenanceWindowCommandOutput) => void
  1451. ): Promise<DeregisterTaskFromMaintenanceWindowCommandOutput> | void {
  1452. const command = new DeregisterTaskFromMaintenanceWindowCommand(args);
  1453. if (typeof optionsOrCb === "function") {
  1454. this.send(command, optionsOrCb);
  1455. } else if (typeof cb === "function") {
  1456. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1457. this.send(command, optionsOrCb || {}, cb);
  1458. } else {
  1459. return this.send(command, optionsOrCb);
  1460. }
  1461. }
  1462. /**
  1463. * <p>Describes details about the activation, such as the date and time the activation was
  1464. * created, its expiration date, the IAM role assigned to the instances in the activation, and the
  1465. * number of instances registered by using this activation.</p>
  1466. */
  1467. public describeActivations(
  1468. args: DescribeActivationsCommandInput,
  1469. options?: __HttpHandlerOptions
  1470. ): Promise<DescribeActivationsCommandOutput>;
  1471. public describeActivations(
  1472. args: DescribeActivationsCommandInput,
  1473. cb: (err: any, data?: DescribeActivationsCommandOutput) => void
  1474. ): void;
  1475. public describeActivations(
  1476. args: DescribeActivationsCommandInput,
  1477. options: __HttpHandlerOptions,
  1478. cb: (err: any, data?: DescribeActivationsCommandOutput) => void
  1479. ): void;
  1480. public describeActivations(
  1481. args: DescribeActivationsCommandInput,
  1482. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeActivationsCommandOutput) => void),
  1483. cb?: (err: any, data?: DescribeActivationsCommandOutput) => void
  1484. ): Promise<DescribeActivationsCommandOutput> | void {
  1485. const command = new DescribeActivationsCommand(args);
  1486. if (typeof optionsOrCb === "function") {
  1487. this.send(command, optionsOrCb);
  1488. } else if (typeof cb === "function") {
  1489. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1490. this.send(command, optionsOrCb || {}, cb);
  1491. } else {
  1492. return this.send(command, optionsOrCb);
  1493. }
  1494. }
  1495. /**
  1496. * <p>Describes the association for the specified target or instance. If you created the
  1497. * association by using the <code>Targets</code> parameter, then you must retrieve the association
  1498. * by using the association ID. If you created the association by specifying an instance ID and a
  1499. * Systems Manager document, then you retrieve the association by specifying the document name and the
  1500. * instance ID. </p>
  1501. */
  1502. public describeAssociation(
  1503. args: DescribeAssociationCommandInput,
  1504. options?: __HttpHandlerOptions
  1505. ): Promise<DescribeAssociationCommandOutput>;
  1506. public describeAssociation(
  1507. args: DescribeAssociationCommandInput,
  1508. cb: (err: any, data?: DescribeAssociationCommandOutput) => void
  1509. ): void;
  1510. public describeAssociation(
  1511. args: DescribeAssociationCommandInput,
  1512. options: __HttpHandlerOptions,
  1513. cb: (err: any, data?: DescribeAssociationCommandOutput) => void
  1514. ): void;
  1515. public describeAssociation(
  1516. args: DescribeAssociationCommandInput,
  1517. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAssociationCommandOutput) => void),
  1518. cb?: (err: any, data?: DescribeAssociationCommandOutput) => void
  1519. ): Promise<DescribeAssociationCommandOutput> | void {
  1520. const command = new DescribeAssociationCommand(args);
  1521. if (typeof optionsOrCb === "function") {
  1522. this.send(command, optionsOrCb);
  1523. } else if (typeof cb === "function") {
  1524. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1525. this.send(command, optionsOrCb || {}, cb);
  1526. } else {
  1527. return this.send(command, optionsOrCb);
  1528. }
  1529. }
  1530. /**
  1531. * <p>Use this API action to view all executions for a specific association ID. </p>
  1532. */
  1533. public describeAssociationExecutions(
  1534. args: DescribeAssociationExecutionsCommandInput,
  1535. options?: __HttpHandlerOptions
  1536. ): Promise<DescribeAssociationExecutionsCommandOutput>;
  1537. public describeAssociationExecutions(
  1538. args: DescribeAssociationExecutionsCommandInput,
  1539. cb: (err: any, data?: DescribeAssociationExecutionsCommandOutput) => void
  1540. ): void;
  1541. public describeAssociationExecutions(
  1542. args: DescribeAssociationExecutionsCommandInput,
  1543. options: __HttpHandlerOptions,
  1544. cb: (err: any, data?: DescribeAssociationExecutionsCommandOutput) => void
  1545. ): void;
  1546. public describeAssociationExecutions(
  1547. args: DescribeAssociationExecutionsCommandInput,
  1548. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAssociationExecutionsCommandOutput) => void),
  1549. cb?: (err: any, data?: DescribeAssociationExecutionsCommandOutput) => void
  1550. ): Promise<DescribeAssociationExecutionsCommandOutput> | void {
  1551. const command = new DescribeAssociationExecutionsCommand(args);
  1552. if (typeof optionsOrCb === "function") {
  1553. this.send(command, optionsOrCb);
  1554. } else if (typeof cb === "function") {
  1555. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1556. this.send(command, optionsOrCb || {}, cb);
  1557. } else {
  1558. return this.send(command, optionsOrCb);
  1559. }
  1560. }
  1561. /**
  1562. * <p>Use this API action to view information about a specific execution of a specific
  1563. * association.</p>
  1564. */
  1565. public describeAssociationExecutionTargets(
  1566. args: DescribeAssociationExecutionTargetsCommandInput,
  1567. options?: __HttpHandlerOptions
  1568. ): Promise<DescribeAssociationExecutionTargetsCommandOutput>;
  1569. public describeAssociationExecutionTargets(
  1570. args: DescribeAssociationExecutionTargetsCommandInput,
  1571. cb: (err: any, data?: DescribeAssociationExecutionTargetsCommandOutput) => void
  1572. ): void;
  1573. public describeAssociationExecutionTargets(
  1574. args: DescribeAssociationExecutionTargetsCommandInput,
  1575. options: __HttpHandlerOptions,
  1576. cb: (err: any, data?: DescribeAssociationExecutionTargetsCommandOutput) => void
  1577. ): void;
  1578. public describeAssociationExecutionTargets(
  1579. args: DescribeAssociationExecutionTargetsCommandInput,
  1580. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAssociationExecutionTargetsCommandOutput) => void),
  1581. cb?: (err: any, data?: DescribeAssociationExecutionTargetsCommandOutput) => void
  1582. ): Promise<DescribeAssociationExecutionTargetsCommandOutput> | void {
  1583. const command = new DescribeAssociationExecutionTargetsCommand(args);
  1584. if (typeof optionsOrCb === "function") {
  1585. this.send(command, optionsOrCb);
  1586. } else if (typeof cb === "function") {
  1587. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1588. this.send(command, optionsOrCb || {}, cb);
  1589. } else {
  1590. return this.send(command, optionsOrCb);
  1591. }
  1592. }
  1593. /**
  1594. * <p>Provides details about all active and terminated Automation executions.</p>
  1595. */
  1596. public describeAutomationExecutions(
  1597. args: DescribeAutomationExecutionsCommandInput,
  1598. options?: __HttpHandlerOptions
  1599. ): Promise<DescribeAutomationExecutionsCommandOutput>;
  1600. public describeAutomationExecutions(
  1601. args: DescribeAutomationExecutionsCommandInput,
  1602. cb: (err: any, data?: DescribeAutomationExecutionsCommandOutput) => void
  1603. ): void;
  1604. public describeAutomationExecutions(
  1605. args: DescribeAutomationExecutionsCommandInput,
  1606. options: __HttpHandlerOptions,
  1607. cb: (err: any, data?: DescribeAutomationExecutionsCommandOutput) => void
  1608. ): void;
  1609. public describeAutomationExecutions(
  1610. args: DescribeAutomationExecutionsCommandInput,
  1611. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAutomationExecutionsCommandOutput) => void),
  1612. cb?: (err: any, data?: DescribeAutomationExecutionsCommandOutput) => void
  1613. ): Promise<DescribeAutomationExecutionsCommandOutput> | void {
  1614. const command = new DescribeAutomationExecutionsCommand(args);
  1615. if (typeof optionsOrCb === "function") {
  1616. this.send(command, optionsOrCb);
  1617. } else if (typeof cb === "function") {
  1618. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1619. this.send(command, optionsOrCb || {}, cb);
  1620. } else {
  1621. return this.send(command, optionsOrCb);
  1622. }
  1623. }
  1624. /**
  1625. * <p>Information about all active and terminated step executions in an Automation
  1626. * workflow.</p>
  1627. */
  1628. public describeAutomationStepExecutions(
  1629. args: DescribeAutomationStepExecutionsCommandInput,
  1630. options?: __HttpHandlerOptions
  1631. ): Promise<DescribeAutomationStepExecutionsCommandOutput>;
  1632. public describeAutomationStepExecutions(
  1633. args: DescribeAutomationStepExecutionsCommandInput,
  1634. cb: (err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void
  1635. ): void;
  1636. public describeAutomationStepExecutions(
  1637. args: DescribeAutomationStepExecutionsCommandInput,
  1638. options: __HttpHandlerOptions,
  1639. cb: (err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void
  1640. ): void;
  1641. public describeAutomationStepExecutions(
  1642. args: DescribeAutomationStepExecutionsCommandInput,
  1643. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void),
  1644. cb?: (err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void
  1645. ): Promise<DescribeAutomationStepExecutionsCommandOutput> | void {
  1646. const command = new DescribeAutomationStepExecutionsCommand(args);
  1647. if (typeof optionsOrCb === "function") {
  1648. this.send(command, optionsOrCb);
  1649. } else if (typeof cb === "function") {
  1650. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1651. this.send(command, optionsOrCb || {}, cb);
  1652. } else {
  1653. return this.send(command, optionsOrCb);
  1654. }
  1655. }
  1656. /**
  1657. * <p>Lists all patches eligible to be included in a patch baseline.</p>
  1658. */
  1659. public describeAvailablePatches(
  1660. args: DescribeAvailablePatchesCommandInput,
  1661. options?: __HttpHandlerOptions
  1662. ): Promise<DescribeAvailablePatchesCommandOutput>;
  1663. public describeAvailablePatches(
  1664. args: DescribeAvailablePatchesCommandInput,
  1665. cb: (err: any, data?: DescribeAvailablePatchesCommandOutput) => void
  1666. ): void;
  1667. public describeAvailablePatches(
  1668. args: DescribeAvailablePatchesCommandInput,
  1669. options: __HttpHandlerOptions,
  1670. cb: (err: any, data?: DescribeAvailablePatchesCommandOutput) => void
  1671. ): void;
  1672. public describeAvailablePatches(
  1673. args: DescribeAvailablePatchesCommandInput,
  1674. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAvailablePatchesCommandOutput) => void),
  1675. cb?: (err: any, data?: DescribeAvailablePatchesCommandOutput) => void
  1676. ): Promise<DescribeAvailablePatchesCommandOutput> | void {
  1677. const command = new DescribeAvailablePatchesCommand(args);
  1678. if (typeof optionsOrCb === "function") {
  1679. this.send(command, optionsOrCb);
  1680. } else if (typeof cb === "function") {
  1681. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1682. this.send(command, optionsOrCb || {}, cb);
  1683. } else {
  1684. return this.send(command, optionsOrCb);
  1685. }
  1686. }
  1687. /**
  1688. * <p>Describes the specified Systems Manager document.</p>
  1689. */
  1690. public describeDocument(
  1691. args: DescribeDocumentCommandInput,
  1692. options?: __HttpHandlerOptions
  1693. ): Promise<DescribeDocumentCommandOutput>;
  1694. public describeDocument(
  1695. args: DescribeDocumentCommandInput,
  1696. cb: (err: any, data?: DescribeDocumentCommandOutput) => void
  1697. ): void;
  1698. public describeDocument(
  1699. args: DescribeDocumentCommandInput,
  1700. options: __HttpHandlerOptions,
  1701. cb: (err: any, data?: DescribeDocumentCommandOutput) => void
  1702. ): void;
  1703. public describeDocument(
  1704. args: DescribeDocumentCommandInput,
  1705. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDocumentCommandOutput) => void),
  1706. cb?: (err: any, data?: DescribeDocumentCommandOutput) => void
  1707. ): Promise<DescribeDocumentCommandOutput> | void {
  1708. const command = new DescribeDocumentCommand(args);
  1709. if (typeof optionsOrCb === "function") {
  1710. this.send(command, optionsOrCb);
  1711. } else if (typeof cb === "function") {
  1712. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1713. this.send(command, optionsOrCb || {}, cb);
  1714. } else {
  1715. return this.send(command, optionsOrCb);
  1716. }
  1717. }
  1718. /**
  1719. * <p>Describes the permissions for a Systems Manager document. If you created the document, you are the
  1720. * owner. If a document is shared, it can either be shared privately (by specifying a user's AWS
  1721. * account ID) or publicly (<i>All</i>). </p>
  1722. */
  1723. public describeDocumentPermission(
  1724. args: DescribeDocumentPermissionCommandInput,
  1725. options?: __HttpHandlerOptions
  1726. ): Promise<DescribeDocumentPermissionCommandOutput>;
  1727. public describeDocumentPermission(
  1728. args: DescribeDocumentPermissionCommandInput,
  1729. cb: (err: any, data?: DescribeDocumentPermissionCommandOutput) => void
  1730. ): void;
  1731. public describeDocumentPermission(
  1732. args: DescribeDocumentPermissionCommandInput,
  1733. options: __HttpHandlerOptions,
  1734. cb: (err: any, data?: DescribeDocumentPermissionCommandOutput) => void
  1735. ): void;
  1736. public describeDocumentPermission(
  1737. args: DescribeDocumentPermissionCommandInput,
  1738. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDocumentPermissionCommandOutput) => void),
  1739. cb?: (err: any, data?: DescribeDocumentPermissionCommandOutput) => void
  1740. ): Promise<DescribeDocumentPermissionCommandOutput> | void {
  1741. const command = new DescribeDocumentPermissionCommand(args);
  1742. if (typeof optionsOrCb === "function") {
  1743. this.send(command, optionsOrCb);
  1744. } else if (typeof cb === "function") {
  1745. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1746. this.send(command, optionsOrCb || {}, cb);
  1747. } else {
  1748. return this.send(command, optionsOrCb);
  1749. }
  1750. }
  1751. /**
  1752. * <p>All associations for the instance(s).</p>
  1753. */
  1754. public describeEffectiveInstanceAssociations(
  1755. args: DescribeEffectiveInstanceAssociationsCommandInput,
  1756. options?: __HttpHandlerOptions
  1757. ): Promise<DescribeEffectiveInstanceAssociationsCommandOutput>;
  1758. public describeEffectiveInstanceAssociations(
  1759. args: DescribeEffectiveInstanceAssociationsCommandInput,
  1760. cb: (err: any, data?: DescribeEffectiveInstanceAssociationsCommandOutput) => void
  1761. ): void;
  1762. public describeEffectiveInstanceAssociations(
  1763. args: DescribeEffectiveInstanceAssociationsCommandInput,
  1764. options: __HttpHandlerOptions,
  1765. cb: (err: any, data?: DescribeEffectiveInstanceAssociationsCommandOutput) => void
  1766. ): void;
  1767. public describeEffectiveInstanceAssociations(
  1768. args: DescribeEffectiveInstanceAssociationsCommandInput,
  1769. optionsOrCb?:
  1770. | __HttpHandlerOptions
  1771. | ((err: any, data?: DescribeEffectiveInstanceAssociationsCommandOutput) => void),
  1772. cb?: (err: any, data?: DescribeEffectiveInstanceAssociationsCommandOutput) => void
  1773. ): Promise<DescribeEffectiveInstanceAssociationsCommandOutput> | void {
  1774. const command = new DescribeEffectiveInstanceAssociationsCommand(args);
  1775. if (typeof optionsOrCb === "function") {
  1776. this.send(command, optionsOrCb);
  1777. } else if (typeof cb === "function") {
  1778. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1779. this.send(command, optionsOrCb || {}, cb);
  1780. } else {
  1781. return this.send(command, optionsOrCb);
  1782. }
  1783. }
  1784. /**
  1785. * <p>Retrieves the current effective patches (the patch and the approval state) for the specified
  1786. * patch baseline. Note that this API applies only to Windows patch baselines.</p>
  1787. */
  1788. public describeEffectivePatchesForPatchBaseline(
  1789. args: DescribeEffectivePatchesForPatchBaselineCommandInput,
  1790. options?: __HttpHandlerOptions
  1791. ): Promise<DescribeEffectivePatchesForPatchBaselineCommandOutput>;
  1792. public describeEffectivePatchesForPatchBaseline(
  1793. args: DescribeEffectivePatchesForPatchBaselineCommandInput,
  1794. cb: (err: any, data?: DescribeEffectivePatchesForPatchBaselineCommandOutput) => void
  1795. ): void;
  1796. public describeEffectivePatchesForPatchBaseline(
  1797. args: DescribeEffectivePatchesForPatchBaselineCommandInput,
  1798. options: __HttpHandlerOptions,
  1799. cb: (err: any, data?: DescribeEffectivePatchesForPatchBaselineCommandOutput) => void
  1800. ): void;
  1801. public describeEffectivePatchesForPatchBaseline(
  1802. args: DescribeEffectivePatchesForPatchBaselineCommandInput,
  1803. optionsOrCb?:
  1804. | __HttpHandlerOptions
  1805. | ((err: any, data?: DescribeEffectivePatchesForPatchBaselineCommandOutput) => void),
  1806. cb?: (err: any, data?: DescribeEffectivePatchesForPatchBaselineCommandOutput) => void
  1807. ): Promise<DescribeEffectivePatchesForPatchBaselineCommandOutput> | void {
  1808. const command = new DescribeEffectivePatchesForPatchBaselineCommand(args);
  1809. if (typeof optionsOrCb === "function") {
  1810. this.send(command, optionsOrCb);
  1811. } else if (typeof cb === "function") {
  1812. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1813. this.send(command, optionsOrCb || {}, cb);
  1814. } else {
  1815. return this.send(command, optionsOrCb);
  1816. }
  1817. }
  1818. /**
  1819. * <p>The status of the associations for the instance(s).</p>
  1820. */
  1821. public describeInstanceAssociationsStatus(
  1822. args: DescribeInstanceAssociationsStatusCommandInput,
  1823. options?: __HttpHandlerOptions
  1824. ): Promise<DescribeInstanceAssociationsStatusCommandOutput>;
  1825. public describeInstanceAssociationsStatus(
  1826. args: DescribeInstanceAssociationsStatusCommandInput,
  1827. cb: (err: any, data?: DescribeInstanceAssociationsStatusCommandOutput) => void
  1828. ): void;
  1829. public describeInstanceAssociationsStatus(
  1830. args: DescribeInstanceAssociationsStatusCommandInput,
  1831. options: __HttpHandlerOptions,
  1832. cb: (err: any, data?: DescribeInstanceAssociationsStatusCommandOutput) => void
  1833. ): void;
  1834. public describeInstanceAssociationsStatus(
  1835. args: DescribeInstanceAssociationsStatusCommandInput,
  1836. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeInstanceAssociationsStatusCommandOutput) => void),
  1837. cb?: (err: any, data?: DescribeInstanceAssociationsStatusCommandOutput) => void
  1838. ): Promise<DescribeInstanceAssociationsStatusCommandOutput> | void {
  1839. const command = new DescribeInstanceAssociationsStatusCommand(args);
  1840. if (typeof optionsOrCb === "function") {
  1841. this.send(command, optionsOrCb);
  1842. } else if (typeof cb === "function") {
  1843. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1844. this.send(command, optionsOrCb || {}, cb);
  1845. } else {
  1846. return this.send(command, optionsOrCb);
  1847. }
  1848. }
  1849. /**
  1850. * <p>Describes one or more of your instances, including information about the operating system
  1851. * platform, the version of SSM Agent installed on the instance, instance status, and so on.</p>
  1852. * <p>If you specify one or more instance IDs, it returns information for those instances. If you
  1853. * do not specify instance IDs, it returns information for all your instances. If you specify an
  1854. * instance ID that is not valid or an instance that you do not own, you receive an error.</p>
  1855. * <note>
  1856. * <p>The IamRole field for this API action is the Amazon Identity and Access Management (IAM)
  1857. * role assigned to on-premises instances. This call does not return the IAM role for EC2
  1858. * instances.</p>
  1859. * </note>
  1860. */
  1861. public describeInstanceInformation(
  1862. args: DescribeInstanceInformationCommandInput,
  1863. options?: __HttpHandlerOptions
  1864. ): Promise<DescribeInstanceInformationCommandOutput>;
  1865. public describeInstanceInformation(
  1866. args: DescribeInstanceInformationCommandInput,
  1867. cb: (err: any, data?: DescribeInstanceInformationCommandOutput) => void
  1868. ): void;
  1869. public describeInstanceInformation(
  1870. args: DescribeInstanceInformationCommandInput,
  1871. options: __HttpHandlerOptions,
  1872. cb: (err: any, data?: DescribeInstanceInformationCommandOutput) => void
  1873. ): void;
  1874. public describeInstanceInformation(
  1875. args: DescribeInstanceInformationCommandInput,
  1876. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeInstanceInformationCommandOutput) => void),
  1877. cb?: (err: any, data?: DescribeInstanceInformationCommandOutput) => void
  1878. ): Promise<DescribeInstanceInformationCommandOutput> | void {
  1879. const command = new DescribeInstanceInformationCommand(args);
  1880. if (typeof optionsOrCb === "function") {
  1881. this.send(command, optionsOrCb);
  1882. } else if (typeof cb === "function") {
  1883. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1884. this.send(command, optionsOrCb || {}, cb);
  1885. } else {
  1886. return this.send(command, optionsOrCb);
  1887. }
  1888. }
  1889. /**
  1890. * <p>Retrieves information about the patches on the specified instance and their state relative
  1891. * to the patch baseline being used for the instance.</p>
  1892. */
  1893. public describeInstancePatches(
  1894. args: DescribeInstancePatchesCommandInput,
  1895. options?: __HttpHandlerOptions
  1896. ): Promise<DescribeInstancePatchesCommandOutput>;
  1897. public describeInstancePatches(
  1898. args: DescribeInstancePatchesCommandInput,
  1899. cb: (err: any, data?: DescribeInstancePatchesCommandOutput) => void
  1900. ): void;
  1901. public describeInstancePatches(
  1902. args: DescribeInstancePatchesCommandInput,
  1903. options: __HttpHandlerOptions,
  1904. cb: (err: any, data?: DescribeInstancePatchesCommandOutput) => void
  1905. ): void;
  1906. public describeInstancePatches(
  1907. args: DescribeInstancePatchesCommandInput,
  1908. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeInstancePatchesCommandOutput) => void),
  1909. cb?: (err: any, data?: DescribeInstancePatchesCommandOutput) => void
  1910. ): Promise<DescribeInstancePatchesCommandOutput> | void {
  1911. const command = new DescribeInstancePatchesCommand(args);
  1912. if (typeof optionsOrCb === "function") {
  1913. this.send(command, optionsOrCb);
  1914. } else if (typeof cb === "function") {
  1915. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1916. this.send(command, optionsOrCb || {}, cb);
  1917. } else {
  1918. return this.send(command, optionsOrCb);
  1919. }
  1920. }
  1921. /**
  1922. * <p>Retrieves the high-level patch state of one or more instances.</p>
  1923. */
  1924. public describeInstancePatchStates(
  1925. args: DescribeInstancePatchStatesCommandInput,
  1926. options?: __HttpHandlerOptions
  1927. ): Promise<DescribeInstancePatchStatesCommandOutput>;
  1928. public describeInstancePatchStates(
  1929. args: DescribeInstancePatchStatesCommandInput,
  1930. cb: (err: any, data?: DescribeInstancePatchStatesCommandOutput) => void
  1931. ): void;
  1932. public describeInstancePatchStates(
  1933. args: DescribeInstancePatchStatesCommandInput,
  1934. options: __HttpHandlerOptions,
  1935. cb: (err: any, data?: DescribeInstancePatchStatesCommandOutput) => void
  1936. ): void;
  1937. public describeInstancePatchStates(
  1938. args: DescribeInstancePatchStatesCommandInput,
  1939. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeInstancePatchStatesCommandOutput) => void),
  1940. cb?: (err: any, data?: DescribeInstancePatchStatesCommandOutput) => void
  1941. ): Promise<DescribeInstancePatchStatesCommandOutput> | void {
  1942. const command = new DescribeInstancePatchStatesCommand(args);
  1943. if (typeof optionsOrCb === "function") {
  1944. this.send(command, optionsOrCb);
  1945. } else if (typeof cb === "function") {
  1946. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1947. this.send(command, optionsOrCb || {}, cb);
  1948. } else {
  1949. return this.send(command, optionsOrCb);
  1950. }
  1951. }
  1952. /**
  1953. * <p>Retrieves the high-level patch state for the instances in the specified patch group.</p>
  1954. */
  1955. public describeInstancePatchStatesForPatchGroup(
  1956. args: DescribeInstancePatchStatesForPatchGroupCommandInput,
  1957. options?: __HttpHandlerOptions
  1958. ): Promise<DescribeInstancePatchStatesForPatchGroupCommandOutput>;
  1959. public describeInstancePatchStatesForPatchGroup(
  1960. args: DescribeInstancePatchStatesForPatchGroupCommandInput,
  1961. cb: (err: any, data?: DescribeInstancePatchStatesForPatchGroupCommandOutput) => void
  1962. ): void;
  1963. public describeInstancePatchStatesForPatchGroup(
  1964. args: DescribeInstancePatchStatesForPatchGroupCommandInput,
  1965. options: __HttpHandlerOptions,
  1966. cb: (err: any, data?: DescribeInstancePatchStatesForPatchGroupCommandOutput) => void
  1967. ): void;
  1968. public describeInstancePatchStatesForPatchGroup(
  1969. args: DescribeInstancePatchStatesForPatchGroupCommandInput,
  1970. optionsOrCb?:
  1971. | __HttpHandlerOptions
  1972. | ((err: any, data?: DescribeInstancePatchStatesForPatchGroupCommandOutput) => void),
  1973. cb?: (err: any, data?: DescribeInstancePatchStatesForPatchGroupCommandOutput) => void
  1974. ): Promise<DescribeInstancePatchStatesForPatchGroupCommandOutput> | void {
  1975. const command = new DescribeInstancePatchStatesForPatchGroupCommand(args);
  1976. if (typeof optionsOrCb === "function") {
  1977. this.send(command, optionsOrCb);
  1978. } else if (typeof cb === "function") {
  1979. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  1980. this.send(command, optionsOrCb || {}, cb);
  1981. } else {
  1982. return this.send(command, optionsOrCb);
  1983. }
  1984. }
  1985. /**
  1986. * <p>Describes a specific delete inventory operation.</p>
  1987. */
  1988. public describeInventoryDeletions(
  1989. args: DescribeInventoryDeletionsCommandInput,
  1990. options?: __HttpHandlerOptions
  1991. ): Promise<DescribeInventoryDeletionsCommandOutput>;
  1992. public describeInventoryDeletions(
  1993. args: DescribeInventoryDeletionsCommandInput,
  1994. cb: (err: any, data?: DescribeInventoryDeletionsCommandOutput) => void
  1995. ): void;
  1996. public describeInventoryDeletions(
  1997. args: DescribeInventoryDeletionsCommandInput,
  1998. options: __HttpHandlerOptions,
  1999. cb: (err: any, data?: DescribeInventoryDeletionsCommandOutput) => void
  2000. ): void;
  2001. public describeInventoryDeletions(
  2002. args: DescribeInventoryDeletionsCommandInput,
  2003. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeInventoryDeletionsCommandOutput) => void),
  2004. cb?: (err: any, data?: DescribeInventoryDeletionsCommandOutput) => void
  2005. ): Promise<DescribeInventoryDeletionsCommandOutput> | void {
  2006. const command = new DescribeInventoryDeletionsCommand(args);
  2007. if (typeof optionsOrCb === "function") {
  2008. this.send(command, optionsOrCb);
  2009. } else if (typeof cb === "function") {
  2010. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2011. this.send(command, optionsOrCb || {}, cb);
  2012. } else {
  2013. return this.send(command, optionsOrCb);
  2014. }
  2015. }
  2016. /**
  2017. * <p>Lists the executions of a maintenance window. This includes information about when the
  2018. * maintenance window was scheduled to be active, and information about tasks registered and run
  2019. * with the maintenance window.</p>
  2020. */
  2021. public describeMaintenanceWindowExecutions(
  2022. args: DescribeMaintenanceWindowExecutionsCommandInput,
  2023. options?: __HttpHandlerOptions
  2024. ): Promise<DescribeMaintenanceWindowExecutionsCommandOutput>;
  2025. public describeMaintenanceWindowExecutions(
  2026. args: DescribeMaintenanceWindowExecutionsCommandInput,
  2027. cb: (err: any, data?: DescribeMaintenanceWindowExecutionsCommandOutput) => void
  2028. ): void;
  2029. public describeMaintenanceWindowExecutions(
  2030. args: DescribeMaintenanceWindowExecutionsCommandInput,
  2031. options: __HttpHandlerOptions,
  2032. cb: (err: any, data?: DescribeMaintenanceWindowExecutionsCommandOutput) => void
  2033. ): void;
  2034. public describeMaintenanceWindowExecutions(
  2035. args: DescribeMaintenanceWindowExecutionsCommandInput,
  2036. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMaintenanceWindowExecutionsCommandOutput) => void),
  2037. cb?: (err: any, data?: DescribeMaintenanceWindowExecutionsCommandOutput) => void
  2038. ): Promise<DescribeMaintenanceWindowExecutionsCommandOutput> | void {
  2039. const command = new DescribeMaintenanceWindowExecutionsCommand(args);
  2040. if (typeof optionsOrCb === "function") {
  2041. this.send(command, optionsOrCb);
  2042. } else if (typeof cb === "function") {
  2043. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2044. this.send(command, optionsOrCb || {}, cb);
  2045. } else {
  2046. return this.send(command, optionsOrCb);
  2047. }
  2048. }
  2049. /**
  2050. * <p>Retrieves the individual task executions (one per target) for a particular task run as part
  2051. * of a maintenance window execution.</p>
  2052. */
  2053. public describeMaintenanceWindowExecutionTaskInvocations(
  2054. args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput,
  2055. options?: __HttpHandlerOptions
  2056. ): Promise<DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput>;
  2057. public describeMaintenanceWindowExecutionTaskInvocations(
  2058. args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput,
  2059. cb: (err: any, data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput) => void
  2060. ): void;
  2061. public describeMaintenanceWindowExecutionTaskInvocations(
  2062. args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput,
  2063. options: __HttpHandlerOptions,
  2064. cb: (err: any, data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput) => void
  2065. ): void;
  2066. public describeMaintenanceWindowExecutionTaskInvocations(
  2067. args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput,
  2068. optionsOrCb?:
  2069. | __HttpHandlerOptions
  2070. | ((err: any, data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput) => void),
  2071. cb?: (err: any, data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput) => void
  2072. ): Promise<DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput> | void {
  2073. const command = new DescribeMaintenanceWindowExecutionTaskInvocationsCommand(args);
  2074. if (typeof optionsOrCb === "function") {
  2075. this.send(command, optionsOrCb);
  2076. } else if (typeof cb === "function") {
  2077. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2078. this.send(command, optionsOrCb || {}, cb);
  2079. } else {
  2080. return this.send(command, optionsOrCb);
  2081. }
  2082. }
  2083. /**
  2084. * <p>For a given maintenance window execution, lists the tasks that were run.</p>
  2085. */
  2086. public describeMaintenanceWindowExecutionTasks(
  2087. args: DescribeMaintenanceWindowExecutionTasksCommandInput,
  2088. options?: __HttpHandlerOptions
  2089. ): Promise<DescribeMaintenanceWindowExecutionTasksCommandOutput>;
  2090. public describeMaintenanceWindowExecutionTasks(
  2091. args: DescribeMaintenanceWindowExecutionTasksCommandInput,
  2092. cb: (err: any, data?: DescribeMaintenanceWindowExecutionTasksCommandOutput) => void
  2093. ): void;
  2094. public describeMaintenanceWindowExecutionTasks(
  2095. args: DescribeMaintenanceWindowExecutionTasksCommandInput,
  2096. options: __HttpHandlerOptions,
  2097. cb: (err: any, data?: DescribeMaintenanceWindowExecutionTasksCommandOutput) => void
  2098. ): void;
  2099. public describeMaintenanceWindowExecutionTasks(
  2100. args: DescribeMaintenanceWindowExecutionTasksCommandInput,
  2101. optionsOrCb?:
  2102. | __HttpHandlerOptions
  2103. | ((err: any, data?: DescribeMaintenanceWindowExecutionTasksCommandOutput) => void),
  2104. cb?: (err: any, data?: DescribeMaintenanceWindowExecutionTasksCommandOutput) => void
  2105. ): Promise<DescribeMaintenanceWindowExecutionTasksCommandOutput> | void {
  2106. const command = new DescribeMaintenanceWindowExecutionTasksCommand(args);
  2107. if (typeof optionsOrCb === "function") {
  2108. this.send(command, optionsOrCb);
  2109. } else if (typeof cb === "function") {
  2110. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2111. this.send(command, optionsOrCb || {}, cb);
  2112. } else {
  2113. return this.send(command, optionsOrCb);
  2114. }
  2115. }
  2116. /**
  2117. * <p>Retrieves the maintenance windows in an AWS account.</p>
  2118. */
  2119. public describeMaintenanceWindows(
  2120. args: DescribeMaintenanceWindowsCommandInput,
  2121. options?: __HttpHandlerOptions
  2122. ): Promise<DescribeMaintenanceWindowsCommandOutput>;
  2123. public describeMaintenanceWindows(
  2124. args: DescribeMaintenanceWindowsCommandInput,
  2125. cb: (err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void
  2126. ): void;
  2127. public describeMaintenanceWindows(
  2128. args: DescribeMaintenanceWindowsCommandInput,
  2129. options: __HttpHandlerOptions,
  2130. cb: (err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void
  2131. ): void;
  2132. public describeMaintenanceWindows(
  2133. args: DescribeMaintenanceWindowsCommandInput,
  2134. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void),
  2135. cb?: (err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void
  2136. ): Promise<DescribeMaintenanceWindowsCommandOutput> | void {
  2137. const command = new DescribeMaintenanceWindowsCommand(args);
  2138. if (typeof optionsOrCb === "function") {
  2139. this.send(command, optionsOrCb);
  2140. } else if (typeof cb === "function") {
  2141. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2142. this.send(command, optionsOrCb || {}, cb);
  2143. } else {
  2144. return this.send(command, optionsOrCb);
  2145. }
  2146. }
  2147. /**
  2148. * <p>Retrieves information about upcoming executions of a maintenance window.</p>
  2149. */
  2150. public describeMaintenanceWindowSchedule(
  2151. args: DescribeMaintenanceWindowScheduleCommandInput,
  2152. options?: __HttpHandlerOptions
  2153. ): Promise<DescribeMaintenanceWindowScheduleCommandOutput>;
  2154. public describeMaintenanceWindowSchedule(
  2155. args: DescribeMaintenanceWindowScheduleCommandInput,
  2156. cb: (err: any, data?: DescribeMaintenanceWindowScheduleCommandOutput) => void
  2157. ): void;
  2158. public describeMaintenanceWindowSchedule(
  2159. args: DescribeMaintenanceWindowScheduleCommandInput,
  2160. options: __HttpHandlerOptions,
  2161. cb: (err: any, data?: DescribeMaintenanceWindowScheduleCommandOutput) => void
  2162. ): void;
  2163. public describeMaintenanceWindowSchedule(
  2164. args: DescribeMaintenanceWindowScheduleCommandInput,
  2165. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMaintenanceWindowScheduleCommandOutput) => void),
  2166. cb?: (err: any, data?: DescribeMaintenanceWindowScheduleCommandOutput) => void
  2167. ): Promise<DescribeMaintenanceWindowScheduleCommandOutput> | void {
  2168. const command = new DescribeMaintenanceWindowScheduleCommand(args);
  2169. if (typeof optionsOrCb === "function") {
  2170. this.send(command, optionsOrCb);
  2171. } else if (typeof cb === "function") {
  2172. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2173. this.send(command, optionsOrCb || {}, cb);
  2174. } else {
  2175. return this.send(command, optionsOrCb);
  2176. }
  2177. }
  2178. /**
  2179. * <p>Retrieves information about the maintenance window targets or tasks that an instance is
  2180. * associated with.</p>
  2181. */
  2182. public describeMaintenanceWindowsForTarget(
  2183. args: DescribeMaintenanceWindowsForTargetCommandInput,
  2184. options?: __HttpHandlerOptions
  2185. ): Promise<DescribeMaintenanceWindowsForTargetCommandOutput>;
  2186. public describeMaintenanceWindowsForTarget(
  2187. args: DescribeMaintenanceWindowsForTargetCommandInput,
  2188. cb: (err: any, data?: DescribeMaintenanceWindowsForTargetCommandOutput) => void
  2189. ): void;
  2190. public describeMaintenanceWindowsForTarget(
  2191. args: DescribeMaintenanceWindowsForTargetCommandInput,
  2192. options: __HttpHandlerOptions,
  2193. cb: (err: any, data?: DescribeMaintenanceWindowsForTargetCommandOutput) => void
  2194. ): void;
  2195. public describeMaintenanceWindowsForTarget(
  2196. args: DescribeMaintenanceWindowsForTargetCommandInput,
  2197. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMaintenanceWindowsForTargetCommandOutput) => void),
  2198. cb?: (err: any, data?: DescribeMaintenanceWindowsForTargetCommandOutput) => void
  2199. ): Promise<DescribeMaintenanceWindowsForTargetCommandOutput> | void {
  2200. const command = new DescribeMaintenanceWindowsForTargetCommand(args);
  2201. if (typeof optionsOrCb === "function") {
  2202. this.send(command, optionsOrCb);
  2203. } else if (typeof cb === "function") {
  2204. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2205. this.send(command, optionsOrCb || {}, cb);
  2206. } else {
  2207. return this.send(command, optionsOrCb);
  2208. }
  2209. }
  2210. /**
  2211. * <p>Lists the targets registered with the maintenance window.</p>
  2212. */
  2213. public describeMaintenanceWindowTargets(
  2214. args: DescribeMaintenanceWindowTargetsCommandInput,
  2215. options?: __HttpHandlerOptions
  2216. ): Promise<DescribeMaintenanceWindowTargetsCommandOutput>;
  2217. public describeMaintenanceWindowTargets(
  2218. args: DescribeMaintenanceWindowTargetsCommandInput,
  2219. cb: (err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void
  2220. ): void;
  2221. public describeMaintenanceWindowTargets(
  2222. args: DescribeMaintenanceWindowTargetsCommandInput,
  2223. options: __HttpHandlerOptions,
  2224. cb: (err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void
  2225. ): void;
  2226. public describeMaintenanceWindowTargets(
  2227. args: DescribeMaintenanceWindowTargetsCommandInput,
  2228. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void),
  2229. cb?: (err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void
  2230. ): Promise<DescribeMaintenanceWindowTargetsCommandOutput> | void {
  2231. const command = new DescribeMaintenanceWindowTargetsCommand(args);
  2232. if (typeof optionsOrCb === "function") {
  2233. this.send(command, optionsOrCb);
  2234. } else if (typeof cb === "function") {
  2235. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2236. this.send(command, optionsOrCb || {}, cb);
  2237. } else {
  2238. return this.send(command, optionsOrCb);
  2239. }
  2240. }
  2241. /**
  2242. * <p>Lists the tasks in a maintenance window.</p>
  2243. */
  2244. public describeMaintenanceWindowTasks(
  2245. args: DescribeMaintenanceWindowTasksCommandInput,
  2246. options?: __HttpHandlerOptions
  2247. ): Promise<DescribeMaintenanceWindowTasksCommandOutput>;
  2248. public describeMaintenanceWindowTasks(
  2249. args: DescribeMaintenanceWindowTasksCommandInput,
  2250. cb: (err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void
  2251. ): void;
  2252. public describeMaintenanceWindowTasks(
  2253. args: DescribeMaintenanceWindowTasksCommandInput,
  2254. options: __HttpHandlerOptions,
  2255. cb: (err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void
  2256. ): void;
  2257. public describeMaintenanceWindowTasks(
  2258. args: DescribeMaintenanceWindowTasksCommandInput,
  2259. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void),
  2260. cb?: (err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void
  2261. ): Promise<DescribeMaintenanceWindowTasksCommandOutput> | void {
  2262. const command = new DescribeMaintenanceWindowTasksCommand(args);
  2263. if (typeof optionsOrCb === "function") {
  2264. this.send(command, optionsOrCb);
  2265. } else if (typeof cb === "function") {
  2266. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2267. this.send(command, optionsOrCb || {}, cb);
  2268. } else {
  2269. return this.send(command, optionsOrCb);
  2270. }
  2271. }
  2272. /**
  2273. * <p>Query a set of OpsItems. You must have permission in AWS Identity and Access Management
  2274. * (IAM) to query a list of OpsItems. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html">Getting started with
  2275. * OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  2276. * <p>Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate
  2277. * operational issues impacting the performance and health of their AWS resources. For more
  2278. * information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html">AWS Systems Manager OpsCenter</a> in the
  2279. * <i>AWS Systems Manager User Guide</i>. </p>
  2280. */
  2281. public describeOpsItems(
  2282. args: DescribeOpsItemsCommandInput,
  2283. options?: __HttpHandlerOptions
  2284. ): Promise<DescribeOpsItemsCommandOutput>;
  2285. public describeOpsItems(
  2286. args: DescribeOpsItemsCommandInput,
  2287. cb: (err: any, data?: DescribeOpsItemsCommandOutput) => void
  2288. ): void;
  2289. public describeOpsItems(
  2290. args: DescribeOpsItemsCommandInput,
  2291. options: __HttpHandlerOptions,
  2292. cb: (err: any, data?: DescribeOpsItemsCommandOutput) => void
  2293. ): void;
  2294. public describeOpsItems(
  2295. args: DescribeOpsItemsCommandInput,
  2296. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeOpsItemsCommandOutput) => void),
  2297. cb?: (err: any, data?: DescribeOpsItemsCommandOutput) => void
  2298. ): Promise<DescribeOpsItemsCommandOutput> | void {
  2299. const command = new DescribeOpsItemsCommand(args);
  2300. if (typeof optionsOrCb === "function") {
  2301. this.send(command, optionsOrCb);
  2302. } else if (typeof cb === "function") {
  2303. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2304. this.send(command, optionsOrCb || {}, cb);
  2305. } else {
  2306. return this.send(command, optionsOrCb);
  2307. }
  2308. }
  2309. /**
  2310. * <p>Get information about a parameter.</p>
  2311. * <note>
  2312. * <p>Request results are returned on a best-effort basis. If you specify <code>MaxResults</code>
  2313. * in the request, the response includes information up to the limit specified. The number of items
  2314. * returned, however, can be between zero and the value of <code>MaxResults</code>. If the service
  2315. * reaches an internal limit while processing the results, it stops the operation and returns the
  2316. * matching values up to that point and a <code>NextToken</code>. You can specify the
  2317. * <code>NextToken</code> in a subsequent call to get the next set of results.</p>
  2318. * </note>
  2319. */
  2320. public describeParameters(
  2321. args: DescribeParametersCommandInput,
  2322. options?: __HttpHandlerOptions
  2323. ): Promise<DescribeParametersCommandOutput>;
  2324. public describeParameters(
  2325. args: DescribeParametersCommandInput,
  2326. cb: (err: any, data?: DescribeParametersCommandOutput) => void
  2327. ): void;
  2328. public describeParameters(
  2329. args: DescribeParametersCommandInput,
  2330. options: __HttpHandlerOptions,
  2331. cb: (err: any, data?: DescribeParametersCommandOutput) => void
  2332. ): void;
  2333. public describeParameters(
  2334. args: DescribeParametersCommandInput,
  2335. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeParametersCommandOutput) => void),
  2336. cb?: (err: any, data?: DescribeParametersCommandOutput) => void
  2337. ): Promise<DescribeParametersCommandOutput> | void {
  2338. const command = new DescribeParametersCommand(args);
  2339. if (typeof optionsOrCb === "function") {
  2340. this.send(command, optionsOrCb);
  2341. } else if (typeof cb === "function") {
  2342. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2343. this.send(command, optionsOrCb || {}, cb);
  2344. } else {
  2345. return this.send(command, optionsOrCb);
  2346. }
  2347. }
  2348. /**
  2349. * <p>Lists the patch baselines in your AWS account.</p>
  2350. */
  2351. public describePatchBaselines(
  2352. args: DescribePatchBaselinesCommandInput,
  2353. options?: __HttpHandlerOptions
  2354. ): Promise<DescribePatchBaselinesCommandOutput>;
  2355. public describePatchBaselines(
  2356. args: DescribePatchBaselinesCommandInput,
  2357. cb: (err: any, data?: DescribePatchBaselinesCommandOutput) => void
  2358. ): void;
  2359. public describePatchBaselines(
  2360. args: DescribePatchBaselinesCommandInput,
  2361. options: __HttpHandlerOptions,
  2362. cb: (err: any, data?: DescribePatchBaselinesCommandOutput) => void
  2363. ): void;
  2364. public describePatchBaselines(
  2365. args: DescribePatchBaselinesCommandInput,
  2366. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePatchBaselinesCommandOutput) => void),
  2367. cb?: (err: any, data?: DescribePatchBaselinesCommandOutput) => void
  2368. ): Promise<DescribePatchBaselinesCommandOutput> | void {
  2369. const command = new DescribePatchBaselinesCommand(args);
  2370. if (typeof optionsOrCb === "function") {
  2371. this.send(command, optionsOrCb);
  2372. } else if (typeof cb === "function") {
  2373. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2374. this.send(command, optionsOrCb || {}, cb);
  2375. } else {
  2376. return this.send(command, optionsOrCb);
  2377. }
  2378. }
  2379. /**
  2380. * <p>Lists all patch groups that have been registered with patch baselines.</p>
  2381. */
  2382. public describePatchGroups(
  2383. args: DescribePatchGroupsCommandInput,
  2384. options?: __HttpHandlerOptions
  2385. ): Promise<DescribePatchGroupsCommandOutput>;
  2386. public describePatchGroups(
  2387. args: DescribePatchGroupsCommandInput,
  2388. cb: (err: any, data?: DescribePatchGroupsCommandOutput) => void
  2389. ): void;
  2390. public describePatchGroups(
  2391. args: DescribePatchGroupsCommandInput,
  2392. options: __HttpHandlerOptions,
  2393. cb: (err: any, data?: DescribePatchGroupsCommandOutput) => void
  2394. ): void;
  2395. public describePatchGroups(
  2396. args: DescribePatchGroupsCommandInput,
  2397. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePatchGroupsCommandOutput) => void),
  2398. cb?: (err: any, data?: DescribePatchGroupsCommandOutput) => void
  2399. ): Promise<DescribePatchGroupsCommandOutput> | void {
  2400. const command = new DescribePatchGroupsCommand(args);
  2401. if (typeof optionsOrCb === "function") {
  2402. this.send(command, optionsOrCb);
  2403. } else if (typeof cb === "function") {
  2404. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2405. this.send(command, optionsOrCb || {}, cb);
  2406. } else {
  2407. return this.send(command, optionsOrCb);
  2408. }
  2409. }
  2410. /**
  2411. * <p>Returns high-level aggregated patch compliance state for a patch group.</p>
  2412. */
  2413. public describePatchGroupState(
  2414. args: DescribePatchGroupStateCommandInput,
  2415. options?: __HttpHandlerOptions
  2416. ): Promise<DescribePatchGroupStateCommandOutput>;
  2417. public describePatchGroupState(
  2418. args: DescribePatchGroupStateCommandInput,
  2419. cb: (err: any, data?: DescribePatchGroupStateCommandOutput) => void
  2420. ): void;
  2421. public describePatchGroupState(
  2422. args: DescribePatchGroupStateCommandInput,
  2423. options: __HttpHandlerOptions,
  2424. cb: (err: any, data?: DescribePatchGroupStateCommandOutput) => void
  2425. ): void;
  2426. public describePatchGroupState(
  2427. args: DescribePatchGroupStateCommandInput,
  2428. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePatchGroupStateCommandOutput) => void),
  2429. cb?: (err: any, data?: DescribePatchGroupStateCommandOutput) => void
  2430. ): Promise<DescribePatchGroupStateCommandOutput> | void {
  2431. const command = new DescribePatchGroupStateCommand(args);
  2432. if (typeof optionsOrCb === "function") {
  2433. this.send(command, optionsOrCb);
  2434. } else if (typeof cb === "function") {
  2435. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2436. this.send(command, optionsOrCb || {}, cb);
  2437. } else {
  2438. return this.send(command, optionsOrCb);
  2439. }
  2440. }
  2441. /**
  2442. * <p>Lists the properties of available patches organized by product, product family,
  2443. * classification, severity, and other properties of available patches. You can use the reported
  2444. * properties in the filters you specify in requests for actions such as <a>CreatePatchBaseline</a>, <a>UpdatePatchBaseline</a>, <a>DescribeAvailablePatches</a>, and <a>DescribePatchBaselines</a>.</p>
  2445. * <p>The following section lists the properties that can be used in filters for each major
  2446. * operating system type:</p>
  2447. * <dl>
  2448. * <dt>WINDOWS</dt>
  2449. * <dd>
  2450. * <p>Valid properties: PRODUCT, PRODUCT_FAMILY, CLASSIFICATION, MSRC_SEVERITY</p>
  2451. * </dd>
  2452. * <dt>AMAZON_LINUX</dt>
  2453. * <dd>
  2454. * <p>Valid properties: PRODUCT, CLASSIFICATION, SEVERITY</p>
  2455. * </dd>
  2456. * <dt>AMAZON_LINUX_2</dt>
  2457. * <dd>
  2458. * <p>Valid properties: PRODUCT, CLASSIFICATION, SEVERITY</p>
  2459. * </dd>
  2460. * <dt>UBUNTU </dt>
  2461. * <dd>
  2462. * <p>Valid properties: PRODUCT, PRIORITY</p>
  2463. * </dd>
  2464. * <dt>REDHAT_ENTERPRISE_LINUX</dt>
  2465. * <dd>
  2466. * <p>Valid properties: PRODUCT, CLASSIFICATION, SEVERITY</p>
  2467. * </dd>
  2468. * <dt>SUSE</dt>
  2469. * <dd>
  2470. * <p>Valid properties: PRODUCT, CLASSIFICATION, SEVERITY</p>
  2471. * </dd>
  2472. * <dt>CENTOS</dt>
  2473. * <dd>
  2474. * <p>Valid properties: PRODUCT, CLASSIFICATION, SEVERITY</p>
  2475. * </dd>
  2476. * </dl>
  2477. */
  2478. public describePatchProperties(
  2479. args: DescribePatchPropertiesCommandInput,
  2480. options?: __HttpHandlerOptions
  2481. ): Promise<DescribePatchPropertiesCommandOutput>;
  2482. public describePatchProperties(
  2483. args: DescribePatchPropertiesCommandInput,
  2484. cb: (err: any, data?: DescribePatchPropertiesCommandOutput) => void
  2485. ): void;
  2486. public describePatchProperties(
  2487. args: DescribePatchPropertiesCommandInput,
  2488. options: __HttpHandlerOptions,
  2489. cb: (err: any, data?: DescribePatchPropertiesCommandOutput) => void
  2490. ): void;
  2491. public describePatchProperties(
  2492. args: DescribePatchPropertiesCommandInput,
  2493. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePatchPropertiesCommandOutput) => void),
  2494. cb?: (err: any, data?: DescribePatchPropertiesCommandOutput) => void
  2495. ): Promise<DescribePatchPropertiesCommandOutput> | void {
  2496. const command = new DescribePatchPropertiesCommand(args);
  2497. if (typeof optionsOrCb === "function") {
  2498. this.send(command, optionsOrCb);
  2499. } else if (typeof cb === "function") {
  2500. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2501. this.send(command, optionsOrCb || {}, cb);
  2502. } else {
  2503. return this.send(command, optionsOrCb);
  2504. }
  2505. }
  2506. /**
  2507. * <p>Retrieves a list of all active sessions (both connected and disconnected) or terminated
  2508. * sessions from the past 30 days.</p>
  2509. */
  2510. public describeSessions(
  2511. args: DescribeSessionsCommandInput,
  2512. options?: __HttpHandlerOptions
  2513. ): Promise<DescribeSessionsCommandOutput>;
  2514. public describeSessions(
  2515. args: DescribeSessionsCommandInput,
  2516. cb: (err: any, data?: DescribeSessionsCommandOutput) => void
  2517. ): void;
  2518. public describeSessions(
  2519. args: DescribeSessionsCommandInput,
  2520. options: __HttpHandlerOptions,
  2521. cb: (err: any, data?: DescribeSessionsCommandOutput) => void
  2522. ): void;
  2523. public describeSessions(
  2524. args: DescribeSessionsCommandInput,
  2525. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeSessionsCommandOutput) => void),
  2526. cb?: (err: any, data?: DescribeSessionsCommandOutput) => void
  2527. ): Promise<DescribeSessionsCommandOutput> | void {
  2528. const command = new DescribeSessionsCommand(args);
  2529. if (typeof optionsOrCb === "function") {
  2530. this.send(command, optionsOrCb);
  2531. } else if (typeof cb === "function") {
  2532. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2533. this.send(command, optionsOrCb || {}, cb);
  2534. } else {
  2535. return this.send(command, optionsOrCb);
  2536. }
  2537. }
  2538. /**
  2539. * <p>Get detailed information about a particular Automation execution.</p>
  2540. */
  2541. public getAutomationExecution(
  2542. args: GetAutomationExecutionCommandInput,
  2543. options?: __HttpHandlerOptions
  2544. ): Promise<GetAutomationExecutionCommandOutput>;
  2545. public getAutomationExecution(
  2546. args: GetAutomationExecutionCommandInput,
  2547. cb: (err: any, data?: GetAutomationExecutionCommandOutput) => void
  2548. ): void;
  2549. public getAutomationExecution(
  2550. args: GetAutomationExecutionCommandInput,
  2551. options: __HttpHandlerOptions,
  2552. cb: (err: any, data?: GetAutomationExecutionCommandOutput) => void
  2553. ): void;
  2554. public getAutomationExecution(
  2555. args: GetAutomationExecutionCommandInput,
  2556. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAutomationExecutionCommandOutput) => void),
  2557. cb?: (err: any, data?: GetAutomationExecutionCommandOutput) => void
  2558. ): Promise<GetAutomationExecutionCommandOutput> | void {
  2559. const command = new GetAutomationExecutionCommand(args);
  2560. if (typeof optionsOrCb === "function") {
  2561. this.send(command, optionsOrCb);
  2562. } else if (typeof cb === "function") {
  2563. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2564. this.send(command, optionsOrCb || {}, cb);
  2565. } else {
  2566. return this.send(command, optionsOrCb);
  2567. }
  2568. }
  2569. /**
  2570. * <p>Gets the state of the AWS Systems Manager Change Calendar at an optional, specified time. If you
  2571. * specify a time, <code>GetCalendarState</code> returns the state of the calendar at a specific
  2572. * time, and returns the next time that the Change Calendar state will transition. If you do not
  2573. * specify a time, <code>GetCalendarState</code> assumes the current time. Change Calendar entries
  2574. * have two possible states: <code>OPEN</code> or <code>CLOSED</code>. For more information about
  2575. * Systems Manager Change Calendar, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar.html">AWS Systems Manager Change
  2576. * Calendar</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  2577. */
  2578. public getCalendarState(
  2579. args: GetCalendarStateCommandInput,
  2580. options?: __HttpHandlerOptions
  2581. ): Promise<GetCalendarStateCommandOutput>;
  2582. public getCalendarState(
  2583. args: GetCalendarStateCommandInput,
  2584. cb: (err: any, data?: GetCalendarStateCommandOutput) => void
  2585. ): void;
  2586. public getCalendarState(
  2587. args: GetCalendarStateCommandInput,
  2588. options: __HttpHandlerOptions,
  2589. cb: (err: any, data?: GetCalendarStateCommandOutput) => void
  2590. ): void;
  2591. public getCalendarState(
  2592. args: GetCalendarStateCommandInput,
  2593. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCalendarStateCommandOutput) => void),
  2594. cb?: (err: any, data?: GetCalendarStateCommandOutput) => void
  2595. ): Promise<GetCalendarStateCommandOutput> | void {
  2596. const command = new GetCalendarStateCommand(args);
  2597. if (typeof optionsOrCb === "function") {
  2598. this.send(command, optionsOrCb);
  2599. } else if (typeof cb === "function") {
  2600. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2601. this.send(command, optionsOrCb || {}, cb);
  2602. } else {
  2603. return this.send(command, optionsOrCb);
  2604. }
  2605. }
  2606. /**
  2607. * <p>Returns detailed information about command execution for an invocation or plugin. </p>
  2608. */
  2609. public getCommandInvocation(
  2610. args: GetCommandInvocationCommandInput,
  2611. options?: __HttpHandlerOptions
  2612. ): Promise<GetCommandInvocationCommandOutput>;
  2613. public getCommandInvocation(
  2614. args: GetCommandInvocationCommandInput,
  2615. cb: (err: any, data?: GetCommandInvocationCommandOutput) => void
  2616. ): void;
  2617. public getCommandInvocation(
  2618. args: GetCommandInvocationCommandInput,
  2619. options: __HttpHandlerOptions,
  2620. cb: (err: any, data?: GetCommandInvocationCommandOutput) => void
  2621. ): void;
  2622. public getCommandInvocation(
  2623. args: GetCommandInvocationCommandInput,
  2624. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCommandInvocationCommandOutput) => void),
  2625. cb?: (err: any, data?: GetCommandInvocationCommandOutput) => void
  2626. ): Promise<GetCommandInvocationCommandOutput> | void {
  2627. const command = new GetCommandInvocationCommand(args);
  2628. if (typeof optionsOrCb === "function") {
  2629. this.send(command, optionsOrCb);
  2630. } else if (typeof cb === "function") {
  2631. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2632. this.send(command, optionsOrCb || {}, cb);
  2633. } else {
  2634. return this.send(command, optionsOrCb);
  2635. }
  2636. }
  2637. /**
  2638. * <p>Retrieves the Session Manager connection status for an instance to determine whether it is running and
  2639. * ready to receive Session Manager connections.</p>
  2640. */
  2641. public getConnectionStatus(
  2642. args: GetConnectionStatusCommandInput,
  2643. options?: __HttpHandlerOptions
  2644. ): Promise<GetConnectionStatusCommandOutput>;
  2645. public getConnectionStatus(
  2646. args: GetConnectionStatusCommandInput,
  2647. cb: (err: any, data?: GetConnectionStatusCommandOutput) => void
  2648. ): void;
  2649. public getConnectionStatus(
  2650. args: GetConnectionStatusCommandInput,
  2651. options: __HttpHandlerOptions,
  2652. cb: (err: any, data?: GetConnectionStatusCommandOutput) => void
  2653. ): void;
  2654. public getConnectionStatus(
  2655. args: GetConnectionStatusCommandInput,
  2656. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetConnectionStatusCommandOutput) => void),
  2657. cb?: (err: any, data?: GetConnectionStatusCommandOutput) => void
  2658. ): Promise<GetConnectionStatusCommandOutput> | void {
  2659. const command = new GetConnectionStatusCommand(args);
  2660. if (typeof optionsOrCb === "function") {
  2661. this.send(command, optionsOrCb);
  2662. } else if (typeof cb === "function") {
  2663. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2664. this.send(command, optionsOrCb || {}, cb);
  2665. } else {
  2666. return this.send(command, optionsOrCb);
  2667. }
  2668. }
  2669. /**
  2670. * <p>Retrieves the default patch baseline. Note that Systems Manager supports creating multiple default
  2671. * patch baselines. For example, you can create a default patch baseline for each operating
  2672. * system.</p>
  2673. * <p>If you do not specify an operating system value, the default patch baseline for Windows is
  2674. * returned.</p>
  2675. */
  2676. public getDefaultPatchBaseline(
  2677. args: GetDefaultPatchBaselineCommandInput,
  2678. options?: __HttpHandlerOptions
  2679. ): Promise<GetDefaultPatchBaselineCommandOutput>;
  2680. public getDefaultPatchBaseline(
  2681. args: GetDefaultPatchBaselineCommandInput,
  2682. cb: (err: any, data?: GetDefaultPatchBaselineCommandOutput) => void
  2683. ): void;
  2684. public getDefaultPatchBaseline(
  2685. args: GetDefaultPatchBaselineCommandInput,
  2686. options: __HttpHandlerOptions,
  2687. cb: (err: any, data?: GetDefaultPatchBaselineCommandOutput) => void
  2688. ): void;
  2689. public getDefaultPatchBaseline(
  2690. args: GetDefaultPatchBaselineCommandInput,
  2691. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDefaultPatchBaselineCommandOutput) => void),
  2692. cb?: (err: any, data?: GetDefaultPatchBaselineCommandOutput) => void
  2693. ): Promise<GetDefaultPatchBaselineCommandOutput> | void {
  2694. const command = new GetDefaultPatchBaselineCommand(args);
  2695. if (typeof optionsOrCb === "function") {
  2696. this.send(command, optionsOrCb);
  2697. } else if (typeof cb === "function") {
  2698. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2699. this.send(command, optionsOrCb || {}, cb);
  2700. } else {
  2701. return this.send(command, optionsOrCb);
  2702. }
  2703. }
  2704. /**
  2705. * <p>Retrieves the current snapshot for the patch baseline the instance uses. This API is
  2706. * primarily used by the AWS-RunPatchBaseline Systems Manager document. </p>
  2707. */
  2708. public getDeployablePatchSnapshotForInstance(
  2709. args: GetDeployablePatchSnapshotForInstanceCommandInput,
  2710. options?: __HttpHandlerOptions
  2711. ): Promise<GetDeployablePatchSnapshotForInstanceCommandOutput>;
  2712. public getDeployablePatchSnapshotForInstance(
  2713. args: GetDeployablePatchSnapshotForInstanceCommandInput,
  2714. cb: (err: any, data?: GetDeployablePatchSnapshotForInstanceCommandOutput) => void
  2715. ): void;
  2716. public getDeployablePatchSnapshotForInstance(
  2717. args: GetDeployablePatchSnapshotForInstanceCommandInput,
  2718. options: __HttpHandlerOptions,
  2719. cb: (err: any, data?: GetDeployablePatchSnapshotForInstanceCommandOutput) => void
  2720. ): void;
  2721. public getDeployablePatchSnapshotForInstance(
  2722. args: GetDeployablePatchSnapshotForInstanceCommandInput,
  2723. optionsOrCb?:
  2724. | __HttpHandlerOptions
  2725. | ((err: any, data?: GetDeployablePatchSnapshotForInstanceCommandOutput) => void),
  2726. cb?: (err: any, data?: GetDeployablePatchSnapshotForInstanceCommandOutput) => void
  2727. ): Promise<GetDeployablePatchSnapshotForInstanceCommandOutput> | void {
  2728. const command = new GetDeployablePatchSnapshotForInstanceCommand(args);
  2729. if (typeof optionsOrCb === "function") {
  2730. this.send(command, optionsOrCb);
  2731. } else if (typeof cb === "function") {
  2732. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2733. this.send(command, optionsOrCb || {}, cb);
  2734. } else {
  2735. return this.send(command, optionsOrCb);
  2736. }
  2737. }
  2738. /**
  2739. * <p>Gets the contents of the specified Systems Manager document.</p>
  2740. */
  2741. public getDocument(args: GetDocumentCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentCommandOutput>;
  2742. public getDocument(args: GetDocumentCommandInput, cb: (err: any, data?: GetDocumentCommandOutput) => void): void;
  2743. public getDocument(
  2744. args: GetDocumentCommandInput,
  2745. options: __HttpHandlerOptions,
  2746. cb: (err: any, data?: GetDocumentCommandOutput) => void
  2747. ): void;
  2748. public getDocument(
  2749. args: GetDocumentCommandInput,
  2750. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDocumentCommandOutput) => void),
  2751. cb?: (err: any, data?: GetDocumentCommandOutput) => void
  2752. ): Promise<GetDocumentCommandOutput> | void {
  2753. const command = new GetDocumentCommand(args);
  2754. if (typeof optionsOrCb === "function") {
  2755. this.send(command, optionsOrCb);
  2756. } else if (typeof cb === "function") {
  2757. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2758. this.send(command, optionsOrCb || {}, cb);
  2759. } else {
  2760. return this.send(command, optionsOrCb);
  2761. }
  2762. }
  2763. /**
  2764. * <p>Query inventory information.</p>
  2765. */
  2766. public getInventory(
  2767. args: GetInventoryCommandInput,
  2768. options?: __HttpHandlerOptions
  2769. ): Promise<GetInventoryCommandOutput>;
  2770. public getInventory(args: GetInventoryCommandInput, cb: (err: any, data?: GetInventoryCommandOutput) => void): void;
  2771. public getInventory(
  2772. args: GetInventoryCommandInput,
  2773. options: __HttpHandlerOptions,
  2774. cb: (err: any, data?: GetInventoryCommandOutput) => void
  2775. ): void;
  2776. public getInventory(
  2777. args: GetInventoryCommandInput,
  2778. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInventoryCommandOutput) => void),
  2779. cb?: (err: any, data?: GetInventoryCommandOutput) => void
  2780. ): Promise<GetInventoryCommandOutput> | void {
  2781. const command = new GetInventoryCommand(args);
  2782. if (typeof optionsOrCb === "function") {
  2783. this.send(command, optionsOrCb);
  2784. } else if (typeof cb === "function") {
  2785. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2786. this.send(command, optionsOrCb || {}, cb);
  2787. } else {
  2788. return this.send(command, optionsOrCb);
  2789. }
  2790. }
  2791. /**
  2792. * <p>Return a list of inventory type names for the account, or return a list of attribute names
  2793. * for a specific Inventory item type.</p>
  2794. */
  2795. public getInventorySchema(
  2796. args: GetInventorySchemaCommandInput,
  2797. options?: __HttpHandlerOptions
  2798. ): Promise<GetInventorySchemaCommandOutput>;
  2799. public getInventorySchema(
  2800. args: GetInventorySchemaCommandInput,
  2801. cb: (err: any, data?: GetInventorySchemaCommandOutput) => void
  2802. ): void;
  2803. public getInventorySchema(
  2804. args: GetInventorySchemaCommandInput,
  2805. options: __HttpHandlerOptions,
  2806. cb: (err: any, data?: GetInventorySchemaCommandOutput) => void
  2807. ): void;
  2808. public getInventorySchema(
  2809. args: GetInventorySchemaCommandInput,
  2810. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInventorySchemaCommandOutput) => void),
  2811. cb?: (err: any, data?: GetInventorySchemaCommandOutput) => void
  2812. ): Promise<GetInventorySchemaCommandOutput> | void {
  2813. const command = new GetInventorySchemaCommand(args);
  2814. if (typeof optionsOrCb === "function") {
  2815. this.send(command, optionsOrCb);
  2816. } else if (typeof cb === "function") {
  2817. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2818. this.send(command, optionsOrCb || {}, cb);
  2819. } else {
  2820. return this.send(command, optionsOrCb);
  2821. }
  2822. }
  2823. /**
  2824. * <p>Retrieves a maintenance window.</p>
  2825. */
  2826. public getMaintenanceWindow(
  2827. args: GetMaintenanceWindowCommandInput,
  2828. options?: __HttpHandlerOptions
  2829. ): Promise<GetMaintenanceWindowCommandOutput>;
  2830. public getMaintenanceWindow(
  2831. args: GetMaintenanceWindowCommandInput,
  2832. cb: (err: any, data?: GetMaintenanceWindowCommandOutput) => void
  2833. ): void;
  2834. public getMaintenanceWindow(
  2835. args: GetMaintenanceWindowCommandInput,
  2836. options: __HttpHandlerOptions,
  2837. cb: (err: any, data?: GetMaintenanceWindowCommandOutput) => void
  2838. ): void;
  2839. public getMaintenanceWindow(
  2840. args: GetMaintenanceWindowCommandInput,
  2841. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMaintenanceWindowCommandOutput) => void),
  2842. cb?: (err: any, data?: GetMaintenanceWindowCommandOutput) => void
  2843. ): Promise<GetMaintenanceWindowCommandOutput> | void {
  2844. const command = new GetMaintenanceWindowCommand(args);
  2845. if (typeof optionsOrCb === "function") {
  2846. this.send(command, optionsOrCb);
  2847. } else if (typeof cb === "function") {
  2848. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2849. this.send(command, optionsOrCb || {}, cb);
  2850. } else {
  2851. return this.send(command, optionsOrCb);
  2852. }
  2853. }
  2854. /**
  2855. * <p>Retrieves details about a specific a maintenance window execution.</p>
  2856. */
  2857. public getMaintenanceWindowExecution(
  2858. args: GetMaintenanceWindowExecutionCommandInput,
  2859. options?: __HttpHandlerOptions
  2860. ): Promise<GetMaintenanceWindowExecutionCommandOutput>;
  2861. public getMaintenanceWindowExecution(
  2862. args: GetMaintenanceWindowExecutionCommandInput,
  2863. cb: (err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void
  2864. ): void;
  2865. public getMaintenanceWindowExecution(
  2866. args: GetMaintenanceWindowExecutionCommandInput,
  2867. options: __HttpHandlerOptions,
  2868. cb: (err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void
  2869. ): void;
  2870. public getMaintenanceWindowExecution(
  2871. args: GetMaintenanceWindowExecutionCommandInput,
  2872. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void),
  2873. cb?: (err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void
  2874. ): Promise<GetMaintenanceWindowExecutionCommandOutput> | void {
  2875. const command = new GetMaintenanceWindowExecutionCommand(args);
  2876. if (typeof optionsOrCb === "function") {
  2877. this.send(command, optionsOrCb);
  2878. } else if (typeof cb === "function") {
  2879. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2880. this.send(command, optionsOrCb || {}, cb);
  2881. } else {
  2882. return this.send(command, optionsOrCb);
  2883. }
  2884. }
  2885. /**
  2886. * <p>Retrieves the details about a specific task run as part of a maintenance window
  2887. * execution.</p>
  2888. */
  2889. public getMaintenanceWindowExecutionTask(
  2890. args: GetMaintenanceWindowExecutionTaskCommandInput,
  2891. options?: __HttpHandlerOptions
  2892. ): Promise<GetMaintenanceWindowExecutionTaskCommandOutput>;
  2893. public getMaintenanceWindowExecutionTask(
  2894. args: GetMaintenanceWindowExecutionTaskCommandInput,
  2895. cb: (err: any, data?: GetMaintenanceWindowExecutionTaskCommandOutput) => void
  2896. ): void;
  2897. public getMaintenanceWindowExecutionTask(
  2898. args: GetMaintenanceWindowExecutionTaskCommandInput,
  2899. options: __HttpHandlerOptions,
  2900. cb: (err: any, data?: GetMaintenanceWindowExecutionTaskCommandOutput) => void
  2901. ): void;
  2902. public getMaintenanceWindowExecutionTask(
  2903. args: GetMaintenanceWindowExecutionTaskCommandInput,
  2904. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMaintenanceWindowExecutionTaskCommandOutput) => void),
  2905. cb?: (err: any, data?: GetMaintenanceWindowExecutionTaskCommandOutput) => void
  2906. ): Promise<GetMaintenanceWindowExecutionTaskCommandOutput> | void {
  2907. const command = new GetMaintenanceWindowExecutionTaskCommand(args);
  2908. if (typeof optionsOrCb === "function") {
  2909. this.send(command, optionsOrCb);
  2910. } else if (typeof cb === "function") {
  2911. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2912. this.send(command, optionsOrCb || {}, cb);
  2913. } else {
  2914. return this.send(command, optionsOrCb);
  2915. }
  2916. }
  2917. /**
  2918. * <p>Retrieves information about a specific task running on a specific target.</p>
  2919. */
  2920. public getMaintenanceWindowExecutionTaskInvocation(
  2921. args: GetMaintenanceWindowExecutionTaskInvocationCommandInput,
  2922. options?: __HttpHandlerOptions
  2923. ): Promise<GetMaintenanceWindowExecutionTaskInvocationCommandOutput>;
  2924. public getMaintenanceWindowExecutionTaskInvocation(
  2925. args: GetMaintenanceWindowExecutionTaskInvocationCommandInput,
  2926. cb: (err: any, data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput) => void
  2927. ): void;
  2928. public getMaintenanceWindowExecutionTaskInvocation(
  2929. args: GetMaintenanceWindowExecutionTaskInvocationCommandInput,
  2930. options: __HttpHandlerOptions,
  2931. cb: (err: any, data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput) => void
  2932. ): void;
  2933. public getMaintenanceWindowExecutionTaskInvocation(
  2934. args: GetMaintenanceWindowExecutionTaskInvocationCommandInput,
  2935. optionsOrCb?:
  2936. | __HttpHandlerOptions
  2937. | ((err: any, data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput) => void),
  2938. cb?: (err: any, data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput) => void
  2939. ): Promise<GetMaintenanceWindowExecutionTaskInvocationCommandOutput> | void {
  2940. const command = new GetMaintenanceWindowExecutionTaskInvocationCommand(args);
  2941. if (typeof optionsOrCb === "function") {
  2942. this.send(command, optionsOrCb);
  2943. } else if (typeof cb === "function") {
  2944. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2945. this.send(command, optionsOrCb || {}, cb);
  2946. } else {
  2947. return this.send(command, optionsOrCb);
  2948. }
  2949. }
  2950. /**
  2951. * <p>Lists the tasks in a maintenance window.</p>
  2952. */
  2953. public getMaintenanceWindowTask(
  2954. args: GetMaintenanceWindowTaskCommandInput,
  2955. options?: __HttpHandlerOptions
  2956. ): Promise<GetMaintenanceWindowTaskCommandOutput>;
  2957. public getMaintenanceWindowTask(
  2958. args: GetMaintenanceWindowTaskCommandInput,
  2959. cb: (err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void
  2960. ): void;
  2961. public getMaintenanceWindowTask(
  2962. args: GetMaintenanceWindowTaskCommandInput,
  2963. options: __HttpHandlerOptions,
  2964. cb: (err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void
  2965. ): void;
  2966. public getMaintenanceWindowTask(
  2967. args: GetMaintenanceWindowTaskCommandInput,
  2968. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void),
  2969. cb?: (err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void
  2970. ): Promise<GetMaintenanceWindowTaskCommandOutput> | void {
  2971. const command = new GetMaintenanceWindowTaskCommand(args);
  2972. if (typeof optionsOrCb === "function") {
  2973. this.send(command, optionsOrCb);
  2974. } else if (typeof cb === "function") {
  2975. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  2976. this.send(command, optionsOrCb || {}, cb);
  2977. } else {
  2978. return this.send(command, optionsOrCb);
  2979. }
  2980. }
  2981. /**
  2982. * <p>Get information about an OpsItem by using the ID. You must have permission in AWS Identity
  2983. * and Access Management (IAM) to view information about an OpsItem. For more information, see
  2984. * <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html">Getting started with
  2985. * OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  2986. * <p>Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate
  2987. * operational issues impacting the performance and health of their AWS resources. For more
  2988. * information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html">AWS Systems Manager OpsCenter</a> in the
  2989. * <i>AWS Systems Manager User Guide</i>. </p>
  2990. */
  2991. public getOpsItem(args: GetOpsItemCommandInput, options?: __HttpHandlerOptions): Promise<GetOpsItemCommandOutput>;
  2992. public getOpsItem(args: GetOpsItemCommandInput, cb: (err: any, data?: GetOpsItemCommandOutput) => void): void;
  2993. public getOpsItem(
  2994. args: GetOpsItemCommandInput,
  2995. options: __HttpHandlerOptions,
  2996. cb: (err: any, data?: GetOpsItemCommandOutput) => void
  2997. ): void;
  2998. public getOpsItem(
  2999. args: GetOpsItemCommandInput,
  3000. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetOpsItemCommandOutput) => void),
  3001. cb?: (err: any, data?: GetOpsItemCommandOutput) => void
  3002. ): Promise<GetOpsItemCommandOutput> | void {
  3003. const command = new GetOpsItemCommand(args);
  3004. if (typeof optionsOrCb === "function") {
  3005. this.send(command, optionsOrCb);
  3006. } else if (typeof cb === "function") {
  3007. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3008. this.send(command, optionsOrCb || {}, cb);
  3009. } else {
  3010. return this.send(command, optionsOrCb);
  3011. }
  3012. }
  3013. /**
  3014. * <p>View a summary of OpsItems based on specified filters and aggregators.</p>
  3015. */
  3016. public getOpsSummary(
  3017. args: GetOpsSummaryCommandInput,
  3018. options?: __HttpHandlerOptions
  3019. ): Promise<GetOpsSummaryCommandOutput>;
  3020. public getOpsSummary(
  3021. args: GetOpsSummaryCommandInput,
  3022. cb: (err: any, data?: GetOpsSummaryCommandOutput) => void
  3023. ): void;
  3024. public getOpsSummary(
  3025. args: GetOpsSummaryCommandInput,
  3026. options: __HttpHandlerOptions,
  3027. cb: (err: any, data?: GetOpsSummaryCommandOutput) => void
  3028. ): void;
  3029. public getOpsSummary(
  3030. args: GetOpsSummaryCommandInput,
  3031. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetOpsSummaryCommandOutput) => void),
  3032. cb?: (err: any, data?: GetOpsSummaryCommandOutput) => void
  3033. ): Promise<GetOpsSummaryCommandOutput> | void {
  3034. const command = new GetOpsSummaryCommand(args);
  3035. if (typeof optionsOrCb === "function") {
  3036. this.send(command, optionsOrCb);
  3037. } else if (typeof cb === "function") {
  3038. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3039. this.send(command, optionsOrCb || {}, cb);
  3040. } else {
  3041. return this.send(command, optionsOrCb);
  3042. }
  3043. }
  3044. /**
  3045. * <p>Get information about a parameter by using the parameter name. Don't confuse this API action
  3046. * with the <a>GetParameters</a> API action.</p>
  3047. */
  3048. public getParameter(
  3049. args: GetParameterCommandInput,
  3050. options?: __HttpHandlerOptions
  3051. ): Promise<GetParameterCommandOutput>;
  3052. public getParameter(args: GetParameterCommandInput, cb: (err: any, data?: GetParameterCommandOutput) => void): void;
  3053. public getParameter(
  3054. args: GetParameterCommandInput,
  3055. options: __HttpHandlerOptions,
  3056. cb: (err: any, data?: GetParameterCommandOutput) => void
  3057. ): void;
  3058. public getParameter(
  3059. args: GetParameterCommandInput,
  3060. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetParameterCommandOutput) => void),
  3061. cb?: (err: any, data?: GetParameterCommandOutput) => void
  3062. ): Promise<GetParameterCommandOutput> | void {
  3063. const command = new GetParameterCommand(args);
  3064. if (typeof optionsOrCb === "function") {
  3065. this.send(command, optionsOrCb);
  3066. } else if (typeof cb === "function") {
  3067. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3068. this.send(command, optionsOrCb || {}, cb);
  3069. } else {
  3070. return this.send(command, optionsOrCb);
  3071. }
  3072. }
  3073. /**
  3074. * <p>Query a list of all parameters used by the AWS account.</p>
  3075. */
  3076. public getParameterHistory(
  3077. args: GetParameterHistoryCommandInput,
  3078. options?: __HttpHandlerOptions
  3079. ): Promise<GetParameterHistoryCommandOutput>;
  3080. public getParameterHistory(
  3081. args: GetParameterHistoryCommandInput,
  3082. cb: (err: any, data?: GetParameterHistoryCommandOutput) => void
  3083. ): void;
  3084. public getParameterHistory(
  3085. args: GetParameterHistoryCommandInput,
  3086. options: __HttpHandlerOptions,
  3087. cb: (err: any, data?: GetParameterHistoryCommandOutput) => void
  3088. ): void;
  3089. public getParameterHistory(
  3090. args: GetParameterHistoryCommandInput,
  3091. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetParameterHistoryCommandOutput) => void),
  3092. cb?: (err: any, data?: GetParameterHistoryCommandOutput) => void
  3093. ): Promise<GetParameterHistoryCommandOutput> | void {
  3094. const command = new GetParameterHistoryCommand(args);
  3095. if (typeof optionsOrCb === "function") {
  3096. this.send(command, optionsOrCb);
  3097. } else if (typeof cb === "function") {
  3098. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3099. this.send(command, optionsOrCb || {}, cb);
  3100. } else {
  3101. return this.send(command, optionsOrCb);
  3102. }
  3103. }
  3104. /**
  3105. * <p>Get details of a parameter. Don't confuse this API action with the <a>GetParameter</a> API action.</p>
  3106. */
  3107. public getParameters(
  3108. args: GetParametersCommandInput,
  3109. options?: __HttpHandlerOptions
  3110. ): Promise<GetParametersCommandOutput>;
  3111. public getParameters(
  3112. args: GetParametersCommandInput,
  3113. cb: (err: any, data?: GetParametersCommandOutput) => void
  3114. ): void;
  3115. public getParameters(
  3116. args: GetParametersCommandInput,
  3117. options: __HttpHandlerOptions,
  3118. cb: (err: any, data?: GetParametersCommandOutput) => void
  3119. ): void;
  3120. public getParameters(
  3121. args: GetParametersCommandInput,
  3122. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetParametersCommandOutput) => void),
  3123. cb?: (err: any, data?: GetParametersCommandOutput) => void
  3124. ): Promise<GetParametersCommandOutput> | void {
  3125. const command = new GetParametersCommand(args);
  3126. if (typeof optionsOrCb === "function") {
  3127. this.send(command, optionsOrCb);
  3128. } else if (typeof cb === "function") {
  3129. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3130. this.send(command, optionsOrCb || {}, cb);
  3131. } else {
  3132. return this.send(command, optionsOrCb);
  3133. }
  3134. }
  3135. /**
  3136. * <p>Retrieve information about one or more parameters in a specific hierarchy. </p>
  3137. * <note>
  3138. * <p>Request results are returned on a best-effort basis. If you specify <code>MaxResults</code>
  3139. * in the request, the response includes information up to the limit specified. The number of items
  3140. * returned, however, can be between zero and the value of <code>MaxResults</code>. If the service
  3141. * reaches an internal limit while processing the results, it stops the operation and returns the
  3142. * matching values up to that point and a <code>NextToken</code>. You can specify the
  3143. * <code>NextToken</code> in a subsequent call to get the next set of results.</p>
  3144. * </note>
  3145. */
  3146. public getParametersByPath(
  3147. args: GetParametersByPathCommandInput,
  3148. options?: __HttpHandlerOptions
  3149. ): Promise<GetParametersByPathCommandOutput>;
  3150. public getParametersByPath(
  3151. args: GetParametersByPathCommandInput,
  3152. cb: (err: any, data?: GetParametersByPathCommandOutput) => void
  3153. ): void;
  3154. public getParametersByPath(
  3155. args: GetParametersByPathCommandInput,
  3156. options: __HttpHandlerOptions,
  3157. cb: (err: any, data?: GetParametersByPathCommandOutput) => void
  3158. ): void;
  3159. public getParametersByPath(
  3160. args: GetParametersByPathCommandInput,
  3161. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetParametersByPathCommandOutput) => void),
  3162. cb?: (err: any, data?: GetParametersByPathCommandOutput) => void
  3163. ): Promise<GetParametersByPathCommandOutput> | void {
  3164. const command = new GetParametersByPathCommand(args);
  3165. if (typeof optionsOrCb === "function") {
  3166. this.send(command, optionsOrCb);
  3167. } else if (typeof cb === "function") {
  3168. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3169. this.send(command, optionsOrCb || {}, cb);
  3170. } else {
  3171. return this.send(command, optionsOrCb);
  3172. }
  3173. }
  3174. /**
  3175. * <p>Retrieves information about a patch baseline.</p>
  3176. */
  3177. public getPatchBaseline(
  3178. args: GetPatchBaselineCommandInput,
  3179. options?: __HttpHandlerOptions
  3180. ): Promise<GetPatchBaselineCommandOutput>;
  3181. public getPatchBaseline(
  3182. args: GetPatchBaselineCommandInput,
  3183. cb: (err: any, data?: GetPatchBaselineCommandOutput) => void
  3184. ): void;
  3185. public getPatchBaseline(
  3186. args: GetPatchBaselineCommandInput,
  3187. options: __HttpHandlerOptions,
  3188. cb: (err: any, data?: GetPatchBaselineCommandOutput) => void
  3189. ): void;
  3190. public getPatchBaseline(
  3191. args: GetPatchBaselineCommandInput,
  3192. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPatchBaselineCommandOutput) => void),
  3193. cb?: (err: any, data?: GetPatchBaselineCommandOutput) => void
  3194. ): Promise<GetPatchBaselineCommandOutput> | void {
  3195. const command = new GetPatchBaselineCommand(args);
  3196. if (typeof optionsOrCb === "function") {
  3197. this.send(command, optionsOrCb);
  3198. } else if (typeof cb === "function") {
  3199. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3200. this.send(command, optionsOrCb || {}, cb);
  3201. } else {
  3202. return this.send(command, optionsOrCb);
  3203. }
  3204. }
  3205. /**
  3206. * <p>Retrieves the patch baseline that should be used for the specified patch group.</p>
  3207. */
  3208. public getPatchBaselineForPatchGroup(
  3209. args: GetPatchBaselineForPatchGroupCommandInput,
  3210. options?: __HttpHandlerOptions
  3211. ): Promise<GetPatchBaselineForPatchGroupCommandOutput>;
  3212. public getPatchBaselineForPatchGroup(
  3213. args: GetPatchBaselineForPatchGroupCommandInput,
  3214. cb: (err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void
  3215. ): void;
  3216. public getPatchBaselineForPatchGroup(
  3217. args: GetPatchBaselineForPatchGroupCommandInput,
  3218. options: __HttpHandlerOptions,
  3219. cb: (err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void
  3220. ): void;
  3221. public getPatchBaselineForPatchGroup(
  3222. args: GetPatchBaselineForPatchGroupCommandInput,
  3223. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void),
  3224. cb?: (err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void
  3225. ): Promise<GetPatchBaselineForPatchGroupCommandOutput> | void {
  3226. const command = new GetPatchBaselineForPatchGroupCommand(args);
  3227. if (typeof optionsOrCb === "function") {
  3228. this.send(command, optionsOrCb);
  3229. } else if (typeof cb === "function") {
  3230. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3231. this.send(command, optionsOrCb || {}, cb);
  3232. } else {
  3233. return this.send(command, optionsOrCb);
  3234. }
  3235. }
  3236. /**
  3237. * <p>
  3238. * <code>ServiceSetting</code> is an account-level setting for an AWS service. This setting
  3239. * defines how a user interacts with or uses a service or a feature of a service. For example, if an
  3240. * AWS service charges money to the account based on feature or service usage, then the AWS service
  3241. * team might create a default setting of "false". This means the user can't use this feature unless
  3242. * they change the setting to "true" and intentionally opt in for a paid feature.</p>
  3243. * <p>Services map a <code>SettingId</code> object to a setting value. AWS services teams define
  3244. * the default value for a <code>SettingId</code>. You can't create a new <code>SettingId</code>,
  3245. * but you can overwrite the default value if you have the <code>ssm:UpdateServiceSetting</code>
  3246. * permission for the setting. Use the <a>UpdateServiceSetting</a> API action to change
  3247. * the default setting. Or use the <a>ResetServiceSetting</a> to change the value back to
  3248. * the original value defined by the AWS service team.</p>
  3249. *
  3250. * <p>Query the current service setting for the account. </p>
  3251. */
  3252. public getServiceSetting(
  3253. args: GetServiceSettingCommandInput,
  3254. options?: __HttpHandlerOptions
  3255. ): Promise<GetServiceSettingCommandOutput>;
  3256. public getServiceSetting(
  3257. args: GetServiceSettingCommandInput,
  3258. cb: (err: any, data?: GetServiceSettingCommandOutput) => void
  3259. ): void;
  3260. public getServiceSetting(
  3261. args: GetServiceSettingCommandInput,
  3262. options: __HttpHandlerOptions,
  3263. cb: (err: any, data?: GetServiceSettingCommandOutput) => void
  3264. ): void;
  3265. public getServiceSetting(
  3266. args: GetServiceSettingCommandInput,
  3267. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetServiceSettingCommandOutput) => void),
  3268. cb?: (err: any, data?: GetServiceSettingCommandOutput) => void
  3269. ): Promise<GetServiceSettingCommandOutput> | void {
  3270. const command = new GetServiceSettingCommand(args);
  3271. if (typeof optionsOrCb === "function") {
  3272. this.send(command, optionsOrCb);
  3273. } else if (typeof cb === "function") {
  3274. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3275. this.send(command, optionsOrCb || {}, cb);
  3276. } else {
  3277. return this.send(command, optionsOrCb);
  3278. }
  3279. }
  3280. /**
  3281. * <p>A parameter label is a user-defined alias to help you manage different versions of a
  3282. * parameter. When you modify a parameter, Systems Manager automatically saves a new version and increments
  3283. * the version number by one. A label can help you remember the purpose of a parameter when there
  3284. * are multiple versions. </p>
  3285. * <p>Parameter labels have the following requirements and restrictions.</p>
  3286. * <ul>
  3287. * <li>
  3288. * <p>A version of a parameter can have a maximum of 10 labels.</p>
  3289. * </li>
  3290. * <li>
  3291. * <p>You can't attach the same label to different versions of the same parameter. For example,
  3292. * if version 1 has the label Production, then you can't attach Production to version 2.</p>
  3293. * </li>
  3294. * <li>
  3295. * <p>You can move a label from one version of a parameter to another.</p>
  3296. * </li>
  3297. * <li>
  3298. * <p>You can't create a label when you create a new parameter. You must attach a label to a
  3299. * specific version of a parameter.</p>
  3300. * </li>
  3301. * <li>
  3302. * <p>You can't delete a parameter label. If you no longer want to use a parameter label, then
  3303. * you must move it to a different version of a parameter.</p>
  3304. * </li>
  3305. * <li>
  3306. * <p>A label can have a maximum of 100 characters.</p>
  3307. * </li>
  3308. * <li>
  3309. * <p>Labels can contain letters (case sensitive), numbers, periods (.), hyphens (-), or
  3310. * underscores (_).</p>
  3311. * </li>
  3312. * <li>
  3313. * <p>Labels can't begin with a number, "aws," or "ssm" (not case sensitive). If a label fails
  3314. * to meet these requirements, then the label is not associated with a parameter and the system
  3315. * displays it in the list of InvalidLabels.</p>
  3316. * </li>
  3317. * </ul>
  3318. */
  3319. public labelParameterVersion(
  3320. args: LabelParameterVersionCommandInput,
  3321. options?: __HttpHandlerOptions
  3322. ): Promise<LabelParameterVersionCommandOutput>;
  3323. public labelParameterVersion(
  3324. args: LabelParameterVersionCommandInput,
  3325. cb: (err: any, data?: LabelParameterVersionCommandOutput) => void
  3326. ): void;
  3327. public labelParameterVersion(
  3328. args: LabelParameterVersionCommandInput,
  3329. options: __HttpHandlerOptions,
  3330. cb: (err: any, data?: LabelParameterVersionCommandOutput) => void
  3331. ): void;
  3332. public labelParameterVersion(
  3333. args: LabelParameterVersionCommandInput,
  3334. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: LabelParameterVersionCommandOutput) => void),
  3335. cb?: (err: any, data?: LabelParameterVersionCommandOutput) => void
  3336. ): Promise<LabelParameterVersionCommandOutput> | void {
  3337. const command = new LabelParameterVersionCommand(args);
  3338. if (typeof optionsOrCb === "function") {
  3339. this.send(command, optionsOrCb);
  3340. } else if (typeof cb === "function") {
  3341. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3342. this.send(command, optionsOrCb || {}, cb);
  3343. } else {
  3344. return this.send(command, optionsOrCb);
  3345. }
  3346. }
  3347. /**
  3348. * <p>Returns all State Manager associations in the current AWS account and Region. You can limit
  3349. * the results to a specific State Manager association document or instance by specifying a
  3350. * filter.</p>
  3351. */
  3352. public listAssociations(
  3353. args: ListAssociationsCommandInput,
  3354. options?: __HttpHandlerOptions
  3355. ): Promise<ListAssociationsCommandOutput>;
  3356. public listAssociations(
  3357. args: ListAssociationsCommandInput,
  3358. cb: (err: any, data?: ListAssociationsCommandOutput) => void
  3359. ): void;
  3360. public listAssociations(
  3361. args: ListAssociationsCommandInput,
  3362. options: __HttpHandlerOptions,
  3363. cb: (err: any, data?: ListAssociationsCommandOutput) => void
  3364. ): void;
  3365. public listAssociations(
  3366. args: ListAssociationsCommandInput,
  3367. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssociationsCommandOutput) => void),
  3368. cb?: (err: any, data?: ListAssociationsCommandOutput) => void
  3369. ): Promise<ListAssociationsCommandOutput> | void {
  3370. const command = new ListAssociationsCommand(args);
  3371. if (typeof optionsOrCb === "function") {
  3372. this.send(command, optionsOrCb);
  3373. } else if (typeof cb === "function") {
  3374. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3375. this.send(command, optionsOrCb || {}, cb);
  3376. } else {
  3377. return this.send(command, optionsOrCb);
  3378. }
  3379. }
  3380. /**
  3381. * <p>Retrieves all versions of an association for a specific association ID.</p>
  3382. */
  3383. public listAssociationVersions(
  3384. args: ListAssociationVersionsCommandInput,
  3385. options?: __HttpHandlerOptions
  3386. ): Promise<ListAssociationVersionsCommandOutput>;
  3387. public listAssociationVersions(
  3388. args: ListAssociationVersionsCommandInput,
  3389. cb: (err: any, data?: ListAssociationVersionsCommandOutput) => void
  3390. ): void;
  3391. public listAssociationVersions(
  3392. args: ListAssociationVersionsCommandInput,
  3393. options: __HttpHandlerOptions,
  3394. cb: (err: any, data?: ListAssociationVersionsCommandOutput) => void
  3395. ): void;
  3396. public listAssociationVersions(
  3397. args: ListAssociationVersionsCommandInput,
  3398. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssociationVersionsCommandOutput) => void),
  3399. cb?: (err: any, data?: ListAssociationVersionsCommandOutput) => void
  3400. ): Promise<ListAssociationVersionsCommandOutput> | void {
  3401. const command = new ListAssociationVersionsCommand(args);
  3402. if (typeof optionsOrCb === "function") {
  3403. this.send(command, optionsOrCb);
  3404. } else if (typeof cb === "function") {
  3405. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3406. this.send(command, optionsOrCb || {}, cb);
  3407. } else {
  3408. return this.send(command, optionsOrCb);
  3409. }
  3410. }
  3411. /**
  3412. * <p>An invocation is copy of a command sent to a specific instance. A command can apply to one
  3413. * or more instances. A command invocation applies to one instance. For example, if a user runs
  3414. * SendCommand against three instances, then a command invocation is created for each requested
  3415. * instance ID. ListCommandInvocations provide status about command execution.</p>
  3416. */
  3417. public listCommandInvocations(
  3418. args: ListCommandInvocationsCommandInput,
  3419. options?: __HttpHandlerOptions
  3420. ): Promise<ListCommandInvocationsCommandOutput>;
  3421. public listCommandInvocations(
  3422. args: ListCommandInvocationsCommandInput,
  3423. cb: (err: any, data?: ListCommandInvocationsCommandOutput) => void
  3424. ): void;
  3425. public listCommandInvocations(
  3426. args: ListCommandInvocationsCommandInput,
  3427. options: __HttpHandlerOptions,
  3428. cb: (err: any, data?: ListCommandInvocationsCommandOutput) => void
  3429. ): void;
  3430. public listCommandInvocations(
  3431. args: ListCommandInvocationsCommandInput,
  3432. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCommandInvocationsCommandOutput) => void),
  3433. cb?: (err: any, data?: ListCommandInvocationsCommandOutput) => void
  3434. ): Promise<ListCommandInvocationsCommandOutput> | void {
  3435. const command = new ListCommandInvocationsCommand(args);
  3436. if (typeof optionsOrCb === "function") {
  3437. this.send(command, optionsOrCb);
  3438. } else if (typeof cb === "function") {
  3439. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3440. this.send(command, optionsOrCb || {}, cb);
  3441. } else {
  3442. return this.send(command, optionsOrCb);
  3443. }
  3444. }
  3445. /**
  3446. * <p>Lists the commands requested by users of the AWS account.</p>
  3447. */
  3448. public listCommands(
  3449. args: ListCommandsCommandInput,
  3450. options?: __HttpHandlerOptions
  3451. ): Promise<ListCommandsCommandOutput>;
  3452. public listCommands(args: ListCommandsCommandInput, cb: (err: any, data?: ListCommandsCommandOutput) => void): void;
  3453. public listCommands(
  3454. args: ListCommandsCommandInput,
  3455. options: __HttpHandlerOptions,
  3456. cb: (err: any, data?: ListCommandsCommandOutput) => void
  3457. ): void;
  3458. public listCommands(
  3459. args: ListCommandsCommandInput,
  3460. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCommandsCommandOutput) => void),
  3461. cb?: (err: any, data?: ListCommandsCommandOutput) => void
  3462. ): Promise<ListCommandsCommandOutput> | void {
  3463. const command = new ListCommandsCommand(args);
  3464. if (typeof optionsOrCb === "function") {
  3465. this.send(command, optionsOrCb);
  3466. } else if (typeof cb === "function") {
  3467. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3468. this.send(command, optionsOrCb || {}, cb);
  3469. } else {
  3470. return this.send(command, optionsOrCb);
  3471. }
  3472. }
  3473. /**
  3474. * <p>For a specified resource ID, this API action returns a list of compliance statuses for
  3475. * different resource types. Currently, you can only specify one resource ID per call. List results
  3476. * depend on the criteria specified in the filter.</p>
  3477. */
  3478. public listComplianceItems(
  3479. args: ListComplianceItemsCommandInput,
  3480. options?: __HttpHandlerOptions
  3481. ): Promise<ListComplianceItemsCommandOutput>;
  3482. public listComplianceItems(
  3483. args: ListComplianceItemsCommandInput,
  3484. cb: (err: any, data?: ListComplianceItemsCommandOutput) => void
  3485. ): void;
  3486. public listComplianceItems(
  3487. args: ListComplianceItemsCommandInput,
  3488. options: __HttpHandlerOptions,
  3489. cb: (err: any, data?: ListComplianceItemsCommandOutput) => void
  3490. ): void;
  3491. public listComplianceItems(
  3492. args: ListComplianceItemsCommandInput,
  3493. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListComplianceItemsCommandOutput) => void),
  3494. cb?: (err: any, data?: ListComplianceItemsCommandOutput) => void
  3495. ): Promise<ListComplianceItemsCommandOutput> | void {
  3496. const command = new ListComplianceItemsCommand(args);
  3497. if (typeof optionsOrCb === "function") {
  3498. this.send(command, optionsOrCb);
  3499. } else if (typeof cb === "function") {
  3500. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3501. this.send(command, optionsOrCb || {}, cb);
  3502. } else {
  3503. return this.send(command, optionsOrCb);
  3504. }
  3505. }
  3506. /**
  3507. * <p>Returns a summary count of compliant and non-compliant resources for a compliance type. For
  3508. * example, this call can return State Manager associations, patches, or custom compliance types
  3509. * according to the filter criteria that you specify.</p>
  3510. */
  3511. public listComplianceSummaries(
  3512. args: ListComplianceSummariesCommandInput,
  3513. options?: __HttpHandlerOptions
  3514. ): Promise<ListComplianceSummariesCommandOutput>;
  3515. public listComplianceSummaries(
  3516. args: ListComplianceSummariesCommandInput,
  3517. cb: (err: any, data?: ListComplianceSummariesCommandOutput) => void
  3518. ): void;
  3519. public listComplianceSummaries(
  3520. args: ListComplianceSummariesCommandInput,
  3521. options: __HttpHandlerOptions,
  3522. cb: (err: any, data?: ListComplianceSummariesCommandOutput) => void
  3523. ): void;
  3524. public listComplianceSummaries(
  3525. args: ListComplianceSummariesCommandInput,
  3526. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListComplianceSummariesCommandOutput) => void),
  3527. cb?: (err: any, data?: ListComplianceSummariesCommandOutput) => void
  3528. ): Promise<ListComplianceSummariesCommandOutput> | void {
  3529. const command = new ListComplianceSummariesCommand(args);
  3530. if (typeof optionsOrCb === "function") {
  3531. this.send(command, optionsOrCb);
  3532. } else if (typeof cb === "function") {
  3533. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3534. this.send(command, optionsOrCb || {}, cb);
  3535. } else {
  3536. return this.send(command, optionsOrCb);
  3537. }
  3538. }
  3539. /**
  3540. * <p>Returns all Systems Manager (SSM) documents in the current AWS account and Region. You can limit the
  3541. * results of this request by using a filter.</p>
  3542. */
  3543. public listDocuments(
  3544. args: ListDocumentsCommandInput,
  3545. options?: __HttpHandlerOptions
  3546. ): Promise<ListDocumentsCommandOutput>;
  3547. public listDocuments(
  3548. args: ListDocumentsCommandInput,
  3549. cb: (err: any, data?: ListDocumentsCommandOutput) => void
  3550. ): void;
  3551. public listDocuments(
  3552. args: ListDocumentsCommandInput,
  3553. options: __HttpHandlerOptions,
  3554. cb: (err: any, data?: ListDocumentsCommandOutput) => void
  3555. ): void;
  3556. public listDocuments(
  3557. args: ListDocumentsCommandInput,
  3558. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDocumentsCommandOutput) => void),
  3559. cb?: (err: any, data?: ListDocumentsCommandOutput) => void
  3560. ): Promise<ListDocumentsCommandOutput> | void {
  3561. const command = new ListDocumentsCommand(args);
  3562. if (typeof optionsOrCb === "function") {
  3563. this.send(command, optionsOrCb);
  3564. } else if (typeof cb === "function") {
  3565. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3566. this.send(command, optionsOrCb || {}, cb);
  3567. } else {
  3568. return this.send(command, optionsOrCb);
  3569. }
  3570. }
  3571. /**
  3572. * <p>List all versions for a document.</p>
  3573. */
  3574. public listDocumentVersions(
  3575. args: ListDocumentVersionsCommandInput,
  3576. options?: __HttpHandlerOptions
  3577. ): Promise<ListDocumentVersionsCommandOutput>;
  3578. public listDocumentVersions(
  3579. args: ListDocumentVersionsCommandInput,
  3580. cb: (err: any, data?: ListDocumentVersionsCommandOutput) => void
  3581. ): void;
  3582. public listDocumentVersions(
  3583. args: ListDocumentVersionsCommandInput,
  3584. options: __HttpHandlerOptions,
  3585. cb: (err: any, data?: ListDocumentVersionsCommandOutput) => void
  3586. ): void;
  3587. public listDocumentVersions(
  3588. args: ListDocumentVersionsCommandInput,
  3589. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDocumentVersionsCommandOutput) => void),
  3590. cb?: (err: any, data?: ListDocumentVersionsCommandOutput) => void
  3591. ): Promise<ListDocumentVersionsCommandOutput> | void {
  3592. const command = new ListDocumentVersionsCommand(args);
  3593. if (typeof optionsOrCb === "function") {
  3594. this.send(command, optionsOrCb);
  3595. } else if (typeof cb === "function") {
  3596. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3597. this.send(command, optionsOrCb || {}, cb);
  3598. } else {
  3599. return this.send(command, optionsOrCb);
  3600. }
  3601. }
  3602. /**
  3603. * <p>A list of inventory items returned by the request.</p>
  3604. */
  3605. public listInventoryEntries(
  3606. args: ListInventoryEntriesCommandInput,
  3607. options?: __HttpHandlerOptions
  3608. ): Promise<ListInventoryEntriesCommandOutput>;
  3609. public listInventoryEntries(
  3610. args: ListInventoryEntriesCommandInput,
  3611. cb: (err: any, data?: ListInventoryEntriesCommandOutput) => void
  3612. ): void;
  3613. public listInventoryEntries(
  3614. args: ListInventoryEntriesCommandInput,
  3615. options: __HttpHandlerOptions,
  3616. cb: (err: any, data?: ListInventoryEntriesCommandOutput) => void
  3617. ): void;
  3618. public listInventoryEntries(
  3619. args: ListInventoryEntriesCommandInput,
  3620. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListInventoryEntriesCommandOutput) => void),
  3621. cb?: (err: any, data?: ListInventoryEntriesCommandOutput) => void
  3622. ): Promise<ListInventoryEntriesCommandOutput> | void {
  3623. const command = new ListInventoryEntriesCommand(args);
  3624. if (typeof optionsOrCb === "function") {
  3625. this.send(command, optionsOrCb);
  3626. } else if (typeof cb === "function") {
  3627. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3628. this.send(command, optionsOrCb || {}, cb);
  3629. } else {
  3630. return this.send(command, optionsOrCb);
  3631. }
  3632. }
  3633. /**
  3634. * <p>Returns a resource-level summary count. The summary includes information about compliant and
  3635. * non-compliant statuses and detailed compliance-item severity counts, according to the filter
  3636. * criteria you specify.</p>
  3637. */
  3638. public listResourceComplianceSummaries(
  3639. args: ListResourceComplianceSummariesCommandInput,
  3640. options?: __HttpHandlerOptions
  3641. ): Promise<ListResourceComplianceSummariesCommandOutput>;
  3642. public listResourceComplianceSummaries(
  3643. args: ListResourceComplianceSummariesCommandInput,
  3644. cb: (err: any, data?: ListResourceComplianceSummariesCommandOutput) => void
  3645. ): void;
  3646. public listResourceComplianceSummaries(
  3647. args: ListResourceComplianceSummariesCommandInput,
  3648. options: __HttpHandlerOptions,
  3649. cb: (err: any, data?: ListResourceComplianceSummariesCommandOutput) => void
  3650. ): void;
  3651. public listResourceComplianceSummaries(
  3652. args: ListResourceComplianceSummariesCommandInput,
  3653. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListResourceComplianceSummariesCommandOutput) => void),
  3654. cb?: (err: any, data?: ListResourceComplianceSummariesCommandOutput) => void
  3655. ): Promise<ListResourceComplianceSummariesCommandOutput> | void {
  3656. const command = new ListResourceComplianceSummariesCommand(args);
  3657. if (typeof optionsOrCb === "function") {
  3658. this.send(command, optionsOrCb);
  3659. } else if (typeof cb === "function") {
  3660. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3661. this.send(command, optionsOrCb || {}, cb);
  3662. } else {
  3663. return this.send(command, optionsOrCb);
  3664. }
  3665. }
  3666. /**
  3667. * <p>Lists your resource data sync configurations. Includes information about the last time a
  3668. * sync attempted to start, the last sync status, and the last time a sync successfully
  3669. * completed.</p>
  3670. * <p>The number of sync configurations might be too large to return using a single call to
  3671. * <code>ListResourceDataSync</code>. You can limit the number of sync configurations returned by
  3672. * using the <code>MaxResults</code> parameter. To determine whether there are more sync
  3673. * configurations to list, check the value of <code>NextToken</code> in the output. If there are
  3674. * more sync configurations to list, you can request them by specifying the <code>NextToken</code>
  3675. * returned in the call to the parameter of a subsequent call. </p>
  3676. */
  3677. public listResourceDataSync(
  3678. args: ListResourceDataSyncCommandInput,
  3679. options?: __HttpHandlerOptions
  3680. ): Promise<ListResourceDataSyncCommandOutput>;
  3681. public listResourceDataSync(
  3682. args: ListResourceDataSyncCommandInput,
  3683. cb: (err: any, data?: ListResourceDataSyncCommandOutput) => void
  3684. ): void;
  3685. public listResourceDataSync(
  3686. args: ListResourceDataSyncCommandInput,
  3687. options: __HttpHandlerOptions,
  3688. cb: (err: any, data?: ListResourceDataSyncCommandOutput) => void
  3689. ): void;
  3690. public listResourceDataSync(
  3691. args: ListResourceDataSyncCommandInput,
  3692. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListResourceDataSyncCommandOutput) => void),
  3693. cb?: (err: any, data?: ListResourceDataSyncCommandOutput) => void
  3694. ): Promise<ListResourceDataSyncCommandOutput> | void {
  3695. const command = new ListResourceDataSyncCommand(args);
  3696. if (typeof optionsOrCb === "function") {
  3697. this.send(command, optionsOrCb);
  3698. } else if (typeof cb === "function") {
  3699. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3700. this.send(command, optionsOrCb || {}, cb);
  3701. } else {
  3702. return this.send(command, optionsOrCb);
  3703. }
  3704. }
  3705. /**
  3706. * <p>Returns a list of the tags assigned to the specified resource.</p>
  3707. */
  3708. public listTagsForResource(
  3709. args: ListTagsForResourceCommandInput,
  3710. options?: __HttpHandlerOptions
  3711. ): Promise<ListTagsForResourceCommandOutput>;
  3712. public listTagsForResource(
  3713. args: ListTagsForResourceCommandInput,
  3714. cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
  3715. ): void;
  3716. public listTagsForResource(
  3717. args: ListTagsForResourceCommandInput,
  3718. options: __HttpHandlerOptions,
  3719. cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
  3720. ): void;
  3721. public listTagsForResource(
  3722. args: ListTagsForResourceCommandInput,
  3723. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
  3724. cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
  3725. ): Promise<ListTagsForResourceCommandOutput> | void {
  3726. const command = new ListTagsForResourceCommand(args);
  3727. if (typeof optionsOrCb === "function") {
  3728. this.send(command, optionsOrCb);
  3729. } else if (typeof cb === "function") {
  3730. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3731. this.send(command, optionsOrCb || {}, cb);
  3732. } else {
  3733. return this.send(command, optionsOrCb);
  3734. }
  3735. }
  3736. /**
  3737. * <p>Shares a Systems Manager document publicly or privately. If you share a document privately, you must
  3738. * specify the AWS user account IDs for those people who can use the document. If you share a
  3739. * document publicly, you must specify <i>All</i> as the account ID.</p>
  3740. */
  3741. public modifyDocumentPermission(
  3742. args: ModifyDocumentPermissionCommandInput,
  3743. options?: __HttpHandlerOptions
  3744. ): Promise<ModifyDocumentPermissionCommandOutput>;
  3745. public modifyDocumentPermission(
  3746. args: ModifyDocumentPermissionCommandInput,
  3747. cb: (err: any, data?: ModifyDocumentPermissionCommandOutput) => void
  3748. ): void;
  3749. public modifyDocumentPermission(
  3750. args: ModifyDocumentPermissionCommandInput,
  3751. options: __HttpHandlerOptions,
  3752. cb: (err: any, data?: ModifyDocumentPermissionCommandOutput) => void
  3753. ): void;
  3754. public modifyDocumentPermission(
  3755. args: ModifyDocumentPermissionCommandInput,
  3756. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ModifyDocumentPermissionCommandOutput) => void),
  3757. cb?: (err: any, data?: ModifyDocumentPermissionCommandOutput) => void
  3758. ): Promise<ModifyDocumentPermissionCommandOutput> | void {
  3759. const command = new ModifyDocumentPermissionCommand(args);
  3760. if (typeof optionsOrCb === "function") {
  3761. this.send(command, optionsOrCb);
  3762. } else if (typeof cb === "function") {
  3763. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3764. this.send(command, optionsOrCb || {}, cb);
  3765. } else {
  3766. return this.send(command, optionsOrCb);
  3767. }
  3768. }
  3769. /**
  3770. * <p>Registers a compliance type and other compliance details on a designated resource. This
  3771. * action lets you register custom compliance details with a resource. This call overwrites existing
  3772. * compliance information on the resource, so you must provide a full list of compliance items each
  3773. * time that you send the request.</p>
  3774. * <p>ComplianceType can be one of the following:</p>
  3775. * <ul>
  3776. * <li>
  3777. * <p>ExecutionId: The execution ID when the patch, association, or custom compliance item was
  3778. * applied.</p>
  3779. * </li>
  3780. * <li>
  3781. * <p>ExecutionType: Specify patch, association, or Custom:<code>string</code>.</p>
  3782. * </li>
  3783. * <li>
  3784. * <p>ExecutionTime. The time the patch, association, or custom compliance item was applied to
  3785. * the instance.</p>
  3786. * </li>
  3787. * <li>
  3788. * <p>Id: The patch, association, or custom compliance ID.</p>
  3789. * </li>
  3790. * <li>
  3791. * <p>Title: A title.</p>
  3792. * </li>
  3793. * <li>
  3794. * <p>Status: The status of the compliance item. For example, <code>approved</code> for patches,
  3795. * or <code>Failed</code> for associations.</p>
  3796. * </li>
  3797. * <li>
  3798. * <p>Severity: A patch severity. For example, <code>critical</code>.</p>
  3799. * </li>
  3800. * <li>
  3801. * <p>DocumentName: A SSM document name. For example, AWS-RunPatchBaseline.</p>
  3802. * </li>
  3803. * <li>
  3804. * <p>DocumentVersion: An SSM document version number. For example, 4.</p>
  3805. * </li>
  3806. * <li>
  3807. * <p>Classification: A patch classification. For example, <code>security updates</code>.</p>
  3808. * </li>
  3809. * <li>
  3810. * <p>PatchBaselineId: A patch baseline ID.</p>
  3811. * </li>
  3812. * <li>
  3813. * <p>PatchSeverity: A patch severity. For example, <code>Critical</code>.</p>
  3814. * </li>
  3815. * <li>
  3816. * <p>PatchState: A patch state. For example, <code>InstancesWithFailedPatches</code>.</p>
  3817. * </li>
  3818. * <li>
  3819. * <p>PatchGroup: The name of a patch group.</p>
  3820. * </li>
  3821. * <li>
  3822. * <p>InstalledTime: The time the association, patch, or custom compliance item was applied to
  3823. * the resource. Specify the time by using the following format: yyyy-MM-dd'T'HH:mm:ss'Z'</p>
  3824. * </li>
  3825. * </ul>
  3826. */
  3827. public putComplianceItems(
  3828. args: PutComplianceItemsCommandInput,
  3829. options?: __HttpHandlerOptions
  3830. ): Promise<PutComplianceItemsCommandOutput>;
  3831. public putComplianceItems(
  3832. args: PutComplianceItemsCommandInput,
  3833. cb: (err: any, data?: PutComplianceItemsCommandOutput) => void
  3834. ): void;
  3835. public putComplianceItems(
  3836. args: PutComplianceItemsCommandInput,
  3837. options: __HttpHandlerOptions,
  3838. cb: (err: any, data?: PutComplianceItemsCommandOutput) => void
  3839. ): void;
  3840. public putComplianceItems(
  3841. args: PutComplianceItemsCommandInput,
  3842. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutComplianceItemsCommandOutput) => void),
  3843. cb?: (err: any, data?: PutComplianceItemsCommandOutput) => void
  3844. ): Promise<PutComplianceItemsCommandOutput> | void {
  3845. const command = new PutComplianceItemsCommand(args);
  3846. if (typeof optionsOrCb === "function") {
  3847. this.send(command, optionsOrCb);
  3848. } else if (typeof cb === "function") {
  3849. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3850. this.send(command, optionsOrCb || {}, cb);
  3851. } else {
  3852. return this.send(command, optionsOrCb);
  3853. }
  3854. }
  3855. /**
  3856. * <p>Bulk update custom inventory items on one more instance. The request adds an inventory item,
  3857. * if it doesn't already exist, or updates an inventory item, if it does exist.</p>
  3858. */
  3859. public putInventory(
  3860. args: PutInventoryCommandInput,
  3861. options?: __HttpHandlerOptions
  3862. ): Promise<PutInventoryCommandOutput>;
  3863. public putInventory(args: PutInventoryCommandInput, cb: (err: any, data?: PutInventoryCommandOutput) => void): void;
  3864. public putInventory(
  3865. args: PutInventoryCommandInput,
  3866. options: __HttpHandlerOptions,
  3867. cb: (err: any, data?: PutInventoryCommandOutput) => void
  3868. ): void;
  3869. public putInventory(
  3870. args: PutInventoryCommandInput,
  3871. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutInventoryCommandOutput) => void),
  3872. cb?: (err: any, data?: PutInventoryCommandOutput) => void
  3873. ): Promise<PutInventoryCommandOutput> | void {
  3874. const command = new PutInventoryCommand(args);
  3875. if (typeof optionsOrCb === "function") {
  3876. this.send(command, optionsOrCb);
  3877. } else if (typeof cb === "function") {
  3878. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3879. this.send(command, optionsOrCb || {}, cb);
  3880. } else {
  3881. return this.send(command, optionsOrCb);
  3882. }
  3883. }
  3884. /**
  3885. * <p>Add a parameter to the system.</p>
  3886. */
  3887. public putParameter(
  3888. args: PutParameterCommandInput,
  3889. options?: __HttpHandlerOptions
  3890. ): Promise<PutParameterCommandOutput>;
  3891. public putParameter(args: PutParameterCommandInput, cb: (err: any, data?: PutParameterCommandOutput) => void): void;
  3892. public putParameter(
  3893. args: PutParameterCommandInput,
  3894. options: __HttpHandlerOptions,
  3895. cb: (err: any, data?: PutParameterCommandOutput) => void
  3896. ): void;
  3897. public putParameter(
  3898. args: PutParameterCommandInput,
  3899. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutParameterCommandOutput) => void),
  3900. cb?: (err: any, data?: PutParameterCommandOutput) => void
  3901. ): Promise<PutParameterCommandOutput> | void {
  3902. const command = new PutParameterCommand(args);
  3903. if (typeof optionsOrCb === "function") {
  3904. this.send(command, optionsOrCb);
  3905. } else if (typeof cb === "function") {
  3906. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3907. this.send(command, optionsOrCb || {}, cb);
  3908. } else {
  3909. return this.send(command, optionsOrCb);
  3910. }
  3911. }
  3912. /**
  3913. * <p>Defines the default patch baseline for the relevant operating system.</p>
  3914. * <p>To reset the AWS predefined patch baseline as the default, specify the full patch baseline
  3915. * ARN as the baseline ID value. For example, for CentOS, specify
  3916. * <code>arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0574b43a65ea646ed</code> instead of
  3917. * <code>pb-0574b43a65ea646ed</code>.</p>
  3918. */
  3919. public registerDefaultPatchBaseline(
  3920. args: RegisterDefaultPatchBaselineCommandInput,
  3921. options?: __HttpHandlerOptions
  3922. ): Promise<RegisterDefaultPatchBaselineCommandOutput>;
  3923. public registerDefaultPatchBaseline(
  3924. args: RegisterDefaultPatchBaselineCommandInput,
  3925. cb: (err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void
  3926. ): void;
  3927. public registerDefaultPatchBaseline(
  3928. args: RegisterDefaultPatchBaselineCommandInput,
  3929. options: __HttpHandlerOptions,
  3930. cb: (err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void
  3931. ): void;
  3932. public registerDefaultPatchBaseline(
  3933. args: RegisterDefaultPatchBaselineCommandInput,
  3934. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void),
  3935. cb?: (err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void
  3936. ): Promise<RegisterDefaultPatchBaselineCommandOutput> | void {
  3937. const command = new RegisterDefaultPatchBaselineCommand(args);
  3938. if (typeof optionsOrCb === "function") {
  3939. this.send(command, optionsOrCb);
  3940. } else if (typeof cb === "function") {
  3941. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3942. this.send(command, optionsOrCb || {}, cb);
  3943. } else {
  3944. return this.send(command, optionsOrCb);
  3945. }
  3946. }
  3947. /**
  3948. * <p>Registers a patch baseline for a patch group.</p>
  3949. */
  3950. public registerPatchBaselineForPatchGroup(
  3951. args: RegisterPatchBaselineForPatchGroupCommandInput,
  3952. options?: __HttpHandlerOptions
  3953. ): Promise<RegisterPatchBaselineForPatchGroupCommandOutput>;
  3954. public registerPatchBaselineForPatchGroup(
  3955. args: RegisterPatchBaselineForPatchGroupCommandInput,
  3956. cb: (err: any, data?: RegisterPatchBaselineForPatchGroupCommandOutput) => void
  3957. ): void;
  3958. public registerPatchBaselineForPatchGroup(
  3959. args: RegisterPatchBaselineForPatchGroupCommandInput,
  3960. options: __HttpHandlerOptions,
  3961. cb: (err: any, data?: RegisterPatchBaselineForPatchGroupCommandOutput) => void
  3962. ): void;
  3963. public registerPatchBaselineForPatchGroup(
  3964. args: RegisterPatchBaselineForPatchGroupCommandInput,
  3965. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterPatchBaselineForPatchGroupCommandOutput) => void),
  3966. cb?: (err: any, data?: RegisterPatchBaselineForPatchGroupCommandOutput) => void
  3967. ): Promise<RegisterPatchBaselineForPatchGroupCommandOutput> | void {
  3968. const command = new RegisterPatchBaselineForPatchGroupCommand(args);
  3969. if (typeof optionsOrCb === "function") {
  3970. this.send(command, optionsOrCb);
  3971. } else if (typeof cb === "function") {
  3972. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  3973. this.send(command, optionsOrCb || {}, cb);
  3974. } else {
  3975. return this.send(command, optionsOrCb);
  3976. }
  3977. }
  3978. /**
  3979. * <p>Registers a target with a maintenance window.</p>
  3980. */
  3981. public registerTargetWithMaintenanceWindow(
  3982. args: RegisterTargetWithMaintenanceWindowCommandInput,
  3983. options?: __HttpHandlerOptions
  3984. ): Promise<RegisterTargetWithMaintenanceWindowCommandOutput>;
  3985. public registerTargetWithMaintenanceWindow(
  3986. args: RegisterTargetWithMaintenanceWindowCommandInput,
  3987. cb: (err: any, data?: RegisterTargetWithMaintenanceWindowCommandOutput) => void
  3988. ): void;
  3989. public registerTargetWithMaintenanceWindow(
  3990. args: RegisterTargetWithMaintenanceWindowCommandInput,
  3991. options: __HttpHandlerOptions,
  3992. cb: (err: any, data?: RegisterTargetWithMaintenanceWindowCommandOutput) => void
  3993. ): void;
  3994. public registerTargetWithMaintenanceWindow(
  3995. args: RegisterTargetWithMaintenanceWindowCommandInput,
  3996. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterTargetWithMaintenanceWindowCommandOutput) => void),
  3997. cb?: (err: any, data?: RegisterTargetWithMaintenanceWindowCommandOutput) => void
  3998. ): Promise<RegisterTargetWithMaintenanceWindowCommandOutput> | void {
  3999. const command = new RegisterTargetWithMaintenanceWindowCommand(args);
  4000. if (typeof optionsOrCb === "function") {
  4001. this.send(command, optionsOrCb);
  4002. } else if (typeof cb === "function") {
  4003. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4004. this.send(command, optionsOrCb || {}, cb);
  4005. } else {
  4006. return this.send(command, optionsOrCb);
  4007. }
  4008. }
  4009. /**
  4010. * <p>Adds a new task to a maintenance window.</p>
  4011. */
  4012. public registerTaskWithMaintenanceWindow(
  4013. args: RegisterTaskWithMaintenanceWindowCommandInput,
  4014. options?: __HttpHandlerOptions
  4015. ): Promise<RegisterTaskWithMaintenanceWindowCommandOutput>;
  4016. public registerTaskWithMaintenanceWindow(
  4017. args: RegisterTaskWithMaintenanceWindowCommandInput,
  4018. cb: (err: any, data?: RegisterTaskWithMaintenanceWindowCommandOutput) => void
  4019. ): void;
  4020. public registerTaskWithMaintenanceWindow(
  4021. args: RegisterTaskWithMaintenanceWindowCommandInput,
  4022. options: __HttpHandlerOptions,
  4023. cb: (err: any, data?: RegisterTaskWithMaintenanceWindowCommandOutput) => void
  4024. ): void;
  4025. public registerTaskWithMaintenanceWindow(
  4026. args: RegisterTaskWithMaintenanceWindowCommandInput,
  4027. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterTaskWithMaintenanceWindowCommandOutput) => void),
  4028. cb?: (err: any, data?: RegisterTaskWithMaintenanceWindowCommandOutput) => void
  4029. ): Promise<RegisterTaskWithMaintenanceWindowCommandOutput> | void {
  4030. const command = new RegisterTaskWithMaintenanceWindowCommand(args);
  4031. if (typeof optionsOrCb === "function") {
  4032. this.send(command, optionsOrCb);
  4033. } else if (typeof cb === "function") {
  4034. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4035. this.send(command, optionsOrCb || {}, cb);
  4036. } else {
  4037. return this.send(command, optionsOrCb);
  4038. }
  4039. }
  4040. /**
  4041. * <p>Removes tag keys from the specified resource.</p>
  4042. */
  4043. public removeTagsFromResource(
  4044. args: RemoveTagsFromResourceCommandInput,
  4045. options?: __HttpHandlerOptions
  4046. ): Promise<RemoveTagsFromResourceCommandOutput>;
  4047. public removeTagsFromResource(
  4048. args: RemoveTagsFromResourceCommandInput,
  4049. cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void
  4050. ): void;
  4051. public removeTagsFromResource(
  4052. args: RemoveTagsFromResourceCommandInput,
  4053. options: __HttpHandlerOptions,
  4054. cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void
  4055. ): void;
  4056. public removeTagsFromResource(
  4057. args: RemoveTagsFromResourceCommandInput,
  4058. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveTagsFromResourceCommandOutput) => void),
  4059. cb?: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void
  4060. ): Promise<RemoveTagsFromResourceCommandOutput> | void {
  4061. const command = new RemoveTagsFromResourceCommand(args);
  4062. if (typeof optionsOrCb === "function") {
  4063. this.send(command, optionsOrCb);
  4064. } else if (typeof cb === "function") {
  4065. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4066. this.send(command, optionsOrCb || {}, cb);
  4067. } else {
  4068. return this.send(command, optionsOrCb);
  4069. }
  4070. }
  4071. /**
  4072. * <p>
  4073. * <code>ServiceSetting</code> is an account-level setting for an AWS service. This setting
  4074. * defines how a user interacts with or uses a service or a feature of a service. For example, if an
  4075. * AWS service charges money to the account based on feature or service usage, then the AWS service
  4076. * team might create a default setting of "false". This means the user can't use this feature unless
  4077. * they change the setting to "true" and intentionally opt in for a paid feature.</p>
  4078. * <p>Services map a <code>SettingId</code> object to a setting value. AWS services teams define
  4079. * the default value for a <code>SettingId</code>. You can't create a new <code>SettingId</code>,
  4080. * but you can overwrite the default value if you have the <code>ssm:UpdateServiceSetting</code>
  4081. * permission for the setting. Use the <a>GetServiceSetting</a> API action to view the
  4082. * current value. Use the <a>UpdateServiceSetting</a> API action to change the default
  4083. * setting. </p>
  4084. *
  4085. * <p>Reset the service setting for the account to the default value as provisioned by the AWS
  4086. * service team. </p>
  4087. */
  4088. public resetServiceSetting(
  4089. args: ResetServiceSettingCommandInput,
  4090. options?: __HttpHandlerOptions
  4091. ): Promise<ResetServiceSettingCommandOutput>;
  4092. public resetServiceSetting(
  4093. args: ResetServiceSettingCommandInput,
  4094. cb: (err: any, data?: ResetServiceSettingCommandOutput) => void
  4095. ): void;
  4096. public resetServiceSetting(
  4097. args: ResetServiceSettingCommandInput,
  4098. options: __HttpHandlerOptions,
  4099. cb: (err: any, data?: ResetServiceSettingCommandOutput) => void
  4100. ): void;
  4101. public resetServiceSetting(
  4102. args: ResetServiceSettingCommandInput,
  4103. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ResetServiceSettingCommandOutput) => void),
  4104. cb?: (err: any, data?: ResetServiceSettingCommandOutput) => void
  4105. ): Promise<ResetServiceSettingCommandOutput> | void {
  4106. const command = new ResetServiceSettingCommand(args);
  4107. if (typeof optionsOrCb === "function") {
  4108. this.send(command, optionsOrCb);
  4109. } else if (typeof cb === "function") {
  4110. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4111. this.send(command, optionsOrCb || {}, cb);
  4112. } else {
  4113. return this.send(command, optionsOrCb);
  4114. }
  4115. }
  4116. /**
  4117. * <p>Reconnects a session to an instance after it has been disconnected. Connections can be
  4118. * resumed for disconnected sessions, but not terminated sessions.</p>
  4119. * <note>
  4120. * <p>This command is primarily for use by client machines to automatically reconnect during
  4121. * intermittent network issues. It is not intended for any other use.</p>
  4122. * </note>
  4123. */
  4124. public resumeSession(
  4125. args: ResumeSessionCommandInput,
  4126. options?: __HttpHandlerOptions
  4127. ): Promise<ResumeSessionCommandOutput>;
  4128. public resumeSession(
  4129. args: ResumeSessionCommandInput,
  4130. cb: (err: any, data?: ResumeSessionCommandOutput) => void
  4131. ): void;
  4132. public resumeSession(
  4133. args: ResumeSessionCommandInput,
  4134. options: __HttpHandlerOptions,
  4135. cb: (err: any, data?: ResumeSessionCommandOutput) => void
  4136. ): void;
  4137. public resumeSession(
  4138. args: ResumeSessionCommandInput,
  4139. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ResumeSessionCommandOutput) => void),
  4140. cb?: (err: any, data?: ResumeSessionCommandOutput) => void
  4141. ): Promise<ResumeSessionCommandOutput> | void {
  4142. const command = new ResumeSessionCommand(args);
  4143. if (typeof optionsOrCb === "function") {
  4144. this.send(command, optionsOrCb);
  4145. } else if (typeof cb === "function") {
  4146. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4147. this.send(command, optionsOrCb || {}, cb);
  4148. } else {
  4149. return this.send(command, optionsOrCb);
  4150. }
  4151. }
  4152. /**
  4153. * <p>Sends a signal to an Automation execution to change the current behavior or status of the
  4154. * execution. </p>
  4155. */
  4156. public sendAutomationSignal(
  4157. args: SendAutomationSignalCommandInput,
  4158. options?: __HttpHandlerOptions
  4159. ): Promise<SendAutomationSignalCommandOutput>;
  4160. public sendAutomationSignal(
  4161. args: SendAutomationSignalCommandInput,
  4162. cb: (err: any, data?: SendAutomationSignalCommandOutput) => void
  4163. ): void;
  4164. public sendAutomationSignal(
  4165. args: SendAutomationSignalCommandInput,
  4166. options: __HttpHandlerOptions,
  4167. cb: (err: any, data?: SendAutomationSignalCommandOutput) => void
  4168. ): void;
  4169. public sendAutomationSignal(
  4170. args: SendAutomationSignalCommandInput,
  4171. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SendAutomationSignalCommandOutput) => void),
  4172. cb?: (err: any, data?: SendAutomationSignalCommandOutput) => void
  4173. ): Promise<SendAutomationSignalCommandOutput> | void {
  4174. const command = new SendAutomationSignalCommand(args);
  4175. if (typeof optionsOrCb === "function") {
  4176. this.send(command, optionsOrCb);
  4177. } else if (typeof cb === "function") {
  4178. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4179. this.send(command, optionsOrCb || {}, cb);
  4180. } else {
  4181. return this.send(command, optionsOrCb);
  4182. }
  4183. }
  4184. /**
  4185. * <p>Runs commands on one or more managed instances.</p>
  4186. */
  4187. public sendCommand(args: SendCommandCommandInput, options?: __HttpHandlerOptions): Promise<SendCommandCommandOutput>;
  4188. public sendCommand(args: SendCommandCommandInput, cb: (err: any, data?: SendCommandCommandOutput) => void): void;
  4189. public sendCommand(
  4190. args: SendCommandCommandInput,
  4191. options: __HttpHandlerOptions,
  4192. cb: (err: any, data?: SendCommandCommandOutput) => void
  4193. ): void;
  4194. public sendCommand(
  4195. args: SendCommandCommandInput,
  4196. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SendCommandCommandOutput) => void),
  4197. cb?: (err: any, data?: SendCommandCommandOutput) => void
  4198. ): Promise<SendCommandCommandOutput> | void {
  4199. const command = new SendCommandCommand(args);
  4200. if (typeof optionsOrCb === "function") {
  4201. this.send(command, optionsOrCb);
  4202. } else if (typeof cb === "function") {
  4203. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4204. this.send(command, optionsOrCb || {}, cb);
  4205. } else {
  4206. return this.send(command, optionsOrCb);
  4207. }
  4208. }
  4209. /**
  4210. * <p>Use this API action to run an association immediately and only one time. This action can be
  4211. * helpful when troubleshooting associations.</p>
  4212. */
  4213. public startAssociationsOnce(
  4214. args: StartAssociationsOnceCommandInput,
  4215. options?: __HttpHandlerOptions
  4216. ): Promise<StartAssociationsOnceCommandOutput>;
  4217. public startAssociationsOnce(
  4218. args: StartAssociationsOnceCommandInput,
  4219. cb: (err: any, data?: StartAssociationsOnceCommandOutput) => void
  4220. ): void;
  4221. public startAssociationsOnce(
  4222. args: StartAssociationsOnceCommandInput,
  4223. options: __HttpHandlerOptions,
  4224. cb: (err: any, data?: StartAssociationsOnceCommandOutput) => void
  4225. ): void;
  4226. public startAssociationsOnce(
  4227. args: StartAssociationsOnceCommandInput,
  4228. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartAssociationsOnceCommandOutput) => void),
  4229. cb?: (err: any, data?: StartAssociationsOnceCommandOutput) => void
  4230. ): Promise<StartAssociationsOnceCommandOutput> | void {
  4231. const command = new StartAssociationsOnceCommand(args);
  4232. if (typeof optionsOrCb === "function") {
  4233. this.send(command, optionsOrCb);
  4234. } else if (typeof cb === "function") {
  4235. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4236. this.send(command, optionsOrCb || {}, cb);
  4237. } else {
  4238. return this.send(command, optionsOrCb);
  4239. }
  4240. }
  4241. /**
  4242. * <p>Initiates execution of an Automation document.</p>
  4243. */
  4244. public startAutomationExecution(
  4245. args: StartAutomationExecutionCommandInput,
  4246. options?: __HttpHandlerOptions
  4247. ): Promise<StartAutomationExecutionCommandOutput>;
  4248. public startAutomationExecution(
  4249. args: StartAutomationExecutionCommandInput,
  4250. cb: (err: any, data?: StartAutomationExecutionCommandOutput) => void
  4251. ): void;
  4252. public startAutomationExecution(
  4253. args: StartAutomationExecutionCommandInput,
  4254. options: __HttpHandlerOptions,
  4255. cb: (err: any, data?: StartAutomationExecutionCommandOutput) => void
  4256. ): void;
  4257. public startAutomationExecution(
  4258. args: StartAutomationExecutionCommandInput,
  4259. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartAutomationExecutionCommandOutput) => void),
  4260. cb?: (err: any, data?: StartAutomationExecutionCommandOutput) => void
  4261. ): Promise<StartAutomationExecutionCommandOutput> | void {
  4262. const command = new StartAutomationExecutionCommand(args);
  4263. if (typeof optionsOrCb === "function") {
  4264. this.send(command, optionsOrCb);
  4265. } else if (typeof cb === "function") {
  4266. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4267. this.send(command, optionsOrCb || {}, cb);
  4268. } else {
  4269. return this.send(command, optionsOrCb);
  4270. }
  4271. }
  4272. /**
  4273. * <p>Initiates a connection to a target (for example, an instance) for a Session Manager session. Returns a
  4274. * URL and token that can be used to open a WebSocket connection for sending input and receiving
  4275. * outputs.</p>
  4276. * <note>
  4277. * <p>AWS CLI usage: <code>start-session</code> is an interactive command that requires the Session Manager
  4278. * plugin to be installed on the client machine making the call. For information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html">Install
  4279. * the Session Manager plugin for the AWS CLI</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  4280. * <p>AWS Tools for PowerShell usage: Start-SSMSession is not currently supported by AWS Tools
  4281. * for PowerShell on Windows local machines.</p>
  4282. * </note>
  4283. */
  4284. public startSession(
  4285. args: StartSessionCommandInput,
  4286. options?: __HttpHandlerOptions
  4287. ): Promise<StartSessionCommandOutput>;
  4288. public startSession(args: StartSessionCommandInput, cb: (err: any, data?: StartSessionCommandOutput) => void): void;
  4289. public startSession(
  4290. args: StartSessionCommandInput,
  4291. options: __HttpHandlerOptions,
  4292. cb: (err: any, data?: StartSessionCommandOutput) => void
  4293. ): void;
  4294. public startSession(
  4295. args: StartSessionCommandInput,
  4296. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartSessionCommandOutput) => void),
  4297. cb?: (err: any, data?: StartSessionCommandOutput) => void
  4298. ): Promise<StartSessionCommandOutput> | void {
  4299. const command = new StartSessionCommand(args);
  4300. if (typeof optionsOrCb === "function") {
  4301. this.send(command, optionsOrCb);
  4302. } else if (typeof cb === "function") {
  4303. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4304. this.send(command, optionsOrCb || {}, cb);
  4305. } else {
  4306. return this.send(command, optionsOrCb);
  4307. }
  4308. }
  4309. /**
  4310. * <p>Stop an Automation that is currently running.</p>
  4311. */
  4312. public stopAutomationExecution(
  4313. args: StopAutomationExecutionCommandInput,
  4314. options?: __HttpHandlerOptions
  4315. ): Promise<StopAutomationExecutionCommandOutput>;
  4316. public stopAutomationExecution(
  4317. args: StopAutomationExecutionCommandInput,
  4318. cb: (err: any, data?: StopAutomationExecutionCommandOutput) => void
  4319. ): void;
  4320. public stopAutomationExecution(
  4321. args: StopAutomationExecutionCommandInput,
  4322. options: __HttpHandlerOptions,
  4323. cb: (err: any, data?: StopAutomationExecutionCommandOutput) => void
  4324. ): void;
  4325. public stopAutomationExecution(
  4326. args: StopAutomationExecutionCommandInput,
  4327. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopAutomationExecutionCommandOutput) => void),
  4328. cb?: (err: any, data?: StopAutomationExecutionCommandOutput) => void
  4329. ): Promise<StopAutomationExecutionCommandOutput> | void {
  4330. const command = new StopAutomationExecutionCommand(args);
  4331. if (typeof optionsOrCb === "function") {
  4332. this.send(command, optionsOrCb);
  4333. } else if (typeof cb === "function") {
  4334. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4335. this.send(command, optionsOrCb || {}, cb);
  4336. } else {
  4337. return this.send(command, optionsOrCb);
  4338. }
  4339. }
  4340. /**
  4341. * <p>Permanently ends a session and closes the data connection between the Session Manager client and
  4342. * SSM Agent on the instance. A terminated session cannot be resumed.</p>
  4343. */
  4344. public terminateSession(
  4345. args: TerminateSessionCommandInput,
  4346. options?: __HttpHandlerOptions
  4347. ): Promise<TerminateSessionCommandOutput>;
  4348. public terminateSession(
  4349. args: TerminateSessionCommandInput,
  4350. cb: (err: any, data?: TerminateSessionCommandOutput) => void
  4351. ): void;
  4352. public terminateSession(
  4353. args: TerminateSessionCommandInput,
  4354. options: __HttpHandlerOptions,
  4355. cb: (err: any, data?: TerminateSessionCommandOutput) => void
  4356. ): void;
  4357. public terminateSession(
  4358. args: TerminateSessionCommandInput,
  4359. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TerminateSessionCommandOutput) => void),
  4360. cb?: (err: any, data?: TerminateSessionCommandOutput) => void
  4361. ): Promise<TerminateSessionCommandOutput> | void {
  4362. const command = new TerminateSessionCommand(args);
  4363. if (typeof optionsOrCb === "function") {
  4364. this.send(command, optionsOrCb);
  4365. } else if (typeof cb === "function") {
  4366. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4367. this.send(command, optionsOrCb || {}, cb);
  4368. } else {
  4369. return this.send(command, optionsOrCb);
  4370. }
  4371. }
  4372. /**
  4373. * <p>Updates an association. You can update the association name and version, the document
  4374. * version, schedule, parameters, and Amazon S3 output. </p>
  4375. * <p>In order to call this API action, your IAM user account, group, or role must be configured
  4376. * with permission to call the <a>DescribeAssociation</a> API action. If you don't have
  4377. * permission to call DescribeAssociation, then you receive the following error: <code>An error
  4378. * occurred (AccessDeniedException) when calling the UpdateAssociation operation: User:
  4379. * <user_arn> is not authorized to perform: ssm:DescribeAssociation on resource:
  4380. * <resource_arn></code>
  4381. * </p>
  4382. * <important>
  4383. * <p>When you update an association, the association immediately runs against the specified
  4384. * targets.</p>
  4385. * </important>
  4386. */
  4387. public updateAssociation(
  4388. args: UpdateAssociationCommandInput,
  4389. options?: __HttpHandlerOptions
  4390. ): Promise<UpdateAssociationCommandOutput>;
  4391. public updateAssociation(
  4392. args: UpdateAssociationCommandInput,
  4393. cb: (err: any, data?: UpdateAssociationCommandOutput) => void
  4394. ): void;
  4395. public updateAssociation(
  4396. args: UpdateAssociationCommandInput,
  4397. options: __HttpHandlerOptions,
  4398. cb: (err: any, data?: UpdateAssociationCommandOutput) => void
  4399. ): void;
  4400. public updateAssociation(
  4401. args: UpdateAssociationCommandInput,
  4402. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAssociationCommandOutput) => void),
  4403. cb?: (err: any, data?: UpdateAssociationCommandOutput) => void
  4404. ): Promise<UpdateAssociationCommandOutput> | void {
  4405. const command = new UpdateAssociationCommand(args);
  4406. if (typeof optionsOrCb === "function") {
  4407. this.send(command, optionsOrCb);
  4408. } else if (typeof cb === "function") {
  4409. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4410. this.send(command, optionsOrCb || {}, cb);
  4411. } else {
  4412. return this.send(command, optionsOrCb);
  4413. }
  4414. }
  4415. /**
  4416. * <p>Updates the status of the Systems Manager document associated with the specified instance.</p>
  4417. */
  4418. public updateAssociationStatus(
  4419. args: UpdateAssociationStatusCommandInput,
  4420. options?: __HttpHandlerOptions
  4421. ): Promise<UpdateAssociationStatusCommandOutput>;
  4422. public updateAssociationStatus(
  4423. args: UpdateAssociationStatusCommandInput,
  4424. cb: (err: any, data?: UpdateAssociationStatusCommandOutput) => void
  4425. ): void;
  4426. public updateAssociationStatus(
  4427. args: UpdateAssociationStatusCommandInput,
  4428. options: __HttpHandlerOptions,
  4429. cb: (err: any, data?: UpdateAssociationStatusCommandOutput) => void
  4430. ): void;
  4431. public updateAssociationStatus(
  4432. args: UpdateAssociationStatusCommandInput,
  4433. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAssociationStatusCommandOutput) => void),
  4434. cb?: (err: any, data?: UpdateAssociationStatusCommandOutput) => void
  4435. ): Promise<UpdateAssociationStatusCommandOutput> | void {
  4436. const command = new UpdateAssociationStatusCommand(args);
  4437. if (typeof optionsOrCb === "function") {
  4438. this.send(command, optionsOrCb);
  4439. } else if (typeof cb === "function") {
  4440. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4441. this.send(command, optionsOrCb || {}, cb);
  4442. } else {
  4443. return this.send(command, optionsOrCb);
  4444. }
  4445. }
  4446. /**
  4447. * <p>Updates one or more values for an SSM document.</p>
  4448. */
  4449. public updateDocument(
  4450. args: UpdateDocumentCommandInput,
  4451. options?: __HttpHandlerOptions
  4452. ): Promise<UpdateDocumentCommandOutput>;
  4453. public updateDocument(
  4454. args: UpdateDocumentCommandInput,
  4455. cb: (err: any, data?: UpdateDocumentCommandOutput) => void
  4456. ): void;
  4457. public updateDocument(
  4458. args: UpdateDocumentCommandInput,
  4459. options: __HttpHandlerOptions,
  4460. cb: (err: any, data?: UpdateDocumentCommandOutput) => void
  4461. ): void;
  4462. public updateDocument(
  4463. args: UpdateDocumentCommandInput,
  4464. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDocumentCommandOutput) => void),
  4465. cb?: (err: any, data?: UpdateDocumentCommandOutput) => void
  4466. ): Promise<UpdateDocumentCommandOutput> | void {
  4467. const command = new UpdateDocumentCommand(args);
  4468. if (typeof optionsOrCb === "function") {
  4469. this.send(command, optionsOrCb);
  4470. } else if (typeof cb === "function") {
  4471. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4472. this.send(command, optionsOrCb || {}, cb);
  4473. } else {
  4474. return this.send(command, optionsOrCb);
  4475. }
  4476. }
  4477. /**
  4478. * <p>Set the default version of a document. </p>
  4479. */
  4480. public updateDocumentDefaultVersion(
  4481. args: UpdateDocumentDefaultVersionCommandInput,
  4482. options?: __HttpHandlerOptions
  4483. ): Promise<UpdateDocumentDefaultVersionCommandOutput>;
  4484. public updateDocumentDefaultVersion(
  4485. args: UpdateDocumentDefaultVersionCommandInput,
  4486. cb: (err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void
  4487. ): void;
  4488. public updateDocumentDefaultVersion(
  4489. args: UpdateDocumentDefaultVersionCommandInput,
  4490. options: __HttpHandlerOptions,
  4491. cb: (err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void
  4492. ): void;
  4493. public updateDocumentDefaultVersion(
  4494. args: UpdateDocumentDefaultVersionCommandInput,
  4495. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void),
  4496. cb?: (err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void
  4497. ): Promise<UpdateDocumentDefaultVersionCommandOutput> | void {
  4498. const command = new UpdateDocumentDefaultVersionCommand(args);
  4499. if (typeof optionsOrCb === "function") {
  4500. this.send(command, optionsOrCb);
  4501. } else if (typeof cb === "function") {
  4502. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4503. this.send(command, optionsOrCb || {}, cb);
  4504. } else {
  4505. return this.send(command, optionsOrCb);
  4506. }
  4507. }
  4508. /**
  4509. * <p>Updates an existing maintenance window. Only specified parameters are modified.</p>
  4510. * <note>
  4511. * <p>The value you specify for <code>Duration</code> determines the specific end time for the
  4512. * maintenance window based on the time it begins. No maintenance window tasks are permitted to
  4513. * start after the resulting endtime minus the number of hours you specify for <code>Cutoff</code>.
  4514. * For example, if the maintenance window starts at 3 PM, the duration is three hours, and the
  4515. * value you specify for <code>Cutoff</code> is one hour, no maintenance window tasks can start
  4516. * after 5 PM.</p>
  4517. * </note>
  4518. */
  4519. public updateMaintenanceWindow(
  4520. args: UpdateMaintenanceWindowCommandInput,
  4521. options?: __HttpHandlerOptions
  4522. ): Promise<UpdateMaintenanceWindowCommandOutput>;
  4523. public updateMaintenanceWindow(
  4524. args: UpdateMaintenanceWindowCommandInput,
  4525. cb: (err: any, data?: UpdateMaintenanceWindowCommandOutput) => void
  4526. ): void;
  4527. public updateMaintenanceWindow(
  4528. args: UpdateMaintenanceWindowCommandInput,
  4529. options: __HttpHandlerOptions,
  4530. cb: (err: any, data?: UpdateMaintenanceWindowCommandOutput) => void
  4531. ): void;
  4532. public updateMaintenanceWindow(
  4533. args: UpdateMaintenanceWindowCommandInput,
  4534. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateMaintenanceWindowCommandOutput) => void),
  4535. cb?: (err: any, data?: UpdateMaintenanceWindowCommandOutput) => void
  4536. ): Promise<UpdateMaintenanceWindowCommandOutput> | void {
  4537. const command = new UpdateMaintenanceWindowCommand(args);
  4538. if (typeof optionsOrCb === "function") {
  4539. this.send(command, optionsOrCb);
  4540. } else if (typeof cb === "function") {
  4541. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4542. this.send(command, optionsOrCb || {}, cb);
  4543. } else {
  4544. return this.send(command, optionsOrCb);
  4545. }
  4546. }
  4547. /**
  4548. * <p>Modifies the target of an existing maintenance window. You
  4549. * can change the following:</p>
  4550. *
  4551. * <ul>
  4552. * <li>
  4553. * <p>Name</p>
  4554. * </li>
  4555. * <li>
  4556. * <p>Description</p>
  4557. * </li>
  4558. * <li>
  4559. * <p>Owner</p>
  4560. * </li>
  4561. * <li>
  4562. * <p>IDs for an ID target</p>
  4563. * </li>
  4564. * <li>
  4565. * <p>Tags for a Tag target</p>
  4566. * </li>
  4567. * <li>
  4568. * <p>From any supported tag type to another. The three supported tag types are ID target, Tag
  4569. * target, and resource group. For more information, see <a>Target</a>.</p>
  4570. * </li>
  4571. * </ul>
  4572. * <note>
  4573. * <p>If a parameter is null, then the corresponding field is not modified.</p>
  4574. * </note>
  4575. */
  4576. public updateMaintenanceWindowTarget(
  4577. args: UpdateMaintenanceWindowTargetCommandInput,
  4578. options?: __HttpHandlerOptions
  4579. ): Promise<UpdateMaintenanceWindowTargetCommandOutput>;
  4580. public updateMaintenanceWindowTarget(
  4581. args: UpdateMaintenanceWindowTargetCommandInput,
  4582. cb: (err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void
  4583. ): void;
  4584. public updateMaintenanceWindowTarget(
  4585. args: UpdateMaintenanceWindowTargetCommandInput,
  4586. options: __HttpHandlerOptions,
  4587. cb: (err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void
  4588. ): void;
  4589. public updateMaintenanceWindowTarget(
  4590. args: UpdateMaintenanceWindowTargetCommandInput,
  4591. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void),
  4592. cb?: (err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void
  4593. ): Promise<UpdateMaintenanceWindowTargetCommandOutput> | void {
  4594. const command = new UpdateMaintenanceWindowTargetCommand(args);
  4595. if (typeof optionsOrCb === "function") {
  4596. this.send(command, optionsOrCb);
  4597. } else if (typeof cb === "function") {
  4598. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4599. this.send(command, optionsOrCb || {}, cb);
  4600. } else {
  4601. return this.send(command, optionsOrCb);
  4602. }
  4603. }
  4604. /**
  4605. * <p>Modifies a task assigned to a maintenance window. You can't change the task type, but you
  4606. * can change the following values:</p>
  4607. * <ul>
  4608. * <li>
  4609. * <p>TaskARN. For example, you can change a RUN_COMMAND task from AWS-RunPowerShellScript to
  4610. * AWS-RunShellScript.</p>
  4611. * </li>
  4612. * <li>
  4613. * <p>ServiceRoleArn</p>
  4614. * </li>
  4615. * <li>
  4616. * <p>TaskInvocationParameters</p>
  4617. * </li>
  4618. * <li>
  4619. * <p>Priority</p>
  4620. * </li>
  4621. * <li>
  4622. * <p>MaxConcurrency</p>
  4623. * </li>
  4624. * <li>
  4625. * <p>MaxErrors</p>
  4626. * </li>
  4627. * </ul>
  4628. * <p>If a parameter is null, then the corresponding field is not modified. Also, if you set
  4629. * Replace to true, then all fields required by the <a>RegisterTaskWithMaintenanceWindow</a> action are required for this request. Optional
  4630. * fields that aren't specified are set to null.</p>
  4631. */
  4632. public updateMaintenanceWindowTask(
  4633. args: UpdateMaintenanceWindowTaskCommandInput,
  4634. options?: __HttpHandlerOptions
  4635. ): Promise<UpdateMaintenanceWindowTaskCommandOutput>;
  4636. public updateMaintenanceWindowTask(
  4637. args: UpdateMaintenanceWindowTaskCommandInput,
  4638. cb: (err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void
  4639. ): void;
  4640. public updateMaintenanceWindowTask(
  4641. args: UpdateMaintenanceWindowTaskCommandInput,
  4642. options: __HttpHandlerOptions,
  4643. cb: (err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void
  4644. ): void;
  4645. public updateMaintenanceWindowTask(
  4646. args: UpdateMaintenanceWindowTaskCommandInput,
  4647. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void),
  4648. cb?: (err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void
  4649. ): Promise<UpdateMaintenanceWindowTaskCommandOutput> | void {
  4650. const command = new UpdateMaintenanceWindowTaskCommand(args);
  4651. if (typeof optionsOrCb === "function") {
  4652. this.send(command, optionsOrCb);
  4653. } else if (typeof cb === "function") {
  4654. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4655. this.send(command, optionsOrCb || {}, cb);
  4656. } else {
  4657. return this.send(command, optionsOrCb);
  4658. }
  4659. }
  4660. /**
  4661. * <p>Changes the Amazon Identity and Access Management (IAM) role that is assigned to the
  4662. * on-premises instance or virtual machines (VM). IAM roles are first assigned to these hybrid
  4663. * instances during the activation process. For more information, see <a>CreateActivation</a>.</p>
  4664. */
  4665. public updateManagedInstanceRole(
  4666. args: UpdateManagedInstanceRoleCommandInput,
  4667. options?: __HttpHandlerOptions
  4668. ): Promise<UpdateManagedInstanceRoleCommandOutput>;
  4669. public updateManagedInstanceRole(
  4670. args: UpdateManagedInstanceRoleCommandInput,
  4671. cb: (err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void
  4672. ): void;
  4673. public updateManagedInstanceRole(
  4674. args: UpdateManagedInstanceRoleCommandInput,
  4675. options: __HttpHandlerOptions,
  4676. cb: (err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void
  4677. ): void;
  4678. public updateManagedInstanceRole(
  4679. args: UpdateManagedInstanceRoleCommandInput,
  4680. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void),
  4681. cb?: (err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void
  4682. ): Promise<UpdateManagedInstanceRoleCommandOutput> | void {
  4683. const command = new UpdateManagedInstanceRoleCommand(args);
  4684. if (typeof optionsOrCb === "function") {
  4685. this.send(command, optionsOrCb);
  4686. } else if (typeof cb === "function") {
  4687. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4688. this.send(command, optionsOrCb || {}, cb);
  4689. } else {
  4690. return this.send(command, optionsOrCb);
  4691. }
  4692. }
  4693. /**
  4694. * <p>Edit or change an OpsItem. You must have permission in AWS Identity and Access Management
  4695. * (IAM) to update an OpsItem. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html">Getting started with
  4696. * OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  4697. * <p>Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate
  4698. * operational issues impacting the performance and health of their AWS resources. For more
  4699. * information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html">AWS Systems Manager OpsCenter</a> in the
  4700. * <i>AWS Systems Manager User Guide</i>. </p>
  4701. */
  4702. public updateOpsItem(
  4703. args: UpdateOpsItemCommandInput,
  4704. options?: __HttpHandlerOptions
  4705. ): Promise<UpdateOpsItemCommandOutput>;
  4706. public updateOpsItem(
  4707. args: UpdateOpsItemCommandInput,
  4708. cb: (err: any, data?: UpdateOpsItemCommandOutput) => void
  4709. ): void;
  4710. public updateOpsItem(
  4711. args: UpdateOpsItemCommandInput,
  4712. options: __HttpHandlerOptions,
  4713. cb: (err: any, data?: UpdateOpsItemCommandOutput) => void
  4714. ): void;
  4715. public updateOpsItem(
  4716. args: UpdateOpsItemCommandInput,
  4717. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateOpsItemCommandOutput) => void),
  4718. cb?: (err: any, data?: UpdateOpsItemCommandOutput) => void
  4719. ): Promise<UpdateOpsItemCommandOutput> | void {
  4720. const command = new UpdateOpsItemCommand(args);
  4721. if (typeof optionsOrCb === "function") {
  4722. this.send(command, optionsOrCb);
  4723. } else if (typeof cb === "function") {
  4724. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4725. this.send(command, optionsOrCb || {}, cb);
  4726. } else {
  4727. return this.send(command, optionsOrCb);
  4728. }
  4729. }
  4730. /**
  4731. * <p>Modifies an existing patch baseline. Fields not specified in the request are left
  4732. * unchanged.</p>
  4733. * <note>
  4734. * <p>For information about valid key and value pairs in <code>PatchFilters</code> for each
  4735. * supported operating system type, see <a href="http://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html">PatchFilter</a>.</p>
  4736. * </note>
  4737. */
  4738. public updatePatchBaseline(
  4739. args: UpdatePatchBaselineCommandInput,
  4740. options?: __HttpHandlerOptions
  4741. ): Promise<UpdatePatchBaselineCommandOutput>;
  4742. public updatePatchBaseline(
  4743. args: UpdatePatchBaselineCommandInput,
  4744. cb: (err: any, data?: UpdatePatchBaselineCommandOutput) => void
  4745. ): void;
  4746. public updatePatchBaseline(
  4747. args: UpdatePatchBaselineCommandInput,
  4748. options: __HttpHandlerOptions,
  4749. cb: (err: any, data?: UpdatePatchBaselineCommandOutput) => void
  4750. ): void;
  4751. public updatePatchBaseline(
  4752. args: UpdatePatchBaselineCommandInput,
  4753. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdatePatchBaselineCommandOutput) => void),
  4754. cb?: (err: any, data?: UpdatePatchBaselineCommandOutput) => void
  4755. ): Promise<UpdatePatchBaselineCommandOutput> | void {
  4756. const command = new UpdatePatchBaselineCommand(args);
  4757. if (typeof optionsOrCb === "function") {
  4758. this.send(command, optionsOrCb);
  4759. } else if (typeof cb === "function") {
  4760. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4761. this.send(command, optionsOrCb || {}, cb);
  4762. } else {
  4763. return this.send(command, optionsOrCb);
  4764. }
  4765. }
  4766. /**
  4767. * <p>Update a resource data sync. After you create a resource data sync for a Region, you can't
  4768. * change the account options for that sync. For example, if you create a sync in the us-east-2
  4769. * (Ohio) Region and you choose the Include only the current account option, you can't edit that
  4770. * sync later and choose the Include all accounts from my AWS Organizations configuration option. Instead,
  4771. * you must delete the first resource data sync, and create a new one.</p>
  4772. * <note>
  4773. * <p>This API action only supports a resource data sync that was created with a SyncFromSource
  4774. * <code>SyncType</code>.</p>
  4775. * </note>
  4776. */
  4777. public updateResourceDataSync(
  4778. args: UpdateResourceDataSyncCommandInput,
  4779. options?: __HttpHandlerOptions
  4780. ): Promise<UpdateResourceDataSyncCommandOutput>;
  4781. public updateResourceDataSync(
  4782. args: UpdateResourceDataSyncCommandInput,
  4783. cb: (err: any, data?: UpdateResourceDataSyncCommandOutput) => void
  4784. ): void;
  4785. public updateResourceDataSync(
  4786. args: UpdateResourceDataSyncCommandInput,
  4787. options: __HttpHandlerOptions,
  4788. cb: (err: any, data?: UpdateResourceDataSyncCommandOutput) => void
  4789. ): void;
  4790. public updateResourceDataSync(
  4791. args: UpdateResourceDataSyncCommandInput,
  4792. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateResourceDataSyncCommandOutput) => void),
  4793. cb?: (err: any, data?: UpdateResourceDataSyncCommandOutput) => void
  4794. ): Promise<UpdateResourceDataSyncCommandOutput> | void {
  4795. const command = new UpdateResourceDataSyncCommand(args);
  4796. if (typeof optionsOrCb === "function") {
  4797. this.send(command, optionsOrCb);
  4798. } else if (typeof cb === "function") {
  4799. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4800. this.send(command, optionsOrCb || {}, cb);
  4801. } else {
  4802. return this.send(command, optionsOrCb);
  4803. }
  4804. }
  4805. /**
  4806. * <p>
  4807. * <code>ServiceSetting</code> is an account-level setting for an AWS service. This setting
  4808. * defines how a user interacts with or uses a service or a feature of a service. For example, if an
  4809. * AWS service charges money to the account based on feature or service usage, then the AWS service
  4810. * team might create a default setting of "false". This means the user can't use this feature unless
  4811. * they change the setting to "true" and intentionally opt in for a paid feature.</p>
  4812. * <p>Services map a <code>SettingId</code> object to a setting value. AWS services teams define
  4813. * the default value for a <code>SettingId</code>. You can't create a new <code>SettingId</code>,
  4814. * but you can overwrite the default value if you have the <code>ssm:UpdateServiceSetting</code>
  4815. * permission for the setting. Use the <a>GetServiceSetting</a> API action to view the
  4816. * current value. Or, use the <a>ResetServiceSetting</a> to change the value back to the
  4817. * original value defined by the AWS service team.</p>
  4818. *
  4819. * <p>Update the service setting for the account. </p>
  4820. */
  4821. public updateServiceSetting(
  4822. args: UpdateServiceSettingCommandInput,
  4823. options?: __HttpHandlerOptions
  4824. ): Promise<UpdateServiceSettingCommandOutput>;
  4825. public updateServiceSetting(
  4826. args: UpdateServiceSettingCommandInput,
  4827. cb: (err: any, data?: UpdateServiceSettingCommandOutput) => void
  4828. ): void;
  4829. public updateServiceSetting(
  4830. args: UpdateServiceSettingCommandInput,
  4831. options: __HttpHandlerOptions,
  4832. cb: (err: any, data?: UpdateServiceSettingCommandOutput) => void
  4833. ): void;
  4834. public updateServiceSetting(
  4835. args: UpdateServiceSettingCommandInput,
  4836. optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateServiceSettingCommandOutput) => void),
  4837. cb?: (err: any, data?: UpdateServiceSettingCommandOutput) => void
  4838. ): Promise<UpdateServiceSettingCommandOutput> | void {
  4839. const command = new UpdateServiceSettingCommand(args);
  4840. if (typeof optionsOrCb === "function") {
  4841. this.send(command, optionsOrCb);
  4842. } else if (typeof cb === "function") {
  4843. if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
  4844. this.send(command, optionsOrCb || {}, cb);
  4845. } else {
  4846. return this.send(command, optionsOrCb);
  4847. }
  4848. }
  4849. }