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 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/gettingstarted-query.html#gettingstarted-query-cli-tag\">Create a tag-based group in Resource Groups</a>. For more information about 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 "GetGroup":{ 51 "name":"GetGroup", 52 "http":{ 53 "method":"POST", 54 "requestUri":"/get-group" 55 }, 56 "input":{"shape":"GetGroupInput"}, 57 "output":{"shape":"GetGroupOutput"}, 58 "errors":[ 59 {"shape":"BadRequestException"}, 60 {"shape":"ForbiddenException"}, 61 {"shape":"NotFoundException"}, 62 {"shape":"MethodNotAllowedException"}, 63 {"shape":"TooManyRequestsException"}, 64 {"shape":"InternalServerErrorException"} 65 ], 66 "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>" 67 }, 68 "GetGroupConfiguration":{ 69 "name":"GetGroupConfiguration", 70 "http":{ 71 "method":"POST", 72 "requestUri":"/get-group-configuration" 73 }, 74 "input":{"shape":"GetGroupConfigurationInput"}, 75 "output":{"shape":"GetGroupConfigurationOutput"}, 76 "errors":[ 77 {"shape":"BadRequestException"}, 78 {"shape":"ForbiddenException"}, 79 {"shape":"NotFoundException"}, 80 {"shape":"MethodNotAllowedException"}, 81 {"shape":"TooManyRequestsException"}, 82 {"shape":"InternalServerErrorException"} 83 ], 84 "documentation":"<p>Returns 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>" 85 }, 86 "GetGroupQuery":{ 87 "name":"GetGroupQuery", 88 "http":{ 89 "method":"POST", 90 "requestUri":"/get-group-query" 91 }, 92 "input":{"shape":"GetGroupQueryInput"}, 93 "output":{"shape":"GetGroupQueryOutput"}, 94 "errors":[ 95 {"shape":"BadRequestException"}, 96 {"shape":"ForbiddenException"}, 97 {"shape":"NotFoundException"}, 98 {"shape":"MethodNotAllowedException"}, 99 {"shape":"TooManyRequestsException"}, 100 {"shape":"InternalServerErrorException"} 101 ], 102 "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>" 103 }, 104 "GetTags":{ 105 "name":"GetTags", 106 "http":{ 107 "method":"GET", 108 "requestUri":"/resources/{Arn}/tags" 109 }, 110 "input":{"shape":"GetTagsInput"}, 111 "output":{"shape":"GetTagsOutput"}, 112 "errors":[ 113 {"shape":"BadRequestException"}, 114 {"shape":"ForbiddenException"}, 115 {"shape":"NotFoundException"}, 116 {"shape":"MethodNotAllowedException"}, 117 {"shape":"TooManyRequestsException"}, 118 {"shape":"InternalServerErrorException"} 119 ], 120 "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>" 121 }, 122 "GroupResources":{ 123 "name":"GroupResources", 124 "http":{ 125 "method":"POST", 126 "requestUri":"/group-resources" 127 }, 128 "input":{"shape":"GroupResourcesInput"}, 129 "output":{"shape":"GroupResourcesOutput"}, 130 "errors":[ 131 {"shape":"BadRequestException"}, 132 {"shape":"ForbiddenException"}, 133 {"shape":"NotFoundException"}, 134 {"shape":"MethodNotAllowedException"}, 135 {"shape":"TooManyRequestsException"}, 136 {"shape":"InternalServerErrorException"} 137 ], 138 "documentation":"<p>Adds the specified resources to the specified 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:GroupResources</code> </p> </li> </ul>" 139 }, 140 "ListGroupResources":{ 141 "name":"ListGroupResources", 142 "http":{ 143 "method":"POST", 144 "requestUri":"/list-group-resources" 145 }, 146 "input":{"shape":"ListGroupResourcesInput"}, 147 "output":{"shape":"ListGroupResourcesOutput"}, 148 "errors":[ 149 {"shape":"UnauthorizedException"}, 150 {"shape":"BadRequestException"}, 151 {"shape":"ForbiddenException"}, 152 {"shape":"NotFoundException"}, 153 {"shape":"MethodNotAllowedException"}, 154 {"shape":"TooManyRequestsException"}, 155 {"shape":"InternalServerErrorException"} 156 ], 157 "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>" 158 }, 159 "ListGroups":{ 160 "name":"ListGroups", 161 "http":{ 162 "method":"POST", 163 "requestUri":"/groups-list" 164 }, 165 "input":{"shape":"ListGroupsInput"}, 166 "output":{"shape":"ListGroupsOutput"}, 167 "errors":[ 168 {"shape":"BadRequestException"}, 169 {"shape":"ForbiddenException"}, 170 {"shape":"MethodNotAllowedException"}, 171 {"shape":"TooManyRequestsException"}, 172 {"shape":"InternalServerErrorException"} 173 ], 174 "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>" 175 }, 176 "PutGroupConfiguration":{ 177 "name":"PutGroupConfiguration", 178 "http":{ 179 "method":"POST", 180 "requestUri":"/put-group-configuration", 181 "responseCode":202 182 }, 183 "input":{"shape":"PutGroupConfigurationInput"}, 184 "output":{"shape":"PutGroupConfigurationOutput"}, 185 "errors":[ 186 {"shape":"BadRequestException"}, 187 {"shape":"ForbiddenException"}, 188 {"shape":"NotFoundException"}, 189 {"shape":"MethodNotAllowedException"}, 190 {"shape":"TooManyRequestsException"}, 191 {"shape":"InternalServerErrorException"} 192 ], 193 "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>" 194 }, 195 "SearchResources":{ 196 "name":"SearchResources", 197 "http":{ 198 "method":"POST", 199 "requestUri":"/resources/search" 200 }, 201 "input":{"shape":"SearchResourcesInput"}, 202 "output":{"shape":"SearchResourcesOutput"}, 203 "errors":[ 204 {"shape":"UnauthorizedException"}, 205 {"shape":"BadRequestException"}, 206 {"shape":"ForbiddenException"}, 207 {"shape":"MethodNotAllowedException"}, 208 {"shape":"TooManyRequestsException"}, 209 {"shape":"InternalServerErrorException"} 210 ], 211 "documentation":"<p>Returns a list of AWS resource identifiers that matches the specified query. The query uses the same format as a resource query in a CreateGroup or UpdateGroupQuery 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>" 212 }, 213 "Tag":{ 214 "name":"Tag", 215 "http":{ 216 "method":"PUT", 217 "requestUri":"/resources/{Arn}/tags" 218 }, 219 "input":{"shape":"TagInput"}, 220 "output":{"shape":"TagOutput"}, 221 "errors":[ 222 {"shape":"BadRequestException"}, 223 {"shape":"ForbiddenException"}, 224 {"shape":"NotFoundException"}, 225 {"shape":"MethodNotAllowedException"}, 226 {"shape":"TooManyRequestsException"}, 227 {"shape":"InternalServerErrorException"} 228 ], 229 "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>" 230 }, 231 "UngroupResources":{ 232 "name":"UngroupResources", 233 "http":{ 234 "method":"POST", 235 "requestUri":"/ungroup-resources" 236 }, 237 "input":{"shape":"UngroupResourcesInput"}, 238 "output":{"shape":"UngroupResourcesOutput"}, 239 "errors":[ 240 {"shape":"BadRequestException"}, 241 {"shape":"ForbiddenException"}, 242 {"shape":"NotFoundException"}, 243 {"shape":"MethodNotAllowedException"}, 244 {"shape":"TooManyRequestsException"}, 245 {"shape":"InternalServerErrorException"} 246 ], 247 "documentation":"<p>Removes the specified resources from the specified 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:UngroupResources</code> </p> </li> </ul>" 248 }, 249 "Untag":{ 250 "name":"Untag", 251 "http":{ 252 "method":"PATCH", 253 "requestUri":"/resources/{Arn}/tags" 254 }, 255 "input":{"shape":"UntagInput"}, 256 "output":{"shape":"UntagOutput"}, 257 "errors":[ 258 {"shape":"BadRequestException"}, 259 {"shape":"ForbiddenException"}, 260 {"shape":"NotFoundException"}, 261 {"shape":"MethodNotAllowedException"}, 262 {"shape":"TooManyRequestsException"}, 263 {"shape":"InternalServerErrorException"} 264 ], 265 "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>" 266 }, 267 "UpdateGroup":{ 268 "name":"UpdateGroup", 269 "http":{ 270 "method":"POST", 271 "requestUri":"/update-group" 272 }, 273 "input":{"shape":"UpdateGroupInput"}, 274 "output":{"shape":"UpdateGroupOutput"}, 275 "errors":[ 276 {"shape":"BadRequestException"}, 277 {"shape":"ForbiddenException"}, 278 {"shape":"NotFoundException"}, 279 {"shape":"MethodNotAllowedException"}, 280 {"shape":"TooManyRequestsException"}, 281 {"shape":"InternalServerErrorException"} 282 ], 283 "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>" 284 }, 285 "UpdateGroupQuery":{ 286 "name":"UpdateGroupQuery", 287 "http":{ 288 "method":"POST", 289 "requestUri":"/update-group-query" 290 }, 291 "input":{"shape":"UpdateGroupQueryInput"}, 292 "output":{"shape":"UpdateGroupQueryOutput"}, 293 "errors":[ 294 {"shape":"BadRequestException"}, 295 {"shape":"ForbiddenException"}, 296 {"shape":"NotFoundException"}, 297 {"shape":"MethodNotAllowedException"}, 298 {"shape":"TooManyRequestsException"}, 299 {"shape":"InternalServerErrorException"} 300 ], 301 "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>" 302 } 303 }, 304 "shapes":{ 305 "BadRequestException":{ 306 "type":"structure", 307 "members":{ 308 "Message":{"shape":"ErrorMessage"} 309 }, 310 "documentation":"<p>The request includes one or more parameters that violate validation rules.</p>", 311 "error":{"httpStatusCode":400}, 312 "exception":true 313 }, 314 "CreateGroupInput":{ 315 "type":"structure", 316 "required":["Name"], 317 "members":{ 318 "Name":{ 319 "shape":"GroupName", 320 "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 AWS Region in your AWS account.</p>" 321 }, 322 "Description":{ 323 "shape":"Description", 324 "documentation":"<p>The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.</p>" 325 }, 326 "ResourceQuery":{ 327 "shape":"ResourceQuery", 328 "documentation":"<p>The resource query that determines which AWS 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>" 329 }, 330 "Tags":{ 331 "shape":"Tags", 332 "documentation":"<p>The tags to add to the group. A tag is key-value pair string.</p>" 333 }, 334 "Configuration":{ 335 "shape":"GroupConfigurationList", 336 "documentation":"<p>A configuration associates the resource group with an AWS 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>" 337 } 338 } 339 }, 340 "CreateGroupOutput":{ 341 "type":"structure", 342 "members":{ 343 "Group":{ 344 "shape":"Group", 345 "documentation":"<p>The description of the resource group.</p>" 346 }, 347 "ResourceQuery":{ 348 "shape":"ResourceQuery", 349 "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>" 350 }, 351 "Tags":{ 352 "shape":"Tags", 353 "documentation":"<p>The tags associated with the group.</p>" 354 }, 355 "GroupConfiguration":{ 356 "shape":"GroupConfiguration", 357 "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>" 358 } 359 } 360 }, 361 "DeleteGroupInput":{ 362 "type":"structure", 363 "members":{ 364 "GroupName":{ 365 "shape":"GroupName", 366 "documentation":"<p>Deprecated - don't use this parameter. Use <code>Group</code> instead.</p>", 367 "deprecated":true, 368 "deprecatedMessage":"This field is deprecated, use Group instead." 369 }, 370 "Group":{ 371 "shape":"GroupString", 372 "documentation":"<p>The name or the ARN of the resource group to delete.</p>" 373 } 374 } 375 }, 376 "DeleteGroupOutput":{ 377 "type":"structure", 378 "members":{ 379 "Group":{ 380 "shape":"Group", 381 "documentation":"<p>A full description of the deleted resource group.</p>" 382 } 383 } 384 }, 385 "Description":{ 386 "type":"string", 387 "max":512, 388 "pattern":"[\\sa-zA-Z0-9_\\.-]*" 389 }, 390 "ErrorCode":{ 391 "type":"string", 392 "max":128, 393 "min":1 394 }, 395 "ErrorMessage":{ 396 "type":"string", 397 "max":1024, 398 "min":1 399 }, 400 "FailedResource":{ 401 "type":"structure", 402 "members":{ 403 "ResourceArn":{ 404 "shape":"ResourceArn", 405 "documentation":"<p>The ARN of the resource that failed to be added or removed.</p>" 406 }, 407 "ErrorMessage":{ 408 "shape":"ErrorMessage", 409 "documentation":"<p>The error message text associated with the failure.</p>" 410 }, 411 "ErrorCode":{ 412 "shape":"ErrorCode", 413 "documentation":"<p>The error code associated with the failure.</p>" 414 } 415 }, 416 "documentation":"<p>A resource that failed to be added to or removed from a group.</p>" 417 }, 418 "FailedResourceList":{ 419 "type":"list", 420 "member":{"shape":"FailedResource"} 421 }, 422 "ForbiddenException":{ 423 "type":"structure", 424 "members":{ 425 "Message":{"shape":"ErrorMessage"} 426 }, 427 "documentation":"<p>The caller isn't authorized to make the request. Check permissions.</p>", 428 "error":{"httpStatusCode":403}, 429 "exception":true 430 }, 431 "GetGroupConfigurationInput":{ 432 "type":"structure", 433 "members":{ 434 "Group":{ 435 "shape":"GroupString", 436 "documentation":"<p>The name or the ARN of the resource group.</p>" 437 } 438 } 439 }, 440 "GetGroupConfigurationOutput":{ 441 "type":"structure", 442 "members":{ 443 "GroupConfiguration":{ 444 "shape":"GroupConfiguration", 445 "documentation":"<p>The service configuration associated 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>" 446 } 447 } 448 }, 449 "GetGroupInput":{ 450 "type":"structure", 451 "members":{ 452 "GroupName":{ 453 "shape":"GroupName", 454 "documentation":"<p>Deprecated - don't use this parameter. Use <code>Group</code> instead.</p>", 455 "deprecated":true, 456 "deprecatedMessage":"This field is deprecated, use Group instead." 457 }, 458 "Group":{ 459 "shape":"GroupString", 460 "documentation":"<p>The name or the ARN of the resource group to retrieve.</p>" 461 } 462 } 463 }, 464 "GetGroupOutput":{ 465 "type":"structure", 466 "members":{ 467 "Group":{ 468 "shape":"Group", 469 "documentation":"<p>A full description of the resource group.</p>" 470 } 471 } 472 }, 473 "GetGroupQueryInput":{ 474 "type":"structure", 475 "members":{ 476 "GroupName":{ 477 "shape":"GroupName", 478 "documentation":"<p>Don't use this parameter. Use <code>Group</code> instead.</p>", 479 "deprecated":true, 480 "deprecatedMessage":"This field is deprecated, use Group instead." 481 }, 482 "Group":{ 483 "shape":"GroupString", 484 "documentation":"<p>The name or the ARN of the resource group to query.</p>" 485 } 486 } 487 }, 488 "GetGroupQueryOutput":{ 489 "type":"structure", 490 "members":{ 491 "GroupQuery":{ 492 "shape":"GroupQuery", 493 "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>" 494 } 495 } 496 }, 497 "GetTagsInput":{ 498 "type":"structure", 499 "required":["Arn"], 500 "members":{ 501 "Arn":{ 502 "shape":"GroupArn", 503 "documentation":"<p>The ARN of the resource group whose tags you want to retrieve.</p>", 504 "location":"uri", 505 "locationName":"Arn" 506 } 507 } 508 }, 509 "GetTagsOutput":{ 510 "type":"structure", 511 "members":{ 512 "Arn":{ 513 "shape":"GroupArn", 514 "documentation":"<p>The ARN of the tagged resource group.</p>" 515 }, 516 "Tags":{ 517 "shape":"Tags", 518 "documentation":"<p>The tags associated with the specified resource group.</p>" 519 } 520 } 521 }, 522 "Group":{ 523 "type":"structure", 524 "required":[ 525 "GroupArn", 526 "Name" 527 ], 528 "members":{ 529 "GroupArn":{ 530 "shape":"GroupArn", 531 "documentation":"<p>The ARN of the resource group.</p>" 532 }, 533 "Name":{ 534 "shape":"GroupName", 535 "documentation":"<p>The name of the resource group.</p>" 536 }, 537 "Description":{ 538 "shape":"Description", 539 "documentation":"<p>The description of the resource group.</p>" 540 } 541 }, 542 "documentation":"<p>A resource group that contains AWS 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 AWS Region and AWS 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 AWS service. The configuration specifies which resource types can be included in the group.</p> </li> </ul>" 543 }, 544 "GroupArn":{ 545 "type":"string", 546 "max":1600, 547 "min":12, 548 "pattern":"arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/[a-zA-Z0-9_\\.-]{1,128}" 549 }, 550 "GroupConfiguration":{ 551 "type":"structure", 552 "members":{ 553 "Configuration":{ 554 "shape":"GroupConfigurationList", 555 "documentation":"<p>The configuration currently associated with the group and in effect.</p>" 556 }, 557 "ProposedConfiguration":{ 558 "shape":"GroupConfigurationList", 559 "documentation":"<p>If present, the new configuration that is in the process of being applied to the group.</p>" 560 }, 561 "Status":{ 562 "shape":"GroupConfigurationStatus", 563 "documentation":"<p>The current status of an attempt to update the group configuration.</p>" 564 }, 565 "FailureReason":{ 566 "shape":"GroupConfigurationFailureReason", 567 "documentation":"<p>If present, the reason why a request to update the group configuration failed.</p>" 568 } 569 }, 570 "documentation":"<p>A service configuration associated with a resource group. The configuration options are determined by the AWS 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>" 571 }, 572 "GroupConfigurationFailureReason":{"type":"string"}, 573 "GroupConfigurationItem":{ 574 "type":"structure", 575 "required":["Type"], 576 "members":{ 577 "Type":{ 578 "shape":"GroupConfigurationType", 579 "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>" 580 }, 581 "Parameters":{ 582 "shape":"GroupParameterList", 583 "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>" 584 } 585 }, 586 "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>" 587 }, 588 "GroupConfigurationList":{ 589 "type":"list", 590 "member":{"shape":"GroupConfigurationItem"}, 591 "max":2 592 }, 593 "GroupConfigurationParameter":{ 594 "type":"structure", 595 "required":["Name"], 596 "members":{ 597 "Name":{ 598 "shape":"GroupConfigurationParameterName", 599 "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>" 600 }, 601 "Values":{ 602 "shape":"GroupConfigurationParameterValueList", 603 "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>" 604 } 605 }, 606 "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>" 607 }, 608 "GroupConfigurationParameterName":{ 609 "type":"string", 610 "max":80, 611 "min":1, 612 "pattern":"[a-z-]+" 613 }, 614 "GroupConfigurationParameterValue":{ 615 "type":"string", 616 "max":256, 617 "min":1, 618 "pattern":"[a-zA-Z0-9:_-]+" 619 }, 620 "GroupConfigurationParameterValueList":{ 621 "type":"list", 622 "member":{"shape":"GroupConfigurationParameterValue"} 623 }, 624 "GroupConfigurationStatus":{ 625 "type":"string", 626 "enum":[ 627 "UPDATING", 628 "UPDATE_COMPLETE", 629 "UPDATE_FAILED" 630 ] 631 }, 632 "GroupConfigurationType":{ 633 "type":"string", 634 "max":40, 635 "pattern":"AWS::[a-zA-Z0-9]+::[a-zA-Z0-9]+" 636 }, 637 "GroupFilter":{ 638 "type":"structure", 639 "required":[ 640 "Name", 641 "Values" 642 ], 643 "members":{ 644 "Name":{ 645 "shape":"GroupFilterName", 646 "documentation":"<p>The name of the filter. Filter names are case-sensitive.</p>" 647 }, 648 "Values":{ 649 "shape":"GroupFilterValues", 650 "documentation":"<p>One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.</p>" 651 } 652 }, 653 "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>" 654 }, 655 "GroupFilterList":{ 656 "type":"list", 657 "member":{"shape":"GroupFilter"} 658 }, 659 "GroupFilterName":{ 660 "type":"string", 661 "enum":[ 662 "resource-type", 663 "configuration-type" 664 ] 665 }, 666 "GroupFilterValue":{ 667 "type":"string", 668 "max":128, 669 "min":1, 670 "pattern":"AWS::(AllSupported|[a-zA-Z0-9]+::[a-zA-Z0-9]+)" 671 }, 672 "GroupFilterValues":{ 673 "type":"list", 674 "member":{"shape":"GroupFilterValue"}, 675 "max":5, 676 "min":1 677 }, 678 "GroupIdentifier":{ 679 "type":"structure", 680 "members":{ 681 "GroupName":{ 682 "shape":"GroupName", 683 "documentation":"<p>The name of the resource group.</p>" 684 }, 685 "GroupArn":{ 686 "shape":"GroupArn", 687 "documentation":"<p>The ARN of the resource group.</p>" 688 } 689 }, 690 "documentation":"<p>The unique identifiers for a resource group.</p>" 691 }, 692 "GroupIdentifierList":{ 693 "type":"list", 694 "member":{"shape":"GroupIdentifier"} 695 }, 696 "GroupList":{ 697 "type":"list", 698 "member":{"shape":"Group"} 699 }, 700 "GroupName":{ 701 "type":"string", 702 "max":128, 703 "min":1, 704 "pattern":"[a-zA-Z0-9_\\.-]+" 705 }, 706 "GroupParameterList":{ 707 "type":"list", 708 "member":{"shape":"GroupConfigurationParameter"} 709 }, 710 "GroupQuery":{ 711 "type":"structure", 712 "required":[ 713 "GroupName", 714 "ResourceQuery" 715 ], 716 "members":{ 717 "GroupName":{ 718 "shape":"GroupName", 719 "documentation":"<p>The name of the resource group that is associated with the specified resource query.</p>" 720 }, 721 "ResourceQuery":{ 722 "shape":"ResourceQuery", 723 "documentation":"<p>The resource query that determines which AWS resources are members of the associated resource group.</p>" 724 } 725 }, 726 "documentation":"<p>A mapping of a query attached to a resource group that determines the AWS resources that are members of the group.</p>" 727 }, 728 "GroupResourcesInput":{ 729 "type":"structure", 730 "required":[ 731 "Group", 732 "ResourceArns" 733 ], 734 "members":{ 735 "Group":{ 736 "shape":"GroupString", 737 "documentation":"<p>The name or the ARN of the resource group to add resources to.</p>" 738 }, 739 "ResourceArns":{ 740 "shape":"ResourceArnList", 741 "documentation":"<p>The list of ARNs for resources to be added to the group. </p>" 742 } 743 } 744 }, 745 "GroupResourcesOutput":{ 746 "type":"structure", 747 "members":{ 748 "Succeeded":{ 749 "shape":"ResourceArnList", 750 "documentation":"<p>A list of ARNs of resources that were successfully added to the group by this operation.</p>" 751 }, 752 "Failed":{ 753 "shape":"FailedResourceList", 754 "documentation":"<p>A list of ARNs of any resources that failed to be added to the group by this operation.</p>" 755 }, 756 "Pending":{ 757 "shape":"PendingResourceList", 758 "documentation":"<p>A list of ARNs of any resources that are still in the process of being added to the group by this operation. 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>" 759 } 760 } 761 }, 762 "GroupString":{ 763 "type":"string", 764 "max":1600, 765 "min":1, 766 "pattern":"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\\.-]{1,128}" 767 }, 768 "InternalServerErrorException":{ 769 "type":"structure", 770 "members":{ 771 "Message":{"shape":"ErrorMessage"} 772 }, 773 "documentation":"<p>An internal error occurred while processing the request. Try again later.</p>", 774 "error":{"httpStatusCode":500}, 775 "exception":true 776 }, 777 "ListGroupResourcesInput":{ 778 "type":"structure", 779 "members":{ 780 "GroupName":{ 781 "shape":"GroupName", 782 "documentation":"<important> <p> <i> <b>Deprecated - don't use this parameter. Use the <code>Group</code> request field instead.</b> </i> </p> </important>", 783 "deprecated":true, 784 "deprecatedMessage":"This field is deprecated, use Group instead." 785 }, 786 "Group":{ 787 "shape":"GroupString", 788 "documentation":"<p>The name or the ARN of the resource group</p>" 789 }, 790 "Filters":{ 791 "shape":"ResourceFilterList", 792 "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>, AWS 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 AWS CloudFormation stack-based queries).</p>" 793 }, 794 "MaxResults":{ 795 "shape":"MaxResults", 796 "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>" 797 }, 798 "NextToken":{ 799 "shape":"NextToken", 800 "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>" 801 } 802 } 803 }, 804 "ListGroupResourcesItem":{ 805 "type":"structure", 806 "members":{ 807 "Identifier":{"shape":"ResourceIdentifier"}, 808 "Status":{ 809 "shape":"ResourceStatus", 810 "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>" 811 } 812 }, 813 "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>" 814 }, 815 "ListGroupResourcesItemList":{ 816 "type":"list", 817 "member":{"shape":"ListGroupResourcesItem"} 818 }, 819 "ListGroupResourcesOutput":{ 820 "type":"structure", 821 "members":{ 822 "Resources":{ 823 "shape":"ListGroupResourcesItemList", 824 "documentation":"<p>An array of resources from which you can determine each resource's identity, type, and group membership status.</p>" 825 }, 826 "ResourceIdentifiers":{ 827 "shape":"ResourceIdentifierList", 828 "documentation":"<important> <p> <b> <i>Deprecated - don't use this parameter. Use the <code>Resources</code> response field instead.</i> </b> </p> </important>", 829 "deprecated":true, 830 "deprecatedMessage":"This field is deprecated, use Resources instead." 831 }, 832 "NextToken":{ 833 "shape":"NextToken", 834 "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>" 835 }, 836 "QueryErrors":{ 837 "shape":"QueryErrorList", 838 "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>" 839 } 840 } 841 }, 842 "ListGroupsInput":{ 843 "type":"structure", 844 "members":{ 845 "Filters":{ 846 "shape":"GroupFilterList", 847 "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>" 848 }, 849 "MaxResults":{ 850 "shape":"MaxResults", 851 "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>", 852 "location":"querystring", 853 "locationName":"maxResults" 854 }, 855 "NextToken":{ 856 "shape":"NextToken", 857 "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>", 858 "location":"querystring", 859 "locationName":"nextToken" 860 } 861 } 862 }, 863 "ListGroupsOutput":{ 864 "type":"structure", 865 "members":{ 866 "GroupIdentifiers":{ 867 "shape":"GroupIdentifierList", 868 "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>" 869 }, 870 "Groups":{ 871 "shape":"GroupList", 872 "documentation":"<important> <p> <i> <b>Deprecated - don't use this field. Use the <code>GroupIdentifiers</code> response field instead.</b> </i> </p> </important>", 873 "deprecated":true, 874 "deprecatedMessage":"This field is deprecated, use GroupIdentifiers instead." 875 }, 876 "NextToken":{ 877 "shape":"NextToken", 878 "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>" 879 } 880 } 881 }, 882 "MaxResults":{ 883 "type":"integer", 884 "max":50, 885 "min":1 886 }, 887 "MethodNotAllowedException":{ 888 "type":"structure", 889 "members":{ 890 "Message":{"shape":"ErrorMessage"} 891 }, 892 "documentation":"<p>The request uses an HTTP method that isn't allowed for the specified resource.</p>", 893 "error":{"httpStatusCode":405}, 894 "exception":true 895 }, 896 "NextToken":{ 897 "type":"string", 898 "max":8192, 899 "min":0, 900 "pattern":"^[a-zA-Z0-9+/]*={0,2}$" 901 }, 902 "NotFoundException":{ 903 "type":"structure", 904 "members":{ 905 "Message":{"shape":"ErrorMessage"} 906 }, 907 "documentation":"<p>One or more of the specified resources don't exist.</p>", 908 "error":{"httpStatusCode":404}, 909 "exception":true 910 }, 911 "PendingResource":{ 912 "type":"structure", 913 "members":{ 914 "ResourceArn":{ 915 "shape":"ResourceArn", 916 "documentation":"<p>The Amazon resource name (ARN) of the resource that's in a pending state.</p>" 917 } 918 }, 919 "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>" 920 }, 921 "PendingResourceList":{ 922 "type":"list", 923 "member":{"shape":"PendingResource"} 924 }, 925 "PutGroupConfigurationInput":{ 926 "type":"structure", 927 "members":{ 928 "Group":{ 929 "shape":"GroupString", 930 "documentation":"<p>The name or ARN of the resource group with the configuration that you want to update.</p>" 931 }, 932 "Configuration":{ 933 "shape":"GroupConfigurationList", 934 "documentation":"<p>The new configuration to associate with the specified group. A configuration associates the resource group with an AWS 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>" 935 } 936 } 937 }, 938 "PutGroupConfigurationOutput":{ 939 "type":"structure", 940 "members":{ 941 } 942 }, 943 "Query":{ 944 "type":"string", 945 "max":4096, 946 "pattern":"[\\s\\S]*" 947 }, 948 "QueryError":{ 949 "type":"structure", 950 "members":{ 951 "ErrorCode":{ 952 "shape":"QueryErrorCode", 953 "documentation":"<p>Possible values are <code>CLOUDFORMATION_STACK_INACTIVE</code> and <code>CLOUDFORMATION_STACK_NOT_EXISTING</code>.</p>" 954 }, 955 "Message":{ 956 "shape":"QueryErrorMessage", 957 "documentation":"<p>A message that explains the <code>ErrorCode</code> value. Messages might state that the specified CloudFormation stack does not exist (or no longer exists). For <code>CLOUDFORMATION_STACK_INACTIVE</code>, the message typically states that the CloudFormation stack has a status that is not (or no longer) active, such as <code>CREATE_FAILED</code>.</p>" 958 } 959 }, 960 "documentation":"<p>A two-part error structure that can occur in <code>ListGroupResources</code> or <code>SearchResources</code> operations on CloudFormation stack-based queries. The error occurs if the CloudFormation 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 AWS Resource Groups could not complete the operation, but the resulting group might have no member resources.</p>" 961 }, 962 "QueryErrorCode":{ 963 "type":"string", 964 "enum":[ 965 "CLOUDFORMATION_STACK_INACTIVE", 966 "CLOUDFORMATION_STACK_NOT_EXISTING" 967 ] 968 }, 969 "QueryErrorList":{ 970 "type":"list", 971 "member":{"shape":"QueryError"} 972 }, 973 "QueryErrorMessage":{"type":"string"}, 974 "QueryType":{ 975 "type":"string", 976 "enum":[ 977 "TAG_FILTERS_1_0", 978 "CLOUDFORMATION_STACK_1_0" 979 ], 980 "max":128, 981 "min":1, 982 "pattern":"^\\w+$" 983 }, 984 "ResourceArn":{ 985 "type":"string", 986 "pattern":"arn:aws(-[a-z]+)*:[a-z0-9\\-]*:([a-z]{2}(-[a-z]+)+-\\d{1})?:([0-9]{12})?:.+" 987 }, 988 "ResourceArnList":{ 989 "type":"list", 990 "member":{"shape":"ResourceArn"}, 991 "max":10, 992 "min":1 993 }, 994 "ResourceFilter":{ 995 "type":"structure", 996 "required":[ 997 "Name", 998 "Values" 999 ], 1000 "members":{ 1001 "Name":{ 1002 "shape":"ResourceFilterName", 1003 "documentation":"<p>The name of the filter. Filter names are case-sensitive.</p>" 1004 }, 1005 "Values":{ 1006 "shape":"ResourceFilterValues", 1007 "documentation":"<p>One or more filter values. Allowed filter values vary by resource filter name, and are case-sensitive.</p>" 1008 } 1009 }, 1010 "documentation":"<p>A filter name and value pair that is used to obtain more specific results from a list of resources.</p>" 1011 }, 1012 "ResourceFilterList":{ 1013 "type":"list", 1014 "member":{"shape":"ResourceFilter"} 1015 }, 1016 "ResourceFilterName":{ 1017 "type":"string", 1018 "enum":["resource-type"] 1019 }, 1020 "ResourceFilterValue":{ 1021 "type":"string", 1022 "max":128, 1023 "min":1, 1024 "pattern":"AWS::[a-zA-Z0-9]+::[a-zA-Z0-9]+" 1025 }, 1026 "ResourceFilterValues":{ 1027 "type":"list", 1028 "member":{"shape":"ResourceFilterValue"}, 1029 "max":5, 1030 "min":1 1031 }, 1032 "ResourceIdentifier":{ 1033 "type":"structure", 1034 "members":{ 1035 "ResourceArn":{ 1036 "shape":"ResourceArn", 1037 "documentation":"<p>The ARN of a resource.</p>" 1038 }, 1039 "ResourceType":{ 1040 "shape":"ResourceType", 1041 "documentation":"<p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>" 1042 } 1043 }, 1044 "documentation":"<p>A structure that contains the ARN of a resource and its resource type.</p>" 1045 }, 1046 "ResourceIdentifierList":{ 1047 "type":"list", 1048 "member":{"shape":"ResourceIdentifier"} 1049 }, 1050 "ResourceQuery":{ 1051 "type":"structure", 1052 "required":[ 1053 "Type", 1054 "Query" 1055 ], 1056 "members":{ 1057 "Type":{ 1058 "shape":"QueryType", 1059 "documentation":"<p>The type of the query. You can use the following values:</p> <ul> <li> <p> <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i>Specifies that the <code>Query</code> contains an ARN for a CloudFormation stack.</p> </li> <li> <p> <i> <code>TAG_FILTERS_1_0:</code> </i>Specifies that the <code>Query</code> parameter contains a JSON string that represents a collection of simple tag filters for resource types and tags. 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 query could include the following.</p> <ul> <li> <p>An 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 query would not include the following items in the results, however. </p> <ul> <li> <p>An 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> </li> </ul>" 1060 }, 1061 "Query":{ 1062 "shape":"Query", 1063 "documentation":"<p>The query that defines a group or a search.</p>" 1064 } 1065 }, 1066 "documentation":"<p>The query that is used to define a resource group or a search for resources. A query specifies both a query type and a query string as a JSON object. See the examples section for example JSON strings.</p> <p>The examples that follow are shown as standard JSON strings. If you include such a string as a parameter to the AWS CLI or an SDK API, you might need to 'escape' the string into a single line. For example, see the <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html\">Quoting strings</a> in the <i>AWS CLI User Guide</i>.</p> <p> <b>Example 1</b> </p> <p>The following generic example shows a resource query JSON string that includes only resources that meet the following criteria:</p> <ul> <li> <p>The resource type must be either <code>resource_type1</code> or <code>resource_type2</code>.</p> </li> <li> <p>The resource must have a tag <code>Key1</code> with a value of either <code>ValueA</code> or <code>ValueB</code>.</p> </li> <li> <p>The resource must have a tag <code>Key2</code> with a value of either <code>ValueC</code> or <code>ValueD</code>.</p> </li> </ul> <p> <code>{ \"Type\": \"TAG_FILTERS_1_0\", \"Query\": { \"ResourceTypeFilters\": [ \"resource_type1\", \"resource_type2\"], \"TagFilters\": [ { \"Key\": \"Key1\", \"Values\": [\"ValueA\",\"ValueB\"] }, { \"Key\":\"Key2\", \"Values\":[\"ValueC\",\"ValueD\"] } ] } }</code> </p> <p>This has the equivalent \"shortcut\" syntax of the following:</p> <p> <code>{ \"Type\": \"TAG_FILTERS_1_0\", \"Query\": { \"ResourceTypeFilters\": [ \"resource_type1\", \"resource_type2\"], \"TagFilters\": [ { \"Key1\": [\"ValueA\",\"ValueB\"] }, { \"Key2\": [\"ValueC\",\"ValueD\"] } ] } }</code> </p> <p> <b>Example 2</b> </p> <p>The following example shows a resource query JSON string that includes only Amazon EC2 instances that are tagged <code>Stage</code> with a value of <code>Test</code>.</p> <p> <code>{ \"Type\": \"TAG_FILTERS_1_0\", \"Query\": \"{ \"ResourceTypeFilters\": \"AWS::EC2::Instance\", \"TagFilters\": { \"Stage\": \"Test\" } } }</code> </p> <p> <b>Example 3</b> </p> <p>The following example shows a resource query JSON string that includes resource of any supported type as long as it is tagged <code>Stage</code> with a value of <code>Prod</code>.</p> <p> <code>{ \"Type\": \"TAG_FILTERS_1_0\", \"Query\": { \"ResourceTypeFilters\": \"AWS::AllSupported\", \"TagFilters\": { \"Stage\": \"Prod\" } } }</code> </p> <p> <b>Example 4</b> </p> <p>The following example shows a resource query JSON string that includes only Amazon EC2 instances and Amazon S3 buckets that are part of the specified AWS CloudFormation stack.</p> <p> <code>{ \"Type\": \"CLOUDFORMATION_STACK_1_0\", \"Query\": { \"ResourceTypeFilters\": [ \"AWS::EC2::Instance\", \"AWS::S3::Bucket\" ], \"StackIdentifier\": \"arn:aws:cloudformation:us-west-2:123456789012:stack/AWStestuseraccount/fb0d5000-aba8-00e8-aa9e-50d5cEXAMPLE\" } }</code> </p>" 1067 }, 1068 "ResourceStatus":{ 1069 "type":"structure", 1070 "members":{ 1071 "Name":{ 1072 "shape":"ResourceStatusValue", 1073 "documentation":"<p>The current status.</p>" 1074 } 1075 }, 1076 "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>" 1077 }, 1078 "ResourceStatusValue":{ 1079 "type":"string", 1080 "enum":["PENDING"] 1081 }, 1082 "ResourceType":{ 1083 "type":"string", 1084 "pattern":"AWS::[a-zA-Z0-9]+::\\w+" 1085 }, 1086 "SearchResourcesInput":{ 1087 "type":"structure", 1088 "required":["ResourceQuery"], 1089 "members":{ 1090 "ResourceQuery":{ 1091 "shape":"ResourceQuery", 1092 "documentation":"<p>The search query, using the same formats that are supported for resource group definition. For more information, see <a>CreateGroup</a>.</p>" 1093 }, 1094 "MaxResults":{ 1095 "shape":"MaxResults", 1096 "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>" 1097 }, 1098 "NextToken":{ 1099 "shape":"NextToken", 1100 "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>" 1101 } 1102 } 1103 }, 1104 "SearchResourcesOutput":{ 1105 "type":"structure", 1106 "members":{ 1107 "ResourceIdentifiers":{ 1108 "shape":"ResourceIdentifierList", 1109 "documentation":"<p>The ARNs and resource types of resources that are members of the group that you specified.</p>" 1110 }, 1111 "NextToken":{ 1112 "shape":"NextToken", 1113 "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>" 1114 }, 1115 "QueryErrors":{ 1116 "shape":"QueryErrorList", 1117 "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>" 1118 } 1119 } 1120 }, 1121 "TagInput":{ 1122 "type":"structure", 1123 "required":[ 1124 "Arn", 1125 "Tags" 1126 ], 1127 "members":{ 1128 "Arn":{ 1129 "shape":"GroupArn", 1130 "documentation":"<p>The ARN of the resource group to which to add tags.</p>", 1131 "location":"uri", 1132 "locationName":"Arn" 1133 }, 1134 "Tags":{ 1135 "shape":"Tags", 1136 "documentation":"<p>The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.</p>" 1137 } 1138 } 1139 }, 1140 "TagKey":{ 1141 "type":"string", 1142 "max":128, 1143 "min":1, 1144 "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" 1145 }, 1146 "TagKeyList":{ 1147 "type":"list", 1148 "member":{"shape":"TagKey"} 1149 }, 1150 "TagOutput":{ 1151 "type":"structure", 1152 "members":{ 1153 "Arn":{ 1154 "shape":"GroupArn", 1155 "documentation":"<p>The ARN of the tagged resource.</p>" 1156 }, 1157 "Tags":{ 1158 "shape":"Tags", 1159 "documentation":"<p>The tags that have been added to the specified resource group.</p>" 1160 } 1161 } 1162 }, 1163 "TagValue":{ 1164 "type":"string", 1165 "max":256, 1166 "min":0, 1167 "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" 1168 }, 1169 "Tags":{ 1170 "type":"map", 1171 "key":{"shape":"TagKey"}, 1172 "value":{"shape":"TagValue"} 1173 }, 1174 "TooManyRequestsException":{ 1175 "type":"structure", 1176 "members":{ 1177 "Message":{"shape":"ErrorMessage"} 1178 }, 1179 "documentation":"<p>You've exceeded throttling limits by making too many requests in a period of time.</p>", 1180 "error":{"httpStatusCode":429}, 1181 "exception":true 1182 }, 1183 "UnauthorizedException":{ 1184 "type":"structure", 1185 "members":{ 1186 "Message":{"shape":"ErrorMessage"} 1187 }, 1188 "documentation":"<p>The request was rejected because it doesn't have valid credentials for the target resource.</p>", 1189 "error":{"httpStatusCode":401}, 1190 "exception":true 1191 }, 1192 "UngroupResourcesInput":{ 1193 "type":"structure", 1194 "required":[ 1195 "Group", 1196 "ResourceArns" 1197 ], 1198 "members":{ 1199 "Group":{ 1200 "shape":"GroupString", 1201 "documentation":"<p>The name or the ARN of the resource group from which to remove the resources.</p>" 1202 }, 1203 "ResourceArns":{ 1204 "shape":"ResourceArnList", 1205 "documentation":"<p>The ARNs of the resources to be removed from the group.</p>" 1206 } 1207 } 1208 }, 1209 "UngroupResourcesOutput":{ 1210 "type":"structure", 1211 "members":{ 1212 "Succeeded":{ 1213 "shape":"ResourceArnList", 1214 "documentation":"<p>A list of resources that were successfully removed from the group by this operation.</p>" 1215 }, 1216 "Failed":{ 1217 "shape":"FailedResourceList", 1218 "documentation":"<p>A list of any resources that failed to be removed from the group by this operation.</p>" 1219 }, 1220 "Pending":{ 1221 "shape":"PendingResourceList", 1222 "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>" 1223 } 1224 } 1225 }, 1226 "UntagInput":{ 1227 "type":"structure", 1228 "required":[ 1229 "Arn", 1230 "Keys" 1231 ], 1232 "members":{ 1233 "Arn":{ 1234 "shape":"GroupArn", 1235 "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>", 1236 "location":"uri", 1237 "locationName":"Arn" 1238 }, 1239 "Keys":{ 1240 "shape":"TagKeyList", 1241 "documentation":"<p>The keys of the tags to be removed.</p>" 1242 } 1243 } 1244 }, 1245 "UntagOutput":{ 1246 "type":"structure", 1247 "members":{ 1248 "Arn":{ 1249 "shape":"GroupArn", 1250 "documentation":"<p>The ARN of the resource group from which tags have been removed.</p>" 1251 }, 1252 "Keys":{ 1253 "shape":"TagKeyList", 1254 "documentation":"<p>The keys of the tags that were removed.</p>" 1255 } 1256 } 1257 }, 1258 "UpdateGroupInput":{ 1259 "type":"structure", 1260 "members":{ 1261 "GroupName":{ 1262 "shape":"GroupName", 1263 "documentation":"<p>Don't use this parameter. Use <code>Group</code> instead.</p>", 1264 "deprecated":true, 1265 "deprecatedMessage":"This field is deprecated, use Group instead." 1266 }, 1267 "Group":{ 1268 "shape":"GroupString", 1269 "documentation":"<p>The name or the ARN of the resource group to modify.</p>" 1270 }, 1271 "Description":{ 1272 "shape":"Description", 1273 "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>" 1274 } 1275 } 1276 }, 1277 "UpdateGroupOutput":{ 1278 "type":"structure", 1279 "members":{ 1280 "Group":{ 1281 "shape":"Group", 1282 "documentation":"<p>The update description of the resource group.</p>" 1283 } 1284 } 1285 }, 1286 "UpdateGroupQueryInput":{ 1287 "type":"structure", 1288 "required":["ResourceQuery"], 1289 "members":{ 1290 "GroupName":{ 1291 "shape":"GroupName", 1292 "documentation":"<p>Don't use this parameter. Use <code>Group</code> instead.</p>", 1293 "deprecated":true, 1294 "deprecatedMessage":"This field is deprecated, use Group instead." 1295 }, 1296 "Group":{ 1297 "shape":"GroupString", 1298 "documentation":"<p>The name or the ARN of the resource group to query.</p>" 1299 }, 1300 "ResourceQuery":{ 1301 "shape":"ResourceQuery", 1302 "documentation":"<p>The resource query to determine which AWS 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>" 1303 } 1304 } 1305 }, 1306 "UpdateGroupQueryOutput":{ 1307 "type":"structure", 1308 "members":{ 1309 "GroupQuery":{ 1310 "shape":"GroupQuery", 1311 "documentation":"<p>The updated resource query associated with the resource group after the update.</p>" 1312 } 1313 } 1314 } 1315 }, 1316 "documentation":"<fullname>AWS Resource Groups</fullname> <p>AWS Resource Groups lets you organize AWS resources such as Amazon EC2 instances, Amazon Relational Database Service databases, and Amazon S3 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 AWS Systems Manager Automation documents, on tag-related resources in AWS Systems Manager. Groups of tagged resources also let you quickly view a custom console in AWS Systems Manager that shows AWS 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\">AWS Resource Groups User Guide</a>.</p> <p>AWS 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 AWS resources based on a resource query</p> </li> </ul>" 1317} 1318