/clients/client-ssm/SSMClient.ts

https://github.com/aws/aws-sdk-js-v3 · TypeScript · 829 lines · 732 code · 25 blank · 72 comment · 247 complexity · 825d92f690cde407c0cf93250bcca21b MD5 · raw file

  1. import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "./commands/AddTagsToResourceCommand";
  2. import { CancelCommandCommandInput, CancelCommandCommandOutput } from "./commands/CancelCommandCommand";
  3. import {
  4. CancelMaintenanceWindowExecutionCommandInput,
  5. CancelMaintenanceWindowExecutionCommandOutput,
  6. } from "./commands/CancelMaintenanceWindowExecutionCommand";
  7. import { CreateActivationCommandInput, CreateActivationCommandOutput } from "./commands/CreateActivationCommand";
  8. import {
  9. CreateAssociationBatchCommandInput,
  10. CreateAssociationBatchCommandOutput,
  11. } from "./commands/CreateAssociationBatchCommand";
  12. import { CreateAssociationCommandInput, CreateAssociationCommandOutput } from "./commands/CreateAssociationCommand";
  13. import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "./commands/CreateDocumentCommand";
  14. import {
  15. CreateMaintenanceWindowCommandInput,
  16. CreateMaintenanceWindowCommandOutput,
  17. } from "./commands/CreateMaintenanceWindowCommand";
  18. import { CreateOpsItemCommandInput, CreateOpsItemCommandOutput } from "./commands/CreateOpsItemCommand";
  19. import {
  20. CreatePatchBaselineCommandInput,
  21. CreatePatchBaselineCommandOutput,
  22. } from "./commands/CreatePatchBaselineCommand";
  23. import {
  24. CreateResourceDataSyncCommandInput,
  25. CreateResourceDataSyncCommandOutput,
  26. } from "./commands/CreateResourceDataSyncCommand";
  27. import { DeleteActivationCommandInput, DeleteActivationCommandOutput } from "./commands/DeleteActivationCommand";
  28. import { DeleteAssociationCommandInput, DeleteAssociationCommandOutput } from "./commands/DeleteAssociationCommand";
  29. import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "./commands/DeleteDocumentCommand";
  30. import { DeleteInventoryCommandInput, DeleteInventoryCommandOutput } from "./commands/DeleteInventoryCommand";
  31. import {
  32. DeleteMaintenanceWindowCommandInput,
  33. DeleteMaintenanceWindowCommandOutput,
  34. } from "./commands/DeleteMaintenanceWindowCommand";
  35. import { DeleteParameterCommandInput, DeleteParameterCommandOutput } from "./commands/DeleteParameterCommand";
  36. import { DeleteParametersCommandInput, DeleteParametersCommandOutput } from "./commands/DeleteParametersCommand";
  37. import {
  38. DeletePatchBaselineCommandInput,
  39. DeletePatchBaselineCommandOutput,
  40. } from "./commands/DeletePatchBaselineCommand";
  41. import {
  42. DeleteResourceDataSyncCommandInput,
  43. DeleteResourceDataSyncCommandOutput,
  44. } from "./commands/DeleteResourceDataSyncCommand";
  45. import {
  46. DeregisterManagedInstanceCommandInput,
  47. DeregisterManagedInstanceCommandOutput,
  48. } from "./commands/DeregisterManagedInstanceCommand";
  49. import {
  50. DeregisterPatchBaselineForPatchGroupCommandInput,
  51. DeregisterPatchBaselineForPatchGroupCommandOutput,
  52. } from "./commands/DeregisterPatchBaselineForPatchGroupCommand";
  53. import {
  54. DeregisterTargetFromMaintenanceWindowCommandInput,
  55. DeregisterTargetFromMaintenanceWindowCommandOutput,
  56. } from "./commands/DeregisterTargetFromMaintenanceWindowCommand";
  57. import {
  58. DeregisterTaskFromMaintenanceWindowCommandInput,
  59. DeregisterTaskFromMaintenanceWindowCommandOutput,
  60. } from "./commands/DeregisterTaskFromMaintenanceWindowCommand";
  61. import {
  62. DescribeActivationsCommandInput,
  63. DescribeActivationsCommandOutput,
  64. } from "./commands/DescribeActivationsCommand";
  65. import {
  66. DescribeAssociationCommandInput,
  67. DescribeAssociationCommandOutput,
  68. } from "./commands/DescribeAssociationCommand";
  69. import {
  70. DescribeAssociationExecutionTargetsCommandInput,
  71. DescribeAssociationExecutionTargetsCommandOutput,
  72. } from "./commands/DescribeAssociationExecutionTargetsCommand";
  73. import {
  74. DescribeAssociationExecutionsCommandInput,
  75. DescribeAssociationExecutionsCommandOutput,
  76. } from "./commands/DescribeAssociationExecutionsCommand";
  77. import {
  78. DescribeAutomationExecutionsCommandInput,
  79. DescribeAutomationExecutionsCommandOutput,
  80. } from "./commands/DescribeAutomationExecutionsCommand";
  81. import {
  82. DescribeAutomationStepExecutionsCommandInput,
  83. DescribeAutomationStepExecutionsCommandOutput,
  84. } from "./commands/DescribeAutomationStepExecutionsCommand";
  85. import {
  86. DescribeAvailablePatchesCommandInput,
  87. DescribeAvailablePatchesCommandOutput,
  88. } from "./commands/DescribeAvailablePatchesCommand";
  89. import { DescribeDocumentCommandInput, DescribeDocumentCommandOutput } from "./commands/DescribeDocumentCommand";
  90. import {
  91. DescribeDocumentPermissionCommandInput,
  92. DescribeDocumentPermissionCommandOutput,
  93. } from "./commands/DescribeDocumentPermissionCommand";
  94. import {
  95. DescribeEffectiveInstanceAssociationsCommandInput,
  96. DescribeEffectiveInstanceAssociationsCommandOutput,
  97. } from "./commands/DescribeEffectiveInstanceAssociationsCommand";
  98. import {
  99. DescribeEffectivePatchesForPatchBaselineCommandInput,
  100. DescribeEffectivePatchesForPatchBaselineCommandOutput,
  101. } from "./commands/DescribeEffectivePatchesForPatchBaselineCommand";
  102. import {
  103. DescribeInstanceAssociationsStatusCommandInput,
  104. DescribeInstanceAssociationsStatusCommandOutput,
  105. } from "./commands/DescribeInstanceAssociationsStatusCommand";
  106. import {
  107. DescribeInstanceInformationCommandInput,
  108. DescribeInstanceInformationCommandOutput,
  109. } from "./commands/DescribeInstanceInformationCommand";
  110. import {
  111. DescribeInstancePatchStatesCommandInput,
  112. DescribeInstancePatchStatesCommandOutput,
  113. } from "./commands/DescribeInstancePatchStatesCommand";
  114. import {
  115. DescribeInstancePatchStatesForPatchGroupCommandInput,
  116. DescribeInstancePatchStatesForPatchGroupCommandOutput,
  117. } from "./commands/DescribeInstancePatchStatesForPatchGroupCommand";
  118. import {
  119. DescribeInstancePatchesCommandInput,
  120. DescribeInstancePatchesCommandOutput,
  121. } from "./commands/DescribeInstancePatchesCommand";
  122. import {
  123. DescribeInventoryDeletionsCommandInput,
  124. DescribeInventoryDeletionsCommandOutput,
  125. } from "./commands/DescribeInventoryDeletionsCommand";
  126. import {
  127. DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput,
  128. DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput,
  129. } from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand";
  130. import {
  131. DescribeMaintenanceWindowExecutionTasksCommandInput,
  132. DescribeMaintenanceWindowExecutionTasksCommandOutput,
  133. } from "./commands/DescribeMaintenanceWindowExecutionTasksCommand";
  134. import {
  135. DescribeMaintenanceWindowExecutionsCommandInput,
  136. DescribeMaintenanceWindowExecutionsCommandOutput,
  137. } from "./commands/DescribeMaintenanceWindowExecutionsCommand";
  138. import {
  139. DescribeMaintenanceWindowScheduleCommandInput,
  140. DescribeMaintenanceWindowScheduleCommandOutput,
  141. } from "./commands/DescribeMaintenanceWindowScheduleCommand";
  142. import {
  143. DescribeMaintenanceWindowTargetsCommandInput,
  144. DescribeMaintenanceWindowTargetsCommandOutput,
  145. } from "./commands/DescribeMaintenanceWindowTargetsCommand";
  146. import {
  147. DescribeMaintenanceWindowTasksCommandInput,
  148. DescribeMaintenanceWindowTasksCommandOutput,
  149. } from "./commands/DescribeMaintenanceWindowTasksCommand";
  150. import {
  151. DescribeMaintenanceWindowsCommandInput,
  152. DescribeMaintenanceWindowsCommandOutput,
  153. } from "./commands/DescribeMaintenanceWindowsCommand";
  154. import {
  155. DescribeMaintenanceWindowsForTargetCommandInput,
  156. DescribeMaintenanceWindowsForTargetCommandOutput,
  157. } from "./commands/DescribeMaintenanceWindowsForTargetCommand";
  158. import { DescribeOpsItemsCommandInput, DescribeOpsItemsCommandOutput } from "./commands/DescribeOpsItemsCommand";
  159. import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "./commands/DescribeParametersCommand";
  160. import {
  161. DescribePatchBaselinesCommandInput,
  162. DescribePatchBaselinesCommandOutput,
  163. } from "./commands/DescribePatchBaselinesCommand";
  164. import {
  165. DescribePatchGroupStateCommandInput,
  166. DescribePatchGroupStateCommandOutput,
  167. } from "./commands/DescribePatchGroupStateCommand";
  168. import {
  169. DescribePatchGroupsCommandInput,
  170. DescribePatchGroupsCommandOutput,
  171. } from "./commands/DescribePatchGroupsCommand";
  172. import {
  173. DescribePatchPropertiesCommandInput,
  174. DescribePatchPropertiesCommandOutput,
  175. } from "./commands/DescribePatchPropertiesCommand";
  176. import { DescribeSessionsCommandInput, DescribeSessionsCommandOutput } from "./commands/DescribeSessionsCommand";
  177. import {
  178. GetAutomationExecutionCommandInput,
  179. GetAutomationExecutionCommandOutput,
  180. } from "./commands/GetAutomationExecutionCommand";
  181. import { GetCalendarStateCommandInput, GetCalendarStateCommandOutput } from "./commands/GetCalendarStateCommand";
  182. import {
  183. GetCommandInvocationCommandInput,
  184. GetCommandInvocationCommandOutput,
  185. } from "./commands/GetCommandInvocationCommand";
  186. import {
  187. GetConnectionStatusCommandInput,
  188. GetConnectionStatusCommandOutput,
  189. } from "./commands/GetConnectionStatusCommand";
  190. import {
  191. GetDefaultPatchBaselineCommandInput,
  192. GetDefaultPatchBaselineCommandOutput,
  193. } from "./commands/GetDefaultPatchBaselineCommand";
  194. import {
  195. GetDeployablePatchSnapshotForInstanceCommandInput,
  196. GetDeployablePatchSnapshotForInstanceCommandOutput,
  197. } from "./commands/GetDeployablePatchSnapshotForInstanceCommand";
  198. import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand";
  199. import { GetInventoryCommandInput, GetInventoryCommandOutput } from "./commands/GetInventoryCommand";
  200. import { GetInventorySchemaCommandInput, GetInventorySchemaCommandOutput } from "./commands/GetInventorySchemaCommand";
  201. import {
  202. GetMaintenanceWindowCommandInput,
  203. GetMaintenanceWindowCommandOutput,
  204. } from "./commands/GetMaintenanceWindowCommand";
  205. import {
  206. GetMaintenanceWindowExecutionCommandInput,
  207. GetMaintenanceWindowExecutionCommandOutput,
  208. } from "./commands/GetMaintenanceWindowExecutionCommand";
  209. import {
  210. GetMaintenanceWindowExecutionTaskCommandInput,
  211. GetMaintenanceWindowExecutionTaskCommandOutput,
  212. } from "./commands/GetMaintenanceWindowExecutionTaskCommand";
  213. import {
  214. GetMaintenanceWindowExecutionTaskInvocationCommandInput,
  215. GetMaintenanceWindowExecutionTaskInvocationCommandOutput,
  216. } from "./commands/GetMaintenanceWindowExecutionTaskInvocationCommand";
  217. import {
  218. GetMaintenanceWindowTaskCommandInput,
  219. GetMaintenanceWindowTaskCommandOutput,
  220. } from "./commands/GetMaintenanceWindowTaskCommand";
  221. import { GetOpsItemCommandInput, GetOpsItemCommandOutput } from "./commands/GetOpsItemCommand";
  222. import { GetOpsSummaryCommandInput, GetOpsSummaryCommandOutput } from "./commands/GetOpsSummaryCommand";
  223. import { GetParameterCommandInput, GetParameterCommandOutput } from "./commands/GetParameterCommand";
  224. import {
  225. GetParameterHistoryCommandInput,
  226. GetParameterHistoryCommandOutput,
  227. } from "./commands/GetParameterHistoryCommand";
  228. import {
  229. GetParametersByPathCommandInput,
  230. GetParametersByPathCommandOutput,
  231. } from "./commands/GetParametersByPathCommand";
  232. import { GetParametersCommandInput, GetParametersCommandOutput } from "./commands/GetParametersCommand";
  233. import { GetPatchBaselineCommandInput, GetPatchBaselineCommandOutput } from "./commands/GetPatchBaselineCommand";
  234. import {
  235. GetPatchBaselineForPatchGroupCommandInput,
  236. GetPatchBaselineForPatchGroupCommandOutput,
  237. } from "./commands/GetPatchBaselineForPatchGroupCommand";
  238. import { GetServiceSettingCommandInput, GetServiceSettingCommandOutput } from "./commands/GetServiceSettingCommand";
  239. import {
  240. LabelParameterVersionCommandInput,
  241. LabelParameterVersionCommandOutput,
  242. } from "./commands/LabelParameterVersionCommand";
  243. import {
  244. ListAssociationVersionsCommandInput,
  245. ListAssociationVersionsCommandOutput,
  246. } from "./commands/ListAssociationVersionsCommand";
  247. import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "./commands/ListAssociationsCommand";
  248. import {
  249. ListCommandInvocationsCommandInput,
  250. ListCommandInvocationsCommandOutput,
  251. } from "./commands/ListCommandInvocationsCommand";
  252. import { ListCommandsCommandInput, ListCommandsCommandOutput } from "./commands/ListCommandsCommand";
  253. import {
  254. ListComplianceItemsCommandInput,
  255. ListComplianceItemsCommandOutput,
  256. } from "./commands/ListComplianceItemsCommand";
  257. import {
  258. ListComplianceSummariesCommandInput,
  259. ListComplianceSummariesCommandOutput,
  260. } from "./commands/ListComplianceSummariesCommand";
  261. import {
  262. ListDocumentVersionsCommandInput,
  263. ListDocumentVersionsCommandOutput,
  264. } from "./commands/ListDocumentVersionsCommand";
  265. import { ListDocumentsCommandInput, ListDocumentsCommandOutput } from "./commands/ListDocumentsCommand";
  266. import {
  267. ListInventoryEntriesCommandInput,
  268. ListInventoryEntriesCommandOutput,
  269. } from "./commands/ListInventoryEntriesCommand";
  270. import {
  271. ListResourceComplianceSummariesCommandInput,
  272. ListResourceComplianceSummariesCommandOutput,
  273. } from "./commands/ListResourceComplianceSummariesCommand";
  274. import {
  275. ListResourceDataSyncCommandInput,
  276. ListResourceDataSyncCommandOutput,
  277. } from "./commands/ListResourceDataSyncCommand";
  278. import {
  279. ListTagsForResourceCommandInput,
  280. ListTagsForResourceCommandOutput,
  281. } from "./commands/ListTagsForResourceCommand";
  282. import {
  283. ModifyDocumentPermissionCommandInput,
  284. ModifyDocumentPermissionCommandOutput,
  285. } from "./commands/ModifyDocumentPermissionCommand";
  286. import { PutComplianceItemsCommandInput, PutComplianceItemsCommandOutput } from "./commands/PutComplianceItemsCommand";
  287. import { PutInventoryCommandInput, PutInventoryCommandOutput } from "./commands/PutInventoryCommand";
  288. import { PutParameterCommandInput, PutParameterCommandOutput } from "./commands/PutParameterCommand";
  289. import {
  290. RegisterDefaultPatchBaselineCommandInput,
  291. RegisterDefaultPatchBaselineCommandOutput,
  292. } from "./commands/RegisterDefaultPatchBaselineCommand";
  293. import {
  294. RegisterPatchBaselineForPatchGroupCommandInput,
  295. RegisterPatchBaselineForPatchGroupCommandOutput,
  296. } from "./commands/RegisterPatchBaselineForPatchGroupCommand";
  297. import {
  298. RegisterTargetWithMaintenanceWindowCommandInput,
  299. RegisterTargetWithMaintenanceWindowCommandOutput,
  300. } from "./commands/RegisterTargetWithMaintenanceWindowCommand";
  301. import {
  302. RegisterTaskWithMaintenanceWindowCommandInput,
  303. RegisterTaskWithMaintenanceWindowCommandOutput,
  304. } from "./commands/RegisterTaskWithMaintenanceWindowCommand";
  305. import {
  306. RemoveTagsFromResourceCommandInput,
  307. RemoveTagsFromResourceCommandOutput,
  308. } from "./commands/RemoveTagsFromResourceCommand";
  309. import {
  310. ResetServiceSettingCommandInput,
  311. ResetServiceSettingCommandOutput,
  312. } from "./commands/ResetServiceSettingCommand";
  313. import { ResumeSessionCommandInput, ResumeSessionCommandOutput } from "./commands/ResumeSessionCommand";
  314. import {
  315. SendAutomationSignalCommandInput,
  316. SendAutomationSignalCommandOutput,
  317. } from "./commands/SendAutomationSignalCommand";
  318. import { SendCommandCommandInput, SendCommandCommandOutput } from "./commands/SendCommandCommand";
  319. import {
  320. StartAssociationsOnceCommandInput,
  321. StartAssociationsOnceCommandOutput,
  322. } from "./commands/StartAssociationsOnceCommand";
  323. import {
  324. StartAutomationExecutionCommandInput,
  325. StartAutomationExecutionCommandOutput,
  326. } from "./commands/StartAutomationExecutionCommand";
  327. import { StartSessionCommandInput, StartSessionCommandOutput } from "./commands/StartSessionCommand";
  328. import {
  329. StopAutomationExecutionCommandInput,
  330. StopAutomationExecutionCommandOutput,
  331. } from "./commands/StopAutomationExecutionCommand";
  332. import { TerminateSessionCommandInput, TerminateSessionCommandOutput } from "./commands/TerminateSessionCommand";
  333. import { UpdateAssociationCommandInput, UpdateAssociationCommandOutput } from "./commands/UpdateAssociationCommand";
  334. import {
  335. UpdateAssociationStatusCommandInput,
  336. UpdateAssociationStatusCommandOutput,
  337. } from "./commands/UpdateAssociationStatusCommand";
  338. import { UpdateDocumentCommandInput, UpdateDocumentCommandOutput } from "./commands/UpdateDocumentCommand";
  339. import {
  340. UpdateDocumentDefaultVersionCommandInput,
  341. UpdateDocumentDefaultVersionCommandOutput,
  342. } from "./commands/UpdateDocumentDefaultVersionCommand";
  343. import {
  344. UpdateMaintenanceWindowCommandInput,
  345. UpdateMaintenanceWindowCommandOutput,
  346. } from "./commands/UpdateMaintenanceWindowCommand";
  347. import {
  348. UpdateMaintenanceWindowTargetCommandInput,
  349. UpdateMaintenanceWindowTargetCommandOutput,
  350. } from "./commands/UpdateMaintenanceWindowTargetCommand";
  351. import {
  352. UpdateMaintenanceWindowTaskCommandInput,
  353. UpdateMaintenanceWindowTaskCommandOutput,
  354. } from "./commands/UpdateMaintenanceWindowTaskCommand";
  355. import {
  356. UpdateManagedInstanceRoleCommandInput,
  357. UpdateManagedInstanceRoleCommandOutput,
  358. } from "./commands/UpdateManagedInstanceRoleCommand";
  359. import { UpdateOpsItemCommandInput, UpdateOpsItemCommandOutput } from "./commands/UpdateOpsItemCommand";
  360. import {
  361. UpdatePatchBaselineCommandInput,
  362. UpdatePatchBaselineCommandOutput,
  363. } from "./commands/UpdatePatchBaselineCommand";
  364. import {
  365. UpdateResourceDataSyncCommandInput,
  366. UpdateResourceDataSyncCommandOutput,
  367. } from "./commands/UpdateResourceDataSyncCommand";
  368. import {
  369. UpdateServiceSettingCommandInput,
  370. UpdateServiceSettingCommandOutput,
  371. } from "./commands/UpdateServiceSettingCommand";
  372. import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
  373. import {
  374. EndpointsInputConfig,
  375. EndpointsResolvedConfig,
  376. RegionInputConfig,
  377. RegionResolvedConfig,
  378. resolveEndpointsConfig,
  379. resolveRegionConfig,
  380. } from "@aws-sdk/config-resolver";
  381. import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
  382. import {
  383. HostHeaderInputConfig,
  384. HostHeaderResolvedConfig,
  385. getHostHeaderPlugin,
  386. resolveHostHeaderConfig,
  387. } from "@aws-sdk/middleware-host-header";
  388. import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
  389. import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
  390. import {
  391. AwsAuthInputConfig,
  392. AwsAuthResolvedConfig,
  393. getAwsAuthPlugin,
  394. resolveAwsAuthConfig,
  395. } from "@aws-sdk/middleware-signing";
  396. import {
  397. UserAgentInputConfig,
  398. UserAgentResolvedConfig,
  399. getUserAgentPlugin,
  400. resolveUserAgentConfig,
  401. } from "@aws-sdk/middleware-user-agent";
  402. import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
  403. import {
  404. Client as __Client,
  405. SmithyConfiguration as __SmithyConfiguration,
  406. SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
  407. } from "@aws-sdk/smithy-client";
  408. import {
  409. RegionInfoProvider,
  410. Credentials as __Credentials,
  411. Decoder as __Decoder,
  412. Encoder as __Encoder,
  413. HashConstructor as __HashConstructor,
  414. HttpHandlerOptions as __HttpHandlerOptions,
  415. Logger as __Logger,
  416. Provider as __Provider,
  417. StreamCollector as __StreamCollector,
  418. UrlParser as __UrlParser,
  419. } from "@aws-sdk/types";
  420. export type ServiceInputTypes =
  421. | AddTagsToResourceCommandInput
  422. | CancelCommandCommandInput
  423. | CancelMaintenanceWindowExecutionCommandInput
  424. | CreateActivationCommandInput
  425. | CreateAssociationBatchCommandInput
  426. | CreateAssociationCommandInput
  427. | CreateDocumentCommandInput
  428. | CreateMaintenanceWindowCommandInput
  429. | CreateOpsItemCommandInput
  430. | CreatePatchBaselineCommandInput
  431. | CreateResourceDataSyncCommandInput
  432. | DeleteActivationCommandInput
  433. | DeleteAssociationCommandInput
  434. | DeleteDocumentCommandInput
  435. | DeleteInventoryCommandInput
  436. | DeleteMaintenanceWindowCommandInput
  437. | DeleteParameterCommandInput
  438. | DeleteParametersCommandInput
  439. | DeletePatchBaselineCommandInput
  440. | DeleteResourceDataSyncCommandInput
  441. | DeregisterManagedInstanceCommandInput
  442. | DeregisterPatchBaselineForPatchGroupCommandInput
  443. | DeregisterTargetFromMaintenanceWindowCommandInput
  444. | DeregisterTaskFromMaintenanceWindowCommandInput
  445. | DescribeActivationsCommandInput
  446. | DescribeAssociationCommandInput
  447. | DescribeAssociationExecutionTargetsCommandInput
  448. | DescribeAssociationExecutionsCommandInput
  449. | DescribeAutomationExecutionsCommandInput
  450. | DescribeAutomationStepExecutionsCommandInput
  451. | DescribeAvailablePatchesCommandInput
  452. | DescribeDocumentCommandInput
  453. | DescribeDocumentPermissionCommandInput
  454. | DescribeEffectiveInstanceAssociationsCommandInput
  455. | DescribeEffectivePatchesForPatchBaselineCommandInput
  456. | DescribeInstanceAssociationsStatusCommandInput
  457. | DescribeInstanceInformationCommandInput
  458. | DescribeInstancePatchStatesCommandInput
  459. | DescribeInstancePatchStatesForPatchGroupCommandInput
  460. | DescribeInstancePatchesCommandInput
  461. | DescribeInventoryDeletionsCommandInput
  462. | DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput
  463. | DescribeMaintenanceWindowExecutionTasksCommandInput
  464. | DescribeMaintenanceWindowExecutionsCommandInput
  465. | DescribeMaintenanceWindowScheduleCommandInput
  466. | DescribeMaintenanceWindowTargetsCommandInput
  467. | DescribeMaintenanceWindowTasksCommandInput
  468. | DescribeMaintenanceWindowsCommandInput
  469. | DescribeMaintenanceWindowsForTargetCommandInput
  470. | DescribeOpsItemsCommandInput
  471. | DescribeParametersCommandInput
  472. | DescribePatchBaselinesCommandInput
  473. | DescribePatchGroupStateCommandInput
  474. | DescribePatchGroupsCommandInput
  475. | DescribePatchPropertiesCommandInput
  476. | DescribeSessionsCommandInput
  477. | GetAutomationExecutionCommandInput
  478. | GetCalendarStateCommandInput
  479. | GetCommandInvocationCommandInput
  480. | GetConnectionStatusCommandInput
  481. | GetDefaultPatchBaselineCommandInput
  482. | GetDeployablePatchSnapshotForInstanceCommandInput
  483. | GetDocumentCommandInput
  484. | GetInventoryCommandInput
  485. | GetInventorySchemaCommandInput
  486. | GetMaintenanceWindowCommandInput
  487. | GetMaintenanceWindowExecutionCommandInput
  488. | GetMaintenanceWindowExecutionTaskCommandInput
  489. | GetMaintenanceWindowExecutionTaskInvocationCommandInput
  490. | GetMaintenanceWindowTaskCommandInput
  491. | GetOpsItemCommandInput
  492. | GetOpsSummaryCommandInput
  493. | GetParameterCommandInput
  494. | GetParameterHistoryCommandInput
  495. | GetParametersByPathCommandInput
  496. | GetParametersCommandInput
  497. | GetPatchBaselineCommandInput
  498. | GetPatchBaselineForPatchGroupCommandInput
  499. | GetServiceSettingCommandInput
  500. | LabelParameterVersionCommandInput
  501. | ListAssociationVersionsCommandInput
  502. | ListAssociationsCommandInput
  503. | ListCommandInvocationsCommandInput
  504. | ListCommandsCommandInput
  505. | ListComplianceItemsCommandInput
  506. | ListComplianceSummariesCommandInput
  507. | ListDocumentVersionsCommandInput
  508. | ListDocumentsCommandInput
  509. | ListInventoryEntriesCommandInput
  510. | ListResourceComplianceSummariesCommandInput
  511. | ListResourceDataSyncCommandInput
  512. | ListTagsForResourceCommandInput
  513. | ModifyDocumentPermissionCommandInput
  514. | PutComplianceItemsCommandInput
  515. | PutInventoryCommandInput
  516. | PutParameterCommandInput
  517. | RegisterDefaultPatchBaselineCommandInput
  518. | RegisterPatchBaselineForPatchGroupCommandInput
  519. | RegisterTargetWithMaintenanceWindowCommandInput
  520. | RegisterTaskWithMaintenanceWindowCommandInput
  521. | RemoveTagsFromResourceCommandInput
  522. | ResetServiceSettingCommandInput
  523. | ResumeSessionCommandInput
  524. | SendAutomationSignalCommandInput
  525. | SendCommandCommandInput
  526. | StartAssociationsOnceCommandInput
  527. | StartAutomationExecutionCommandInput
  528. | StartSessionCommandInput
  529. | StopAutomationExecutionCommandInput
  530. | TerminateSessionCommandInput
  531. | UpdateAssociationCommandInput
  532. | UpdateAssociationStatusCommandInput
  533. | UpdateDocumentCommandInput
  534. | UpdateDocumentDefaultVersionCommandInput
  535. | UpdateMaintenanceWindowCommandInput
  536. | UpdateMaintenanceWindowTargetCommandInput
  537. | UpdateMaintenanceWindowTaskCommandInput
  538. | UpdateManagedInstanceRoleCommandInput
  539. | UpdateOpsItemCommandInput
  540. | UpdatePatchBaselineCommandInput
  541. | UpdateResourceDataSyncCommandInput
  542. | UpdateServiceSettingCommandInput;
  543. export type ServiceOutputTypes =
  544. | AddTagsToResourceCommandOutput
  545. | CancelCommandCommandOutput
  546. | CancelMaintenanceWindowExecutionCommandOutput
  547. | CreateActivationCommandOutput
  548. | CreateAssociationBatchCommandOutput
  549. | CreateAssociationCommandOutput
  550. | CreateDocumentCommandOutput
  551. | CreateMaintenanceWindowCommandOutput
  552. | CreateOpsItemCommandOutput
  553. | CreatePatchBaselineCommandOutput
  554. | CreateResourceDataSyncCommandOutput
  555. | DeleteActivationCommandOutput
  556. | DeleteAssociationCommandOutput
  557. | DeleteDocumentCommandOutput
  558. | DeleteInventoryCommandOutput
  559. | DeleteMaintenanceWindowCommandOutput
  560. | DeleteParameterCommandOutput
  561. | DeleteParametersCommandOutput
  562. | DeletePatchBaselineCommandOutput
  563. | DeleteResourceDataSyncCommandOutput
  564. | DeregisterManagedInstanceCommandOutput
  565. | DeregisterPatchBaselineForPatchGroupCommandOutput
  566. | DeregisterTargetFromMaintenanceWindowCommandOutput
  567. | DeregisterTaskFromMaintenanceWindowCommandOutput
  568. | DescribeActivationsCommandOutput
  569. | DescribeAssociationCommandOutput
  570. | DescribeAssociationExecutionTargetsCommandOutput
  571. | DescribeAssociationExecutionsCommandOutput
  572. | DescribeAutomationExecutionsCommandOutput
  573. | DescribeAutomationStepExecutionsCommandOutput
  574. | DescribeAvailablePatchesCommandOutput
  575. | DescribeDocumentCommandOutput
  576. | DescribeDocumentPermissionCommandOutput
  577. | DescribeEffectiveInstanceAssociationsCommandOutput
  578. | DescribeEffectivePatchesForPatchBaselineCommandOutput
  579. | DescribeInstanceAssociationsStatusCommandOutput
  580. | DescribeInstanceInformationCommandOutput
  581. | DescribeInstancePatchStatesCommandOutput
  582. | DescribeInstancePatchStatesForPatchGroupCommandOutput
  583. | DescribeInstancePatchesCommandOutput
  584. | DescribeInventoryDeletionsCommandOutput
  585. | DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput
  586. | DescribeMaintenanceWindowExecutionTasksCommandOutput
  587. | DescribeMaintenanceWindowExecutionsCommandOutput
  588. | DescribeMaintenanceWindowScheduleCommandOutput
  589. | DescribeMaintenanceWindowTargetsCommandOutput
  590. | DescribeMaintenanceWindowTasksCommandOutput
  591. | DescribeMaintenanceWindowsCommandOutput
  592. | DescribeMaintenanceWindowsForTargetCommandOutput
  593. | DescribeOpsItemsCommandOutput
  594. | DescribeParametersCommandOutput
  595. | DescribePatchBaselinesCommandOutput
  596. | DescribePatchGroupStateCommandOutput
  597. | DescribePatchGroupsCommandOutput
  598. | DescribePatchPropertiesCommandOutput
  599. | DescribeSessionsCommandOutput
  600. | GetAutomationExecutionCommandOutput
  601. | GetCalendarStateCommandOutput
  602. | GetCommandInvocationCommandOutput
  603. | GetConnectionStatusCommandOutput
  604. | GetDefaultPatchBaselineCommandOutput
  605. | GetDeployablePatchSnapshotForInstanceCommandOutput
  606. | GetDocumentCommandOutput
  607. | GetInventoryCommandOutput
  608. | GetInventorySchemaCommandOutput
  609. | GetMaintenanceWindowCommandOutput
  610. | GetMaintenanceWindowExecutionCommandOutput
  611. | GetMaintenanceWindowExecutionTaskCommandOutput
  612. | GetMaintenanceWindowExecutionTaskInvocationCommandOutput
  613. | GetMaintenanceWindowTaskCommandOutput
  614. | GetOpsItemCommandOutput
  615. | GetOpsSummaryCommandOutput
  616. | GetParameterCommandOutput
  617. | GetParameterHistoryCommandOutput
  618. | GetParametersByPathCommandOutput
  619. | GetParametersCommandOutput
  620. | GetPatchBaselineCommandOutput
  621. | GetPatchBaselineForPatchGroupCommandOutput
  622. | GetServiceSettingCommandOutput
  623. | LabelParameterVersionCommandOutput
  624. | ListAssociationVersionsCommandOutput
  625. | ListAssociationsCommandOutput
  626. | ListCommandInvocationsCommandOutput
  627. | ListCommandsCommandOutput
  628. | ListComplianceItemsCommandOutput
  629. | ListComplianceSummariesCommandOutput
  630. | ListDocumentVersionsCommandOutput
  631. | ListDocumentsCommandOutput
  632. | ListInventoryEntriesCommandOutput
  633. | ListResourceComplianceSummariesCommandOutput
  634. | ListResourceDataSyncCommandOutput
  635. | ListTagsForResourceCommandOutput
  636. | ModifyDocumentPermissionCommandOutput
  637. | PutComplianceItemsCommandOutput
  638. | PutInventoryCommandOutput
  639. | PutParameterCommandOutput
  640. | RegisterDefaultPatchBaselineCommandOutput
  641. | RegisterPatchBaselineForPatchGroupCommandOutput
  642. | RegisterTargetWithMaintenanceWindowCommandOutput
  643. | RegisterTaskWithMaintenanceWindowCommandOutput
  644. | RemoveTagsFromResourceCommandOutput
  645. | ResetServiceSettingCommandOutput
  646. | ResumeSessionCommandOutput
  647. | SendAutomationSignalCommandOutput
  648. | SendCommandCommandOutput
  649. | StartAssociationsOnceCommandOutput
  650. | StartAutomationExecutionCommandOutput
  651. | StartSessionCommandOutput
  652. | StopAutomationExecutionCommandOutput
  653. | TerminateSessionCommandOutput
  654. | UpdateAssociationCommandOutput
  655. | UpdateAssociationStatusCommandOutput
  656. | UpdateDocumentCommandOutput
  657. | UpdateDocumentDefaultVersionCommandOutput
  658. | UpdateMaintenanceWindowCommandOutput
  659. | UpdateMaintenanceWindowTargetCommandOutput
  660. | UpdateMaintenanceWindowTaskCommandOutput
  661. | UpdateManagedInstanceRoleCommandOutput
  662. | UpdateOpsItemCommandOutput
  663. | UpdatePatchBaselineCommandOutput
  664. | UpdateResourceDataSyncCommandOutput
  665. | UpdateServiceSettingCommandOutput;
  666. export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
  667. /**
  668. * The HTTP handler to use. Fetch in browser and Https in Nodejs.
  669. */
  670. requestHandler?: __HttpHandler;
  671. /**
  672. * A constructor for a class implementing the @aws-sdk/types.Hash interface
  673. * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
  674. */
  675. sha256?: __HashConstructor;
  676. /**
  677. * The function that will be used to convert strings into HTTP endpoints.
  678. */
  679. urlParser?: __UrlParser;
  680. /**
  681. * A function that can calculate the length of a request body.
  682. */
  683. bodyLengthChecker?: (body: any) => number | undefined;
  684. /**
  685. * A function that converts a stream into an array of bytes.
  686. */
  687. streamCollector?: __StreamCollector;
  688. /**
  689. * The function that will be used to convert a base64-encoded string to a byte array
  690. */
  691. base64Decoder?: __Decoder;
  692. /**
  693. * The function that will be used to convert binary data to a base64-encoded string
  694. */
  695. base64Encoder?: __Encoder;
  696. /**
  697. * The function that will be used to convert a UTF8-encoded string to a byte array
  698. */
  699. utf8Decoder?: __Decoder;
  700. /**
  701. * The function that will be used to convert binary data to a UTF-8 encoded string
  702. */
  703. utf8Encoder?: __Encoder;
  704. /**
  705. * The string that will be used to populate default value in 'User-Agent' header
  706. */
  707. defaultUserAgent?: string;
  708. /**
  709. * The runtime environment
  710. */
  711. runtime?: string;
  712. /**
  713. * Disable dyanamically changing the endpoint of the client based on the hostPrefix
  714. * trait of an operation.
  715. */
  716. disableHostPrefix?: boolean;
  717. /**
  718. * The service name with which to sign requests.
  719. */
  720. signingName?: string;
  721. /**
  722. * Default credentials provider; Not available in browser runtime
  723. */
  724. credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
  725. /**
  726. * The AWS region to which this client will send requests
  727. */
  728. region?: string | __Provider<string>;
  729. /**
  730. * Value for how many times a request will be made at most in case of retry.
  731. */
  732. maxAttempts?: number | __Provider<number>;
  733. /**
  734. * Optional logger for logging debug/info/warn/error.
  735. */
  736. logger?: __Logger;
  737. /**
  738. * Fetch related hostname, signing name or signing region with given region.
  739. */
  740. regionInfoProvider?: RegionInfoProvider;
  741. }
  742. export type SSMClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
  743. ClientDefaults &
  744. RegionInputConfig &
  745. EndpointsInputConfig &
  746. AwsAuthInputConfig &
  747. RetryInputConfig &
  748. UserAgentInputConfig &
  749. HostHeaderInputConfig;
  750. export type SSMClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
  751. Required<ClientDefaults> &
  752. RegionResolvedConfig &
  753. EndpointsResolvedConfig &
  754. AwsAuthResolvedConfig &
  755. RetryResolvedConfig &
  756. UserAgentResolvedConfig &
  757. HostHeaderResolvedConfig;
  758. /**
  759. * <fullname>AWS Systems Manager</fullname>
  760. * <p>AWS Systems Manager is a collection of capabilities that helps you automate management tasks such as
  761. * collecting system inventory, applying operating system (OS) patches, automating the creation of
  762. * Amazon Machine Images (AMIs), and configuring operating systems (OSs) and applications at scale.
  763. * Systems Manager lets you remotely and securely manage the configuration of your managed instances. A
  764. * <i>managed instance</i> is any Amazon Elastic Compute Cloud instance (EC2 instance), or any
  765. * on-premises server or virtual machine (VM) in your hybrid environment that has been configured
  766. * for Systems Manager.</p>
  767. * <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>
  768. * <p>To get started, verify prerequisites and configure managed instances. For more information,
  769. * see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html">Setting up
  770. * AWS Systems Manager</a> in the <i>AWS Systems Manager User Guide</i>.</p>
  771. * <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
  772. * 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>
  773. */
  774. export class SSMClient extends __Client<
  775. __HttpHandlerOptions,
  776. ServiceInputTypes,
  777. ServiceOutputTypes,
  778. SSMClientResolvedConfig
  779. > {
  780. readonly config: SSMClientResolvedConfig;
  781. constructor(configuration: SSMClientConfig) {
  782. let _config_0 = {
  783. ...__ClientDefaultValues,
  784. ...configuration,
  785. };
  786. let _config_1 = resolveRegionConfig(_config_0);
  787. let _config_2 = resolveEndpointsConfig(_config_1);
  788. let _config_3 = resolveAwsAuthConfig(_config_2);
  789. let _config_4 = resolveRetryConfig(_config_3);
  790. let _config_5 = resolveUserAgentConfig(_config_4);
  791. let _config_6 = resolveHostHeaderConfig(_config_5);
  792. super(_config_6);
  793. this.config = _config_6;
  794. this.middlewareStack.use(getAwsAuthPlugin(this.config));
  795. this.middlewareStack.use(getRetryPlugin(this.config));
  796. this.middlewareStack.use(getUserAgentPlugin(this.config));
  797. this.middlewareStack.use(getContentLengthPlugin(this.config));
  798. this.middlewareStack.use(getHostHeaderPlugin(this.config));
  799. this.middlewareStack.use(getLoggerPlugin(this.config));
  800. }
  801. destroy(): void {
  802. super.destroy();
  803. }
  804. }