1{
2    "testCases": [
3        {
4            "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
5            "expect": {
6                "endpoint": {
7                    "url": "https://qbusiness-fips.us-east-1.api.aws"
8                }
9            },
10            "params": {
11                "Region": "us-east-1",
12                "UseFIPS": true
13            }
14        },
15        {
16            "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
17            "expect": {
18                "endpoint": {
19                    "url": "https://qbusiness.us-east-1.api.aws"
20                }
21            },
22            "params": {
23                "Region": "us-east-1",
24                "UseFIPS": false
25            }
26        },
27        {
28            "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
29            "expect": {
30                "endpoint": {
31                    "url": "https://qbusiness-fips.cn-north-1.api.amazonwebservices.com.cn"
32                }
33            },
34            "params": {
35                "Region": "cn-north-1",
36                "UseFIPS": true
37            }
38        },
39        {
40            "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
41            "expect": {
42                "endpoint": {
43                    "url": "https://qbusiness.cn-north-1.api.amazonwebservices.com.cn"
44                }
45            },
46            "params": {
47                "Region": "cn-north-1",
48                "UseFIPS": false
49            }
50        },
51        {
52            "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
53            "expect": {
54                "endpoint": {
55                    "url": "https://qbusiness-fips.us-gov-east-1.api.aws"
56                }
57            },
58            "params": {
59                "Region": "us-gov-east-1",
60                "UseFIPS": true
61            }
62        },
63        {
64            "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
65            "expect": {
66                "endpoint": {
67                    "url": "https://qbusiness.us-gov-east-1.api.aws"
68                }
69            },
70            "params": {
71                "Region": "us-gov-east-1",
72                "UseFIPS": false
73            }
74        },
75        {
76            "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
77            "expect": {
78                "endpoint": {
79                    "url": "https://example.com"
80                }
81            },
82            "params": {
83                "Region": "us-east-1",
84                "UseFIPS": false,
85                "Endpoint": "https://example.com"
86            }
87        },
88        {
89            "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
90            "expect": {
91                "endpoint": {
92                    "url": "https://example.com"
93                }
94            },
95            "params": {
96                "UseFIPS": false,
97                "Endpoint": "https://example.com"
98            }
99        },
100        {
101            "documentation": "For custom endpoint with fips enabled and dualstack disabled",
102            "expect": {
103                "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
104            },
105            "params": {
106                "Region": "us-east-1",
107                "UseFIPS": true,
108                "Endpoint": "https://example.com"
109            }
110        },
111        {
112            "documentation": "Missing region",
113            "expect": {
114                "error": "Invalid Configuration: Missing Region"
115            }
116        }
117    ],
118    "version": "1.0"
119}