Skip to content

Commit f21634e

Browse files
author
AWS
committed
AWS Resource Groups Update: Added a new QueryErrorCode RESOURCE_TYPE_NOT_SUPPORTED that is returned by the ListGroupResources operation if the group query contains unsupported resource types.
1 parent 30041a2 commit f21634e

File tree

3 files changed

+36
-29
lines changed

3 files changed

+36
-29
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Resource Groups",
4+
"contributor": "",
5+
"description": "Added a new QueryErrorCode RESOURCE_TYPE_NOT_SUPPORTED that is returned by the ListGroupResources operation if the group query contains unsupported resource types."
6+
}

services/resourcegroups/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -83,7 +82,8 @@
8382
},
8483
"type": "endpoint"
8584
}
86-
]
85+
],
86+
"type": "tree"
8787
},
8888
{
8989
"conditions": [
@@ -96,7 +96,6 @@
9696
]
9797
}
9898
],
99-
"type": "tree",
10099
"rules": [
101100
{
102101
"conditions": [
@@ -110,7 +109,6 @@
110109
"assign": "PartitionResult"
111110
}
112111
],
113-
"type": "tree",
114112
"rules": [
115113
{
116114
"conditions": [
@@ -133,7 +131,6 @@
133131
]
134132
}
135133
],
136-
"type": "tree",
137134
"rules": [
138135
{
139136
"conditions": [
@@ -168,7 +165,6 @@
168165
]
169166
}
170167
],
171-
"type": "tree",
172168
"rules": [
173169
{
174170
"conditions": [],
@@ -179,14 +175,16 @@
179175
},
180176
"type": "endpoint"
181177
}
182-
]
178+
],
179+
"type": "tree"
183180
},
184181
{
185182
"conditions": [],
186183
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187184
"type": "error"
188185
}
189-
]
186+
],
187+
"type": "tree"
190188
},
191189
{
192190
"conditions": [
@@ -200,14 +198,12 @@
200198
]
201199
}
202200
],
203-
"type": "tree",
204201
"rules": [
205202
{
206203
"conditions": [
207204
{
208205
"fn": "booleanEquals",
209206
"argv": [
210-
true,
211207
{
212208
"fn": "getAttr",
213209
"argv": [
@@ -216,18 +212,17 @@
216212
},
217213
"supportsFIPS"
218214
]
219-
}
215+
},
216+
true
220217
]
221218
}
222219
],
223-
"type": "tree",
224220
"rules": [
225221
{
226222
"conditions": [
227223
{
228224
"fn": "stringEquals",
229225
"argv": [
230-
"aws-us-gov",
231226
{
232227
"fn": "getAttr",
233228
"argv": [
@@ -236,7 +231,8 @@
236231
},
237232
"name"
238233
]
239-
}
234+
},
235+
"aws-us-gov"
240236
]
241237
}
242238
],
@@ -256,14 +252,16 @@
256252
},
257253
"type": "endpoint"
258254
}
259-
]
255+
],
256+
"type": "tree"
260257
},
261258
{
262259
"conditions": [],
263260
"error": "FIPS is enabled but this partition does not support FIPS",
264261
"type": "error"
265262
}
266-
]
263+
],
264+
"type": "tree"
267265
},
268266
{
269267
"conditions": [
@@ -277,7 +275,6 @@
277275
]
278276
}
279277
],
280-
"type": "tree",
281278
"rules": [
282279
{
283280
"conditions": [
@@ -297,7 +294,6 @@
297294
]
298295
}
299296
],
300-
"type": "tree",
301297
"rules": [
302298
{
303299
"conditions": [],
@@ -308,14 +304,16 @@
308304
},
309305
"type": "endpoint"
310306
}
311-
]
307+
],
308+
"type": "tree"
312309
},
313310
{
314311
"conditions": [],
315312
"error": "DualStack is enabled but this partition does not support DualStack",
316313
"type": "error"
317314
}
318-
]
315+
],
316+
"type": "tree"
319317
},
320318
{
321319
"conditions": [],
@@ -326,9 +324,11 @@
326324
},
327325
"type": "endpoint"
328326
}
329-
]
327+
],
328+
"type": "tree"
330329
}
331-
]
330+
],
331+
"type": "tree"
332332
},
333333
{
334334
"conditions": [],

services/resourcegroups/src/main/resources/codegen-resources/service-2.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
"members":{
369369
"Name":{
370370
"shape":"GroupName",
371-
"documentation":"<p>The name of the group, which is the identifier of the group in other operations. You can't change the name of a resource group after you create it. A resource group name can consist of letters, numbers, hyphens, periods, and underscores. The name cannot start with <code>AWS</code> or <code>aws</code>; these are reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon Web Services account.</p>"
371+
"documentation":"<p>The name of the group, which is the identifier of the group in other operations. You can't change the name of a resource group after you create it. A resource group name can consist of letters, numbers, hyphens, periods, and underscores. The name cannot start with <code>AWS</code>, <code>aws</code>, or any other possible capitalization; these are reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon Web Services account.</p>"
372372
},
373373
"Description":{
374374
"shape":"Description",
@@ -916,7 +916,7 @@
916916
},
917917
"QueryErrors":{
918918
"shape":"QueryErrorList",
919-
"documentation":"<p>A list of <code>QueryError</code> objects. Each error is an object that contains <code>ErrorCode</code> and <code>Message</code> structures. Possible values for <code>ErrorCode</code> are <code>CLOUDFORMATION_STACK_INACTIVE</code> and <code>CLOUDFORMATION_STACK_NOT_EXISTING</code>.</p>"
919+
"documentation":"<p>A list of <code>QueryError</code> objects. Each error contains an <code>ErrorCode</code> and <code>Message</code>. Possible values for ErrorCode are <code>CLOUDFORMATION_STACK_INACTIVE</code>, <code>CLOUDFORMATION_STACK_NOT_EXISTING</code>, <code>CLOUDFORMATION_STACK_UNASSUMABLE_ROLE</code> and <code>RESOURCE_TYPE_NOT_SUPPORTED</code>. </p>"
920920
}
921921
}
922922
},
@@ -925,7 +925,7 @@
925925
"members":{
926926
"Filters":{
927927
"shape":"GroupFilterList",
928-
"documentation":"<p>Filters, formatted as <a>GroupFilter</a> objects, that you want to apply to a <code>ListGroups</code> operation.</p> <ul> <li> <p> <code>resource-type</code> - Filter the results to include only those of the specified resource types. Specify up to five resource types in the format <code>AWS::<i>ServiceCode</i>::<i>ResourceType</i> </code>. For example, <code>AWS::EC2::Instance</code>, or <code>AWS::S3::Bucket</code>.</p> </li> <li> <p> <code>configuration-type</code> - Filter the results to include only those groups that have the specified configuration types attached. The current supported values are:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p> </li> <li> <p> <code>AWS::EC2::HostManagement</code> </p> </li> </ul> </li> </ul>"
928+
"documentation":"<p>Filters, formatted as <a>GroupFilter</a> objects, that you want to apply to a <code>ListGroups</code> operation.</p> <ul> <li> <p> <code>resource-type</code> - Filter the results to include only those resource groups that have the specified resource type in their <code>ResourceTypeFilter</code>. For example, <code>AWS::EC2::Instance</code> would return any resource group with a <code>ResourceTypeFilter</code> that includes <code>AWS::EC2::Instance</code>.</p> </li> <li> <p> <code>configuration-type</code> - Filter the results to include only those groups that have the specified configuration types attached. The current supported values are:</p> <ul> <li> <p> <code>AWS::AppRegistry::Application</code> </p> </li> <li> <p> <code>AWS::AppRegistry::ApplicationResourceGroups</code> </p> </li> <li> <p> <code>AWS::CloudFormation::Stack</code> </p> </li> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p> </li> <li> <p> <code>AWS::EC2::HostManagement</code> </p> </li> <li> <p> <code>AWS::NetworkFirewall::RuleGroup</code> </p> </li> </ul> </li> </ul>"
929929
},
930930
"MaxResults":{
931931
"shape":"MaxResults",
@@ -1035,17 +1035,18 @@
10351035
},
10361036
"Message":{
10371037
"shape":"QueryErrorMessage",
1038-
"documentation":"<p>A message that explains the <code>ErrorCode</code> value. Messages might state that the specified CloudFront stack does not exist (or no longer exists). For <code>CLOUDFORMATION_STACK_INACTIVE</code>, the message typically states that the CloudFront stack has a status that is not (or no longer) active, such as <code>CREATE_FAILED</code>.</p>"
1038+
"documentation":"<p>A message that explains the <code>ErrorCode</code>. </p>"
10391039
}
10401040
},
1041-
"documentation":"<p>A two-part error structure that can occur in <code>ListGroupResources</code> or <code>SearchResources</code> operations on CloudFront stack-based queries. The error occurs if the CloudFront stack on which the query is based either does not exist, or has a status that renders the stack inactive. A <code>QueryError</code> occurrence does not necessarily mean that Resource Groups could not complete the operation, but the resulting group might have no member resources.</p>"
1041+
"documentation":"<p>A two-part error structure that can occur in <code>ListGroupResources</code> or <code>SearchResources</code>. </p>"
10421042
},
10431043
"QueryErrorCode":{
10441044
"type":"string",
10451045
"enum":[
10461046
"CLOUDFORMATION_STACK_INACTIVE",
10471047
"CLOUDFORMATION_STACK_NOT_EXISTING",
1048-
"CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
1048+
"CLOUDFORMATION_STACK_UNASSUMABLE_ROLE",
1049+
"RESOURCE_TYPE_NOT_SUPPORTED"
10491050
]
10501051
},
10511052
"QueryErrorList":{
@@ -1196,7 +1197,7 @@
11961197
},
11971198
"QueryErrors":{
11981199
"shape":"QueryErrorList",
1199-
"documentation":"<p>A list of <code>QueryError</code> objects. Each error is an object that contains <code>ErrorCode</code> and <code>Message</code> structures.</p> <p>Possible values for <code>ErrorCode</code>:</p> <ul> <li> <p> <code>CLOUDFORMATION_STACK_INACTIVE</code> </p> </li> <li> <p> <code>CLOUDFORMATION_STACK_NOT_EXISTING</code> </p> </li> </ul>"
1200+
"documentation":"<p>A list of <code>QueryError</code> objects. Each error contains an <code>ErrorCode</code> and <code>Message</code>.</p> <p>Possible values for <code>ErrorCode</code>:</p> <ul> <li> <p> <code>CLOUDFORMATION_STACK_INACTIVE</code> </p> </li> <li> <p> <code>CLOUDFORMATION_STACK_NOT_EXISTING</code> </p> </li> <li> <p> <code>CLOUDFORMATION_STACK_UNASSUMABLE_ROLE </code> </p> </li> </ul>"
12001201
}
12011202
}
12021203
},

0 commit comments

Comments
 (0)