@tradedal/aws-client-sts 0.0.0-stage → 0.0.5

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 (3) hide show
  1. package/index.ts +2270 -0
  2. package/package.json +23 -3
  3. package/README.md +0 -3
package/index.ts ADDED
@@ -0,0 +1,2270 @@
1
+ // Generated from Smithy's official OpenAPI transformation. Do not edit.
2
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
3
+
4
+ import { AwsClient } from "@tradedal/aws-client-core";
5
+ import type {
6
+ AwsQueryOperation,
7
+ AwsServiceDefinition,
8
+ } from "@tradedal/aws-client-core/model";
9
+ import { Effect, Schema } from "effect";
10
+
11
+ export const PolicyDescriptorType = Schema.StructWithRest(
12
+ Schema.Struct({
13
+ arn: Schema.optionalKey(
14
+ Schema.String.check(
15
+ Schema.isMinCodePoints(20).annotate({
16
+ expected: "a string with at least 20 code points",
17
+ }),
18
+ )
19
+ .check(
20
+ Schema.isMaxCodePoints(2048).annotate({
21
+ expected: "a string with at most 2048 code points",
22
+ }),
23
+ )
24
+ .check(
25
+ Schema.isPattern(
26
+ new globalThis.RegExp(
27
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
28
+ "u",
29
+ ),
30
+ ).annotate({
31
+ expected:
32
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
33
+ }),
34
+ ),
35
+ ),
36
+ }),
37
+ [
38
+ Schema.Record(
39
+ Schema.String,
40
+ Schema.Json.annotate({ expected: "JSON value" }),
41
+ ),
42
+ ],
43
+ ).annotate({ identifier: "PolicyDescriptorType" });
44
+
45
+ export type PolicyDescriptorType = typeof PolicyDescriptorType.Type;
46
+
47
+ export const Tag = Schema.StructWithRest(
48
+ Schema.Struct({
49
+ Key: Schema.String.check(
50
+ Schema.isMinLength(1).annotate({
51
+ expected: "a value with a length of at least 1",
52
+ }),
53
+ )
54
+ .check(
55
+ Schema.isMaxCodePoints(128).annotate({
56
+ expected: "a string with at most 128 code points",
57
+ }),
58
+ )
59
+ .check(
60
+ Schema.isPattern(
61
+ new globalThis.RegExp("^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+$", "u"),
62
+ ).annotate({
63
+ expected:
64
+ "a string matching the RegExp ^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+$",
65
+ }),
66
+ ),
67
+ Value: Schema.String.check(
68
+ Schema.isMinCodePoints(0).annotate({
69
+ expected: "a string with at least 0 code points",
70
+ }),
71
+ )
72
+ .check(
73
+ Schema.isMaxCodePoints(256).annotate({
74
+ expected: "a string with at most 256 code points",
75
+ }),
76
+ )
77
+ .check(
78
+ Schema.isPattern(
79
+ new globalThis.RegExp("^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*$", "u"),
80
+ ).annotate({
81
+ expected:
82
+ "a string matching the RegExp ^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*$",
83
+ }),
84
+ ),
85
+ }),
86
+ [
87
+ Schema.Record(
88
+ Schema.String,
89
+ Schema.Json.annotate({ expected: "JSON value" }),
90
+ ),
91
+ ],
92
+ ).annotate({ identifier: "Tag" });
93
+
94
+ export type Tag = typeof Tag.Type;
95
+
96
+ export const ProvidedContext = Schema.StructWithRest(
97
+ Schema.Struct({
98
+ ProviderArn: Schema.optionalKey(
99
+ Schema.String.check(
100
+ Schema.isMinCodePoints(20).annotate({
101
+ expected: "a string with at least 20 code points",
102
+ }),
103
+ )
104
+ .check(
105
+ Schema.isMaxCodePoints(2048).annotate({
106
+ expected: "a string with at most 2048 code points",
107
+ }),
108
+ )
109
+ .check(
110
+ Schema.isPattern(
111
+ new globalThis.RegExp(
112
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
113
+ "u",
114
+ ),
115
+ ).annotate({
116
+ expected:
117
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
118
+ }),
119
+ ),
120
+ ),
121
+ ContextAssertion: Schema.optionalKey(
122
+ Schema.String.check(
123
+ Schema.isMinCodePoints(4).annotate({
124
+ expected: "a string with at least 4 code points",
125
+ }),
126
+ ).check(
127
+ Schema.isMaxCodePoints(2048).annotate({
128
+ expected: "a string with at most 2048 code points",
129
+ }),
130
+ ),
131
+ ),
132
+ }),
133
+ [
134
+ Schema.Record(
135
+ Schema.String,
136
+ Schema.Json.annotate({ expected: "JSON value" }),
137
+ ),
138
+ ],
139
+ ).annotate({ identifier: "ProvidedContext" });
140
+
141
+ export type ProvidedContext = typeof ProvidedContext.Type;
142
+
143
+ export const Credentials = Schema.StructWithRest(
144
+ Schema.Struct({
145
+ AccessKeyId: Schema.String.check(
146
+ Schema.isMinCodePoints(16).annotate({
147
+ expected: "a string with at least 16 code points",
148
+ }),
149
+ )
150
+ .check(
151
+ Schema.isMaxCodePoints(128).annotate({
152
+ expected: "a string with at most 128 code points",
153
+ }),
154
+ )
155
+ .check(
156
+ Schema.isPattern(new globalThis.RegExp("^[\\w]*$", "u")).annotate({
157
+ expected: "a string matching the RegExp ^[\\w]*$",
158
+ }),
159
+ ),
160
+ SecretAccessKey: Schema.String.annotate({ format: "password" }),
161
+ SessionToken: Schema.String,
162
+ Expiration: Schema.String.annotate({ format: "date-time" }),
163
+ }),
164
+ [
165
+ Schema.Record(
166
+ Schema.String,
167
+ Schema.Json.annotate({ expected: "JSON value" }),
168
+ ),
169
+ ],
170
+ ).annotate({ identifier: "Credentials" });
171
+
172
+ export type Credentials = typeof Credentials.Type;
173
+
174
+ export const AssumedRoleUser = Schema.StructWithRest(
175
+ Schema.Struct({
176
+ AssumedRoleId: Schema.String.check(
177
+ Schema.isMinCodePoints(2).annotate({
178
+ expected: "a string with at least 2 code points",
179
+ }),
180
+ )
181
+ .check(
182
+ Schema.isMaxCodePoints(193).annotate({
183
+ expected: "a string with at most 193 code points",
184
+ }),
185
+ )
186
+ .check(
187
+ Schema.isPattern(
188
+ new globalThis.RegExp("^[\\w+=,.@:-]*$", "u"),
189
+ ).annotate({
190
+ expected: "a string matching the RegExp ^[\\w+=,.@:-]*$",
191
+ }),
192
+ ),
193
+ Arn: Schema.String.check(
194
+ Schema.isMinCodePoints(20).annotate({
195
+ expected: "a string with at least 20 code points",
196
+ }),
197
+ )
198
+ .check(
199
+ Schema.isMaxCodePoints(2048).annotate({
200
+ expected: "a string with at most 2048 code points",
201
+ }),
202
+ )
203
+ .check(
204
+ Schema.isPattern(
205
+ new globalThis.RegExp(
206
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
207
+ "u",
208
+ ),
209
+ ).annotate({
210
+ expected:
211
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
212
+ }),
213
+ ),
214
+ }),
215
+ [
216
+ Schema.Record(
217
+ Schema.String,
218
+ Schema.Json.annotate({ expected: "JSON value" }),
219
+ ),
220
+ ],
221
+ ).annotate({ identifier: "AssumedRoleUser" });
222
+
223
+ export type AssumedRoleUser = typeof AssumedRoleUser.Type;
224
+
225
+ export const AssumeRoleRequest = Schema.StructWithRest(
226
+ Schema.Struct({
227
+ RoleArn: Schema.String.check(
228
+ Schema.isMinCodePoints(20).annotate({
229
+ expected: "a string with at least 20 code points",
230
+ }),
231
+ )
232
+ .check(
233
+ Schema.isMaxCodePoints(2048).annotate({
234
+ expected: "a string with at most 2048 code points",
235
+ }),
236
+ )
237
+ .check(
238
+ Schema.isPattern(
239
+ new globalThis.RegExp(
240
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
241
+ "u",
242
+ ),
243
+ ).annotate({
244
+ expected:
245
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
246
+ }),
247
+ ),
248
+ RoleSessionName: Schema.String.check(
249
+ Schema.isMinCodePoints(2).annotate({
250
+ expected: "a string with at least 2 code points",
251
+ }),
252
+ )
253
+ .check(
254
+ Schema.isMaxCodePoints(64).annotate({
255
+ expected: "a string with at most 64 code points",
256
+ }),
257
+ )
258
+ .check(
259
+ Schema.isPattern(new globalThis.RegExp("^[\\w+=,.@-]*$", "u")).annotate(
260
+ { expected: "a string matching the RegExp ^[\\w+=,.@-]*$" },
261
+ ),
262
+ ),
263
+ PolicyArns: Schema.optionalKey(Schema.Array(PolicyDescriptorType)),
264
+ Policy: Schema.optionalKey(
265
+ Schema.String.check(
266
+ Schema.isMinLength(1).annotate({
267
+ expected: "a value with a length of at least 1",
268
+ }),
269
+ ).check(
270
+ Schema.isPattern(
271
+ new globalThis.RegExp(
272
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$",
273
+ "u",
274
+ ),
275
+ ).annotate({
276
+ expected:
277
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$",
278
+ }),
279
+ ),
280
+ ),
281
+ DurationSeconds: Schema.optionalKey(
282
+ Schema.Finite.check(
283
+ Schema.isGreaterThanOrEqualTo(900).annotate({
284
+ expected: "a value greater than or equal to 900",
285
+ }),
286
+ ).check(
287
+ Schema.isLessThanOrEqualTo(43200).annotate({
288
+ expected: "a value less than or equal to 43200",
289
+ }),
290
+ ),
291
+ ),
292
+ Tags: Schema.optionalKey(
293
+ Schema.Array(Tag)
294
+ .check(
295
+ Schema.isMinLength(0).annotate({
296
+ expected: "a value with a length of at least 0",
297
+ }),
298
+ )
299
+ .check(
300
+ Schema.isMaxLength(50).annotate({
301
+ expected: "a value with a length of at most 50",
302
+ }),
303
+ ),
304
+ ),
305
+ TransitiveTagKeys: Schema.optionalKey(
306
+ Schema.Array(
307
+ Schema.String.check(
308
+ Schema.isMinLength(1).annotate({
309
+ expected: "a value with a length of at least 1",
310
+ }),
311
+ )
312
+ .check(
313
+ Schema.isMaxCodePoints(128).annotate({
314
+ expected: "a string with at most 128 code points",
315
+ }),
316
+ )
317
+ .check(
318
+ Schema.isPattern(
319
+ new globalThis.RegExp("^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+$", "u"),
320
+ ).annotate({
321
+ expected:
322
+ "a string matching the RegExp ^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+$",
323
+ }),
324
+ ),
325
+ )
326
+ .check(
327
+ Schema.isMinLength(0).annotate({
328
+ expected: "a value with a length of at least 0",
329
+ }),
330
+ )
331
+ .check(
332
+ Schema.isMaxLength(50).annotate({
333
+ expected: "a value with a length of at most 50",
334
+ }),
335
+ ),
336
+ ),
337
+ ExternalId: Schema.optionalKey(
338
+ Schema.String.check(
339
+ Schema.isMinCodePoints(2).annotate({
340
+ expected: "a string with at least 2 code points",
341
+ }),
342
+ )
343
+ .check(
344
+ Schema.isMaxCodePoints(1224).annotate({
345
+ expected: "a string with at most 1224 code points",
346
+ }),
347
+ )
348
+ .check(
349
+ Schema.isPattern(
350
+ new globalThis.RegExp("^[\\w+=,.@:\\/-]*$", "u"),
351
+ ).annotate({
352
+ expected: "a string matching the RegExp ^[\\w+=,.@:\\/-]*$",
353
+ }),
354
+ ),
355
+ ),
356
+ SerialNumber: Schema.optionalKey(
357
+ Schema.String.check(
358
+ Schema.isMinCodePoints(9).annotate({
359
+ expected: "a string with at least 9 code points",
360
+ }),
361
+ )
362
+ .check(
363
+ Schema.isMaxCodePoints(256).annotate({
364
+ expected: "a string with at most 256 code points",
365
+ }),
366
+ )
367
+ .check(
368
+ Schema.isPattern(
369
+ new globalThis.RegExp("^[\\w+=/:,.@-]*$", "u"),
370
+ ).annotate({
371
+ expected: "a string matching the RegExp ^[\\w+=/:,.@-]*$",
372
+ }),
373
+ ),
374
+ ),
375
+ TokenCode: Schema.optionalKey(
376
+ Schema.String.check(
377
+ Schema.isMinCodePoints(6).annotate({
378
+ expected: "a string with at least 6 code points",
379
+ }),
380
+ )
381
+ .check(
382
+ Schema.isMaxCodePoints(6).annotate({
383
+ expected: "a string with at most 6 code points",
384
+ }),
385
+ )
386
+ .check(
387
+ Schema.isPattern(new globalThis.RegExp("^[\\d]*$", "u")).annotate({
388
+ expected: "a string matching the RegExp ^[\\d]*$",
389
+ }),
390
+ ),
391
+ ),
392
+ SourceIdentity: Schema.optionalKey(
393
+ Schema.String.check(
394
+ Schema.isMinCodePoints(2).annotate({
395
+ expected: "a string with at least 2 code points",
396
+ }),
397
+ )
398
+ .check(
399
+ Schema.isMaxCodePoints(64).annotate({
400
+ expected: "a string with at most 64 code points",
401
+ }),
402
+ )
403
+ .check(
404
+ Schema.isPattern(
405
+ new globalThis.RegExp("^[\\w+=,.@-]*$", "u"),
406
+ ).annotate({
407
+ expected: "a string matching the RegExp ^[\\w+=,.@-]*$",
408
+ }),
409
+ ),
410
+ ),
411
+ ProvidedContexts: Schema.optionalKey(
412
+ Schema.Array(ProvidedContext)
413
+ .check(
414
+ Schema.isMinLength(1).annotate({
415
+ expected: "a value with a length of at least 1",
416
+ }),
417
+ )
418
+ .check(
419
+ Schema.isMaxLength(5).annotate({
420
+ expected: "a value with a length of at most 5",
421
+ }),
422
+ ),
423
+ ),
424
+ MinimumSessionTokenSize: Schema.optionalKey(
425
+ Schema.Finite.check(
426
+ Schema.isGreaterThanOrEqualTo(0).annotate({
427
+ expected: "a value greater than or equal to 0",
428
+ }),
429
+ ).check(
430
+ Schema.isLessThanOrEqualTo(4096).annotate({
431
+ expected: "a value less than or equal to 4096",
432
+ }),
433
+ ),
434
+ ),
435
+ }),
436
+ [
437
+ Schema.Record(
438
+ Schema.String,
439
+ Schema.Json.annotate({ expected: "JSON value" }),
440
+ ),
441
+ ],
442
+ );
443
+
444
+ export type AssumeRoleRequest = typeof AssumeRoleRequest.Type;
445
+
446
+ export const AssumeRoleResponse = Schema.StructWithRest(
447
+ Schema.Struct({
448
+ Credentials: Schema.optionalKey(Credentials),
449
+ AssumedRoleUser: Schema.optionalKey(AssumedRoleUser),
450
+ PackedPolicySize: Schema.optionalKey(
451
+ Schema.Finite.check(
452
+ Schema.isGreaterThanOrEqualTo(0).annotate({
453
+ expected: "a value greater than or equal to 0",
454
+ }),
455
+ ),
456
+ ),
457
+ SourceIdentity: Schema.optionalKey(
458
+ Schema.String.check(
459
+ Schema.isMinCodePoints(2).annotate({
460
+ expected: "a string with at least 2 code points",
461
+ }),
462
+ )
463
+ .check(
464
+ Schema.isMaxCodePoints(64).annotate({
465
+ expected: "a string with at most 64 code points",
466
+ }),
467
+ )
468
+ .check(
469
+ Schema.isPattern(
470
+ new globalThis.RegExp("^[\\w+=,.@-]*$", "u"),
471
+ ).annotate({
472
+ expected: "a string matching the RegExp ^[\\w+=,.@-]*$",
473
+ }),
474
+ ),
475
+ ),
476
+ SessionTokenUtilization: Schema.optionalKey(
477
+ Schema.Finite.check(
478
+ Schema.isGreaterThanOrEqualTo(0).annotate({
479
+ expected: "a value greater than or equal to 0",
480
+ }),
481
+ ),
482
+ ),
483
+ SessionTokenSize: Schema.optionalKey(
484
+ Schema.Finite.check(
485
+ Schema.isGreaterThanOrEqualTo(0).annotate({
486
+ expected: "a value greater than or equal to 0",
487
+ }),
488
+ ),
489
+ ),
490
+ }),
491
+ [
492
+ Schema.Record(
493
+ Schema.String,
494
+ Schema.Json.annotate({ expected: "JSON value" }),
495
+ ),
496
+ ],
497
+ );
498
+
499
+ export type AssumeRoleResponse = typeof AssumeRoleResponse.Type;
500
+
501
+ export const ExpiredTokenException = Schema.StructWithRest(
502
+ Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
503
+ [
504
+ Schema.Record(
505
+ Schema.String,
506
+ Schema.Json.annotate({ expected: "JSON value" }),
507
+ ),
508
+ ],
509
+ );
510
+
511
+ export type ExpiredTokenException = typeof ExpiredTokenException.Type;
512
+
513
+ export const MalformedPolicyDocumentException = Schema.StructWithRest(
514
+ Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
515
+ [
516
+ Schema.Record(
517
+ Schema.String,
518
+ Schema.Json.annotate({ expected: "JSON value" }),
519
+ ),
520
+ ],
521
+ );
522
+
523
+ export type MalformedPolicyDocumentException =
524
+ typeof MalformedPolicyDocumentException.Type;
525
+
526
+ export const PackedPolicyTooLargeException = Schema.StructWithRest(
527
+ Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
528
+ [
529
+ Schema.Record(
530
+ Schema.String,
531
+ Schema.Json.annotate({ expected: "JSON value" }),
532
+ ),
533
+ ],
534
+ );
535
+
536
+ export type PackedPolicyTooLargeException =
537
+ typeof PackedPolicyTooLargeException.Type;
538
+
539
+ export const RegionDisabledException = Schema.StructWithRest(
540
+ Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
541
+ [
542
+ Schema.Record(
543
+ Schema.String,
544
+ Schema.Json.annotate({ expected: "JSON value" }),
545
+ ),
546
+ ],
547
+ );
548
+
549
+ export type RegionDisabledException = typeof RegionDisabledException.Type;
550
+
551
+ export const AssumeRoleWithWebIdentityRequest = Schema.StructWithRest(
552
+ Schema.Struct({
553
+ RoleArn: Schema.String.check(
554
+ Schema.isMinCodePoints(20).annotate({
555
+ expected: "a string with at least 20 code points",
556
+ }),
557
+ )
558
+ .check(
559
+ Schema.isMaxCodePoints(2048).annotate({
560
+ expected: "a string with at most 2048 code points",
561
+ }),
562
+ )
563
+ .check(
564
+ Schema.isPattern(
565
+ new globalThis.RegExp(
566
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
567
+ "u",
568
+ ),
569
+ ).annotate({
570
+ expected:
571
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
572
+ }),
573
+ ),
574
+ RoleSessionName: Schema.String.check(
575
+ Schema.isMinCodePoints(2).annotate({
576
+ expected: "a string with at least 2 code points",
577
+ }),
578
+ )
579
+ .check(
580
+ Schema.isMaxCodePoints(64).annotate({
581
+ expected: "a string with at most 64 code points",
582
+ }),
583
+ )
584
+ .check(
585
+ Schema.isPattern(new globalThis.RegExp("^[\\w+=,.@-]*$", "u")).annotate(
586
+ { expected: "a string matching the RegExp ^[\\w+=,.@-]*$" },
587
+ ),
588
+ ),
589
+ WebIdentityToken: Schema.String.annotate({ format: "password" })
590
+ .check(
591
+ Schema.isMinCodePoints(4).annotate({
592
+ expected: "a string with at least 4 code points",
593
+ }),
594
+ )
595
+ .check(
596
+ Schema.isMaxCodePoints(20000).annotate({
597
+ expected: "a string with at most 20000 code points",
598
+ }),
599
+ ),
600
+ ProviderId: Schema.optionalKey(
601
+ Schema.String.check(
602
+ Schema.isMinCodePoints(4).annotate({
603
+ expected: "a string with at least 4 code points",
604
+ }),
605
+ ).check(
606
+ Schema.isMaxCodePoints(2048).annotate({
607
+ expected: "a string with at most 2048 code points",
608
+ }),
609
+ ),
610
+ ),
611
+ PolicyArns: Schema.optionalKey(Schema.Array(PolicyDescriptorType)),
612
+ Policy: Schema.optionalKey(
613
+ Schema.String.check(
614
+ Schema.isMinLength(1).annotate({
615
+ expected: "a value with a length of at least 1",
616
+ }),
617
+ )
618
+ .check(
619
+ Schema.isMaxCodePoints(2048).annotate({
620
+ expected: "a string with at most 2048 code points",
621
+ }),
622
+ )
623
+ .check(
624
+ Schema.isPattern(
625
+ new globalThis.RegExp(
626
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$",
627
+ "u",
628
+ ),
629
+ ).annotate({
630
+ expected:
631
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$",
632
+ }),
633
+ ),
634
+ ),
635
+ DurationSeconds: Schema.optionalKey(
636
+ Schema.Finite.check(
637
+ Schema.isGreaterThanOrEqualTo(900).annotate({
638
+ expected: "a value greater than or equal to 900",
639
+ }),
640
+ ).check(
641
+ Schema.isLessThanOrEqualTo(43200).annotate({
642
+ expected: "a value less than or equal to 43200",
643
+ }),
644
+ ),
645
+ ),
646
+ MinimumSessionTokenSize: Schema.optionalKey(
647
+ Schema.Finite.check(
648
+ Schema.isGreaterThanOrEqualTo(0).annotate({
649
+ expected: "a value greater than or equal to 0",
650
+ }),
651
+ ).check(
652
+ Schema.isLessThanOrEqualTo(4096).annotate({
653
+ expected: "a value less than or equal to 4096",
654
+ }),
655
+ ),
656
+ ),
657
+ }),
658
+ [
659
+ Schema.Record(
660
+ Schema.String,
661
+ Schema.Json.annotate({ expected: "JSON value" }),
662
+ ),
663
+ ],
664
+ );
665
+
666
+ export type AssumeRoleWithWebIdentityRequest =
667
+ typeof AssumeRoleWithWebIdentityRequest.Type;
668
+
669
+ export const AssumeRoleWithWebIdentityResponse = Schema.StructWithRest(
670
+ Schema.Struct({
671
+ Credentials: Schema.optionalKey(Credentials),
672
+ SubjectFromWebIdentityToken: Schema.optionalKey(
673
+ Schema.String.check(
674
+ Schema.isMinCodePoints(6).annotate({
675
+ expected: "a string with at least 6 code points",
676
+ }),
677
+ ).check(
678
+ Schema.isMaxCodePoints(255).annotate({
679
+ expected: "a string with at most 255 code points",
680
+ }),
681
+ ),
682
+ ),
683
+ AssumedRoleUser: Schema.optionalKey(AssumedRoleUser),
684
+ PackedPolicySize: Schema.optionalKey(
685
+ Schema.Finite.check(
686
+ Schema.isGreaterThanOrEqualTo(0).annotate({
687
+ expected: "a value greater than or equal to 0",
688
+ }),
689
+ ),
690
+ ),
691
+ Provider: Schema.optionalKey(Schema.String),
692
+ Audience: Schema.optionalKey(Schema.String),
693
+ SourceIdentity: Schema.optionalKey(
694
+ Schema.String.check(
695
+ Schema.isMinCodePoints(2).annotate({
696
+ expected: "a string with at least 2 code points",
697
+ }),
698
+ )
699
+ .check(
700
+ Schema.isMaxCodePoints(64).annotate({
701
+ expected: "a string with at most 64 code points",
702
+ }),
703
+ )
704
+ .check(
705
+ Schema.isPattern(
706
+ new globalThis.RegExp("^[\\w+=,.@-]*$", "u"),
707
+ ).annotate({
708
+ expected: "a string matching the RegExp ^[\\w+=,.@-]*$",
709
+ }),
710
+ ),
711
+ ),
712
+ SessionTokenUtilization: Schema.optionalKey(
713
+ Schema.Finite.check(
714
+ Schema.isGreaterThanOrEqualTo(0).annotate({
715
+ expected: "a value greater than or equal to 0",
716
+ }),
717
+ ),
718
+ ),
719
+ SessionTokenSize: Schema.optionalKey(
720
+ Schema.Finite.check(
721
+ Schema.isGreaterThanOrEqualTo(0).annotate({
722
+ expected: "a value greater than or equal to 0",
723
+ }),
724
+ ),
725
+ ),
726
+ }),
727
+ [
728
+ Schema.Record(
729
+ Schema.String,
730
+ Schema.Json.annotate({ expected: "JSON value" }),
731
+ ),
732
+ ],
733
+ );
734
+
735
+ export type AssumeRoleWithWebIdentityResponse =
736
+ typeof AssumeRoleWithWebIdentityResponse.Type;
737
+
738
+ export const IDPCommunicationErrorException = Schema.StructWithRest(
739
+ Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
740
+ [
741
+ Schema.Record(
742
+ Schema.String,
743
+ Schema.Json.annotate({ expected: "JSON value" }),
744
+ ),
745
+ ],
746
+ );
747
+
748
+ export type IDPCommunicationErrorException =
749
+ typeof IDPCommunicationErrorException.Type;
750
+
751
+ export const IDPRejectedClaimException = Schema.StructWithRest(
752
+ Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
753
+ [
754
+ Schema.Record(
755
+ Schema.String,
756
+ Schema.Json.annotate({ expected: "JSON value" }),
757
+ ),
758
+ ],
759
+ );
760
+
761
+ export type IDPRejectedClaimException = typeof IDPRejectedClaimException.Type;
762
+
763
+ export const InvalidIdentityTokenException = Schema.StructWithRest(
764
+ Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
765
+ [
766
+ Schema.Record(
767
+ Schema.String,
768
+ Schema.Json.annotate({ expected: "JSON value" }),
769
+ ),
770
+ ],
771
+ );
772
+
773
+ export type InvalidIdentityTokenException =
774
+ typeof InvalidIdentityTokenException.Type;
775
+
776
+ export const GetCallerIdentityRequest = Schema.Record(
777
+ Schema.String,
778
+ Schema.Json.annotate({ expected: "JSON value" }),
779
+ );
780
+
781
+ export type GetCallerIdentityRequest = typeof GetCallerIdentityRequest.Type;
782
+
783
+ export const GetCallerIdentityResponse = Schema.StructWithRest(
784
+ Schema.Struct({
785
+ UserId: Schema.optionalKey(Schema.String),
786
+ Account: Schema.optionalKey(Schema.String),
787
+ Arn: Schema.optionalKey(
788
+ Schema.String.check(
789
+ Schema.isMinCodePoints(20).annotate({
790
+ expected: "a string with at least 20 code points",
791
+ }),
792
+ )
793
+ .check(
794
+ Schema.isMaxCodePoints(2048).annotate({
795
+ expected: "a string with at most 2048 code points",
796
+ }),
797
+ )
798
+ .check(
799
+ Schema.isPattern(
800
+ new globalThis.RegExp(
801
+ "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
802
+ "u",
803
+ ),
804
+ ).annotate({
805
+ expected:
806
+ "a string matching the RegExp ^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+$",
807
+ }),
808
+ ),
809
+ ),
810
+ }),
811
+ [
812
+ Schema.Record(
813
+ Schema.String,
814
+ Schema.Json.annotate({ expected: "JSON value" }),
815
+ ),
816
+ ],
817
+ );
818
+
819
+ export type GetCallerIdentityResponse = typeof GetCallerIdentityResponse.Type;
820
+
821
+ export const stsErrors = {
822
+ ExpiredTokenException: {
823
+ name: "ExpiredTokenException",
824
+ fault: "client",
825
+ httpStatus: 400,
826
+ retryable: null,
827
+ code: "ExpiredTokenException",
828
+ schema: ExpiredTokenException,
829
+ },
830
+ MalformedPolicyDocumentException: {
831
+ name: "MalformedPolicyDocumentException",
832
+ fault: "client",
833
+ httpStatus: 400,
834
+ retryable: null,
835
+ code: "MalformedPolicyDocument",
836
+ schema: MalformedPolicyDocumentException,
837
+ },
838
+ PackedPolicyTooLargeException: {
839
+ name: "PackedPolicyTooLargeException",
840
+ fault: "client",
841
+ httpStatus: 400,
842
+ retryable: null,
843
+ code: "PackedPolicyTooLarge",
844
+ schema: PackedPolicyTooLargeException,
845
+ },
846
+ RegionDisabledException: {
847
+ name: "RegionDisabledException",
848
+ fault: "client",
849
+ httpStatus: 403,
850
+ retryable: null,
851
+ code: "RegionDisabledException",
852
+ schema: RegionDisabledException,
853
+ },
854
+ IDPCommunicationErrorException: {
855
+ name: "IDPCommunicationErrorException",
856
+ fault: "client",
857
+ httpStatus: 400,
858
+ retryable: null,
859
+ code: "IDPCommunicationError",
860
+ schema: IDPCommunicationErrorException,
861
+ },
862
+ IDPRejectedClaimException: {
863
+ name: "IDPRejectedClaimException",
864
+ fault: "client",
865
+ httpStatus: 403,
866
+ retryable: null,
867
+ code: "IDPRejectedClaim",
868
+ schema: IDPRejectedClaimException,
869
+ },
870
+ InvalidIdentityTokenException: {
871
+ name: "InvalidIdentityTokenException",
872
+ fault: "client",
873
+ httpStatus: 400,
874
+ retryable: null,
875
+ code: "InvalidIdentityToken",
876
+ schema: InvalidIdentityTokenException,
877
+ },
878
+ };
879
+
880
+ export const assumeRoleErrors = [
881
+ stsErrors.ExpiredTokenException,
882
+ stsErrors.MalformedPolicyDocumentException,
883
+ stsErrors.PackedPolicyTooLargeException,
884
+ stsErrors.RegionDisabledException,
885
+ ];
886
+
887
+ export const assumeRoleWithWebIdentityErrors = [
888
+ stsErrors.ExpiredTokenException,
889
+ stsErrors.IDPCommunicationErrorException,
890
+ stsErrors.IDPRejectedClaimException,
891
+ stsErrors.InvalidIdentityTokenException,
892
+ stsErrors.MalformedPolicyDocumentException,
893
+ stsErrors.PackedPolicyTooLargeException,
894
+ stsErrors.RegionDisabledException,
895
+ ];
896
+
897
+ export const getCallerIdentityErrors = [];
898
+
899
+ export const assumeRoleOperation: AwsQueryOperation & {
900
+ readonly input: typeof AssumeRoleRequest;
901
+ readonly output: typeof AssumeRoleResponse;
902
+ } = {
903
+ name: "AssumeRole",
904
+ method: "POST",
905
+ path: "/",
906
+ headers: {},
907
+ query: {
908
+ input: "com.amazonaws.sts#AssumeRoleRequest",
909
+ output: "com.amazonaws.sts#AssumeRoleResponse",
910
+ shapes: {
911
+ "com.amazonaws.sts#AssumeRoleRequest": {
912
+ type: "structure",
913
+ members: {
914
+ RoleArn: {
915
+ target: "com.amazonaws.sts#arnType",
916
+ },
917
+ RoleSessionName: {
918
+ target: "com.amazonaws.sts#roleSessionNameType",
919
+ },
920
+ PolicyArns: {
921
+ target: "com.amazonaws.sts#policyDescriptorListType",
922
+ },
923
+ Policy: {
924
+ target: "com.amazonaws.sts#unrestrictedSessionPolicyDocumentType",
925
+ },
926
+ DurationSeconds: {
927
+ target: "com.amazonaws.sts#roleDurationSecondsType",
928
+ },
929
+ Tags: {
930
+ target: "com.amazonaws.sts#tagListType",
931
+ },
932
+ TransitiveTagKeys: {
933
+ target: "com.amazonaws.sts#tagKeyListType",
934
+ },
935
+ ExternalId: {
936
+ target: "com.amazonaws.sts#externalIdType",
937
+ },
938
+ SerialNumber: {
939
+ target: "com.amazonaws.sts#serialNumberType",
940
+ },
941
+ TokenCode: {
942
+ target: "com.amazonaws.sts#tokenCodeType",
943
+ },
944
+ SourceIdentity: {
945
+ target: "com.amazonaws.sts#sourceIdentityType",
946
+ },
947
+ ProvidedContexts: {
948
+ target: "com.amazonaws.sts#ProvidedContextsListType",
949
+ },
950
+ MinimumSessionTokenSize: {
951
+ target: "com.amazonaws.sts#minimumSessionTokenSizeType",
952
+ },
953
+ },
954
+ },
955
+ "com.amazonaws.sts#AssumeRoleResponse": {
956
+ type: "structure",
957
+ members: {
958
+ Credentials: {
959
+ target: "com.amazonaws.sts#Credentials",
960
+ },
961
+ AssumedRoleUser: {
962
+ target: "com.amazonaws.sts#AssumedRoleUser",
963
+ },
964
+ PackedPolicySize: {
965
+ target: "com.amazonaws.sts#nonNegativeIntegerType",
966
+ },
967
+ SourceIdentity: {
968
+ target: "com.amazonaws.sts#sourceIdentityType",
969
+ },
970
+ SessionTokenUtilization: {
971
+ target: "com.amazonaws.sts#sessionTokenUtilizationType",
972
+ },
973
+ SessionTokenSize: {
974
+ target: "com.amazonaws.sts#sessionTokenSizeType",
975
+ },
976
+ },
977
+ },
978
+ "com.amazonaws.sts#arnType": {
979
+ type: "string",
980
+ },
981
+ "com.amazonaws.sts#roleSessionNameType": {
982
+ type: "string",
983
+ },
984
+ "com.amazonaws.sts#policyDescriptorListType": {
985
+ type: "list",
986
+ member: {
987
+ target: "com.amazonaws.sts#PolicyDescriptorType",
988
+ },
989
+ },
990
+ "com.amazonaws.sts#unrestrictedSessionPolicyDocumentType": {
991
+ type: "string",
992
+ },
993
+ "com.amazonaws.sts#roleDurationSecondsType": {
994
+ type: "number",
995
+ },
996
+ "com.amazonaws.sts#tagListType": {
997
+ type: "list",
998
+ member: {
999
+ target: "com.amazonaws.sts#Tag",
1000
+ },
1001
+ },
1002
+ "com.amazonaws.sts#tagKeyListType": {
1003
+ type: "list",
1004
+ member: {
1005
+ target: "com.amazonaws.sts#tagKeyType",
1006
+ },
1007
+ },
1008
+ "com.amazonaws.sts#externalIdType": {
1009
+ type: "string",
1010
+ },
1011
+ "com.amazonaws.sts#serialNumberType": {
1012
+ type: "string",
1013
+ },
1014
+ "com.amazonaws.sts#tokenCodeType": {
1015
+ type: "string",
1016
+ },
1017
+ "com.amazonaws.sts#sourceIdentityType": {
1018
+ type: "string",
1019
+ },
1020
+ "com.amazonaws.sts#ProvidedContextsListType": {
1021
+ type: "list",
1022
+ member: {
1023
+ target: "com.amazonaws.sts#ProvidedContext",
1024
+ },
1025
+ },
1026
+ "com.amazonaws.sts#minimumSessionTokenSizeType": {
1027
+ type: "number",
1028
+ },
1029
+ "com.amazonaws.sts#Credentials": {
1030
+ type: "structure",
1031
+ members: {
1032
+ AccessKeyId: {
1033
+ target: "com.amazonaws.sts#accessKeyIdType",
1034
+ },
1035
+ SecretAccessKey: {
1036
+ target: "com.amazonaws.sts#accessKeySecretType",
1037
+ },
1038
+ SessionToken: {
1039
+ target: "com.amazonaws.sts#tokenType",
1040
+ },
1041
+ Expiration: {
1042
+ target: "com.amazonaws.sts#dateType",
1043
+ },
1044
+ },
1045
+ },
1046
+ "com.amazonaws.sts#AssumedRoleUser": {
1047
+ type: "structure",
1048
+ members: {
1049
+ AssumedRoleId: {
1050
+ target: "com.amazonaws.sts#assumedRoleIdType",
1051
+ },
1052
+ Arn: {
1053
+ target: "com.amazonaws.sts#arnType",
1054
+ },
1055
+ },
1056
+ },
1057
+ "com.amazonaws.sts#nonNegativeIntegerType": {
1058
+ type: "number",
1059
+ },
1060
+ "com.amazonaws.sts#sessionTokenUtilizationType": {
1061
+ type: "number",
1062
+ },
1063
+ "com.amazonaws.sts#sessionTokenSizeType": {
1064
+ type: "number",
1065
+ },
1066
+ "com.amazonaws.sts#PolicyDescriptorType": {
1067
+ type: "structure",
1068
+ members: {
1069
+ arn: {
1070
+ target: "com.amazonaws.sts#arnType",
1071
+ },
1072
+ },
1073
+ },
1074
+ "com.amazonaws.sts#Tag": {
1075
+ type: "structure",
1076
+ members: {
1077
+ Key: {
1078
+ target: "com.amazonaws.sts#tagKeyType",
1079
+ },
1080
+ Value: {
1081
+ target: "com.amazonaws.sts#tagValueType",
1082
+ },
1083
+ },
1084
+ },
1085
+ "com.amazonaws.sts#tagKeyType": {
1086
+ type: "string",
1087
+ },
1088
+ "com.amazonaws.sts#ProvidedContext": {
1089
+ type: "structure",
1090
+ members: {
1091
+ ProviderArn: {
1092
+ target: "com.amazonaws.sts#arnType",
1093
+ },
1094
+ ContextAssertion: {
1095
+ target: "com.amazonaws.sts#contextAssertionType",
1096
+ },
1097
+ },
1098
+ },
1099
+ "com.amazonaws.sts#accessKeyIdType": {
1100
+ type: "string",
1101
+ },
1102
+ "com.amazonaws.sts#accessKeySecretType": {
1103
+ type: "string",
1104
+ },
1105
+ "com.amazonaws.sts#tokenType": {
1106
+ type: "string",
1107
+ },
1108
+ "com.amazonaws.sts#dateType": {
1109
+ type: "timestamp",
1110
+ },
1111
+ "com.amazonaws.sts#assumedRoleIdType": {
1112
+ type: "string",
1113
+ },
1114
+ "com.amazonaws.sts#tagValueType": {
1115
+ type: "string",
1116
+ },
1117
+ "com.amazonaws.sts#contextAssertionType": {
1118
+ type: "string",
1119
+ },
1120
+ },
1121
+ },
1122
+ idempotencyTokens: [],
1123
+ pagination: {},
1124
+ input: AssumeRoleRequest,
1125
+ output: AssumeRoleResponse,
1126
+ errors: assumeRoleErrors,
1127
+ };
1128
+
1129
+ export const assumeRoleWithWebIdentityOperation: AwsQueryOperation & {
1130
+ readonly input: typeof AssumeRoleWithWebIdentityRequest;
1131
+ readonly output: typeof AssumeRoleWithWebIdentityResponse;
1132
+ } = {
1133
+ name: "AssumeRoleWithWebIdentity",
1134
+ unsigned: true,
1135
+ method: "POST",
1136
+ path: "/",
1137
+ headers: {},
1138
+ query: {
1139
+ input: "com.amazonaws.sts#AssumeRoleWithWebIdentityRequest",
1140
+ output: "com.amazonaws.sts#AssumeRoleWithWebIdentityResponse",
1141
+ shapes: {
1142
+ "com.amazonaws.sts#AssumeRoleWithWebIdentityRequest": {
1143
+ type: "structure",
1144
+ members: {
1145
+ RoleArn: {
1146
+ target: "com.amazonaws.sts#arnType",
1147
+ },
1148
+ RoleSessionName: {
1149
+ target: "com.amazonaws.sts#roleSessionNameType",
1150
+ },
1151
+ WebIdentityToken: {
1152
+ target: "com.amazonaws.sts#clientTokenType",
1153
+ },
1154
+ ProviderId: {
1155
+ target: "com.amazonaws.sts#urlType",
1156
+ },
1157
+ PolicyArns: {
1158
+ target: "com.amazonaws.sts#policyDescriptorListType",
1159
+ },
1160
+ Policy: {
1161
+ target: "com.amazonaws.sts#sessionPolicyDocumentType",
1162
+ },
1163
+ DurationSeconds: {
1164
+ target: "com.amazonaws.sts#roleDurationSecondsType",
1165
+ },
1166
+ MinimumSessionTokenSize: {
1167
+ target: "com.amazonaws.sts#minimumSessionTokenSizeType",
1168
+ },
1169
+ },
1170
+ },
1171
+ "com.amazonaws.sts#AssumeRoleWithWebIdentityResponse": {
1172
+ type: "structure",
1173
+ members: {
1174
+ Credentials: {
1175
+ target: "com.amazonaws.sts#Credentials",
1176
+ },
1177
+ SubjectFromWebIdentityToken: {
1178
+ target: "com.amazonaws.sts#webIdentitySubjectType",
1179
+ },
1180
+ AssumedRoleUser: {
1181
+ target: "com.amazonaws.sts#AssumedRoleUser",
1182
+ },
1183
+ PackedPolicySize: {
1184
+ target: "com.amazonaws.sts#nonNegativeIntegerType",
1185
+ },
1186
+ Provider: {
1187
+ target: "com.amazonaws.sts#Issuer",
1188
+ },
1189
+ Audience: {
1190
+ target: "com.amazonaws.sts#Audience",
1191
+ },
1192
+ SourceIdentity: {
1193
+ target: "com.amazonaws.sts#sourceIdentityType",
1194
+ },
1195
+ SessionTokenUtilization: {
1196
+ target: "com.amazonaws.sts#sessionTokenUtilizationType",
1197
+ },
1198
+ SessionTokenSize: {
1199
+ target: "com.amazonaws.sts#sessionTokenSizeType",
1200
+ },
1201
+ },
1202
+ },
1203
+ "com.amazonaws.sts#arnType": {
1204
+ type: "string",
1205
+ },
1206
+ "com.amazonaws.sts#roleSessionNameType": {
1207
+ type: "string",
1208
+ },
1209
+ "com.amazonaws.sts#clientTokenType": {
1210
+ type: "string",
1211
+ },
1212
+ "com.amazonaws.sts#urlType": {
1213
+ type: "string",
1214
+ },
1215
+ "com.amazonaws.sts#policyDescriptorListType": {
1216
+ type: "list",
1217
+ member: {
1218
+ target: "com.amazonaws.sts#PolicyDescriptorType",
1219
+ },
1220
+ },
1221
+ "com.amazonaws.sts#sessionPolicyDocumentType": {
1222
+ type: "string",
1223
+ },
1224
+ "com.amazonaws.sts#roleDurationSecondsType": {
1225
+ type: "number",
1226
+ },
1227
+ "com.amazonaws.sts#minimumSessionTokenSizeType": {
1228
+ type: "number",
1229
+ },
1230
+ "com.amazonaws.sts#Credentials": {
1231
+ type: "structure",
1232
+ members: {
1233
+ AccessKeyId: {
1234
+ target: "com.amazonaws.sts#accessKeyIdType",
1235
+ },
1236
+ SecretAccessKey: {
1237
+ target: "com.amazonaws.sts#accessKeySecretType",
1238
+ },
1239
+ SessionToken: {
1240
+ target: "com.amazonaws.sts#tokenType",
1241
+ },
1242
+ Expiration: {
1243
+ target: "com.amazonaws.sts#dateType",
1244
+ },
1245
+ },
1246
+ },
1247
+ "com.amazonaws.sts#webIdentitySubjectType": {
1248
+ type: "string",
1249
+ },
1250
+ "com.amazonaws.sts#AssumedRoleUser": {
1251
+ type: "structure",
1252
+ members: {
1253
+ AssumedRoleId: {
1254
+ target: "com.amazonaws.sts#assumedRoleIdType",
1255
+ },
1256
+ Arn: {
1257
+ target: "com.amazonaws.sts#arnType",
1258
+ },
1259
+ },
1260
+ },
1261
+ "com.amazonaws.sts#nonNegativeIntegerType": {
1262
+ type: "number",
1263
+ },
1264
+ "com.amazonaws.sts#Issuer": {
1265
+ type: "string",
1266
+ },
1267
+ "com.amazonaws.sts#Audience": {
1268
+ type: "string",
1269
+ },
1270
+ "com.amazonaws.sts#sourceIdentityType": {
1271
+ type: "string",
1272
+ },
1273
+ "com.amazonaws.sts#sessionTokenUtilizationType": {
1274
+ type: "number",
1275
+ },
1276
+ "com.amazonaws.sts#sessionTokenSizeType": {
1277
+ type: "number",
1278
+ },
1279
+ "com.amazonaws.sts#PolicyDescriptorType": {
1280
+ type: "structure",
1281
+ members: {
1282
+ arn: {
1283
+ target: "com.amazonaws.sts#arnType",
1284
+ },
1285
+ },
1286
+ },
1287
+ "com.amazonaws.sts#accessKeyIdType": {
1288
+ type: "string",
1289
+ },
1290
+ "com.amazonaws.sts#accessKeySecretType": {
1291
+ type: "string",
1292
+ },
1293
+ "com.amazonaws.sts#tokenType": {
1294
+ type: "string",
1295
+ },
1296
+ "com.amazonaws.sts#dateType": {
1297
+ type: "timestamp",
1298
+ },
1299
+ "com.amazonaws.sts#assumedRoleIdType": {
1300
+ type: "string",
1301
+ },
1302
+ },
1303
+ },
1304
+ idempotencyTokens: [],
1305
+ pagination: {},
1306
+ input: AssumeRoleWithWebIdentityRequest,
1307
+ output: AssumeRoleWithWebIdentityResponse,
1308
+ errors: assumeRoleWithWebIdentityErrors,
1309
+ };
1310
+
1311
+ export const getCallerIdentityOperation: AwsQueryOperation & {
1312
+ readonly input: typeof GetCallerIdentityRequest;
1313
+ readonly output: typeof GetCallerIdentityResponse;
1314
+ } = {
1315
+ name: "GetCallerIdentity",
1316
+ method: "POST",
1317
+ path: "/",
1318
+ headers: {},
1319
+ query: {
1320
+ input: "com.amazonaws.sts#GetCallerIdentityRequest",
1321
+ output: "com.amazonaws.sts#GetCallerIdentityResponse",
1322
+ shapes: {
1323
+ "com.amazonaws.sts#GetCallerIdentityRequest": {
1324
+ type: "structure",
1325
+ members: {},
1326
+ },
1327
+ "com.amazonaws.sts#GetCallerIdentityResponse": {
1328
+ type: "structure",
1329
+ members: {
1330
+ UserId: {
1331
+ target: "com.amazonaws.sts#userIdType",
1332
+ },
1333
+ Account: {
1334
+ target: "com.amazonaws.sts#accountType",
1335
+ },
1336
+ Arn: {
1337
+ target: "com.amazonaws.sts#arnType",
1338
+ },
1339
+ },
1340
+ },
1341
+ "com.amazonaws.sts#userIdType": {
1342
+ type: "string",
1343
+ },
1344
+ "com.amazonaws.sts#accountType": {
1345
+ type: "string",
1346
+ },
1347
+ "com.amazonaws.sts#arnType": {
1348
+ type: "string",
1349
+ },
1350
+ },
1351
+ },
1352
+ idempotencyTokens: [],
1353
+ pagination: {},
1354
+ input: GetCallerIdentityRequest,
1355
+ output: GetCallerIdentityResponse,
1356
+ errors: getCallerIdentityErrors,
1357
+ };
1358
+
1359
+ export const stsOperations = {
1360
+ AssumeRole: assumeRoleOperation,
1361
+ AssumeRoleWithWebIdentity: assumeRoleWithWebIdentityOperation,
1362
+ GetCallerIdentity: getCallerIdentityOperation,
1363
+ };
1364
+
1365
+ export const stsService: AwsServiceDefinition = {
1366
+ service: "com.amazonaws.sts#AWSSecurityTokenServiceV20110615",
1367
+ version: "2011-06-15",
1368
+ protocol: "awsQuery",
1369
+ signingName: "sts",
1370
+ endpointRules: {
1371
+ version: "1.0",
1372
+ parameters: {
1373
+ Region: {
1374
+ type: "string",
1375
+ required: false,
1376
+ },
1377
+ UseDualStack: {
1378
+ type: "boolean",
1379
+ required: true,
1380
+ default: false,
1381
+ },
1382
+ UseFIPS: {
1383
+ type: "boolean",
1384
+ required: true,
1385
+ default: false,
1386
+ },
1387
+ Endpoint: {
1388
+ type: "string",
1389
+ required: false,
1390
+ },
1391
+ UseGlobalEndpoint: {
1392
+ type: "boolean",
1393
+ required: true,
1394
+ default: false,
1395
+ },
1396
+ },
1397
+ rules: [
1398
+ {
1399
+ conditions: [
1400
+ {
1401
+ fn: "booleanEquals",
1402
+ argv: [
1403
+ {
1404
+ ref: "UseGlobalEndpoint",
1405
+ },
1406
+ true,
1407
+ ],
1408
+ },
1409
+ {
1410
+ fn: "not",
1411
+ argv: [
1412
+ {
1413
+ fn: "isSet",
1414
+ argv: [
1415
+ {
1416
+ ref: "Endpoint",
1417
+ },
1418
+ ],
1419
+ },
1420
+ ],
1421
+ },
1422
+ {
1423
+ fn: "isSet",
1424
+ argv: [
1425
+ {
1426
+ ref: "Region",
1427
+ },
1428
+ ],
1429
+ },
1430
+ {
1431
+ fn: "aws.partition",
1432
+ argv: [
1433
+ {
1434
+ ref: "Region",
1435
+ },
1436
+ ],
1437
+ assign: "PartitionResult",
1438
+ },
1439
+ {
1440
+ fn: "booleanEquals",
1441
+ argv: [
1442
+ {
1443
+ ref: "UseFIPS",
1444
+ },
1445
+ false,
1446
+ ],
1447
+ },
1448
+ {
1449
+ fn: "booleanEquals",
1450
+ argv: [
1451
+ {
1452
+ ref: "UseDualStack",
1453
+ },
1454
+ false,
1455
+ ],
1456
+ },
1457
+ ],
1458
+ rules: [
1459
+ {
1460
+ conditions: [
1461
+ {
1462
+ fn: "stringEquals",
1463
+ argv: [
1464
+ {
1465
+ ref: "Region",
1466
+ },
1467
+ "ap-northeast-1",
1468
+ ],
1469
+ },
1470
+ ],
1471
+ endpoint: {
1472
+ url: "https://sts.amazonaws.com",
1473
+ properties: {
1474
+ authSchemes: [
1475
+ {
1476
+ name: "sigv4",
1477
+ signingName: "sts",
1478
+ signingRegion: "us-east-1",
1479
+ },
1480
+ ],
1481
+ },
1482
+ headers: {},
1483
+ },
1484
+ type: "endpoint",
1485
+ },
1486
+ {
1487
+ conditions: [
1488
+ {
1489
+ fn: "stringEquals",
1490
+ argv: [
1491
+ {
1492
+ ref: "Region",
1493
+ },
1494
+ "ap-south-1",
1495
+ ],
1496
+ },
1497
+ ],
1498
+ endpoint: {
1499
+ url: "https://sts.amazonaws.com",
1500
+ properties: {
1501
+ authSchemes: [
1502
+ {
1503
+ name: "sigv4",
1504
+ signingName: "sts",
1505
+ signingRegion: "us-east-1",
1506
+ },
1507
+ ],
1508
+ },
1509
+ headers: {},
1510
+ },
1511
+ type: "endpoint",
1512
+ },
1513
+ {
1514
+ conditions: [
1515
+ {
1516
+ fn: "stringEquals",
1517
+ argv: [
1518
+ {
1519
+ ref: "Region",
1520
+ },
1521
+ "ap-southeast-1",
1522
+ ],
1523
+ },
1524
+ ],
1525
+ endpoint: {
1526
+ url: "https://sts.amazonaws.com",
1527
+ properties: {
1528
+ authSchemes: [
1529
+ {
1530
+ name: "sigv4",
1531
+ signingName: "sts",
1532
+ signingRegion: "us-east-1",
1533
+ },
1534
+ ],
1535
+ },
1536
+ headers: {},
1537
+ },
1538
+ type: "endpoint",
1539
+ },
1540
+ {
1541
+ conditions: [
1542
+ {
1543
+ fn: "stringEquals",
1544
+ argv: [
1545
+ {
1546
+ ref: "Region",
1547
+ },
1548
+ "ap-southeast-2",
1549
+ ],
1550
+ },
1551
+ ],
1552
+ endpoint: {
1553
+ url: "https://sts.amazonaws.com",
1554
+ properties: {
1555
+ authSchemes: [
1556
+ {
1557
+ name: "sigv4",
1558
+ signingName: "sts",
1559
+ signingRegion: "us-east-1",
1560
+ },
1561
+ ],
1562
+ },
1563
+ headers: {},
1564
+ },
1565
+ type: "endpoint",
1566
+ },
1567
+ {
1568
+ conditions: [
1569
+ {
1570
+ fn: "stringEquals",
1571
+ argv: [
1572
+ {
1573
+ ref: "Region",
1574
+ },
1575
+ "aws-global",
1576
+ ],
1577
+ },
1578
+ ],
1579
+ endpoint: {
1580
+ url: "https://sts.amazonaws.com",
1581
+ properties: {
1582
+ authSchemes: [
1583
+ {
1584
+ name: "sigv4",
1585
+ signingName: "sts",
1586
+ signingRegion: "us-east-1",
1587
+ },
1588
+ ],
1589
+ },
1590
+ headers: {},
1591
+ },
1592
+ type: "endpoint",
1593
+ },
1594
+ {
1595
+ conditions: [
1596
+ {
1597
+ fn: "stringEquals",
1598
+ argv: [
1599
+ {
1600
+ ref: "Region",
1601
+ },
1602
+ "ca-central-1",
1603
+ ],
1604
+ },
1605
+ ],
1606
+ endpoint: {
1607
+ url: "https://sts.amazonaws.com",
1608
+ properties: {
1609
+ authSchemes: [
1610
+ {
1611
+ name: "sigv4",
1612
+ signingName: "sts",
1613
+ signingRegion: "us-east-1",
1614
+ },
1615
+ ],
1616
+ },
1617
+ headers: {},
1618
+ },
1619
+ type: "endpoint",
1620
+ },
1621
+ {
1622
+ conditions: [
1623
+ {
1624
+ fn: "stringEquals",
1625
+ argv: [
1626
+ {
1627
+ ref: "Region",
1628
+ },
1629
+ "eu-central-1",
1630
+ ],
1631
+ },
1632
+ ],
1633
+ endpoint: {
1634
+ url: "https://sts.amazonaws.com",
1635
+ properties: {
1636
+ authSchemes: [
1637
+ {
1638
+ name: "sigv4",
1639
+ signingName: "sts",
1640
+ signingRegion: "us-east-1",
1641
+ },
1642
+ ],
1643
+ },
1644
+ headers: {},
1645
+ },
1646
+ type: "endpoint",
1647
+ },
1648
+ {
1649
+ conditions: [
1650
+ {
1651
+ fn: "stringEquals",
1652
+ argv: [
1653
+ {
1654
+ ref: "Region",
1655
+ },
1656
+ "eu-north-1",
1657
+ ],
1658
+ },
1659
+ ],
1660
+ endpoint: {
1661
+ url: "https://sts.amazonaws.com",
1662
+ properties: {
1663
+ authSchemes: [
1664
+ {
1665
+ name: "sigv4",
1666
+ signingName: "sts",
1667
+ signingRegion: "us-east-1",
1668
+ },
1669
+ ],
1670
+ },
1671
+ headers: {},
1672
+ },
1673
+ type: "endpoint",
1674
+ },
1675
+ {
1676
+ conditions: [
1677
+ {
1678
+ fn: "stringEquals",
1679
+ argv: [
1680
+ {
1681
+ ref: "Region",
1682
+ },
1683
+ "eu-west-1",
1684
+ ],
1685
+ },
1686
+ ],
1687
+ endpoint: {
1688
+ url: "https://sts.amazonaws.com",
1689
+ properties: {
1690
+ authSchemes: [
1691
+ {
1692
+ name: "sigv4",
1693
+ signingName: "sts",
1694
+ signingRegion: "us-east-1",
1695
+ },
1696
+ ],
1697
+ },
1698
+ headers: {},
1699
+ },
1700
+ type: "endpoint",
1701
+ },
1702
+ {
1703
+ conditions: [
1704
+ {
1705
+ fn: "stringEquals",
1706
+ argv: [
1707
+ {
1708
+ ref: "Region",
1709
+ },
1710
+ "eu-west-2",
1711
+ ],
1712
+ },
1713
+ ],
1714
+ endpoint: {
1715
+ url: "https://sts.amazonaws.com",
1716
+ properties: {
1717
+ authSchemes: [
1718
+ {
1719
+ name: "sigv4",
1720
+ signingName: "sts",
1721
+ signingRegion: "us-east-1",
1722
+ },
1723
+ ],
1724
+ },
1725
+ headers: {},
1726
+ },
1727
+ type: "endpoint",
1728
+ },
1729
+ {
1730
+ conditions: [
1731
+ {
1732
+ fn: "stringEquals",
1733
+ argv: [
1734
+ {
1735
+ ref: "Region",
1736
+ },
1737
+ "eu-west-3",
1738
+ ],
1739
+ },
1740
+ ],
1741
+ endpoint: {
1742
+ url: "https://sts.amazonaws.com",
1743
+ properties: {
1744
+ authSchemes: [
1745
+ {
1746
+ name: "sigv4",
1747
+ signingName: "sts",
1748
+ signingRegion: "us-east-1",
1749
+ },
1750
+ ],
1751
+ },
1752
+ headers: {},
1753
+ },
1754
+ type: "endpoint",
1755
+ },
1756
+ {
1757
+ conditions: [
1758
+ {
1759
+ fn: "stringEquals",
1760
+ argv: [
1761
+ {
1762
+ ref: "Region",
1763
+ },
1764
+ "sa-east-1",
1765
+ ],
1766
+ },
1767
+ ],
1768
+ endpoint: {
1769
+ url: "https://sts.amazonaws.com",
1770
+ properties: {
1771
+ authSchemes: [
1772
+ {
1773
+ name: "sigv4",
1774
+ signingName: "sts",
1775
+ signingRegion: "us-east-1",
1776
+ },
1777
+ ],
1778
+ },
1779
+ headers: {},
1780
+ },
1781
+ type: "endpoint",
1782
+ },
1783
+ {
1784
+ conditions: [
1785
+ {
1786
+ fn: "stringEquals",
1787
+ argv: [
1788
+ {
1789
+ ref: "Region",
1790
+ },
1791
+ "us-east-1",
1792
+ ],
1793
+ },
1794
+ ],
1795
+ endpoint: {
1796
+ url: "https://sts.amazonaws.com",
1797
+ properties: {
1798
+ authSchemes: [
1799
+ {
1800
+ name: "sigv4",
1801
+ signingName: "sts",
1802
+ signingRegion: "us-east-1",
1803
+ },
1804
+ ],
1805
+ },
1806
+ headers: {},
1807
+ },
1808
+ type: "endpoint",
1809
+ },
1810
+ {
1811
+ conditions: [
1812
+ {
1813
+ fn: "stringEquals",
1814
+ argv: [
1815
+ {
1816
+ ref: "Region",
1817
+ },
1818
+ "us-east-2",
1819
+ ],
1820
+ },
1821
+ ],
1822
+ endpoint: {
1823
+ url: "https://sts.amazonaws.com",
1824
+ properties: {
1825
+ authSchemes: [
1826
+ {
1827
+ name: "sigv4",
1828
+ signingName: "sts",
1829
+ signingRegion: "us-east-1",
1830
+ },
1831
+ ],
1832
+ },
1833
+ headers: {},
1834
+ },
1835
+ type: "endpoint",
1836
+ },
1837
+ {
1838
+ conditions: [
1839
+ {
1840
+ fn: "stringEquals",
1841
+ argv: [
1842
+ {
1843
+ ref: "Region",
1844
+ },
1845
+ "us-west-1",
1846
+ ],
1847
+ },
1848
+ ],
1849
+ endpoint: {
1850
+ url: "https://sts.amazonaws.com",
1851
+ properties: {
1852
+ authSchemes: [
1853
+ {
1854
+ name: "sigv4",
1855
+ signingName: "sts",
1856
+ signingRegion: "us-east-1",
1857
+ },
1858
+ ],
1859
+ },
1860
+ headers: {},
1861
+ },
1862
+ type: "endpoint",
1863
+ },
1864
+ {
1865
+ conditions: [
1866
+ {
1867
+ fn: "stringEquals",
1868
+ argv: [
1869
+ {
1870
+ ref: "Region",
1871
+ },
1872
+ "us-west-2",
1873
+ ],
1874
+ },
1875
+ ],
1876
+ endpoint: {
1877
+ url: "https://sts.amazonaws.com",
1878
+ properties: {
1879
+ authSchemes: [
1880
+ {
1881
+ name: "sigv4",
1882
+ signingName: "sts",
1883
+ signingRegion: "us-east-1",
1884
+ },
1885
+ ],
1886
+ },
1887
+ headers: {},
1888
+ },
1889
+ type: "endpoint",
1890
+ },
1891
+ {
1892
+ conditions: [],
1893
+ endpoint: {
1894
+ url: "https://sts.{Region}.{PartitionResult#dnsSuffix}",
1895
+ properties: {
1896
+ authSchemes: [
1897
+ {
1898
+ name: "sigv4",
1899
+ signingName: "sts",
1900
+ signingRegion: "{Region}",
1901
+ },
1902
+ ],
1903
+ },
1904
+ headers: {},
1905
+ },
1906
+ type: "endpoint",
1907
+ },
1908
+ ],
1909
+ type: "tree",
1910
+ },
1911
+ {
1912
+ conditions: [
1913
+ {
1914
+ fn: "isSet",
1915
+ argv: [
1916
+ {
1917
+ ref: "Endpoint",
1918
+ },
1919
+ ],
1920
+ },
1921
+ ],
1922
+ rules: [
1923
+ {
1924
+ conditions: [
1925
+ {
1926
+ fn: "booleanEquals",
1927
+ argv: [
1928
+ {
1929
+ ref: "UseFIPS",
1930
+ },
1931
+ true,
1932
+ ],
1933
+ },
1934
+ ],
1935
+ error:
1936
+ "Invalid Configuration: FIPS and custom endpoint are not supported",
1937
+ type: "error",
1938
+ },
1939
+ {
1940
+ conditions: [
1941
+ {
1942
+ fn: "booleanEquals",
1943
+ argv: [
1944
+ {
1945
+ ref: "UseDualStack",
1946
+ },
1947
+ true,
1948
+ ],
1949
+ },
1950
+ ],
1951
+ error:
1952
+ "Invalid Configuration: Dualstack and custom endpoint are not supported",
1953
+ type: "error",
1954
+ },
1955
+ {
1956
+ conditions: [],
1957
+ endpoint: {
1958
+ url: {
1959
+ ref: "Endpoint",
1960
+ },
1961
+ properties: {},
1962
+ headers: {},
1963
+ },
1964
+ type: "endpoint",
1965
+ },
1966
+ ],
1967
+ type: "tree",
1968
+ },
1969
+ {
1970
+ conditions: [
1971
+ {
1972
+ fn: "isSet",
1973
+ argv: [
1974
+ {
1975
+ ref: "Region",
1976
+ },
1977
+ ],
1978
+ },
1979
+ ],
1980
+ rules: [
1981
+ {
1982
+ conditions: [
1983
+ {
1984
+ fn: "aws.partition",
1985
+ argv: [
1986
+ {
1987
+ ref: "Region",
1988
+ },
1989
+ ],
1990
+ assign: "PartitionResult",
1991
+ },
1992
+ ],
1993
+ rules: [
1994
+ {
1995
+ conditions: [
1996
+ {
1997
+ fn: "booleanEquals",
1998
+ argv: [
1999
+ {
2000
+ ref: "UseFIPS",
2001
+ },
2002
+ true,
2003
+ ],
2004
+ },
2005
+ {
2006
+ fn: "booleanEquals",
2007
+ argv: [
2008
+ {
2009
+ ref: "UseDualStack",
2010
+ },
2011
+ true,
2012
+ ],
2013
+ },
2014
+ ],
2015
+ rules: [
2016
+ {
2017
+ conditions: [
2018
+ {
2019
+ fn: "booleanEquals",
2020
+ argv: [
2021
+ true,
2022
+ {
2023
+ fn: "getAttr",
2024
+ argv: [
2025
+ {
2026
+ ref: "PartitionResult",
2027
+ },
2028
+ "supportsFIPS",
2029
+ ],
2030
+ },
2031
+ ],
2032
+ },
2033
+ {
2034
+ fn: "booleanEquals",
2035
+ argv: [
2036
+ true,
2037
+ {
2038
+ fn: "getAttr",
2039
+ argv: [
2040
+ {
2041
+ ref: "PartitionResult",
2042
+ },
2043
+ "supportsDualStack",
2044
+ ],
2045
+ },
2046
+ ],
2047
+ },
2048
+ ],
2049
+ rules: [
2050
+ {
2051
+ conditions: [],
2052
+ endpoint: {
2053
+ url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
2054
+ properties: {},
2055
+ headers: {},
2056
+ },
2057
+ type: "endpoint",
2058
+ },
2059
+ ],
2060
+ type: "tree",
2061
+ },
2062
+ {
2063
+ conditions: [],
2064
+ error:
2065
+ "FIPS and DualStack are enabled, but this partition does not support one or both",
2066
+ type: "error",
2067
+ },
2068
+ ],
2069
+ type: "tree",
2070
+ },
2071
+ {
2072
+ conditions: [
2073
+ {
2074
+ fn: "booleanEquals",
2075
+ argv: [
2076
+ {
2077
+ ref: "UseFIPS",
2078
+ },
2079
+ true,
2080
+ ],
2081
+ },
2082
+ ],
2083
+ rules: [
2084
+ {
2085
+ conditions: [
2086
+ {
2087
+ fn: "booleanEquals",
2088
+ argv: [
2089
+ {
2090
+ fn: "getAttr",
2091
+ argv: [
2092
+ {
2093
+ ref: "PartitionResult",
2094
+ },
2095
+ "supportsFIPS",
2096
+ ],
2097
+ },
2098
+ true,
2099
+ ],
2100
+ },
2101
+ ],
2102
+ rules: [
2103
+ {
2104
+ conditions: [
2105
+ {
2106
+ fn: "stringEquals",
2107
+ argv: [
2108
+ {
2109
+ fn: "getAttr",
2110
+ argv: [
2111
+ {
2112
+ ref: "PartitionResult",
2113
+ },
2114
+ "name",
2115
+ ],
2116
+ },
2117
+ "aws-us-gov",
2118
+ ],
2119
+ },
2120
+ ],
2121
+ endpoint: {
2122
+ url: "https://sts.{Region}.amazonaws.com",
2123
+ properties: {},
2124
+ headers: {},
2125
+ },
2126
+ type: "endpoint",
2127
+ },
2128
+ {
2129
+ conditions: [],
2130
+ endpoint: {
2131
+ url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
2132
+ properties: {},
2133
+ headers: {},
2134
+ },
2135
+ type: "endpoint",
2136
+ },
2137
+ ],
2138
+ type: "tree",
2139
+ },
2140
+ {
2141
+ conditions: [],
2142
+ error:
2143
+ "FIPS is enabled but this partition does not support FIPS",
2144
+ type: "error",
2145
+ },
2146
+ ],
2147
+ type: "tree",
2148
+ },
2149
+ {
2150
+ conditions: [
2151
+ {
2152
+ fn: "booleanEquals",
2153
+ argv: [
2154
+ {
2155
+ ref: "UseDualStack",
2156
+ },
2157
+ true,
2158
+ ],
2159
+ },
2160
+ ],
2161
+ rules: [
2162
+ {
2163
+ conditions: [
2164
+ {
2165
+ fn: "booleanEquals",
2166
+ argv: [
2167
+ true,
2168
+ {
2169
+ fn: "getAttr",
2170
+ argv: [
2171
+ {
2172
+ ref: "PartitionResult",
2173
+ },
2174
+ "supportsDualStack",
2175
+ ],
2176
+ },
2177
+ ],
2178
+ },
2179
+ ],
2180
+ rules: [
2181
+ {
2182
+ conditions: [],
2183
+ endpoint: {
2184
+ url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
2185
+ properties: {},
2186
+ headers: {},
2187
+ },
2188
+ type: "endpoint",
2189
+ },
2190
+ ],
2191
+ type: "tree",
2192
+ },
2193
+ {
2194
+ conditions: [],
2195
+ error:
2196
+ "DualStack is enabled but this partition does not support DualStack",
2197
+ type: "error",
2198
+ },
2199
+ ],
2200
+ type: "tree",
2201
+ },
2202
+ {
2203
+ conditions: [
2204
+ {
2205
+ fn: "stringEquals",
2206
+ argv: [
2207
+ {
2208
+ ref: "Region",
2209
+ },
2210
+ "aws-global",
2211
+ ],
2212
+ },
2213
+ ],
2214
+ endpoint: {
2215
+ url: "https://sts.amazonaws.com",
2216
+ properties: {
2217
+ authSchemes: [
2218
+ {
2219
+ name: "sigv4",
2220
+ signingName: "sts",
2221
+ signingRegion: "us-east-1",
2222
+ },
2223
+ ],
2224
+ },
2225
+ headers: {},
2226
+ },
2227
+ type: "endpoint",
2228
+ },
2229
+ {
2230
+ conditions: [],
2231
+ endpoint: {
2232
+ url: "https://sts.{Region}.{PartitionResult#dnsSuffix}",
2233
+ properties: {},
2234
+ headers: {},
2235
+ },
2236
+ type: "endpoint",
2237
+ },
2238
+ ],
2239
+ type: "tree",
2240
+ },
2241
+ ],
2242
+ type: "tree",
2243
+ },
2244
+ {
2245
+ conditions: [],
2246
+ error: "Invalid Configuration: Missing Region",
2247
+ type: "error",
2248
+ },
2249
+ ],
2250
+ },
2251
+ xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
2252
+ };
2253
+
2254
+ /** The makeSTSClient Effect gives callers access to STS with the region and credentials configured in their AWS runtime. */
2255
+ export const makeSTSClient = Effect.gen(function* () {
2256
+ const aws = yield* AwsClient;
2257
+
2258
+ const bindOperation = aws.bindOperation(stsService);
2259
+
2260
+ return {
2261
+ /** Returns a set of temporary security credentials that you can use to access Amazon Web Services resources. These temporary credentials consist of an access key ID, a secret access key, and a security token. Typically, you use AssumeRole within your account or for cross-account access. For a comparison of AssumeRole with other API operations that produce temporary credentials, see Requesting Temporary Security Credentials and Compare STS credentials in the IAM User Guide. */
2262
+ assumeRole: bindOperation(assumeRoleOperation),
2263
+ /** Returns a set of temporary security credentials for users who have been authenticated in a mobile or web application with a web identity provider. Example providers include the OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID Connect-compatible identity provider such as Google or Amazon Cognito federated identities. */
2264
+ assumeRoleWithWebIdentity: bindOperation(
2265
+ assumeRoleWithWebIdentityOperation,
2266
+ ),
2267
+ /** Returns details about the IAM user or role whose credentials are used to call the operation. */
2268
+ getCallerIdentity: bindOperation(getCallerIdentityOperation),
2269
+ };
2270
+ });