Skip to content

Commit 5e97e6a

Browse files
This release updates the Amazon CloudWatch Internet Monitor API domain name.
1 parent 45cc410 commit 5e97e6a

File tree

7 files changed

+582
-63
lines changed

7 files changed

+582
-63
lines changed

generator/ServiceModels/internetmonitor/internetmonitor-2021-06-03.endpoint-rule-set.json

Lines changed: 115 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
"documentation": "The AWS region used to dispatch the request.",
88
"type": "String"
99
},
10+
"UseDualStack": {
11+
"builtIn": "AWS::UseDualStack",
12+
"required": true,
13+
"default": false,
14+
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
15+
"type": "Boolean"
16+
},
1017
"UseFIPS": {
1118
"builtIn": "AWS::UseFIPS",
1219
"required": true,
@@ -50,6 +57,21 @@
5057
"error": "Invalid Configuration: FIPS and custom endpoint are not supported",
5158
"type": "error"
5259
},
60+
{
61+
"conditions": [
62+
{
63+
"fn": "booleanEquals",
64+
"argv": [
65+
{
66+
"ref": "UseDualStack"
67+
},
68+
true
69+
]
70+
}
71+
],
72+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
73+
"type": "error"
74+
},
5375
{
5476
"conditions": [],
5577
"endpoint": {
@@ -95,16 +117,19 @@
95117
{
96118
"fn": "booleanEquals",
97119
"argv": [
98-
true,
99120
{
100-
"fn": "getAttr",
101-
"argv": [
102-
{
103-
"ref": "PartitionResult"
104-
},
105-
"supportsDualStack"
106-
]
107-
}
121+
"ref": "UseFIPS"
122+
},
123+
true
124+
]
125+
},
126+
{
127+
"fn": "booleanEquals",
128+
"argv": [
129+
{
130+
"ref": "UseDualStack"
131+
},
132+
true
108133
]
109134
}
110135
],
@@ -115,61 +140,51 @@
115140
{
116141
"fn": "booleanEquals",
117142
"argv": [
143+
true,
118144
{
119-
"ref": "UseFIPS"
120-
},
121-
true
145+
"fn": "getAttr",
146+
"argv": [
147+
{
148+
"ref": "PartitionResult"
149+
},
150+
"supportsFIPS"
151+
]
152+
}
122153
]
123-
}
124-
],
125-
"type": "tree",
126-
"rules": [
154+
},
127155
{
128-
"conditions": [
156+
"fn": "booleanEquals",
157+
"argv": [
158+
true,
129159
{
130-
"fn": "booleanEquals",
160+
"fn": "getAttr",
131161
"argv": [
132-
true,
133162
{
134-
"fn": "getAttr",
135-
"argv": [
136-
{
137-
"ref": "PartitionResult"
138-
},
139-
"supportsFIPS"
140-
]
141-
}
163+
"ref": "PartitionResult"
164+
},
165+
"supportsDualStack"
142166
]
143167
}
144-
],
145-
"type": "tree",
146-
"rules": [
147-
{
148-
"conditions": [],
149-
"endpoint": {
150-
"url": "https://internetmonitor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
151-
"properties": {},
152-
"headers": {}
153-
},
154-
"type": "endpoint"
155-
}
156168
]
157-
},
169+
}
170+
],
171+
"type": "tree",
172+
"rules": [
158173
{
159174
"conditions": [],
160-
"error": "FIPS is enabled but this partition does not support FIPS",
161-
"type": "error"
175+
"endpoint": {
176+
"url": "https://internetmonitor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
177+
"properties": {},
178+
"headers": {}
179+
},
180+
"type": "endpoint"
162181
}
163182
]
164183
},
165184
{
166185
"conditions": [],
167-
"endpoint": {
168-
"url": "https://internetmonitor.{Region}.{PartitionResult#dualStackDnsSuffix}",
169-
"properties": {},
170-
"headers": {}
171-
},
172-
"type": "endpoint"
186+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187+
"type": "error"
173188
}
174189
]
175190
},
@@ -225,6 +240,58 @@
225240
}
226241
]
227242
},
243+
{
244+
"conditions": [
245+
{
246+
"fn": "booleanEquals",
247+
"argv": [
248+
{
249+
"ref": "UseDualStack"
250+
},
251+
true
252+
]
253+
}
254+
],
255+
"type": "tree",
256+
"rules": [
257+
{
258+
"conditions": [
259+
{
260+
"fn": "booleanEquals",
261+
"argv": [
262+
true,
263+
{
264+
"fn": "getAttr",
265+
"argv": [
266+
{
267+
"ref": "PartitionResult"
268+
},
269+
"supportsDualStack"
270+
]
271+
}
272+
]
273+
}
274+
],
275+
"type": "tree",
276+
"rules": [
277+
{
278+
"conditions": [],
279+
"endpoint": {
280+
"url": "https://internetmonitor.{Region}.{PartitionResult#dualStackDnsSuffix}",
281+
"properties": {},
282+
"headers": {}
283+
},
284+
"type": "endpoint"
285+
}
286+
]
287+
},
288+
{
289+
"conditions": [],
290+
"error": "DualStack is enabled but this partition does not support DualStack",
291+
"type": "error"
292+
}
293+
]
294+
},
228295
{
229296
"conditions": [],
230297
"endpoint": {

0 commit comments

Comments
 (0)