1{ 2 "testCases": [ 3 { 4 "documentation": "For region aws-global with FIPS disabled and DualStack disabled", 5 "expect": { 6 "endpoint": { 7 "properties": { 8 "authSchemes": [ 9 { 10 "name": "sigv4", 11 "signingName": "health", 12 "signingRegion": "us-east-1" 13 } 14 ] 15 }, 16 "url": "https://global.health.amazonaws.com" 17 } 18 }, 19 "params": { 20 "Region": "aws-global", 21 "UseFIPS": false, 22 "UseDualStack": false 23 } 24 }, 25 { 26 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", 27 "expect": { 28 "endpoint": { 29 "url": "https://health-fips.us-east-1.api.aws" 30 } 31 }, 32 "params": { 33 "Region": "us-east-1", 34 "UseFIPS": true, 35 "UseDualStack": true 36 } 37 }, 38 { 39 "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", 40 "expect": { 41 "endpoint": { 42 "url": "https://health-fips.us-east-1.amazonaws.com" 43 } 44 }, 45 "params": { 46 "Region": "us-east-1", 47 "UseFIPS": true, 48 "UseDualStack": false 49 } 50 }, 51 { 52 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", 53 "expect": { 54 "endpoint": { 55 "url": "https://health.us-east-1.api.aws" 56 } 57 }, 58 "params": { 59 "Region": "us-east-1", 60 "UseFIPS": false, 61 "UseDualStack": true 62 } 63 }, 64 { 65 "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", 66 "expect": { 67 "endpoint": { 68 "url": "https://health.us-east-1.amazonaws.com" 69 } 70 }, 71 "params": { 72 "Region": "us-east-1", 73 "UseFIPS": false, 74 "UseDualStack": false 75 } 76 }, 77 { 78 "documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled", 79 "expect": { 80 "endpoint": { 81 "properties": { 82 "authSchemes": [ 83 { 84 "name": "sigv4", 85 "signingName": "health", 86 "signingRegion": "cn-northwest-1" 87 } 88 ] 89 }, 90 "url": "https://global.health.amazonaws.com.cn" 91 } 92 }, 93 "params": { 94 "Region": "aws-cn-global", 95 "UseFIPS": false, 96 "UseDualStack": false 97 } 98 }, 99 { 100 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", 101 "expect": { 102 "endpoint": { 103 "url": "https://health-fips.cn-north-1.api.amazonwebservices.com.cn" 104 } 105 }, 106 "params": { 107 "Region": "cn-north-1", 108 "UseFIPS": true, 109 "UseDualStack": true 110 } 111 }, 112 { 113 "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", 114 "expect": { 115 "endpoint": { 116 "url": "https://health-fips.cn-north-1.amazonaws.com.cn" 117 } 118 }, 119 "params": { 120 "Region": "cn-north-1", 121 "UseFIPS": true, 122 "UseDualStack": false 123 } 124 }, 125 { 126 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", 127 "expect": { 128 "endpoint": { 129 "url": "https://health.cn-north-1.api.amazonwebservices.com.cn" 130 } 131 }, 132 "params": { 133 "Region": "cn-north-1", 134 "UseFIPS": false, 135 "UseDualStack": true 136 } 137 }, 138 { 139 "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", 140 "expect": { 141 "endpoint": { 142 "url": "https://health.cn-north-1.amazonaws.com.cn" 143 } 144 }, 145 "params": { 146 "Region": "cn-north-1", 147 "UseFIPS": false, 148 "UseDualStack": false 149 } 150 }, 151 { 152 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", 153 "expect": { 154 "endpoint": { 155 "url": "https://health-fips.us-gov-east-1.api.aws" 156 } 157 }, 158 "params": { 159 "Region": "us-gov-east-1", 160 "UseFIPS": true, 161 "UseDualStack": true 162 } 163 }, 164 { 165 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", 166 "expect": { 167 "endpoint": { 168 "url": "https://health-fips.us-gov-east-1.amazonaws.com" 169 } 170 }, 171 "params": { 172 "Region": "us-gov-east-1", 173 "UseFIPS": true, 174 "UseDualStack": false 175 } 176 }, 177 { 178 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", 179 "expect": { 180 "endpoint": { 181 "url": "https://health.us-gov-east-1.api.aws" 182 } 183 }, 184 "params": { 185 "Region": "us-gov-east-1", 186 "UseFIPS": false, 187 "UseDualStack": true 188 } 189 }, 190 { 191 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", 192 "expect": { 193 "endpoint": { 194 "url": "https://health.us-gov-east-1.amazonaws.com" 195 } 196 }, 197 "params": { 198 "Region": "us-gov-east-1", 199 "UseFIPS": false, 200 "UseDualStack": false 201 } 202 }, 203 { 204 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", 205 "expect": { 206 "endpoint": { 207 "url": "https://health.us-iso-east-1.c2s.ic.gov" 208 } 209 }, 210 "params": { 211 "Region": "us-iso-east-1", 212 "UseFIPS": false, 213 "UseDualStack": false 214 } 215 }, 216 { 217 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", 218 "expect": { 219 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 220 }, 221 "params": { 222 "Region": "us-iso-east-1", 223 "UseFIPS": true, 224 "UseDualStack": true 225 } 226 }, 227 { 228 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", 229 "expect": { 230 "endpoint": { 231 "url": "https://health-fips.us-iso-east-1.c2s.ic.gov" 232 } 233 }, 234 "params": { 235 "Region": "us-iso-east-1", 236 "UseFIPS": true, 237 "UseDualStack": false 238 } 239 }, 240 { 241 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", 242 "expect": { 243 "error": "DualStack is enabled but this partition does not support DualStack" 244 }, 245 "params": { 246 "Region": "us-iso-east-1", 247 "UseFIPS": false, 248 "UseDualStack": true 249 } 250 }, 251 { 252 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", 253 "expect": { 254 "endpoint": { 255 "url": "https://health.us-isob-east-1.sc2s.sgov.gov" 256 } 257 }, 258 "params": { 259 "Region": "us-isob-east-1", 260 "UseFIPS": false, 261 "UseDualStack": false 262 } 263 }, 264 { 265 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", 266 "expect": { 267 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 268 }, 269 "params": { 270 "Region": "us-isob-east-1", 271 "UseFIPS": true, 272 "UseDualStack": true 273 } 274 }, 275 { 276 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", 277 "expect": { 278 "endpoint": { 279 "url": "https://health-fips.us-isob-east-1.sc2s.sgov.gov" 280 } 281 }, 282 "params": { 283 "Region": "us-isob-east-1", 284 "UseFIPS": true, 285 "UseDualStack": false 286 } 287 }, 288 { 289 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", 290 "expect": { 291 "error": "DualStack is enabled but this partition does not support DualStack" 292 }, 293 "params": { 294 "Region": "us-isob-east-1", 295 "UseFIPS": false, 296 "UseDualStack": true 297 } 298 }, 299 { 300 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", 301 "expect": { 302 "endpoint": { 303 "url": "https://example.com" 304 } 305 }, 306 "params": { 307 "Region": "us-east-1", 308 "UseFIPS": false, 309 "UseDualStack": false, 310 "Endpoint": "https://example.com" 311 } 312 }, 313 { 314 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", 315 "expect": { 316 "endpoint": { 317 "url": "https://example.com" 318 } 319 }, 320 "params": { 321 "UseFIPS": false, 322 "UseDualStack": false, 323 "Endpoint": "https://example.com" 324 } 325 }, 326 { 327 "documentation": "For custom endpoint with fips enabled and dualstack disabled", 328 "expect": { 329 "error": "Invalid Configuration: FIPS and custom endpoint are not supported" 330 }, 331 "params": { 332 "Region": "us-east-1", 333 "UseFIPS": true, 334 "UseDualStack": false, 335 "Endpoint": "https://example.com" 336 } 337 }, 338 { 339 "documentation": "For custom endpoint with fips disabled and dualstack enabled", 340 "expect": { 341 "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" 342 }, 343 "params": { 344 "Region": "us-east-1", 345 "UseFIPS": false, 346 "UseDualStack": true, 347 "Endpoint": "https://example.com" 348 } 349 }, 350 { 351 "documentation": "Missing region", 352 "expect": { 353 "error": "Invalid Configuration: Missing Region" 354 } 355 } 356 ], 357 "version": "1.0" 358}