@aws-sdk/client-shield 3.194.0 → 3.196.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 +19 -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 +5 -3
  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
@@ -0,0 +1,613 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ exports.ruleSet = {
5
+ version: "1.0",
6
+ parameters: {
7
+ Region: {
8
+ builtIn: "AWS::Region",
9
+ required: false,
10
+ documentation: "The AWS region used to dispatch the request.",
11
+ type: "String",
12
+ },
13
+ UseDualStack: {
14
+ builtIn: "AWS::UseDualStack",
15
+ required: true,
16
+ default: false,
17
+ documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
18
+ type: "Boolean",
19
+ },
20
+ UseFIPS: {
21
+ builtIn: "AWS::UseFIPS",
22
+ required: true,
23
+ default: false,
24
+ documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
25
+ type: "Boolean",
26
+ },
27
+ Endpoint: {
28
+ builtIn: "SDK::Endpoint",
29
+ required: false,
30
+ documentation: "Override the endpoint used to send this request",
31
+ type: "String",
32
+ },
33
+ },
34
+ rules: [
35
+ {
36
+ conditions: [
37
+ {
38
+ fn: "aws.partition",
39
+ argv: [
40
+ {
41
+ ref: "Region",
42
+ },
43
+ ],
44
+ assign: "PartitionResult",
45
+ },
46
+ ],
47
+ type: "tree",
48
+ rules: [
49
+ {
50
+ conditions: [
51
+ {
52
+ fn: "isSet",
53
+ argv: [
54
+ {
55
+ ref: "Endpoint",
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ fn: "parseURL",
61
+ argv: [
62
+ {
63
+ ref: "Endpoint",
64
+ },
65
+ ],
66
+ assign: "url",
67
+ },
68
+ ],
69
+ type: "tree",
70
+ rules: [
71
+ {
72
+ conditions: [
73
+ {
74
+ fn: "booleanEquals",
75
+ argv: [
76
+ {
77
+ ref: "UseFIPS",
78
+ },
79
+ true,
80
+ ],
81
+ },
82
+ ],
83
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
84
+ type: "error",
85
+ },
86
+ {
87
+ conditions: [],
88
+ type: "tree",
89
+ rules: [
90
+ {
91
+ conditions: [
92
+ {
93
+ fn: "booleanEquals",
94
+ argv: [
95
+ {
96
+ ref: "UseDualStack",
97
+ },
98
+ true,
99
+ ],
100
+ },
101
+ ],
102
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
103
+ type: "error",
104
+ },
105
+ {
106
+ conditions: [],
107
+ endpoint: {
108
+ url: {
109
+ ref: "Endpoint",
110
+ },
111
+ properties: {},
112
+ headers: {},
113
+ },
114
+ type: "endpoint",
115
+ },
116
+ ],
117
+ },
118
+ ],
119
+ },
120
+ {
121
+ conditions: [
122
+ {
123
+ fn: "stringEquals",
124
+ argv: [
125
+ {
126
+ fn: "getAttr",
127
+ argv: [
128
+ {
129
+ ref: "PartitionResult",
130
+ },
131
+ "name",
132
+ ],
133
+ },
134
+ "aws",
135
+ ],
136
+ },
137
+ ],
138
+ type: "tree",
139
+ rules: [
140
+ {
141
+ conditions: [
142
+ {
143
+ fn: "booleanEquals",
144
+ argv: [
145
+ {
146
+ ref: "UseFIPS",
147
+ },
148
+ true,
149
+ ],
150
+ },
151
+ {
152
+ fn: "booleanEquals",
153
+ argv: [
154
+ {
155
+ ref: "UseDualStack",
156
+ },
157
+ true,
158
+ ],
159
+ },
160
+ ],
161
+ type: "tree",
162
+ rules: [
163
+ {
164
+ conditions: [
165
+ {
166
+ fn: "booleanEquals",
167
+ argv: [
168
+ true,
169
+ {
170
+ fn: "getAttr",
171
+ argv: [
172
+ {
173
+ ref: "PartitionResult",
174
+ },
175
+ "supportsFIPS",
176
+ ],
177
+ },
178
+ ],
179
+ },
180
+ {
181
+ fn: "booleanEquals",
182
+ argv: [
183
+ true,
184
+ {
185
+ fn: "getAttr",
186
+ argv: [
187
+ {
188
+ ref: "PartitionResult",
189
+ },
190
+ "supportsDualStack",
191
+ ],
192
+ },
193
+ ],
194
+ },
195
+ ],
196
+ type: "tree",
197
+ rules: [
198
+ {
199
+ conditions: [],
200
+ endpoint: {
201
+ url: "https://shield-fips.{Region}.api.aws",
202
+ properties: {
203
+ authSchemes: [
204
+ {
205
+ name: "sigv4",
206
+ signingName: "shield",
207
+ signingRegion: "us-east-1",
208
+ },
209
+ ],
210
+ },
211
+ headers: {},
212
+ },
213
+ type: "endpoint",
214
+ },
215
+ ],
216
+ },
217
+ {
218
+ conditions: [],
219
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
220
+ type: "error",
221
+ },
222
+ ],
223
+ },
224
+ {
225
+ conditions: [
226
+ {
227
+ fn: "booleanEquals",
228
+ argv: [
229
+ {
230
+ ref: "UseFIPS",
231
+ },
232
+ true,
233
+ ],
234
+ },
235
+ ],
236
+ type: "tree",
237
+ rules: [
238
+ {
239
+ conditions: [
240
+ {
241
+ fn: "booleanEquals",
242
+ argv: [
243
+ true,
244
+ {
245
+ fn: "getAttr",
246
+ argv: [
247
+ {
248
+ ref: "PartitionResult",
249
+ },
250
+ "supportsFIPS",
251
+ ],
252
+ },
253
+ ],
254
+ },
255
+ ],
256
+ type: "tree",
257
+ rules: [
258
+ {
259
+ conditions: [],
260
+ endpoint: {
261
+ url: "https://shield-fips.us-east-1.amazonaws.com",
262
+ properties: {
263
+ authSchemes: [
264
+ {
265
+ name: "sigv4",
266
+ signingName: "shield",
267
+ signingRegion: "us-east-1",
268
+ },
269
+ ],
270
+ },
271
+ headers: {},
272
+ },
273
+ type: "endpoint",
274
+ },
275
+ ],
276
+ },
277
+ {
278
+ conditions: [],
279
+ error: "FIPS is enabled but this partition does not support FIPS",
280
+ type: "error",
281
+ },
282
+ ],
283
+ },
284
+ {
285
+ conditions: [
286
+ {
287
+ fn: "booleanEquals",
288
+ argv: [
289
+ {
290
+ ref: "UseDualStack",
291
+ },
292
+ true,
293
+ ],
294
+ },
295
+ ],
296
+ type: "tree",
297
+ rules: [
298
+ {
299
+ conditions: [
300
+ {
301
+ fn: "booleanEquals",
302
+ argv: [
303
+ true,
304
+ {
305
+ fn: "getAttr",
306
+ argv: [
307
+ {
308
+ ref: "PartitionResult",
309
+ },
310
+ "supportsDualStack",
311
+ ],
312
+ },
313
+ ],
314
+ },
315
+ ],
316
+ type: "tree",
317
+ rules: [
318
+ {
319
+ conditions: [],
320
+ endpoint: {
321
+ url: "https://shield.{Region}.api.aws",
322
+ properties: {
323
+ authSchemes: [
324
+ {
325
+ name: "sigv4",
326
+ signingName: "shield",
327
+ signingRegion: "us-east-1",
328
+ },
329
+ ],
330
+ },
331
+ headers: {},
332
+ },
333
+ type: "endpoint",
334
+ },
335
+ ],
336
+ },
337
+ {
338
+ conditions: [],
339
+ error: "DualStack is enabled but this partition does not support DualStack",
340
+ type: "error",
341
+ },
342
+ ],
343
+ },
344
+ {
345
+ conditions: [],
346
+ endpoint: {
347
+ url: "https://shield.us-east-1.amazonaws.com",
348
+ properties: {
349
+ authSchemes: [
350
+ {
351
+ name: "sigv4",
352
+ signingName: "shield",
353
+ signingRegion: "us-east-1",
354
+ },
355
+ ],
356
+ },
357
+ headers: {},
358
+ },
359
+ type: "endpoint",
360
+ },
361
+ ],
362
+ },
363
+ {
364
+ conditions: [
365
+ {
366
+ fn: "booleanEquals",
367
+ argv: [
368
+ {
369
+ ref: "UseFIPS",
370
+ },
371
+ true,
372
+ ],
373
+ },
374
+ {
375
+ fn: "booleanEquals",
376
+ argv: [
377
+ {
378
+ ref: "UseDualStack",
379
+ },
380
+ true,
381
+ ],
382
+ },
383
+ ],
384
+ type: "tree",
385
+ rules: [
386
+ {
387
+ conditions: [
388
+ {
389
+ fn: "booleanEquals",
390
+ argv: [
391
+ true,
392
+ {
393
+ fn: "getAttr",
394
+ argv: [
395
+ {
396
+ ref: "PartitionResult",
397
+ },
398
+ "supportsFIPS",
399
+ ],
400
+ },
401
+ ],
402
+ },
403
+ {
404
+ fn: "booleanEquals",
405
+ argv: [
406
+ true,
407
+ {
408
+ fn: "getAttr",
409
+ argv: [
410
+ {
411
+ ref: "PartitionResult",
412
+ },
413
+ "supportsDualStack",
414
+ ],
415
+ },
416
+ ],
417
+ },
418
+ ],
419
+ type: "tree",
420
+ rules: [
421
+ {
422
+ conditions: [],
423
+ endpoint: {
424
+ url: "https://shield-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
425
+ properties: {},
426
+ headers: {},
427
+ },
428
+ type: "endpoint",
429
+ },
430
+ ],
431
+ },
432
+ {
433
+ conditions: [],
434
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
435
+ type: "error",
436
+ },
437
+ ],
438
+ },
439
+ {
440
+ conditions: [
441
+ {
442
+ fn: "booleanEquals",
443
+ argv: [
444
+ {
445
+ ref: "UseFIPS",
446
+ },
447
+ true,
448
+ ],
449
+ },
450
+ ],
451
+ type: "tree",
452
+ rules: [
453
+ {
454
+ conditions: [
455
+ {
456
+ fn: "booleanEquals",
457
+ argv: [
458
+ true,
459
+ {
460
+ fn: "getAttr",
461
+ argv: [
462
+ {
463
+ ref: "PartitionResult",
464
+ },
465
+ "supportsFIPS",
466
+ ],
467
+ },
468
+ ],
469
+ },
470
+ ],
471
+ type: "tree",
472
+ rules: [
473
+ {
474
+ conditions: [],
475
+ type: "tree",
476
+ rules: [
477
+ {
478
+ conditions: [
479
+ {
480
+ fn: "stringEquals",
481
+ argv: [
482
+ {
483
+ ref: "Region",
484
+ },
485
+ "aws-global",
486
+ ],
487
+ },
488
+ ],
489
+ endpoint: {
490
+ url: "https://shield-fips.us-east-1.amazonaws.com",
491
+ properties: {},
492
+ headers: {},
493
+ },
494
+ type: "endpoint",
495
+ },
496
+ {
497
+ conditions: [],
498
+ endpoint: {
499
+ url: "https://shield-fips.{Region}.{PartitionResult#dnsSuffix}",
500
+ properties: {},
501
+ headers: {},
502
+ },
503
+ type: "endpoint",
504
+ },
505
+ ],
506
+ },
507
+ ],
508
+ },
509
+ {
510
+ conditions: [],
511
+ error: "FIPS is enabled but this partition does not support FIPS",
512
+ type: "error",
513
+ },
514
+ ],
515
+ },
516
+ {
517
+ conditions: [
518
+ {
519
+ fn: "booleanEquals",
520
+ argv: [
521
+ {
522
+ ref: "UseDualStack",
523
+ },
524
+ true,
525
+ ],
526
+ },
527
+ ],
528
+ type: "tree",
529
+ rules: [
530
+ {
531
+ conditions: [
532
+ {
533
+ fn: "booleanEquals",
534
+ argv: [
535
+ true,
536
+ {
537
+ fn: "getAttr",
538
+ argv: [
539
+ {
540
+ ref: "PartitionResult",
541
+ },
542
+ "supportsDualStack",
543
+ ],
544
+ },
545
+ ],
546
+ },
547
+ ],
548
+ type: "tree",
549
+ rules: [
550
+ {
551
+ conditions: [],
552
+ endpoint: {
553
+ url: "https://shield.{Region}.{PartitionResult#dualStackDnsSuffix}",
554
+ properties: {},
555
+ headers: {},
556
+ },
557
+ type: "endpoint",
558
+ },
559
+ ],
560
+ },
561
+ {
562
+ conditions: [],
563
+ error: "DualStack is enabled but this partition does not support DualStack",
564
+ type: "error",
565
+ },
566
+ ],
567
+ },
568
+ {
569
+ conditions: [],
570
+ type: "tree",
571
+ rules: [
572
+ {
573
+ conditions: [
574
+ {
575
+ fn: "stringEquals",
576
+ argv: [
577
+ {
578
+ ref: "Region",
579
+ },
580
+ "aws-global",
581
+ ],
582
+ },
583
+ ],
584
+ endpoint: {
585
+ url: "https://shield.us-east-1.amazonaws.com",
586
+ properties: {
587
+ authSchemes: [
588
+ {
589
+ name: "sigv4",
590
+ signingName: "shield",
591
+ signingRegion: "us-east-1",
592
+ },
593
+ ],
594
+ },
595
+ headers: {},
596
+ },
597
+ type: "endpoint",
598
+ },
599
+ {
600
+ conditions: [],
601
+ endpoint: {
602
+ url: "https://shield.{Region}.{PartitionResult#dnsSuffix}",
603
+ properties: {},
604
+ headers: {},
605
+ },
606
+ type: "endpoint",
607
+ },
608
+ ],
609
+ },
610
+ ],
611
+ },
612
+ ],
613
+ };
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
- const endpoints_1 = require("./endpoints");
5
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a, _b, _c, _d, _e;
8
8
  return ({
9
9
  apiVersion: "2016-06-02",
10
10
  disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
12
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
11
+ endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
+ logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
13
  serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Shield",
14
14
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
15
  });
@@ -1,5 +1,6 @@
1
- import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
1
+ import { resolveRegionConfig } from "@aws-sdk/config-resolver";
2
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
+ import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
4
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
5
6
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
10
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
13
  export class ShieldClient extends __Client {
12
14
  constructor(configuration) {
13
15
  const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
16
+ const _config_1 = resolveClientEndpointParameters(_config_0);
17
+ const _config_2 = resolveRegionConfig(_config_1);
18
+ const _config_3 = resolveEndpointConfig(_config_2);
19
+ const _config_4 = resolveRetryConfig(_config_3);
20
+ const _config_5 = resolveHostHeaderConfig(_config_4);
21
+ const _config_6 = resolveAwsAuthConfig(_config_5);
22
+ const _config_7 = resolveUserAgentConfig(_config_6);
23
+ super(_config_7);
24
+ this.config = _config_7;
22
25
  this.middlewareStack.use(getRetryPlugin(this.config));
23
26
  this.middlewareStack.use(getContentLengthPlugin(this.config));
24
27
  this.middlewareStack.use(getHostHeaderPlugin(this.config));