UNPKG

@aws-amplify/core

Version:
1 lines 2.02 kB
{"version":3,"file":"partitions.mjs","sources":["../../../../src/clients/endpoints/partitions.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Default partition for AWS services. This is used when the region is not provided or the region is not recognized.\n *\n * @internal\n */\nexport const defaultPartition = {\n id: 'aws',\n outputs: {\n dnsSuffix: 'amazonaws.com',\n },\n regionRegex: '^(us|eu|ap|sa|ca|me|af)\\\\-\\\\w+\\\\-\\\\d+$',\n regions: ['aws-global'],\n};\n/**\n * This data is adapted from the partition file from AWS SDK shared utilities but remove some contents for bundle size\n * concern. Information removed are `dualStackDnsSuffix`, `supportDualStack`, `supportFIPS`, restricted partitions, and\n * list of regions for each partition other than global regions.\n *\n * * Ref: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints\n * * Ref: https://github.com/aws/aws-sdk-js-v3/blob/0201baef03c2379f1f6f7150b9d401d4b230d488/packages/util-endpoints/src/lib/aws/partitions.json#L1\n *\n * @internal\n */\nexport const partitionsInfo = {\n partitions: [\n defaultPartition,\n {\n id: 'aws-cn',\n outputs: {\n dnsSuffix: 'amazonaws.com.cn',\n },\n regionRegex: '^cn\\\\-\\\\w+\\\\-\\\\d+$',\n regions: ['aws-cn-global'],\n },\n ],\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,gBAAgB,GAAG;AAChC,IAAI,EAAE,EAAE,KAAK;AACb,IAAI,OAAO,EAAE;AACb,QAAQ,SAAS,EAAE,eAAe;AAClC,KAAK;AACL,IAAI,WAAW,EAAE,wCAAwC;AACzD,IAAI,OAAO,EAAE,CAAC,YAAY,CAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,cAAc,GAAG;AAC9B,IAAI,UAAU,EAAE;AAChB,QAAQ,gBAAgB;AACxB,QAAQ;AACR,YAAY,EAAE,EAAE,QAAQ;AACxB,YAAY,OAAO,EAAE;AACrB,gBAAgB,SAAS,EAAE,kBAAkB;AAC7C,aAAa;AACb,YAAY,WAAW,EAAE,oBAAoB;AAC7C,YAAY,OAAO,EAAE,CAAC,eAAe,CAAC;AACtC,SAAS;AACT,KAAK;AACL;;;;"}