All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.signer.endpoints.internal.Partitions.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.signer.endpoints.internal

import aws.sdk.kotlin.runtime.endpoint.functions.Partition
import aws.sdk.kotlin.runtime.endpoint.functions.PartitionConfig
import aws.sdk.kotlin.runtime.endpoint.functions.partition

internal fun partition(region: String?): PartitionConfig? {
    return partition(defaultPartitions, region)
}

private val defaultPartitions = listOf(
    Partition(
        id = "aws",
        regionRegex = Regex("^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$"),
        regions = mapOf(
            "af-south-1" to PartitionConfig(
            ),
            "ap-east-1" to PartitionConfig(
            ),
            "ap-northeast-1" to PartitionConfig(
            ),
            "ap-northeast-2" to PartitionConfig(
            ),
            "ap-northeast-3" to PartitionConfig(
            ),
            "ap-south-1" to PartitionConfig(
            ),
            "ap-south-2" to PartitionConfig(
            ),
            "ap-southeast-1" to PartitionConfig(
            ),
            "ap-southeast-2" to PartitionConfig(
            ),
            "ap-southeast-3" to PartitionConfig(
            ),
            "ap-southeast-4" to PartitionConfig(
            ),
            "ap-southeast-5" to PartitionConfig(
            ),
            "aws-global" to PartitionConfig(
            ),
            "ca-central-1" to PartitionConfig(
            ),
            "ca-west-1" to PartitionConfig(
            ),
            "eu-central-1" to PartitionConfig(
            ),
            "eu-central-2" to PartitionConfig(
            ),
            "eu-north-1" to PartitionConfig(
            ),
            "eu-south-1" to PartitionConfig(
            ),
            "eu-south-2" to PartitionConfig(
            ),
            "eu-west-1" to PartitionConfig(
            ),
            "eu-west-2" to PartitionConfig(
            ),
            "eu-west-3" to PartitionConfig(
            ),
            "il-central-1" to PartitionConfig(
            ),
            "me-central-1" to PartitionConfig(
            ),
            "me-south-1" to PartitionConfig(
            ),
            "sa-east-1" to PartitionConfig(
            ),
            "us-east-1" to PartitionConfig(
            ),
            "us-east-2" to PartitionConfig(
            ),
            "us-west-1" to PartitionConfig(
            ),
            "us-west-2" to PartitionConfig(
            ),
        ),
        baseConfig = PartitionConfig(
            name = "aws",
            dnsSuffix = "amazonaws.com",
            dualStackDnsSuffix = "api.aws",
            supportsFIPS = true,
            supportsDualStack = true,
            implicitGlobalRegion = "us-east-1",
        ),
    ),
    Partition(
        id = "aws-cn",
        regionRegex = Regex("^cn\\-\\w+\\-\\d+$"),
        regions = mapOf(
            "aws-cn-global" to PartitionConfig(
            ),
            "cn-north-1" to PartitionConfig(
            ),
            "cn-northwest-1" to PartitionConfig(
            ),
        ),
        baseConfig = PartitionConfig(
            name = "aws-cn",
            dnsSuffix = "amazonaws.com.cn",
            dualStackDnsSuffix = "api.amazonwebservices.com.cn",
            supportsFIPS = true,
            supportsDualStack = true,
            implicitGlobalRegion = "cn-northwest-1",
        ),
    ),
    Partition(
        id = "aws-us-gov",
        regionRegex = Regex("^us\\-gov\\-\\w+\\-\\d+$"),
        regions = mapOf(
            "aws-us-gov-global" to PartitionConfig(
            ),
            "us-gov-east-1" to PartitionConfig(
            ),
            "us-gov-west-1" to PartitionConfig(
            ),
        ),
        baseConfig = PartitionConfig(
            name = "aws-us-gov",
            dnsSuffix = "amazonaws.com",
            dualStackDnsSuffix = "api.aws",
            supportsFIPS = true,
            supportsDualStack = true,
            implicitGlobalRegion = "us-gov-west-1",
        ),
    ),
    Partition(
        id = "aws-iso",
        regionRegex = Regex("^us\\-iso\\-\\w+\\-\\d+$"),
        regions = mapOf(
            "aws-iso-global" to PartitionConfig(
            ),
            "us-iso-east-1" to PartitionConfig(
            ),
            "us-iso-west-1" to PartitionConfig(
            ),
        ),
        baseConfig = PartitionConfig(
            name = "aws-iso",
            dnsSuffix = "c2s.ic.gov",
            dualStackDnsSuffix = "c2s.ic.gov",
            supportsFIPS = true,
            supportsDualStack = false,
            implicitGlobalRegion = "us-iso-east-1",
        ),
    ),
    Partition(
        id = "aws-iso-b",
        regionRegex = Regex("^us\\-isob\\-\\w+\\-\\d+$"),
        regions = mapOf(
            "aws-iso-b-global" to PartitionConfig(
            ),
            "us-isob-east-1" to PartitionConfig(
            ),
        ),
        baseConfig = PartitionConfig(
            name = "aws-iso-b",
            dnsSuffix = "sc2s.sgov.gov",
            dualStackDnsSuffix = "sc2s.sgov.gov",
            supportsFIPS = true,
            supportsDualStack = false,
            implicitGlobalRegion = "us-isob-east-1",
        ),
    ),
    Partition(
        id = "aws-iso-e",
        regionRegex = Regex("^eu\\-isoe\\-\\w+\\-\\d+$"),
        regions = mapOf(
            "eu-isoe-west-1" to PartitionConfig(
            ),
        ),
        baseConfig = PartitionConfig(
            name = "aws-iso-e",
            dnsSuffix = "cloud.adc-e.uk",
            dualStackDnsSuffix = "cloud.adc-e.uk",
            supportsFIPS = true,
            supportsDualStack = false,
            implicitGlobalRegion = "eu-isoe-west-1",
        ),
    ),
    Partition(
        id = "aws-iso-f",
        regionRegex = Regex("^us\\-isof\\-\\w+\\-\\d+$"),
        regions = mapOf(
        ),
        baseConfig = PartitionConfig(
            name = "aws-iso-f",
            dnsSuffix = "csp.hci.ic.gov",
            dualStackDnsSuffix = "csp.hci.ic.gov",
            supportsFIPS = true,
            supportsDualStack = false,
            implicitGlobalRegion = "us-isof-south-1",
        ),
    ),
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy