Debian Codegraph @

models/apis/eventbridge/2015-10-07/endpoint-tests-1.json

raw
1 {
2 "testCases": [
3 {
4 "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
5 "expect": {
6 "endpoint": {
7 "url": "https://events.af-south-1.amazonaws.com"
8 }
9 },
10 "params": {
11 "Region": "af-south-1",
12 "UseFIPS": false,
13 "UseDualStack": false
14 }
15 },
16 {
17 "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
18 "expect": {
19 "endpoint": {
20 "url": "https://events.ap-east-1.amazonaws.com"
21 }
22 },
23 "params": {
24 "Region": "ap-east-1",
25 "UseFIPS": false,
26 "UseDualStack": false
27 }
28 },
29 {
30 "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
31 "expect": {
32 "endpoint": {
33 "url": "https://events.ap-northeast-1.amazonaws.com"
34 }
35 },
36 "params": {
37 "Region": "ap-northeast-1",
38 "UseFIPS": false,
39 "UseDualStack": false
40 }
41 },
42 {
43 "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
44 "expect": {
45 "endpoint": {
46 "url": "https://events.ap-northeast-2.amazonaws.com"
47 }
48 },
49 "params": {
50 "Region": "ap-northeast-2",
51 "UseFIPS": false,
52 "UseDualStack": false
53 }
54 },
55 {
56 "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
57 "expect": {
58 "endpoint": {
59 "url": "https://events.ap-northeast-3.amazonaws.com"
60 }
61 },
62 "params": {
63 "Region": "ap-northeast-3",
64 "UseFIPS": false,
65 "UseDualStack": false
66 }
67 },
68 {
69 "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
70 "expect": {
71 "endpoint": {
72 "url": "https://events.ap-south-1.amazonaws.com"
73 }
74 },
75 "params": {
76 "Region": "ap-south-1",
77 "UseFIPS": false,
78 "UseDualStack": false
79 }
80 },
81 {
82 "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
83 "expect": {
84 "endpoint": {
85 "url": "https://events.ap-southeast-1.amazonaws.com"
86 }
87 },
88 "params": {
89 "Region": "ap-southeast-1",
90 "UseFIPS": false,
91 "UseDualStack": false
92 }
93 },
94 {
95 "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
96 "expect": {
97 "endpoint": {
98 "url": "https://events.ap-southeast-2.amazonaws.com"
99 }
100 },
101 "params": {
102 "Region": "ap-southeast-2",
103 "UseFIPS": false,
104 "UseDualStack": false
105 }
106 },
107 {
108 "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled",
109 "expect": {
110 "endpoint": {
111 "url": "https://events.ap-southeast-3.amazonaws.com"
112 }
113 },
114 "params": {
115 "Region": "ap-southeast-3",
116 "UseFIPS": false,
117 "UseDualStack": false
118 }
119 },
120 {
121 "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
122 "expect": {
123 "endpoint": {
124 "url": "https://events.ca-central-1.amazonaws.com"
125 }
126 },
127 "params": {
128 "Region": "ca-central-1",
129 "UseFIPS": false,
130 "UseDualStack": false
131 }
132 },
133 {
134 "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
135 "expect": {
136 "endpoint": {
137 "url": "https://events.eu-central-1.amazonaws.com"
138 }
139 },
140 "params": {
141 "Region": "eu-central-1",
142 "UseFIPS": false,
143 "UseDualStack": false
144 }
145 },
146 {
147 "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
148 "expect": {
149 "endpoint": {
150 "url": "https://events.eu-north-1.amazonaws.com"
151 }
152 },
153 "params": {
154 "Region": "eu-north-1",
155 "UseFIPS": false,
156 "UseDualStack": false
157 }
158 },
159 {
160 "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
161 "expect": {
162 "endpoint": {
163 "url": "https://events.eu-south-1.amazonaws.com"
164 }
165 },
166 "params": {
167 "Region": "eu-south-1",
168 "UseFIPS": false,
169 "UseDualStack": false
170 }
171 },
172 {
173 "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
174 "expect": {
175 "endpoint": {
176 "url": "https://events.eu-west-1.amazonaws.com"
177 }
178 },
179 "params": {
180 "Region": "eu-west-1",
181 "UseFIPS": false,
182 "UseDualStack": false
183 }
184 },
185 {
186 "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
187 "expect": {
188 "endpoint": {
189 "url": "https://events.eu-west-2.amazonaws.com"
190 }
191 },
192 "params": {
193 "Region": "eu-west-2",
194 "UseFIPS": false,
195 "UseDualStack": false
196 }
197 },
198 {
199 "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
200 "expect": {
201 "endpoint": {
202 "url": "https://events.eu-west-3.amazonaws.com"
203 }
204 },
205 "params": {
206 "Region": "eu-west-3",
207 "UseFIPS": false,
208 "UseDualStack": false
209 }
210 },
211 {
212 "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
213 "expect": {
214 "endpoint": {
215 "url": "https://events.me-south-1.amazonaws.com"
216 }
217 },
218 "params": {
219 "Region": "me-south-1",
220 "UseFIPS": false,
221 "UseDualStack": false
222 }
223 },
224 {
225 "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
226 "expect": {
227 "endpoint": {
228 "url": "https://events.sa-east-1.amazonaws.com"
229 }
230 },
231 "params": {
232 "Region": "sa-east-1",
233 "UseFIPS": false,
234 "UseDualStack": false
235 }
236 },
237 {
238 "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
239 "expect": {
240 "endpoint": {
241 "url": "https://events.us-east-1.amazonaws.com"
242 }
243 },
244 "params": {
245 "Region": "us-east-1",
246 "UseFIPS": false,
247 "UseDualStack": false
248 }
249 },
250 {
251 "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
252 "expect": {
253 "endpoint": {
254 "url": "https://events-fips.us-east-1.amazonaws.com"
255 }
256 },
257 "params": {
258 "Region": "us-east-1",
259 "UseFIPS": true,
260 "UseDualStack": false
261 }
262 },
263 {
264 "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
265 "expect": {
266 "endpoint": {
267 "url": "https://events.us-east-2.amazonaws.com"
268 }
269 },
270 "params": {
271 "Region": "us-east-2",
272 "UseFIPS": false,
273 "UseDualStack": false
274 }
275 },
276 {
277 "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
278 "expect": {
279 "endpoint": {
280 "url": "https://events-fips.us-east-2.amazonaws.com"
281 }
282 },
283 "params": {
284 "Region": "us-east-2",
285 "UseFIPS": true,
286 "UseDualStack": false
287 }
288 },
289 {
290 "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
291 "expect": {
292 "endpoint": {
293 "url": "https://events.us-west-1.amazonaws.com"
294 }
295 },
296 "params": {
297 "Region": "us-west-1",
298 "UseFIPS": false,
299 "UseDualStack": false
300 }
301 },
302 {
303 "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled",
304 "expect": {
305 "endpoint": {
306 "url": "https://events-fips.us-west-1.amazonaws.com"
307 }
308 },
309 "params": {
310 "Region": "us-west-1",
311 "UseFIPS": true,
312 "UseDualStack": false
313 }
314 },
315 {
316 "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
317 "expect": {
318 "endpoint": {
319 "url": "https://events.us-west-2.amazonaws.com"
320 }
321 },
322 "params": {
323 "Region": "us-west-2",
324 "UseFIPS": false,
325 "UseDualStack": false
326 }
327 },
328 {
329 "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
330 "expect": {
331 "endpoint": {
332 "url": "https://events-fips.us-west-2.amazonaws.com"
333 }
334 },
335 "params": {
336 "Region": "us-west-2",
337 "UseFIPS": true,
338 "UseDualStack": false
339 }
340 },
341 {
342 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
343 "expect": {
344 "endpoint": {
345 "url": "https://events-fips.us-east-1.api.aws"
346 }
347 },
348 "params": {
349 "Region": "us-east-1",
350 "UseFIPS": true,
351 "UseDualStack": true
352 }
353 },
354 {
355 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
356 "expect": {
357 "endpoint": {
358 "url": "https://events.us-east-1.api.aws"
359 }
360 },
361 "params": {
362 "Region": "us-east-1",
363 "UseFIPS": false,
364 "UseDualStack": true
365 }
366 },
367 {
368 "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
369 "expect": {
370 "endpoint": {
371 "url": "https://events.cn-north-1.amazonaws.com.cn"
372 }
373 },
374 "params": {
375 "Region": "cn-north-1",
376 "UseFIPS": false,
377 "UseDualStack": false
378 }
379 },
380 {
381 "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
382 "expect": {
383 "endpoint": {
384 "url": "https://events.cn-northwest-1.amazonaws.com.cn"
385 }
386 },
387 "params": {
388 "Region": "cn-northwest-1",
389 "UseFIPS": false,
390 "UseDualStack": false
391 }
392 },
393 {
394 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
395 "expect": {
396 "endpoint": {
397 "url": "https://events-fips.cn-north-1.api.amazonwebservices.com.cn"
398 }
399 },
400 "params": {
401 "Region": "cn-north-1",
402 "UseFIPS": true,
403 "UseDualStack": true
404 }
405 },
406 {
407 "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
408 "expect": {
409 "endpoint": {
410 "url": "https://events-fips.cn-north-1.amazonaws.com.cn"
411 }
412 },
413 "params": {
414 "Region": "cn-north-1",
415 "UseFIPS": true,
416 "UseDualStack": false
417 }
418 },
419 {
420 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
421 "expect": {
422 "endpoint": {
423 "url": "https://events.cn-north-1.api.amazonwebservices.com.cn"
424 }
425 },
426 "params": {
427 "Region": "cn-north-1",
428 "UseFIPS": false,
429 "UseDualStack": true
430 }
431 },
432 {
433 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
434 "expect": {
435 "endpoint": {
436 "url": "https://events.us-gov-east-1.amazonaws.com"
437 }
438 },
439 "params": {
440 "Region": "us-gov-east-1",
441 "UseFIPS": false,
442 "UseDualStack": false
443 }
444 },
445 {
446 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
447 "expect": {
448 "endpoint": {
449 "url": "https://events.us-gov-east-1.amazonaws.com"
450 }
451 },
452 "params": {
453 "Region": "us-gov-east-1",
454 "UseFIPS": true,
455 "UseDualStack": false
456 }
457 },
458 {
459 "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
460 "expect": {
461 "endpoint": {
462 "url": "https://events.us-gov-west-1.amazonaws.com"
463 }
464 },
465 "params": {
466 "Region": "us-gov-west-1",
467 "UseFIPS": false,
468 "UseDualStack": false
469 }
470 },
471 {
472 "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
473 "expect": {
474 "endpoint": {
475 "url": "https://events.us-gov-west-1.amazonaws.com"
476 }
477 },
478 "params": {
479 "Region": "us-gov-west-1",
480 "UseFIPS": true,
481 "UseDualStack": false
482 }
483 },
484 {
485 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
486 "expect": {
487 "endpoint": {
488 "url": "https://events-fips.us-gov-east-1.api.aws"
489 }
490 },
491 "params": {
492 "Region": "us-gov-east-1",
493 "UseFIPS": true,
494 "UseDualStack": true
495 }
496 },
497 {
498 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
499 "expect": {
500 "endpoint": {
501 "url": "https://events.us-gov-east-1.api.aws"
502 }
503 },
504 "params": {
505 "Region": "us-gov-east-1",
506 "UseFIPS": false,
507 "UseDualStack": true
508 }
509 },
510 {
511 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
512 "expect": {
513 "endpoint": {
514 "url": "https://events.us-iso-east-1.c2s.ic.gov"
515 }
516 },
517 "params": {
518 "Region": "us-iso-east-1",
519 "UseFIPS": false,
520 "UseDualStack": false
521 }
522 },
523 {
524 "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled",
525 "expect": {
526 "endpoint": {
527 "url": "https://events.us-iso-west-1.c2s.ic.gov"
528 }
529 },
530 "params": {
531 "Region": "us-iso-west-1",
532 "UseFIPS": false,
533 "UseDualStack": false
534 }
535 },
536 {
537 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
538 "expect": {
539 "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
540 },
541 "params": {
542 "Region": "us-iso-east-1",
543 "UseFIPS": true,
544 "UseDualStack": true
545 }
546 },
547 {
548 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
549 "expect": {
550 "endpoint": {
551 "url": "https://events-fips.us-iso-east-1.c2s.ic.gov"
552 }
553 },
554 "params": {
555 "Region": "us-iso-east-1",
556 "UseFIPS": true,
557 "UseDualStack": false
558 }
559 },
560 {
561 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
562 "expect": {
563 "error": "DualStack is enabled but this partition does not support DualStack"
564 },
565 "params": {
566 "Region": "us-iso-east-1",
567 "UseFIPS": false,
568 "UseDualStack": true
569 }
570 },
571 {
572 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
573 "expect": {
574 "endpoint": {
575 "url": "https://events.us-isob-east-1.sc2s.sgov.gov"
576 }
577 },
578 "params": {
579 "Region": "us-isob-east-1",
580 "UseFIPS": false,
581 "UseDualStack": false
582 }
583 },
584 {
585 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
586 "expect": {
587 "error": "FIPS and DualStack are enabled, but this partition does not support one or both"
588 },
589 "params": {
590 "Region": "us-isob-east-1",
591 "UseFIPS": true,
592 "UseDualStack": true
593 }
594 },
595 {
596 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
597 "expect": {
598 "endpoint": {
599 "url": "https://events-fips.us-isob-east-1.sc2s.sgov.gov"
600 }
601 },
602 "params": {
603 "Region": "us-isob-east-1",
604 "UseFIPS": true,
605 "UseDualStack": false
606 }
607 },
608 {
609 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
610 "expect": {
611 "error": "DualStack is enabled but this partition does not support DualStack"
612 },
613 "params": {
614 "Region": "us-isob-east-1",
615 "UseFIPS": false,
616 "UseDualStack": true
617 }
618 },
619 {
620 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
621 "expect": {
622 "endpoint": {
623 "url": "https://example.com"
624 }
625 },
626 "params": {
627 "Region": "us-east-1",
628 "UseFIPS": false,
629 "UseDualStack": false,
630 "Endpoint": "https://example.com"
631 }
632 },
633 {
634 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
635 "expect": {
636 "endpoint": {
637 "url": "https://example.com"
638 }
639 },
640 "params": {
641 "UseFIPS": false,
642 "UseDualStack": false,
643 "Endpoint": "https://example.com"
644 }
645 },
646 {
647 "documentation": "For custom endpoint with fips enabled and dualstack disabled",
648 "expect": {
649 "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
650 },
651 "params": {
652 "Region": "us-east-1",
653 "UseFIPS": true,
654 "UseDualStack": false,
655 "Endpoint": "https://example.com"
656 }
657 },
658 {
659 "documentation": "For custom endpoint with fips disabled and dualstack enabled",
660 "expect": {
661 "error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
662 },
663 "params": {
664 "Region": "us-east-1",
665 "UseFIPS": false,
666 "UseDualStack": true,
667 "Endpoint": "https://example.com"
668 }
669 },
670 {
671 "documentation": "Missing region",
672 "expect": {
673 "error": "Invalid Configuration: Missing Region"
674 }
675 },
676 {
677 "documentation": "Valid endpointId with fips disabled and dualstack disabled",
678 "expect": {
679 "endpoint": {
680 "properties": {
681 "authSchemes": [
682 {
683 "signingName": "events",
684 "name": "sigv4a",
685 "signingRegionSet": [
686 "*"
687 ]
688 }
689 ]
690 },
691 "url": "https://abc123.456def.endpoint.events.amazonaws.com"
692 }
693 },
694 "operationInputs": [
695 {
696 "builtInParams": {
697 "AWS::Region": "us-east-1"
698 },
699 "operationName": "PutEvents",
700 "operationParams": {
701 "EndpointId": "abc123.456def",
702 "Entries": [
703 {
704 "DetailType": "detailType",
705 "Detail": "{ \"test\": [\"test\"] }",
706 "EventBusName": "my-sdk-app"
707 }
708 ]
709 }
710 }
711 ],
712 "params": {
713 "EndpointId": "abc123.456def",
714 "UseDualStack": false,
715 "UseFIPS": false,
716 "Region": "us-east-1"
717 }
718 },
719 {
720 "documentation": "Valid EndpointId with dualstack disabled and fips enabled",
721 "expect": {
722 "error": "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints."
723 },
724 "params": {
725 "EndpointId": "abc123.456def",
726 "UseDualStack": false,
727 "UseFIPS": true,
728 "Region": "us-east-1"
729 }
730 },
731 {
732 "documentation": "Valid EndpointId with dualstack enabled and fips enabled",
733 "expect": {
734 "error": "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints."
735 },
736 "params": {
737 "EndpointId": "abc123.456def",
738 "UseDualStack": true,
739 "UseFIPS": true,
740 "Region": "us-east-1"
741 }
742 },
743 {
744 "documentation": "Invalid EndpointId",
745 "expect": {
746 "error": "EndpointId must be a valid host label."
747 },
748 "params": {
749 "EndpointId": "badactor.com?foo=bar",
750 "UseDualStack": false,
751 "UseFIPS": false,
752 "Region": "us-east-1"
753 }
754 },
755 {
756 "documentation": "Invalid EndpointId (empty)",
757 "expect": {
758 "error": "EndpointId must be a valid host label."
759 },
760 "params": {
761 "EndpointId": "",
762 "UseDualStack": false,
763 "UseFIPS": false,
764 "Region": "us-east-1"
765 }
766 },
767 {
768 "documentation": "Valid endpointId with fips disabled and dualstack true",
769 "expect": {
770 "endpoint": {
771 "properties": {
772 "authSchemes": [
773 {
774 "signingName": "events",
775 "name": "sigv4a",
776 "signingRegionSet": [
777 "*"
778 ]
779 }
780 ]
781 },
782 "url": "https://abc123.456def.endpoint.events.api.aws"
783 }
784 },
785 "params": {
786 "EndpointId": "abc123.456def",
787 "UseDualStack": true,
788 "UseFIPS": false,
789 "Region": "us-east-1"
790 }
791 },
792 {
793 "documentation": "Valid endpointId with custom sdk endpoint",
794 "expect": {
795 "endpoint": {
796 "properties": {
797 "authSchemes": [
798 {
799 "signingName": "events",
800 "name": "sigv4a",
801 "signingRegionSet": [
802 "*"
803 ]
804 }
805 ]
806 },
807 "url": "https://example.com"
808 }
809 },
810 "params": {
811 "EndpointId": "abc123.456def",
812 "UseDualStack": true,
813 "UseFIPS": false,
814 "Region": "us-east-1",
815 "Endpoint": "https://example.com"
816 }
817 },
818 {
819 "documentation": "Valid EndpointId with DualStack enabled and partition does not support DualStack",
820 "expect": {
821 "error": "DualStack is enabled but this partition does not support DualStack"
822 },
823 "params": {
824 "EndpointId": "abc123.456def",
825 "UseDualStack": true,
826 "UseFIPS": false,
827 "Region": "us-isob-east-1"
828 }
829 }
830 ],
831 "version": "1.0"
832 }