| 1 | { |
| 2 | "version": "1.0", |
| 3 | "parameters": { |
| 4 | "Region": { |
| 5 | "builtIn": "AWS::Region", |
| 6 | "required": false, |
| 7 | "documentation": "The AWS region used to dispatch the request.", |
| 8 | "type": "String" |
| 9 | }, |
| 10 | "UseFIPS": { |
| 11 | "builtIn": "AWS::UseFIPS", |
| 12 | "required": true, |
| 13 | "default": false, |
| 14 | "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", |
| 15 | "type": "Boolean" |
| 16 | }, |
| 17 | "UseDualStack": { |
| 18 | "builtIn": "AWS::UseDualStack", |
| 19 | "required": true, |
| 20 | "default": false, |
| 21 | "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", |
| 22 | "type": "Boolean" |
| 23 | }, |
| 24 | "Endpoint": { |
| 25 | "builtIn": "SDK::Endpoint", |
| 26 | "required": false, |
| 27 | "documentation": "Override the endpoint used to send this request", |
| 28 | "type": "String" |
| 29 | }, |
| 30 | "AccountId": { |
| 31 | "required": false, |
| 32 | "documentation": "The Account ID used to send the request. This is an optional parameter that will be set automatically for operations that require it.", |
| 33 | "type": "String" |
| 34 | }, |
| 35 | "RequiresAccountId": { |
| 36 | "required": false, |
| 37 | "documentation": "Internal parameter for operations that require account id host prefix.", |
| 38 | "type": "Boolean" |
| 39 | }, |
| 40 | "OutpostId": { |
| 41 | "required": false, |
| 42 | "documentation": "The Outpost ID. Some operations have an optional OutpostId which should be used in endpoint construction.", |
| 43 | "type": "String" |
| 44 | }, |
| 45 | "Bucket": { |
| 46 | "required": false, |
| 47 | "documentation": "The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.", |
| 48 | "type": "String" |
| 49 | }, |
| 50 | "AccessPointName": { |
| 51 | "required": false, |
| 52 | "documentation": "The S3 AccessPointName used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 AccessPoint.", |
| 53 | "type": "String" |
| 54 | }, |
| 55 | "UseArnRegion": { |
| 56 | "builtIn": "AWS::S3Control::UseArnRegion", |
| 57 | "required": false, |
| 58 | "documentation": "When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN's region when constructing the endpoint instead of the client's configured region.", |
| 59 | "type": "Boolean" |
| 60 | } |
| 61 | }, |
| 62 | "rules": [ |
| 63 | { |
| 64 | "conditions": [ |
| 65 | { |
| 66 | "fn": "isSet", |
| 67 | "argv": [ |
| 68 | { |
| 69 | "ref": "Region" |
| 70 | } |
| 71 | ] |
| 72 | } |
| 73 | ], |
| 74 | "rules": [ |
| 75 | { |
| 76 | "conditions": [ |
| 77 | { |
| 78 | "fn": "stringEquals", |
| 79 | "argv": [ |
| 80 | { |
| 81 | "ref": "Region" |
| 82 | }, |
| 83 | "snow" |
| 84 | ] |
| 85 | }, |
| 86 | { |
| 87 | "fn": "isSet", |
| 88 | "argv": [ |
| 89 | { |
| 90 | "ref": "Endpoint" |
| 91 | } |
| 92 | ] |
| 93 | }, |
| 94 | { |
| 95 | "fn": "parseURL", |
| 96 | "argv": [ |
| 97 | { |
| 98 | "ref": "Endpoint" |
| 99 | } |
| 100 | ], |
| 101 | "assign": "url" |
| 102 | } |
| 103 | ], |
| 104 | "rules": [ |
| 105 | { |
| 106 | "conditions": [ |
| 107 | { |
| 108 | "fn": "aws.partition", |
| 109 | "argv": [ |
| 110 | { |
| 111 | "ref": "Region" |
| 112 | } |
| 113 | ], |
| 114 | "assign": "partitionResult" |
| 115 | } |
| 116 | ], |
| 117 | "rules": [ |
| 118 | { |
| 119 | "conditions": [ |
| 120 | { |
| 121 | "fn": "booleanEquals", |
| 122 | "argv": [ |
| 123 | { |
| 124 | "ref": "UseDualStack" |
| 125 | }, |
| 126 | true |
| 127 | ] |
| 128 | } |
| 129 | ], |
| 130 | "error": "S3 Snow does not support DualStack", |
| 131 | "type": "error" |
| 132 | }, |
| 133 | { |
| 134 | "conditions": [ |
| 135 | { |
| 136 | "fn": "booleanEquals", |
| 137 | "argv": [ |
| 138 | { |
| 139 | "ref": "UseFIPS" |
| 140 | }, |
| 141 | true |
| 142 | ] |
| 143 | } |
| 144 | ], |
| 145 | "error": "S3 Snow does not support FIPS", |
| 146 | "type": "error" |
| 147 | }, |
| 148 | { |
| 149 | "conditions": [], |
| 150 | "endpoint": { |
| 151 | "url": "{url#scheme}://{url#authority}", |
| 152 | "properties": { |
| 153 | "authSchemes": [ |
| 154 | { |
| 155 | "disableDoubleEncoding": true, |
| 156 | "name": "sigv4", |
| 157 | "signingName": "s3", |
| 158 | "signingRegion": "{Region}" |
| 159 | } |
| 160 | ] |
| 161 | }, |
| 162 | "headers": {} |
| 163 | }, |
| 164 | "type": "endpoint" |
| 165 | } |
| 166 | ], |
| 167 | "type": "tree" |
| 168 | } |
| 169 | ], |
| 170 | "type": "tree" |
| 171 | }, |
| 172 | { |
| 173 | "conditions": [ |
| 174 | { |
| 175 | "fn": "isSet", |
| 176 | "argv": [ |
| 177 | { |
| 178 | "ref": "OutpostId" |
| 179 | } |
| 180 | ] |
| 181 | } |
| 182 | ], |
| 183 | "rules": [ |
| 184 | { |
| 185 | "conditions": [ |
| 186 | { |
| 187 | "fn": "aws.partition", |
| 188 | "argv": [ |
| 189 | { |
| 190 | "ref": "Region" |
| 191 | } |
| 192 | ], |
| 193 | "assign": "partitionResult" |
| 194 | } |
| 195 | ], |
| 196 | "rules": [ |
| 197 | { |
| 198 | "conditions": [ |
| 199 | { |
| 200 | "fn": "booleanEquals", |
| 201 | "argv": [ |
| 202 | { |
| 203 | "ref": "UseFIPS" |
| 204 | }, |
| 205 | true |
| 206 | ] |
| 207 | }, |
| 208 | { |
| 209 | "fn": "stringEquals", |
| 210 | "argv": [ |
| 211 | { |
| 212 | "fn": "getAttr", |
| 213 | "argv": [ |
| 214 | { |
| 215 | "ref": "partitionResult" |
| 216 | }, |
| 217 | "name" |
| 218 | ] |
| 219 | }, |
| 220 | "aws-cn" |
| 221 | ] |
| 222 | } |
| 223 | ], |
| 224 | "error": "Partition does not support FIPS", |
| 225 | "type": "error" |
| 226 | }, |
| 227 | { |
| 228 | "conditions": [ |
| 229 | { |
| 230 | "fn": "isSet", |
| 231 | "argv": [ |
| 232 | { |
| 233 | "ref": "RequiresAccountId" |
| 234 | } |
| 235 | ] |
| 236 | }, |
| 237 | { |
| 238 | "fn": "booleanEquals", |
| 239 | "argv": [ |
| 240 | { |
| 241 | "ref": "RequiresAccountId" |
| 242 | }, |
| 243 | true |
| 244 | ] |
| 245 | }, |
| 246 | { |
| 247 | "fn": "not", |
| 248 | "argv": [ |
| 249 | { |
| 250 | "fn": "isSet", |
| 251 | "argv": [ |
| 252 | { |
| 253 | "ref": "AccountId" |
| 254 | } |
| 255 | ] |
| 256 | } |
| 257 | ] |
| 258 | } |
| 259 | ], |
| 260 | "error": "AccountId is required but not set", |
| 261 | "type": "error" |
| 262 | }, |
| 263 | { |
| 264 | "conditions": [ |
| 265 | { |
| 266 | "fn": "isSet", |
| 267 | "argv": [ |
| 268 | { |
| 269 | "ref": "AccountId" |
| 270 | } |
| 271 | ] |
| 272 | }, |
| 273 | { |
| 274 | "fn": "not", |
| 275 | "argv": [ |
| 276 | { |
| 277 | "fn": "isValidHostLabel", |
| 278 | "argv": [ |
| 279 | { |
| 280 | "ref": "AccountId" |
| 281 | }, |
| 282 | false |
| 283 | ] |
| 284 | } |
| 285 | ] |
| 286 | } |
| 287 | ], |
| 288 | "error": "AccountId must only contain a-z, A-Z, 0-9 and `-`.", |
| 289 | "type": "error" |
| 290 | }, |
| 291 | { |
| 292 | "conditions": [ |
| 293 | { |
| 294 | "fn": "not", |
| 295 | "argv": [ |
| 296 | { |
| 297 | "fn": "isValidHostLabel", |
| 298 | "argv": [ |
| 299 | { |
| 300 | "ref": "OutpostId" |
| 301 | }, |
| 302 | false |
| 303 | ] |
| 304 | } |
| 305 | ] |
| 306 | } |
| 307 | ], |
| 308 | "error": "OutpostId must only contain a-z, A-Z, 0-9 and `-`.", |
| 309 | "type": "error" |
| 310 | }, |
| 311 | { |
| 312 | "conditions": [ |
| 313 | { |
| 314 | "fn": "isValidHostLabel", |
| 315 | "argv": [ |
| 316 | { |
| 317 | "ref": "Region" |
| 318 | }, |
| 319 | true |
| 320 | ] |
| 321 | } |
| 322 | ], |
| 323 | "rules": [ |
| 324 | { |
| 325 | "conditions": [ |
| 326 | { |
| 327 | "fn": "booleanEquals", |
| 328 | "argv": [ |
| 329 | { |
| 330 | "ref": "UseDualStack" |
| 331 | }, |
| 332 | true |
| 333 | ] |
| 334 | } |
| 335 | ], |
| 336 | "error": "Invalid configuration: Outposts do not support dual-stack", |
| 337 | "type": "error" |
| 338 | }, |
| 339 | { |
| 340 | "conditions": [ |
| 341 | { |
| 342 | "fn": "isSet", |
| 343 | "argv": [ |
| 344 | { |
| 345 | "ref": "Endpoint" |
| 346 | } |
| 347 | ] |
| 348 | }, |
| 349 | { |
| 350 | "fn": "parseURL", |
| 351 | "argv": [ |
| 352 | { |
| 353 | "ref": "Endpoint" |
| 354 | } |
| 355 | ], |
| 356 | "assign": "url" |
| 357 | } |
| 358 | ], |
| 359 | "endpoint": { |
| 360 | "url": "{url#scheme}://{url#authority}{url#path}", |
| 361 | "properties": { |
| 362 | "authSchemes": [ |
| 363 | { |
| 364 | "disableDoubleEncoding": true, |
| 365 | "name": "sigv4", |
| 366 | "signingName": "s3-outposts", |
| 367 | "signingRegion": "{Region}" |
| 368 | } |
| 369 | ] |
| 370 | }, |
| 371 | "headers": {} |
| 372 | }, |
| 373 | "type": "endpoint" |
| 374 | }, |
| 375 | { |
| 376 | "conditions": [ |
| 377 | { |
| 378 | "fn": "booleanEquals", |
| 379 | "argv": [ |
| 380 | { |
| 381 | "ref": "UseFIPS" |
| 382 | }, |
| 383 | true |
| 384 | ] |
| 385 | } |
| 386 | ], |
| 387 | "endpoint": { |
| 388 | "url": "https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}", |
| 389 | "properties": { |
| 390 | "authSchemes": [ |
| 391 | { |
| 392 | "disableDoubleEncoding": true, |
| 393 | "name": "sigv4", |
| 394 | "signingName": "s3-outposts", |
| 395 | "signingRegion": "{Region}" |
| 396 | } |
| 397 | ] |
| 398 | }, |
| 399 | "headers": {} |
| 400 | }, |
| 401 | "type": "endpoint" |
| 402 | }, |
| 403 | { |
| 404 | "conditions": [], |
| 405 | "endpoint": { |
| 406 | "url": "https://s3-outposts.{Region}.{partitionResult#dnsSuffix}", |
| 407 | "properties": { |
| 408 | "authSchemes": [ |
| 409 | { |
| 410 | "disableDoubleEncoding": true, |
| 411 | "name": "sigv4", |
| 412 | "signingName": "s3-outposts", |
| 413 | "signingRegion": "{Region}" |
| 414 | } |
| 415 | ] |
| 416 | }, |
| 417 | "headers": {} |
| 418 | }, |
| 419 | "type": "endpoint" |
| 420 | } |
| 421 | ], |
| 422 | "type": "tree" |
| 423 | }, |
| 424 | { |
| 425 | "conditions": [], |
| 426 | "error": "Invalid region: region was not a valid DNS name.", |
| 427 | "type": "error" |
| 428 | } |
| 429 | ], |
| 430 | "type": "tree" |
| 431 | } |
| 432 | ], |
| 433 | "type": "tree" |
| 434 | }, |
| 435 | { |
| 436 | "conditions": [ |
| 437 | { |
| 438 | "fn": "isSet", |
| 439 | "argv": [ |
| 440 | { |
| 441 | "ref": "AccessPointName" |
| 442 | } |
| 443 | ] |
| 444 | }, |
| 445 | { |
| 446 | "fn": "aws.parseArn", |
| 447 | "argv": [ |
| 448 | { |
| 449 | "ref": "AccessPointName" |
| 450 | } |
| 451 | ], |
| 452 | "assign": "accessPointArn" |
| 453 | } |
| 454 | ], |
| 455 | "rules": [ |
| 456 | { |
| 457 | "conditions": [ |
| 458 | { |
| 459 | "fn": "getAttr", |
| 460 | "argv": [ |
| 461 | { |
| 462 | "ref": "accessPointArn" |
| 463 | }, |
| 464 | "resourceId[0]" |
| 465 | ], |
| 466 | "assign": "arnType" |
| 467 | }, |
| 468 | { |
| 469 | "fn": "not", |
| 470 | "argv": [ |
| 471 | { |
| 472 | "fn": "stringEquals", |
| 473 | "argv": [ |
| 474 | { |
| 475 | "ref": "arnType" |
| 476 | }, |
| 477 | "" |
| 478 | ] |
| 479 | } |
| 480 | ] |
| 481 | } |
| 482 | ], |
| 483 | "rules": [ |
| 484 | { |
| 485 | "conditions": [ |
| 486 | { |
| 487 | "fn": "stringEquals", |
| 488 | "argv": [ |
| 489 | { |
| 490 | "fn": "getAttr", |
| 491 | "argv": [ |
| 492 | { |
| 493 | "ref": "accessPointArn" |
| 494 | }, |
| 495 | "service" |
| 496 | ] |
| 497 | }, |
| 498 | "s3-outposts" |
| 499 | ] |
| 500 | } |
| 501 | ], |
| 502 | "rules": [ |
| 503 | { |
| 504 | "conditions": [ |
| 505 | { |
| 506 | "fn": "booleanEquals", |
| 507 | "argv": [ |
| 508 | { |
| 509 | "ref": "UseDualStack" |
| 510 | }, |
| 511 | true |
| 512 | ] |
| 513 | } |
| 514 | ], |
| 515 | "error": "Invalid configuration: Outpost Access Points do not support dual-stack", |
| 516 | "type": "error" |
| 517 | }, |
| 518 | { |
| 519 | "conditions": [ |
| 520 | { |
| 521 | "fn": "getAttr", |
| 522 | "argv": [ |
| 523 | { |
| 524 | "ref": "accessPointArn" |
| 525 | }, |
| 526 | "resourceId[1]" |
| 527 | ], |
| 528 | "assign": "outpostId" |
| 529 | } |
| 530 | ], |
| 531 | "rules": [ |
| 532 | { |
| 533 | "conditions": [ |
| 534 | { |
| 535 | "fn": "isValidHostLabel", |
| 536 | "argv": [ |
| 537 | { |
| 538 | "ref": "outpostId" |
| 539 | }, |
| 540 | false |
| 541 | ] |
| 542 | } |
| 543 | ], |
| 544 | "rules": [ |
| 545 | { |
| 546 | "conditions": [ |
| 547 | { |
| 548 | "fn": "isSet", |
| 549 | "argv": [ |
| 550 | { |
| 551 | "ref": "UseArnRegion" |
| 552 | } |
| 553 | ] |
| 554 | }, |
| 555 | { |
| 556 | "fn": "booleanEquals", |
| 557 | "argv": [ |
| 558 | { |
| 559 | "ref": "UseArnRegion" |
| 560 | }, |
| 561 | false |
| 562 | ] |
| 563 | }, |
| 564 | { |
| 565 | "fn": "not", |
| 566 | "argv": [ |
| 567 | { |
| 568 | "fn": "stringEquals", |
| 569 | "argv": [ |
| 570 | { |
| 571 | "fn": "getAttr", |
| 572 | "argv": [ |
| 573 | { |
| 574 | "ref": "accessPointArn" |
| 575 | }, |
| 576 | "region" |
| 577 | ] |
| 578 | }, |
| 579 | "{Region}" |
| 580 | ] |
| 581 | } |
| 582 | ] |
| 583 | } |
| 584 | ], |
| 585 | "error": "Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", |
| 586 | "type": "error" |
| 587 | }, |
| 588 | { |
| 589 | "conditions": [ |
| 590 | { |
| 591 | "fn": "aws.partition", |
| 592 | "argv": [ |
| 593 | { |
| 594 | "ref": "Region" |
| 595 | } |
| 596 | ], |
| 597 | "assign": "partitionResult" |
| 598 | } |
| 599 | ], |
| 600 | "rules": [ |
| 601 | { |
| 602 | "conditions": [ |
| 603 | { |
| 604 | "fn": "aws.partition", |
| 605 | "argv": [ |
| 606 | { |
| 607 | "fn": "getAttr", |
| 608 | "argv": [ |
| 609 | { |
| 610 | "ref": "accessPointArn" |
| 611 | }, |
| 612 | "region" |
| 613 | ] |
| 614 | } |
| 615 | ], |
| 616 | "assign": "arnPartition" |
| 617 | } |
| 618 | ], |
| 619 | "rules": [ |
| 620 | { |
| 621 | "conditions": [ |
| 622 | { |
| 623 | "fn": "stringEquals", |
| 624 | "argv": [ |
| 625 | { |
| 626 | "fn": "getAttr", |
| 627 | "argv": [ |
| 628 | { |
| 629 | "ref": "arnPartition" |
| 630 | }, |
| 631 | "name" |
| 632 | ] |
| 633 | }, |
| 634 | { |
| 635 | "fn": "getAttr", |
| 636 | "argv": [ |
| 637 | { |
| 638 | "ref": "partitionResult" |
| 639 | }, |
| 640 | "name" |
| 641 | ] |
| 642 | } |
| 643 | ] |
| 644 | } |
| 645 | ], |
| 646 | "rules": [ |
| 647 | { |
| 648 | "conditions": [ |
| 649 | { |
| 650 | "fn": "isValidHostLabel", |
| 651 | "argv": [ |
| 652 | { |
| 653 | "fn": "getAttr", |
| 654 | "argv": [ |
| 655 | { |
| 656 | "ref": "accessPointArn" |
| 657 | }, |
| 658 | "region" |
| 659 | ] |
| 660 | }, |
| 661 | true |
| 662 | ] |
| 663 | } |
| 664 | ], |
| 665 | "rules": [ |
| 666 | { |
| 667 | "conditions": [ |
| 668 | { |
| 669 | "fn": "not", |
| 670 | "argv": [ |
| 671 | { |
| 672 | "fn": "stringEquals", |
| 673 | "argv": [ |
| 674 | { |
| 675 | "fn": "getAttr", |
| 676 | "argv": [ |
| 677 | { |
| 678 | "ref": "accessPointArn" |
| 679 | }, |
| 680 | "accountId" |
| 681 | ] |
| 682 | }, |
| 683 | "" |
| 684 | ] |
| 685 | } |
| 686 | ] |
| 687 | } |
| 688 | ], |
| 689 | "rules": [ |
| 690 | { |
| 691 | "conditions": [ |
| 692 | { |
| 693 | "fn": "isValidHostLabel", |
| 694 | "argv": [ |
| 695 | { |
| 696 | "fn": "getAttr", |
| 697 | "argv": [ |
| 698 | { |
| 699 | "ref": "accessPointArn" |
| 700 | }, |
| 701 | "accountId" |
| 702 | ] |
| 703 | }, |
| 704 | false |
| 705 | ] |
| 706 | } |
| 707 | ], |
| 708 | "rules": [ |
| 709 | { |
| 710 | "conditions": [ |
| 711 | { |
| 712 | "fn": "isSet", |
| 713 | "argv": [ |
| 714 | { |
| 715 | "ref": "AccountId" |
| 716 | } |
| 717 | ] |
| 718 | }, |
| 719 | { |
| 720 | "fn": "not", |
| 721 | "argv": [ |
| 722 | { |
| 723 | "fn": "stringEquals", |
| 724 | "argv": [ |
| 725 | { |
| 726 | "ref": "AccountId" |
| 727 | }, |
| 728 | "{accessPointArn#accountId}" |
| 729 | ] |
| 730 | } |
| 731 | ] |
| 732 | } |
| 733 | ], |
| 734 | "error": "Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)", |
| 735 | "type": "error" |
| 736 | }, |
| 737 | { |
| 738 | "conditions": [ |
| 739 | { |
| 740 | "fn": "getAttr", |
| 741 | "argv": [ |
| 742 | { |
| 743 | "ref": "accessPointArn" |
| 744 | }, |
| 745 | "resourceId[2]" |
| 746 | ], |
| 747 | "assign": "outpostType" |
| 748 | } |
| 749 | ], |
| 750 | "rules": [ |
| 751 | { |
| 752 | "conditions": [ |
| 753 | { |
| 754 | "fn": "getAttr", |
| 755 | "argv": [ |
| 756 | { |
| 757 | "ref": "accessPointArn" |
| 758 | }, |
| 759 | "resourceId[3]" |
| 760 | ], |
| 761 | "assign": "accessPointName" |
| 762 | } |
| 763 | ], |
| 764 | "rules": [ |
| 765 | { |
| 766 | "conditions": [ |
| 767 | { |
| 768 | "fn": "stringEquals", |
| 769 | "argv": [ |
| 770 | { |
| 771 | "ref": "outpostType" |
| 772 | }, |
| 773 | "accesspoint" |
| 774 | ] |
| 775 | } |
| 776 | ], |
| 777 | "rules": [ |
| 778 | { |
| 779 | "conditions": [ |
| 780 | { |
| 781 | "fn": "booleanEquals", |
| 782 | "argv": [ |
| 783 | { |
| 784 | "ref": "UseFIPS" |
| 785 | }, |
| 786 | true |
| 787 | ] |
| 788 | } |
| 789 | ], |
| 790 | "endpoint": { |
| 791 | "url": "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}", |
| 792 | "properties": { |
| 793 | "authSchemes": [ |
| 794 | { |
| 795 | "disableDoubleEncoding": true, |
| 796 | "name": "sigv4", |
| 797 | "signingName": "s3-outposts", |
| 798 | "signingRegion": "{accessPointArn#region}" |
| 799 | } |
| 800 | ] |
| 801 | }, |
| 802 | "headers": { |
| 803 | "x-amz-account-id": [ |
| 804 | "{accessPointArn#accountId}" |
| 805 | ], |
| 806 | "x-amz-outpost-id": [ |
| 807 | "{outpostId}" |
| 808 | ] |
| 809 | } |
| 810 | }, |
| 811 | "type": "endpoint" |
| 812 | }, |
| 813 | { |
| 814 | "conditions": [ |
| 815 | { |
| 816 | "fn": "isSet", |
| 817 | "argv": [ |
| 818 | { |
| 819 | "ref": "Endpoint" |
| 820 | } |
| 821 | ] |
| 822 | }, |
| 823 | { |
| 824 | "fn": "parseURL", |
| 825 | "argv": [ |
| 826 | { |
| 827 | "ref": "Endpoint" |
| 828 | } |
| 829 | ], |
| 830 | "assign": "url" |
| 831 | } |
| 832 | ], |
| 833 | "endpoint": { |
| 834 | "url": "{url#scheme}://{url#authority}{url#path}", |
| 835 | "properties": { |
| 836 | "authSchemes": [ |
| 837 | { |
| 838 | "disableDoubleEncoding": true, |
| 839 | "name": "sigv4", |
| 840 | "signingName": "s3-outposts", |
| 841 | "signingRegion": "{accessPointArn#region}" |
| 842 | } |
| 843 | ] |
| 844 | }, |
| 845 | "headers": { |
| 846 | "x-amz-account-id": [ |
| 847 | "{accessPointArn#accountId}" |
| 848 | ], |
| 849 | "x-amz-outpost-id": [ |
| 850 | "{outpostId}" |
| 851 | ] |
| 852 | } |
| 853 | }, |
| 854 | "type": "endpoint" |
| 855 | }, |
| 856 | { |
| 857 | "conditions": [], |
| 858 | "endpoint": { |
| 859 | "url": "https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}", |
| 860 | "properties": { |
| 861 | "authSchemes": [ |
| 862 | { |
| 863 | "disableDoubleEncoding": true, |
| 864 | "name": "sigv4", |
| 865 | "signingName": "s3-outposts", |
| 866 | "signingRegion": "{accessPointArn#region}" |
| 867 | } |
| 868 | ] |
| 869 | }, |
| 870 | "headers": { |
| 871 | "x-amz-account-id": [ |
| 872 | "{accessPointArn#accountId}" |
| 873 | ], |
| 874 | "x-amz-outpost-id": [ |
| 875 | "{outpostId}" |
| 876 | ] |
| 877 | } |
| 878 | }, |
| 879 | "type": "endpoint" |
| 880 | } |
| 881 | ], |
| 882 | "type": "tree" |
| 883 | }, |
| 884 | { |
| 885 | "conditions": [], |
| 886 | "error": "Expected an outpost type `accesspoint`, found `{outpostType}`", |
| 887 | "type": "error" |
| 888 | } |
| 889 | ], |
| 890 | "type": "tree" |
| 891 | }, |
| 892 | { |
| 893 | "conditions": [], |
| 894 | "error": "Invalid ARN: expected an access point name", |
| 895 | "type": "error" |
| 896 | } |
| 897 | ], |
| 898 | "type": "tree" |
| 899 | }, |
| 900 | { |
| 901 | "conditions": [], |
| 902 | "error": "Invalid ARN: Expected a 4-component resource", |
| 903 | "type": "error" |
| 904 | } |
| 905 | ], |
| 906 | "type": "tree" |
| 907 | }, |
| 908 | { |
| 909 | "conditions": [], |
| 910 | "error": "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`", |
| 911 | "type": "error" |
| 912 | } |
| 913 | ], |
| 914 | "type": "tree" |
| 915 | }, |
| 916 | { |
| 917 | "conditions": [], |
| 918 | "error": "Invalid ARN: missing account ID", |
| 919 | "type": "error" |
| 920 | } |
| 921 | ], |
| 922 | "type": "tree" |
| 923 | }, |
| 924 | { |
| 925 | "conditions": [], |
| 926 | "error": "Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)", |
| 927 | "type": "error" |
| 928 | } |
| 929 | ], |
| 930 | "type": "tree" |
| 931 | }, |
| 932 | { |
| 933 | "conditions": [], |
| 934 | "error": "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", |
| 935 | "type": "error" |
| 936 | } |
| 937 | ], |
| 938 | "type": "tree" |
| 939 | } |
| 940 | ], |
| 941 | "type": "tree" |
| 942 | } |
| 943 | ], |
| 944 | "type": "tree" |
| 945 | }, |
| 946 | { |
| 947 | "conditions": [], |
| 948 | "error": "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", |
| 949 | "type": "error" |
| 950 | } |
| 951 | ], |
| 952 | "type": "tree" |
| 953 | }, |
| 954 | { |
| 955 | "conditions": [], |
| 956 | "error": "Invalid ARN: The Outpost Id was not set", |
| 957 | "type": "error" |
| 958 | } |
| 959 | ], |
| 960 | "type": "tree" |
| 961 | } |
| 962 | ], |
| 963 | "type": "tree" |
| 964 | }, |
| 965 | { |
| 966 | "conditions": [], |
| 967 | "error": "Invalid ARN: No ARN type specified", |
| 968 | "type": "error" |
| 969 | } |
| 970 | ], |
| 971 | "type": "tree" |
| 972 | }, |
| 973 | { |
| 974 | "conditions": [ |
| 975 | { |
| 976 | "fn": "isSet", |
| 977 | "argv": [ |
| 978 | { |
| 979 | "ref": "Bucket" |
| 980 | } |
| 981 | ] |
| 982 | }, |
| 983 | { |
| 984 | "fn": "aws.parseArn", |
| 985 | "argv": [ |
| 986 | { |
| 987 | "ref": "Bucket" |
| 988 | } |
| 989 | ], |
| 990 | "assign": "bucketArn" |
| 991 | } |
| 992 | ], |
| 993 | "rules": [ |
| 994 | { |
| 995 | "conditions": [ |
| 996 | { |
| 997 | "fn": "getAttr", |
| 998 | "argv": [ |
| 999 | { |
| 1000 | "ref": "bucketArn" |
| 1001 | }, |
| 1002 | "resourceId[0]" |
| 1003 | ], |
| 1004 | "assign": "arnType" |
| 1005 | }, |
| 1006 | { |
| 1007 | "fn": "not", |
| 1008 | "argv": [ |
| 1009 | { |
| 1010 | "fn": "stringEquals", |
| 1011 | "argv": [ |
| 1012 | { |
| 1013 | "ref": "arnType" |
| 1014 | }, |
| 1015 | "" |
| 1016 | ] |
| 1017 | } |
| 1018 | ] |
| 1019 | } |
| 1020 | ], |
| 1021 | "rules": [ |
| 1022 | { |
| 1023 | "conditions": [ |
| 1024 | { |
| 1025 | "fn": "stringEquals", |
| 1026 | "argv": [ |
| 1027 | { |
| 1028 | "fn": "getAttr", |
| 1029 | "argv": [ |
| 1030 | { |
| 1031 | "ref": "bucketArn" |
| 1032 | }, |
| 1033 | "service" |
| 1034 | ] |
| 1035 | }, |
| 1036 | "s3-outposts" |
| 1037 | ] |
| 1038 | } |
| 1039 | ], |
| 1040 | "rules": [ |
| 1041 | { |
| 1042 | "conditions": [ |
| 1043 | { |
| 1044 | "fn": "booleanEquals", |
| 1045 | "argv": [ |
| 1046 | { |
| 1047 | "ref": "UseDualStack" |
| 1048 | }, |
| 1049 | true |
| 1050 | ] |
| 1051 | } |
| 1052 | ], |
| 1053 | "error": "Invalid configuration: Outpost buckets do not support dual-stack", |
| 1054 | "type": "error" |
| 1055 | }, |
| 1056 | { |
| 1057 | "conditions": [ |
| 1058 | { |
| 1059 | "fn": "getAttr", |
| 1060 | "argv": [ |
| 1061 | { |
| 1062 | "ref": "bucketArn" |
| 1063 | }, |
| 1064 | "resourceId[1]" |
| 1065 | ], |
| 1066 | "assign": "outpostId" |
| 1067 | } |
| 1068 | ], |
| 1069 | "rules": [ |
| 1070 | { |
| 1071 | "conditions": [ |
| 1072 | { |
| 1073 | "fn": "isValidHostLabel", |
| 1074 | "argv": [ |
| 1075 | { |
| 1076 | "ref": "outpostId" |
| 1077 | }, |
| 1078 | false |
| 1079 | ] |
| 1080 | } |
| 1081 | ], |
| 1082 | "rules": [ |
| 1083 | { |
| 1084 | "conditions": [ |
| 1085 | { |
| 1086 | "fn": "isSet", |
| 1087 | "argv": [ |
| 1088 | { |
| 1089 | "ref": "UseArnRegion" |
| 1090 | } |
| 1091 | ] |
| 1092 | }, |
| 1093 | { |
| 1094 | "fn": "booleanEquals", |
| 1095 | "argv": [ |
| 1096 | { |
| 1097 | "ref": "UseArnRegion" |
| 1098 | }, |
| 1099 | false |
| 1100 | ] |
| 1101 | }, |
| 1102 | { |
| 1103 | "fn": "not", |
| 1104 | "argv": [ |
| 1105 | { |
| 1106 | "fn": "stringEquals", |
| 1107 | "argv": [ |
| 1108 | { |
| 1109 | "fn": "getAttr", |
| 1110 | "argv": [ |
| 1111 | { |
| 1112 | "ref": "bucketArn" |
| 1113 | }, |
| 1114 | "region" |
| 1115 | ] |
| 1116 | }, |
| 1117 | "{Region}" |
| 1118 | ] |
| 1119 | } |
| 1120 | ] |
| 1121 | } |
| 1122 | ], |
| 1123 | "error": "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", |
| 1124 | "type": "error" |
| 1125 | }, |
| 1126 | { |
| 1127 | "conditions": [ |
| 1128 | { |
| 1129 | "fn": "aws.partition", |
| 1130 | "argv": [ |
| 1131 | { |
| 1132 | "fn": "getAttr", |
| 1133 | "argv": [ |
| 1134 | { |
| 1135 | "ref": "bucketArn" |
| 1136 | }, |
| 1137 | "region" |
| 1138 | ] |
| 1139 | } |
| 1140 | ], |
| 1141 | "assign": "arnPartition" |
| 1142 | } |
| 1143 | ], |
| 1144 | "rules": [ |
| 1145 | { |
| 1146 | "conditions": [ |
| 1147 | { |
| 1148 | "fn": "aws.partition", |
| 1149 | "argv": [ |
| 1150 | { |
| 1151 | "ref": "Region" |
| 1152 | } |
| 1153 | ], |
| 1154 | "assign": "partitionResult" |
| 1155 | } |
| 1156 | ], |
| 1157 | "rules": [ |
| 1158 | { |
| 1159 | "conditions": [ |
| 1160 | { |
| 1161 | "fn": "stringEquals", |
| 1162 | "argv": [ |
| 1163 | { |
| 1164 | "fn": "getAttr", |
| 1165 | "argv": [ |
| 1166 | { |
| 1167 | "ref": "arnPartition" |
| 1168 | }, |
| 1169 | "name" |
| 1170 | ] |
| 1171 | }, |
| 1172 | { |
| 1173 | "fn": "getAttr", |
| 1174 | "argv": [ |
| 1175 | { |
| 1176 | "ref": "partitionResult" |
| 1177 | }, |
| 1178 | "name" |
| 1179 | ] |
| 1180 | } |
| 1181 | ] |
| 1182 | } |
| 1183 | ], |
| 1184 | "rules": [ |
| 1185 | { |
| 1186 | "conditions": [ |
| 1187 | { |
| 1188 | "fn": "isValidHostLabel", |
| 1189 | "argv": [ |
| 1190 | { |
| 1191 | "fn": "getAttr", |
| 1192 | "argv": [ |
| 1193 | { |
| 1194 | "ref": "bucketArn" |
| 1195 | }, |
| 1196 | "region" |
| 1197 | ] |
| 1198 | }, |
| 1199 | true |
| 1200 | ] |
| 1201 | } |
| 1202 | ], |
| 1203 | "rules": [ |
| 1204 | { |
| 1205 | "conditions": [ |
| 1206 | { |
| 1207 | "fn": "not", |
| 1208 | "argv": [ |
| 1209 | { |
| 1210 | "fn": "stringEquals", |
| 1211 | "argv": [ |
| 1212 | { |
| 1213 | "fn": "getAttr", |
| 1214 | "argv": [ |
| 1215 | { |
| 1216 | "ref": "bucketArn" |
| 1217 | }, |
| 1218 | "accountId" |
| 1219 | ] |
| 1220 | }, |
| 1221 | "" |
| 1222 | ] |
| 1223 | } |
| 1224 | ] |
| 1225 | } |
| 1226 | ], |
| 1227 | "rules": [ |
| 1228 | { |
| 1229 | "conditions": [ |
| 1230 | { |
| 1231 | "fn": "isValidHostLabel", |
| 1232 | "argv": [ |
| 1233 | { |
| 1234 | "fn": "getAttr", |
| 1235 | "argv": [ |
| 1236 | { |
| 1237 | "ref": "bucketArn" |
| 1238 | }, |
| 1239 | "accountId" |
| 1240 | ] |
| 1241 | }, |
| 1242 | false |
| 1243 | ] |
| 1244 | } |
| 1245 | ], |
| 1246 | "rules": [ |
| 1247 | { |
| 1248 | "conditions": [ |
| 1249 | { |
| 1250 | "fn": "isSet", |
| 1251 | "argv": [ |
| 1252 | { |
| 1253 | "ref": "AccountId" |
| 1254 | } |
| 1255 | ] |
| 1256 | }, |
| 1257 | { |
| 1258 | "fn": "not", |
| 1259 | "argv": [ |
| 1260 | { |
| 1261 | "fn": "stringEquals", |
| 1262 | "argv": [ |
| 1263 | { |
| 1264 | "ref": "AccountId" |
| 1265 | }, |
| 1266 | "{bucketArn#accountId}" |
| 1267 | ] |
| 1268 | } |
| 1269 | ] |
| 1270 | } |
| 1271 | ], |
| 1272 | "error": "Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)", |
| 1273 | "type": "error" |
| 1274 | }, |
| 1275 | { |
| 1276 | "conditions": [ |
| 1277 | { |
| 1278 | "fn": "getAttr", |
| 1279 | "argv": [ |
| 1280 | { |
| 1281 | "ref": "bucketArn" |
| 1282 | }, |
| 1283 | "resourceId[2]" |
| 1284 | ], |
| 1285 | "assign": "outpostType" |
| 1286 | } |
| 1287 | ], |
| 1288 | "rules": [ |
| 1289 | { |
| 1290 | "conditions": [ |
| 1291 | { |
| 1292 | "fn": "getAttr", |
| 1293 | "argv": [ |
| 1294 | { |
| 1295 | "ref": "bucketArn" |
| 1296 | }, |
| 1297 | "resourceId[3]" |
| 1298 | ], |
| 1299 | "assign": "bucketName" |
| 1300 | } |
| 1301 | ], |
| 1302 | "rules": [ |
| 1303 | { |
| 1304 | "conditions": [ |
| 1305 | { |
| 1306 | "fn": "stringEquals", |
| 1307 | "argv": [ |
| 1308 | { |
| 1309 | "ref": "outpostType" |
| 1310 | }, |
| 1311 | "bucket" |
| 1312 | ] |
| 1313 | } |
| 1314 | ], |
| 1315 | "rules": [ |
| 1316 | { |
| 1317 | "conditions": [ |
| 1318 | { |
| 1319 | "fn": "booleanEquals", |
| 1320 | "argv": [ |
| 1321 | { |
| 1322 | "ref": "UseFIPS" |
| 1323 | }, |
| 1324 | true |
| 1325 | ] |
| 1326 | } |
| 1327 | ], |
| 1328 | "endpoint": { |
| 1329 | "url": "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}", |
| 1330 | "properties": { |
| 1331 | "authSchemes": [ |
| 1332 | { |
| 1333 | "disableDoubleEncoding": true, |
| 1334 | "name": "sigv4", |
| 1335 | "signingName": "s3-outposts", |
| 1336 | "signingRegion": "{bucketArn#region}" |
| 1337 | } |
| 1338 | ] |
| 1339 | }, |
| 1340 | "headers": { |
| 1341 | "x-amz-account-id": [ |
| 1342 | "{bucketArn#accountId}" |
| 1343 | ], |
| 1344 | "x-amz-outpost-id": [ |
| 1345 | "{outpostId}" |
| 1346 | ] |
| 1347 | } |
| 1348 | }, |
| 1349 | "type": "endpoint" |
| 1350 | }, |
| 1351 | { |
| 1352 | "conditions": [ |
| 1353 | { |
| 1354 | "fn": "isSet", |
| 1355 | "argv": [ |
| 1356 | { |
| 1357 | "ref": "Endpoint" |
| 1358 | } |
| 1359 | ] |
| 1360 | }, |
| 1361 | { |
| 1362 | "fn": "parseURL", |
| 1363 | "argv": [ |
| 1364 | { |
| 1365 | "ref": "Endpoint" |
| 1366 | } |
| 1367 | ], |
| 1368 | "assign": "url" |
| 1369 | } |
| 1370 | ], |
| 1371 | "endpoint": { |
| 1372 | "url": "{url#scheme}://{url#authority}{url#path}", |
| 1373 | "properties": { |
| 1374 | "authSchemes": [ |
| 1375 | { |
| 1376 | "disableDoubleEncoding": true, |
| 1377 | "name": "sigv4", |
| 1378 | "signingName": "s3-outposts", |
| 1379 | "signingRegion": "{bucketArn#region}" |
| 1380 | } |
| 1381 | ] |
| 1382 | }, |
| 1383 | "headers": { |
| 1384 | "x-amz-account-id": [ |
| 1385 | "{bucketArn#accountId}" |
| 1386 | ], |
| 1387 | "x-amz-outpost-id": [ |
| 1388 | "{outpostId}" |
| 1389 | ] |
| 1390 | } |
| 1391 | }, |
| 1392 | "type": "endpoint" |
| 1393 | }, |
| 1394 | { |
| 1395 | "conditions": [], |
| 1396 | "endpoint": { |
| 1397 | "url": "https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}", |
| 1398 | "properties": { |
| 1399 | "authSchemes": [ |
| 1400 | { |
| 1401 | "disableDoubleEncoding": true, |
| 1402 | "name": "sigv4", |
| 1403 | "signingName": "s3-outposts", |
| 1404 | "signingRegion": "{bucketArn#region}" |
| 1405 | } |
| 1406 | ] |
| 1407 | }, |
| 1408 | "headers": { |
| 1409 | "x-amz-account-id": [ |
| 1410 | "{bucketArn#accountId}" |
| 1411 | ], |
| 1412 | "x-amz-outpost-id": [ |
| 1413 | "{outpostId}" |
| 1414 | ] |
| 1415 | } |
| 1416 | }, |
| 1417 | "type": "endpoint" |
| 1418 | } |
| 1419 | ], |
| 1420 | "type": "tree" |
| 1421 | }, |
| 1422 | { |
| 1423 | "conditions": [], |
| 1424 | "error": "Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`", |
| 1425 | "type": "error" |
| 1426 | } |
| 1427 | ], |
| 1428 | "type": "tree" |
| 1429 | }, |
| 1430 | { |
| 1431 | "conditions": [], |
| 1432 | "error": "Invalid ARN: expected a bucket name", |
| 1433 | "type": "error" |
| 1434 | } |
| 1435 | ], |
| 1436 | "type": "tree" |
| 1437 | }, |
| 1438 | { |
| 1439 | "conditions": [], |
| 1440 | "error": "Invalid ARN: Expected a 4-component resource", |
| 1441 | "type": "error" |
| 1442 | } |
| 1443 | ], |
| 1444 | "type": "tree" |
| 1445 | }, |
| 1446 | { |
| 1447 | "conditions": [], |
| 1448 | "error": "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", |
| 1449 | "type": "error" |
| 1450 | } |
| 1451 | ], |
| 1452 | "type": "tree" |
| 1453 | }, |
| 1454 | { |
| 1455 | "conditions": [], |
| 1456 | "error": "Invalid ARN: missing account ID", |
| 1457 | "type": "error" |
| 1458 | } |
| 1459 | ], |
| 1460 | "type": "tree" |
| 1461 | }, |
| 1462 | { |
| 1463 | "conditions": [], |
| 1464 | "error": "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", |
| 1465 | "type": "error" |
| 1466 | } |
| 1467 | ], |
| 1468 | "type": "tree" |
| 1469 | }, |
| 1470 | { |
| 1471 | "conditions": [], |
| 1472 | "error": "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", |
| 1473 | "type": "error" |
| 1474 | } |
| 1475 | ], |
| 1476 | "type": "tree" |
| 1477 | } |
| 1478 | ], |
| 1479 | "type": "tree" |
| 1480 | } |
| 1481 | ], |
| 1482 | "type": "tree" |
| 1483 | }, |
| 1484 | { |
| 1485 | "conditions": [], |
| 1486 | "error": "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", |
| 1487 | "type": "error" |
| 1488 | } |
| 1489 | ], |
| 1490 | "type": "tree" |
| 1491 | }, |
| 1492 | { |
| 1493 | "conditions": [], |
| 1494 | "error": "Invalid ARN: The Outpost Id was not set", |
| 1495 | "type": "error" |
| 1496 | } |
| 1497 | ], |
| 1498 | "type": "tree" |
| 1499 | } |
| 1500 | ], |
| 1501 | "type": "tree" |
| 1502 | }, |
| 1503 | { |
| 1504 | "conditions": [], |
| 1505 | "error": "Invalid ARN: No ARN type specified", |
| 1506 | "type": "error" |
| 1507 | } |
| 1508 | ], |
| 1509 | "type": "tree" |
| 1510 | }, |
| 1511 | { |
| 1512 | "conditions": [ |
| 1513 | { |
| 1514 | "fn": "aws.partition", |
| 1515 | "argv": [ |
| 1516 | { |
| 1517 | "ref": "Region" |
| 1518 | } |
| 1519 | ], |
| 1520 | "assign": "partitionResult" |
| 1521 | } |
| 1522 | ], |
| 1523 | "rules": [ |
| 1524 | { |
| 1525 | "conditions": [ |
| 1526 | { |
| 1527 | "fn": "isValidHostLabel", |
| 1528 | "argv": [ |
| 1529 | { |
| 1530 | "ref": "Region" |
| 1531 | }, |
| 1532 | true |
| 1533 | ] |
| 1534 | } |
| 1535 | ], |
| 1536 | "rules": [ |
| 1537 | { |
| 1538 | "conditions": [ |
| 1539 | { |
| 1540 | "fn": "booleanEquals", |
| 1541 | "argv": [ |
| 1542 | { |
| 1543 | "ref": "UseFIPS" |
| 1544 | }, |
| 1545 | true |
| 1546 | ] |
| 1547 | }, |
| 1548 | { |
| 1549 | "fn": "stringEquals", |
| 1550 | "argv": [ |
| 1551 | { |
| 1552 | "fn": "getAttr", |
| 1553 | "argv": [ |
| 1554 | { |
| 1555 | "ref": "partitionResult" |
| 1556 | }, |
| 1557 | "name" |
| 1558 | ] |
| 1559 | }, |
| 1560 | "aws-cn" |
| 1561 | ] |
| 1562 | } |
| 1563 | ], |
| 1564 | "error": "Partition does not support FIPS", |
| 1565 | "type": "error" |
| 1566 | }, |
| 1567 | { |
| 1568 | "conditions": [ |
| 1569 | { |
| 1570 | "fn": "isSet", |
| 1571 | "argv": [ |
| 1572 | { |
| 1573 | "ref": "RequiresAccountId" |
| 1574 | } |
| 1575 | ] |
| 1576 | }, |
| 1577 | { |
| 1578 | "fn": "booleanEquals", |
| 1579 | "argv": [ |
| 1580 | { |
| 1581 | "ref": "RequiresAccountId" |
| 1582 | }, |
| 1583 | true |
| 1584 | ] |
| 1585 | }, |
| 1586 | { |
| 1587 | "fn": "not", |
| 1588 | "argv": [ |
| 1589 | { |
| 1590 | "fn": "isSet", |
| 1591 | "argv": [ |
| 1592 | { |
| 1593 | "ref": "AccountId" |
| 1594 | } |
| 1595 | ] |
| 1596 | } |
| 1597 | ] |
| 1598 | } |
| 1599 | ], |
| 1600 | "error": "AccountId is required but not set", |
| 1601 | "type": "error" |
| 1602 | }, |
| 1603 | { |
| 1604 | "conditions": [ |
| 1605 | { |
| 1606 | "fn": "isSet", |
| 1607 | "argv": [ |
| 1608 | { |
| 1609 | "ref": "AccountId" |
| 1610 | } |
| 1611 | ] |
| 1612 | }, |
| 1613 | { |
| 1614 | "fn": "not", |
| 1615 | "argv": [ |
| 1616 | { |
| 1617 | "fn": "isValidHostLabel", |
| 1618 | "argv": [ |
| 1619 | { |
| 1620 | "ref": "AccountId" |
| 1621 | }, |
| 1622 | false |
| 1623 | ] |
| 1624 | } |
| 1625 | ] |
| 1626 | } |
| 1627 | ], |
| 1628 | "error": "AccountId must only contain a-z, A-Z, 0-9 and `-`.", |
| 1629 | "type": "error" |
| 1630 | }, |
| 1631 | { |
| 1632 | "conditions": [ |
| 1633 | { |
| 1634 | "fn": "isSet", |
| 1635 | "argv": [ |
| 1636 | { |
| 1637 | "ref": "Endpoint" |
| 1638 | } |
| 1639 | ] |
| 1640 | }, |
| 1641 | { |
| 1642 | "fn": "parseURL", |
| 1643 | "argv": [ |
| 1644 | { |
| 1645 | "ref": "Endpoint" |
| 1646 | } |
| 1647 | ], |
| 1648 | "assign": "url" |
| 1649 | } |
| 1650 | ], |
| 1651 | "rules": [ |
| 1652 | { |
| 1653 | "conditions": [ |
| 1654 | { |
| 1655 | "fn": "booleanEquals", |
| 1656 | "argv": [ |
| 1657 | { |
| 1658 | "ref": "UseDualStack" |
| 1659 | }, |
| 1660 | true |
| 1661 | ] |
| 1662 | } |
| 1663 | ], |
| 1664 | "error": "Invalid Configuration: DualStack and custom endpoint are not supported", |
| 1665 | "type": "error" |
| 1666 | }, |
| 1667 | { |
| 1668 | "conditions": [ |
| 1669 | { |
| 1670 | "fn": "isSet", |
| 1671 | "argv": [ |
| 1672 | { |
| 1673 | "ref": "RequiresAccountId" |
| 1674 | } |
| 1675 | ] |
| 1676 | }, |
| 1677 | { |
| 1678 | "fn": "booleanEquals", |
| 1679 | "argv": [ |
| 1680 | { |
| 1681 | "ref": "RequiresAccountId" |
| 1682 | }, |
| 1683 | true |
| 1684 | ] |
| 1685 | }, |
| 1686 | { |
| 1687 | "fn": "isSet", |
| 1688 | "argv": [ |
| 1689 | { |
| 1690 | "ref": "AccountId" |
| 1691 | } |
| 1692 | ] |
| 1693 | } |
| 1694 | ], |
| 1695 | "endpoint": { |
| 1696 | "url": "{url#scheme}://{AccountId}.{url#authority}{url#path}", |
| 1697 | "properties": { |
| 1698 | "authSchemes": [ |
| 1699 | { |
| 1700 | "disableDoubleEncoding": true, |
| 1701 | "name": "sigv4", |
| 1702 | "signingName": "s3", |
| 1703 | "signingRegion": "{Region}" |
| 1704 | } |
| 1705 | ] |
| 1706 | }, |
| 1707 | "headers": {} |
| 1708 | }, |
| 1709 | "type": "endpoint" |
| 1710 | }, |
| 1711 | { |
| 1712 | "conditions": [], |
| 1713 | "endpoint": { |
| 1714 | "url": "{url#scheme}://{url#authority}{url#path}", |
| 1715 | "properties": { |
| 1716 | "authSchemes": [ |
| 1717 | { |
| 1718 | "disableDoubleEncoding": true, |
| 1719 | "name": "sigv4", |
| 1720 | "signingName": "s3", |
| 1721 | "signingRegion": "{Region}" |
| 1722 | } |
| 1723 | ] |
| 1724 | }, |
| 1725 | "headers": {} |
| 1726 | }, |
| 1727 | "type": "endpoint" |
| 1728 | } |
| 1729 | ], |
| 1730 | "type": "tree" |
| 1731 | }, |
| 1732 | { |
| 1733 | "conditions": [ |
| 1734 | { |
| 1735 | "fn": "booleanEquals", |
| 1736 | "argv": [ |
| 1737 | { |
| 1738 | "ref": "UseFIPS" |
| 1739 | }, |
| 1740 | true |
| 1741 | ] |
| 1742 | }, |
| 1743 | { |
| 1744 | "fn": "booleanEquals", |
| 1745 | "argv": [ |
| 1746 | { |
| 1747 | "ref": "UseDualStack" |
| 1748 | }, |
| 1749 | true |
| 1750 | ] |
| 1751 | }, |
| 1752 | { |
| 1753 | "fn": "isSet", |
| 1754 | "argv": [ |
| 1755 | { |
| 1756 | "ref": "RequiresAccountId" |
| 1757 | } |
| 1758 | ] |
| 1759 | }, |
| 1760 | { |
| 1761 | "fn": "booleanEquals", |
| 1762 | "argv": [ |
| 1763 | { |
| 1764 | "ref": "RequiresAccountId" |
| 1765 | }, |
| 1766 | true |
| 1767 | ] |
| 1768 | }, |
| 1769 | { |
| 1770 | "fn": "isSet", |
| 1771 | "argv": [ |
| 1772 | { |
| 1773 | "ref": "AccountId" |
| 1774 | } |
| 1775 | ] |
| 1776 | } |
| 1777 | ], |
| 1778 | "endpoint": { |
| 1779 | "url": "https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", |
| 1780 | "properties": { |
| 1781 | "authSchemes": [ |
| 1782 | { |
| 1783 | "disableDoubleEncoding": true, |
| 1784 | "name": "sigv4", |
| 1785 | "signingName": "s3", |
| 1786 | "signingRegion": "{Region}" |
| 1787 | } |
| 1788 | ] |
| 1789 | }, |
| 1790 | "headers": {} |
| 1791 | }, |
| 1792 | "type": "endpoint" |
| 1793 | }, |
| 1794 | { |
| 1795 | "conditions": [ |
| 1796 | { |
| 1797 | "fn": "booleanEquals", |
| 1798 | "argv": [ |
| 1799 | { |
| 1800 | "ref": "UseFIPS" |
| 1801 | }, |
| 1802 | true |
| 1803 | ] |
| 1804 | }, |
| 1805 | { |
| 1806 | "fn": "booleanEquals", |
| 1807 | "argv": [ |
| 1808 | { |
| 1809 | "ref": "UseDualStack" |
| 1810 | }, |
| 1811 | true |
| 1812 | ] |
| 1813 | } |
| 1814 | ], |
| 1815 | "endpoint": { |
| 1816 | "url": "https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", |
| 1817 | "properties": { |
| 1818 | "authSchemes": [ |
| 1819 | { |
| 1820 | "disableDoubleEncoding": true, |
| 1821 | "name": "sigv4", |
| 1822 | "signingName": "s3", |
| 1823 | "signingRegion": "{Region}" |
| 1824 | } |
| 1825 | ] |
| 1826 | }, |
| 1827 | "headers": {} |
| 1828 | }, |
| 1829 | "type": "endpoint" |
| 1830 | }, |
| 1831 | { |
| 1832 | "conditions": [ |
| 1833 | { |
| 1834 | "fn": "booleanEquals", |
| 1835 | "argv": [ |
| 1836 | { |
| 1837 | "ref": "UseFIPS" |
| 1838 | }, |
| 1839 | true |
| 1840 | ] |
| 1841 | }, |
| 1842 | { |
| 1843 | "fn": "booleanEquals", |
| 1844 | "argv": [ |
| 1845 | { |
| 1846 | "ref": "UseDualStack" |
| 1847 | }, |
| 1848 | false |
| 1849 | ] |
| 1850 | }, |
| 1851 | { |
| 1852 | "fn": "isSet", |
| 1853 | "argv": [ |
| 1854 | { |
| 1855 | "ref": "RequiresAccountId" |
| 1856 | } |
| 1857 | ] |
| 1858 | }, |
| 1859 | { |
| 1860 | "fn": "booleanEquals", |
| 1861 | "argv": [ |
| 1862 | { |
| 1863 | "ref": "RequiresAccountId" |
| 1864 | }, |
| 1865 | true |
| 1866 | ] |
| 1867 | }, |
| 1868 | { |
| 1869 | "fn": "isSet", |
| 1870 | "argv": [ |
| 1871 | { |
| 1872 | "ref": "AccountId" |
| 1873 | } |
| 1874 | ] |
| 1875 | } |
| 1876 | ], |
| 1877 | "endpoint": { |
| 1878 | "url": "https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}", |
| 1879 | "properties": { |
| 1880 | "authSchemes": [ |
| 1881 | { |
| 1882 | "disableDoubleEncoding": true, |
| 1883 | "name": "sigv4", |
| 1884 | "signingName": "s3", |
| 1885 | "signingRegion": "{Region}" |
| 1886 | } |
| 1887 | ] |
| 1888 | }, |
| 1889 | "headers": {} |
| 1890 | }, |
| 1891 | "type": "endpoint" |
| 1892 | }, |
| 1893 | { |
| 1894 | "conditions": [ |
| 1895 | { |
| 1896 | "fn": "booleanEquals", |
| 1897 | "argv": [ |
| 1898 | { |
| 1899 | "ref": "UseFIPS" |
| 1900 | }, |
| 1901 | true |
| 1902 | ] |
| 1903 | }, |
| 1904 | { |
| 1905 | "fn": "booleanEquals", |
| 1906 | "argv": [ |
| 1907 | { |
| 1908 | "ref": "UseDualStack" |
| 1909 | }, |
| 1910 | false |
| 1911 | ] |
| 1912 | } |
| 1913 | ], |
| 1914 | "endpoint": { |
| 1915 | "url": "https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}", |
| 1916 | "properties": { |
| 1917 | "authSchemes": [ |
| 1918 | { |
| 1919 | "disableDoubleEncoding": true, |
| 1920 | "name": "sigv4", |
| 1921 | "signingName": "s3", |
| 1922 | "signingRegion": "{Region}" |
| 1923 | } |
| 1924 | ] |
| 1925 | }, |
| 1926 | "headers": {} |
| 1927 | }, |
| 1928 | "type": "endpoint" |
| 1929 | }, |
| 1930 | { |
| 1931 | "conditions": [ |
| 1932 | { |
| 1933 | "fn": "booleanEquals", |
| 1934 | "argv": [ |
| 1935 | { |
| 1936 | "ref": "UseFIPS" |
| 1937 | }, |
| 1938 | false |
| 1939 | ] |
| 1940 | }, |
| 1941 | { |
| 1942 | "fn": "booleanEquals", |
| 1943 | "argv": [ |
| 1944 | { |
| 1945 | "ref": "UseDualStack" |
| 1946 | }, |
| 1947 | true |
| 1948 | ] |
| 1949 | }, |
| 1950 | { |
| 1951 | "fn": "isSet", |
| 1952 | "argv": [ |
| 1953 | { |
| 1954 | "ref": "RequiresAccountId" |
| 1955 | } |
| 1956 | ] |
| 1957 | }, |
| 1958 | { |
| 1959 | "fn": "booleanEquals", |
| 1960 | "argv": [ |
| 1961 | { |
| 1962 | "ref": "RequiresAccountId" |
| 1963 | }, |
| 1964 | true |
| 1965 | ] |
| 1966 | }, |
| 1967 | { |
| 1968 | "fn": "isSet", |
| 1969 | "argv": [ |
| 1970 | { |
| 1971 | "ref": "AccountId" |
| 1972 | } |
| 1973 | ] |
| 1974 | } |
| 1975 | ], |
| 1976 | "endpoint": { |
| 1977 | "url": "https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", |
| 1978 | "properties": { |
| 1979 | "authSchemes": [ |
| 1980 | { |
| 1981 | "disableDoubleEncoding": true, |
| 1982 | "name": "sigv4", |
| 1983 | "signingName": "s3", |
| 1984 | "signingRegion": "{Region}" |
| 1985 | } |
| 1986 | ] |
| 1987 | }, |
| 1988 | "headers": {} |
| 1989 | }, |
| 1990 | "type": "endpoint" |
| 1991 | }, |
| 1992 | { |
| 1993 | "conditions": [ |
| 1994 | { |
| 1995 | "fn": "booleanEquals", |
| 1996 | "argv": [ |
| 1997 | { |
| 1998 | "ref": "UseFIPS" |
| 1999 | }, |
| 2000 | false |
| 2001 | ] |
| 2002 | }, |
| 2003 | { |
| 2004 | "fn": "booleanEquals", |
| 2005 | "argv": [ |
| 2006 | { |
| 2007 | "ref": "UseDualStack" |
| 2008 | }, |
| 2009 | true |
| 2010 | ] |
| 2011 | } |
| 2012 | ], |
| 2013 | "endpoint": { |
| 2014 | "url": "https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", |
| 2015 | "properties": { |
| 2016 | "authSchemes": [ |
| 2017 | { |
| 2018 | "disableDoubleEncoding": true, |
| 2019 | "name": "sigv4", |
| 2020 | "signingName": "s3", |
| 2021 | "signingRegion": "{Region}" |
| 2022 | } |
| 2023 | ] |
| 2024 | }, |
| 2025 | "headers": {} |
| 2026 | }, |
| 2027 | "type": "endpoint" |
| 2028 | }, |
| 2029 | { |
| 2030 | "conditions": [ |
| 2031 | { |
| 2032 | "fn": "booleanEquals", |
| 2033 | "argv": [ |
| 2034 | { |
| 2035 | "ref": "UseFIPS" |
| 2036 | }, |
| 2037 | false |
| 2038 | ] |
| 2039 | }, |
| 2040 | { |
| 2041 | "fn": "booleanEquals", |
| 2042 | "argv": [ |
| 2043 | { |
| 2044 | "ref": "UseDualStack" |
| 2045 | }, |
| 2046 | false |
| 2047 | ] |
| 2048 | }, |
| 2049 | { |
| 2050 | "fn": "isSet", |
| 2051 | "argv": [ |
| 2052 | { |
| 2053 | "ref": "RequiresAccountId" |
| 2054 | } |
| 2055 | ] |
| 2056 | }, |
| 2057 | { |
| 2058 | "fn": "booleanEquals", |
| 2059 | "argv": [ |
| 2060 | { |
| 2061 | "ref": "RequiresAccountId" |
| 2062 | }, |
| 2063 | true |
| 2064 | ] |
| 2065 | }, |
| 2066 | { |
| 2067 | "fn": "isSet", |
| 2068 | "argv": [ |
| 2069 | { |
| 2070 | "ref": "AccountId" |
| 2071 | } |
| 2072 | ] |
| 2073 | } |
| 2074 | ], |
| 2075 | "endpoint": { |
| 2076 | "url": "https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}", |
| 2077 | "properties": { |
| 2078 | "authSchemes": [ |
| 2079 | { |
| 2080 | "disableDoubleEncoding": true, |
| 2081 | "name": "sigv4", |
| 2082 | "signingName": "s3", |
| 2083 | "signingRegion": "{Region}" |
| 2084 | } |
| 2085 | ] |
| 2086 | }, |
| 2087 | "headers": {} |
| 2088 | }, |
| 2089 | "type": "endpoint" |
| 2090 | }, |
| 2091 | { |
| 2092 | "conditions": [ |
| 2093 | { |
| 2094 | "fn": "booleanEquals", |
| 2095 | "argv": [ |
| 2096 | { |
| 2097 | "ref": "UseFIPS" |
| 2098 | }, |
| 2099 | false |
| 2100 | ] |
| 2101 | }, |
| 2102 | { |
| 2103 | "fn": "booleanEquals", |
| 2104 | "argv": [ |
| 2105 | { |
| 2106 | "ref": "UseDualStack" |
| 2107 | }, |
| 2108 | false |
| 2109 | ] |
| 2110 | } |
| 2111 | ], |
| 2112 | "endpoint": { |
| 2113 | "url": "https://s3-control.{Region}.{partitionResult#dnsSuffix}", |
| 2114 | "properties": { |
| 2115 | "authSchemes": [ |
| 2116 | { |
| 2117 | "disableDoubleEncoding": true, |
| 2118 | "name": "sigv4", |
| 2119 | "signingName": "s3", |
| 2120 | "signingRegion": "{Region}" |
| 2121 | } |
| 2122 | ] |
| 2123 | }, |
| 2124 | "headers": {} |
| 2125 | }, |
| 2126 | "type": "endpoint" |
| 2127 | } |
| 2128 | ], |
| 2129 | "type": "tree" |
| 2130 | }, |
| 2131 | { |
| 2132 | "conditions": [], |
| 2133 | "error": "Invalid region: region was not a valid DNS name.", |
| 2134 | "type": "error" |
| 2135 | } |
| 2136 | ], |
| 2137 | "type": "tree" |
| 2138 | } |
| 2139 | ], |
| 2140 | "type": "tree" |
| 2141 | }, |
| 2142 | { |
| 2143 | "conditions": [], |
| 2144 | "error": "Region must be set", |
| 2145 | "type": "error" |
| 2146 | } |
| 2147 | ] |
| 2148 | } |