1{ 2 "testCases": [ 3 { 4 "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", 5 "expect": { 6 "endpoint": { 7 "url": "https://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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://streams.dynamodb.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 local with FIPS disabled and DualStack disabled", 213 "expect": { 214 "endpoint": { 215 "properties": { 216 "authSchemes": [ 217 { 218 "name": "sigv4", 219 "signingName": "dynamodb", 220 "signingRegion": "us-east-1" 221 } 222 ] 223 }, 224 "url": "http://localhost:8000" 225 } 226 }, 227 "params": { 228 "Region": "local", 229 "UseFIPS": false, 230 "UseDualStack": false 231 } 232 }, 233 { 234 "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", 235 "expect": { 236 "endpoint": { 237 "url": "https://streams.dynamodb.me-south-1.amazonaws.com" 238 } 239 }, 240 "params": { 241 "Region": "me-south-1", 242 "UseFIPS": false, 243 "UseDualStack": false 244 } 245 }, 246 { 247 "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", 248 "expect": { 249 "endpoint": { 250 "url": "https://streams.dynamodb.sa-east-1.amazonaws.com" 251 } 252 }, 253 "params": { 254 "Region": "sa-east-1", 255 "UseFIPS": false, 256 "UseDualStack": false 257 } 258 }, 259 { 260 "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", 261 "expect": { 262 "endpoint": { 263 "url": "https://streams.dynamodb.us-east-1.amazonaws.com" 264 } 265 }, 266 "params": { 267 "Region": "us-east-1", 268 "UseFIPS": false, 269 "UseDualStack": false 270 } 271 }, 272 { 273 "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", 274 "expect": { 275 "endpoint": { 276 "url": "https://streams.dynamodb.us-east-2.amazonaws.com" 277 } 278 }, 279 "params": { 280 "Region": "us-east-2", 281 "UseFIPS": false, 282 "UseDualStack": false 283 } 284 }, 285 { 286 "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", 287 "expect": { 288 "endpoint": { 289 "url": "https://streams.dynamodb.us-west-1.amazonaws.com" 290 } 291 }, 292 "params": { 293 "Region": "us-west-1", 294 "UseFIPS": false, 295 "UseDualStack": false 296 } 297 }, 298 { 299 "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", 300 "expect": { 301 "endpoint": { 302 "url": "https://streams.dynamodb.us-west-2.amazonaws.com" 303 } 304 }, 305 "params": { 306 "Region": "us-west-2", 307 "UseFIPS": false, 308 "UseDualStack": false 309 } 310 }, 311 { 312 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", 313 "expect": { 314 "endpoint": { 315 "url": "https://streams.dynamodb-fips.us-east-1.api.aws" 316 } 317 }, 318 "params": { 319 "Region": "us-east-1", 320 "UseFIPS": true, 321 "UseDualStack": true 322 } 323 }, 324 { 325 "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", 326 "expect": { 327 "endpoint": { 328 "url": "https://streams.dynamodb-fips.us-east-1.amazonaws.com" 329 } 330 }, 331 "params": { 332 "Region": "us-east-1", 333 "UseFIPS": true, 334 "UseDualStack": false 335 } 336 }, 337 { 338 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", 339 "expect": { 340 "endpoint": { 341 "url": "https://streams.dynamodb.us-east-1.api.aws" 342 } 343 }, 344 "params": { 345 "Region": "us-east-1", 346 "UseFIPS": false, 347 "UseDualStack": true 348 } 349 }, 350 { 351 "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", 352 "expect": { 353 "endpoint": { 354 "url": "https://streams.dynamodb.cn-north-1.amazonaws.com.cn" 355 } 356 }, 357 "params": { 358 "Region": "cn-north-1", 359 "UseFIPS": false, 360 "UseDualStack": false 361 } 362 }, 363 { 364 "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", 365 "expect": { 366 "endpoint": { 367 "url": "https://streams.dynamodb.cn-northwest-1.amazonaws.com.cn" 368 } 369 }, 370 "params": { 371 "Region": "cn-northwest-1", 372 "UseFIPS": false, 373 "UseDualStack": false 374 } 375 }, 376 { 377 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", 378 "expect": { 379 "endpoint": { 380 "url": "https://streams.dynamodb-fips.cn-north-1.api.amazonwebservices.com.cn" 381 } 382 }, 383 "params": { 384 "Region": "cn-north-1", 385 "UseFIPS": true, 386 "UseDualStack": true 387 } 388 }, 389 { 390 "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", 391 "expect": { 392 "endpoint": { 393 "url": "https://streams.dynamodb-fips.cn-north-1.amazonaws.com.cn" 394 } 395 }, 396 "params": { 397 "Region": "cn-north-1", 398 "UseFIPS": true, 399 "UseDualStack": false 400 } 401 }, 402 { 403 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", 404 "expect": { 405 "endpoint": { 406 "url": "https://streams.dynamodb.cn-north-1.api.amazonwebservices.com.cn" 407 } 408 }, 409 "params": { 410 "Region": "cn-north-1", 411 "UseFIPS": false, 412 "UseDualStack": true 413 } 414 }, 415 { 416 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", 417 "expect": { 418 "endpoint": { 419 "url": "https://streams.dynamodb.us-gov-east-1.amazonaws.com" 420 } 421 }, 422 "params": { 423 "Region": "us-gov-east-1", 424 "UseFIPS": false, 425 "UseDualStack": false 426 } 427 }, 428 { 429 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", 430 "expect": { 431 "endpoint": { 432 "url": "https://streams.dynamodb.us-gov-east-1.amazonaws.com" 433 } 434 }, 435 "params": { 436 "Region": "us-gov-east-1", 437 "UseFIPS": true, 438 "UseDualStack": false 439 } 440 }, 441 { 442 "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", 443 "expect": { 444 "endpoint": { 445 "url": "https://streams.dynamodb.us-gov-west-1.amazonaws.com" 446 } 447 }, 448 "params": { 449 "Region": "us-gov-west-1", 450 "UseFIPS": false, 451 "UseDualStack": false 452 } 453 }, 454 { 455 "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", 456 "expect": { 457 "endpoint": { 458 "url": "https://streams.dynamodb.us-gov-west-1.amazonaws.com" 459 } 460 }, 461 "params": { 462 "Region": "us-gov-west-1", 463 "UseFIPS": true, 464 "UseDualStack": false 465 } 466 }, 467 { 468 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", 469 "expect": { 470 "endpoint": { 471 "url": "https://streams.dynamodb-fips.us-gov-east-1.api.aws" 472 } 473 }, 474 "params": { 475 "Region": "us-gov-east-1", 476 "UseFIPS": true, 477 "UseDualStack": true 478 } 479 }, 480 { 481 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", 482 "expect": { 483 "endpoint": { 484 "url": "https://streams.dynamodb.us-gov-east-1.api.aws" 485 } 486 }, 487 "params": { 488 "Region": "us-gov-east-1", 489 "UseFIPS": false, 490 "UseDualStack": true 491 } 492 }, 493 { 494 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", 495 "expect": { 496 "endpoint": { 497 "url": "https://streams.dynamodb.us-iso-east-1.c2s.ic.gov" 498 } 499 }, 500 "params": { 501 "Region": "us-iso-east-1", 502 "UseFIPS": false, 503 "UseDualStack": false 504 } 505 }, 506 { 507 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", 508 "expect": { 509 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 510 }, 511 "params": { 512 "Region": "us-iso-east-1", 513 "UseFIPS": true, 514 "UseDualStack": true 515 } 516 }, 517 { 518 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", 519 "expect": { 520 "endpoint": { 521 "url": "https://streams.dynamodb-fips.us-iso-east-1.c2s.ic.gov" 522 } 523 }, 524 "params": { 525 "Region": "us-iso-east-1", 526 "UseFIPS": true, 527 "UseDualStack": false 528 } 529 }, 530 { 531 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", 532 "expect": { 533 "error": "DualStack is enabled but this partition does not support DualStack" 534 }, 535 "params": { 536 "Region": "us-iso-east-1", 537 "UseFIPS": false, 538 "UseDualStack": true 539 } 540 }, 541 { 542 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", 543 "expect": { 544 "endpoint": { 545 "url": "https://streams.dynamodb.us-isob-east-1.sc2s.sgov.gov" 546 } 547 }, 548 "params": { 549 "Region": "us-isob-east-1", 550 "UseFIPS": false, 551 "UseDualStack": false 552 } 553 }, 554 { 555 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", 556 "expect": { 557 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 558 }, 559 "params": { 560 "Region": "us-isob-east-1", 561 "UseFIPS": true, 562 "UseDualStack": true 563 } 564 }, 565 { 566 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", 567 "expect": { 568 "endpoint": { 569 "url": "https://streams.dynamodb-fips.us-isob-east-1.sc2s.sgov.gov" 570 } 571 }, 572 "params": { 573 "Region": "us-isob-east-1", 574 "UseFIPS": true, 575 "UseDualStack": false 576 } 577 }, 578 { 579 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", 580 "expect": { 581 "error": "DualStack is enabled but this partition does not support DualStack" 582 }, 583 "params": { 584 "Region": "us-isob-east-1", 585 "UseFIPS": false, 586 "UseDualStack": true 587 } 588 }, 589 { 590 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", 591 "expect": { 592 "endpoint": { 593 "url": "https://example.com" 594 } 595 }, 596 "params": { 597 "Region": "us-east-1", 598 "UseFIPS": false, 599 "UseDualStack": false, 600 "Endpoint": "https://example.com" 601 } 602 }, 603 { 604 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", 605 "expect": { 606 "endpoint": { 607 "url": "https://example.com" 608 } 609 }, 610 "params": { 611 "UseFIPS": false, 612 "UseDualStack": false, 613 "Endpoint": "https://example.com" 614 } 615 }, 616 { 617 "documentation": "For custom endpoint with fips enabled and dualstack disabled", 618 "expect": { 619 "error": "Invalid Configuration: FIPS and custom endpoint are not supported" 620 }, 621 "params": { 622 "Region": "us-east-1", 623 "UseFIPS": true, 624 "UseDualStack": false, 625 "Endpoint": "https://example.com" 626 } 627 }, 628 { 629 "documentation": "For custom endpoint with fips disabled and dualstack enabled", 630 "expect": { 631 "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" 632 }, 633 "params": { 634 "Region": "us-east-1", 635 "UseFIPS": false, 636 "UseDualStack": true, 637 "Endpoint": "https://example.com" 638 } 639 }, 640 { 641 "documentation": "Missing region", 642 "expect": { 643 "error": "Invalid Configuration: Missing Region" 644 } 645 } 646 ], 647 "version": "1.0" 648}