Debian Codegraph @

crt/aws-c-sdkutils/tests/resources/test-cases/partition-fn.json

raw symbols SCIP
1 {
2 "version": "1.0",
3 "testCases": [
4 {
5 "documentation": "standard AWS region",
6 "params": {
7 "Region": "us-east-2"
8 },
9 "expect": {
10 "endpoint": {
11 "url": "https://aws-partition.us-east-2.amazonaws.com",
12 "properties": {
13 "authSchemes": [
14 {
15 "name": "sigv4",
16 "signingName": "serviceName",
17 "signingRegion": "us-east-2"
18 }
19 ],
20 "meta": {
21 "baseSuffix": "amazonaws.com",
22 "dualStackSuffix": "api.aws"
23 }
24 }
25 }
26 }
27 },
28 {
29 "documentation": "AWS region that doesn't match any regexes",
30 "params": {
31 "Region": "mars-global"
32 },
33 "expect": {
34 "endpoint": {
35 "url": "https://aws-partition.mars-global.amazonaws.com",
36 "properties": {
37 "authSchemes": [
38 {
39 "name": "sigv4",
40 "signingName": "serviceName",
41 "signingRegion": "mars-global"
42 }
43 ],
44 "meta": {
45 "baseSuffix": "amazonaws.com",
46 "dualStackSuffix": "api.aws"
47 }
48 }
49 }
50 }
51 },
52 {
53 "documentation": "AWS region that matches the AWS regex",
54 "params": {
55 "Region": "us-east-10"
56 },
57 "expect": {
58 "endpoint": {
59 "url": "https://aws-partition.us-east-10.amazonaws.com",
60 "properties": {
61 "authSchemes": [
62 {
63 "name": "sigv4",
64 "signingName": "serviceName",
65 "signingRegion": "us-east-10"
66 }
67 ],
68 "meta": {
69 "baseSuffix": "amazonaws.com",
70 "dualStackSuffix": "api.aws"
71 }
72 }
73 }
74 }
75 },
76 {
77 "documentation": "CN region that matches the AWS regex",
78 "params": {
79 "Region": "cn-north-5"
80 },
81 "expect": {
82 "endpoint": {
83 "url": "https://aws-cn.cn-north-5.amazonaws.com.cn",
84 "properties": {
85 "authSchemes": [
86 {
87 "name": "sigv4",
88 "signingName": "serviceName",
89 "signingRegion": "cn-north-5"
90 }
91 ],
92 "meta": {
93 "baseSuffix": "amazonaws.com.cn",
94 "dualStackSuffix": "api.amazonwebservices.com.cn"
95 }
96 }
97 }
98 }
99 },
100 {
101 "documentation": "CN region that is in the explicit list",
102 "params": {
103 "Region": "aws-cn-global"
104 },
105 "expect": {
106 "endpoint": {
107 "url": "https://aws-cn.aws-cn-global.amazonaws.com.cn",
108 "properties": {
109 "authSchemes": [
110 {
111 "name": "sigv4",
112 "signingName": "serviceName",
113 "signingRegion": "aws-cn-global"
114 }
115 ],
116 "meta": {
117 "baseSuffix": "amazonaws.com.cn",
118 "dualStackSuffix": "api.amazonwebservices.com.cn"
119 }
120 }
121 }
122 }
123 }
124 ]
125 }