1{ 2 "testCases": [ 3 { 4 "documentation": "For region aws-global with FIPS disabled and DualStack disabled", 5 "expect": { 6 "endpoint": { 7 "properties": { 8 "authSchemes": [ 9 { 10 "name": "sigv4", 11 "signingName": "shield", 12 "signingRegion": "us-east-1" 13 } 14 ] 15 }, 16 "url": "https://shield.us-east-1.amazonaws.com" 17 } 18 }, 19 "params": { 20 "Region": "aws-global", 21 "UseFIPS": false, 22 "UseDualStack": false 23 } 24 }, 25 { 26 "documentation": "For region aws-global with FIPS enabled and DualStack disabled", 27 "expect": { 28 "endpoint": { 29 "properties": { 30 "authSchemes": [ 31 { 32 "name": "sigv4", 33 "signingName": "shield", 34 "signingRegion": "us-east-1" 35 } 36 ] 37 }, 38 "url": "https://shield-fips.us-east-1.amazonaws.com" 39 } 40 }, 41 "params": { 42 "Region": "aws-global", 43 "UseFIPS": true, 44 "UseDualStack": false 45 } 46 }, 47 { 48 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", 49 "expect": { 50 "endpoint": { 51 "url": "https://shield-fips.us-east-1.api.aws" 52 } 53 }, 54 "params": { 55 "Region": "us-east-1", 56 "UseFIPS": true, 57 "UseDualStack": true 58 } 59 }, 60 { 61 "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", 62 "expect": { 63 "endpoint": { 64 "properties": { 65 "authSchemes": [ 66 { 67 "name": "sigv4", 68 "signingName": "shield", 69 "signingRegion": "us-east-1" 70 } 71 ] 72 }, 73 "url": "https://shield-fips.us-east-1.amazonaws.com" 74 } 75 }, 76 "params": { 77 "Region": "us-east-1", 78 "UseFIPS": true, 79 "UseDualStack": false 80 } 81 }, 82 { 83 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", 84 "expect": { 85 "endpoint": { 86 "url": "https://shield.us-east-1.api.aws" 87 } 88 }, 89 "params": { 90 "Region": "us-east-1", 91 "UseFIPS": false, 92 "UseDualStack": true 93 } 94 }, 95 { 96 "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", 97 "expect": { 98 "endpoint": { 99 "properties": { 100 "authSchemes": [ 101 { 102 "name": "sigv4", 103 "signingName": "shield", 104 "signingRegion": "us-east-1" 105 } 106 ] 107 }, 108 "url": "https://shield.us-east-1.amazonaws.com" 109 } 110 }, 111 "params": { 112 "Region": "us-east-1", 113 "UseFIPS": false, 114 "UseDualStack": false 115 } 116 }, 117 { 118 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", 119 "expect": { 120 "endpoint": { 121 "url": "https://shield-fips.cn-north-1.api.amazonwebservices.com.cn" 122 } 123 }, 124 "params": { 125 "Region": "cn-north-1", 126 "UseFIPS": true, 127 "UseDualStack": true 128 } 129 }, 130 { 131 "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", 132 "expect": { 133 "endpoint": { 134 "url": "https://shield-fips.cn-north-1.amazonaws.com.cn" 135 } 136 }, 137 "params": { 138 "Region": "cn-north-1", 139 "UseFIPS": true, 140 "UseDualStack": false 141 } 142 }, 143 { 144 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", 145 "expect": { 146 "endpoint": { 147 "url": "https://shield.cn-north-1.api.amazonwebservices.com.cn" 148 } 149 }, 150 "params": { 151 "Region": "cn-north-1", 152 "UseFIPS": false, 153 "UseDualStack": true 154 } 155 }, 156 { 157 "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", 158 "expect": { 159 "endpoint": { 160 "url": "https://shield.cn-north-1.amazonaws.com.cn" 161 } 162 }, 163 "params": { 164 "Region": "cn-north-1", 165 "UseFIPS": false, 166 "UseDualStack": false 167 } 168 }, 169 { 170 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", 171 "expect": { 172 "endpoint": { 173 "url": "https://shield-fips.us-gov-east-1.api.aws" 174 } 175 }, 176 "params": { 177 "Region": "us-gov-east-1", 178 "UseFIPS": true, 179 "UseDualStack": true 180 } 181 }, 182 { 183 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", 184 "expect": { 185 "endpoint": { 186 "url": "https://shield-fips.us-gov-east-1.amazonaws.com" 187 } 188 }, 189 "params": { 190 "Region": "us-gov-east-1", 191 "UseFIPS": true, 192 "UseDualStack": false 193 } 194 }, 195 { 196 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", 197 "expect": { 198 "endpoint": { 199 "url": "https://shield.us-gov-east-1.api.aws" 200 } 201 }, 202 "params": { 203 "Region": "us-gov-east-1", 204 "UseFIPS": false, 205 "UseDualStack": true 206 } 207 }, 208 { 209 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", 210 "expect": { 211 "endpoint": { 212 "url": "https://shield.us-gov-east-1.amazonaws.com" 213 } 214 }, 215 "params": { 216 "Region": "us-gov-east-1", 217 "UseFIPS": false, 218 "UseDualStack": false 219 } 220 }, 221 { 222 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", 223 "expect": { 224 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 225 }, 226 "params": { 227 "Region": "us-iso-east-1", 228 "UseFIPS": true, 229 "UseDualStack": true 230 } 231 }, 232 { 233 "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", 234 "expect": { 235 "endpoint": { 236 "url": "https://shield-fips.us-iso-east-1.c2s.ic.gov" 237 } 238 }, 239 "params": { 240 "Region": "us-iso-east-1", 241 "UseFIPS": true, 242 "UseDualStack": false 243 } 244 }, 245 { 246 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", 247 "expect": { 248 "error": "DualStack is enabled but this partition does not support DualStack" 249 }, 250 "params": { 251 "Region": "us-iso-east-1", 252 "UseFIPS": false, 253 "UseDualStack": true 254 } 255 }, 256 { 257 "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", 258 "expect": { 259 "endpoint": { 260 "url": "https://shield.us-iso-east-1.c2s.ic.gov" 261 } 262 }, 263 "params": { 264 "Region": "us-iso-east-1", 265 "UseFIPS": false, 266 "UseDualStack": false 267 } 268 }, 269 { 270 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", 271 "expect": { 272 "error": "FIPS and DualStack are enabled, but this partition does not support one or both" 273 }, 274 "params": { 275 "Region": "us-isob-east-1", 276 "UseFIPS": true, 277 "UseDualStack": true 278 } 279 }, 280 { 281 "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", 282 "expect": { 283 "endpoint": { 284 "url": "https://shield-fips.us-isob-east-1.sc2s.sgov.gov" 285 } 286 }, 287 "params": { 288 "Region": "us-isob-east-1", 289 "UseFIPS": true, 290 "UseDualStack": false 291 } 292 }, 293 { 294 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", 295 "expect": { 296 "error": "DualStack is enabled but this partition does not support DualStack" 297 }, 298 "params": { 299 "Region": "us-isob-east-1", 300 "UseFIPS": false, 301 "UseDualStack": true 302 } 303 }, 304 { 305 "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", 306 "expect": { 307 "endpoint": { 308 "url": "https://shield.us-isob-east-1.sc2s.sgov.gov" 309 } 310 }, 311 "params": { 312 "Region": "us-isob-east-1", 313 "UseFIPS": false, 314 "UseDualStack": false 315 } 316 }, 317 { 318 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", 319 "expect": { 320 "endpoint": { 321 "url": "https://example.com" 322 } 323 }, 324 "params": { 325 "Region": "us-east-1", 326 "UseFIPS": false, 327 "UseDualStack": false, 328 "Endpoint": "https://example.com" 329 } 330 }, 331 { 332 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", 333 "expect": { 334 "endpoint": { 335 "url": "https://example.com" 336 } 337 }, 338 "params": { 339 "UseFIPS": false, 340 "UseDualStack": false, 341 "Endpoint": "https://example.com" 342 } 343 }, 344 { 345 "documentation": "For custom endpoint with fips enabled and dualstack disabled", 346 "expect": { 347 "error": "Invalid Configuration: FIPS and custom endpoint are not supported" 348 }, 349 "params": { 350 "Region": "us-east-1", 351 "UseFIPS": true, 352 "UseDualStack": false, 353 "Endpoint": "https://example.com" 354 } 355 }, 356 { 357 "documentation": "For custom endpoint with fips disabled and dualstack enabled", 358 "expect": { 359 "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" 360 }, 361 "params": { 362 "Region": "us-east-1", 363 "UseFIPS": false, 364 "UseDualStack": true, 365 "Endpoint": "https://example.com" 366 } 367 }, 368 { 369 "documentation": "Missing region", 370 "expect": { 371 "error": "Invalid Configuration: Missing Region" 372 } 373 } 374 ], 375 "version": "1.0" 376}