Skip to content

Commit 327877c

Browse files
AWS Resource Groups customers can now turn on Group Lifecycle Events in their AWS account. When you turn this on, Resource Groups monitors your groups for changes to group state or membership. Those changes are sent to Amazon EventBridge as events that you can respond to using rules you create.
1 parent ca22ea3 commit 327877c

File tree

50 files changed

+3366
-858
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3366
-858
lines changed

generator/ServiceModels/resource-groups/resource-groups-2017-11-27.api.json

Lines changed: 85 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,21 @@
4545
{"shape":"InternalServerErrorException"}
4646
]
4747
},
48+
"GetAccountSettings":{
49+
"name":"GetAccountSettings",
50+
"http":{
51+
"method":"POST",
52+
"requestUri":"/get-account-settings"
53+
},
54+
"output":{"shape":"GetAccountSettingsOutput"},
55+
"errors":[
56+
{"shape":"BadRequestException"},
57+
{"shape":"ForbiddenException"},
58+
{"shape":"MethodNotAllowedException"},
59+
{"shape":"TooManyRequestsException"},
60+
{"shape":"InternalServerErrorException"}
61+
]
62+
},
4863
"GetGroup":{
4964
"name":"GetGroup",
5065
"http":{
@@ -250,6 +265,22 @@
250265
{"shape":"InternalServerErrorException"}
251266
]
252267
},
268+
"UpdateAccountSettings":{
269+
"name":"UpdateAccountSettings",
270+
"http":{
271+
"method":"POST",
272+
"requestUri":"/update-account-settings"
273+
},
274+
"input":{"shape":"UpdateAccountSettingsInput"},
275+
"output":{"shape":"UpdateAccountSettingsOutput"},
276+
"errors":[
277+
{"shape":"BadRequestException"},
278+
{"shape":"ForbiddenException"},
279+
{"shape":"MethodNotAllowedException"},
280+
{"shape":"TooManyRequestsException"},
281+
{"shape":"InternalServerErrorException"}
282+
]
283+
},
253284
"UpdateGroup":{
254285
"name":"UpdateGroup",
255286
"http":{
@@ -286,6 +317,14 @@
286317
}
287318
},
288319
"shapes":{
320+
"AccountSettings":{
321+
"type":"structure",
322+
"members":{
323+
"GroupLifecycleEventsDesiredStatus":{"shape":"GroupLifecycleEventsDesiredStatus"},
324+
"GroupLifecycleEventsStatus":{"shape":"GroupLifecycleEventsStatus"},
325+
"GroupLifecycleEventsStatusMessage":{"shape":"GroupLifecycleEventsStatusMessage"}
326+
}
327+
},
289328
"BadRequestException":{
290329
"type":"structure",
291330
"members":{
@@ -333,7 +372,7 @@
333372
},
334373
"Description":{
335374
"type":"string",
336-
"max":512,
375+
"max":1024,
337376
"pattern":"[\\sa-zA-Z0-9_\\.-]*"
338377
},
339378
"ErrorCode":{
@@ -366,6 +405,12 @@
366405
"error":{"httpStatusCode":403},
367406
"exception":true
368407
},
408+
"GetAccountSettingsOutput":{
409+
"type":"structure",
410+
"members":{
411+
"AccountSettings":{"shape":"AccountSettings"}
412+
}
413+
},
369414
"GetGroupConfigurationInput":{
370415
"type":"structure",
371416
"members":{
@@ -446,7 +491,7 @@
446491
"type":"string",
447492
"max":1600,
448493
"min":12,
449-
"pattern":"arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/[a-zA-Z0-9_\\.-]{1,128}"
494+
"pattern":"arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/[a-zA-Z0-9_\\.-]{1,300}"
450495
},
451496
"GroupConfiguration":{
452497
"type":"structure",
@@ -489,7 +534,7 @@
489534
"type":"string",
490535
"max":256,
491536
"min":1,
492-
"pattern":"[a-zA-Z0-9:_-]+"
537+
"pattern":"[a-zA-Z0-9:\\/\\._-]+"
493538
},
494539
"GroupConfigurationParameterValueList":{
495540
"type":"list",
@@ -553,13 +598,34 @@
553598
"type":"list",
554599
"member":{"shape":"GroupIdentifier"}
555600
},
601+
"GroupLifecycleEventsDesiredStatus":{
602+
"type":"string",
603+
"enum":[
604+
"ACTIVE",
605+
"INACTIVE"
606+
]
607+
},
608+
"GroupLifecycleEventsStatus":{
609+
"type":"string",
610+
"enum":[
611+
"ACTIVE",
612+
"INACTIVE",
613+
"IN_PROGRESS",
614+
"ERROR"
615+
]
616+
},
617+
"GroupLifecycleEventsStatusMessage":{
618+
"type":"string",
619+
"max":1024,
620+
"min":1
621+
},
556622
"GroupList":{
557623
"type":"list",
558624
"member":{"shape":"Group"}
559625
},
560626
"GroupName":{
561627
"type":"string",
562-
"max":128,
628+
"max":300,
563629
"min":1,
564630
"pattern":"[a-zA-Z0-9_\\.-]+"
565631
},
@@ -601,7 +667,7 @@
601667
"type":"string",
602668
"max":1600,
603669
"min":1,
604-
"pattern":"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\\.-]{1,128}"
670+
"pattern":"(arn:aws(-[a-z]+)*:resource-groups:[a-z]{2}(-[a-z]+)+-\\d{1}:[0-9]{12}:group/)?[a-zA-Z0-9_\\.-]{1,300}"
605671
},
606672
"InternalServerErrorException":{
607673
"type":"structure",
@@ -742,7 +808,8 @@
742808
"type":"string",
743809
"enum":[
744810
"CLOUDFORMATION_STACK_INACTIVE",
745-
"CLOUDFORMATION_STACK_NOT_EXISTING"
811+
"CLOUDFORMATION_STACK_NOT_EXISTING",
812+
"CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
746813
]
747814
},
748815
"QueryErrorList":{
@@ -954,6 +1021,18 @@
9541021
"Keys":{"shape":"TagKeyList"}
9551022
}
9561023
},
1024+
"UpdateAccountSettingsInput":{
1025+
"type":"structure",
1026+
"members":{
1027+
"GroupLifecycleEventsDesiredStatus":{"shape":"GroupLifecycleEventsDesiredStatus"}
1028+
}
1029+
},
1030+
"UpdateAccountSettingsOutput":{
1031+
"type":"structure",
1032+
"members":{
1033+
"AccountSettings":{"shape":"AccountSettings"}
1034+
}
1035+
},
9571036
"UpdateGroupInput":{
9581037
"type":"structure",
9591038
"members":{

generator/ServiceModels/resource-groups/resource-groups-2017-11-27.docs.json

Lines changed: 76 additions & 33 deletions
Large diffs are not rendered by default.

generator/ServiceModels/resource-groups/resource-groups-2017-11-27.endpoint-rule-set.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": {
44
"Region": {
55
"builtIn": "AWS::Region",
6-
"required": false,
6+
"required": true,
77
"documentation": "The AWS region used to dispatch the request.",
88
"type": "String"
99
},
@@ -52,15 +52,6 @@
5252
"ref": "Endpoint"
5353
}
5454
]
55-
},
56-
{
57-
"fn": "parseURL",
58-
"argv": [
59-
{
60-
"ref": "Endpoint"
61-
}
62-
],
63-
"assign": "url"
6455
}
6556
],
6657
"type": "tree",

0 commit comments

Comments
 (0)