@aws-sdk/client-sts 3.231.0 → 3.235.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.
- package/dist-cjs/endpoint/ruleset.js +4 -876
- package/dist-es/endpoint/ruleset.js +4 -876
- package/package.json +7 -7
|
@@ -1,879 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
UseGlobalEndpoint: {
|
|
34
|
-
builtIn: "AWS::STS::UseGlobalEndpoint",
|
|
35
|
-
required: true,
|
|
36
|
-
default: false,
|
|
37
|
-
documentation: "Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",
|
|
38
|
-
type: "Boolean",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
rules: [
|
|
42
|
-
{
|
|
43
|
-
conditions: [
|
|
44
|
-
{
|
|
45
|
-
fn: "aws.partition",
|
|
46
|
-
argv: [
|
|
47
|
-
{
|
|
48
|
-
ref: "Region",
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
assign: "PartitionResult",
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
type: "tree",
|
|
55
|
-
rules: [
|
|
56
|
-
{
|
|
57
|
-
conditions: [
|
|
58
|
-
{
|
|
59
|
-
fn: "booleanEquals",
|
|
60
|
-
argv: [
|
|
61
|
-
{
|
|
62
|
-
ref: "UseGlobalEndpoint",
|
|
63
|
-
},
|
|
64
|
-
true,
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
fn: "booleanEquals",
|
|
69
|
-
argv: [
|
|
70
|
-
{
|
|
71
|
-
ref: "UseFIPS",
|
|
72
|
-
},
|
|
73
|
-
false,
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
fn: "booleanEquals",
|
|
78
|
-
argv: [
|
|
79
|
-
{
|
|
80
|
-
ref: "UseDualStack",
|
|
81
|
-
},
|
|
82
|
-
false,
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
fn: "not",
|
|
87
|
-
argv: [
|
|
88
|
-
{
|
|
89
|
-
fn: "isSet",
|
|
90
|
-
argv: [
|
|
91
|
-
{
|
|
92
|
-
ref: "Endpoint",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
type: "tree",
|
|
100
|
-
rules: [
|
|
101
|
-
{
|
|
102
|
-
conditions: [
|
|
103
|
-
{
|
|
104
|
-
fn: "stringEquals",
|
|
105
|
-
argv: [
|
|
106
|
-
{
|
|
107
|
-
ref: "Region",
|
|
108
|
-
},
|
|
109
|
-
"ap-northeast-1",
|
|
110
|
-
],
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
endpoint: {
|
|
114
|
-
url: "https://sts.amazonaws.com",
|
|
115
|
-
properties: {
|
|
116
|
-
authSchemes: [
|
|
117
|
-
{
|
|
118
|
-
name: "sigv4",
|
|
119
|
-
signingName: "sts",
|
|
120
|
-
signingRegion: "us-east-1",
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
},
|
|
124
|
-
headers: {},
|
|
125
|
-
},
|
|
126
|
-
type: "endpoint",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
conditions: [
|
|
130
|
-
{
|
|
131
|
-
fn: "stringEquals",
|
|
132
|
-
argv: [
|
|
133
|
-
{
|
|
134
|
-
ref: "Region",
|
|
135
|
-
},
|
|
136
|
-
"ap-south-1",
|
|
137
|
-
],
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
endpoint: {
|
|
141
|
-
url: "https://sts.amazonaws.com",
|
|
142
|
-
properties: {
|
|
143
|
-
authSchemes: [
|
|
144
|
-
{
|
|
145
|
-
name: "sigv4",
|
|
146
|
-
signingName: "sts",
|
|
147
|
-
signingRegion: "us-east-1",
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
headers: {},
|
|
152
|
-
},
|
|
153
|
-
type: "endpoint",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
conditions: [
|
|
157
|
-
{
|
|
158
|
-
fn: "stringEquals",
|
|
159
|
-
argv: [
|
|
160
|
-
{
|
|
161
|
-
ref: "Region",
|
|
162
|
-
},
|
|
163
|
-
"ap-southeast-1",
|
|
164
|
-
],
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
endpoint: {
|
|
168
|
-
url: "https://sts.amazonaws.com",
|
|
169
|
-
properties: {
|
|
170
|
-
authSchemes: [
|
|
171
|
-
{
|
|
172
|
-
name: "sigv4",
|
|
173
|
-
signingName: "sts",
|
|
174
|
-
signingRegion: "us-east-1",
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
},
|
|
178
|
-
headers: {},
|
|
179
|
-
},
|
|
180
|
-
type: "endpoint",
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
conditions: [
|
|
184
|
-
{
|
|
185
|
-
fn: "stringEquals",
|
|
186
|
-
argv: [
|
|
187
|
-
{
|
|
188
|
-
ref: "Region",
|
|
189
|
-
},
|
|
190
|
-
"ap-southeast-2",
|
|
191
|
-
],
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
endpoint: {
|
|
195
|
-
url: "https://sts.amazonaws.com",
|
|
196
|
-
properties: {
|
|
197
|
-
authSchemes: [
|
|
198
|
-
{
|
|
199
|
-
name: "sigv4",
|
|
200
|
-
signingName: "sts",
|
|
201
|
-
signingRegion: "us-east-1",
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
headers: {},
|
|
206
|
-
},
|
|
207
|
-
type: "endpoint",
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
conditions: [
|
|
211
|
-
{
|
|
212
|
-
fn: "stringEquals",
|
|
213
|
-
argv: [
|
|
214
|
-
{
|
|
215
|
-
ref: "Region",
|
|
216
|
-
},
|
|
217
|
-
"aws-global",
|
|
218
|
-
],
|
|
219
|
-
},
|
|
220
|
-
],
|
|
221
|
-
endpoint: {
|
|
222
|
-
url: "https://sts.amazonaws.com",
|
|
223
|
-
properties: {
|
|
224
|
-
authSchemes: [
|
|
225
|
-
{
|
|
226
|
-
name: "sigv4",
|
|
227
|
-
signingName: "sts",
|
|
228
|
-
signingRegion: "us-east-1",
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
},
|
|
232
|
-
headers: {},
|
|
233
|
-
},
|
|
234
|
-
type: "endpoint",
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
conditions: [
|
|
238
|
-
{
|
|
239
|
-
fn: "stringEquals",
|
|
240
|
-
argv: [
|
|
241
|
-
{
|
|
242
|
-
ref: "Region",
|
|
243
|
-
},
|
|
244
|
-
"ca-central-1",
|
|
245
|
-
],
|
|
246
|
-
},
|
|
247
|
-
],
|
|
248
|
-
endpoint: {
|
|
249
|
-
url: "https://sts.amazonaws.com",
|
|
250
|
-
properties: {
|
|
251
|
-
authSchemes: [
|
|
252
|
-
{
|
|
253
|
-
name: "sigv4",
|
|
254
|
-
signingName: "sts",
|
|
255
|
-
signingRegion: "us-east-1",
|
|
256
|
-
},
|
|
257
|
-
],
|
|
258
|
-
},
|
|
259
|
-
headers: {},
|
|
260
|
-
},
|
|
261
|
-
type: "endpoint",
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
conditions: [
|
|
265
|
-
{
|
|
266
|
-
fn: "stringEquals",
|
|
267
|
-
argv: [
|
|
268
|
-
{
|
|
269
|
-
ref: "Region",
|
|
270
|
-
},
|
|
271
|
-
"eu-central-1",
|
|
272
|
-
],
|
|
273
|
-
},
|
|
274
|
-
],
|
|
275
|
-
endpoint: {
|
|
276
|
-
url: "https://sts.amazonaws.com",
|
|
277
|
-
properties: {
|
|
278
|
-
authSchemes: [
|
|
279
|
-
{
|
|
280
|
-
name: "sigv4",
|
|
281
|
-
signingName: "sts",
|
|
282
|
-
signingRegion: "us-east-1",
|
|
283
|
-
},
|
|
284
|
-
],
|
|
285
|
-
},
|
|
286
|
-
headers: {},
|
|
287
|
-
},
|
|
288
|
-
type: "endpoint",
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
conditions: [
|
|
292
|
-
{
|
|
293
|
-
fn: "stringEquals",
|
|
294
|
-
argv: [
|
|
295
|
-
{
|
|
296
|
-
ref: "Region",
|
|
297
|
-
},
|
|
298
|
-
"eu-north-1",
|
|
299
|
-
],
|
|
300
|
-
},
|
|
301
|
-
],
|
|
302
|
-
endpoint: {
|
|
303
|
-
url: "https://sts.amazonaws.com",
|
|
304
|
-
properties: {
|
|
305
|
-
authSchemes: [
|
|
306
|
-
{
|
|
307
|
-
name: "sigv4",
|
|
308
|
-
signingName: "sts",
|
|
309
|
-
signingRegion: "us-east-1",
|
|
310
|
-
},
|
|
311
|
-
],
|
|
312
|
-
},
|
|
313
|
-
headers: {},
|
|
314
|
-
},
|
|
315
|
-
type: "endpoint",
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
conditions: [
|
|
319
|
-
{
|
|
320
|
-
fn: "stringEquals",
|
|
321
|
-
argv: [
|
|
322
|
-
{
|
|
323
|
-
ref: "Region",
|
|
324
|
-
},
|
|
325
|
-
"eu-west-1",
|
|
326
|
-
],
|
|
327
|
-
},
|
|
328
|
-
],
|
|
329
|
-
endpoint: {
|
|
330
|
-
url: "https://sts.amazonaws.com",
|
|
331
|
-
properties: {
|
|
332
|
-
authSchemes: [
|
|
333
|
-
{
|
|
334
|
-
name: "sigv4",
|
|
335
|
-
signingName: "sts",
|
|
336
|
-
signingRegion: "us-east-1",
|
|
337
|
-
},
|
|
338
|
-
],
|
|
339
|
-
},
|
|
340
|
-
headers: {},
|
|
341
|
-
},
|
|
342
|
-
type: "endpoint",
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
conditions: [
|
|
346
|
-
{
|
|
347
|
-
fn: "stringEquals",
|
|
348
|
-
argv: [
|
|
349
|
-
{
|
|
350
|
-
ref: "Region",
|
|
351
|
-
},
|
|
352
|
-
"eu-west-2",
|
|
353
|
-
],
|
|
354
|
-
},
|
|
355
|
-
],
|
|
356
|
-
endpoint: {
|
|
357
|
-
url: "https://sts.amazonaws.com",
|
|
358
|
-
properties: {
|
|
359
|
-
authSchemes: [
|
|
360
|
-
{
|
|
361
|
-
name: "sigv4",
|
|
362
|
-
signingName: "sts",
|
|
363
|
-
signingRegion: "us-east-1",
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
},
|
|
367
|
-
headers: {},
|
|
368
|
-
},
|
|
369
|
-
type: "endpoint",
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
conditions: [
|
|
373
|
-
{
|
|
374
|
-
fn: "stringEquals",
|
|
375
|
-
argv: [
|
|
376
|
-
{
|
|
377
|
-
ref: "Region",
|
|
378
|
-
},
|
|
379
|
-
"eu-west-3",
|
|
380
|
-
],
|
|
381
|
-
},
|
|
382
|
-
],
|
|
383
|
-
endpoint: {
|
|
384
|
-
url: "https://sts.amazonaws.com",
|
|
385
|
-
properties: {
|
|
386
|
-
authSchemes: [
|
|
387
|
-
{
|
|
388
|
-
name: "sigv4",
|
|
389
|
-
signingName: "sts",
|
|
390
|
-
signingRegion: "us-east-1",
|
|
391
|
-
},
|
|
392
|
-
],
|
|
393
|
-
},
|
|
394
|
-
headers: {},
|
|
395
|
-
},
|
|
396
|
-
type: "endpoint",
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
conditions: [
|
|
400
|
-
{
|
|
401
|
-
fn: "stringEquals",
|
|
402
|
-
argv: [
|
|
403
|
-
{
|
|
404
|
-
ref: "Region",
|
|
405
|
-
},
|
|
406
|
-
"sa-east-1",
|
|
407
|
-
],
|
|
408
|
-
},
|
|
409
|
-
],
|
|
410
|
-
endpoint: {
|
|
411
|
-
url: "https://sts.amazonaws.com",
|
|
412
|
-
properties: {
|
|
413
|
-
authSchemes: [
|
|
414
|
-
{
|
|
415
|
-
name: "sigv4",
|
|
416
|
-
signingName: "sts",
|
|
417
|
-
signingRegion: "us-east-1",
|
|
418
|
-
},
|
|
419
|
-
],
|
|
420
|
-
},
|
|
421
|
-
headers: {},
|
|
422
|
-
},
|
|
423
|
-
type: "endpoint",
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
conditions: [
|
|
427
|
-
{
|
|
428
|
-
fn: "stringEquals",
|
|
429
|
-
argv: [
|
|
430
|
-
{
|
|
431
|
-
ref: "Region",
|
|
432
|
-
},
|
|
433
|
-
"us-east-1",
|
|
434
|
-
],
|
|
435
|
-
},
|
|
436
|
-
],
|
|
437
|
-
endpoint: {
|
|
438
|
-
url: "https://sts.amazonaws.com",
|
|
439
|
-
properties: {
|
|
440
|
-
authSchemes: [
|
|
441
|
-
{
|
|
442
|
-
name: "sigv4",
|
|
443
|
-
signingName: "sts",
|
|
444
|
-
signingRegion: "us-east-1",
|
|
445
|
-
},
|
|
446
|
-
],
|
|
447
|
-
},
|
|
448
|
-
headers: {},
|
|
449
|
-
},
|
|
450
|
-
type: "endpoint",
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
conditions: [
|
|
454
|
-
{
|
|
455
|
-
fn: "stringEquals",
|
|
456
|
-
argv: [
|
|
457
|
-
{
|
|
458
|
-
ref: "Region",
|
|
459
|
-
},
|
|
460
|
-
"us-east-2",
|
|
461
|
-
],
|
|
462
|
-
},
|
|
463
|
-
],
|
|
464
|
-
endpoint: {
|
|
465
|
-
url: "https://sts.amazonaws.com",
|
|
466
|
-
properties: {
|
|
467
|
-
authSchemes: [
|
|
468
|
-
{
|
|
469
|
-
name: "sigv4",
|
|
470
|
-
signingName: "sts",
|
|
471
|
-
signingRegion: "us-east-1",
|
|
472
|
-
},
|
|
473
|
-
],
|
|
474
|
-
},
|
|
475
|
-
headers: {},
|
|
476
|
-
},
|
|
477
|
-
type: "endpoint",
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
conditions: [
|
|
481
|
-
{
|
|
482
|
-
fn: "stringEquals",
|
|
483
|
-
argv: [
|
|
484
|
-
{
|
|
485
|
-
ref: "Region",
|
|
486
|
-
},
|
|
487
|
-
"us-west-1",
|
|
488
|
-
],
|
|
489
|
-
},
|
|
490
|
-
],
|
|
491
|
-
endpoint: {
|
|
492
|
-
url: "https://sts.amazonaws.com",
|
|
493
|
-
properties: {
|
|
494
|
-
authSchemes: [
|
|
495
|
-
{
|
|
496
|
-
name: "sigv4",
|
|
497
|
-
signingName: "sts",
|
|
498
|
-
signingRegion: "us-east-1",
|
|
499
|
-
},
|
|
500
|
-
],
|
|
501
|
-
},
|
|
502
|
-
headers: {},
|
|
503
|
-
},
|
|
504
|
-
type: "endpoint",
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
conditions: [
|
|
508
|
-
{
|
|
509
|
-
fn: "stringEquals",
|
|
510
|
-
argv: [
|
|
511
|
-
{
|
|
512
|
-
ref: "Region",
|
|
513
|
-
},
|
|
514
|
-
"us-west-2",
|
|
515
|
-
],
|
|
516
|
-
},
|
|
517
|
-
],
|
|
518
|
-
endpoint: {
|
|
519
|
-
url: "https://sts.amazonaws.com",
|
|
520
|
-
properties: {
|
|
521
|
-
authSchemes: [
|
|
522
|
-
{
|
|
523
|
-
name: "sigv4",
|
|
524
|
-
signingName: "sts",
|
|
525
|
-
signingRegion: "us-east-1",
|
|
526
|
-
},
|
|
527
|
-
],
|
|
528
|
-
},
|
|
529
|
-
headers: {},
|
|
530
|
-
},
|
|
531
|
-
type: "endpoint",
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
conditions: [],
|
|
535
|
-
endpoint: {
|
|
536
|
-
url: "https://sts.{Region}.{PartitionResult#dnsSuffix}",
|
|
537
|
-
properties: {
|
|
538
|
-
authSchemes: [
|
|
539
|
-
{
|
|
540
|
-
name: "sigv4",
|
|
541
|
-
signingName: "sts",
|
|
542
|
-
signingRegion: "{Region}",
|
|
543
|
-
},
|
|
544
|
-
],
|
|
545
|
-
},
|
|
546
|
-
headers: {},
|
|
547
|
-
},
|
|
548
|
-
type: "endpoint",
|
|
549
|
-
},
|
|
550
|
-
],
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
conditions: [
|
|
554
|
-
{
|
|
555
|
-
fn: "isSet",
|
|
556
|
-
argv: [
|
|
557
|
-
{
|
|
558
|
-
ref: "Endpoint",
|
|
559
|
-
},
|
|
560
|
-
],
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
fn: "parseURL",
|
|
564
|
-
argv: [
|
|
565
|
-
{
|
|
566
|
-
ref: "Endpoint",
|
|
567
|
-
},
|
|
568
|
-
],
|
|
569
|
-
assign: "url",
|
|
570
|
-
},
|
|
571
|
-
],
|
|
572
|
-
type: "tree",
|
|
573
|
-
rules: [
|
|
574
|
-
{
|
|
575
|
-
conditions: [
|
|
576
|
-
{
|
|
577
|
-
fn: "booleanEquals",
|
|
578
|
-
argv: [
|
|
579
|
-
{
|
|
580
|
-
ref: "UseFIPS",
|
|
581
|
-
},
|
|
582
|
-
true,
|
|
583
|
-
],
|
|
584
|
-
},
|
|
585
|
-
],
|
|
586
|
-
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
587
|
-
type: "error",
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
conditions: [],
|
|
591
|
-
type: "tree",
|
|
592
|
-
rules: [
|
|
593
|
-
{
|
|
594
|
-
conditions: [
|
|
595
|
-
{
|
|
596
|
-
fn: "booleanEquals",
|
|
597
|
-
argv: [
|
|
598
|
-
{
|
|
599
|
-
ref: "UseDualStack",
|
|
600
|
-
},
|
|
601
|
-
true,
|
|
602
|
-
],
|
|
603
|
-
},
|
|
604
|
-
],
|
|
605
|
-
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
606
|
-
type: "error",
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
conditions: [],
|
|
610
|
-
endpoint: {
|
|
611
|
-
url: {
|
|
612
|
-
ref: "Endpoint",
|
|
613
|
-
},
|
|
614
|
-
properties: {},
|
|
615
|
-
headers: {},
|
|
616
|
-
},
|
|
617
|
-
type: "endpoint",
|
|
618
|
-
},
|
|
619
|
-
],
|
|
620
|
-
},
|
|
621
|
-
],
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
conditions: [
|
|
625
|
-
{
|
|
626
|
-
fn: "booleanEquals",
|
|
627
|
-
argv: [
|
|
628
|
-
{
|
|
629
|
-
ref: "UseFIPS",
|
|
630
|
-
},
|
|
631
|
-
true,
|
|
632
|
-
],
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
fn: "booleanEquals",
|
|
636
|
-
argv: [
|
|
637
|
-
{
|
|
638
|
-
ref: "UseDualStack",
|
|
639
|
-
},
|
|
640
|
-
true,
|
|
641
|
-
],
|
|
642
|
-
},
|
|
643
|
-
],
|
|
644
|
-
type: "tree",
|
|
645
|
-
rules: [
|
|
646
|
-
{
|
|
647
|
-
conditions: [
|
|
648
|
-
{
|
|
649
|
-
fn: "booleanEquals",
|
|
650
|
-
argv: [
|
|
651
|
-
true,
|
|
652
|
-
{
|
|
653
|
-
fn: "getAttr",
|
|
654
|
-
argv: [
|
|
655
|
-
{
|
|
656
|
-
ref: "PartitionResult",
|
|
657
|
-
},
|
|
658
|
-
"supportsFIPS",
|
|
659
|
-
],
|
|
660
|
-
},
|
|
661
|
-
],
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
fn: "booleanEquals",
|
|
665
|
-
argv: [
|
|
666
|
-
true,
|
|
667
|
-
{
|
|
668
|
-
fn: "getAttr",
|
|
669
|
-
argv: [
|
|
670
|
-
{
|
|
671
|
-
ref: "PartitionResult",
|
|
672
|
-
},
|
|
673
|
-
"supportsDualStack",
|
|
674
|
-
],
|
|
675
|
-
},
|
|
676
|
-
],
|
|
677
|
-
},
|
|
678
|
-
],
|
|
679
|
-
type: "tree",
|
|
680
|
-
rules: [
|
|
681
|
-
{
|
|
682
|
-
conditions: [],
|
|
683
|
-
endpoint: {
|
|
684
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
685
|
-
properties: {},
|
|
686
|
-
headers: {},
|
|
687
|
-
},
|
|
688
|
-
type: "endpoint",
|
|
689
|
-
},
|
|
690
|
-
],
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
conditions: [],
|
|
694
|
-
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
695
|
-
type: "error",
|
|
696
|
-
},
|
|
697
|
-
],
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
conditions: [
|
|
701
|
-
{
|
|
702
|
-
fn: "booleanEquals",
|
|
703
|
-
argv: [
|
|
704
|
-
{
|
|
705
|
-
ref: "UseFIPS",
|
|
706
|
-
},
|
|
707
|
-
true,
|
|
708
|
-
],
|
|
709
|
-
},
|
|
710
|
-
],
|
|
711
|
-
type: "tree",
|
|
712
|
-
rules: [
|
|
713
|
-
{
|
|
714
|
-
conditions: [
|
|
715
|
-
{
|
|
716
|
-
fn: "booleanEquals",
|
|
717
|
-
argv: [
|
|
718
|
-
true,
|
|
719
|
-
{
|
|
720
|
-
fn: "getAttr",
|
|
721
|
-
argv: [
|
|
722
|
-
{
|
|
723
|
-
ref: "PartitionResult",
|
|
724
|
-
},
|
|
725
|
-
"supportsFIPS",
|
|
726
|
-
],
|
|
727
|
-
},
|
|
728
|
-
],
|
|
729
|
-
},
|
|
730
|
-
],
|
|
731
|
-
type: "tree",
|
|
732
|
-
rules: [
|
|
733
|
-
{
|
|
734
|
-
conditions: [],
|
|
735
|
-
type: "tree",
|
|
736
|
-
rules: [
|
|
737
|
-
{
|
|
738
|
-
conditions: [
|
|
739
|
-
{
|
|
740
|
-
fn: "stringEquals",
|
|
741
|
-
argv: [
|
|
742
|
-
"aws-us-gov",
|
|
743
|
-
{
|
|
744
|
-
fn: "getAttr",
|
|
745
|
-
argv: [
|
|
746
|
-
{
|
|
747
|
-
ref: "PartitionResult",
|
|
748
|
-
},
|
|
749
|
-
"name",
|
|
750
|
-
],
|
|
751
|
-
},
|
|
752
|
-
],
|
|
753
|
-
},
|
|
754
|
-
],
|
|
755
|
-
endpoint: {
|
|
756
|
-
url: "https://sts.{Region}.{PartitionResult#dnsSuffix}",
|
|
757
|
-
properties: {},
|
|
758
|
-
headers: {},
|
|
759
|
-
},
|
|
760
|
-
type: "endpoint",
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
conditions: [],
|
|
764
|
-
endpoint: {
|
|
765
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
766
|
-
properties: {},
|
|
767
|
-
headers: {},
|
|
768
|
-
},
|
|
769
|
-
type: "endpoint",
|
|
770
|
-
},
|
|
771
|
-
],
|
|
772
|
-
},
|
|
773
|
-
],
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
conditions: [],
|
|
777
|
-
error: "FIPS is enabled but this partition does not support FIPS",
|
|
778
|
-
type: "error",
|
|
779
|
-
},
|
|
780
|
-
],
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
conditions: [
|
|
784
|
-
{
|
|
785
|
-
fn: "booleanEquals",
|
|
786
|
-
argv: [
|
|
787
|
-
{
|
|
788
|
-
ref: "UseDualStack",
|
|
789
|
-
},
|
|
790
|
-
true,
|
|
791
|
-
],
|
|
792
|
-
},
|
|
793
|
-
],
|
|
794
|
-
type: "tree",
|
|
795
|
-
rules: [
|
|
796
|
-
{
|
|
797
|
-
conditions: [
|
|
798
|
-
{
|
|
799
|
-
fn: "booleanEquals",
|
|
800
|
-
argv: [
|
|
801
|
-
true,
|
|
802
|
-
{
|
|
803
|
-
fn: "getAttr",
|
|
804
|
-
argv: [
|
|
805
|
-
{
|
|
806
|
-
ref: "PartitionResult",
|
|
807
|
-
},
|
|
808
|
-
"supportsDualStack",
|
|
809
|
-
],
|
|
810
|
-
},
|
|
811
|
-
],
|
|
812
|
-
},
|
|
813
|
-
],
|
|
814
|
-
type: "tree",
|
|
815
|
-
rules: [
|
|
816
|
-
{
|
|
817
|
-
conditions: [],
|
|
818
|
-
endpoint: {
|
|
819
|
-
url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
820
|
-
properties: {},
|
|
821
|
-
headers: {},
|
|
822
|
-
},
|
|
823
|
-
type: "endpoint",
|
|
824
|
-
},
|
|
825
|
-
],
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
conditions: [],
|
|
829
|
-
error: "DualStack is enabled but this partition does not support DualStack",
|
|
830
|
-
type: "error",
|
|
831
|
-
},
|
|
832
|
-
],
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
conditions: [],
|
|
836
|
-
type: "tree",
|
|
837
|
-
rules: [
|
|
838
|
-
{
|
|
839
|
-
conditions: [
|
|
840
|
-
{
|
|
841
|
-
fn: "stringEquals",
|
|
842
|
-
argv: [
|
|
843
|
-
{
|
|
844
|
-
ref: "Region",
|
|
845
|
-
},
|
|
846
|
-
"aws-global",
|
|
847
|
-
],
|
|
848
|
-
},
|
|
849
|
-
],
|
|
850
|
-
endpoint: {
|
|
851
|
-
url: "https://sts.amazonaws.com",
|
|
852
|
-
properties: {
|
|
853
|
-
authSchemes: [
|
|
854
|
-
{
|
|
855
|
-
name: "sigv4",
|
|
856
|
-
signingRegion: "us-east-1",
|
|
857
|
-
signingName: "sts",
|
|
858
|
-
},
|
|
859
|
-
],
|
|
860
|
-
},
|
|
861
|
-
headers: {},
|
|
862
|
-
},
|
|
863
|
-
type: "endpoint",
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
conditions: [],
|
|
867
|
-
endpoint: {
|
|
868
|
-
url: "https://sts.{Region}.{PartitionResult#dnsSuffix}",
|
|
869
|
-
properties: {},
|
|
870
|
-
headers: {},
|
|
871
|
-
},
|
|
872
|
-
type: "endpoint",
|
|
873
|
-
},
|
|
874
|
-
],
|
|
875
|
-
},
|
|
876
|
-
],
|
|
877
|
-
},
|
|
878
|
-
],
|
|
879
|
-
};
|
|
4
|
+
const I = "fn", J = "argv", K = "ref", L = "properties", M = "headers";
|
|
5
|
+
const a = false, b = true, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "booleanEquals", h = "stringEquals", i = "https://sts.amazonaws.com", j = "sigv4", k = "sts", l = "us-east-1", m = "endpoint", n = "https://sts.{Region}.{PartitionResult#dnsSuffix}", o = "error", p = "getAttr", q = { [K]: "Region" }, r = { [K]: "UseFIPS" }, s = { [K]: "UseDualStack" }, t = { [I]: "isSet", [J]: [{ [K]: "Endpoint" }] }, u = { [K]: "Endpoint" }, v = { "url": i, [L]: { "authSchemes": [{ "name": j, "signingName": k, "signingRegion": l }] }, [M]: {} }, w = {}, x = { [I]: g, [J]: [r, true] }, y = { [I]: g, [J]: [s, true] }, z = { [I]: g, [J]: [true, { [I]: p, [J]: [{ [K]: e }, "supportsFIPS"] }] }, A = { [K]: e }, B = { [I]: g, [J]: [true, { [I]: p, [J]: [A, "supportsDualStack"] }] }, C = { "url": n, [L]: {}, [M]: {} }, D = [u], E = [{ [I]: h, [J]: [q, "aws-global"] }], F = [], G = [x], H = [y];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: b, default: a, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: b, default: a, 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.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: a, documentation: "Override the endpoint used to send this request", type: c }, UseGlobalEndpoint: { builtIn: "AWS::STS::UseGlobalEndpoint", required: b, default: a, documentation: "Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.", type: d } }, rules: [{ conditions: [{ [I]: "aws.partition", [J]: [q], assign: e }], type: f, rules: [{ conditions: [{ [I]: g, [J]: [{ [K]: "UseGlobalEndpoint" }, b] }, { [I]: g, [J]: [r, a] }, { [I]: g, [J]: [s, a] }, { [I]: "not", [J]: [t] }], type: f, rules: [{ conditions: [{ [I]: h, [J]: [q, "ap-northeast-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "ap-south-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "ap-southeast-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "ap-southeast-2"] }], endpoint: v, type: m }, { conditions: E, endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "ca-central-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "eu-central-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "eu-north-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "eu-west-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "eu-west-2"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "eu-west-3"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "sa-east-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, l] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "us-east-2"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "us-west-1"] }], endpoint: v, type: m }, { conditions: [{ [I]: h, [J]: [q, "us-west-2"] }], endpoint: v, type: m }, { conditions: F, endpoint: { url: n, [L]: { authSchemes: [{ name: j, signingName: k, signingRegion: "{Region}" }] }, [M]: w }, type: m }] }, { conditions: [t, { [I]: "parseURL", [J]: D, assign: "url" }], type: f, rules: [{ conditions: G, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: o }, { conditions: F, type: f, rules: [{ conditions: H, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: o }, { conditions: F, endpoint: { url: u, [L]: w, [M]: w }, type: m }] }] }, { conditions: [x, y], type: f, rules: [{ conditions: [z, B], type: f, rules: [{ conditions: F, endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [L]: w, [M]: w }, type: m }] }, { conditions: F, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: o }] }, { conditions: G, type: f, rules: [{ conditions: [z], type: f, rules: [{ conditions: F, type: f, rules: [{ conditions: [{ [I]: h, [J]: ["aws-us-gov", { [I]: p, [J]: [A, "name"] }] }], endpoint: C, type: m }, { conditions: F, endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", [L]: w, [M]: w }, type: m }] }] }, { conditions: F, error: "FIPS is enabled but this partition does not support FIPS", type: o }] }, { conditions: H, type: f, rules: [{ conditions: [B], type: f, rules: [{ conditions: F, endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", [L]: w, [M]: w }, type: m }] }, { conditions: F, error: "DualStack is enabled but this partition does not support DualStack", type: o }] }, { conditions: F, type: f, rules: [{ conditions: E, endpoint: { url: i, [L]: { authSchemes: [{ name: j, signingRegion: l, signingName: k }] }, [M]: w }, type: m }, { conditions: F, endpoint: C, type: m }] }] }] };
|
|
7
|
+
exports.ruleSet = _data;
|