|
7 | 7 | "documentation": "The AWS region used to dispatch the request.",
|
8 | 8 | "type": "String"
|
9 | 9 | },
|
| 10 | + "UseDualStack": { |
| 11 | + "builtIn": "AWS::UseDualStack", |
| 12 | + "required": true, |
| 13 | + "default": false, |
| 14 | + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", |
| 15 | + "type": "Boolean" |
| 16 | + }, |
10 | 17 | "UseFIPS": {
|
11 | 18 | "builtIn": "AWS::UseFIPS",
|
12 | 19 | "required": true,
|
|
49 | 56 | "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
|
50 | 57 | "type": "error"
|
51 | 58 | },
|
| 59 | + { |
| 60 | + "conditions": [ |
| 61 | + { |
| 62 | + "fn": "booleanEquals", |
| 63 | + "argv": [ |
| 64 | + { |
| 65 | + "ref": "UseDualStack" |
| 66 | + }, |
| 67 | + true |
| 68 | + ] |
| 69 | + } |
| 70 | + ], |
| 71 | + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", |
| 72 | + "type": "error" |
| 73 | + }, |
52 | 74 | {
|
53 | 75 | "conditions": [],
|
54 | 76 | "endpoint": {
|
|
93 | 115 | {
|
94 | 116 | "fn": "booleanEquals",
|
95 | 117 | "argv": [
|
96 |
| - true, |
97 | 118 | {
|
98 |
| - "fn": "getAttr", |
99 |
| - "argv": [ |
100 |
| - { |
101 |
| - "ref": "PartitionResult" |
102 |
| - }, |
103 |
| - "supportsDualStack" |
104 |
| - ] |
105 |
| - } |
| 119 | + "ref": "UseFIPS" |
| 120 | + }, |
| 121 | + true |
| 122 | + ] |
| 123 | + }, |
| 124 | + { |
| 125 | + "fn": "booleanEquals", |
| 126 | + "argv": [ |
| 127 | + { |
| 128 | + "ref": "UseDualStack" |
| 129 | + }, |
| 130 | + true |
106 | 131 | ]
|
107 | 132 | }
|
108 | 133 | ],
|
|
112 | 137 | {
|
113 | 138 | "fn": "booleanEquals",
|
114 | 139 | "argv": [
|
| 140 | + true, |
115 | 141 | {
|
116 |
| - "ref": "UseFIPS" |
117 |
| - }, |
118 |
| - true |
| 142 | + "fn": "getAttr", |
| 143 | + "argv": [ |
| 144 | + { |
| 145 | + "ref": "PartitionResult" |
| 146 | + }, |
| 147 | + "supportsFIPS" |
| 148 | + ] |
| 149 | + } |
119 | 150 | ]
|
120 |
| - } |
121 |
| - ], |
122 |
| - "rules": [ |
| 151 | + }, |
123 | 152 | {
|
124 |
| - "conditions": [ |
| 153 | + "fn": "booleanEquals", |
| 154 | + "argv": [ |
| 155 | + true, |
125 | 156 | {
|
126 |
| - "fn": "booleanEquals", |
| 157 | + "fn": "getAttr", |
127 | 158 | "argv": [
|
128 | 159 | {
|
129 |
| - "fn": "getAttr", |
130 |
| - "argv": [ |
131 |
| - { |
132 |
| - "ref": "PartitionResult" |
133 |
| - }, |
134 |
| - "supportsFIPS" |
135 |
| - ] |
| 160 | + "ref": "PartitionResult" |
136 | 161 | },
|
137 |
| - true |
| 162 | + "supportsDualStack" |
138 | 163 | ]
|
139 | 164 | }
|
140 |
| - ], |
141 |
| - "rules": [ |
142 |
| - { |
143 |
| - "conditions": [], |
144 |
| - "endpoint": { |
145 |
| - "url": "https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", |
146 |
| - "properties": {}, |
147 |
| - "headers": {} |
148 |
| - }, |
149 |
| - "type": "endpoint" |
150 |
| - } |
151 |
| - ], |
152 |
| - "type": "tree" |
153 |
| - }, |
| 165 | + ] |
| 166 | + } |
| 167 | + ], |
| 168 | + "rules": [ |
154 | 169 | {
|
155 | 170 | "conditions": [],
|
156 |
| - "error": "FIPS is enabled but this partition does not support FIPS", |
157 |
| - "type": "error" |
| 171 | + "endpoint": { |
| 172 | + "url": "https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", |
| 173 | + "properties": {}, |
| 174 | + "headers": {} |
| 175 | + }, |
| 176 | + "type": "endpoint" |
158 | 177 | }
|
159 | 178 | ],
|
160 | 179 | "type": "tree"
|
161 | 180 | },
|
162 | 181 | {
|
163 | 182 | "conditions": [],
|
164 |
| - "endpoint": { |
165 |
| - "url": "https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}", |
166 |
| - "properties": {}, |
167 |
| - "headers": {} |
168 |
| - }, |
169 |
| - "type": "endpoint" |
| 183 | + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", |
| 184 | + "type": "error" |
170 | 185 | }
|
171 | 186 | ],
|
172 | 187 | "type": "tree"
|
|
223 | 238 | ],
|
224 | 239 | "type": "tree"
|
225 | 240 | },
|
| 241 | + { |
| 242 | + "conditions": [ |
| 243 | + { |
| 244 | + "fn": "booleanEquals", |
| 245 | + "argv": [ |
| 246 | + { |
| 247 | + "ref": "UseDualStack" |
| 248 | + }, |
| 249 | + true |
| 250 | + ] |
| 251 | + } |
| 252 | + ], |
| 253 | + "rules": [ |
| 254 | + { |
| 255 | + "conditions": [ |
| 256 | + { |
| 257 | + "fn": "booleanEquals", |
| 258 | + "argv": [ |
| 259 | + true, |
| 260 | + { |
| 261 | + "fn": "getAttr", |
| 262 | + "argv": [ |
| 263 | + { |
| 264 | + "ref": "PartitionResult" |
| 265 | + }, |
| 266 | + "supportsDualStack" |
| 267 | + ] |
| 268 | + } |
| 269 | + ] |
| 270 | + } |
| 271 | + ], |
| 272 | + "rules": [ |
| 273 | + { |
| 274 | + "conditions": [], |
| 275 | + "endpoint": { |
| 276 | + "url": "https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}", |
| 277 | + "properties": {}, |
| 278 | + "headers": {} |
| 279 | + }, |
| 280 | + "type": "endpoint" |
| 281 | + } |
| 282 | + ], |
| 283 | + "type": "tree" |
| 284 | + }, |
| 285 | + { |
| 286 | + "conditions": [], |
| 287 | + "error": "DualStack is enabled but this partition does not support DualStack", |
| 288 | + "type": "error" |
| 289 | + } |
| 290 | + ], |
| 291 | + "type": "tree" |
| 292 | + }, |
226 | 293 | {
|
227 | 294 | "conditions": [],
|
228 | 295 | "endpoint": {
|
|
0 commit comments