@aws-sdk/client-ssm-incidents 3.35.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/SSMIncidents.js +0 -11
  3. package/dist-cjs/SSMIncidentsClient.js +0 -16
  4. package/dist-cjs/commands/CreateReplicationSetCommand.js +0 -26
  5. package/dist-cjs/commands/CreateResponsePlanCommand.js +0 -28
  6. package/dist-cjs/commands/CreateTimelineEventCommand.js +0 -28
  7. package/dist-cjs/commands/DeleteIncidentRecordCommand.js +0 -25
  8. package/dist-cjs/commands/DeleteReplicationSetCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -27
  10. package/dist-cjs/commands/DeleteResponsePlanCommand.js +0 -27
  11. package/dist-cjs/commands/DeleteTimelineEventCommand.js +0 -25
  12. package/dist-cjs/commands/GetIncidentRecordCommand.js +0 -25
  13. package/dist-cjs/commands/GetReplicationSetCommand.js +0 -25
  14. package/dist-cjs/commands/GetResourcePoliciesCommand.js +0 -25
  15. package/dist-cjs/commands/GetResponsePlanCommand.js +0 -25
  16. package/dist-cjs/commands/GetTimelineEventCommand.js +0 -25
  17. package/dist-cjs/commands/ListIncidentRecordsCommand.js +0 -26
  18. package/dist-cjs/commands/ListRelatedItemsCommand.js +0 -25
  19. package/dist-cjs/commands/ListReplicationSetsCommand.js +0 -25
  20. package/dist-cjs/commands/ListResponsePlansCommand.js +0 -25
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  22. package/dist-cjs/commands/ListTimelineEventsCommand.js +0 -25
  23. package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -25
  24. package/dist-cjs/commands/StartIncidentCommand.js +0 -25
  25. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  26. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  27. package/dist-cjs/commands/UpdateDeletionProtectionCommand.js +0 -26
  28. package/dist-cjs/commands/UpdateIncidentRecordCommand.js +0 -27
  29. package/dist-cjs/commands/UpdateRelatedItemsCommand.js +0 -25
  30. package/dist-cjs/commands/UpdateReplicationSetCommand.js +0 -25
  31. package/dist-cjs/commands/UpdateResponsePlanCommand.js +0 -25
  32. package/dist-cjs/commands/UpdateTimelineEventCommand.js +0 -26
  33. package/dist-cjs/commands/index.js +32 -0
  34. package/dist-cjs/endpoints.js +1 -2
  35. package/dist-cjs/index.js +5 -41
  36. package/dist-cjs/models/index.js +0 -1
  37. package/dist-cjs/models/models_0.js +0 -307
  38. package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +0 -11
  39. package/dist-cjs/pagination/Interfaces.js +0 -1
  40. package/dist-cjs/pagination/ListIncidentRecordsPaginator.js +0 -11
  41. package/dist-cjs/pagination/ListRelatedItemsPaginator.js +0 -11
  42. package/dist-cjs/pagination/ListReplicationSetsPaginator.js +0 -11
  43. package/dist-cjs/pagination/ListResponsePlansPaginator.js +0 -11
  44. package/dist-cjs/pagination/ListTimelineEventsPaginator.js +0 -11
  45. package/dist-cjs/pagination/index.js +10 -0
  46. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  47. package/dist-cjs/runtimeConfig.browser.js +1 -6
  48. package/dist-cjs/runtimeConfig.js +2 -7
  49. package/dist-cjs/runtimeConfig.native.js +0 -4
  50. package/dist-cjs/runtimeConfig.shared.js +0 -4
  51. package/dist-cjs/waiters/index.js +5 -0
  52. package/dist-cjs/waiters/waitForWaitForReplicationSetActive.js +0 -10
  53. package/dist-cjs/waiters/waitForWaitForReplicationSetDeleted.js +0 -10
  54. package/dist-es/SSMIncidents.js +0 -1
  55. package/dist-es/SSMIncidentsClient.js +0 -1
  56. package/dist-es/commands/CreateReplicationSetCommand.js +0 -1
  57. package/dist-es/commands/CreateResponsePlanCommand.js +0 -1
  58. package/dist-es/commands/CreateTimelineEventCommand.js +0 -1
  59. package/dist-es/commands/DeleteIncidentRecordCommand.js +0 -1
  60. package/dist-es/commands/DeleteReplicationSetCommand.js +0 -1
  61. package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -1
  62. package/dist-es/commands/DeleteResponsePlanCommand.js +0 -1
  63. package/dist-es/commands/DeleteTimelineEventCommand.js +0 -1
  64. package/dist-es/commands/GetIncidentRecordCommand.js +0 -1
  65. package/dist-es/commands/GetReplicationSetCommand.js +0 -1
  66. package/dist-es/commands/GetResourcePoliciesCommand.js +0 -1
  67. package/dist-es/commands/GetResponsePlanCommand.js +0 -1
  68. package/dist-es/commands/GetTimelineEventCommand.js +0 -1
  69. package/dist-es/commands/ListIncidentRecordsCommand.js +0 -1
  70. package/dist-es/commands/ListRelatedItemsCommand.js +0 -1
  71. package/dist-es/commands/ListReplicationSetsCommand.js +0 -1
  72. package/dist-es/commands/ListResponsePlansCommand.js +0 -1
  73. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  74. package/dist-es/commands/ListTimelineEventsCommand.js +0 -1
  75. package/dist-es/commands/PutResourcePolicyCommand.js +0 -1
  76. package/dist-es/commands/StartIncidentCommand.js +0 -1
  77. package/dist-es/commands/TagResourceCommand.js +0 -1
  78. package/dist-es/commands/UntagResourceCommand.js +0 -1
  79. package/dist-es/commands/UpdateDeletionProtectionCommand.js +0 -1
  80. package/dist-es/commands/UpdateIncidentRecordCommand.js +0 -1
  81. package/dist-es/commands/UpdateRelatedItemsCommand.js +0 -1
  82. package/dist-es/commands/UpdateReplicationSetCommand.js +0 -1
  83. package/dist-es/commands/UpdateResponsePlanCommand.js +0 -1
  84. package/dist-es/commands/UpdateTimelineEventCommand.js +0 -1
  85. package/dist-es/commands/index.js +29 -0
  86. package/dist-es/endpoints.js +1 -2
  87. package/dist-es/index.js +5 -41
  88. package/dist-es/models/index.js +0 -1
  89. package/dist-es/models/models_0.js +0 -1
  90. package/dist-es/pagination/GetResourcePoliciesPaginator.js +0 -1
  91. package/dist-es/pagination/Interfaces.js +0 -1
  92. package/dist-es/pagination/ListIncidentRecordsPaginator.js +0 -1
  93. package/dist-es/pagination/ListRelatedItemsPaginator.js +0 -1
  94. package/dist-es/pagination/ListReplicationSetsPaginator.js +0 -1
  95. package/dist-es/pagination/ListResponsePlansPaginator.js +0 -1
  96. package/dist-es/pagination/ListTimelineEventsPaginator.js +0 -1
  97. package/dist-es/pagination/index.js +7 -0
  98. package/dist-es/protocols/Aws_restJson1.js +0 -1
  99. package/dist-es/runtimeConfig.browser.js +1 -2
  100. package/dist-es/runtimeConfig.js +2 -3
  101. package/dist-es/runtimeConfig.native.js +0 -1
  102. package/dist-es/runtimeConfig.shared.js +0 -1
  103. package/dist-es/waiters/index.js +2 -0
  104. package/dist-es/waiters/waitForWaitForReplicationSetActive.js +0 -1
  105. package/dist-es/waiters/waitForWaitForReplicationSetDeleted.js +0 -1
  106. package/dist-types/commands/index.d.ts +29 -0
  107. package/dist-types/index.d.ts +5 -40
  108. package/dist-types/pagination/index.d.ts +7 -0
  109. package/dist-types/ts3.4/SSMIncidents.d.ts +30 -114
  110. package/dist-types/ts3.4/SSMIncidentsClient.d.ts +24 -96
  111. package/dist-types/ts3.4/commands/CreateReplicationSetCommand.d.ts +2 -21
  112. package/dist-types/ts3.4/commands/CreateResponsePlanCommand.d.ts +2 -23
  113. package/dist-types/ts3.4/commands/CreateTimelineEventCommand.d.ts +2 -23
  114. package/dist-types/ts3.4/commands/DeleteIncidentRecordCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/DeleteReplicationSetCommand.d.ts +2 -21
  116. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -22
  117. package/dist-types/ts3.4/commands/DeleteResponsePlanCommand.d.ts +2 -22
  118. package/dist-types/ts3.4/commands/DeleteTimelineEventCommand.d.ts +2 -20
  119. package/dist-types/ts3.4/commands/GetIncidentRecordCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/GetReplicationSetCommand.d.ts +2 -20
  121. package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/GetResponsePlanCommand.d.ts +2 -20
  123. package/dist-types/ts3.4/commands/GetTimelineEventCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/ListIncidentRecordsCommand.d.ts +2 -21
  125. package/dist-types/ts3.4/commands/ListRelatedItemsCommand.d.ts +2 -20
  126. package/dist-types/ts3.4/commands/ListReplicationSetsCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/ListResponsePlansCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  129. package/dist-types/ts3.4/commands/ListTimelineEventsCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/StartIncidentCommand.d.ts +2 -20
  132. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  133. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  134. package/dist-types/ts3.4/commands/UpdateDeletionProtectionCommand.d.ts +2 -21
  135. package/dist-types/ts3.4/commands/UpdateIncidentRecordCommand.d.ts +2 -22
  136. package/dist-types/ts3.4/commands/UpdateRelatedItemsCommand.d.ts +2 -20
  137. package/dist-types/ts3.4/commands/UpdateReplicationSetCommand.d.ts +2 -20
  138. package/dist-types/ts3.4/commands/UpdateResponsePlanCommand.d.ts +2 -20
  139. package/dist-types/ts3.4/commands/UpdateTimelineEventCommand.d.ts +2 -21
  140. package/dist-types/ts3.4/commands/index.d.ts +29 -0
  141. package/dist-types/ts3.4/index.d.ts +5 -40
  142. package/dist-types/ts3.4/models/models_0.d.ts +364 -1300
  143. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  144. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  145. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  146. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  147. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  148. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  149. package/dist-types/ts3.4/waiters/waitForWaitForReplicationSetActive.d.ts +2 -9
  150. package/dist-types/ts3.4/waiters/waitForWaitForReplicationSetDeleted.d.ts +2 -9
  151. package/dist-types/waiters/index.d.ts +2 -0
  152. package/package.json +34 -31
  153. package/dist-cjs/SSMIncidents.js.map +0 -1
  154. package/dist-cjs/SSMIncidentsClient.js.map +0 -1
  155. package/dist-cjs/commands/CreateReplicationSetCommand.js.map +0 -1
  156. package/dist-cjs/commands/CreateResponsePlanCommand.js.map +0 -1
  157. package/dist-cjs/commands/CreateTimelineEventCommand.js.map +0 -1
  158. package/dist-cjs/commands/DeleteIncidentRecordCommand.js.map +0 -1
  159. package/dist-cjs/commands/DeleteReplicationSetCommand.js.map +0 -1
  160. package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
  161. package/dist-cjs/commands/DeleteResponsePlanCommand.js.map +0 -1
  162. package/dist-cjs/commands/DeleteTimelineEventCommand.js.map +0 -1
  163. package/dist-cjs/commands/GetIncidentRecordCommand.js.map +0 -1
  164. package/dist-cjs/commands/GetReplicationSetCommand.js.map +0 -1
  165. package/dist-cjs/commands/GetResourcePoliciesCommand.js.map +0 -1
  166. package/dist-cjs/commands/GetResponsePlanCommand.js.map +0 -1
  167. package/dist-cjs/commands/GetTimelineEventCommand.js.map +0 -1
  168. package/dist-cjs/commands/ListIncidentRecordsCommand.js.map +0 -1
  169. package/dist-cjs/commands/ListRelatedItemsCommand.js.map +0 -1
  170. package/dist-cjs/commands/ListReplicationSetsCommand.js.map +0 -1
  171. package/dist-cjs/commands/ListResponsePlansCommand.js.map +0 -1
  172. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  173. package/dist-cjs/commands/ListTimelineEventsCommand.js.map +0 -1
  174. package/dist-cjs/commands/PutResourcePolicyCommand.js.map +0 -1
  175. package/dist-cjs/commands/StartIncidentCommand.js.map +0 -1
  176. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  177. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  178. package/dist-cjs/commands/UpdateDeletionProtectionCommand.js.map +0 -1
  179. package/dist-cjs/commands/UpdateIncidentRecordCommand.js.map +0 -1
  180. package/dist-cjs/commands/UpdateRelatedItemsCommand.js.map +0 -1
  181. package/dist-cjs/commands/UpdateReplicationSetCommand.js.map +0 -1
  182. package/dist-cjs/commands/UpdateResponsePlanCommand.js.map +0 -1
  183. package/dist-cjs/commands/UpdateTimelineEventCommand.js.map +0 -1
  184. package/dist-cjs/endpoints.js.map +0 -1
  185. package/dist-cjs/index.js.map +0 -1
  186. package/dist-cjs/models/index.js.map +0 -1
  187. package/dist-cjs/models/models_0.js.map +0 -1
  188. package/dist-cjs/pagination/GetResourcePoliciesPaginator.js.map +0 -1
  189. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  190. package/dist-cjs/pagination/ListIncidentRecordsPaginator.js.map +0 -1
  191. package/dist-cjs/pagination/ListRelatedItemsPaginator.js.map +0 -1
  192. package/dist-cjs/pagination/ListReplicationSetsPaginator.js.map +0 -1
  193. package/dist-cjs/pagination/ListResponsePlansPaginator.js.map +0 -1
  194. package/dist-cjs/pagination/ListTimelineEventsPaginator.js.map +0 -1
  195. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  196. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  197. package/dist-cjs/runtimeConfig.js.map +0 -1
  198. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  199. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  200. package/dist-cjs/waiters/waitForWaitForReplicationSetActive.js.map +0 -1
  201. package/dist-cjs/waiters/waitForWaitForReplicationSetDeleted.js.map +0 -1
  202. package/dist-es/SSMIncidents.js.map +0 -1
  203. package/dist-es/SSMIncidentsClient.js.map +0 -1
  204. package/dist-es/commands/CreateReplicationSetCommand.js.map +0 -1
  205. package/dist-es/commands/CreateResponsePlanCommand.js.map +0 -1
  206. package/dist-es/commands/CreateTimelineEventCommand.js.map +0 -1
  207. package/dist-es/commands/DeleteIncidentRecordCommand.js.map +0 -1
  208. package/dist-es/commands/DeleteReplicationSetCommand.js.map +0 -1
  209. package/dist-es/commands/DeleteResourcePolicyCommand.js.map +0 -1
  210. package/dist-es/commands/DeleteResponsePlanCommand.js.map +0 -1
  211. package/dist-es/commands/DeleteTimelineEventCommand.js.map +0 -1
  212. package/dist-es/commands/GetIncidentRecordCommand.js.map +0 -1
  213. package/dist-es/commands/GetReplicationSetCommand.js.map +0 -1
  214. package/dist-es/commands/GetResourcePoliciesCommand.js.map +0 -1
  215. package/dist-es/commands/GetResponsePlanCommand.js.map +0 -1
  216. package/dist-es/commands/GetTimelineEventCommand.js.map +0 -1
  217. package/dist-es/commands/ListIncidentRecordsCommand.js.map +0 -1
  218. package/dist-es/commands/ListRelatedItemsCommand.js.map +0 -1
  219. package/dist-es/commands/ListReplicationSetsCommand.js.map +0 -1
  220. package/dist-es/commands/ListResponsePlansCommand.js.map +0 -1
  221. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  222. package/dist-es/commands/ListTimelineEventsCommand.js.map +0 -1
  223. package/dist-es/commands/PutResourcePolicyCommand.js.map +0 -1
  224. package/dist-es/commands/StartIncidentCommand.js.map +0 -1
  225. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  226. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  227. package/dist-es/commands/UpdateDeletionProtectionCommand.js.map +0 -1
  228. package/dist-es/commands/UpdateIncidentRecordCommand.js.map +0 -1
  229. package/dist-es/commands/UpdateRelatedItemsCommand.js.map +0 -1
  230. package/dist-es/commands/UpdateReplicationSetCommand.js.map +0 -1
  231. package/dist-es/commands/UpdateResponsePlanCommand.js.map +0 -1
  232. package/dist-es/commands/UpdateTimelineEventCommand.js.map +0 -1
  233. package/dist-es/endpoints.js.map +0 -1
  234. package/dist-es/index.js.map +0 -1
  235. package/dist-es/models/index.js.map +0 -1
  236. package/dist-es/models/models_0.js.map +0 -1
  237. package/dist-es/pagination/GetResourcePoliciesPaginator.js.map +0 -1
  238. package/dist-es/pagination/Interfaces.js.map +0 -1
  239. package/dist-es/pagination/ListIncidentRecordsPaginator.js.map +0 -1
  240. package/dist-es/pagination/ListRelatedItemsPaginator.js.map +0 -1
  241. package/dist-es/pagination/ListReplicationSetsPaginator.js.map +0 -1
  242. package/dist-es/pagination/ListResponsePlansPaginator.js.map +0 -1
  243. package/dist-es/pagination/ListTimelineEventsPaginator.js.map +0 -1
  244. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  245. package/dist-es/runtimeConfig.browser.js.map +0 -1
  246. package/dist-es/runtimeConfig.js.map +0 -1
  247. package/dist-es/runtimeConfig.native.js.map +0 -1
  248. package/dist-es/runtimeConfig.shared.js.map +0 -1
  249. package/dist-es/waiters/waitForWaitForReplicationSetActive.js.map +0 -1
  250. package/dist-es/waiters/waitForWaitForReplicationSetDeleted.js.map +0 -1
  251. package/jest.config.js +0 -4
  252. package/src/SSMIncidents.ts +0 -1095
  253. package/src/SSMIncidentsClient.ts +0 -372
  254. package/src/commands/CreateReplicationSetCommand.ts +0 -96
  255. package/src/commands/CreateResponsePlanCommand.ts +0 -98
  256. package/src/commands/CreateTimelineEventCommand.ts +0 -98
  257. package/src/commands/DeleteIncidentRecordCommand.ts +0 -95
  258. package/src/commands/DeleteReplicationSetCommand.ts +0 -96
  259. package/src/commands/DeleteResourcePolicyCommand.ts +0 -97
  260. package/src/commands/DeleteResponsePlanCommand.ts +0 -97
  261. package/src/commands/DeleteTimelineEventCommand.ts +0 -95
  262. package/src/commands/GetIncidentRecordCommand.ts +0 -95
  263. package/src/commands/GetReplicationSetCommand.ts +0 -95
  264. package/src/commands/GetResourcePoliciesCommand.ts +0 -95
  265. package/src/commands/GetResponsePlanCommand.ts +0 -95
  266. package/src/commands/GetTimelineEventCommand.ts +0 -95
  267. package/src/commands/ListIncidentRecordsCommand.ts +0 -96
  268. package/src/commands/ListRelatedItemsCommand.ts +0 -95
  269. package/src/commands/ListReplicationSetsCommand.ts +0 -95
  270. package/src/commands/ListResponsePlansCommand.ts +0 -95
  271. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  272. package/src/commands/ListTimelineEventsCommand.ts +0 -95
  273. package/src/commands/PutResourcePolicyCommand.ts +0 -95
  274. package/src/commands/StartIncidentCommand.ts +0 -95
  275. package/src/commands/TagResourceCommand.ts +0 -95
  276. package/src/commands/UntagResourceCommand.ts +0 -95
  277. package/src/commands/UpdateDeletionProtectionCommand.ts +0 -96
  278. package/src/commands/UpdateIncidentRecordCommand.ts +0 -97
  279. package/src/commands/UpdateRelatedItemsCommand.ts +0 -95
  280. package/src/commands/UpdateReplicationSetCommand.ts +0 -95
  281. package/src/commands/UpdateResponsePlanCommand.ts +0 -95
  282. package/src/commands/UpdateTimelineEventCommand.ts +0 -96
  283. package/src/endpoints.ts +0 -57
  284. package/src/index.ts +0 -41
  285. package/src/models/index.ts +0 -1
  286. package/src/models/models_0.ts +0 -2883
  287. package/src/pagination/GetResourcePoliciesPaginator.ts +0 -59
  288. package/src/pagination/Interfaces.ts +0 -8
  289. package/src/pagination/ListIncidentRecordsPaginator.ts +0 -59
  290. package/src/pagination/ListRelatedItemsPaginator.ts +0 -59
  291. package/src/pagination/ListReplicationSetsPaginator.ts +0 -59
  292. package/src/pagination/ListResponsePlansPaginator.ts +0 -59
  293. package/src/pagination/ListTimelineEventsPaginator.ts +0 -59
  294. package/src/protocols/Aws_restJson1.ts +0 -4502
  295. package/src/runtimeConfig.browser.ts +0 -41
  296. package/src/runtimeConfig.native.ts +0 -17
  297. package/src/runtimeConfig.shared.ts +0 -17
  298. package/src/runtimeConfig.ts +0 -46
  299. package/src/waiters/waitForWaitForReplicationSetActive.ts +0 -71
  300. package/src/waiters/waitForWaitForReplicationSetDeleted.ts +0 -58
  301. package/tsconfig.es.json +0 -10
  302. package/tsconfig.json +0 -33
  303. package/tsconfig.types.json +0 -9
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1ListTagsForResourceCommand,
17
- serializeAws_restJson1ListTagsForResourceCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
20
-
21
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
22
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists the tags that are attached to the specified response plan.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SSMIncidentsClient, ListTagsForResourceCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
30
- * // const { SSMIncidentsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
31
- * const client = new SSMIncidentsClient(config);
32
- * const command = new ListTagsForResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
37
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
38
- * @see {@link SSMIncidentsClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTagsForResourceCommand extends $Command<
42
- ListTagsForResourceCommandInput,
43
- ListTagsForResourceCommandOutput,
44
- SSMIncidentsClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListTagsForResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SSMIncidentsClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SSMIncidentsClient";
69
- const commandName = "ListTagsForResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1ListTagsForResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
90
- return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListTimelineEventsInput, ListTimelineEventsOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1ListTimelineEventsCommand,
17
- serializeAws_restJson1ListTimelineEventsCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
20
-
21
- export interface ListTimelineEventsCommandInput extends ListTimelineEventsInput {}
22
- export interface ListTimelineEventsCommandOutput extends ListTimelineEventsOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists timeline events of the specified incident record.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SSMIncidentsClient, ListTimelineEventsCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
30
- * // const { SSMIncidentsClient, ListTimelineEventsCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
31
- * const client = new SSMIncidentsClient(config);
32
- * const command = new ListTimelineEventsCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListTimelineEventsCommandInput} for command's `input` shape.
37
- * @see {@link ListTimelineEventsCommandOutput} for command's `response` shape.
38
- * @see {@link SSMIncidentsClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTimelineEventsCommand extends $Command<
42
- ListTimelineEventsCommandInput,
43
- ListTimelineEventsCommandOutput,
44
- SSMIncidentsClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListTimelineEventsCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SSMIncidentsClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListTimelineEventsCommandInput, ListTimelineEventsCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SSMIncidentsClient";
69
- const commandName = "ListTimelineEventsCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListTimelineEventsInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListTimelineEventsOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListTimelineEventsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1ListTimelineEventsCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTimelineEventsCommandOutput> {
90
- return deserializeAws_restJson1ListTimelineEventsCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { PutResourcePolicyInput, PutResourcePolicyOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1PutResourcePolicyCommand,
17
- serializeAws_restJson1PutResourcePolicyCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
20
-
21
- export interface PutResourcePolicyCommandInput extends PutResourcePolicyInput {}
22
- export interface PutResourcePolicyCommandOutput extends PutResourcePolicyOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Adds a resource policy to the specified response plan.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SSMIncidentsClient, PutResourcePolicyCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
30
- * // const { SSMIncidentsClient, PutResourcePolicyCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
31
- * const client = new SSMIncidentsClient(config);
32
- * const command = new PutResourcePolicyCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
37
- * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
38
- * @see {@link SSMIncidentsClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class PutResourcePolicyCommand extends $Command<
42
- PutResourcePolicyCommandInput,
43
- PutResourcePolicyCommandOutput,
44
- SSMIncidentsClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: PutResourcePolicyCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SSMIncidentsClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SSMIncidentsClient";
69
- const commandName = "PutResourcePolicyCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: PutResourcePolicyInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: PutResourcePolicyOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: PutResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1PutResourcePolicyCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutResourcePolicyCommandOutput> {
90
- return deserializeAws_restJson1PutResourcePolicyCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { StartIncidentInput, StartIncidentOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1StartIncidentCommand,
17
- serializeAws_restJson1StartIncidentCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
20
-
21
- export interface StartIncidentCommandInput extends StartIncidentInput {}
22
- export interface StartIncidentCommandOutput extends StartIncidentOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Used to start an incident from CloudWatch alarms, EventBridge events, or manually. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SSMIncidentsClient, StartIncidentCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
30
- * // const { SSMIncidentsClient, StartIncidentCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
31
- * const client = new SSMIncidentsClient(config);
32
- * const command = new StartIncidentCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link StartIncidentCommandInput} for command's `input` shape.
37
- * @see {@link StartIncidentCommandOutput} for command's `response` shape.
38
- * @see {@link SSMIncidentsClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class StartIncidentCommand extends $Command<
42
- StartIncidentCommandInput,
43
- StartIncidentCommandOutput,
44
- SSMIncidentsClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: StartIncidentCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SSMIncidentsClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<StartIncidentCommandInput, StartIncidentCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SSMIncidentsClient";
69
- const commandName = "StartIncidentCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: StartIncidentInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: StartIncidentOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: StartIncidentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1StartIncidentCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartIncidentCommandOutput> {
90
- return deserializeAws_restJson1StartIncidentCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1TagResourceCommand,
17
- serializeAws_restJson1TagResourceCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
20
-
21
- export interface TagResourceCommandInput extends TagResourceRequest {}
22
- export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Adds a tag to a response plan.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SSMIncidentsClient, TagResourceCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
30
- * // const { SSMIncidentsClient, TagResourceCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
31
- * const client = new SSMIncidentsClient(config);
32
- * const command = new TagResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link TagResourceCommandInput} for command's `input` shape.
37
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
38
- * @see {@link SSMIncidentsClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class TagResourceCommand extends $Command<
42
- TagResourceCommandInput,
43
- TagResourceCommandOutput,
44
- SSMIncidentsClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: TagResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SSMIncidentsClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SSMIncidentsClient";
69
- const commandName = "TagResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1TagResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
90
- return deserializeAws_restJson1TagResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1UntagResourceCommand,
17
- serializeAws_restJson1UntagResourceCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
20
-
21
- export interface UntagResourceCommandInput extends UntagResourceRequest {}
22
- export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Removes a tag from a resource.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SSMIncidentsClient, UntagResourceCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
30
- * // const { SSMIncidentsClient, UntagResourceCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
31
- * const client = new SSMIncidentsClient(config);
32
- * const command = new UntagResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
37
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
38
- * @see {@link SSMIncidentsClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class UntagResourceCommand extends $Command<
42
- UntagResourceCommandInput,
43
- UntagResourceCommandOutput,
44
- SSMIncidentsClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: UntagResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SSMIncidentsClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SSMIncidentsClient";
69
- const commandName = "UntagResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1UntagResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
90
- return deserializeAws_restJson1UntagResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UpdateDeletionProtectionInput, UpdateDeletionProtectionOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1UpdateDeletionProtectionCommand,
17
- serializeAws_restJson1UpdateDeletionProtectionCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
20
-
21
- export interface UpdateDeletionProtectionCommandInput extends UpdateDeletionProtectionInput {}
22
- export interface UpdateDeletionProtectionCommandOutput extends UpdateDeletionProtectionOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Update deletion protection to either allow or deny deletion of the final Region in a
26
- * replication set.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { SSMIncidentsClient, UpdateDeletionProtectionCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
31
- * // const { SSMIncidentsClient, UpdateDeletionProtectionCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
32
- * const client = new SSMIncidentsClient(config);
33
- * const command = new UpdateDeletionProtectionCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link UpdateDeletionProtectionCommandInput} for command's `input` shape.
38
- * @see {@link UpdateDeletionProtectionCommandOutput} for command's `response` shape.
39
- * @see {@link SSMIncidentsClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class UpdateDeletionProtectionCommand extends $Command<
43
- UpdateDeletionProtectionCommandInput,
44
- UpdateDeletionProtectionCommandOutput,
45
- SSMIncidentsClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: UpdateDeletionProtectionCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: SSMIncidentsClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<UpdateDeletionProtectionCommandInput, UpdateDeletionProtectionCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "SSMIncidentsClient";
70
- const commandName = "UpdateDeletionProtectionCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: UpdateDeletionProtectionInput.filterSensitiveLog,
76
- outputFilterSensitiveLog: UpdateDeletionProtectionOutput.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: UpdateDeletionProtectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_restJson1UpdateDeletionProtectionCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateDeletionProtectionCommandOutput> {
91
- return deserializeAws_restJson1UpdateDeletionProtectionCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }