|
74 | 74 | "builtIn": "AWS::Region", |
75 | 75 | "required": false, |
76 | 76 | "documentation": "The AWS region used to dispatch the request.", |
77 | | - "type": "String" |
| 77 | + "type": "string" |
78 | 78 | }, |
79 | 79 | "UseDualStack": { |
80 | 80 | "builtIn": "AWS::UseDualStack", |
81 | 81 | "required": true, |
82 | 82 | "default": false, |
83 | 83 | "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", |
84 | | - "type": "Boolean" |
| 84 | + "type": "boolean" |
85 | 85 | }, |
86 | 86 | "UseFIPS": { |
87 | 87 | "builtIn": "AWS::UseFIPS", |
88 | 88 | "required": true, |
89 | 89 | "default": false, |
90 | 90 | "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.", |
91 | | - "type": "Boolean" |
| 91 | + "type": "boolean" |
92 | 92 | }, |
93 | 93 | "Endpoint": { |
94 | 94 | "builtIn": "SDK::Endpoint", |
95 | 95 | "required": false, |
96 | 96 | "documentation": "Override the endpoint used to send this request", |
97 | | - "type": "String" |
| 97 | + "type": "string" |
98 | 98 | } |
99 | 99 | }, |
100 | 100 | "rules": [ |
|
287 | 287 | } |
288 | 288 | ], |
289 | 289 | "rules": [ |
| 290 | + { |
| 291 | + "conditions": [ |
| 292 | + { |
| 293 | + "fn": "stringEquals", |
| 294 | + "argv": [ |
| 295 | + { |
| 296 | + "ref": "Region" |
| 297 | + }, |
| 298 | + "us-gov-east-1" |
| 299 | + ] |
| 300 | + } |
| 301 | + ], |
| 302 | + "endpoint": { |
| 303 | + "url": "https://autoscaling-plans.us-gov-east-1.amazonaws.com", |
| 304 | + "properties": {}, |
| 305 | + "headers": {} |
| 306 | + }, |
| 307 | + "type": "endpoint" |
| 308 | + }, |
| 309 | + { |
| 310 | + "conditions": [ |
| 311 | + { |
| 312 | + "fn": "stringEquals", |
| 313 | + "argv": [ |
| 314 | + { |
| 315 | + "ref": "Region" |
| 316 | + }, |
| 317 | + "us-gov-west-1" |
| 318 | + ] |
| 319 | + } |
| 320 | + ], |
| 321 | + "endpoint": { |
| 322 | + "url": "https://autoscaling-plans.us-gov-west-1.amazonaws.com", |
| 323 | + "properties": {}, |
| 324 | + "headers": {} |
| 325 | + }, |
| 326 | + "type": "endpoint" |
| 327 | + }, |
290 | 328 | { |
291 | 329 | "conditions": [], |
292 | 330 | "endpoint": { |
|
786 | 824 | "UseDualStack": false |
787 | 825 | } |
788 | 826 | }, |
| 827 | + { |
| 828 | + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", |
| 829 | + "expect": { |
| 830 | + "endpoint": { |
| 831 | + "url": "https://autoscaling-plans.us-gov-east-1.amazonaws.com" |
| 832 | + } |
| 833 | + }, |
| 834 | + "params": { |
| 835 | + "Region": "us-gov-east-1", |
| 836 | + "UseFIPS": true, |
| 837 | + "UseDualStack": false |
| 838 | + } |
| 839 | + }, |
789 | 840 | { |
790 | 841 | "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", |
791 | 842 | "expect": { |
|
800 | 851 | } |
801 | 852 | }, |
802 | 853 | { |
803 | | - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", |
| 854 | + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", |
804 | 855 | "expect": { |
805 | 856 | "endpoint": { |
806 | | - "url": "https://autoscaling-plans-fips.us-gov-east-1.api.aws" |
| 857 | + "url": "https://autoscaling-plans.us-gov-west-1.amazonaws.com" |
807 | 858 | } |
808 | 859 | }, |
809 | 860 | "params": { |
810 | | - "Region": "us-gov-east-1", |
| 861 | + "Region": "us-gov-west-1", |
811 | 862 | "UseFIPS": true, |
812 | | - "UseDualStack": true |
| 863 | + "UseDualStack": false |
813 | 864 | } |
814 | 865 | }, |
815 | 866 | { |
816 | | - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", |
| 867 | + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", |
817 | 868 | "expect": { |
818 | 869 | "endpoint": { |
819 | | - "url": "https://autoscaling-plans-fips.us-gov-east-1.amazonaws.com" |
| 870 | + "url": "https://autoscaling-plans-fips.us-gov-east-1.api.aws" |
820 | 871 | } |
821 | 872 | }, |
822 | 873 | "params": { |
823 | 874 | "Region": "us-gov-east-1", |
824 | 875 | "UseFIPS": true, |
825 | | - "UseDualStack": false |
| 876 | + "UseDualStack": true |
826 | 877 | } |
827 | 878 | }, |
828 | 879 | { |
|
0 commit comments