Skip to content

Commit 191b7f0

Browse files
author
AWS
committed
AWS Resource Groups Update: The AWS Resource Groups service increased the query size limit to 4096 bytes.
1 parent 5c032e3 commit 191b7f0

File tree

2 files changed

+28
-11
lines changed

2 files changed

+28
-11
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"category": "AWS Resource Groups",
3+
"type": "feature",
4+
"description": "The AWS Resource Groups service increased the query size limit to 4096 bytes."
5+
}

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

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
{"shape":"TooManyRequestsException"},
100100
{"shape":"InternalServerErrorException"}
101101
],
102-
"documentation":"<p>Returns a list of tags that are associated with a resource, specified by an ARN.</p>"
102+
"documentation":"<p>Returns a list of tags that are associated with a resource group, specified by an ARN.</p>"
103103
},
104104
"ListGroupResources":{
105105
"name":"ListGroupResources",
@@ -363,7 +363,7 @@
363363
"members":{
364364
"Arn":{
365365
"shape":"GroupArn",
366-
"documentation":"<p>The ARN of the resource for which you want a list of tags. The resource must exist within the account you are using.</p>",
366+
"documentation":"<p>The ARN of the resource group for which you want a list of tags. The resource must exist within the account you are using.</p>",
367367
"location":"uri",
368368
"locationName":"Arn"
369369
}
@@ -374,11 +374,11 @@
374374
"members":{
375375
"Arn":{
376376
"shape":"GroupArn",
377-
"documentation":"<p>The ARN of the tagged resource.</p>"
377+
"documentation":"<p>The ARN of the tagged resource group.</p>"
378378
},
379379
"Tags":{
380380
"shape":"Tags",
381-
"documentation":"<p>The tags associated with the specified resource.</p>"
381+
"documentation":"<p>The tags associated with the specified resource group.</p>"
382382
}
383383
}
384384
},
@@ -406,7 +406,9 @@
406406
},
407407
"GroupArn":{
408408
"type":"string",
409-
"pattern":"arn:aws:resource-groups:[a-z]{2}-[a-z]+-\\d{1}:[0-9]{12}:group/[a-zA-Z0-9_\\.-]{1,128}"
409+
"max":1600,
410+
"min":12,
411+
"pattern":"arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}-[a-z]+-\\d{1}:[0-9]{12}:group/[a-zA-Z0-9_\\.-]{1,128}"
410412
},
411413
"GroupDescription":{
412414
"type":"string",
@@ -442,7 +444,8 @@
442444
"GroupFilterValue":{
443445
"type":"string",
444446
"max":128,
445-
"min":1
447+
"min":1,
448+
"pattern":"AWS::(AllSupported|[a-zA-Z0-9]+::[a-zA-Z0-9]+)"
446449
},
447450
"GroupFilterValues":{
448451
"type":"list",
@@ -604,7 +607,12 @@
604607
"error":{"httpStatusCode":405},
605608
"exception":true
606609
},
607-
"NextToken":{"type":"string"},
610+
"NextToken":{
611+
"type":"string",
612+
"max":8192,
613+
"min":0,
614+
"pattern":"^[a-zA-Z0-9+/]*={0,2}$"
615+
},
608616
"NotFoundException":{
609617
"type":"structure",
610618
"members":{
@@ -616,7 +624,8 @@
616624
},
617625
"Query":{
618626
"type":"string",
619-
"max":2048
627+
"max":4096,
628+
"pattern":"[\\s\\S]*"
620629
},
621630
"QueryError":{
622631
"type":"structure",
@@ -649,11 +658,14 @@
649658
"enum":[
650659
"TAG_FILTERS_1_0",
651660
"CLOUDFORMATION_STACK_1_0"
652-
]
661+
],
662+
"max":128,
663+
"min":1,
664+
"pattern":"^\\w+$"
653665
},
654666
"ResourceArn":{
655667
"type":"string",
656-
"pattern":"arn:aws:[a-z0-9\\-]*:([a-z]{2}-[a-z]+-\\d{1})?:([0-9]{12})?:.+"
668+
"pattern":"arn:aws(-[a-z]+)*:[a-z0-9\\-]*:([a-z]{2}-[a-z]+-\\d{1})?:([0-9]{12})?:.+"
657669
},
658670
"ResourceFilter":{
659671
"type":"structure",
@@ -720,7 +732,7 @@
720732
"members":{
721733
"Type":{
722734
"shape":"QueryType",
723-
"documentation":"<p>The type of the query. The valid values in this release are <code>TAG_FILTERS_1_0</code> and <code>CLOUDFORMATION_STACK_1_0</code>.</p> <p> <i> <code>TAG_FILTERS_1_0:</code> </i> A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html\">GetResources</a> operation. 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. (<code>[{\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]},{\"Key\":\"Version\",\"Values\":[\"1\",\"2\"]}]</code>) The results of this query might include the following.</p> <ul> <li> <p>An EC2 instance that has the following two tags: <code>{\"Key\":\"Stage\",\"Values\":[\"Deploy\"]}</code>, and <code>{\"Key\":\"Version\",\"Values\":[\"2\"]}</code> </p> </li> <li> <p>An S3 bucket that has the following two tags: {\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]}, and {\"Key\":\"Version\",\"Values\":[\"1\"]}</p> </li> </ul> <p>The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.</p> <ul> <li> <p>An EC2 instance that has only the following tag: <code>{\"Key\":\"Stage\",\"Values\":[\"Deploy\"]}</code>.</p> </li> <li> <p>An RDS database that has the following two tags: <code>{\"Key\":\"Stage\",\"Values\":[\"Archived\"]}</code>, and <code>{\"Key\":\"Version\",\"Values\":[\"4\"]}</code> </p> </li> </ul> <p> <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> A JSON syntax that lets you specify a CloudFormation stack ARN.</p>"
735+
"documentation":"<p>The type of the query. The valid values in this release are <code>TAG_FILTERS_1_0</code> and <code>CLOUDFORMATION_STACK_1_0</code>.</p> <p> <i> <code>TAG_FILTERS_1_0:</code> </i> A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html\">GetResources</a> operation. 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. (<code>[{\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]},{\"Key\":\"Version\",\"Values\":[\"1\",\"2\"]}]</code>) The results of this query might include the following.</p> <ul> <li> <p>An EC2 instance that has the following two tags: <code>{\"Key\":\"Stage\",\"Value\":\"Deploy\"}</code>, and <code>{\"Key\":\"Version\",\"Value\":\"2\"}</code> </p> </li> <li> <p>An S3 bucket that has the following two tags: {\"Key\":\"Stage\",\"Value\":\"Test\"}, and {\"Key\":\"Version\",\"Value\":\"1\"}</p> </li> </ul> <p>The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.</p> <ul> <li> <p>An EC2 instance that has only the following tag: <code>{\"Key\":\"Stage\",\"Value\":\"Deploy\"}</code>.</p> </li> <li> <p>An RDS database that has the following two tags: <code>{\"Key\":\"Stage\",\"Value\":\"Archived\"}</code>, and <code>{\"Key\":\"Version\",\"Value\":\"4\"}</code> </p> </li> </ul> <p> <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> A JSON syntax that lets you specify a CloudFormation stack ARN.</p>"
724736
},
725737
"Query":{
726738
"shape":"Query",

0 commit comments

Comments
 (0)