@aws-sdk/client-shield 3.194.0 → 3.195.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 (176) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/ShieldClient.js +11 -8
  3. package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +10 -0
  4. package/dist-cjs/commands/AssociateDRTRoleCommand.js +10 -0
  5. package/dist-cjs/commands/AssociateHealthCheckCommand.js +10 -0
  6. package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
  7. package/dist-cjs/commands/CreateProtectionCommand.js +10 -0
  8. package/dist-cjs/commands/CreateProtectionGroupCommand.js +10 -0
  9. package/dist-cjs/commands/CreateSubscriptionCommand.js +10 -0
  10. package/dist-cjs/commands/DeleteProtectionCommand.js +10 -0
  11. package/dist-cjs/commands/DeleteProtectionGroupCommand.js +10 -0
  12. package/dist-cjs/commands/DeleteSubscriptionCommand.js +10 -0
  13. package/dist-cjs/commands/DescribeAttackCommand.js +10 -0
  14. package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +10 -0
  15. package/dist-cjs/commands/DescribeDRTAccessCommand.js +10 -0
  16. package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
  17. package/dist-cjs/commands/DescribeProtectionCommand.js +10 -0
  18. package/dist-cjs/commands/DescribeProtectionGroupCommand.js +10 -0
  19. package/dist-cjs/commands/DescribeSubscriptionCommand.js +10 -0
  20. package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
  21. package/dist-cjs/commands/DisableProactiveEngagementCommand.js +10 -0
  22. package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +10 -0
  23. package/dist-cjs/commands/DisassociateDRTRoleCommand.js +10 -0
  24. package/dist-cjs/commands/DisassociateHealthCheckCommand.js +10 -0
  25. package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
  26. package/dist-cjs/commands/EnableProactiveEngagementCommand.js +10 -0
  27. package/dist-cjs/commands/GetSubscriptionStateCommand.js +10 -0
  28. package/dist-cjs/commands/ListAttacksCommand.js +10 -0
  29. package/dist-cjs/commands/ListProtectionGroupsCommand.js +10 -0
  30. package/dist-cjs/commands/ListProtectionsCommand.js +10 -0
  31. package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +10 -0
  32. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  33. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  34. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  35. package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
  36. package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
  37. package/dist-cjs/commands/UpdateProtectionGroupCommand.js +10 -0
  38. package/dist-cjs/commands/UpdateSubscriptionCommand.js +10 -0
  39. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  40. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  41. package/dist-cjs/endpoint/ruleset.js +613 -0
  42. package/dist-cjs/runtimeConfig.shared.js +3 -3
  43. package/dist-es/ShieldClient.js +12 -9
  44. package/dist-es/commands/AssociateDRTLogBucketCommand.js +10 -0
  45. package/dist-es/commands/AssociateDRTRoleCommand.js +10 -0
  46. package/dist-es/commands/AssociateHealthCheckCommand.js +10 -0
  47. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
  48. package/dist-es/commands/CreateProtectionCommand.js +10 -0
  49. package/dist-es/commands/CreateProtectionGroupCommand.js +10 -0
  50. package/dist-es/commands/CreateSubscriptionCommand.js +10 -0
  51. package/dist-es/commands/DeleteProtectionCommand.js +10 -0
  52. package/dist-es/commands/DeleteProtectionGroupCommand.js +10 -0
  53. package/dist-es/commands/DeleteSubscriptionCommand.js +10 -0
  54. package/dist-es/commands/DescribeAttackCommand.js +10 -0
  55. package/dist-es/commands/DescribeAttackStatisticsCommand.js +10 -0
  56. package/dist-es/commands/DescribeDRTAccessCommand.js +10 -0
  57. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
  58. package/dist-es/commands/DescribeProtectionCommand.js +10 -0
  59. package/dist-es/commands/DescribeProtectionGroupCommand.js +10 -0
  60. package/dist-es/commands/DescribeSubscriptionCommand.js +10 -0
  61. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
  62. package/dist-es/commands/DisableProactiveEngagementCommand.js +10 -0
  63. package/dist-es/commands/DisassociateDRTLogBucketCommand.js +10 -0
  64. package/dist-es/commands/DisassociateDRTRoleCommand.js +10 -0
  65. package/dist-es/commands/DisassociateHealthCheckCommand.js +10 -0
  66. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
  67. package/dist-es/commands/EnableProactiveEngagementCommand.js +10 -0
  68. package/dist-es/commands/GetSubscriptionStateCommand.js +10 -0
  69. package/dist-es/commands/ListAttacksCommand.js +10 -0
  70. package/dist-es/commands/ListProtectionGroupsCommand.js +10 -0
  71. package/dist-es/commands/ListProtectionsCommand.js +10 -0
  72. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +10 -0
  73. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  74. package/dist-es/commands/TagResourceCommand.js +10 -0
  75. package/dist-es/commands/UntagResourceCommand.js +10 -0
  76. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
  77. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
  78. package/dist-es/commands/UpdateProtectionGroupCommand.js +10 -0
  79. package/dist-es/commands/UpdateSubscriptionCommand.js +10 -0
  80. package/dist-es/endpoint/EndpointParameters.js +8 -0
  81. package/dist-es/endpoint/endpointResolver.js +8 -0
  82. package/dist-es/endpoint/ruleset.js +610 -0
  83. package/dist-es/runtimeConfig.shared.js +2 -2
  84. package/dist-types/ShieldClient.d.ts +6 -9
  85. package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
  86. package/dist-types/commands/AssociateDRTRoleCommand.d.ts +2 -0
  87. package/dist-types/commands/AssociateHealthCheckCommand.d.ts +2 -0
  88. package/dist-types/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
  89. package/dist-types/commands/CreateProtectionCommand.d.ts +2 -0
  90. package/dist-types/commands/CreateProtectionGroupCommand.d.ts +2 -0
  91. package/dist-types/commands/CreateSubscriptionCommand.d.ts +2 -0
  92. package/dist-types/commands/DeleteProtectionCommand.d.ts +2 -0
  93. package/dist-types/commands/DeleteProtectionGroupCommand.d.ts +2 -0
  94. package/dist-types/commands/DeleteSubscriptionCommand.d.ts +2 -0
  95. package/dist-types/commands/DescribeAttackCommand.d.ts +2 -0
  96. package/dist-types/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
  97. package/dist-types/commands/DescribeDRTAccessCommand.d.ts +2 -0
  98. package/dist-types/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
  99. package/dist-types/commands/DescribeProtectionCommand.d.ts +2 -0
  100. package/dist-types/commands/DescribeProtectionGroupCommand.d.ts +2 -0
  101. package/dist-types/commands/DescribeSubscriptionCommand.d.ts +2 -0
  102. package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  103. package/dist-types/commands/DisableProactiveEngagementCommand.d.ts +2 -0
  104. package/dist-types/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
  105. package/dist-types/commands/DisassociateDRTRoleCommand.d.ts +2 -0
  106. package/dist-types/commands/DisassociateHealthCheckCommand.d.ts +2 -0
  107. package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  108. package/dist-types/commands/EnableProactiveEngagementCommand.d.ts +2 -0
  109. package/dist-types/commands/GetSubscriptionStateCommand.d.ts +2 -0
  110. package/dist-types/commands/ListAttacksCommand.d.ts +2 -0
  111. package/dist-types/commands/ListProtectionGroupsCommand.d.ts +2 -0
  112. package/dist-types/commands/ListProtectionsCommand.d.ts +2 -0
  113. package/dist-types/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
  114. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  115. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  116. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  117. package/dist-types/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  118. package/dist-types/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
  119. package/dist-types/commands/UpdateProtectionGroupCommand.d.ts +2 -0
  120. package/dist-types/commands/UpdateSubscriptionCommand.d.ts +2 -0
  121. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  122. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  123. package/dist-types/endpoint/ruleset.d.ts +2 -0
  124. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  125. package/dist-types/runtimeConfig.d.ts +4 -2
  126. package/dist-types/runtimeConfig.native.d.ts +4 -2
  127. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  128. package/dist-types/ts3.4/ShieldClient.d.ts +15 -8
  129. package/dist-types/ts3.4/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
  130. package/dist-types/ts3.4/commands/AssociateDRTRoleCommand.d.ts +2 -0
  131. package/dist-types/ts3.4/commands/AssociateHealthCheckCommand.d.ts +2 -0
  132. package/dist-types/ts3.4/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
  133. package/dist-types/ts3.4/commands/CreateProtectionCommand.d.ts +2 -0
  134. package/dist-types/ts3.4/commands/CreateProtectionGroupCommand.d.ts +2 -0
  135. package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +2 -0
  136. package/dist-types/ts3.4/commands/DeleteProtectionCommand.d.ts +2 -0
  137. package/dist-types/ts3.4/commands/DeleteProtectionGroupCommand.d.ts +2 -0
  138. package/dist-types/ts3.4/commands/DeleteSubscriptionCommand.d.ts +2 -0
  139. package/dist-types/ts3.4/commands/DescribeAttackCommand.d.ts +2 -0
  140. package/dist-types/ts3.4/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
  141. package/dist-types/ts3.4/commands/DescribeDRTAccessCommand.d.ts +2 -0
  142. package/dist-types/ts3.4/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
  143. package/dist-types/ts3.4/commands/DescribeProtectionCommand.d.ts +2 -0
  144. package/dist-types/ts3.4/commands/DescribeProtectionGroupCommand.d.ts +2 -0
  145. package/dist-types/ts3.4/commands/DescribeSubscriptionCommand.d.ts +2 -0
  146. package/dist-types/ts3.4/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  147. package/dist-types/ts3.4/commands/DisableProactiveEngagementCommand.d.ts +2 -0
  148. package/dist-types/ts3.4/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
  149. package/dist-types/ts3.4/commands/DisassociateDRTRoleCommand.d.ts +2 -0
  150. package/dist-types/ts3.4/commands/DisassociateHealthCheckCommand.d.ts +2 -0
  151. package/dist-types/ts3.4/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  152. package/dist-types/ts3.4/commands/EnableProactiveEngagementCommand.d.ts +2 -0
  153. package/dist-types/ts3.4/commands/GetSubscriptionStateCommand.d.ts +2 -0
  154. package/dist-types/ts3.4/commands/ListAttacksCommand.d.ts +2 -0
  155. package/dist-types/ts3.4/commands/ListProtectionGroupsCommand.d.ts +2 -0
  156. package/dist-types/ts3.4/commands/ListProtectionsCommand.d.ts +2 -0
  157. package/dist-types/ts3.4/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
  158. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  159. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  160. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  161. package/dist-types/ts3.4/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  162. package/dist-types/ts3.4/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
  163. package/dist-types/ts3.4/commands/UpdateProtectionGroupCommand.d.ts +2 -0
  164. package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +2 -0
  165. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  166. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  167. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  168. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  169. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  170. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  171. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  172. package/package.json +3 -1
  173. package/dist-cjs/endpoints.js +0 -149
  174. package/dist-es/endpoints.js +0 -145
  175. package/dist-types/endpoints.d.ts +0 -2
  176. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AssociateDRTLogBucketRequestFilterSensitiveLog, AssociateDRTLogBucketResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class AssociateDRTLogBucketCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateDRTLogBucketCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AssociateDRTRoleRequestFilterSensitiveLog, AssociateDRTRoleResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class AssociateDRTRoleCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateDRTRoleCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AssociateHealthCheckRequestFilterSensitiveLog, AssociateHealthCheckResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class AssociateHealthCheckCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateHealthCheckCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AssociateProactiveEngagementDetailsRequestFilterSensitiveLog, AssociateProactiveEngagementDetailsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class AssociateProactiveEngagementDetailsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateProactiveEngagementDetailsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateProtectionRequestFilterSensitiveLog, CreateProtectionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateProtectionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateProtectionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateProtectionGroupRequestFilterSensitiveLog, CreateProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateProtectionGroupCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateProtectionGroupCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateSubscriptionRequestFilterSensitiveLog, CreateSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateSubscriptionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateSubscriptionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteProtectionRequestFilterSensitiveLog, DeleteProtectionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteProtectionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteProtectionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteProtectionGroupRequestFilterSensitiveLog, DeleteProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteProtectionGroupCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteProtectionGroupCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteSubscriptionRequestFilterSensitiveLog, DeleteSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteSubscriptionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteSubscriptionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeAttackRequestFilterSensitiveLog, DescribeAttackResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeAttackCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAttackCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeAttackStatisticsRequestFilterSensitiveLog, DescribeAttackStatisticsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeAttackStatisticsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAttackStatisticsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeDRTAccessRequestFilterSensitiveLog, DescribeDRTAccessResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeDRTAccessCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeDRTAccessCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeEmergencyContactSettingsRequestFilterSensitiveLog, DescribeEmergencyContactSettingsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeEmergencyContactSettingsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEmergencyContactSettingsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeProtectionRequestFilterSensitiveLog, DescribeProtectionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeProtectionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeProtectionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeProtectionGroupRequestFilterSensitiveLog, DescribeProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeProtectionGroupCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeProtectionGroupCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeSubscriptionRequestFilterSensitiveLog, DescribeSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeSubscriptionCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeSubscriptionCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisableApplicationLayerAutomaticResponseRequestFilterSensitiveLog, DisableApplicationLayerAutomaticResponseResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisableApplicationLayerAutomaticResponseCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisableApplicationLayerAutomaticResponseCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisableProactiveEngagementRequestFilterSensitiveLog, DisableProactiveEngagementResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisableProactiveEngagementCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisableProactiveEngagementCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisassociateDRTLogBucketRequestFilterSensitiveLog, DisassociateDRTLogBucketResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisassociateDRTLogBucketCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateDRTLogBucketCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisassociateDRTRoleRequestFilterSensitiveLog, DisassociateDRTRoleResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisassociateDRTRoleCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateDRTRoleCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisassociateHealthCheckRequestFilterSensitiveLog, DisassociateHealthCheckResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisassociateHealthCheckCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateHealthCheckCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { EnableApplicationLayerAutomaticResponseRequestFilterSensitiveLog, EnableApplicationLayerAutomaticResponseResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class EnableApplicationLayerAutomaticResponseCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, EnableApplicationLayerAutomaticResponseCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { EnableProactiveEngagementRequestFilterSensitiveLog, EnableProactiveEngagementResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class EnableProactiveEngagementCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, EnableProactiveEngagementCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetSubscriptionStateRequestFilterSensitiveLog, GetSubscriptionStateResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetSubscriptionStateCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetSubscriptionStateCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListAttacksRequestFilterSensitiveLog, ListAttacksResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListAttacksCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListAttacksCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListProtectionGroupsRequestFilterSensitiveLog, ListProtectionGroupsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListProtectionGroupsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListProtectionGroupsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ShieldClient";