Debian Codegraph @

crt/aws-c-sdkutils/tests/resources/valid-rules/valid-hostlabel.json

raw symbols SCIP
1 {
2 "parameters": {
3 "Region": {
4 "type": "string",
5 "builtIn": "AWS::Region",
6 "required": true,
7 "documentation": "The region to dispatch this request, eg. `us-east-1`."
8 }
9 },
10 "rules": [
11 {
12 "documentation": "Template the region into the URI when region is set",
13 "conditions": [
14 {
15 "fn": "isValidHostLabel",
16 "argv": [
17 {
18 "ref": "Region"
19 },
20 false
21 ]
22 }
23 ],
24 "endpoint": {
25 "url": "https://{Region}.amazonaws.com"
26 },
27 "type": "endpoint"
28 },
29 {
30 "documentation": "Template the region into the URI when region is set",
31 "conditions": [
32 {
33 "fn": "isValidHostLabel",
34 "argv": [
35 {
36 "ref": "Region"
37 },
38 true
39 ]
40 }
41 ],
42 "endpoint": {
43 "url": "https://{Region}-subdomains.amazonaws.com"
44 },
45 "type": "endpoint"
46 },
47 {
48 "documentation": "Region was not a valid host label",
49 "conditions": [],
50 "error": "Invalid hostlabel",
51 "type": "error"
52 }
53 ],
54 "version": "1.3"
55 }