aws-sdk-resourcegroups 1.24.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-resourcegroups.rb +4 -2
- data/lib/aws-sdk-resourcegroups/client.rb +364 -95
- data/lib/aws-sdk-resourcegroups/client_api.rb +149 -24
- data/lib/aws-sdk-resourcegroups/errors.rb +2 -0
- data/lib/aws-sdk-resourcegroups/resource.rb +2 -0
- data/lib/aws-sdk-resourcegroups/types.rb +629 -146
- metadata +4 -4
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -16,8 +18,14 @@ module Aws::ResourceGroups
|
|
16
18
|
CreateGroupOutput = Shapes::StructureShape.new(name: 'CreateGroupOutput')
|
17
19
|
DeleteGroupInput = Shapes::StructureShape.new(name: 'DeleteGroupInput')
|
18
20
|
DeleteGroupOutput = Shapes::StructureShape.new(name: 'DeleteGroupOutput')
|
21
|
+
Description = Shapes::StringShape.new(name: 'Description')
|
22
|
+
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
19
23
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
24
|
+
FailedResource = Shapes::StructureShape.new(name: 'FailedResource')
|
25
|
+
FailedResourceList = Shapes::ListShape.new(name: 'FailedResourceList')
|
20
26
|
ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
|
27
|
+
GetGroupConfigurationInput = Shapes::StructureShape.new(name: 'GetGroupConfigurationInput')
|
28
|
+
GetGroupConfigurationOutput = Shapes::StructureShape.new(name: 'GetGroupConfigurationOutput')
|
21
29
|
GetGroupInput = Shapes::StructureShape.new(name: 'GetGroupInput')
|
22
30
|
GetGroupOutput = Shapes::StructureShape.new(name: 'GetGroupOutput')
|
23
31
|
GetGroupQueryInput = Shapes::StructureShape.new(name: 'GetGroupQueryInput')
|
@@ -26,7 +34,16 @@ module Aws::ResourceGroups
|
|
26
34
|
GetTagsOutput = Shapes::StructureShape.new(name: 'GetTagsOutput')
|
27
35
|
Group = Shapes::StructureShape.new(name: 'Group')
|
28
36
|
GroupArn = Shapes::StringShape.new(name: 'GroupArn')
|
29
|
-
|
37
|
+
GroupConfiguration = Shapes::StructureShape.new(name: 'GroupConfiguration')
|
38
|
+
GroupConfigurationFailureReason = Shapes::StringShape.new(name: 'GroupConfigurationFailureReason')
|
39
|
+
GroupConfigurationItem = Shapes::StructureShape.new(name: 'GroupConfigurationItem')
|
40
|
+
GroupConfigurationList = Shapes::ListShape.new(name: 'GroupConfigurationList')
|
41
|
+
GroupConfigurationParameter = Shapes::StructureShape.new(name: 'GroupConfigurationParameter')
|
42
|
+
GroupConfigurationParameterName = Shapes::StringShape.new(name: 'GroupConfigurationParameterName')
|
43
|
+
GroupConfigurationParameterValue = Shapes::StringShape.new(name: 'GroupConfigurationParameterValue')
|
44
|
+
GroupConfigurationParameterValueList = Shapes::ListShape.new(name: 'GroupConfigurationParameterValueList')
|
45
|
+
GroupConfigurationStatus = Shapes::StringShape.new(name: 'GroupConfigurationStatus')
|
46
|
+
GroupConfigurationType = Shapes::StringShape.new(name: 'GroupConfigurationType')
|
30
47
|
GroupFilter = Shapes::StructureShape.new(name: 'GroupFilter')
|
31
48
|
GroupFilterList = Shapes::ListShape.new(name: 'GroupFilterList')
|
32
49
|
GroupFilterName = Shapes::StringShape.new(name: 'GroupFilterName')
|
@@ -36,7 +53,11 @@ module Aws::ResourceGroups
|
|
36
53
|
GroupIdentifierList = Shapes::ListShape.new(name: 'GroupIdentifierList')
|
37
54
|
GroupList = Shapes::ListShape.new(name: 'GroupList')
|
38
55
|
GroupName = Shapes::StringShape.new(name: 'GroupName')
|
56
|
+
GroupParameterList = Shapes::ListShape.new(name: 'GroupParameterList')
|
39
57
|
GroupQuery = Shapes::StructureShape.new(name: 'GroupQuery')
|
58
|
+
GroupResourcesInput = Shapes::StructureShape.new(name: 'GroupResourcesInput')
|
59
|
+
GroupResourcesOutput = Shapes::StructureShape.new(name: 'GroupResourcesOutput')
|
60
|
+
GroupString = Shapes::StringShape.new(name: 'GroupString')
|
40
61
|
InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
|
41
62
|
ListGroupResourcesInput = Shapes::StructureShape.new(name: 'ListGroupResourcesInput')
|
42
63
|
ListGroupResourcesOutput = Shapes::StructureShape.new(name: 'ListGroupResourcesOutput')
|
@@ -53,6 +74,7 @@ module Aws::ResourceGroups
|
|
53
74
|
QueryErrorMessage = Shapes::StringShape.new(name: 'QueryErrorMessage')
|
54
75
|
QueryType = Shapes::StringShape.new(name: 'QueryType')
|
55
76
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
77
|
+
ResourceArnList = Shapes::ListShape.new(name: 'ResourceArnList')
|
56
78
|
ResourceFilter = Shapes::StructureShape.new(name: 'ResourceFilter')
|
57
79
|
ResourceFilterList = Shapes::ListShape.new(name: 'ResourceFilterList')
|
58
80
|
ResourceFilterName = Shapes::StringShape.new(name: 'ResourceFilterName')
|
@@ -72,6 +94,8 @@ module Aws::ResourceGroups
|
|
72
94
|
Tags = Shapes::MapShape.new(name: 'Tags')
|
73
95
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
74
96
|
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
97
|
+
UngroupResourcesInput = Shapes::StructureShape.new(name: 'UngroupResourcesInput')
|
98
|
+
UngroupResourcesOutput = Shapes::StructureShape.new(name: 'UngroupResourcesOutput')
|
75
99
|
UntagInput = Shapes::StructureShape.new(name: 'UntagInput')
|
76
100
|
UntagOutput = Shapes::StructureShape.new(name: 'UntagOutput')
|
77
101
|
UpdateGroupInput = Shapes::StructureShape.new(name: 'UpdateGroupInput')
|
@@ -83,32 +107,50 @@ module Aws::ResourceGroups
|
|
83
107
|
BadRequestException.struct_class = Types::BadRequestException
|
84
108
|
|
85
109
|
CreateGroupInput.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "Name"))
|
86
|
-
CreateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape:
|
87
|
-
CreateGroupInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery,
|
110
|
+
CreateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
111
|
+
CreateGroupInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, location_name: "ResourceQuery"))
|
88
112
|
CreateGroupInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
113
|
+
CreateGroupInput.add_member(:configuration, Shapes::ShapeRef.new(shape: GroupConfigurationList, location_name: "Configuration"))
|
89
114
|
CreateGroupInput.struct_class = Types::CreateGroupInput
|
90
115
|
|
91
116
|
CreateGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
|
92
117
|
CreateGroupOutput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, location_name: "ResourceQuery"))
|
93
118
|
CreateGroupOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
119
|
+
CreateGroupOutput.add_member(:group_configuration, Shapes::ShapeRef.new(shape: GroupConfiguration, location_name: "GroupConfiguration"))
|
94
120
|
CreateGroupOutput.struct_class = Types::CreateGroupOutput
|
95
121
|
|
96
|
-
DeleteGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName,
|
122
|
+
DeleteGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
|
123
|
+
DeleteGroupInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
97
124
|
DeleteGroupInput.struct_class = Types::DeleteGroupInput
|
98
125
|
|
99
126
|
DeleteGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
|
100
127
|
DeleteGroupOutput.struct_class = Types::DeleteGroupOutput
|
101
128
|
|
129
|
+
FailedResource.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
|
130
|
+
FailedResource.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
131
|
+
FailedResource.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
132
|
+
FailedResource.struct_class = Types::FailedResource
|
133
|
+
|
134
|
+
FailedResourceList.member = Shapes::ShapeRef.new(shape: FailedResource)
|
135
|
+
|
102
136
|
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
103
137
|
ForbiddenException.struct_class = Types::ForbiddenException
|
104
138
|
|
105
|
-
|
139
|
+
GetGroupConfigurationInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
140
|
+
GetGroupConfigurationInput.struct_class = Types::GetGroupConfigurationInput
|
141
|
+
|
142
|
+
GetGroupConfigurationOutput.add_member(:group_configuration, Shapes::ShapeRef.new(shape: GroupConfiguration, location_name: "GroupConfiguration"))
|
143
|
+
GetGroupConfigurationOutput.struct_class = Types::GetGroupConfigurationOutput
|
144
|
+
|
145
|
+
GetGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
|
146
|
+
GetGroupInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
106
147
|
GetGroupInput.struct_class = Types::GetGroupInput
|
107
148
|
|
108
149
|
GetGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
|
109
150
|
GetGroupOutput.struct_class = Types::GetGroupOutput
|
110
151
|
|
111
|
-
GetGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName,
|
152
|
+
GetGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
|
153
|
+
GetGroupQueryInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
112
154
|
GetGroupQueryInput.struct_class = Types::GetGroupQueryInput
|
113
155
|
|
114
156
|
GetGroupQueryOutput.add_member(:group_query, Shapes::ShapeRef.new(shape: GroupQuery, location_name: "GroupQuery"))
|
@@ -123,9 +165,27 @@ module Aws::ResourceGroups
|
|
123
165
|
|
124
166
|
Group.add_member(:group_arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location_name: "GroupArn"))
|
125
167
|
Group.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "Name"))
|
126
|
-
Group.add_member(:description, Shapes::ShapeRef.new(shape:
|
168
|
+
Group.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
127
169
|
Group.struct_class = Types::Group
|
128
170
|
|
171
|
+
GroupConfiguration.add_member(:configuration, Shapes::ShapeRef.new(shape: GroupConfigurationList, location_name: "Configuration"))
|
172
|
+
GroupConfiguration.add_member(:proposed_configuration, Shapes::ShapeRef.new(shape: GroupConfigurationList, location_name: "ProposedConfiguration"))
|
173
|
+
GroupConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: GroupConfigurationStatus, location_name: "Status"))
|
174
|
+
GroupConfiguration.add_member(:failure_reason, Shapes::ShapeRef.new(shape: GroupConfigurationFailureReason, location_name: "FailureReason"))
|
175
|
+
GroupConfiguration.struct_class = Types::GroupConfiguration
|
176
|
+
|
177
|
+
GroupConfigurationItem.add_member(:type, Shapes::ShapeRef.new(shape: GroupConfigurationType, required: true, location_name: "Type"))
|
178
|
+
GroupConfigurationItem.add_member(:parameters, Shapes::ShapeRef.new(shape: GroupParameterList, location_name: "Parameters"))
|
179
|
+
GroupConfigurationItem.struct_class = Types::GroupConfigurationItem
|
180
|
+
|
181
|
+
GroupConfigurationList.member = Shapes::ShapeRef.new(shape: GroupConfigurationItem)
|
182
|
+
|
183
|
+
GroupConfigurationParameter.add_member(:name, Shapes::ShapeRef.new(shape: GroupConfigurationParameterName, required: true, location_name: "Name"))
|
184
|
+
GroupConfigurationParameter.add_member(:values, Shapes::ShapeRef.new(shape: GroupConfigurationParameterValueList, location_name: "Values"))
|
185
|
+
GroupConfigurationParameter.struct_class = Types::GroupConfigurationParameter
|
186
|
+
|
187
|
+
GroupConfigurationParameterValueList.member = Shapes::ShapeRef.new(shape: GroupConfigurationParameterValue)
|
188
|
+
|
129
189
|
GroupFilter.add_member(:name, Shapes::ShapeRef.new(shape: GroupFilterName, required: true, location_name: "Name"))
|
130
190
|
GroupFilter.add_member(:values, Shapes::ShapeRef.new(shape: GroupFilterValues, required: true, location_name: "Values"))
|
131
191
|
GroupFilter.struct_class = Types::GroupFilter
|
@@ -142,17 +202,28 @@ module Aws::ResourceGroups
|
|
142
202
|
|
143
203
|
GroupList.member = Shapes::ShapeRef.new(shape: Group)
|
144
204
|
|
205
|
+
GroupParameterList.member = Shapes::ShapeRef.new(shape: GroupConfigurationParameter)
|
206
|
+
|
145
207
|
GroupQuery.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "GroupName"))
|
146
208
|
GroupQuery.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
|
147
209
|
GroupQuery.struct_class = Types::GroupQuery
|
148
210
|
|
211
|
+
GroupResourcesInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, required: true, location_name: "Group"))
|
212
|
+
GroupResourcesInput.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnList, required: true, location_name: "ResourceArns"))
|
213
|
+
GroupResourcesInput.struct_class = Types::GroupResourcesInput
|
214
|
+
|
215
|
+
GroupResourcesOutput.add_member(:succeeded, Shapes::ShapeRef.new(shape: ResourceArnList, location_name: "Succeeded"))
|
216
|
+
GroupResourcesOutput.add_member(:failed, Shapes::ShapeRef.new(shape: FailedResourceList, location_name: "Failed"))
|
217
|
+
GroupResourcesOutput.struct_class = Types::GroupResourcesOutput
|
218
|
+
|
149
219
|
InternalServerErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
150
220
|
InternalServerErrorException.struct_class = Types::InternalServerErrorException
|
151
221
|
|
152
|
-
ListGroupResourcesInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName,
|
222
|
+
ListGroupResourcesInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
|
223
|
+
ListGroupResourcesInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
153
224
|
ListGroupResourcesInput.add_member(:filters, Shapes::ShapeRef.new(shape: ResourceFilterList, location_name: "Filters"))
|
154
|
-
ListGroupResourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults,
|
155
|
-
ListGroupResourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken,
|
225
|
+
ListGroupResourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
226
|
+
ListGroupResourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
156
227
|
ListGroupResourcesInput.struct_class = Types::ListGroupResourcesInput
|
157
228
|
|
158
229
|
ListGroupResourcesOutput.add_member(:resource_identifiers, Shapes::ShapeRef.new(shape: ResourceIdentifierList, location_name: "ResourceIdentifiers"))
|
@@ -182,6 +253,8 @@ module Aws::ResourceGroups
|
|
182
253
|
|
183
254
|
QueryErrorList.member = Shapes::ShapeRef.new(shape: QueryError)
|
184
255
|
|
256
|
+
ResourceArnList.member = Shapes::ShapeRef.new(shape: ResourceArn)
|
257
|
+
|
185
258
|
ResourceFilter.add_member(:name, Shapes::ShapeRef.new(shape: ResourceFilterName, required: true, location_name: "Name"))
|
186
259
|
ResourceFilter.add_member(:values, Shapes::ShapeRef.new(shape: ResourceFilterValues, required: true, location_name: "Values"))
|
187
260
|
ResourceFilter.struct_class = Types::ResourceFilter
|
@@ -229,6 +302,14 @@ module Aws::ResourceGroups
|
|
229
302
|
UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
230
303
|
UnauthorizedException.struct_class = Types::UnauthorizedException
|
231
304
|
|
305
|
+
UngroupResourcesInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, required: true, location_name: "Group"))
|
306
|
+
UngroupResourcesInput.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnList, required: true, location_name: "ResourceArns"))
|
307
|
+
UngroupResourcesInput.struct_class = Types::UngroupResourcesInput
|
308
|
+
|
309
|
+
UngroupResourcesOutput.add_member(:succeeded, Shapes::ShapeRef.new(shape: ResourceArnList, location_name: "Succeeded"))
|
310
|
+
UngroupResourcesOutput.add_member(:failed, Shapes::ShapeRef.new(shape: FailedResourceList, location_name: "Failed"))
|
311
|
+
UngroupResourcesOutput.struct_class = Types::UngroupResourcesOutput
|
312
|
+
|
232
313
|
UntagInput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location: "uri", location_name: "Arn"))
|
233
314
|
UntagInput.add_member(:keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "Keys"))
|
234
315
|
UntagInput.struct_class = Types::UntagInput
|
@@ -237,14 +318,16 @@ module Aws::ResourceGroups
|
|
237
318
|
UntagOutput.add_member(:keys, Shapes::ShapeRef.new(shape: TagKeyList, location_name: "Keys"))
|
238
319
|
UntagOutput.struct_class = Types::UntagOutput
|
239
320
|
|
240
|
-
UpdateGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName,
|
241
|
-
UpdateGroupInput.add_member(:
|
321
|
+
UpdateGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
|
322
|
+
UpdateGroupInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
323
|
+
UpdateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
242
324
|
UpdateGroupInput.struct_class = Types::UpdateGroupInput
|
243
325
|
|
244
326
|
UpdateGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
|
245
327
|
UpdateGroupOutput.struct_class = Types::UpdateGroupOutput
|
246
328
|
|
247
|
-
UpdateGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName,
|
329
|
+
UpdateGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
|
330
|
+
UpdateGroupQueryInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
248
331
|
UpdateGroupQueryInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
|
249
332
|
UpdateGroupQueryInput.struct_class = Types::UpdateGroupQueryInput
|
250
333
|
|
@@ -284,8 +367,8 @@ module Aws::ResourceGroups
|
|
284
367
|
|
285
368
|
api.add_operation(:delete_group, Seahorse::Model::Operation.new.tap do |o|
|
286
369
|
o.name = "DeleteGroup"
|
287
|
-
o.http_method = "
|
288
|
-
o.http_request_uri = "/
|
370
|
+
o.http_method = "POST"
|
371
|
+
o.http_request_uri = "/delete-group"
|
289
372
|
o.input = Shapes::ShapeRef.new(shape: DeleteGroupInput)
|
290
373
|
o.output = Shapes::ShapeRef.new(shape: DeleteGroupOutput)
|
291
374
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
@@ -298,8 +381,8 @@ module Aws::ResourceGroups
|
|
298
381
|
|
299
382
|
api.add_operation(:get_group, Seahorse::Model::Operation.new.tap do |o|
|
300
383
|
o.name = "GetGroup"
|
301
|
-
o.http_method = "
|
302
|
-
o.http_request_uri = "/
|
384
|
+
o.http_method = "POST"
|
385
|
+
o.http_request_uri = "/get-group"
|
303
386
|
o.input = Shapes::ShapeRef.new(shape: GetGroupInput)
|
304
387
|
o.output = Shapes::ShapeRef.new(shape: GetGroupOutput)
|
305
388
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
@@ -310,10 +393,24 @@ module Aws::ResourceGroups
|
|
310
393
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
311
394
|
end)
|
312
395
|
|
396
|
+
api.add_operation(:get_group_configuration, Seahorse::Model::Operation.new.tap do |o|
|
397
|
+
o.name = "GetGroupConfiguration"
|
398
|
+
o.http_method = "POST"
|
399
|
+
o.http_request_uri = "/get-group-configuration"
|
400
|
+
o.input = Shapes::ShapeRef.new(shape: GetGroupConfigurationInput)
|
401
|
+
o.output = Shapes::ShapeRef.new(shape: GetGroupConfigurationOutput)
|
402
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
403
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
404
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
405
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
406
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
408
|
+
end)
|
409
|
+
|
313
410
|
api.add_operation(:get_group_query, Seahorse::Model::Operation.new.tap do |o|
|
314
411
|
o.name = "GetGroupQuery"
|
315
|
-
o.http_method = "
|
316
|
-
o.http_request_uri = "/
|
412
|
+
o.http_method = "POST"
|
413
|
+
o.http_request_uri = "/get-group-query"
|
317
414
|
o.input = Shapes::ShapeRef.new(shape: GetGroupQueryInput)
|
318
415
|
o.output = Shapes::ShapeRef.new(shape: GetGroupQueryOutput)
|
319
416
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
@@ -338,10 +435,24 @@ module Aws::ResourceGroups
|
|
338
435
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
339
436
|
end)
|
340
437
|
|
438
|
+
api.add_operation(:group_resources, Seahorse::Model::Operation.new.tap do |o|
|
439
|
+
o.name = "GroupResources"
|
440
|
+
o.http_method = "POST"
|
441
|
+
o.http_request_uri = "/group-resources"
|
442
|
+
o.input = Shapes::ShapeRef.new(shape: GroupResourcesInput)
|
443
|
+
o.output = Shapes::ShapeRef.new(shape: GroupResourcesOutput)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
446
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
447
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
448
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
449
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
450
|
+
end)
|
451
|
+
|
341
452
|
api.add_operation(:list_group_resources, Seahorse::Model::Operation.new.tap do |o|
|
342
453
|
o.name = "ListGroupResources"
|
343
454
|
o.http_method = "POST"
|
344
|
-
o.http_request_uri = "/
|
455
|
+
o.http_request_uri = "/list-group-resources"
|
345
456
|
o.input = Shapes::ShapeRef.new(shape: ListGroupResourcesInput)
|
346
457
|
o.output = Shapes::ShapeRef.new(shape: ListGroupResourcesOutput)
|
347
458
|
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
@@ -412,6 +523,20 @@ module Aws::ResourceGroups
|
|
412
523
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
413
524
|
end)
|
414
525
|
|
526
|
+
api.add_operation(:ungroup_resources, Seahorse::Model::Operation.new.tap do |o|
|
527
|
+
o.name = "UngroupResources"
|
528
|
+
o.http_method = "POST"
|
529
|
+
o.http_request_uri = "/ungroup-resources"
|
530
|
+
o.input = Shapes::ShapeRef.new(shape: UngroupResourcesInput)
|
531
|
+
o.output = Shapes::ShapeRef.new(shape: UngroupResourcesOutput)
|
532
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
533
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
534
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
535
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
536
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
537
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
538
|
+
end)
|
539
|
+
|
415
540
|
api.add_operation(:untag, Seahorse::Model::Operation.new.tap do |o|
|
416
541
|
o.name = "Untag"
|
417
542
|
o.http_method = "PATCH"
|
@@ -428,8 +553,8 @@ module Aws::ResourceGroups
|
|
428
553
|
|
429
554
|
api.add_operation(:update_group, Seahorse::Model::Operation.new.tap do |o|
|
430
555
|
o.name = "UpdateGroup"
|
431
|
-
o.http_method = "
|
432
|
-
o.http_request_uri = "/
|
556
|
+
o.http_method = "POST"
|
557
|
+
o.http_request_uri = "/update-group"
|
433
558
|
o.input = Shapes::ShapeRef.new(shape: UpdateGroupInput)
|
434
559
|
o.output = Shapes::ShapeRef.new(shape: UpdateGroupOutput)
|
435
560
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
@@ -442,8 +567,8 @@ module Aws::ResourceGroups
|
|
442
567
|
|
443
568
|
api.add_operation(:update_group_query, Seahorse::Model::Operation.new.tap do |o|
|
444
569
|
o.name = "UpdateGroupQuery"
|
445
|
-
o.http_method = "
|
446
|
-
o.http_request_uri = "/
|
570
|
+
o.http_method = "POST"
|
571
|
+
o.http_request_uri = "/update-group-query"
|
447
572
|
o.input = Shapes::ShapeRef.new(shape: UpdateGroupQueryInput)
|
448
573
|
o.output = Shapes::ShapeRef.new(shape: UpdateGroupQueryOutput)
|
449
574
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -8,8 +10,8 @@
|
|
8
10
|
module Aws::ResourceGroups
|
9
11
|
module Types
|
10
12
|
|
11
|
-
# The request
|
12
|
-
#
|
13
|
+
# The request includes one or more parameters that violate validation
|
14
|
+
# rules.
|
13
15
|
#
|
14
16
|
# @!attribute [rw] message
|
15
17
|
# @return [String]
|
@@ -18,6 +20,7 @@ module Aws::ResourceGroups
|
|
18
20
|
#
|
19
21
|
class BadRequestException < Struct.new(
|
20
22
|
:message)
|
23
|
+
SENSITIVE = []
|
21
24
|
include Aws::Structure
|
22
25
|
end
|
23
26
|
|
@@ -26,55 +29,81 @@ module Aws::ResourceGroups
|
|
26
29
|
#
|
27
30
|
# {
|
28
31
|
# name: "GroupName", # required
|
29
|
-
# description: "
|
30
|
-
# resource_query: {
|
32
|
+
# description: "Description",
|
33
|
+
# resource_query: {
|
31
34
|
# type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0, CLOUDFORMATION_STACK_1_0
|
32
35
|
# query: "Query", # required
|
33
36
|
# },
|
34
37
|
# tags: {
|
35
38
|
# "TagKey" => "TagValue",
|
36
39
|
# },
|
40
|
+
# configuration: [
|
41
|
+
# {
|
42
|
+
# type: "GroupConfigurationType", # required
|
43
|
+
# parameters: [
|
44
|
+
# {
|
45
|
+
# name: "GroupConfigurationParameterName", # required
|
46
|
+
# values: ["GroupConfigurationParameterValue"],
|
47
|
+
# },
|
48
|
+
# ],
|
49
|
+
# },
|
50
|
+
# ],
|
37
51
|
# }
|
38
52
|
#
|
39
53
|
# @!attribute [rw] name
|
40
54
|
# The name of the group, which is the identifier of the group in other
|
41
|
-
# operations.
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
55
|
+
# operations. You can't change the name of a resource group after you
|
56
|
+
# create it. A resource group name can consist of letters, numbers,
|
57
|
+
# hyphens, periods, and underscores. The name cannot start with `AWS`
|
58
|
+
# or `aws`; these are reserved. A resource group name must be unique
|
59
|
+
# within each AWS Region in your AWS account.
|
46
60
|
# @return [String]
|
47
61
|
#
|
48
62
|
# @!attribute [rw] description
|
49
|
-
# The description of the resource group. Descriptions can
|
50
|
-
#
|
51
|
-
# underscores, punctuation, and spaces.
|
63
|
+
# The description of the resource group. Descriptions can consist of
|
64
|
+
# letters, numbers, hyphens, underscores, periods, and spaces.
|
52
65
|
# @return [String]
|
53
66
|
#
|
54
67
|
# @!attribute [rw] resource_query
|
55
68
|
# The resource query that determines which AWS resources are members
|
56
69
|
# of this group.
|
70
|
+
#
|
71
|
+
# <note markdown="1"> You can specify either a `ResourceQuery` or a `Configuration`, but
|
72
|
+
# not both.
|
73
|
+
#
|
74
|
+
# </note>
|
57
75
|
# @return [Types::ResourceQuery]
|
58
76
|
#
|
59
77
|
# @!attribute [rw] tags
|
60
|
-
# The tags to add to the group. A tag is
|
61
|
-
# key-value pairs. Tag keys can have a maximum character length of 128
|
62
|
-
# characters, and tag values can have a maximum length of 256
|
63
|
-
# characters.
|
78
|
+
# The tags to add to the group. A tag is key-value pair string.
|
64
79
|
# @return [Hash<String,String>]
|
65
80
|
#
|
81
|
+
# @!attribute [rw] configuration
|
82
|
+
# A configuration associates the resource group with an AWS service
|
83
|
+
# and specifies how the service can interact with the resources in the
|
84
|
+
# group. A configuration is an array of GroupConfigurationItem
|
85
|
+
# elements.
|
86
|
+
#
|
87
|
+
# <note markdown="1"> You can specify either a `Configuration` or a `ResourceQuery` in a
|
88
|
+
# group, but not both.
|
89
|
+
#
|
90
|
+
# </note>
|
91
|
+
# @return [Array<Types::GroupConfigurationItem>]
|
92
|
+
#
|
66
93
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroupInput AWS API Documentation
|
67
94
|
#
|
68
95
|
class CreateGroupInput < Struct.new(
|
69
96
|
:name,
|
70
97
|
:description,
|
71
98
|
:resource_query,
|
72
|
-
:tags
|
99
|
+
:tags,
|
100
|
+
:configuration)
|
101
|
+
SENSITIVE = []
|
73
102
|
include Aws::Structure
|
74
103
|
end
|
75
104
|
|
76
105
|
# @!attribute [rw] group
|
77
|
-
#
|
106
|
+
# The description of the resource group.
|
78
107
|
# @return [Types::Group]
|
79
108
|
#
|
80
109
|
# @!attribute [rw] resource_query
|
@@ -85,12 +114,30 @@ module Aws::ResourceGroups
|
|
85
114
|
# The tags associated with the group.
|
86
115
|
# @return [Hash<String,String>]
|
87
116
|
#
|
117
|
+
# @!attribute [rw] group_configuration
|
118
|
+
# The service configuration associated with the resource group. AWS
|
119
|
+
# Resource Groups supports adding service configurations for the
|
120
|
+
# following resource group types:
|
121
|
+
#
|
122
|
+
# * `AWS::EC2::CapacityReservationPool` - Amazon EC2 capacity
|
123
|
+
# reservation pools. For more information, see [Working with
|
124
|
+
# capacity reservation groups][1] in the *EC2 Users Guide*.
|
125
|
+
#
|
126
|
+
# ^
|
127
|
+
#
|
128
|
+
#
|
129
|
+
#
|
130
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group
|
131
|
+
# @return [Types::GroupConfiguration]
|
132
|
+
#
|
88
133
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroupOutput AWS API Documentation
|
89
134
|
#
|
90
135
|
class CreateGroupOutput < Struct.new(
|
91
136
|
:group,
|
92
137
|
:resource_query,
|
93
|
-
:tags
|
138
|
+
:tags,
|
139
|
+
:group_configuration)
|
140
|
+
SENSITIVE = []
|
94
141
|
include Aws::Structure
|
95
142
|
end
|
96
143
|
|
@@ -98,17 +145,24 @@ module Aws::ResourceGroups
|
|
98
145
|
# data as a hash:
|
99
146
|
#
|
100
147
|
# {
|
101
|
-
# group_name: "GroupName",
|
148
|
+
# group_name: "GroupName",
|
149
|
+
# group: "GroupString",
|
102
150
|
# }
|
103
151
|
#
|
104
152
|
# @!attribute [rw] group_name
|
105
|
-
#
|
153
|
+
# Don't use this parameter. Use `Group` instead.
|
154
|
+
# @return [String]
|
155
|
+
#
|
156
|
+
# @!attribute [rw] group
|
157
|
+
# The name or the ARN of the resource group to delete.
|
106
158
|
# @return [String]
|
107
159
|
#
|
108
160
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/DeleteGroupInput AWS API Documentation
|
109
161
|
#
|
110
162
|
class DeleteGroupInput < Struct.new(
|
111
|
-
:group_name
|
163
|
+
:group_name,
|
164
|
+
:group)
|
165
|
+
SENSITIVE = []
|
112
166
|
include Aws::Structure
|
113
167
|
end
|
114
168
|
|
@@ -120,10 +174,35 @@ module Aws::ResourceGroups
|
|
120
174
|
#
|
121
175
|
class DeleteGroupOutput < Struct.new(
|
122
176
|
:group)
|
177
|
+
SENSITIVE = []
|
123
178
|
include Aws::Structure
|
124
179
|
end
|
125
180
|
|
126
|
-
#
|
181
|
+
# A resource that failed to be added to or removed from a group.
|
182
|
+
#
|
183
|
+
# @!attribute [rw] resource_arn
|
184
|
+
# The ARN of the resource that failed to be added or removed.
|
185
|
+
# @return [String]
|
186
|
+
#
|
187
|
+
# @!attribute [rw] error_message
|
188
|
+
# The error message text associated with the failure.
|
189
|
+
# @return [String]
|
190
|
+
#
|
191
|
+
# @!attribute [rw] error_code
|
192
|
+
# The error code associated with the failure.
|
193
|
+
# @return [String]
|
194
|
+
#
|
195
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/FailedResource AWS API Documentation
|
196
|
+
#
|
197
|
+
class FailedResource < Struct.new(
|
198
|
+
:resource_arn,
|
199
|
+
:error_message,
|
200
|
+
:error_code)
|
201
|
+
SENSITIVE = []
|
202
|
+
include Aws::Structure
|
203
|
+
end
|
204
|
+
|
205
|
+
# The caller isn't authorized to make the request. Check permissions.
|
127
206
|
#
|
128
207
|
# @!attribute [rw] message
|
129
208
|
# @return [String]
|
@@ -132,6 +211,38 @@ module Aws::ResourceGroups
|
|
132
211
|
#
|
133
212
|
class ForbiddenException < Struct.new(
|
134
213
|
:message)
|
214
|
+
SENSITIVE = []
|
215
|
+
include Aws::Structure
|
216
|
+
end
|
217
|
+
|
218
|
+
# @note When making an API call, you may pass GetGroupConfigurationInput
|
219
|
+
# data as a hash:
|
220
|
+
#
|
221
|
+
# {
|
222
|
+
# group: "GroupString",
|
223
|
+
# }
|
224
|
+
#
|
225
|
+
# @!attribute [rw] group
|
226
|
+
# The name or the ARN of the resource group.
|
227
|
+
# @return [String]
|
228
|
+
#
|
229
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupConfigurationInput AWS API Documentation
|
230
|
+
#
|
231
|
+
class GetGroupConfigurationInput < Struct.new(
|
232
|
+
:group)
|
233
|
+
SENSITIVE = []
|
234
|
+
include Aws::Structure
|
235
|
+
end
|
236
|
+
|
237
|
+
# @!attribute [rw] group_configuration
|
238
|
+
# The configuration associated with the specified group.
|
239
|
+
# @return [Types::GroupConfiguration]
|
240
|
+
#
|
241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupConfigurationOutput AWS API Documentation
|
242
|
+
#
|
243
|
+
class GetGroupConfigurationOutput < Struct.new(
|
244
|
+
:group_configuration)
|
245
|
+
SENSITIVE = []
|
135
246
|
include Aws::Structure
|
136
247
|
end
|
137
248
|
|
@@ -139,17 +250,24 @@ module Aws::ResourceGroups
|
|
139
250
|
# data as a hash:
|
140
251
|
#
|
141
252
|
# {
|
142
|
-
# group_name: "GroupName",
|
253
|
+
# group_name: "GroupName",
|
254
|
+
# group: "GroupString",
|
143
255
|
# }
|
144
256
|
#
|
145
257
|
# @!attribute [rw] group_name
|
146
|
-
#
|
258
|
+
# Don't use this parameter. Use `Group` instead.
|
259
|
+
# @return [String]
|
260
|
+
#
|
261
|
+
# @!attribute [rw] group
|
262
|
+
# The name or the ARN of the resource group to retrieve.
|
147
263
|
# @return [String]
|
148
264
|
#
|
149
265
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupInput AWS API Documentation
|
150
266
|
#
|
151
267
|
class GetGroupInput < Struct.new(
|
152
|
-
:group_name
|
268
|
+
:group_name,
|
269
|
+
:group)
|
270
|
+
SENSITIVE = []
|
153
271
|
include Aws::Structure
|
154
272
|
end
|
155
273
|
|
@@ -161,6 +279,7 @@ module Aws::ResourceGroups
|
|
161
279
|
#
|
162
280
|
class GetGroupOutput < Struct.new(
|
163
281
|
:group)
|
282
|
+
SENSITIVE = []
|
164
283
|
include Aws::Structure
|
165
284
|
end
|
166
285
|
|
@@ -168,17 +287,24 @@ module Aws::ResourceGroups
|
|
168
287
|
# data as a hash:
|
169
288
|
#
|
170
289
|
# {
|
171
|
-
# group_name: "GroupName",
|
290
|
+
# group_name: "GroupName",
|
291
|
+
# group: "GroupString",
|
172
292
|
# }
|
173
293
|
#
|
174
294
|
# @!attribute [rw] group_name
|
175
|
-
#
|
295
|
+
# Don't use this parameter. Use `Group` instead.
|
296
|
+
# @return [String]
|
297
|
+
#
|
298
|
+
# @!attribute [rw] group
|
299
|
+
# The name or the ARN of the resource group to query.
|
176
300
|
# @return [String]
|
177
301
|
#
|
178
302
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupQueryInput AWS API Documentation
|
179
303
|
#
|
180
304
|
class GetGroupQueryInput < Struct.new(
|
181
|
-
:group_name
|
305
|
+
:group_name,
|
306
|
+
:group)
|
307
|
+
SENSITIVE = []
|
182
308
|
include Aws::Structure
|
183
309
|
end
|
184
310
|
|
@@ -190,6 +316,7 @@ module Aws::ResourceGroups
|
|
190
316
|
#
|
191
317
|
class GetGroupQueryOutput < Struct.new(
|
192
318
|
:group_query)
|
319
|
+
SENSITIVE = []
|
193
320
|
include Aws::Structure
|
194
321
|
end
|
195
322
|
|
@@ -201,14 +328,14 @@ module Aws::ResourceGroups
|
|
201
328
|
# }
|
202
329
|
#
|
203
330
|
# @!attribute [rw] arn
|
204
|
-
# The ARN of the resource group
|
205
|
-
# resource must exist within the account you are using.
|
331
|
+
# The ARN of the resource group whose tags you want to retrieve.
|
206
332
|
# @return [String]
|
207
333
|
#
|
208
334
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetTagsInput AWS API Documentation
|
209
335
|
#
|
210
336
|
class GetTagsInput < Struct.new(
|
211
337
|
:arn)
|
338
|
+
SENSITIVE = []
|
212
339
|
include Aws::Structure
|
213
340
|
end
|
214
341
|
|
@@ -225,17 +352,29 @@ module Aws::ResourceGroups
|
|
225
352
|
class GetTagsOutput < Struct.new(
|
226
353
|
:arn,
|
227
354
|
:tags)
|
355
|
+
SENSITIVE = []
|
228
356
|
include Aws::Structure
|
229
357
|
end
|
230
358
|
|
231
|
-
# A resource group.
|
359
|
+
# A resource group that contains AWS resources. You can assign resources
|
360
|
+
# to the group by associating either of the following elements with the
|
361
|
+
# group:
|
362
|
+
#
|
363
|
+
# * ResourceQuery - Use a resource query to specify a set of tag keys
|
364
|
+
# and values. All resources in the same AWS Region and AWS account
|
365
|
+
# that have those keys with the same values are included in the group.
|
366
|
+
# You can add a resource query when you create the group.
|
367
|
+
#
|
368
|
+
# * GroupConfiguration - Use a service configuration to associate the
|
369
|
+
# group with an AWS service. The configuration specifies which
|
370
|
+
# resource types can be included in the group.
|
232
371
|
#
|
233
372
|
# @!attribute [rw] group_arn
|
234
|
-
# The ARN of
|
373
|
+
# The ARN of the resource group.
|
235
374
|
# @return [String]
|
236
375
|
#
|
237
376
|
# @!attribute [rw] name
|
238
|
-
# The name of
|
377
|
+
# The name of the resource group.
|
239
378
|
# @return [String]
|
240
379
|
#
|
241
380
|
# @!attribute [rw] description
|
@@ -248,17 +387,159 @@ module Aws::ResourceGroups
|
|
248
387
|
:group_arn,
|
249
388
|
:name,
|
250
389
|
:description)
|
390
|
+
SENSITIVE = []
|
251
391
|
include Aws::Structure
|
252
392
|
end
|
253
393
|
|
254
|
-
# A
|
255
|
-
#
|
394
|
+
# A service configuration associated with a resource group. The
|
395
|
+
# configuration options are determined by the AWS service that defines
|
396
|
+
# the `Type`, and specifies which resources can be included in the
|
397
|
+
# group. You can add a service configuration when you create the group.
|
398
|
+
#
|
399
|
+
# @!attribute [rw] configuration
|
400
|
+
# The configuration currently associated with the group and in effect.
|
401
|
+
# @return [Array<Types::GroupConfigurationItem>]
|
402
|
+
#
|
403
|
+
# @!attribute [rw] proposed_configuration
|
404
|
+
# If present, the new configuration that is in the process of being
|
405
|
+
# applied to the group.
|
406
|
+
# @return [Array<Types::GroupConfigurationItem>]
|
407
|
+
#
|
408
|
+
# @!attribute [rw] status
|
409
|
+
# The current status of an attempt to update the group configuration.
|
410
|
+
# @return [String]
|
411
|
+
#
|
412
|
+
# @!attribute [rw] failure_reason
|
413
|
+
# If present, the reason why a request to update the group
|
414
|
+
# configuration failed.
|
415
|
+
# @return [String]
|
416
|
+
#
|
417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupConfiguration AWS API Documentation
|
418
|
+
#
|
419
|
+
class GroupConfiguration < Struct.new(
|
420
|
+
:configuration,
|
421
|
+
:proposed_configuration,
|
422
|
+
:status,
|
423
|
+
:failure_reason)
|
424
|
+
SENSITIVE = []
|
425
|
+
include Aws::Structure
|
426
|
+
end
|
427
|
+
|
428
|
+
# An item in a group configuration. A group configuration can have one
|
429
|
+
# or more items.
|
430
|
+
#
|
431
|
+
# @note When making an API call, you may pass GroupConfigurationItem
|
432
|
+
# data as a hash:
|
433
|
+
#
|
434
|
+
# {
|
435
|
+
# type: "GroupConfigurationType", # required
|
436
|
+
# parameters: [
|
437
|
+
# {
|
438
|
+
# name: "GroupConfigurationParameterName", # required
|
439
|
+
# values: ["GroupConfigurationParameterValue"],
|
440
|
+
# },
|
441
|
+
# ],
|
442
|
+
# }
|
443
|
+
#
|
444
|
+
# @!attribute [rw] type
|
445
|
+
# Specifies the type of group configuration item. Each item must have
|
446
|
+
# a unique value for `type`.
|
447
|
+
#
|
448
|
+
# You can specify the following string values:
|
449
|
+
#
|
450
|
+
# * `AWS::EC2::CapacityReservationPool`
|
451
|
+
#
|
452
|
+
# For more information about EC2 capacity reservation groups, see
|
453
|
+
# [Working with capacity reservation groups][1] in the *EC2 Users
|
454
|
+
# Guide*.
|
455
|
+
#
|
456
|
+
# * `AWS::ResourceGroups::Generic` - Supports parameters that
|
457
|
+
# configure the behavior of resource groups of any type.
|
458
|
+
#
|
459
|
+
#
|
460
|
+
#
|
461
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group
|
462
|
+
# @return [String]
|
463
|
+
#
|
464
|
+
# @!attribute [rw] parameters
|
465
|
+
# A collection of parameters for this group configuration item.
|
466
|
+
# @return [Array<Types::GroupConfigurationParameter>]
|
467
|
+
#
|
468
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupConfigurationItem AWS API Documentation
|
469
|
+
#
|
470
|
+
class GroupConfigurationItem < Struct.new(
|
471
|
+
:type,
|
472
|
+
:parameters)
|
473
|
+
SENSITIVE = []
|
474
|
+
include Aws::Structure
|
475
|
+
end
|
476
|
+
|
477
|
+
# A parameter for a group configuration item.
|
478
|
+
#
|
479
|
+
# @note When making an API call, you may pass GroupConfigurationParameter
|
480
|
+
# data as a hash:
|
481
|
+
#
|
482
|
+
# {
|
483
|
+
# name: "GroupConfigurationParameterName", # required
|
484
|
+
# values: ["GroupConfigurationParameterValue"],
|
485
|
+
# }
|
486
|
+
#
|
487
|
+
# @!attribute [rw] name
|
488
|
+
# The name of the group configuration parameter.
|
489
|
+
#
|
490
|
+
# You can specify the following string values:
|
491
|
+
#
|
492
|
+
# * For configuration item type `AWS::ResourceGroups::Generic`\:
|
493
|
+
#
|
494
|
+
# * `allowed-resource-types`
|
495
|
+
#
|
496
|
+
# Specifies the types of resources that you can add to this group
|
497
|
+
# by using the GroupResources operation.
|
498
|
+
#
|
499
|
+
# * For configuration item type `AWS::EC2::CapacityReservationPool`\:
|
500
|
+
#
|
501
|
+
# * None - This configuration item type doesn't support any
|
502
|
+
# parameters.
|
503
|
+
#
|
504
|
+
# ^
|
505
|
+
#
|
506
|
+
# For more information about EC2 capacity reservation groups, see
|
507
|
+
# [Working with capacity reservation groups][1] in the *EC2 Users
|
508
|
+
# Guide*.
|
509
|
+
#
|
510
|
+
#
|
511
|
+
#
|
512
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group
|
513
|
+
# @return [String]
|
514
|
+
#
|
515
|
+
# @!attribute [rw] values
|
516
|
+
# The values of for this parameter.
|
517
|
+
#
|
518
|
+
# You can specify the following string value:
|
519
|
+
#
|
520
|
+
# * For item type `allowed-resource-types`\: the only supported
|
521
|
+
# parameter value is `AWS::EC2::CapacityReservation`.
|
522
|
+
#
|
523
|
+
# ^
|
524
|
+
# @return [Array<String>]
|
525
|
+
#
|
526
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupConfigurationParameter AWS API Documentation
|
527
|
+
#
|
528
|
+
class GroupConfigurationParameter < Struct.new(
|
529
|
+
:name,
|
530
|
+
:values)
|
531
|
+
SENSITIVE = []
|
532
|
+
include Aws::Structure
|
533
|
+
end
|
534
|
+
|
535
|
+
# A filter collection that you can use to restrict the results from a
|
536
|
+
# `List` operation to only those you want to include.
|
256
537
|
#
|
257
538
|
# @note When making an API call, you may pass GroupFilter
|
258
539
|
# data as a hash:
|
259
540
|
#
|
260
541
|
# {
|
261
|
-
# name: "resource-type", # required, accepts resource-type
|
542
|
+
# name: "resource-type", # required, accepts resource-type, configuration-type
|
262
543
|
# values: ["GroupFilterValue"], # required
|
263
544
|
# }
|
264
545
|
#
|
@@ -276,17 +557,18 @@ module Aws::ResourceGroups
|
|
276
557
|
class GroupFilter < Struct.new(
|
277
558
|
:name,
|
278
559
|
:values)
|
560
|
+
SENSITIVE = []
|
279
561
|
include Aws::Structure
|
280
562
|
end
|
281
563
|
|
282
|
-
# The
|
564
|
+
# The unique identifiers for a resource group.
|
283
565
|
#
|
284
566
|
# @!attribute [rw] group_name
|
285
|
-
# The name of
|
567
|
+
# The name of the resource group.
|
286
568
|
# @return [String]
|
287
569
|
#
|
288
570
|
# @!attribute [rw] group_arn
|
289
|
-
# The ARN of
|
571
|
+
# The ARN of the resource group.
|
290
572
|
# @return [String]
|
291
573
|
#
|
292
574
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupIdentifier AWS API Documentation
|
@@ -294,19 +576,20 @@ module Aws::ResourceGroups
|
|
294
576
|
class GroupIdentifier < Struct.new(
|
295
577
|
:group_name,
|
296
578
|
:group_arn)
|
579
|
+
SENSITIVE = []
|
297
580
|
include Aws::Structure
|
298
581
|
end
|
299
582
|
|
300
|
-
#
|
301
|
-
#
|
583
|
+
# A mapping of a query attached to a resource group that determines the
|
584
|
+
# AWS resources that are members of the group.
|
302
585
|
#
|
303
586
|
# @!attribute [rw] group_name
|
304
|
-
# The name of
|
587
|
+
# The name of the resource group that is associated with the specified
|
305
588
|
# resource query.
|
306
589
|
# @return [String]
|
307
590
|
#
|
308
591
|
# @!attribute [rw] resource_query
|
309
|
-
# The resource query
|
592
|
+
# The resource query that determines which AWS resources are members
|
310
593
|
# of the associated resource group.
|
311
594
|
# @return [Types::ResourceQuery]
|
312
595
|
#
|
@@ -315,10 +598,56 @@ module Aws::ResourceGroups
|
|
315
598
|
class GroupQuery < Struct.new(
|
316
599
|
:group_name,
|
317
600
|
:resource_query)
|
601
|
+
SENSITIVE = []
|
602
|
+
include Aws::Structure
|
603
|
+
end
|
604
|
+
|
605
|
+
# @note When making an API call, you may pass GroupResourcesInput
|
606
|
+
# data as a hash:
|
607
|
+
#
|
608
|
+
# {
|
609
|
+
# group: "GroupString", # required
|
610
|
+
# resource_arns: ["ResourceArn"], # required
|
611
|
+
# }
|
612
|
+
#
|
613
|
+
# @!attribute [rw] group
|
614
|
+
# The name or the ARN of the resource group to add resources to.
|
615
|
+
# @return [String]
|
616
|
+
#
|
617
|
+
# @!attribute [rw] resource_arns
|
618
|
+
# The list of ARNs for resources to be added to the group.
|
619
|
+
# @return [Array<String>]
|
620
|
+
#
|
621
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupResourcesInput AWS API Documentation
|
622
|
+
#
|
623
|
+
class GroupResourcesInput < Struct.new(
|
624
|
+
:group,
|
625
|
+
:resource_arns)
|
626
|
+
SENSITIVE = []
|
318
627
|
include Aws::Structure
|
319
628
|
end
|
320
629
|
|
321
|
-
#
|
630
|
+
# @!attribute [rw] succeeded
|
631
|
+
# The ARNs of the resources that were successfully added to the group
|
632
|
+
# by this operation.
|
633
|
+
# @return [Array<String>]
|
634
|
+
#
|
635
|
+
# @!attribute [rw] failed
|
636
|
+
# The ARNs of the resources that failed to be added to the group by
|
637
|
+
# this operation.
|
638
|
+
# @return [Array<Types::FailedResource>]
|
639
|
+
#
|
640
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupResourcesOutput AWS API Documentation
|
641
|
+
#
|
642
|
+
class GroupResourcesOutput < Struct.new(
|
643
|
+
:succeeded,
|
644
|
+
:failed)
|
645
|
+
SENSITIVE = []
|
646
|
+
include Aws::Structure
|
647
|
+
end
|
648
|
+
|
649
|
+
# An internal error occurred while processing the request. Try again
|
650
|
+
# later.
|
322
651
|
#
|
323
652
|
# @!attribute [rw] message
|
324
653
|
# @return [String]
|
@@ -327,6 +656,7 @@ module Aws::ResourceGroups
|
|
327
656
|
#
|
328
657
|
class InternalServerErrorException < Struct.new(
|
329
658
|
:message)
|
659
|
+
SENSITIVE = []
|
330
660
|
include Aws::Structure
|
331
661
|
end
|
332
662
|
|
@@ -334,7 +664,8 @@ module Aws::ResourceGroups
|
|
334
664
|
# data as a hash:
|
335
665
|
#
|
336
666
|
# {
|
337
|
-
# group_name: "GroupName",
|
667
|
+
# group_name: "GroupName",
|
668
|
+
# group: "GroupString",
|
338
669
|
# filters: [
|
339
670
|
# {
|
340
671
|
# name: "resource-type", # required, accepts resource-type
|
@@ -346,40 +677,75 @@ module Aws::ResourceGroups
|
|
346
677
|
# }
|
347
678
|
#
|
348
679
|
# @!attribute [rw] group_name
|
349
|
-
#
|
680
|
+
# Don't use this parameter. Use `Group` instead.
|
681
|
+
# @return [String]
|
682
|
+
#
|
683
|
+
# @!attribute [rw] group
|
684
|
+
# The name or the ARN of the resource group
|
350
685
|
# @return [String]
|
351
686
|
#
|
352
687
|
# @!attribute [rw] filters
|
353
688
|
# Filters, formatted as ResourceFilter objects, that you want to apply
|
354
|
-
# to a ListGroupResources operation.
|
689
|
+
# to a `ListGroupResources` operation. Filters the results to include
|
690
|
+
# only those of the specified resource types.
|
355
691
|
#
|
356
692
|
# * `resource-type` - Filter resources by their type. Specify up to
|
357
|
-
# five resource types in the format
|
358
|
-
#
|
693
|
+
# five resource types in the format
|
694
|
+
# `AWS::ServiceCode::ResourceType`. For example,
|
695
|
+
# `AWS::EC2::Instance`, or `AWS::S3::Bucket`.
|
359
696
|
#
|
360
697
|
# ^
|
698
|
+
#
|
699
|
+
# When you specify a `resource-type` filter for `ListGroupResources`,
|
700
|
+
# AWS Resource Groups validates your filter resource types against the
|
701
|
+
# types that are defined in the query associated with the group. For
|
702
|
+
# example, if a group contains only S3 buckets because its query
|
703
|
+
# specifies only that resource type, but your `resource-type` filter
|
704
|
+
# includes EC2 instances, AWS Resource Groups does not filter for EC2
|
705
|
+
# instances. In this case, a `ListGroupResources` request returns a
|
706
|
+
# `BadRequestException` error with a message similar to the following:
|
707
|
+
#
|
708
|
+
# `The resource types specified as filters in the request are not
|
709
|
+
# valid.`
|
710
|
+
#
|
711
|
+
# The error includes a list of resource types that failed the
|
712
|
+
# validation because they are not part of the query associated with
|
713
|
+
# the group. This validation doesn't occur when the group query
|
714
|
+
# specifies `AWS::AllSupported`, because a group based on such a query
|
715
|
+
# can contain any of the allowed resource types for the query type
|
716
|
+
# (tag-based or AWS CloudFormation stack-based queries).
|
361
717
|
# @return [Array<Types::ResourceFilter>]
|
362
718
|
#
|
363
719
|
# @!attribute [rw] max_results
|
364
|
-
# The
|
365
|
-
#
|
366
|
-
#
|
720
|
+
# The total number of results that you want included on each page of
|
721
|
+
# the response. If you do not include this parameter, it defaults to a
|
722
|
+
# value that is specific to the operation. If additional items exist
|
723
|
+
# beyond the maximum you specify, the `NextToken` response element is
|
724
|
+
# present and has a value (is not null). Include that value as the
|
725
|
+
# `NextToken` request parameter in the next call to the operation to
|
726
|
+
# get the next part of the results. Note that the service might return
|
727
|
+
# fewer results than the maximum even when there are more results
|
728
|
+
# available. You should check `NextToken` after every operation to
|
729
|
+
# ensure that you receive all of the results.
|
367
730
|
# @return [Integer]
|
368
731
|
#
|
369
732
|
# @!attribute [rw] next_token
|
370
|
-
# The
|
371
|
-
#
|
372
|
-
#
|
373
|
-
# value
|
733
|
+
# The parameter for receiving additional results if you receive a
|
734
|
+
# `NextToken` response in a previous request. A `NextToken` response
|
735
|
+
# indicates that more output is available. Set this parameter to the
|
736
|
+
# value provided by a previous call's `NextToken` response to
|
737
|
+
# indicate where the output should continue from.
|
374
738
|
# @return [String]
|
375
739
|
#
|
376
740
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupResourcesInput AWS API Documentation
|
377
741
|
#
|
378
742
|
class ListGroupResourcesInput < Struct.new(
|
379
743
|
:group_name,
|
744
|
+
:group,
|
380
745
|
:filters,
|
381
746
|
:max_results,
|
382
747
|
:next_token)
|
748
|
+
SENSITIVE = []
|
383
749
|
include Aws::Structure
|
384
750
|
end
|
385
751
|
|
@@ -389,8 +755,11 @@ module Aws::ResourceGroups
|
|
389
755
|
# @return [Array<Types::ResourceIdentifier>]
|
390
756
|
#
|
391
757
|
# @!attribute [rw] next_token
|
392
|
-
#
|
393
|
-
#
|
758
|
+
# If present, indicates that more output is available than is included
|
759
|
+
# in the current response. Use this value in the `NextToken` request
|
760
|
+
# parameter in a subsequent call to the operation to get the next part
|
761
|
+
# of the output. You should repeat this until the `NextToken` response
|
762
|
+
# element comes back as `null`.
|
394
763
|
# @return [String]
|
395
764
|
#
|
396
765
|
# @!attribute [rw] query_errors
|
@@ -406,6 +775,7 @@ module Aws::ResourceGroups
|
|
406
775
|
:resource_identifiers,
|
407
776
|
:next_token,
|
408
777
|
:query_errors)
|
778
|
+
SENSITIVE = []
|
409
779
|
include Aws::Structure
|
410
780
|
end
|
411
781
|
|
@@ -415,7 +785,7 @@ module Aws::ResourceGroups
|
|
415
785
|
# {
|
416
786
|
# filters: [
|
417
787
|
# {
|
418
|
-
# name: "resource-type", # required, accepts resource-type
|
788
|
+
# name: "resource-type", # required, accepts resource-type, configuration-type
|
419
789
|
# values: ["GroupFilterValue"], # required
|
420
790
|
# },
|
421
791
|
# ],
|
@@ -425,24 +795,41 @@ module Aws::ResourceGroups
|
|
425
795
|
#
|
426
796
|
# @!attribute [rw] filters
|
427
797
|
# Filters, formatted as GroupFilter objects, that you want to apply to
|
428
|
-
# a ListGroups operation.
|
798
|
+
# a `ListGroups` operation.
|
429
799
|
#
|
430
|
-
# * `resource-type` - Filter
|
431
|
-
# five resource types in the
|
432
|
-
#
|
800
|
+
# * `resource-type` - Filter the results to include only those of the
|
801
|
+
# specified resource types. Specify up to five resource types in the
|
802
|
+
# format `AWS::ServiceCode::ResourceType `. For example,
|
803
|
+
# `AWS::EC2::Instance`, or `AWS::S3::Bucket`.
|
433
804
|
#
|
434
|
-
#
|
805
|
+
# * `configuration-type` - Filter the results to include only those
|
806
|
+
# groups that have the specified configuration types attached. The
|
807
|
+
# current supported values are:
|
808
|
+
#
|
809
|
+
# * AWS:EC2::CapacityReservationPool
|
810
|
+
#
|
811
|
+
# ^
|
435
812
|
# @return [Array<Types::GroupFilter>]
|
436
813
|
#
|
437
814
|
# @!attribute [rw] max_results
|
438
|
-
# The
|
439
|
-
#
|
815
|
+
# The total number of results that you want included on each page of
|
816
|
+
# the response. If you do not include this parameter, it defaults to a
|
817
|
+
# value that is specific to the operation. If additional items exist
|
818
|
+
# beyond the maximum you specify, the `NextToken` response element is
|
819
|
+
# present and has a value (is not null). Include that value as the
|
820
|
+
# `NextToken` request parameter in the next call to the operation to
|
821
|
+
# get the next part of the results. Note that the service might return
|
822
|
+
# fewer results than the maximum even when there are more results
|
823
|
+
# available. You should check `NextToken` after every operation to
|
824
|
+
# ensure that you receive all of the results.
|
440
825
|
# @return [Integer]
|
441
826
|
#
|
442
827
|
# @!attribute [rw] next_token
|
443
|
-
# The
|
444
|
-
#
|
445
|
-
#
|
828
|
+
# The parameter for receiving additional results if you receive a
|
829
|
+
# `NextToken` response in a previous request. A `NextToken` response
|
830
|
+
# indicates that more output is available. Set this parameter to the
|
831
|
+
# value provided by a previous call's `NextToken` response to
|
832
|
+
# indicate where the output should continue from.
|
446
833
|
# @return [String]
|
447
834
|
#
|
448
835
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsInput AWS API Documentation
|
@@ -451,21 +838,26 @@ module Aws::ResourceGroups
|
|
451
838
|
:filters,
|
452
839
|
:max_results,
|
453
840
|
:next_token)
|
841
|
+
SENSITIVE = []
|
454
842
|
include Aws::Structure
|
455
843
|
end
|
456
844
|
|
457
845
|
# @!attribute [rw] group_identifiers
|
458
846
|
# A list of GroupIdentifier objects. Each identifier is an object that
|
459
|
-
# contains both the
|
847
|
+
# contains both the `Name` and the `GroupArn`.
|
460
848
|
# @return [Array<Types::GroupIdentifier>]
|
461
849
|
#
|
462
850
|
# @!attribute [rw] groups
|
463
|
-
#
|
851
|
+
# This output element is deprecated and shouldn't be used. Refer to
|
852
|
+
# `GroupIdentifiers` instead.
|
464
853
|
# @return [Array<Types::Group>]
|
465
854
|
#
|
466
855
|
# @!attribute [rw] next_token
|
467
|
-
#
|
468
|
-
#
|
856
|
+
# If present, indicates that more output is available than is included
|
857
|
+
# in the current response. Use this value in the `NextToken` request
|
858
|
+
# parameter in a subsequent call to the operation to get the next part
|
859
|
+
# of the output. You should repeat this until the `NextToken` response
|
860
|
+
# element comes back as `null`.
|
469
861
|
# @return [String]
|
470
862
|
#
|
471
863
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsOutput AWS API Documentation
|
@@ -474,10 +866,11 @@ module Aws::ResourceGroups
|
|
474
866
|
:group_identifiers,
|
475
867
|
:groups,
|
476
868
|
:next_token)
|
869
|
+
SENSITIVE = []
|
477
870
|
include Aws::Structure
|
478
871
|
end
|
479
872
|
|
480
|
-
# The request uses an HTTP method
|
873
|
+
# The request uses an HTTP method that isn't allowed for the specified
|
481
874
|
# resource.
|
482
875
|
#
|
483
876
|
# @!attribute [rw] message
|
@@ -487,10 +880,11 @@ module Aws::ResourceGroups
|
|
487
880
|
#
|
488
881
|
class MethodNotAllowedException < Struct.new(
|
489
882
|
:message)
|
883
|
+
SENSITIVE = []
|
490
884
|
include Aws::Structure
|
491
885
|
end
|
492
886
|
|
493
|
-
# One or more
|
887
|
+
# One or more of the specified resources don't exist.
|
494
888
|
#
|
495
889
|
# @!attribute [rw] message
|
496
890
|
# @return [String]
|
@@ -499,6 +893,7 @@ module Aws::ResourceGroups
|
|
499
893
|
#
|
500
894
|
class NotFoundException < Struct.new(
|
501
895
|
:message)
|
896
|
+
SENSITIVE = []
|
502
897
|
include Aws::Structure
|
503
898
|
end
|
504
899
|
|
@@ -528,6 +923,7 @@ module Aws::ResourceGroups
|
|
528
923
|
class QueryError < Struct.new(
|
529
924
|
:error_code,
|
530
925
|
:message)
|
926
|
+
SENSITIVE = []
|
531
927
|
include Aws::Structure
|
532
928
|
end
|
533
929
|
|
@@ -556,6 +952,7 @@ module Aws::ResourceGroups
|
|
556
952
|
class ResourceFilter < Struct.new(
|
557
953
|
:name,
|
558
954
|
:values)
|
955
|
+
SENSITIVE = []
|
559
956
|
include Aws::Structure
|
560
957
|
end
|
561
958
|
|
@@ -574,6 +971,7 @@ module Aws::ResourceGroups
|
|
574
971
|
class ResourceIdentifier < Struct.new(
|
575
972
|
:resource_arn,
|
576
973
|
:resource_type)
|
974
|
+
SENSITIVE = []
|
577
975
|
include Aws::Structure
|
578
976
|
end
|
579
977
|
|
@@ -589,50 +987,56 @@ module Aws::ResourceGroups
|
|
589
987
|
# }
|
590
988
|
#
|
591
989
|
# @!attribute [rw] type
|
592
|
-
# The type of the query.
|
593
|
-
#
|
990
|
+
# The type of the query. You can use the following values:
|
991
|
+
#
|
992
|
+
# * <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> A JSON syntax that
|
993
|
+
# lets you specify a CloudFormation stack ARN.
|
994
|
+
#
|
995
|
+
# * <i> <code>TAG_FILTERS_1_0:</code> </i> A JSON syntax that lets you
|
996
|
+
# specify a collection of simple tag filters for resource types and
|
997
|
+
# tags, as supported by the AWS Tagging API [ `ResourceTypeFilters`
|
998
|
+
# parameter of the `tagging:GetResources` ][1] operation. If you
|
999
|
+
# specify more than one tag key, only resources that match all tag
|
1000
|
+
# keys, and at least one value of each specified tag key, are
|
1001
|
+
# returned in your query. If you specify more than one value for a
|
1002
|
+
# tag key, a resource matches the filter if it has a tag key value
|
1003
|
+
# that matches *any* of the specified values.
|
1004
|
+
#
|
1005
|
+
# For example, consider the following sample query for resources
|
1006
|
+
# that have two tags, `Stage` and `Version`, with two values each:
|
594
1007
|
#
|
595
|
-
#
|
596
|
-
# specify a collection of simple tag filters for resource types and
|
597
|
-
# tags, as supported by the AWS Tagging API [GetResources][1]
|
598
|
-
# operation. If you specify more than one tag key, only resources that
|
599
|
-
# match all tag keys, and at least one value of each specified tag
|
600
|
-
# key, are returned in your query. If you specify more than one value
|
601
|
-
# for a tag key, a resource matches the filter if it has a tag key
|
602
|
-
# value that matches *any* of the specified values.
|
1008
|
+
# `[\{"Key":"Stage","Values":["Test","Deploy"]\},\{"Key":"Version","Values":["1","2"]\}]`
|
603
1009
|
#
|
604
|
-
#
|
605
|
-
# have two tags, `Stage` and `Version`, with two values each.
|
606
|
-
# (`[\{"Key":"Stage","Values":["Test","Deploy"]\},\{"Key":"Version","Values":["1","2"]\}]`)
|
607
|
-
# The results of this query might include the following.
|
1010
|
+
# The results of this query could include the following.
|
608
1011
|
#
|
609
|
-
#
|
610
|
-
#
|
611
|
-
#
|
1012
|
+
# * An EC2 instance that has the following two tags:
|
1013
|
+
# `\{"Key":"Stage","Value":"Deploy"\}`, and
|
1014
|
+
# `\{"Key":"Version","Value":"2"\}`
|
612
1015
|
#
|
613
|
-
#
|
614
|
-
#
|
615
|
-
#
|
1016
|
+
# * An S3 bucket that has the following two tags:
|
1017
|
+
# `\{"Key":"Stage","Value":"Test"\}`, and
|
1018
|
+
# `\{"Key":"Version","Value":"1"\}`
|
616
1019
|
#
|
617
|
-
#
|
618
|
-
#
|
619
|
-
# filter, so it is rejected. The RDS database has all of the tag keys,
|
620
|
-
# but no values that match at least one of the specified tag key
|
621
|
-
# values in the filter.
|
1020
|
+
# The query would not include the following items in the results,
|
1021
|
+
# however.
|
622
1022
|
#
|
623
|
-
#
|
624
|
-
#
|
1023
|
+
# * An EC2 instance that has only the following tag:
|
1024
|
+
# `\{"Key":"Stage","Value":"Deploy"\}`.
|
625
1025
|
#
|
626
|
-
#
|
627
|
-
#
|
628
|
-
# `\{"Key":"Version","Value":"4"\}`
|
1026
|
+
# The instance does not have **all** of the tag keys specified in
|
1027
|
+
# the filter, so it is excluded from the results.
|
629
1028
|
#
|
630
|
-
#
|
631
|
-
#
|
1029
|
+
# * An RDS database that has the following two tags:
|
1030
|
+
# `\{"Key":"Stage","Value":"Archived"\}`, and
|
1031
|
+
# `\{"Key":"Version","Value":"4"\}`
|
632
1032
|
#
|
1033
|
+
# The database has all of the tag keys, but none of those keys has
|
1034
|
+
# an associated value that matches at least one of the specified
|
1035
|
+
# values in the filter.
|
633
1036
|
#
|
634
1037
|
#
|
635
|
-
#
|
1038
|
+
#
|
1039
|
+
# [1]: https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-ResourceTypeFilters
|
636
1040
|
# @return [String]
|
637
1041
|
#
|
638
1042
|
# @!attribute [rw] query
|
@@ -644,6 +1048,7 @@ module Aws::ResourceGroups
|
|
644
1048
|
class ResourceQuery < Struct.new(
|
645
1049
|
:type,
|
646
1050
|
:query)
|
1051
|
+
SENSITIVE = []
|
647
1052
|
include Aws::Structure
|
648
1053
|
end
|
649
1054
|
|
@@ -661,20 +1066,28 @@ module Aws::ResourceGroups
|
|
661
1066
|
#
|
662
1067
|
# @!attribute [rw] resource_query
|
663
1068
|
# The search query, using the same formats that are supported for
|
664
|
-
# resource group definition.
|
1069
|
+
# resource group definition. For more information, see CreateGroup.
|
665
1070
|
# @return [Types::ResourceQuery]
|
666
1071
|
#
|
667
1072
|
# @!attribute [rw] max_results
|
668
|
-
# The
|
669
|
-
#
|
670
|
-
#
|
1073
|
+
# The total number of results that you want included on each page of
|
1074
|
+
# the response. If you do not include this parameter, it defaults to a
|
1075
|
+
# value that is specific to the operation. If additional items exist
|
1076
|
+
# beyond the maximum you specify, the `NextToken` response element is
|
1077
|
+
# present and has a value (is not null). Include that value as the
|
1078
|
+
# `NextToken` request parameter in the next call to the operation to
|
1079
|
+
# get the next part of the results. Note that the service might return
|
1080
|
+
# fewer results than the maximum even when there are more results
|
1081
|
+
# available. You should check `NextToken` after every operation to
|
1082
|
+
# ensure that you receive all of the results.
|
671
1083
|
# @return [Integer]
|
672
1084
|
#
|
673
1085
|
# @!attribute [rw] next_token
|
674
|
-
# The
|
675
|
-
# `
|
676
|
-
#
|
677
|
-
# value
|
1086
|
+
# The parameter for receiving additional results if you receive a
|
1087
|
+
# `NextToken` response in a previous request. A `NextToken` response
|
1088
|
+
# indicates that more output is available. Set this parameter to the
|
1089
|
+
# value provided by a previous call's `NextToken` response to
|
1090
|
+
# indicate where the output should continue from.
|
678
1091
|
# @return [String]
|
679
1092
|
#
|
680
1093
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/SearchResourcesInput AWS API Documentation
|
@@ -683,6 +1096,7 @@ module Aws::ResourceGroups
|
|
683
1096
|
:resource_query,
|
684
1097
|
:max_results,
|
685
1098
|
:next_token)
|
1099
|
+
SENSITIVE = []
|
686
1100
|
include Aws::Structure
|
687
1101
|
end
|
688
1102
|
|
@@ -692,8 +1106,11 @@ module Aws::ResourceGroups
|
|
692
1106
|
# @return [Array<Types::ResourceIdentifier>]
|
693
1107
|
#
|
694
1108
|
# @!attribute [rw] next_token
|
695
|
-
#
|
696
|
-
#
|
1109
|
+
# If present, indicates that more output is available than is included
|
1110
|
+
# in the current response. Use this value in the `NextToken` request
|
1111
|
+
# parameter in a subsequent call to the operation to get the next part
|
1112
|
+
# of the output. You should repeat this until the `NextToken` response
|
1113
|
+
# element comes back as `null`.
|
697
1114
|
# @return [String]
|
698
1115
|
#
|
699
1116
|
# @!attribute [rw] query_errors
|
@@ -709,6 +1126,7 @@ module Aws::ResourceGroups
|
|
709
1126
|
:resource_identifiers,
|
710
1127
|
:next_token,
|
711
1128
|
:query_errors)
|
1129
|
+
SENSITIVE = []
|
712
1130
|
include Aws::Structure
|
713
1131
|
end
|
714
1132
|
|
@@ -723,14 +1141,12 @@ module Aws::ResourceGroups
|
|
723
1141
|
# }
|
724
1142
|
#
|
725
1143
|
# @!attribute [rw] arn
|
726
|
-
# The ARN of the resource to which to add tags.
|
1144
|
+
# The ARN of the resource group to which to add tags.
|
727
1145
|
# @return [String]
|
728
1146
|
#
|
729
1147
|
# @!attribute [rw] tags
|
730
|
-
# The tags to add to the specified resource. A tag is a
|
731
|
-
# string-to-string map of key-value pairs.
|
732
|
-
# character length of 128 characters, and tag values can have a
|
733
|
-
# maximum length of 256 characters.
|
1148
|
+
# The tags to add to the specified resource group. A tag is a
|
1149
|
+
# string-to-string map of key-value pairs.
|
734
1150
|
# @return [Hash<String,String>]
|
735
1151
|
#
|
736
1152
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/TagInput AWS API Documentation
|
@@ -738,6 +1154,7 @@ module Aws::ResourceGroups
|
|
738
1154
|
class TagInput < Struct.new(
|
739
1155
|
:arn,
|
740
1156
|
:tags)
|
1157
|
+
SENSITIVE = []
|
741
1158
|
include Aws::Structure
|
742
1159
|
end
|
743
1160
|
|
@@ -746,7 +1163,7 @@ module Aws::ResourceGroups
|
|
746
1163
|
# @return [String]
|
747
1164
|
#
|
748
1165
|
# @!attribute [rw] tags
|
749
|
-
# The tags that have been added to the specified resource.
|
1166
|
+
# The tags that have been added to the specified resource group.
|
750
1167
|
# @return [Hash<String,String>]
|
751
1168
|
#
|
752
1169
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/TagOutput AWS API Documentation
|
@@ -754,10 +1171,12 @@ module Aws::ResourceGroups
|
|
754
1171
|
class TagOutput < Struct.new(
|
755
1172
|
:arn,
|
756
1173
|
:tags)
|
1174
|
+
SENSITIVE = []
|
757
1175
|
include Aws::Structure
|
758
1176
|
end
|
759
1177
|
|
760
|
-
#
|
1178
|
+
# You've exceeded throttling limits by making too many requests in a
|
1179
|
+
# period of time.
|
761
1180
|
#
|
762
1181
|
# @!attribute [rw] message
|
763
1182
|
# @return [String]
|
@@ -766,11 +1185,12 @@ module Aws::ResourceGroups
|
|
766
1185
|
#
|
767
1186
|
class TooManyRequestsException < Struct.new(
|
768
1187
|
:message)
|
1188
|
+
SENSITIVE = []
|
769
1189
|
include Aws::Structure
|
770
1190
|
end
|
771
1191
|
|
772
|
-
# The request
|
773
|
-
#
|
1192
|
+
# The request was rejected because it doesn't have valid credentials
|
1193
|
+
# for the target resource.
|
774
1194
|
#
|
775
1195
|
# @!attribute [rw] message
|
776
1196
|
# @return [String]
|
@@ -779,6 +1199,51 @@ module Aws::ResourceGroups
|
|
779
1199
|
#
|
780
1200
|
class UnauthorizedException < Struct.new(
|
781
1201
|
:message)
|
1202
|
+
SENSITIVE = []
|
1203
|
+
include Aws::Structure
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
# @note When making an API call, you may pass UngroupResourcesInput
|
1207
|
+
# data as a hash:
|
1208
|
+
#
|
1209
|
+
# {
|
1210
|
+
# group: "GroupString", # required
|
1211
|
+
# resource_arns: ["ResourceArn"], # required
|
1212
|
+
# }
|
1213
|
+
#
|
1214
|
+
# @!attribute [rw] group
|
1215
|
+
# The name or the ARN of the resource group from which to remove the
|
1216
|
+
# resources.
|
1217
|
+
# @return [String]
|
1218
|
+
#
|
1219
|
+
# @!attribute [rw] resource_arns
|
1220
|
+
# The ARNs of the resources to be removed from the group.
|
1221
|
+
# @return [Array<String>]
|
1222
|
+
#
|
1223
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UngroupResourcesInput AWS API Documentation
|
1224
|
+
#
|
1225
|
+
class UngroupResourcesInput < Struct.new(
|
1226
|
+
:group,
|
1227
|
+
:resource_arns)
|
1228
|
+
SENSITIVE = []
|
1229
|
+
include Aws::Structure
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
# @!attribute [rw] succeeded
|
1233
|
+
# The ARNs of the resources that were successfully removed from the
|
1234
|
+
# group.
|
1235
|
+
# @return [Array<String>]
|
1236
|
+
#
|
1237
|
+
# @!attribute [rw] failed
|
1238
|
+
# The resources that failed to be removed from the group.
|
1239
|
+
# @return [Array<Types::FailedResource>]
|
1240
|
+
#
|
1241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UngroupResourcesOutput AWS API Documentation
|
1242
|
+
#
|
1243
|
+
class UngroupResourcesOutput < Struct.new(
|
1244
|
+
:succeeded,
|
1245
|
+
:failed)
|
1246
|
+
SENSITIVE = []
|
782
1247
|
include Aws::Structure
|
783
1248
|
end
|
784
1249
|
|
@@ -791,7 +1256,9 @@ module Aws::ResourceGroups
|
|
791
1256
|
# }
|
792
1257
|
#
|
793
1258
|
# @!attribute [rw] arn
|
794
|
-
# The ARN of the resource from which to remove tags.
|
1259
|
+
# The ARN of the resource group from which to remove tags. The command
|
1260
|
+
# removed both the specified keys and any values associated with those
|
1261
|
+
# keys.
|
795
1262
|
# @return [String]
|
796
1263
|
#
|
797
1264
|
# @!attribute [rw] keys
|
@@ -803,15 +1270,16 @@ module Aws::ResourceGroups
|
|
803
1270
|
class UntagInput < Struct.new(
|
804
1271
|
:arn,
|
805
1272
|
:keys)
|
1273
|
+
SENSITIVE = []
|
806
1274
|
include Aws::Structure
|
807
1275
|
end
|
808
1276
|
|
809
1277
|
# @!attribute [rw] arn
|
810
|
-
# The ARN of the resource from which tags have been removed.
|
1278
|
+
# The ARN of the resource group from which tags have been removed.
|
811
1279
|
# @return [String]
|
812
1280
|
#
|
813
1281
|
# @!attribute [rw] keys
|
814
|
-
# The keys of tags that
|
1282
|
+
# The keys of the tags that were removed.
|
815
1283
|
# @return [Array<String>]
|
816
1284
|
#
|
817
1285
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UntagOutput AWS API Documentation
|
@@ -819,6 +1287,7 @@ module Aws::ResourceGroups
|
|
819
1287
|
class UntagOutput < Struct.new(
|
820
1288
|
:arn,
|
821
1289
|
:keys)
|
1290
|
+
SENSITIVE = []
|
822
1291
|
include Aws::Structure
|
823
1292
|
end
|
824
1293
|
|
@@ -826,38 +1295,44 @@ module Aws::ResourceGroups
|
|
826
1295
|
# data as a hash:
|
827
1296
|
#
|
828
1297
|
# {
|
829
|
-
# group_name: "GroupName",
|
830
|
-
#
|
1298
|
+
# group_name: "GroupName",
|
1299
|
+
# group: "GroupString",
|
1300
|
+
# description: "Description",
|
831
1301
|
# }
|
832
1302
|
#
|
833
1303
|
# @!attribute [rw] group_name
|
834
|
-
#
|
835
|
-
#
|
1304
|
+
# Don't use this parameter. Use `Group` instead.
|
1305
|
+
# @return [String]
|
1306
|
+
#
|
1307
|
+
# @!attribute [rw] group
|
1308
|
+
# The name or the ARN of the resource group to modify.
|
836
1309
|
# @return [String]
|
837
1310
|
#
|
838
1311
|
# @!attribute [rw] description
|
839
|
-
# The description
|
840
|
-
#
|
841
|
-
#
|
1312
|
+
# The new description that you want to update the resource group with.
|
1313
|
+
# Descriptions can contain letters, numbers, hyphens, underscores,
|
1314
|
+
# periods, and spaces.
|
842
1315
|
# @return [String]
|
843
1316
|
#
|
844
1317
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupInput AWS API Documentation
|
845
1318
|
#
|
846
1319
|
class UpdateGroupInput < Struct.new(
|
847
1320
|
:group_name,
|
1321
|
+
:group,
|
848
1322
|
:description)
|
1323
|
+
SENSITIVE = []
|
849
1324
|
include Aws::Structure
|
850
1325
|
end
|
851
1326
|
|
852
1327
|
# @!attribute [rw] group
|
853
|
-
# The
|
854
|
-
# updated.
|
1328
|
+
# The update description of the resource group.
|
855
1329
|
# @return [Types::Group]
|
856
1330
|
#
|
857
1331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupOutput AWS API Documentation
|
858
1332
|
#
|
859
1333
|
class UpdateGroupOutput < Struct.new(
|
860
1334
|
:group)
|
1335
|
+
SENSITIVE = []
|
861
1336
|
include Aws::Structure
|
862
1337
|
end
|
863
1338
|
|
@@ -865,7 +1340,8 @@ module Aws::ResourceGroups
|
|
865
1340
|
# data as a hash:
|
866
1341
|
#
|
867
1342
|
# {
|
868
|
-
# group_name: "GroupName",
|
1343
|
+
# group_name: "GroupName",
|
1344
|
+
# group: "GroupString",
|
869
1345
|
# resource_query: { # required
|
870
1346
|
# type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0, CLOUDFORMATION_STACK_1_0
|
871
1347
|
# query: "Query", # required
|
@@ -873,31 +1349,38 @@ module Aws::ResourceGroups
|
|
873
1349
|
# }
|
874
1350
|
#
|
875
1351
|
# @!attribute [rw] group_name
|
876
|
-
#
|
1352
|
+
# Don't use this parameter. Use `Group` instead.
|
1353
|
+
# @return [String]
|
1354
|
+
#
|
1355
|
+
# @!attribute [rw] group
|
1356
|
+
# The name or the ARN of the resource group to query.
|
877
1357
|
# @return [String]
|
878
1358
|
#
|
879
1359
|
# @!attribute [rw] resource_query
|
880
|
-
# The resource query
|
881
|
-
#
|
1360
|
+
# The resource query to determine which AWS resources are members of
|
1361
|
+
# this resource group.
|
882
1362
|
# @return [Types::ResourceQuery]
|
883
1363
|
#
|
884
1364
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQueryInput AWS API Documentation
|
885
1365
|
#
|
886
1366
|
class UpdateGroupQueryInput < Struct.new(
|
887
1367
|
:group_name,
|
1368
|
+
:group,
|
888
1369
|
:resource_query)
|
1370
|
+
SENSITIVE = []
|
889
1371
|
include Aws::Structure
|
890
1372
|
end
|
891
1373
|
|
892
1374
|
# @!attribute [rw] group_query
|
893
|
-
# The resource query associated with the resource group after
|
894
|
-
# update.
|
1375
|
+
# The updated resource query associated with the resource group after
|
1376
|
+
# the update.
|
895
1377
|
# @return [Types::GroupQuery]
|
896
1378
|
#
|
897
1379
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQueryOutput AWS API Documentation
|
898
1380
|
#
|
899
1381
|
class UpdateGroupQueryOutput < Struct.new(
|
900
1382
|
:group_query)
|
1383
|
+
SENSITIVE = []
|
901
1384
|
include Aws::Structure
|
902
1385
|
end
|
903
1386
|
|