partitions.go (9564B)
1 // Code generated by endpoint/awsrulesfn/internal/partition. DO NOT EDIT. 2 3 package awsrulesfn 4 5 // GetPartition returns an AWS [Partition] for the region provided. If the 6 // partition cannot be determined nil will be returned. 7 func GetPartition(region string) *PartitionConfig { 8 return getPartition(partitions, region) 9 } 10 11 var partitions = []Partition{ 12 { 13 ID: "aws", 14 RegionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", 15 DefaultConfig: PartitionConfig{ 16 Name: "aws", 17 DnsSuffix: "amazonaws.com", 18 DualStackDnsSuffix: "api.aws", 19 SupportsFIPS: true, 20 SupportsDualStack: true, 21 }, 22 Regions: map[string]RegionOverrides{ 23 "af-south-1": { 24 Name: nil, 25 DnsSuffix: nil, 26 DualStackDnsSuffix: nil, 27 SupportsFIPS: nil, 28 SupportsDualStack: nil, 29 }, 30 "ap-east-1": { 31 Name: nil, 32 DnsSuffix: nil, 33 DualStackDnsSuffix: nil, 34 SupportsFIPS: nil, 35 SupportsDualStack: nil, 36 }, 37 "ap-northeast-1": { 38 Name: nil, 39 DnsSuffix: nil, 40 DualStackDnsSuffix: nil, 41 SupportsFIPS: nil, 42 SupportsDualStack: nil, 43 }, 44 "ap-northeast-2": { 45 Name: nil, 46 DnsSuffix: nil, 47 DualStackDnsSuffix: nil, 48 SupportsFIPS: nil, 49 SupportsDualStack: nil, 50 }, 51 "ap-northeast-3": { 52 Name: nil, 53 DnsSuffix: nil, 54 DualStackDnsSuffix: nil, 55 SupportsFIPS: nil, 56 SupportsDualStack: nil, 57 }, 58 "ap-south-1": { 59 Name: nil, 60 DnsSuffix: nil, 61 DualStackDnsSuffix: nil, 62 SupportsFIPS: nil, 63 SupportsDualStack: nil, 64 }, 65 "ap-south-2": { 66 Name: nil, 67 DnsSuffix: nil, 68 DualStackDnsSuffix: nil, 69 SupportsFIPS: nil, 70 SupportsDualStack: nil, 71 }, 72 "ap-southeast-1": { 73 Name: nil, 74 DnsSuffix: nil, 75 DualStackDnsSuffix: nil, 76 SupportsFIPS: nil, 77 SupportsDualStack: nil, 78 }, 79 "ap-southeast-2": { 80 Name: nil, 81 DnsSuffix: nil, 82 DualStackDnsSuffix: nil, 83 SupportsFIPS: nil, 84 SupportsDualStack: nil, 85 }, 86 "ap-southeast-3": { 87 Name: nil, 88 DnsSuffix: nil, 89 DualStackDnsSuffix: nil, 90 SupportsFIPS: nil, 91 SupportsDualStack: nil, 92 }, 93 "ap-southeast-4": { 94 Name: nil, 95 DnsSuffix: nil, 96 DualStackDnsSuffix: nil, 97 SupportsFIPS: nil, 98 SupportsDualStack: nil, 99 }, 100 "aws-global": { 101 Name: nil, 102 DnsSuffix: nil, 103 DualStackDnsSuffix: nil, 104 SupportsFIPS: nil, 105 SupportsDualStack: nil, 106 }, 107 "ca-central-1": { 108 Name: nil, 109 DnsSuffix: nil, 110 DualStackDnsSuffix: nil, 111 SupportsFIPS: nil, 112 SupportsDualStack: nil, 113 }, 114 "eu-central-1": { 115 Name: nil, 116 DnsSuffix: nil, 117 DualStackDnsSuffix: nil, 118 SupportsFIPS: nil, 119 SupportsDualStack: nil, 120 }, 121 "eu-central-2": { 122 Name: nil, 123 DnsSuffix: nil, 124 DualStackDnsSuffix: nil, 125 SupportsFIPS: nil, 126 SupportsDualStack: nil, 127 }, 128 "eu-north-1": { 129 Name: nil, 130 DnsSuffix: nil, 131 DualStackDnsSuffix: nil, 132 SupportsFIPS: nil, 133 SupportsDualStack: nil, 134 }, 135 "eu-south-1": { 136 Name: nil, 137 DnsSuffix: nil, 138 DualStackDnsSuffix: nil, 139 SupportsFIPS: nil, 140 SupportsDualStack: nil, 141 }, 142 "eu-south-2": { 143 Name: nil, 144 DnsSuffix: nil, 145 DualStackDnsSuffix: nil, 146 SupportsFIPS: nil, 147 SupportsDualStack: nil, 148 }, 149 "eu-west-1": { 150 Name: nil, 151 DnsSuffix: nil, 152 DualStackDnsSuffix: nil, 153 SupportsFIPS: nil, 154 SupportsDualStack: nil, 155 }, 156 "eu-west-2": { 157 Name: nil, 158 DnsSuffix: nil, 159 DualStackDnsSuffix: nil, 160 SupportsFIPS: nil, 161 SupportsDualStack: nil, 162 }, 163 "eu-west-3": { 164 Name: nil, 165 DnsSuffix: nil, 166 DualStackDnsSuffix: nil, 167 SupportsFIPS: nil, 168 SupportsDualStack: nil, 169 }, 170 "il-central-1": { 171 Name: nil, 172 DnsSuffix: nil, 173 DualStackDnsSuffix: nil, 174 SupportsFIPS: nil, 175 SupportsDualStack: nil, 176 }, 177 "me-central-1": { 178 Name: nil, 179 DnsSuffix: nil, 180 DualStackDnsSuffix: nil, 181 SupportsFIPS: nil, 182 SupportsDualStack: nil, 183 }, 184 "me-south-1": { 185 Name: nil, 186 DnsSuffix: nil, 187 DualStackDnsSuffix: nil, 188 SupportsFIPS: nil, 189 SupportsDualStack: nil, 190 }, 191 "sa-east-1": { 192 Name: nil, 193 DnsSuffix: nil, 194 DualStackDnsSuffix: nil, 195 SupportsFIPS: nil, 196 SupportsDualStack: nil, 197 }, 198 "us-east-1": { 199 Name: nil, 200 DnsSuffix: nil, 201 DualStackDnsSuffix: nil, 202 SupportsFIPS: nil, 203 SupportsDualStack: nil, 204 }, 205 "us-east-2": { 206 Name: nil, 207 DnsSuffix: nil, 208 DualStackDnsSuffix: nil, 209 SupportsFIPS: nil, 210 SupportsDualStack: nil, 211 }, 212 "us-west-1": { 213 Name: nil, 214 DnsSuffix: nil, 215 DualStackDnsSuffix: nil, 216 SupportsFIPS: nil, 217 SupportsDualStack: nil, 218 }, 219 "us-west-2": { 220 Name: nil, 221 DnsSuffix: nil, 222 DualStackDnsSuffix: nil, 223 SupportsFIPS: nil, 224 SupportsDualStack: nil, 225 }, 226 }, 227 }, 228 { 229 ID: "aws-cn", 230 RegionRegex: "^cn\\-\\w+\\-\\d+$", 231 DefaultConfig: PartitionConfig{ 232 Name: "aws-cn", 233 DnsSuffix: "amazonaws.com.cn", 234 DualStackDnsSuffix: "api.amazonwebservices.com.cn", 235 SupportsFIPS: true, 236 SupportsDualStack: true, 237 }, 238 Regions: map[string]RegionOverrides{ 239 "aws-cn-global": { 240 Name: nil, 241 DnsSuffix: nil, 242 DualStackDnsSuffix: nil, 243 SupportsFIPS: nil, 244 SupportsDualStack: nil, 245 }, 246 "cn-north-1": { 247 Name: nil, 248 DnsSuffix: nil, 249 DualStackDnsSuffix: nil, 250 SupportsFIPS: nil, 251 SupportsDualStack: nil, 252 }, 253 "cn-northwest-1": { 254 Name: nil, 255 DnsSuffix: nil, 256 DualStackDnsSuffix: nil, 257 SupportsFIPS: nil, 258 SupportsDualStack: nil, 259 }, 260 }, 261 }, 262 { 263 ID: "aws-us-gov", 264 RegionRegex: "^us\\-gov\\-\\w+\\-\\d+$", 265 DefaultConfig: PartitionConfig{ 266 Name: "aws-us-gov", 267 DnsSuffix: "amazonaws.com", 268 DualStackDnsSuffix: "api.aws", 269 SupportsFIPS: true, 270 SupportsDualStack: true, 271 }, 272 Regions: map[string]RegionOverrides{ 273 "aws-us-gov-global": { 274 Name: nil, 275 DnsSuffix: nil, 276 DualStackDnsSuffix: nil, 277 SupportsFIPS: nil, 278 SupportsDualStack: nil, 279 }, 280 "us-gov-east-1": { 281 Name: nil, 282 DnsSuffix: nil, 283 DualStackDnsSuffix: nil, 284 SupportsFIPS: nil, 285 SupportsDualStack: nil, 286 }, 287 "us-gov-west-1": { 288 Name: nil, 289 DnsSuffix: nil, 290 DualStackDnsSuffix: nil, 291 SupportsFIPS: nil, 292 SupportsDualStack: nil, 293 }, 294 }, 295 }, 296 { 297 ID: "aws-iso", 298 RegionRegex: "^us\\-iso\\-\\w+\\-\\d+$", 299 DefaultConfig: PartitionConfig{ 300 Name: "aws-iso", 301 DnsSuffix: "c2s.ic.gov", 302 DualStackDnsSuffix: "c2s.ic.gov", 303 SupportsFIPS: true, 304 SupportsDualStack: false, 305 }, 306 Regions: map[string]RegionOverrides{ 307 "aws-iso-global": { 308 Name: nil, 309 DnsSuffix: nil, 310 DualStackDnsSuffix: nil, 311 SupportsFIPS: nil, 312 SupportsDualStack: nil, 313 }, 314 "us-iso-east-1": { 315 Name: nil, 316 DnsSuffix: nil, 317 DualStackDnsSuffix: nil, 318 SupportsFIPS: nil, 319 SupportsDualStack: nil, 320 }, 321 "us-iso-west-1": { 322 Name: nil, 323 DnsSuffix: nil, 324 DualStackDnsSuffix: nil, 325 SupportsFIPS: nil, 326 SupportsDualStack: nil, 327 }, 328 }, 329 }, 330 { 331 ID: "aws-iso-b", 332 RegionRegex: "^us\\-isob\\-\\w+\\-\\d+$", 333 DefaultConfig: PartitionConfig{ 334 Name: "aws-iso-b", 335 DnsSuffix: "sc2s.sgov.gov", 336 DualStackDnsSuffix: "sc2s.sgov.gov", 337 SupportsFIPS: true, 338 SupportsDualStack: false, 339 }, 340 Regions: map[string]RegionOverrides{ 341 "aws-iso-b-global": { 342 Name: nil, 343 DnsSuffix: nil, 344 DualStackDnsSuffix: nil, 345 SupportsFIPS: nil, 346 SupportsDualStack: nil, 347 }, 348 "us-isob-east-1": { 349 Name: nil, 350 DnsSuffix: nil, 351 DualStackDnsSuffix: nil, 352 SupportsFIPS: nil, 353 SupportsDualStack: nil, 354 }, 355 }, 356 }, 357 { 358 ID: "aws-iso-e", 359 RegionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$", 360 DefaultConfig: PartitionConfig{ 361 Name: "aws-iso-e", 362 DnsSuffix: "cloud.adc-e.uk", 363 DualStackDnsSuffix: "cloud.adc-e.uk", 364 SupportsFIPS: true, 365 SupportsDualStack: false, 366 }, 367 Regions: map[string]RegionOverrides{}, 368 }, 369 { 370 ID: "aws-iso-f", 371 RegionRegex: "^us\\-isof\\-\\w+\\-\\d+$", 372 DefaultConfig: PartitionConfig{ 373 Name: "aws-iso-f", 374 DnsSuffix: "csp.hci.ic.gov", 375 DualStackDnsSuffix: "csp.hci.ic.gov", 376 SupportsFIPS: true, 377 SupportsDualStack: false, 378 }, 379 Regions: map[string]RegionOverrides{}, 380 }, 381 }