/
endpoints.ts
147 lines (144 loc) · 3.42 KB
/
endpoints.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// smithy-typescript generated code
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";
const regionHash: RegionHash = {
"us-east-1": {
variants: [
{
hostname: "identity-chime-fips.us-east-1.amazonaws.com",
tags: ["fips"],
},
],
},
};
const partitionHash: PartitionHash = {
aws: {
regions: [
"af-south-1",
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ap-southeast-3",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-south-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"me-central-1",
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-1-fips",
"us-east-2",
"us-west-1",
"us-west-2",
],
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
variants: [
{
hostname: "identity-chime.{region}.amazonaws.com",
tags: [],
},
{
hostname: "identity-chime-fips.{region}.amazonaws.com",
tags: ["fips"],
},
{
hostname: "identity-chime-fips.{region}.api.aws",
tags: ["dualstack", "fips"],
},
{
hostname: "identity-chime.{region}.api.aws",
tags: ["dualstack"],
},
],
},
"aws-cn": {
regions: ["cn-north-1", "cn-northwest-1"],
regionRegex: "^cn\\-\\w+\\-\\d+$",
variants: [
{
hostname: "identity-chime.{region}.amazonaws.com.cn",
tags: [],
},
{
hostname: "identity-chime-fips.{region}.amazonaws.com.cn",
tags: ["fips"],
},
{
hostname: "identity-chime-fips.{region}.api.amazonwebservices.com.cn",
tags: ["dualstack", "fips"],
},
{
hostname: "identity-chime.{region}.api.amazonwebservices.com.cn",
tags: ["dualstack"],
},
],
},
"aws-iso": {
regions: ["us-iso-east-1", "us-iso-west-1"],
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
variants: [
{
hostname: "identity-chime.{region}.c2s.ic.gov",
tags: [],
},
{
hostname: "identity-chime-fips.{region}.c2s.ic.gov",
tags: ["fips"],
},
],
},
"aws-iso-b": {
regions: ["us-isob-east-1"],
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
variants: [
{
hostname: "identity-chime.{region}.sc2s.sgov.gov",
tags: [],
},
{
hostname: "identity-chime-fips.{region}.sc2s.sgov.gov",
tags: ["fips"],
},
],
},
"aws-us-gov": {
regions: ["us-gov-east-1", "us-gov-west-1"],
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
variants: [
{
hostname: "identity-chime.{region}.amazonaws.com",
tags: [],
},
{
hostname: "identity-chime-fips.{region}.amazonaws.com",
tags: ["fips"],
},
{
hostname: "identity-chime-fips.{region}.api.aws",
tags: ["dualstack", "fips"],
},
{
hostname: "identity-chime.{region}.api.aws",
tags: ["dualstack"],
},
],
},
};
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "chime",
regionHash,
partitionHash,
});