1{
2  "version":"2.0",
3  "metadata":{
4    "apiVersion":"2017-11-27",
5    "endpointPrefix":"resource-groups",
6    "protocol":"rest-json",
7    "serviceAbbreviation":"Resource Groups",
8    "serviceFullName":"AWS Resource Groups",
9    "serviceId":"Resource Groups",
10    "signatureVersion":"v4",
11    "signingName":"resource-groups",
12    "uid":"resource-groups-2017-11-27"
13  },
14  "operations":{
15    "CreateGroup":{
16      "name":"CreateGroup",
17      "http":{
18        "method":"POST",
19        "requestUri":"/groups"
20      },
21      "input":{"shape":"CreateGroupInput"},
22      "output":{"shape":"CreateGroupOutput"},
23      "errors":[
24        {"shape":"BadRequestException"},
25        {"shape":"ForbiddenException"},
26        {"shape":"MethodNotAllowedException"},
27        {"shape":"TooManyRequestsException"},
28        {"shape":"InternalServerErrorException"}
29      ],
30      "documentation":"<p>Creates a resource group with the specified name and description. You can optionally include either a resource query or a service configuration. For more information about constructing a resource query, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/getting_started-query.html\">Build queries and groups in Resource Groups</a> in the <i>Resource Groups User Guide</i>. For more information about service-linked groups and service configurations, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for Resource Groups</a>.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:CreateGroup</code> </p> </li> </ul>"
31    },
32    "DeleteGroup":{
33      "name":"DeleteGroup",
34      "http":{
35        "method":"POST",
36        "requestUri":"/delete-group"
37      },
38      "input":{"shape":"DeleteGroupInput"},
39      "output":{"shape":"DeleteGroupOutput"},
40      "errors":[
41        {"shape":"BadRequestException"},
42        {"shape":"ForbiddenException"},
43        {"shape":"NotFoundException"},
44        {"shape":"MethodNotAllowedException"},
45        {"shape":"TooManyRequestsException"},
46        {"shape":"InternalServerErrorException"}
47      ],
48      "documentation":"<p>Deletes the specified resource group. Deleting a resource group does not delete any resources that are members of the group; it only deletes the group structure.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:DeleteGroup</code> </p> </li> </ul>"
49    },
50    "GetAccountSettings":{
51      "name":"GetAccountSettings",
52      "http":{
53        "method":"POST",
54        "requestUri":"/get-account-settings"
55      },
56      "output":{"shape":"GetAccountSettingsOutput"},
57      "errors":[
58        {"shape":"BadRequestException"},
59        {"shape":"ForbiddenException"},
60        {"shape":"MethodNotAllowedException"},
61        {"shape":"TooManyRequestsException"},
62        {"shape":"InternalServerErrorException"}
63      ],
64      "documentation":"<p>Retrieves the current status of optional features in Resource Groups.</p>"
65    },
66    "GetGroup":{
67      "name":"GetGroup",
68      "http":{
69        "method":"POST",
70        "requestUri":"/get-group"
71      },
72      "input":{"shape":"GetGroupInput"},
73      "output":{"shape":"GetGroupOutput"},
74      "errors":[
75        {"shape":"BadRequestException"},
76        {"shape":"ForbiddenException"},
77        {"shape":"NotFoundException"},
78        {"shape":"MethodNotAllowedException"},
79        {"shape":"TooManyRequestsException"},
80        {"shape":"InternalServerErrorException"}
81      ],
82      "documentation":"<p>Returns information about a specified resource group.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:GetGroup</code> </p> </li> </ul>"
83    },
84    "GetGroupConfiguration":{
85      "name":"GetGroupConfiguration",
86      "http":{
87        "method":"POST",
88        "requestUri":"/get-group-configuration"
89      },
90      "input":{"shape":"GetGroupConfigurationInput"},
91      "output":{"shape":"GetGroupConfigurationOutput"},
92      "errors":[
93        {"shape":"BadRequestException"},
94        {"shape":"ForbiddenException"},
95        {"shape":"NotFoundException"},
96        {"shape":"MethodNotAllowedException"},
97        {"shape":"TooManyRequestsException"},
98        {"shape":"InternalServerErrorException"}
99      ],
100      "documentation":"<p>Retrieves the service configuration associated with the specified resource group. For details about the service configuration syntax, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for Resource Groups</a>.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:GetGroupConfiguration</code> </p> </li> </ul>"
101    },
102    "GetGroupQuery":{
103      "name":"GetGroupQuery",
104      "http":{
105        "method":"POST",
106        "requestUri":"/get-group-query"
107      },
108      "input":{"shape":"GetGroupQueryInput"},
109      "output":{"shape":"GetGroupQueryOutput"},
110      "errors":[
111        {"shape":"BadRequestException"},
112        {"shape":"ForbiddenException"},
113        {"shape":"NotFoundException"},
114        {"shape":"MethodNotAllowedException"},
115        {"shape":"TooManyRequestsException"},
116        {"shape":"InternalServerErrorException"}
117      ],
118      "documentation":"<p>Retrieves the resource query associated with the specified resource group. For more information about resource queries, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag\">Create a tag-based group in Resource Groups</a>.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:GetGroupQuery</code> </p> </li> </ul>"
119    },
120    "GetTags":{
121      "name":"GetTags",
122      "http":{
123        "method":"GET",
124        "requestUri":"/resources/{Arn}/tags"
125      },
126      "input":{"shape":"GetTagsInput"},
127      "output":{"shape":"GetTagsOutput"},
128      "errors":[
129        {"shape":"BadRequestException"},
130        {"shape":"ForbiddenException"},
131        {"shape":"NotFoundException"},
132        {"shape":"MethodNotAllowedException"},
133        {"shape":"TooManyRequestsException"},
134        {"shape":"InternalServerErrorException"}
135      ],
136      "documentation":"<p>Returns a list of tags that are associated with a resource group, specified by an ARN.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:GetTags</code> </p> </li> </ul>"
137    },
138    "GroupResources":{
139      "name":"GroupResources",
140      "http":{
141        "method":"POST",
142        "requestUri":"/group-resources"
143      },
144      "input":{"shape":"GroupResourcesInput"},
145      "output":{"shape":"GroupResourcesOutput"},
146      "errors":[
147        {"shape":"BadRequestException"},
148        {"shape":"ForbiddenException"},
149        {"shape":"NotFoundException"},
150        {"shape":"MethodNotAllowedException"},
151        {"shape":"TooManyRequestsException"},
152        {"shape":"InternalServerErrorException"}
153      ],
154      "documentation":"<p>Adds the specified resources to the specified group.</p> <important> <p>You can use this operation with only resource groups that are configured with the following types:</p> <ul> <li> <p> <code>AWS::EC2::HostManagement</code> </p> </li> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p> </li> </ul> <p>Other resource group type and resource types aren't currently supported by this operation.</p> </important> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:GroupResources</code> </p> </li> </ul>"
155    },
156    "ListGroupResources":{
157      "name":"ListGroupResources",
158      "http":{
159        "method":"POST",
160        "requestUri":"/list-group-resources"
161      },
162      "input":{"shape":"ListGroupResourcesInput"},
163      "output":{"shape":"ListGroupResourcesOutput"},
164      "errors":[
165        {"shape":"UnauthorizedException"},
166        {"shape":"BadRequestException"},
167        {"shape":"ForbiddenException"},
168        {"shape":"NotFoundException"},
169        {"shape":"MethodNotAllowedException"},
170        {"shape":"TooManyRequestsException"},
171        {"shape":"InternalServerErrorException"}
172      ],
173      "documentation":"<p>Returns a list of ARNs of the resources that are members of a specified resource group.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:ListGroupResources</code> </p> </li> <li> <p> <code>cloudformation:DescribeStacks</code> </p> </li> <li> <p> <code>cloudformation:ListStackResources</code> </p> </li> <li> <p> <code>tag:GetResources</code> </p> </li> </ul>"
174    },
175    "ListGroups":{
176      "name":"ListGroups",
177      "http":{
178        "method":"POST",
179        "requestUri":"/groups-list"
180      },
181      "input":{"shape":"ListGroupsInput"},
182      "output":{"shape":"ListGroupsOutput"},
183      "errors":[
184        {"shape":"BadRequestException"},
185        {"shape":"ForbiddenException"},
186        {"shape":"MethodNotAllowedException"},
187        {"shape":"TooManyRequestsException"},
188        {"shape":"InternalServerErrorException"}
189      ],
190      "documentation":"<p>Returns a list of existing Resource Groups in your account.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:ListGroups</code> </p> </li> </ul>"
191    },
192    "PutGroupConfiguration":{
193      "name":"PutGroupConfiguration",
194      "http":{
195        "method":"POST",
196        "requestUri":"/put-group-configuration",
197        "responseCode":202
198      },
199      "input":{"shape":"PutGroupConfigurationInput"},
200      "output":{"shape":"PutGroupConfigurationOutput"},
201      "errors":[
202        {"shape":"BadRequestException"},
203        {"shape":"ForbiddenException"},
204        {"shape":"NotFoundException"},
205        {"shape":"MethodNotAllowedException"},
206        {"shape":"TooManyRequestsException"},
207        {"shape":"InternalServerErrorException"}
208      ],
209      "documentation":"<p>Attaches a service configuration to the specified group. This occurs asynchronously, and can take time to complete. You can use <a>GetGroupConfiguration</a> to check the status of the update.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:PutGroupConfiguration</code> </p> </li> </ul>"
210    },
211    "SearchResources":{
212      "name":"SearchResources",
213      "http":{
214        "method":"POST",
215        "requestUri":"/resources/search"
216      },
217      "input":{"shape":"SearchResourcesInput"},
218      "output":{"shape":"SearchResourcesOutput"},
219      "errors":[
220        {"shape":"UnauthorizedException"},
221        {"shape":"BadRequestException"},
222        {"shape":"ForbiddenException"},
223        {"shape":"MethodNotAllowedException"},
224        {"shape":"TooManyRequestsException"},
225        {"shape":"InternalServerErrorException"}
226      ],
227      "documentation":"<p>Returns a list of Amazon Web Services resource identifiers that matches the specified query. The query uses the same format as a resource query in a <a>CreateGroup</a> or <a>UpdateGroupQuery</a> operation.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:SearchResources</code> </p> </li> <li> <p> <code>cloudformation:DescribeStacks</code> </p> </li> <li> <p> <code>cloudformation:ListStackResources</code> </p> </li> <li> <p> <code>tag:GetResources</code> </p> </li> </ul>"
228    },
229    "Tag":{
230      "name":"Tag",
231      "http":{
232        "method":"PUT",
233        "requestUri":"/resources/{Arn}/tags"
234      },
235      "input":{"shape":"TagInput"},
236      "output":{"shape":"TagOutput"},
237      "errors":[
238        {"shape":"BadRequestException"},
239        {"shape":"ForbiddenException"},
240        {"shape":"NotFoundException"},
241        {"shape":"MethodNotAllowedException"},
242        {"shape":"TooManyRequestsException"},
243        {"shape":"InternalServerErrorException"}
244      ],
245      "documentation":"<p>Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.</p> <important> <p>Do not store personally identifiable information (PII) or other confidential or sensitive information in tags. We use tags to provide you with billing and administration services. Tags are not intended to be used for private or sensitive data.</p> </important> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:Tag</code> </p> </li> </ul>"
246    },
247    "UngroupResources":{
248      "name":"UngroupResources",
249      "http":{
250        "method":"POST",
251        "requestUri":"/ungroup-resources"
252      },
253      "input":{"shape":"UngroupResourcesInput"},
254      "output":{"shape":"UngroupResourcesOutput"},
255      "errors":[
256        {"shape":"BadRequestException"},
257        {"shape":"ForbiddenException"},
258        {"shape":"NotFoundException"},
259        {"shape":"MethodNotAllowedException"},
260        {"shape":"TooManyRequestsException"},
261        {"shape":"InternalServerErrorException"}
262      ],
263      "documentation":"<p>Removes the specified resources from the specified group. This operation works only with static groups that you populated using the <a>GroupResources</a> operation. It doesn't work with any resource groups that are automatically populated by tag-based or CloudFormation stack-based queries.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:UngroupResources</code> </p> </li> </ul>"
264    },
265    "Untag":{
266      "name":"Untag",
267      "http":{
268        "method":"PATCH",
269        "requestUri":"/resources/{Arn}/tags"
270      },
271      "input":{"shape":"UntagInput"},
272      "output":{"shape":"UntagOutput"},
273      "errors":[
274        {"shape":"BadRequestException"},
275        {"shape":"ForbiddenException"},
276        {"shape":"NotFoundException"},
277        {"shape":"MethodNotAllowedException"},
278        {"shape":"TooManyRequestsException"},
279        {"shape":"InternalServerErrorException"}
280      ],
281      "documentation":"<p>Deletes tags from a specified resource group.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:Untag</code> </p> </li> </ul>"
282    },
283    "UpdateAccountSettings":{
284      "name":"UpdateAccountSettings",
285      "http":{
286        "method":"POST",
287        "requestUri":"/update-account-settings"
288      },
289      "input":{"shape":"UpdateAccountSettingsInput"},
290      "output":{"shape":"UpdateAccountSettingsOutput"},
291      "errors":[
292        {"shape":"BadRequestException"},
293        {"shape":"ForbiddenException"},
294        {"shape":"MethodNotAllowedException"},
295        {"shape":"TooManyRequestsException"},
296        {"shape":"InternalServerErrorException"}
297      ],
298      "documentation":"<p>Turns on or turns off optional features in Resource Groups.</p> <p>The preceding example shows that the request to turn on group lifecycle events is <code>IN_PROGRESS</code>. You can call the <a>GetAccountSettings</a> operation to check for completion by looking for <code>GroupLifecycleEventsStatus</code> to change to <code>ACTIVE</code>.</p>"
299    },
300    "UpdateGroup":{
301      "name":"UpdateGroup",
302      "http":{
303        "method":"POST",
304        "requestUri":"/update-group"
305      },
306      "input":{"shape":"UpdateGroupInput"},
307      "output":{"shape":"UpdateGroupOutput"},
308      "errors":[
309        {"shape":"BadRequestException"},
310        {"shape":"ForbiddenException"},
311        {"shape":"NotFoundException"},
312        {"shape":"MethodNotAllowedException"},
313        {"shape":"TooManyRequestsException"},
314        {"shape":"InternalServerErrorException"}
315      ],
316      "documentation":"<p>Updates the description for an existing group. You cannot update the name of a resource group.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:UpdateGroup</code> </p> </li> </ul>"
317    },
318    "UpdateGroupQuery":{
319      "name":"UpdateGroupQuery",
320      "http":{
321        "method":"POST",
322        "requestUri":"/update-group-query"
323      },
324      "input":{"shape":"UpdateGroupQueryInput"},
325      "output":{"shape":"UpdateGroupQueryOutput"},
326      "errors":[
327        {"shape":"BadRequestException"},
328        {"shape":"ForbiddenException"},
329        {"shape":"NotFoundException"},
330        {"shape":"MethodNotAllowedException"},
331        {"shape":"TooManyRequestsException"},
332        {"shape":"InternalServerErrorException"}
333      ],
334      "documentation":"<p>Updates the resource query of a group. For more information about resource queries, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag\">Create a tag-based group in Resource Groups</a>.</p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:UpdateGroupQuery</code> </p> </li> </ul>"
335    }
336  },
337  "shapes":{
338    "AccountSettings":{
339      "type":"structure",
340      "members":{
341        "GroupLifecycleEventsDesiredStatus":{
342          "shape":"GroupLifecycleEventsDesiredStatus",
343          "documentation":"<p>The desired target status of the group lifecycle events feature. If</p>"
344        },
345        "GroupLifecycleEventsStatus":{
346          "shape":"GroupLifecycleEventsStatus",
347          "documentation":"<p>The current status of the group lifecycle events feature.</p>"
348        },
349        "GroupLifecycleEventsStatusMessage":{
350          "shape":"GroupLifecycleEventsStatusMessage",
351          "documentation":"<p>The text of any error message occurs during an attempt to turn group lifecycle events on or off.</p>"
352        }
353      },
354      "documentation":"<p>The Resource Groups settings for this Amazon Web Services account.</p>"
355    },
356    "BadRequestException":{
357      "type":"structure",
358      "members":{
359        "Message":{"shape":"ErrorMessage"}
360      },
361      "documentation":"<p>The request includes one or more parameters that violate validation rules.</p>",
362      "error":{"httpStatusCode":400},
363      "exception":true
364    },
365    "CreateGroupInput":{
366      "type":"structure",
367      "required":["Name"],
368      "members":{
369        "Name":{
370          "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>"
372        },
373        "Description":{
374          "shape":"Description",
375          "documentation":"<p>The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.</p>"
376        },
377        "ResourceQuery":{
378          "shape":"ResourceQuery",
379          "documentation":"<p>The resource query that determines which Amazon Web Services resources are members of this group. For more information about resource queries, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag\">Create a tag-based group in Resource Groups</a>. </p> <note> <p>A resource group can contain either a <code>ResourceQuery</code> or a <code>Configuration</code>, but not both.</p> </note>"
380        },
381        "Tags":{
382          "shape":"Tags",
383          "documentation":"<p>The tags to add to the group. A tag is key-value pair string.</p>"
384        },
385        "Configuration":{
386          "shape":"GroupConfigurationList",
387          "documentation":"<p>A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of <a>GroupConfigurationItem</a> elements. For details about the syntax of service configurations, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for Resource Groups</a>.</p> <note> <p>A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not both.</p> </note>"
388        }
389      }
390    },
391    "CreateGroupOutput":{
392      "type":"structure",
393      "members":{
394        "Group":{
395          "shape":"Group",
396          "documentation":"<p>The description of the resource group.</p>"
397        },
398        "ResourceQuery":{
399          "shape":"ResourceQuery",
400          "documentation":"<p>The resource query associated with the group. For more information about resource queries, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag\">Create a tag-based group in Resource Groups</a>. </p>"
401        },
402        "Tags":{
403          "shape":"Tags",
404          "documentation":"<p>The tags associated with the group.</p>"
405        },
406        "GroupConfiguration":{
407          "shape":"GroupConfiguration",
408          "documentation":"<p>The service configuration associated with the resource group. For details about the syntax of a service configuration, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for Resource Groups</a>.</p>"
409        }
410      }
411    },
412    "DeleteGroupInput":{
413      "type":"structure",
414      "members":{
415        "GroupName":{
416          "shape":"GroupName",
417          "documentation":"<p>Deprecated - don't use this parameter. Use <code>Group</code> instead.</p>",
418          "deprecated":true,
419          "deprecatedMessage":"This field is deprecated, use Group instead."
420        },
421        "Group":{
422          "shape":"GroupString",
423          "documentation":"<p>The name or the ARN of the resource group to delete.</p>"
424        }
425      }
426    },
427    "DeleteGroupOutput":{
428      "type":"structure",
429      "members":{
430        "Group":{
431          "shape":"Group",
432          "documentation":"<p>A full description of the deleted resource group.</p>"
433        }
434      }
435    },
436    "Description":{
437      "type":"string",
438      "max":1024,
439      "pattern":"[\\sa-zA-Z0-9_\\.-]*"
440    },
441    "ErrorCode":{
442      "type":"string",
443      "max":128,
444      "min":1
445    },
446    "ErrorMessage":{
447      "type":"string",
448      "max":1024,
449      "min":1
450    },
451    "FailedResource":{
452      "type":"structure",
453      "members":{
454        "ResourceArn":{
455          "shape":"ResourceArn",
456          "documentation":"<p>The ARN of the resource that failed to be added or removed.</p>"
457        },
458        "ErrorMessage":{
459          "shape":"ErrorMessage",
460          "documentation":"<p>The error message text associated with the failure.</p>"
461        },
462        "ErrorCode":{
463          "shape":"ErrorCode",
464          "documentation":"<p>The error code associated with the failure.</p>"
465        }
466      },
467      "documentation":"<p>A resource that failed to be added to or removed from a group.</p>"
468    },
469    "FailedResourceList":{
470      "type":"list",
471      "member":{"shape":"FailedResource"}
472    },
473    "ForbiddenException":{
474      "type":"structure",
475      "members":{
476        "Message":{"shape":"ErrorMessage"}
477      },
478      "documentation":"<p>The caller isn't authorized to make the request. Check permissions.</p>",
479      "error":{"httpStatusCode":403},
480      "exception":true
481    },
482    "GetAccountSettingsOutput":{
483      "type":"structure",
484      "members":{
485        "AccountSettings":{
486          "shape":"AccountSettings",
487          "documentation":"<p>The current settings for the optional features in Resource Groups.</p>"
488        }
489      }
490    },
491    "GetGroupConfigurationInput":{
492      "type":"structure",
493      "members":{
494        "Group":{
495          "shape":"GroupString",
496          "documentation":"<p>The name or the ARN of the resource group for which you want to retrive the service configuration.</p>"
497        }
498      }
499    },
500    "GetGroupConfigurationOutput":{
501      "type":"structure",
502      "members":{
503        "GroupConfiguration":{
504          "shape":"GroupConfiguration",
505          "documentation":"<p>A structure that describes the service configuration attached with the specified group. For details about the service configuration syntax, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for Resource Groups</a>.</p>"
506        }
507      }
508    },
509    "GetGroupInput":{
510      "type":"structure",
511      "members":{
512        "GroupName":{
513          "shape":"GroupName",
514          "documentation":"<p>Deprecated - don't use this parameter. Use <code>Group</code> instead.</p>",
515          "deprecated":true,
516          "deprecatedMessage":"This field is deprecated, use Group instead."
517        },
518        "Group":{
519          "shape":"GroupString",
520          "documentation":"<p>The name or the ARN of the resource group to retrieve.</p>"
521        }
522      }
523    },
524    "GetGroupOutput":{
525      "type":"structure",
526      "members":{
527        "Group":{
528          "shape":"Group",
529          "documentation":"<p>A structure that contains the metadata details for the specified resource group. Use <a>GetGroupQuery</a> and <a>GetGroupConfiguration</a> to get those additional details of the resource group.</p>"
530        }
531      }
532    },
533    "GetGroupQueryInput":{
534      "type":"structure",
535      "members":{
536        "GroupName":{
537          "shape":"GroupName",
538          "documentation":"<p>Don't use this parameter. Use <code>Group</code> instead.</p>",
539          "deprecated":true,
540          "deprecatedMessage":"This field is deprecated, use Group instead."
541        },
542        "Group":{
543          "shape":"GroupString",
544          "documentation":"<p>The name or the ARN of the resource group to query.</p>"
545        }
546      }
547    },
548    "GetGroupQueryOutput":{
549      "type":"structure",
550      "members":{
551        "GroupQuery":{
552          "shape":"GroupQuery",
553          "documentation":"<p>The resource query associated with the specified group. For more information about resource queries, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag\">Create a tag-based group in Resource Groups</a>.</p>"
554        }
555      }
556    },
557    "GetTagsInput":{
558      "type":"structure",
559      "required":["Arn"],
560      "members":{
561        "Arn":{
562          "shape":"GroupArn",
563          "documentation":"<p>The ARN of the resource group whose tags you want to retrieve.</p>",
564          "location":"uri",
565          "locationName":"Arn"
566        }
567      }
568    },
569    "GetTagsOutput":{
570      "type":"structure",
571      "members":{
572        "Arn":{
573          "shape":"GroupArn",
574          "documentation":"<p>The ARN of the tagged resource group.</p>"
575        },
576        "Tags":{
577          "shape":"Tags",
578          "documentation":"<p>The tags associated with the specified resource group.</p>"
579        }
580      }
581    },
582    "Group":{
583      "type":"structure",
584      "required":[
585        "GroupArn",
586        "Name"
587      ],
588      "members":{
589        "GroupArn":{
590          "shape":"GroupArn",
591          "documentation":"<p>The ARN of the resource group.</p>"
592        },
593        "Name":{
594          "shape":"GroupName",
595          "documentation":"<p>The name of the resource group.</p>"
596        },
597        "Description":{
598          "shape":"Description",
599          "documentation":"<p>The description of the resource group.</p>"
600        }
601      },
602      "documentation":"<p>A resource group that contains Amazon Web Services resources. You can assign resources to the group by associating either of the following elements with the group:</p> <ul> <li> <p> <a>ResourceQuery</a> - Use a resource query to specify a set of tag keys and values. All resources in the same Amazon Web Services Region and Amazon Web Services account that have those keys with the same values are included in the group. You can add a resource query when you create the group, or later by using the <a>PutGroupConfiguration</a> operation.</p> </li> <li> <p> <a>GroupConfiguration</a> - Use a service configuration to associate the group with an Amazon Web Services service. The configuration specifies which resource types can be included in the group.</p> </li> </ul>"
603    },
604    "GroupArn":{
605      "type":"string",
606      "max":1600,
607      "min":12,
608      "pattern":"arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/[a-zA-Z0-9_\\.-]{1,300}"
609    },
610    "GroupConfiguration":{
611      "type":"structure",
612      "members":{
613        "Configuration":{
614          "shape":"GroupConfigurationList",
615          "documentation":"<p>The configuration currently associated with the group and in effect.</p>"
616        },
617        "ProposedConfiguration":{
618          "shape":"GroupConfigurationList",
619          "documentation":"<p>If present, the new configuration that is in the process of being applied to the group.</p>"
620        },
621        "Status":{
622          "shape":"GroupConfigurationStatus",
623          "documentation":"<p>The current status of an attempt to update the group configuration.</p>"
624        },
625        "FailureReason":{
626          "shape":"GroupConfigurationFailureReason",
627          "documentation":"<p>If present, the reason why a request to update the group configuration failed.</p>"
628        }
629      },
630      "documentation":"<p>A service configuration associated with a resource group. The configuration options are determined by the Amazon Web Services service that defines the <code>Type</code>, and specifies which resources can be included in the group. You can add a service configuration when you create the group by using <a>CreateGroup</a>, or later by using the <a>PutGroupConfiguration</a> operation. For details about group service configuration syntax, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for resource groups</a>.</p>"
631    },
632    "GroupConfigurationFailureReason":{"type":"string"},
633    "GroupConfigurationItem":{
634      "type":"structure",
635      "required":["Type"],
636      "members":{
637        "Type":{
638          "shape":"GroupConfigurationType",
639          "documentation":"<p>Specifies the type of group configuration item. Each item must have a unique value for <code>type</code>. For the list of types that you can specify for a configuration item, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types\">Supported resource types and parameters</a>.</p>"
640        },
641        "Parameters":{
642          "shape":"GroupParameterList",
643          "documentation":"<p>A collection of parameters for this group configuration item. For the list of parameters that you can use with each configuration item type, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types\">Supported resource types and parameters</a>.</p>"
644        }
645      },
646      "documentation":"<p>An item in a group configuration. A group service configuration can have one or more items. For details about group service configuration syntax, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for resource groups</a>.</p>"
647    },
648    "GroupConfigurationList":{
649      "type":"list",
650      "member":{"shape":"GroupConfigurationItem"},
651      "max":2
652    },
653    "GroupConfigurationParameter":{
654      "type":"structure",
655      "required":["Name"],
656      "members":{
657        "Name":{
658          "shape":"GroupConfigurationParameterName",
659          "documentation":"<p>The name of the group configuration parameter. For the list of parameters that you can use with each configuration item type, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types\">Supported resource types and parameters</a>.</p>"
660        },
661        "Values":{
662          "shape":"GroupConfigurationParameterValueList",
663          "documentation":"<p>The value or values to be used for the specified parameter. For the list of values you can use with each parameter, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types\">Supported resource types and parameters</a>.</p>"
664        }
665      },
666      "documentation":"<p>A parameter for a group configuration item. For details about group service configuration syntax, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for resource groups</a>.</p>"
667    },
668    "GroupConfigurationParameterName":{
669      "type":"string",
670      "max":80,
671      "min":1,
672      "pattern":"[a-z-]+"
673    },
674    "GroupConfigurationParameterValue":{
675      "type":"string",
676      "max":256,
677      "min":1,
678      "pattern":"[a-zA-Z0-9:\\/\\._-]+"
679    },
680    "GroupConfigurationParameterValueList":{
681      "type":"list",
682      "member":{"shape":"GroupConfigurationParameterValue"}
683    },
684    "GroupConfigurationStatus":{
685      "type":"string",
686      "enum":[
687        "UPDATING",
688        "UPDATE_COMPLETE",
689        "UPDATE_FAILED"
690      ]
691    },
692    "GroupConfigurationType":{
693      "type":"string",
694      "max":40,
695      "pattern":"AWS::[a-zA-Z0-9]+::[a-zA-Z0-9]+"
696    },
697    "GroupFilter":{
698      "type":"structure",
699      "required":[
700        "Name",
701        "Values"
702      ],
703      "members":{
704        "Name":{
705          "shape":"GroupFilterName",
706          "documentation":"<p>The name of the filter. Filter names are case-sensitive.</p>"
707        },
708        "Values":{
709          "shape":"GroupFilterValues",
710          "documentation":"<p>One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.</p>"
711        }
712      },
713      "documentation":"<p>A filter collection that you can use to restrict the results from a <code>List</code> operation to only those you want to include.</p>"
714    },
715    "GroupFilterList":{
716      "type":"list",
717      "member":{"shape":"GroupFilter"}
718    },
719    "GroupFilterName":{
720      "type":"string",
721      "enum":[
722        "resource-type",
723        "configuration-type"
724      ]
725    },
726    "GroupFilterValue":{
727      "type":"string",
728      "max":128,
729      "min":1,
730      "pattern":"AWS::(AllSupported|[a-zA-Z0-9]+::[a-zA-Z0-9]+)"
731    },
732    "GroupFilterValues":{
733      "type":"list",
734      "member":{"shape":"GroupFilterValue"},
735      "max":5,
736      "min":1
737    },
738    "GroupIdentifier":{
739      "type":"structure",
740      "members":{
741        "GroupName":{
742          "shape":"GroupName",
743          "documentation":"<p>The name of the resource group.</p>"
744        },
745        "GroupArn":{
746          "shape":"GroupArn",
747          "documentation":"<p>The ARN of the resource group.</p>"
748        }
749      },
750      "documentation":"<p>The unique identifiers for a resource group.</p>"
751    },
752    "GroupIdentifierList":{
753      "type":"list",
754      "member":{"shape":"GroupIdentifier"}
755    },
756    "GroupLifecycleEventsDesiredStatus":{
757      "type":"string",
758      "enum":[
759        "ACTIVE",
760        "INACTIVE"
761      ]
762    },
763    "GroupLifecycleEventsStatus":{
764      "type":"string",
765      "enum":[
766        "ACTIVE",
767        "INACTIVE",
768        "IN_PROGRESS",
769        "ERROR"
770      ]
771    },
772    "GroupLifecycleEventsStatusMessage":{
773      "type":"string",
774      "max":1024,
775      "min":1
776    },
777    "GroupList":{
778      "type":"list",
779      "member":{"shape":"Group"}
780    },
781    "GroupName":{
782      "type":"string",
783      "max":300,
784      "min":1,
785      "pattern":"[a-zA-Z0-9_\\.-]+"
786    },
787    "GroupParameterList":{
788      "type":"list",
789      "member":{"shape":"GroupConfigurationParameter"}
790    },
791    "GroupQuery":{
792      "type":"structure",
793      "required":[
794        "GroupName",
795        "ResourceQuery"
796      ],
797      "members":{
798        "GroupName":{
799          "shape":"GroupName",
800          "documentation":"<p>The name of the resource group that is associated with the specified resource query.</p>"
801        },
802        "ResourceQuery":{
803          "shape":"ResourceQuery",
804          "documentation":"<p>The resource query that determines which Amazon Web Services resources are members of the associated resource group.</p>"
805        }
806      },
807      "documentation":"<p>A mapping of a query attached to a resource group that determines the Amazon Web Services resources that are members of the group.</p>"
808    },
809    "GroupResourcesInput":{
810      "type":"structure",
811      "required":[
812        "Group",
813        "ResourceArns"
814      ],
815      "members":{
816        "Group":{
817          "shape":"GroupString",
818          "documentation":"<p>The name or the ARN of the resource group to add resources to.</p>"
819        },
820        "ResourceArns":{
821          "shape":"ResourceArnList",
822          "documentation":"<p>The list of ARNs of the resources to be added to the group. </p>"
823        }
824      }
825    },
826    "GroupResourcesOutput":{
827      "type":"structure",
828      "members":{
829        "Succeeded":{
830          "shape":"ResourceArnList",
831          "documentation":"<p>A list of ARNs of the resources that this operation successfully added to the group.</p>"
832        },
833        "Failed":{
834          "shape":"FailedResourceList",
835          "documentation":"<p>A list of ARNs of any resources that this operation failed to add to the group.</p>"
836        },
837        "Pending":{
838          "shape":"PendingResourceList",
839          "documentation":"<p>A list of ARNs of any resources that this operation is still in the process adding to the group. These pending additions continue asynchronously. You can check the status of pending additions by using the <code> <a>ListGroupResources</a> </code> operation, and checking the <code>Resources</code> array in the response and the <code>Status</code> field of each object in that array. </p>"
840        }
841      }
842    },
843    "GroupString":{
844      "type":"string",
845      "max":1600,
846      "min":1,
847      "pattern":"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\\.-]{1,300}"
848    },
849    "InternalServerErrorException":{
850      "type":"structure",
851      "members":{
852        "Message":{"shape":"ErrorMessage"}
853      },
854      "documentation":"<p>An internal error occurred while processing the request. Try again later.</p>",
855      "error":{"httpStatusCode":500},
856      "exception":true
857    },
858    "ListGroupResourcesInput":{
859      "type":"structure",
860      "members":{
861        "GroupName":{
862          "shape":"GroupName",
863          "documentation":"<important> <p> <i> <b>Deprecated - don't use this parameter. Use the <code>Group</code> request field instead.</b> </i> </p> </important>",
864          "deprecated":true,
865          "deprecatedMessage":"This field is deprecated, use Group instead."
866        },
867        "Group":{
868          "shape":"GroupString",
869          "documentation":"<p>The name or the ARN of the resource group</p>"
870        },
871        "Filters":{
872          "shape":"ResourceFilterList",
873          "documentation":"<p>Filters, formatted as <a>ResourceFilter</a> objects, that you want to apply to a <code>ListGroupResources</code> operation. Filters the results to include only those of the specified resource types.</p> <ul> <li> <p> <code>resource-type</code> - Filter resources by their type. Specify up to five resource types in the format <code>AWS::ServiceCode::ResourceType</code>. For example, <code>AWS::EC2::Instance</code>, or <code>AWS::S3::Bucket</code>. </p> </li> </ul> <p>When you specify a <code>resource-type</code> filter for <code>ListGroupResources</code>, Resource Groups validates your filter resource types against the types that are defined in the query associated with the group. For example, if a group contains only S3 buckets because its query specifies only that resource type, but your <code>resource-type</code> filter includes EC2 instances, AWS Resource Groups does not filter for EC2 instances. In this case, a <code>ListGroupResources</code> request returns a <code>BadRequestException</code> error with a message similar to the following:</p> <p> <code>The resource types specified as filters in the request are not valid.</code> </p> <p>The error includes a list of resource types that failed the validation because they are not part of the query associated with the group. This validation doesn't occur when the group query specifies <code>AWS::AllSupported</code>, because a group based on such a query can contain any of the allowed resource types for the query type (tag-based or Amazon CloudFront stack-based queries).</p>"
874        },
875        "MaxResults":{
876          "shape":"MaxResults",
877          "documentation":"<p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>"
878        },
879        "NextToken":{
880          "shape":"NextToken",
881          "documentation":"<p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value provided by a previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>"
882        }
883      }
884    },
885    "ListGroupResourcesItem":{
886      "type":"structure",
887      "members":{
888        "Identifier":{"shape":"ResourceIdentifier"},
889        "Status":{
890          "shape":"ResourceStatus",
891          "documentation":"<p>A structure that contains the status of this resource's membership in the group.</p> <note> <p>This field is present in the response only if the group is of type <code>AWS::EC2::HostManagement</code>.</p> </note>"
892        }
893      },
894      "documentation":"<p>A structure returned by the <a>ListGroupResources</a> operation that contains identity and group membership status information for one of the resources in the group.</p>"
895    },
896    "ListGroupResourcesItemList":{
897      "type":"list",
898      "member":{"shape":"ListGroupResourcesItem"}
899    },
900    "ListGroupResourcesOutput":{
901      "type":"structure",
902      "members":{
903        "Resources":{
904          "shape":"ListGroupResourcesItemList",
905          "documentation":"<p>An array of resources from which you can determine each resource's identity, type, and group membership status.</p>"
906        },
907        "ResourceIdentifiers":{
908          "shape":"ResourceIdentifierList",
909          "documentation":"<important> <p> <b> <i>Deprecated - don't use this parameter. Use the <code>Resources</code> response field instead.</i> </b> </p> </important>",
910          "deprecated":true,
911          "deprecatedMessage":"This field is deprecated, use Resources instead."
912        },
913        "NextToken":{
914          "shape":"NextToken",
915          "documentation":"<p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the <code>NextToken</code> response element comes back as <code>null</code>.</p>"
916        },
917        "QueryErrors":{
918          "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>"
920        }
921      }
922    },
923    "ListGroupsInput":{
924      "type":"structure",
925      "members":{
926        "Filters":{
927          "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>"
929        },
930        "MaxResults":{
931          "shape":"MaxResults",
932          "documentation":"<p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>",
933          "location":"querystring",
934          "locationName":"maxResults"
935        },
936        "NextToken":{
937          "shape":"NextToken",
938          "documentation":"<p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value provided by a previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>",
939          "location":"querystring",
940          "locationName":"nextToken"
941        }
942      }
943    },
944    "ListGroupsOutput":{
945      "type":"structure",
946      "members":{
947        "GroupIdentifiers":{
948          "shape":"GroupIdentifierList",
949          "documentation":"<p>A list of <a>GroupIdentifier</a> objects. Each identifier is an object that contains both the <code>Name</code> and the <code>GroupArn</code>.</p>"
950        },
951        "Groups":{
952          "shape":"GroupList",
953          "documentation":"<important> <p> <i> <b>Deprecated - don't use this field. Use the <code>GroupIdentifiers</code> response field instead.</b> </i> </p> </important>",
954          "deprecated":true,
955          "deprecatedMessage":"This field is deprecated, use GroupIdentifiers instead."
956        },
957        "NextToken":{
958          "shape":"NextToken",
959          "documentation":"<p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the <code>NextToken</code> response element comes back as <code>null</code>.</p>"
960        }
961      }
962    },
963    "MaxResults":{
964      "type":"integer",
965      "max":50,
966      "min":1
967    },
968    "MethodNotAllowedException":{
969      "type":"structure",
970      "members":{
971        "Message":{"shape":"ErrorMessage"}
972      },
973      "documentation":"<p>The request uses an HTTP method that isn't allowed for the specified resource.</p>",
974      "error":{"httpStatusCode":405},
975      "exception":true
976    },
977    "NextToken":{
978      "type":"string",
979      "max":8192,
980      "min":0,
981      "pattern":"^[a-zA-Z0-9+/]*={0,2}$"
982    },
983    "NotFoundException":{
984      "type":"structure",
985      "members":{
986        "Message":{"shape":"ErrorMessage"}
987      },
988      "documentation":"<p>One or more of the specified resources don't exist.</p>",
989      "error":{"httpStatusCode":404},
990      "exception":true
991    },
992    "PendingResource":{
993      "type":"structure",
994      "members":{
995        "ResourceArn":{
996          "shape":"ResourceArn",
997          "documentation":"<p>The Amazon resource name (ARN) of the resource that's in a pending state.</p>"
998        }
999      },
1000      "documentation":"<p>A structure that identifies a resource that is currently pending addition to the group as a member. Adding a resource to a resource group happens asynchronously as a background task and this one isn't completed yet.</p>"
1001    },
1002    "PendingResourceList":{
1003      "type":"list",
1004      "member":{"shape":"PendingResource"}
1005    },
1006    "PutGroupConfigurationInput":{
1007      "type":"structure",
1008      "members":{
1009        "Group":{
1010          "shape":"GroupString",
1011          "documentation":"<p>The name or ARN of the resource group with the configuration that you want to update.</p>"
1012        },
1013        "Configuration":{
1014          "shape":"GroupConfigurationList",
1015          "documentation":"<p>The new configuration to associate with the specified group. A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of <a>GroupConfigurationItem</a> elements.</p> <p>For information about the syntax of a service configuration, see <a href=\"https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html\">Service configurations for Resource Groups</a>.</p> <note> <p>A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not both.</p> </note>"
1016        }
1017      }
1018    },
1019    "PutGroupConfigurationOutput":{
1020      "type":"structure",
1021      "members":{
1022      }
1023    },
1024    "Query":{
1025      "type":"string",
1026      "max":4096,
1027      "pattern":"[\\s\\S]*"
1028    },
1029    "QueryError":{
1030      "type":"structure",
1031      "members":{
1032        "ErrorCode":{
1033          "shape":"QueryErrorCode",
1034          "documentation":"<p>Specifies the error code that was raised.</p>"
1035        },
1036        "Message":{
1037          "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>"
1039        }
1040      },
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>"
1042    },
1043    "QueryErrorCode":{
1044      "type":"string",
1045      "enum":[
1046        "CLOUDFORMATION_STACK_INACTIVE",
1047        "CLOUDFORMATION_STACK_NOT_EXISTING",
1048        "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
1049      ]
1050    },
1051    "QueryErrorList":{
1052      "type":"list",
1053      "member":{"shape":"QueryError"}
1054    },
1055    "QueryErrorMessage":{"type":"string"},
1056    "QueryType":{
1057      "type":"string",
1058      "enum":[
1059        "TAG_FILTERS_1_0",
1060        "CLOUDFORMATION_STACK_1_0"
1061      ],
1062      "max":128,
1063      "min":1,
1064      "pattern":"^\\w+$"
1065    },
1066    "ResourceArn":{
1067      "type":"string",
1068      "pattern":"arn:aws(-[a-z]+)*:[a-z0-9\\-]*:([a-z]{2}(-[a-z]+)+-\\d{1})?:([0-9]{12})?:.+"
1069    },
1070    "ResourceArnList":{
1071      "type":"list",
1072      "member":{"shape":"ResourceArn"},
1073      "max":10,
1074      "min":1
1075    },
1076    "ResourceFilter":{
1077      "type":"structure",
1078      "required":[
1079        "Name",
1080        "Values"
1081      ],
1082      "members":{
1083        "Name":{
1084          "shape":"ResourceFilterName",
1085          "documentation":"<p>The name of the filter. Filter names are case-sensitive.</p>"
1086        },
1087        "Values":{
1088          "shape":"ResourceFilterValues",
1089          "documentation":"<p>One or more filter values. Allowed filter values vary by resource filter name, and are case-sensitive.</p>"
1090        }
1091      },
1092      "documentation":"<p>A filter name and value pair that is used to obtain more specific results from a list of resources.</p>"
1093    },
1094    "ResourceFilterList":{
1095      "type":"list",
1096      "member":{"shape":"ResourceFilter"}
1097    },
1098    "ResourceFilterName":{
1099      "type":"string",
1100      "enum":["resource-type"]
1101    },
1102    "ResourceFilterValue":{
1103      "type":"string",
1104      "max":128,
1105      "min":1,
1106      "pattern":"AWS::[a-zA-Z0-9]+::[a-zA-Z0-9]+"
1107    },
1108    "ResourceFilterValues":{
1109      "type":"list",
1110      "member":{"shape":"ResourceFilterValue"},
1111      "max":5,
1112      "min":1
1113    },
1114    "ResourceIdentifier":{
1115      "type":"structure",
1116      "members":{
1117        "ResourceArn":{
1118          "shape":"ResourceArn",
1119          "documentation":"<p>The ARN of a resource.</p>"
1120        },
1121        "ResourceType":{
1122          "shape":"ResourceType",
1123          "documentation":"<p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>"
1124        }
1125      },
1126      "documentation":"<p>A structure that contains the ARN of a resource and its resource type.</p>"
1127    },
1128    "ResourceIdentifierList":{
1129      "type":"list",
1130      "member":{"shape":"ResourceIdentifier"}
1131    },
1132    "ResourceQuery":{
1133      "type":"structure",
1134      "required":[
1135        "Type",
1136        "Query"
1137      ],
1138      "members":{
1139        "Type":{
1140          "shape":"QueryType",
1141          "documentation":"<p>The type of the query to perform. This can have one of two values:</p> <ul> <li> <p> <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> Specifies that you want the group to contain the members of an CloudFormation stack. The <code>Query</code> contains a <code>StackIdentifier</code> element with an ARN for a CloudFormation stack.</p> </li> <li> <p> <i> <code>TAG_FILTERS_1_0:</code> </i> Specifies that you want the group to include resource that have tags that match the query. </p> </li> </ul>"
1142        },
1143        "Query":{
1144          "shape":"Query",
1145          "documentation":"<p>The query that defines a group or a search. The contents depends on the value of the <code>Type</code> element.</p> <ul> <li> <p> <code>ResourceTypeFilters</code> – Applies to all <code>ResourceQuery</code> objects of either <code>Type</code>. This element contains one of the following two items:</p> <ul> <li> <p>The value <code>AWS::AllSupported</code>. This causes the ResourceQuery to match resources of any resource type that also match the query.</p> </li> <li> <p>A list (a JSON array) of resource type identifiers that limit the query to only resources of the specified types. For the complete list of resource types that you can use in the array value for <code>ResourceTypeFilters</code>, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html\">Resources you can use with Resource Groups and Tag Editor</a> in the <i>Resource Groups User Guide</i>.</p> </li> </ul> <p>Example: <code>\"ResourceTypeFilters\": [\"AWS::AllSupported\"]</code> or <code>\"ResourceTypeFilters\": [\"AWS::EC2::Instance\", \"AWS::S3::Bucket\"]</code> </p> </li> <li> <p> <code>TagFilters</code> – applicable only if <code>Type</code> = <code>TAG_FILTERS_1_0</code>. The <code>Query</code> contains a JSON string that represents a collection of simple tag filters. The JSON string uses a syntax similar to the <code> <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html\">GetResources</a> </code> operation, but uses only the <code> <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-ResourceTypeFilters\"> ResourceTypeFilters</a> </code> and <code> <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-TagFiltersTagFilters\">TagFilters</a> </code> fields. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches <i>any</i> of the specified values.</p> <p>For example, consider the following sample query for resources that have two tags, <code>Stage</code> and <code>Version</code>, with two values each:</p> <p> <code>[{\"Stage\":[\"Test\",\"Deploy\"]},{\"Version\":[\"1\",\"2\"]}]</code> </p> <p>The results of this resource query could include the following.</p> <ul> <li> <p>An Amazon EC2 instance that has the following two tags: <code>{\"Stage\":\"Deploy\"}</code>, and <code>{\"Version\":\"2\"}</code> </p> </li> <li> <p>An S3 bucket that has the following two tags: <code>{\"Stage\":\"Test\"}</code>, and <code>{\"Version\":\"1\"}</code> </p> </li> </ul> <p>The resource query results would <i>not</i> include the following items in the results, however. </p> <ul> <li> <p>An Amazon EC2 instance that has only the following tag: <code>{\"Stage\":\"Deploy\"}</code>.</p> <p>The instance does not have <b>all</b> of the tag keys specified in the filter, so it is excluded from the results.</p> </li> <li> <p>An RDS database that has the following two tags: <code>{\"Stage\":\"Archived\"}</code> and <code>{\"Version\":\"4\"}</code> </p> <p>The database has all of the tag keys, but none of those keys has an associated value that matches at least one of the specified values in the filter.</p> </li> </ul> <p>Example: <code>\"TagFilters\": [ { \"Key\": \"Stage\", \"Values\": [ \"Gamma\", \"Beta\" ] }</code> </p> </li> <li> <p> <code>StackIdentifier</code> – applicable only if <code>Type</code> = <code>CLOUDFORMATION_STACK_1_0</code>. The value of this parameter is the Amazon Resource Name (ARN) of the CloudFormation stack whose resources you want included in the group.</p> </li> </ul>"
1146        }
1147      },
1148      "documentation":"<p>The query you can use to define a resource group or a search for resources. A <code>ResourceQuery</code> specifies both a query <code>Type</code> and a <code>Query</code> string as JSON string objects. See the examples section for example JSON strings. For more information about creating a resource group with a resource query, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html\">Build queries and groups in Resource Groups</a> in the <i>Resource Groups User Guide</i> </p> <p>When you combine all of the elements together into a single string, any double quotes that are embedded inside another double quote pair must be escaped by preceding the embedded double quote with a backslash character (\\). For example, a complete <code>ResourceQuery</code> parameter must be formatted like the following CLI parameter example:</p> <p> <code>--resource-query '{\"Type\":\"TAG_FILTERS_1_0\",\"Query\":\"{\\\"ResourceTypeFilters\\\":[\\\"AWS::AllSupported\\\"],\\\"TagFilters\\\":[{\\\"Key\\\":\\\"Stage\\\",\\\"Values\\\":[\\\"Test\\\"]}]}\"}'</code> </p> <p>In the preceding example, all of the double quote characters in the value part of the <code>Query</code> element must be escaped because the value itself is surrounded by double quotes. For more information, see <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html\">Quoting strings</a> in the <i>Command Line Interface User Guide</i>.</p> <p>For the complete list of resource types that you can use in the array value for <code>ResourceTypeFilters</code>, see <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html\">Resources you can use with Resource Groups and Tag Editor</a> in the <i>Resource Groups User Guide</i>. For example:</p> <p> <code>\"ResourceTypeFilters\":[\"AWS::S3::Bucket\", \"AWS::EC2::Instance\"]</code> </p>"
1149    },
1150    "ResourceStatus":{
1151      "type":"structure",
1152      "members":{
1153        "Name":{
1154          "shape":"ResourceStatusValue",
1155          "documentation":"<p>The current status.</p>"
1156        }
1157      },
1158      "documentation":"<p>A structure that identifies the current group membership status for a resource. Adding a resource to a resource group is performed asynchronously as a background task. A <code>PENDING</code> status indicates, for this resource, that the process isn't completed yet.</p>"
1159    },
1160    "ResourceStatusValue":{
1161      "type":"string",
1162      "enum":["PENDING"]
1163    },
1164    "ResourceType":{
1165      "type":"string",
1166      "pattern":"AWS::[a-zA-Z0-9]+::\\w+"
1167    },
1168    "SearchResourcesInput":{
1169      "type":"structure",
1170      "required":["ResourceQuery"],
1171      "members":{
1172        "ResourceQuery":{
1173          "shape":"ResourceQuery",
1174          "documentation":"<p>The search query, using the same formats that are supported for resource group definition. For more information, see <a>CreateGroup</a>.</p>"
1175        },
1176        "MaxResults":{
1177          "shape":"MaxResults",
1178          "documentation":"<p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>"
1179        },
1180        "NextToken":{
1181          "shape":"NextToken",
1182          "documentation":"<p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value provided by a previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>"
1183        }
1184      }
1185    },
1186    "SearchResourcesOutput":{
1187      "type":"structure",
1188      "members":{
1189        "ResourceIdentifiers":{
1190          "shape":"ResourceIdentifierList",
1191          "documentation":"<p>The ARNs and resource types of resources that are members of the group that you specified.</p>"
1192        },
1193        "NextToken":{
1194          "shape":"NextToken",
1195          "documentation":"<p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the <code>NextToken</code> response element comes back as <code>null</code>.</p>"
1196        },
1197        "QueryErrors":{
1198          "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        }
1201      }
1202    },
1203    "TagInput":{
1204      "type":"structure",
1205      "required":[
1206        "Arn",
1207        "Tags"
1208      ],
1209      "members":{
1210        "Arn":{
1211          "shape":"GroupArn",
1212          "documentation":"<p>The ARN of the resource group to which to add tags.</p>",
1213          "location":"uri",
1214          "locationName":"Arn"
1215        },
1216        "Tags":{
1217          "shape":"Tags",
1218          "documentation":"<p>The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.</p>"
1219        }
1220      }
1221    },
1222    "TagKey":{
1223      "type":"string",
1224      "max":128,
1225      "min":1,
1226      "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
1227    },
1228    "TagKeyList":{
1229      "type":"list",
1230      "member":{"shape":"TagKey"}
1231    },
1232    "TagOutput":{
1233      "type":"structure",
1234      "members":{
1235        "Arn":{
1236          "shape":"GroupArn",
1237          "documentation":"<p>The ARN of the tagged resource.</p>"
1238        },
1239        "Tags":{
1240          "shape":"Tags",
1241          "documentation":"<p>The tags that have been added to the specified resource group.</p>"
1242        }
1243      }
1244    },
1245    "TagValue":{
1246      "type":"string",
1247      "max":256,
1248      "min":0,
1249      "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
1250    },
1251    "Tags":{
1252      "type":"map",
1253      "key":{"shape":"TagKey"},
1254      "value":{"shape":"TagValue"}
1255    },
1256    "TooManyRequestsException":{
1257      "type":"structure",
1258      "members":{
1259        "Message":{"shape":"ErrorMessage"}
1260      },
1261      "documentation":"<p>You've exceeded throttling limits by making too many requests in a period of time.</p>",
1262      "error":{"httpStatusCode":429},
1263      "exception":true
1264    },
1265    "UnauthorizedException":{
1266      "type":"structure",
1267      "members":{
1268        "Message":{"shape":"ErrorMessage"}
1269      },
1270      "documentation":"<p>The request was rejected because it doesn't have valid credentials for the target resource.</p>",
1271      "error":{"httpStatusCode":401},
1272      "exception":true
1273    },
1274    "UngroupResourcesInput":{
1275      "type":"structure",
1276      "required":[
1277        "Group",
1278        "ResourceArns"
1279      ],
1280      "members":{
1281        "Group":{
1282          "shape":"GroupString",
1283          "documentation":"<p>The name or the ARN of the resource group from which to remove the resources.</p>"
1284        },
1285        "ResourceArns":{
1286          "shape":"ResourceArnList",
1287          "documentation":"<p>The ARNs of the resources to be removed from the group.</p>"
1288        }
1289      }
1290    },
1291    "UngroupResourcesOutput":{
1292      "type":"structure",
1293      "members":{
1294        "Succeeded":{
1295          "shape":"ResourceArnList",
1296          "documentation":"<p>A list of resources that were successfully removed from the group by this operation.</p>"
1297        },
1298        "Failed":{
1299          "shape":"FailedResourceList",
1300          "documentation":"<p>A list of any resources that failed to be removed from the group by this operation.</p>"
1301        },
1302        "Pending":{
1303          "shape":"PendingResourceList",
1304          "documentation":"<p>A list of any resources that are still in the process of being removed from the group by this operation. These pending removals continue asynchronously. You can check the status of pending removals by using the <code> <a>ListGroupResources</a> </code> operation. After the resource is successfully removed, it no longer appears in the response.</p>"
1305        }
1306      }
1307    },
1308    "UntagInput":{
1309      "type":"structure",
1310      "required":[
1311        "Arn",
1312        "Keys"
1313      ],
1314      "members":{
1315        "Arn":{
1316          "shape":"GroupArn",
1317          "documentation":"<p>The ARN of the resource group from which to remove tags. The command removed both the specified keys and any values associated with those keys.</p>",
1318          "location":"uri",
1319          "locationName":"Arn"
1320        },
1321        "Keys":{
1322          "shape":"TagKeyList",
1323          "documentation":"<p>The keys of the tags to be removed.</p>"
1324        }
1325      }
1326    },
1327    "UntagOutput":{
1328      "type":"structure",
1329      "members":{
1330        "Arn":{
1331          "shape":"GroupArn",
1332          "documentation":"<p>The ARN of the resource group from which tags have been removed.</p>"
1333        },
1334        "Keys":{
1335          "shape":"TagKeyList",
1336          "documentation":"<p>The keys of the tags that were removed.</p>"
1337        }
1338      }
1339    },
1340    "UpdateAccountSettingsInput":{
1341      "type":"structure",
1342      "members":{
1343        "GroupLifecycleEventsDesiredStatus":{
1344          "shape":"GroupLifecycleEventsDesiredStatus",
1345          "documentation":"<p>Specifies whether you want to turn <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/monitor-groups.html\">group lifecycle events</a> on or off.</p>"
1346        }
1347      }
1348    },
1349    "UpdateAccountSettingsOutput":{
1350      "type":"structure",
1351      "members":{
1352        "AccountSettings":{
1353          "shape":"AccountSettings",
1354          "documentation":"<p>A structure that displays the status of the optional features in the account.</p>"
1355        }
1356      }
1357    },
1358    "UpdateGroupInput":{
1359      "type":"structure",
1360      "members":{
1361        "GroupName":{
1362          "shape":"GroupName",
1363          "documentation":"<p>Don't use this parameter. Use <code>Group</code> instead.</p>",
1364          "deprecated":true,
1365          "deprecatedMessage":"This field is deprecated, use Group instead."
1366        },
1367        "Group":{
1368          "shape":"GroupString",
1369          "documentation":"<p>The name or the ARN of the resource group to modify.</p>"
1370        },
1371        "Description":{
1372          "shape":"Description",
1373          "documentation":"<p>The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.</p>"
1374        }
1375      }
1376    },
1377    "UpdateGroupOutput":{
1378      "type":"structure",
1379      "members":{
1380        "Group":{
1381          "shape":"Group",
1382          "documentation":"<p>The update description of the resource group.</p>"
1383        }
1384      }
1385    },
1386    "UpdateGroupQueryInput":{
1387      "type":"structure",
1388      "required":["ResourceQuery"],
1389      "members":{
1390        "GroupName":{
1391          "shape":"GroupName",
1392          "documentation":"<p>Don't use this parameter. Use <code>Group</code> instead.</p>",
1393          "deprecated":true,
1394          "deprecatedMessage":"This field is deprecated, use Group instead."
1395        },
1396        "Group":{
1397          "shape":"GroupString",
1398          "documentation":"<p>The name or the ARN of the resource group to query.</p>"
1399        },
1400        "ResourceQuery":{
1401          "shape":"ResourceQuery",
1402          "documentation":"<p>The resource query to determine which Amazon Web Services resources are members of this resource group.</p> <note> <p>A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not both.</p> </note>"
1403        }
1404      }
1405    },
1406    "UpdateGroupQueryOutput":{
1407      "type":"structure",
1408      "members":{
1409        "GroupQuery":{
1410          "shape":"GroupQuery",
1411          "documentation":"<p>The updated resource query associated with the resource group after the update.</p>"
1412        }
1413      }
1414    }
1415  },
1416  "documentation":"<p>Resource Groups lets you organize Amazon Web Services resources such as Amazon Elastic Compute Cloud instances, Amazon Relational Database Service databases, and Amazon Simple Storage Service buckets into groups using criteria that you define as tags. A resource group is a collection of resources that match the resource types specified in a query, and share one or more tags or portions of tags. You can create a group of resources based on their roles in your cloud infrastructure, lifecycle stages, regions, application layers, or virtually any criteria. Resource Groups enable you to automate management tasks, such as those in Amazon Web Services Systems Manager Automation documents, on tag-related resources in Amazon Web Services Systems Manager. Groups of tagged resources also let you quickly view a custom console in Amazon Web Services Systems Manager that shows Config compliance and other monitoring data about member resources.</p> <p>To create a resource group, build a resource query, and specify tags that identify the criteria that members of the group have in common. Tags are key-value pairs.</p> <p>For more information about Resource Groups, see the <a href=\"https://docs.aws.amazon.com/ARG/latest/userguide/welcome.html\">Resource Groups User Guide</a>.</p> <p>Resource Groups uses a REST-compliant API that you can use to perform the following types of operations.</p> <ul> <li> <p>Create, Read, Update, and Delete (CRUD) operations on resource groups and resource query entities</p> </li> <li> <p>Applying, editing, and removing tags from resource groups</p> </li> <li> <p>Resolving resource group member ARNs so they can be returned as search results</p> </li> <li> <p>Getting data about resources that are members of a group</p> </li> <li> <p>Searching Amazon Web Services resources based on a resource query</p> </li> </ul>"
1417}
1418