Debian Codegraph @

crt/aws-c-sdkutils/tests/resources/sample_ruleset.json

raw symbols SCIP
1 {
2 "version": "1.0",
3 "serviceId": "example",
4 "parameters": {
5 "Region": {
6 "type": "string",
7 "builtIn": "AWS::Region",
8 "documentation": "The region to dispatch the request to"
9 }
10 },
11 "rules": [
12 {
13 "documentation": "rules for when region isSet",
14 "type": "tree",
15 "conditions": [
16 {"fn": "isSet", "argv": [{"ref": "Region"}]}
17 ],
18 "rules": [
19 {
20 "type": "endpoint",
21 "conditions": [
22 {"fn": "aws.partition", "argv": [{"ref": "Region"}], "assign": "partitionResult"}
23 ],
24 "endpoint": {"url": "https://example.{Region}.{partitionResult#dnsSuffix}"}
25 },
26 {
27 "type": "error",
28 "documentation": "invalid region value",
29 "conditions": [],
30 "error": "unable to determine endpoint for region: {Region}"
31 }
32 ]
33 },
34 {
35 "type": "endpoint",
36 "documentation": "the single service global endpoint",
37 "conditions": [],
38 "endpoint": {"url": "https://example.amazonaws.com"}
39 }
40 ]
41 }