1{ 2 "testCases": [ 3 { 4 "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", 5 "expect": { 6 "endpoint": { 7 "url": "https://oidc.ap-east-1.amazonaws.com" 8 } 9 }, 10 "params": { 11 "Region": "ap-east-1", 12 "UseFIPS": false, 13 "UseDualStack": false 14 } 15 }, 16 { 17 "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", 18 "expect": { 19 "endpoint": { 20 "url": "https://oidc.ap-northeast-1.amazonaws.com" 21 } 22 }, 23 "params": { 24 "Region": "ap-northeast-1", 25 "UseFIPS": false, 26 "UseDualStack": false 27 } 28 }, 29 { 30 "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", 31 "expect": { 32 "endpoint": { 33 "url": "https://oidc.ap-northeast-2.amazonaws.com" 34 } 35 }, 36 "params": { 37 "Region": "ap-northeast-2", 38 "UseFIPS": false, 39 "UseDualStack": false 40 } 41 }, 42 { 43 "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", 44 "expect": { 45 "endpoint": { 46 "url": "https://oidc.ap-northeast-3.amazonaws.com" 47 } 48 }, 49 "params": { 50 "Region": "ap-northeast-3", 51 "UseFIPS": false, 52 "UseDualStack": false 53 } 54 }, 55 { 56 "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", 57 "expect": { 58 "endpoint": { 59 "url": "https://oidc.ap-south-1.amazonaws.com" 60 } 61 }, 62 "params": { 63 "Region": "ap-south-1", 64 "UseFIPS": false, 65 "UseDualStack": false 66 } 67 }, 68 { 69 "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", 70 "expect": { 71 "endpoint": { 72 "url": "https://oidc.ap-southeast-1.amazonaws.com" 73 } 74 }, 75 "params": { 76 "Region": "ap-southeast-1", 77 "UseFIPS": false, 78 "UseDualStack": false 79 } 80 }, 81 { 82 "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", 83 "expect": { 84 "endpoint": { 85 "url": "https://oidc.ap-southeast-2.amazonaws.com" 86 } 87 }, 88 "params": { 89 "Region": "ap-southeast-2", 90 "UseFIPS": false, 91 "UseDualStack": false 92 } 93 }, 94 { 95 "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", 96 "expect": { 97 "endpoint": { 98 "url": "https://oidc.ca-central-1.amazonaws.com" 99 } 100 }, 101 "params": { 102 "Region": "ca-central-1", 103 "UseFIPS": false, 104 "UseDualStack": false 105 } 106 }, 107 { 108 "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", 109 "expect": { 110 "endpoint": { 111 "url": "https://oidc.eu-central-1.amazonaws.com" 112 } 113 }, 114 "params": { 115 "Region": "eu-central-1", 116 "UseFIPS": false, 117 "UseDualStack": false 118 } 119 }, 120 { 121 "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", 122 "expect": { 123 "endpoint": { 124 "url": "https://oidc.eu-north-1.amazonaws.com" 125 } 126 }, 127 "params": { 128 "Region": "eu-north-1", 129 "UseFIPS": false, 130 "UseDualStack": false 131 } 132 }, 133 { 134 "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", 135 "expect": { 136 "endpoint": { 137 "url": "https://oidc.eu-south-1.amazonaws.com" 138 } 139 }, 140 "params": { 141 "Region": "eu-south-1", 142 "UseFIPS": false, 143 "UseDualStack": false 144 } 145 }, 146 { 147 "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", 148 "expect": { 149 "endpoint": { 150 "url": "https://oidc.eu-west-1.amazonaws.com" 151 } 152 }, 153 "params": { 154 "Region": "eu-west-1", 155 "UseFIPS": false, 156 "UseDualStack": false 157 } 158 }, 159 { 160 "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", 161 "expect": { 162 "endpoint": { 163 "url": "https://oidc.eu-west-2.amazonaws.com" 164 } 165 }, 166 "params": { 167 "Region": "eu-west-2", 168 "UseFIPS": false, 169 "UseDualStack": false 170 } 171 }, 172 { 173 "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", 174 "expect": { 175 "endpoint": { 176 "url": "https://oidc.eu-west-3.amazonaws.com" 177 } 178 }, 179 "params": { 180 "Region": "eu-west-3", 181 "UseFIPS": false, 182 "UseDualStack": false 183 } 184 }, 185 { 186 "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", 187 "expect": { 188 "endpoint": { 189 "url": "https://oidc.me-south-1.amazonaws.com" 190 } 191 }, 192 "params": { 193 "Region": "me-south-1", 194 "UseFIPS": false, 195 "UseDualStack": false 196 } 197 }, 198 { 199 "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", 200 "expect": { 201 "endpoint": { 202 "url": "https://oidc.sa-east-1.amazonaws.com" 203 } 204 }, 205 "params": { 206 "Region": "sa-east-1", 207 "UseFIPS": false, 208 "UseDualStack": false 209 } 210 }, 211 { 212 "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", 213 "expect": { 214 "endpoint": { 215 "url": "https://oidc.us-east-1.amazonaws.com" 216 } 217 }, 218 "params": { 219 "Region": "us-east-1", 220 "UseFIPS": false, 221 "UseDualStack": false 222 } 223 }, 224 { 225 "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", 226 "expect": { 227 "endpoint": { 228 "url": "https://oidc.us-east-2.amazonaws.com" 229 } 230 }, 231 "params": { 232 "Region": "us-east-2", 233 "UseFIPS": false, 234 "UseDualStack": false 235 } 236 }, 237 { 238 "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", 239 "expect": { 240 "endpoint": { 241 "url": "https://oidc.us-west-2.amazonaws.com" 242 } 243 }, 244 "params": { 245 "Region": "us-west-2", 246 "UseFIPS": false, 247 "UseDualStack": false 248 } 249 }, 250 { 251 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", 252 "expect": { 253 "endpoint": { 254 "url": "https://oidc-fips.us-east-1.api.aws" 255 } 256 }, 257 "params": { 258 "Region": "us-east-1", 259 "UseFIPS": true, 260 "UseDualStack": true 261 } 262 }, 263 { 264 "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", 265 "expect": { 266 "endpoint": { 267 "url": "https://oidc-fips.us-east-1.amazonaws.com" 268 } 269 }, 270 "params": { 271 "Region": "us-east-1", 272 "UseFIPS": true, 273 "UseDualStack": false 274 } 275 }, 276 { 277 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", 278 "expect": { 279 "endpoint": { 280 "url": "https://oidc.us-east-1.api.aws" 281 } 282 }, 283 "params": { 284 "Region": "us-east-1", 285 "UseFIPS": false, 286 "UseDualStack": true 287 } 288 }, 289 { 290 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", 291 "expect": { 292 "endpoint": { 293 "url": "https://oidc-fips.cn-north-1.api.amazonwebservices.com.cn" 294 } 295 }, 296 "params": { 297 "Region": "cn-north-1", 298 "UseFIPS": true, 299 "UseDualStack": true 300 } 301 }, 302 { 303 "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", 304 "expect": { 305 "endpoint": { 306 "url": "https://oidc-fips.cn-north-1.amazonaws.com.cn" 307 } 308 }, 309 "params": { 310 "Region": "cn-north-1", 311 "UseFIPS": true, 312 "UseDualStack": false 313 } 314 }, 315 { 316 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", 317 "expect": { 318 "endpoint": { 319 "url": "https://oidc.cn-north-1.api.amazonwebservices.com.cn" 320 } 321 }, 322 "params": { 323 "Region": "cn-north-1", 324 "UseFIPS": false, 325 "UseDualStack": true 326 } 327 }, 328 { 329 "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", 330 "expect": { 331 "endpoint": { 332 "url": "https://oidc.cn-north-1.amazonaws.com.cn" 333 } 334 }, 335 "params": { 336 "Region": "cn-north-1", 337 "UseFIPS": false, 338 "UseDualStack": false 339 } 340 }, 341 { 342 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", 343 "expect": { 344 "endpoint": { 345 "url": "https://oidc.us-gov-east-1.amazonaws.com" 346 } 347 }, 348 "params": { 349 "Region": "us-gov-east-1", 350 "UseFIPS": false, 351 "UseDualStack": false 352 } 353 }, 354 { 355 "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", 356 "expect": { 357 "endpoint": { 358 "url": "https://oidc.us-gov-west-1.amazonaws.com" 359 } 360 }, 361 "params": { 362 "Region": "us-gov-west-1", 363 "UseFIPS": false, 364 "UseDualStack": false 365 } 366 }, 367 { 368 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", 369 "expect": { 370 "endpoint": { 371 "url": "https://oidc-fips.us-gov-east-1.api.aws" 372 } 373 }, 374 "params": { 375 "Region": "us-gov-east-1", 376 "UseFIPS": true, 377 "UseDualStack": true 378 } 379 }, 380 { 381 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", 382 "expect": { 383 "endpoint": { 384 "url": "https://oidc.us-gov-east-1.amazonaws.com" 385 } 386 }, 387 "params": { 388 "Region": "us-gov-east-1", 389 "UseFIPS": true, 390 "UseDualStack": false 391 } 392 }, 393 { 394 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", 395 "expect": { 396 "endpoint": { 397 "url": "https://oidc.us-gov-east-1.api.aws" 398 } 399 }, 400 "params": { 401 "Region": "us-gov-east-1", 402 "UseFIPS": false, 403 "UseDualStack": true 404 } 405 }, 406 { 407 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", 408 "expect": { 409 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 410 }, 411 "params": { 412 "Region": "us-iso-east-1", 413 "UseFIPS": true, 414 "UseDualStack": true 415 } 416 }, 417 { 418 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", 419 "expect": { 420 "endpoint": { 421 "url": "https://oidc-fips.us-iso-east-1.c2s.ic.gov" 422 } 423 }, 424 "params": { 425 "Region": "us-iso-east-1", 426 "UseFIPS": true, 427 "UseDualStack": false 428 } 429 }, 430 { 431 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", 432 "expect": { 433 "error": "DualStack is enabled but this partition does not support DualStack" 434 }, 435 "params": { 436 "Region": "us-iso-east-1", 437 "UseFIPS": false, 438 "UseDualStack": true 439 } 440 }, 441 { 442 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", 443 "expect": { 444 "endpoint": { 445 "url": "https://oidc.us-iso-east-1.c2s.ic.gov" 446 } 447 }, 448 "params": { 449 "Region": "us-iso-east-1", 450 "UseFIPS": false, 451 "UseDualStack": false 452 } 453 }, 454 { 455 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", 456 "expect": { 457 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 458 }, 459 "params": { 460 "Region": "us-isob-east-1", 461 "UseFIPS": true, 462 "UseDualStack": true 463 } 464 }, 465 { 466 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", 467 "expect": { 468 "endpoint": { 469 "url": "https://oidc-fips.us-isob-east-1.sc2s.sgov.gov" 470 } 471 }, 472 "params": { 473 "Region": "us-isob-east-1", 474 "UseFIPS": true, 475 "UseDualStack": false 476 } 477 }, 478 { 479 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", 480 "expect": { 481 "error": "DualStack is enabled but this partition does not support DualStack" 482 }, 483 "params": { 484 "Region": "us-isob-east-1", 485 "UseFIPS": false, 486 "UseDualStack": true 487 } 488 }, 489 { 490 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", 491 "expect": { 492 "endpoint": { 493 "url": "https://oidc.us-isob-east-1.sc2s.sgov.gov" 494 } 495 }, 496 "params": { 497 "Region": "us-isob-east-1", 498 "UseFIPS": false, 499 "UseDualStack": false 500 } 501 }, 502 { 503 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", 504 "expect": { 505 "endpoint": { 506 "url": "https://example.com" 507 } 508 }, 509 "params": { 510 "Region": "us-east-1", 511 "UseFIPS": false, 512 "UseDualStack": false, 513 "Endpoint": "https://example.com" 514 } 515 }, 516 { 517 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", 518 "expect": { 519 "endpoint": { 520 "url": "https://example.com" 521 } 522 }, 523 "params": { 524 "UseFIPS": false, 525 "UseDualStack": false, 526 "Endpoint": "https://example.com" 527 } 528 }, 529 { 530 "documentation": "For custom endpoint with fips enabled and dualstack disabled", 531 "expect": { 532 "error": "Invalid Configuration: FIPS and custom endpoint are not supported" 533 }, 534 "params": { 535 "Region": "us-east-1", 536 "UseFIPS": true, 537 "UseDualStack": false, 538 "Endpoint": "https://example.com" 539 } 540 }, 541 { 542 "documentation": "For custom endpoint with fips disabled and dualstack enabled", 543 "expect": { 544 "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" 545 }, 546 "params": { 547 "Region": "us-east-1", 548 "UseFIPS": false, 549 "UseDualStack": true, 550 "Endpoint": "https://example.com" 551 } 552 }, 553 { 554 "documentation": "Missing region", 555 "expect": { 556 "error": "Invalid Configuration: Missing Region" 557 } 558 } 559 ], 560 "version": "1.0" 561}