@aws-sdk/client-shield 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 (301) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Shield.js +0 -7
  3. package/dist-cjs/ShieldClient.js +0 -12
  4. package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +0 -26
  5. package/dist-cjs/commands/AssociateDRTRoleCommand.js +0 -31
  6. package/dist-cjs/commands/AssociateHealthCheckCommand.js +0 -26
  7. package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +0 -30
  8. package/dist-cjs/commands/CreateProtectionCommand.js +0 -26
  9. package/dist-cjs/commands/CreateProtectionGroupCommand.js +0 -25
  10. package/dist-cjs/commands/CreateSubscriptionCommand.js +0 -27
  11. package/dist-cjs/commands/DeleteProtectionCommand.js +0 -25
  12. package/dist-cjs/commands/DeleteProtectionGroupCommand.js +0 -25
  13. package/dist-cjs/commands/DeleteSubscriptionCommand.js +0 -27
  14. package/dist-cjs/commands/DescribeAttackCommand.js +0 -25
  15. package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +0 -27
  16. package/dist-cjs/commands/DescribeDRTAccessCommand.js +0 -25
  17. package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +0 -25
  18. package/dist-cjs/commands/DescribeProtectionCommand.js +0 -25
  19. package/dist-cjs/commands/DescribeProtectionGroupCommand.js +0 -25
  20. package/dist-cjs/commands/DescribeSubscriptionCommand.js +0 -25
  21. package/dist-cjs/commands/DisableProactiveEngagementCommand.js +0 -25
  22. package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +0 -26
  23. package/dist-cjs/commands/DisassociateDRTRoleCommand.js +0 -26
  24. package/dist-cjs/commands/DisassociateHealthCheckCommand.js +0 -26
  25. package/dist-cjs/commands/EnableProactiveEngagementCommand.js +0 -25
  26. package/dist-cjs/commands/GetSubscriptionStateCommand.js +0 -25
  27. package/dist-cjs/commands/ListAttacksCommand.js +0 -26
  28. package/dist-cjs/commands/ListProtectionGroupsCommand.js +0 -25
  29. package/dist-cjs/commands/ListProtectionsCommand.js +0 -25
  30. package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +0 -25
  31. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  32. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  33. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  34. package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +0 -25
  35. package/dist-cjs/commands/UpdateProtectionGroupCommand.js +0 -25
  36. package/dist-cjs/commands/UpdateSubscriptionCommand.js +0 -25
  37. package/dist-cjs/commands/index.js +36 -0
  38. package/dist-cjs/endpoints.js +1 -2
  39. package/dist-cjs/index.js +4 -41
  40. package/dist-cjs/models/index.js +0 -1
  41. package/dist-cjs/models/models_0.js +0 -313
  42. package/dist-cjs/pagination/Interfaces.js +0 -1
  43. package/dist-cjs/pagination/ListAttacksPaginator.js +0 -11
  44. package/dist-cjs/pagination/ListProtectionGroupsPaginator.js +0 -11
  45. package/dist-cjs/pagination/ListProtectionsPaginator.js +0 -11
  46. package/dist-cjs/pagination/ListResourcesInProtectionGroupPaginator.js +0 -11
  47. package/dist-cjs/pagination/index.js +8 -0
  48. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  49. package/dist-cjs/runtimeConfig.browser.js +1 -6
  50. package/dist-cjs/runtimeConfig.js +2 -7
  51. package/dist-cjs/runtimeConfig.native.js +0 -4
  52. package/dist-cjs/runtimeConfig.shared.js +0 -4
  53. package/dist-es/Shield.js +0 -1
  54. package/dist-es/ShieldClient.js +0 -1
  55. package/dist-es/commands/AssociateDRTLogBucketCommand.js +0 -1
  56. package/dist-es/commands/AssociateDRTRoleCommand.js +0 -1
  57. package/dist-es/commands/AssociateHealthCheckCommand.js +0 -1
  58. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +0 -1
  59. package/dist-es/commands/CreateProtectionCommand.js +0 -1
  60. package/dist-es/commands/CreateProtectionGroupCommand.js +0 -1
  61. package/dist-es/commands/CreateSubscriptionCommand.js +0 -1
  62. package/dist-es/commands/DeleteProtectionCommand.js +0 -1
  63. package/dist-es/commands/DeleteProtectionGroupCommand.js +0 -1
  64. package/dist-es/commands/DeleteSubscriptionCommand.js +0 -1
  65. package/dist-es/commands/DescribeAttackCommand.js +0 -1
  66. package/dist-es/commands/DescribeAttackStatisticsCommand.js +0 -1
  67. package/dist-es/commands/DescribeDRTAccessCommand.js +0 -1
  68. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +0 -1
  69. package/dist-es/commands/DescribeProtectionCommand.js +0 -1
  70. package/dist-es/commands/DescribeProtectionGroupCommand.js +0 -1
  71. package/dist-es/commands/DescribeSubscriptionCommand.js +0 -1
  72. package/dist-es/commands/DisableProactiveEngagementCommand.js +0 -1
  73. package/dist-es/commands/DisassociateDRTLogBucketCommand.js +0 -1
  74. package/dist-es/commands/DisassociateDRTRoleCommand.js +0 -1
  75. package/dist-es/commands/DisassociateHealthCheckCommand.js +0 -1
  76. package/dist-es/commands/EnableProactiveEngagementCommand.js +0 -1
  77. package/dist-es/commands/GetSubscriptionStateCommand.js +0 -1
  78. package/dist-es/commands/ListAttacksCommand.js +0 -1
  79. package/dist-es/commands/ListProtectionGroupsCommand.js +0 -1
  80. package/dist-es/commands/ListProtectionsCommand.js +0 -1
  81. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +0 -1
  82. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  83. package/dist-es/commands/TagResourceCommand.js +0 -1
  84. package/dist-es/commands/UntagResourceCommand.js +0 -1
  85. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +0 -1
  86. package/dist-es/commands/UpdateProtectionGroupCommand.js +0 -1
  87. package/dist-es/commands/UpdateSubscriptionCommand.js +0 -1
  88. package/dist-es/commands/index.js +33 -0
  89. package/dist-es/endpoints.js +1 -2
  90. package/dist-es/index.js +4 -41
  91. package/dist-es/models/index.js +0 -1
  92. package/dist-es/models/models_0.js +0 -1
  93. package/dist-es/pagination/Interfaces.js +0 -1
  94. package/dist-es/pagination/ListAttacksPaginator.js +0 -1
  95. package/dist-es/pagination/ListProtectionGroupsPaginator.js +0 -1
  96. package/dist-es/pagination/ListProtectionsPaginator.js +0 -1
  97. package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +0 -1
  98. package/dist-es/pagination/index.js +5 -0
  99. package/dist-es/protocols/Aws_json1_1.js +0 -1
  100. package/dist-es/runtimeConfig.browser.js +1 -2
  101. package/dist-es/runtimeConfig.js +2 -3
  102. package/dist-es/runtimeConfig.native.js +0 -1
  103. package/dist-es/runtimeConfig.shared.js +0 -1
  104. package/dist-types/commands/index.d.ts +33 -0
  105. package/dist-types/index.d.ts +4 -40
  106. package/dist-types/pagination/index.d.ts +5 -0
  107. package/dist-types/ts3.4/Shield.d.ts +34 -129
  108. package/dist-types/ts3.4/ShieldClient.d.ts +24 -92
  109. package/dist-types/ts3.4/commands/AssociateDRTLogBucketCommand.d.ts +2 -21
  110. package/dist-types/ts3.4/commands/AssociateDRTRoleCommand.d.ts +2 -26
  111. package/dist-types/ts3.4/commands/AssociateHealthCheckCommand.d.ts +2 -21
  112. package/dist-types/ts3.4/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -25
  113. package/dist-types/ts3.4/commands/CreateProtectionCommand.d.ts +2 -21
  114. package/dist-types/ts3.4/commands/CreateProtectionGroupCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +2 -22
  116. package/dist-types/ts3.4/commands/DeleteProtectionCommand.d.ts +2 -20
  117. package/dist-types/ts3.4/commands/DeleteProtectionGroupCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/DeleteSubscriptionCommand.d.ts +2 -22
  119. package/dist-types/ts3.4/commands/DescribeAttackCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/DescribeAttackStatisticsCommand.d.ts +2 -22
  121. package/dist-types/ts3.4/commands/DescribeDRTAccessCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -20
  123. package/dist-types/ts3.4/commands/DescribeProtectionCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/DescribeProtectionGroupCommand.d.ts +2 -20
  125. package/dist-types/ts3.4/commands/DescribeSubscriptionCommand.d.ts +2 -20
  126. package/dist-types/ts3.4/commands/DisableProactiveEngagementCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/DisassociateDRTLogBucketCommand.d.ts +2 -21
  128. package/dist-types/ts3.4/commands/DisassociateDRTRoleCommand.d.ts +2 -21
  129. package/dist-types/ts3.4/commands/DisassociateHealthCheckCommand.d.ts +2 -21
  130. package/dist-types/ts3.4/commands/EnableProactiveEngagementCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/GetSubscriptionStateCommand.d.ts +2 -20
  132. package/dist-types/ts3.4/commands/ListAttacksCommand.d.ts +2 -21
  133. package/dist-types/ts3.4/commands/ListProtectionGroupsCommand.d.ts +2 -20
  134. package/dist-types/ts3.4/commands/ListProtectionsCommand.d.ts +2 -20
  135. package/dist-types/ts3.4/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  137. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  138. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  139. package/dist-types/ts3.4/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -20
  140. package/dist-types/ts3.4/commands/UpdateProtectionGroupCommand.d.ts +2 -20
  141. package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +2 -20
  142. package/dist-types/ts3.4/commands/index.d.ts +33 -0
  143. package/dist-types/ts3.4/index.d.ts +4 -40
  144. package/dist-types/ts3.4/models/models_0.d.ts +292 -1041
  145. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  146. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  147. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  148. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  149. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  150. package/package.json +33 -30
  151. package/dist-cjs/Shield.js.map +0 -1
  152. package/dist-cjs/ShieldClient.js.map +0 -1
  153. package/dist-cjs/commands/AssociateDRTLogBucketCommand.js.map +0 -1
  154. package/dist-cjs/commands/AssociateDRTRoleCommand.js.map +0 -1
  155. package/dist-cjs/commands/AssociateHealthCheckCommand.js.map +0 -1
  156. package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js.map +0 -1
  157. package/dist-cjs/commands/CreateProtectionCommand.js.map +0 -1
  158. package/dist-cjs/commands/CreateProtectionGroupCommand.js.map +0 -1
  159. package/dist-cjs/commands/CreateSubscriptionCommand.js.map +0 -1
  160. package/dist-cjs/commands/DeleteProtectionCommand.js.map +0 -1
  161. package/dist-cjs/commands/DeleteProtectionGroupCommand.js.map +0 -1
  162. package/dist-cjs/commands/DeleteSubscriptionCommand.js.map +0 -1
  163. package/dist-cjs/commands/DescribeAttackCommand.js.map +0 -1
  164. package/dist-cjs/commands/DescribeAttackStatisticsCommand.js.map +0 -1
  165. package/dist-cjs/commands/DescribeDRTAccessCommand.js.map +0 -1
  166. package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js.map +0 -1
  167. package/dist-cjs/commands/DescribeProtectionCommand.js.map +0 -1
  168. package/dist-cjs/commands/DescribeProtectionGroupCommand.js.map +0 -1
  169. package/dist-cjs/commands/DescribeSubscriptionCommand.js.map +0 -1
  170. package/dist-cjs/commands/DisableProactiveEngagementCommand.js.map +0 -1
  171. package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js.map +0 -1
  172. package/dist-cjs/commands/DisassociateDRTRoleCommand.js.map +0 -1
  173. package/dist-cjs/commands/DisassociateHealthCheckCommand.js.map +0 -1
  174. package/dist-cjs/commands/EnableProactiveEngagementCommand.js.map +0 -1
  175. package/dist-cjs/commands/GetSubscriptionStateCommand.js.map +0 -1
  176. package/dist-cjs/commands/ListAttacksCommand.js.map +0 -1
  177. package/dist-cjs/commands/ListProtectionGroupsCommand.js.map +0 -1
  178. package/dist-cjs/commands/ListProtectionsCommand.js.map +0 -1
  179. package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js.map +0 -1
  180. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  181. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  182. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  183. package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js.map +0 -1
  184. package/dist-cjs/commands/UpdateProtectionGroupCommand.js.map +0 -1
  185. package/dist-cjs/commands/UpdateSubscriptionCommand.js.map +0 -1
  186. package/dist-cjs/endpoints.js.map +0 -1
  187. package/dist-cjs/index.js.map +0 -1
  188. package/dist-cjs/models/index.js.map +0 -1
  189. package/dist-cjs/models/models_0.js.map +0 -1
  190. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  191. package/dist-cjs/pagination/ListAttacksPaginator.js.map +0 -1
  192. package/dist-cjs/pagination/ListProtectionGroupsPaginator.js.map +0 -1
  193. package/dist-cjs/pagination/ListProtectionsPaginator.js.map +0 -1
  194. package/dist-cjs/pagination/ListResourcesInProtectionGroupPaginator.js.map +0 -1
  195. package/dist-cjs/protocols/Aws_json1_1.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-es/Shield.js.map +0 -1
  201. package/dist-es/ShieldClient.js.map +0 -1
  202. package/dist-es/commands/AssociateDRTLogBucketCommand.js.map +0 -1
  203. package/dist-es/commands/AssociateDRTRoleCommand.js.map +0 -1
  204. package/dist-es/commands/AssociateHealthCheckCommand.js.map +0 -1
  205. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js.map +0 -1
  206. package/dist-es/commands/CreateProtectionCommand.js.map +0 -1
  207. package/dist-es/commands/CreateProtectionGroupCommand.js.map +0 -1
  208. package/dist-es/commands/CreateSubscriptionCommand.js.map +0 -1
  209. package/dist-es/commands/DeleteProtectionCommand.js.map +0 -1
  210. package/dist-es/commands/DeleteProtectionGroupCommand.js.map +0 -1
  211. package/dist-es/commands/DeleteSubscriptionCommand.js.map +0 -1
  212. package/dist-es/commands/DescribeAttackCommand.js.map +0 -1
  213. package/dist-es/commands/DescribeAttackStatisticsCommand.js.map +0 -1
  214. package/dist-es/commands/DescribeDRTAccessCommand.js.map +0 -1
  215. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js.map +0 -1
  216. package/dist-es/commands/DescribeProtectionCommand.js.map +0 -1
  217. package/dist-es/commands/DescribeProtectionGroupCommand.js.map +0 -1
  218. package/dist-es/commands/DescribeSubscriptionCommand.js.map +0 -1
  219. package/dist-es/commands/DisableProactiveEngagementCommand.js.map +0 -1
  220. package/dist-es/commands/DisassociateDRTLogBucketCommand.js.map +0 -1
  221. package/dist-es/commands/DisassociateDRTRoleCommand.js.map +0 -1
  222. package/dist-es/commands/DisassociateHealthCheckCommand.js.map +0 -1
  223. package/dist-es/commands/EnableProactiveEngagementCommand.js.map +0 -1
  224. package/dist-es/commands/GetSubscriptionStateCommand.js.map +0 -1
  225. package/dist-es/commands/ListAttacksCommand.js.map +0 -1
  226. package/dist-es/commands/ListProtectionGroupsCommand.js.map +0 -1
  227. package/dist-es/commands/ListProtectionsCommand.js.map +0 -1
  228. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js.map +0 -1
  229. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  230. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  231. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  232. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js.map +0 -1
  233. package/dist-es/commands/UpdateProtectionGroupCommand.js.map +0 -1
  234. package/dist-es/commands/UpdateSubscriptionCommand.js.map +0 -1
  235. package/dist-es/endpoints.js.map +0 -1
  236. package/dist-es/index.js.map +0 -1
  237. package/dist-es/models/index.js.map +0 -1
  238. package/dist-es/models/models_0.js.map +0 -1
  239. package/dist-es/pagination/Interfaces.js.map +0 -1
  240. package/dist-es/pagination/ListAttacksPaginator.js.map +0 -1
  241. package/dist-es/pagination/ListProtectionGroupsPaginator.js.map +0 -1
  242. package/dist-es/pagination/ListProtectionsPaginator.js.map +0 -1
  243. package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js.map +0 -1
  244. package/dist-es/protocols/Aws_json1_1.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/jest.config.js +0 -4
  250. package/src/Shield.ts +0 -1236
  251. package/src/ShieldClient.ts +0 -398
  252. package/src/commands/AssociateDRTLogBucketCommand.ts +0 -96
  253. package/src/commands/AssociateDRTRoleCommand.ts +0 -101
  254. package/src/commands/AssociateHealthCheckCommand.ts +0 -96
  255. package/src/commands/AssociateProactiveEngagementDetailsCommand.ts +0 -111
  256. package/src/commands/CreateProtectionCommand.ts +0 -96
  257. package/src/commands/CreateProtectionGroupCommand.ts +0 -95
  258. package/src/commands/CreateSubscriptionCommand.ts +0 -97
  259. package/src/commands/DeleteProtectionCommand.ts +0 -95
  260. package/src/commands/DeleteProtectionGroupCommand.ts +0 -95
  261. package/src/commands/DeleteSubscriptionCommand.ts +0 -97
  262. package/src/commands/DescribeAttackCommand.ts +0 -95
  263. package/src/commands/DescribeAttackStatisticsCommand.ts +0 -97
  264. package/src/commands/DescribeDRTAccessCommand.ts +0 -95
  265. package/src/commands/DescribeEmergencyContactSettingsCommand.ts +0 -103
  266. package/src/commands/DescribeProtectionCommand.ts +0 -95
  267. package/src/commands/DescribeProtectionGroupCommand.ts +0 -95
  268. package/src/commands/DescribeSubscriptionCommand.ts +0 -95
  269. package/src/commands/DisableProactiveEngagementCommand.ts +0 -98
  270. package/src/commands/DisassociateDRTLogBucketCommand.ts +0 -96
  271. package/src/commands/DisassociateDRTRoleCommand.ts +0 -96
  272. package/src/commands/DisassociateHealthCheckCommand.ts +0 -96
  273. package/src/commands/EnableProactiveEngagementCommand.ts +0 -98
  274. package/src/commands/GetSubscriptionStateCommand.ts +0 -95
  275. package/src/commands/ListAttacksCommand.ts +0 -96
  276. package/src/commands/ListProtectionGroupsCommand.ts +0 -95
  277. package/src/commands/ListProtectionsCommand.ts +0 -95
  278. package/src/commands/ListResourcesInProtectionGroupCommand.ts +0 -103
  279. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  280. package/src/commands/TagResourceCommand.ts +0 -95
  281. package/src/commands/UntagResourceCommand.ts +0 -95
  282. package/src/commands/UpdateEmergencyContactSettingsCommand.ts +0 -103
  283. package/src/commands/UpdateProtectionGroupCommand.ts +0 -95
  284. package/src/commands/UpdateSubscriptionCommand.ts +0 -95
  285. package/src/endpoints.ts +0 -68
  286. package/src/index.ts +0 -41
  287. package/src/models/index.ts +0 -1
  288. package/src/models/models_0.ts +0 -2292
  289. package/src/pagination/Interfaces.ts +0 -8
  290. package/src/pagination/ListAttacksPaginator.ts +0 -55
  291. package/src/pagination/ListProtectionGroupsPaginator.ts +0 -59
  292. package/src/pagination/ListProtectionsPaginator.ts +0 -59
  293. package/src/pagination/ListResourcesInProtectionGroupPaginator.ts +0 -59
  294. package/src/protocols/Aws_json1_1.ts +0 -4754
  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/tsconfig.es.json +0 -10
  300. package/tsconfig.json +0 -33
  301. 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 { GetSubscriptionStateRequest, GetSubscriptionStateResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1GetSubscriptionStateCommand,
17
- serializeAws_json1_1GetSubscriptionStateCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
20
-
21
- export interface GetSubscriptionStateCommandInput extends GetSubscriptionStateRequest {}
22
- export interface GetSubscriptionStateCommandOutput extends GetSubscriptionStateResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns the <code>SubscriptionState</code>, either <code>Active</code> or <code>Inactive</code>.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ShieldClient, GetSubscriptionStateCommand } from "@aws-sdk/client-shield"; // ES Modules import
30
- * // const { ShieldClient, GetSubscriptionStateCommand } = require("@aws-sdk/client-shield"); // CommonJS import
31
- * const client = new ShieldClient(config);
32
- * const command = new GetSubscriptionStateCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetSubscriptionStateCommandInput} for command's `input` shape.
37
- * @see {@link GetSubscriptionStateCommandOutput} for command's `response` shape.
38
- * @see {@link ShieldClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class GetSubscriptionStateCommand extends $Command<
42
- GetSubscriptionStateCommandInput,
43
- GetSubscriptionStateCommandOutput,
44
- ShieldClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: GetSubscriptionStateCommandInput) {
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: ShieldClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<GetSubscriptionStateCommandInput, GetSubscriptionStateCommandOutput> {
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 = "ShieldClient";
69
- const commandName = "GetSubscriptionStateCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: GetSubscriptionStateRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: GetSubscriptionStateResponse.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: GetSubscriptionStateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1GetSubscriptionStateCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetSubscriptionStateCommandOutput> {
90
- return deserializeAws_json1_1GetSubscriptionStateCommand(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 { ListAttacksRequest, ListAttacksResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListAttacksCommand,
17
- serializeAws_json1_1ListAttacksCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
20
-
21
- export interface ListAttacksCommandInput extends ListAttacksRequest {}
22
- export interface ListAttacksCommandOutput extends ListAttacksResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns all ongoing DDoS attacks or all DDoS attacks during a specified time
26
- * period.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { ShieldClient, ListAttacksCommand } from "@aws-sdk/client-shield"; // ES Modules import
31
- * // const { ShieldClient, ListAttacksCommand } = require("@aws-sdk/client-shield"); // CommonJS import
32
- * const client = new ShieldClient(config);
33
- * const command = new ListAttacksCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link ListAttacksCommandInput} for command's `input` shape.
38
- * @see {@link ListAttacksCommandOutput} for command's `response` shape.
39
- * @see {@link ShieldClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class ListAttacksCommand extends $Command<
43
- ListAttacksCommandInput,
44
- ListAttacksCommandOutput,
45
- ShieldClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: ListAttacksCommandInput) {
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: ShieldClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<ListAttacksCommandInput, ListAttacksCommandOutput> {
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 = "ShieldClient";
70
- const commandName = "ListAttacksCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: ListAttacksRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: ListAttacksResponse.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: ListAttacksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1ListAttacksCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListAttacksCommandOutput> {
91
- return deserializeAws_json1_1ListAttacksCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -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 { ListProtectionGroupsRequest, ListProtectionGroupsResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListProtectionGroupsCommand,
17
- serializeAws_json1_1ListProtectionGroupsCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
20
-
21
- export interface ListProtectionGroupsCommandInput extends ListProtectionGroupsRequest {}
22
- export interface ListProtectionGroupsCommandOutput extends ListProtectionGroupsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the <a>ProtectionGroup</a> objects for the account.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ShieldClient, ListProtectionGroupsCommand } from "@aws-sdk/client-shield"; // ES Modules import
30
- * // const { ShieldClient, ListProtectionGroupsCommand } = require("@aws-sdk/client-shield"); // CommonJS import
31
- * const client = new ShieldClient(config);
32
- * const command = new ListProtectionGroupsCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListProtectionGroupsCommandInput} for command's `input` shape.
37
- * @see {@link ListProtectionGroupsCommandOutput} for command's `response` shape.
38
- * @see {@link ShieldClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListProtectionGroupsCommand extends $Command<
42
- ListProtectionGroupsCommandInput,
43
- ListProtectionGroupsCommandOutput,
44
- ShieldClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListProtectionGroupsCommandInput) {
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: ShieldClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListProtectionGroupsCommandInput, ListProtectionGroupsCommandOutput> {
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 = "ShieldClient";
69
- const commandName = "ListProtectionGroupsCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListProtectionGroupsRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListProtectionGroupsResponse.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: ListProtectionGroupsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1ListProtectionGroupsCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListProtectionGroupsCommandOutput> {
90
- return deserializeAws_json1_1ListProtectionGroupsCommand(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 { ListProtectionsRequest, ListProtectionsResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListProtectionsCommand,
17
- serializeAws_json1_1ListProtectionsCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
20
-
21
- export interface ListProtectionsCommandInput extends ListProtectionsRequest {}
22
- export interface ListProtectionsCommandOutput extends ListProtectionsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists all <a>Protection</a> objects for the account.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ShieldClient, ListProtectionsCommand } from "@aws-sdk/client-shield"; // ES Modules import
30
- * // const { ShieldClient, ListProtectionsCommand } = require("@aws-sdk/client-shield"); // CommonJS import
31
- * const client = new ShieldClient(config);
32
- * const command = new ListProtectionsCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListProtectionsCommandInput} for command's `input` shape.
37
- * @see {@link ListProtectionsCommandOutput} for command's `response` shape.
38
- * @see {@link ShieldClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListProtectionsCommand extends $Command<
42
- ListProtectionsCommandInput,
43
- ListProtectionsCommandOutput,
44
- ShieldClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListProtectionsCommandInput) {
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: ShieldClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListProtectionsCommandInput, ListProtectionsCommandOutput> {
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 = "ShieldClient";
69
- const commandName = "ListProtectionsCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListProtectionsRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListProtectionsResponse.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: ListProtectionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1ListProtectionsCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListProtectionsCommandOutput> {
90
- return deserializeAws_json1_1ListProtectionsCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,103 +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 { ListResourcesInProtectionGroupRequest, ListResourcesInProtectionGroupResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListResourcesInProtectionGroupCommand,
17
- serializeAws_json1_1ListResourcesInProtectionGroupCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
20
-
21
- export interface ListResourcesInProtectionGroupCommandInput extends ListResourcesInProtectionGroupRequest {}
22
- export interface ListResourcesInProtectionGroupCommandOutput
23
- extends ListResourcesInProtectionGroupResponse,
24
- __MetadataBearer {}
25
-
26
- /**
27
- * <p>Retrieves the resources that are included in the protection group. </p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { ShieldClient, ListResourcesInProtectionGroupCommand } from "@aws-sdk/client-shield"; // ES Modules import
32
- * // const { ShieldClient, ListResourcesInProtectionGroupCommand } = require("@aws-sdk/client-shield"); // CommonJS import
33
- * const client = new ShieldClient(config);
34
- * const command = new ListResourcesInProtectionGroupCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link ListResourcesInProtectionGroupCommandInput} for command's `input` shape.
39
- * @see {@link ListResourcesInProtectionGroupCommandOutput} for command's `response` shape.
40
- * @see {@link ShieldClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class ListResourcesInProtectionGroupCommand extends $Command<
44
- ListResourcesInProtectionGroupCommandInput,
45
- ListResourcesInProtectionGroupCommandOutput,
46
- ShieldClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: ListResourcesInProtectionGroupCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: ShieldClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<ListResourcesInProtectionGroupCommandInput, ListResourcesInProtectionGroupCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "ShieldClient";
71
- const commandName = "ListResourcesInProtectionGroupCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: ListResourcesInProtectionGroupRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ListResourcesInProtectionGroupResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(
88
- input: ListResourcesInProtectionGroupCommandInput,
89
- context: __SerdeContext
90
- ): Promise<__HttpRequest> {
91
- return serializeAws_json1_1ListResourcesInProtectionGroupCommand(input, context);
92
- }
93
-
94
- private deserialize(
95
- output: __HttpResponse,
96
- context: __SerdeContext
97
- ): Promise<ListResourcesInProtectionGroupCommandOutput> {
98
- return deserializeAws_json1_1ListResourcesInProtectionGroupCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -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_json1_1ListTagsForResourceCommand,
17
- serializeAws_json1_1ListTagsForResourceCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
20
-
21
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
22
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ShieldClient, ListTagsForResourceCommand } from "@aws-sdk/client-shield"; // ES Modules import
30
- * // const { ShieldClient, ListTagsForResourceCommand } = require("@aws-sdk/client-shield"); // CommonJS import
31
- * const client = new ShieldClient(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 ShieldClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTagsForResourceCommand extends $Command<
42
- ListTagsForResourceCommandInput,
43
- ListTagsForResourceCommandOutput,
44
- ShieldClientResolvedConfig
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: ShieldClientResolvedConfig,
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 = "ShieldClient";
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_json1_1ListTagsForResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
90
- return deserializeAws_json1_1ListTagsForResourceCommand(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_json1_1TagResourceCommand,
17
- serializeAws_json1_1TagResourceCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
20
-
21
- export interface TagResourceCommandInput extends TagResourceRequest {}
22
- export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Adds or updates tags for a resource in Shield.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ShieldClient, TagResourceCommand } from "@aws-sdk/client-shield"; // ES Modules import
30
- * // const { ShieldClient, TagResourceCommand } = require("@aws-sdk/client-shield"); // CommonJS import
31
- * const client = new ShieldClient(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 ShieldClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class TagResourceCommand extends $Command<
42
- TagResourceCommandInput,
43
- TagResourceCommandOutput,
44
- ShieldClientResolvedConfig
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: ShieldClientResolvedConfig,
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 = "ShieldClient";
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_json1_1TagResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
90
- return deserializeAws_json1_1TagResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }