aws-sdk-resourcegroups 1.45.0 → 1.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-resourcegroups/client.rb +141 -45
- data/lib/aws-sdk-resourcegroups/client_api.rb +47 -0
- data/lib/aws-sdk-resourcegroups/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-resourcegroups/endpoint_provider.rb +116 -0
- data/lib/aws-sdk-resourcegroups/endpoints.rb +267 -0
- data/lib/aws-sdk-resourcegroups/plugins/endpoints.rb +104 -0
- data/lib/aws-sdk-resourcegroups/types.rb +221 -366
- data/lib/aws-sdk-resourcegroups.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83e16472fd02f14ad8439251d5bf696610093e13efdbcb96744c65116af91e11
|
4
|
+
data.tar.gz: 2963fa3de5ff6c8d72acf4023f4ed990690a126da1f416996f0299e0de0c1e58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cef0df700a3e2e4ed268695ab9b6809796b46cc37d8d254f6122c1be063ae695ffe72847e037e63c6a2794ebbc8d271581f826ddb51896244b611c7f053df65d
|
7
|
+
data.tar.gz: 7c1c08dc23c428f3f35be4cfd2a3db0887ea36ef0a31b4de440d0b36383877a8ca909b23d27570f2ad394477e860a55387ce41da96408f7a119991b8b1d917e7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.47.0 (2023-01-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - 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.
|
8
|
+
|
9
|
+
1.46.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.45.0 (2022-02-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.47.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:resourcegroups)
|
@@ -79,8 +79,9 @@ module Aws::ResourceGroups
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::ResourceGroups::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::ResourceGroups
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::ResourceGroups
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::ResourceGroups::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ResourceGroups::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -352,11 +369,12 @@ module Aws::ResourceGroups
|
|
352
369
|
# @!group API Operations
|
353
370
|
|
354
371
|
# Creates a resource group with the specified name and description. You
|
355
|
-
# can optionally include a resource query
|
356
|
-
# For more information about constructing a resource
|
357
|
-
#
|
358
|
-
#
|
359
|
-
# groups
|
372
|
+
# can optionally include either a resource query or a service
|
373
|
+
# configuration. For more information about constructing a resource
|
374
|
+
# query, see [Build queries and groups in Resource Groups][1] in the
|
375
|
+
# *Resource Groups User Guide*. For more information about
|
376
|
+
# service-linked groups and service configurations, see [Service
|
377
|
+
# configurations for Resource Groups][2].
|
360
378
|
#
|
361
379
|
# **Minimum permissions**
|
362
380
|
#
|
@@ -368,7 +386,7 @@ module Aws::ResourceGroups
|
|
368
386
|
#
|
369
387
|
#
|
370
388
|
#
|
371
|
-
# [1]: https://docs.aws.amazon.com/ARG/latest/userguide/
|
389
|
+
# [1]: https://docs.aws.amazon.com/ARG/latest/userguide/getting_started-query.html
|
372
390
|
# [2]: https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html
|
373
391
|
#
|
374
392
|
# @option params [required, String] :name
|
@@ -377,16 +395,16 @@ module Aws::ResourceGroups
|
|
377
395
|
# create it. A resource group name can consist of letters, numbers,
|
378
396
|
# hyphens, periods, and underscores. The name cannot start with `AWS` or
|
379
397
|
# `aws`; these are reserved. A resource group name must be unique within
|
380
|
-
# each
|
398
|
+
# each Amazon Web Services Region in your Amazon Web Services account.
|
381
399
|
#
|
382
400
|
# @option params [String] :description
|
383
401
|
# The description of the resource group. Descriptions can consist of
|
384
402
|
# letters, numbers, hyphens, underscores, periods, and spaces.
|
385
403
|
#
|
386
404
|
# @option params [Types::ResourceQuery] :resource_query
|
387
|
-
# The resource query that determines which
|
388
|
-
# this group. For more information about resource
|
389
|
-
# tag-based group in Resource Groups][1].
|
405
|
+
# The resource query that determines which Amazon Web Services resources
|
406
|
+
# are members of this group. For more information about resource
|
407
|
+
# queries, see [Create a tag-based group in Resource Groups][1].
|
390
408
|
#
|
391
409
|
# <note markdown="1"> A resource group can contain either a `ResourceQuery` or a
|
392
410
|
# `Configuration`, but not both.
|
@@ -401,11 +419,12 @@ module Aws::ResourceGroups
|
|
401
419
|
# The tags to add to the group. A tag is key-value pair string.
|
402
420
|
#
|
403
421
|
# @option params [Array<Types::GroupConfigurationItem>] :configuration
|
404
|
-
# A configuration associates the resource group with an
|
405
|
-
# specifies how the service can interact with the
|
406
|
-
# group. A configuration is an array of
|
407
|
-
# For details about the syntax of
|
408
|
-
# configurations for
|
422
|
+
# A configuration associates the resource group with an Amazon Web
|
423
|
+
# Services service and specifies how the service can interact with the
|
424
|
+
# resources in the group. A configuration is an array of
|
425
|
+
# GroupConfigurationItem elements. For details about the syntax of
|
426
|
+
# service configurations, see [Service configurations for Resource
|
427
|
+
# Groups][1].
|
409
428
|
#
|
410
429
|
# <note markdown="1"> A resource group can contain either a `Configuration` or a
|
411
430
|
# `ResourceQuery`, but not both.
|
@@ -525,6 +544,27 @@ module Aws::ResourceGroups
|
|
525
544
|
req.send_request(options)
|
526
545
|
end
|
527
546
|
|
547
|
+
# Retrieves the current status of optional features in Resource Groups.
|
548
|
+
#
|
549
|
+
# @return [Types::GetAccountSettingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
550
|
+
#
|
551
|
+
# * {Types::GetAccountSettingsOutput#account_settings #account_settings} => Types::AccountSettings
|
552
|
+
#
|
553
|
+
# @example Response structure
|
554
|
+
#
|
555
|
+
# resp.account_settings.group_lifecycle_events_desired_status #=> String, one of "ACTIVE", "INACTIVE"
|
556
|
+
# resp.account_settings.group_lifecycle_events_status #=> String, one of "ACTIVE", "INACTIVE", "IN_PROGRESS", "ERROR"
|
557
|
+
# resp.account_settings.group_lifecycle_events_status_message #=> String
|
558
|
+
#
|
559
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetAccountSettings AWS API Documentation
|
560
|
+
#
|
561
|
+
# @overload get_account_settings(params = {})
|
562
|
+
# @param [Hash] params ({})
|
563
|
+
def get_account_settings(params = {}, options = {})
|
564
|
+
req = build_request(:get_account_settings, params)
|
565
|
+
req.send_request(options)
|
566
|
+
end
|
567
|
+
|
528
568
|
# Returns information about a specified resource group.
|
529
569
|
#
|
530
570
|
# **Minimum permissions**
|
@@ -567,9 +607,9 @@ module Aws::ResourceGroups
|
|
567
607
|
req.send_request(options)
|
568
608
|
end
|
569
609
|
|
570
|
-
#
|
610
|
+
# Retrieves the service configuration associated with the specified
|
571
611
|
# resource group. For details about the service configuration syntax,
|
572
|
-
# see [Service configurations for
|
612
|
+
# see [Service configurations for Resource Groups][1].
|
573
613
|
#
|
574
614
|
# **Minimum permissions**
|
575
615
|
#
|
@@ -584,7 +624,8 @@ module Aws::ResourceGroups
|
|
584
624
|
# [1]: https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html
|
585
625
|
#
|
586
626
|
# @option params [String] :group
|
587
|
-
# The name or the ARN of the resource group
|
627
|
+
# The name or the ARN of the resource group for which you want to
|
628
|
+
# retrive the service configuration.
|
588
629
|
#
|
589
630
|
# @return [Types::GetGroupConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
590
631
|
#
|
@@ -712,6 +753,16 @@ module Aws::ResourceGroups
|
|
712
753
|
|
713
754
|
# Adds the specified resources to the specified group.
|
714
755
|
#
|
756
|
+
# You can use this operation with only resource groups that are
|
757
|
+
# configured with the following types:
|
758
|
+
#
|
759
|
+
# * `AWS::EC2::HostManagement`
|
760
|
+
#
|
761
|
+
# * `AWS::EC2::CapacityReservationPool`
|
762
|
+
#
|
763
|
+
# Other resource group type and resource types aren't currently
|
764
|
+
# supported by this operation.
|
765
|
+
#
|
715
766
|
# **Minimum permissions**
|
716
767
|
#
|
717
768
|
# To run this command, you must have the following permissions:
|
@@ -724,7 +775,7 @@ module Aws::ResourceGroups
|
|
724
775
|
# The name or the ARN of the resource group to add resources to.
|
725
776
|
#
|
726
777
|
# @option params [required, Array<String>] :resource_arns
|
727
|
-
# The list of ARNs
|
778
|
+
# The list of ARNs of the resources to be added to the group.
|
728
779
|
#
|
729
780
|
# @return [Types::GroupResourcesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
730
781
|
#
|
@@ -793,12 +844,12 @@ module Aws::ResourceGroups
|
|
793
844
|
# ^
|
794
845
|
#
|
795
846
|
# When you specify a `resource-type` filter for `ListGroupResources`,
|
796
|
-
#
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
800
|
-
#
|
801
|
-
#
|
847
|
+
# Resource Groups validates your filter resource types against the types
|
848
|
+
# that are defined in the query associated with the group. For example,
|
849
|
+
# if a group contains only S3 buckets because its query specifies only
|
850
|
+
# that resource type, but your `resource-type` filter includes EC2
|
851
|
+
# instances, AWS Resource Groups does not filter for EC2 instances. In
|
852
|
+
# this case, a `ListGroupResources` request returns a
|
802
853
|
# `BadRequestException` error with a message similar to the following:
|
803
854
|
#
|
804
855
|
# `The resource types specified as filters in the request are not
|
@@ -808,8 +859,8 @@ module Aws::ResourceGroups
|
|
808
859
|
# because they are not part of the query associated with the group. This
|
809
860
|
# validation doesn't occur when the group query specifies
|
810
861
|
# `AWS::AllSupported`, because a group based on such a query can contain
|
811
|
-
# any of the allowed resource types for the query type (tag-based or
|
812
|
-
#
|
862
|
+
# any of the allowed resource types for the query type (tag-based or
|
863
|
+
# Amazon CloudFront stack-based queries).
|
813
864
|
#
|
814
865
|
# @option params [Integer] :max_results
|
815
866
|
# The total number of results that you want included on each page of the
|
@@ -865,7 +916,7 @@ module Aws::ResourceGroups
|
|
865
916
|
# resp.resource_identifiers[0].resource_type #=> String
|
866
917
|
# resp.next_token #=> String
|
867
918
|
# resp.query_errors #=> Array
|
868
|
-
# resp.query_errors[0].error_code #=> String, one of "CLOUDFORMATION_STACK_INACTIVE", "CLOUDFORMATION_STACK_NOT_EXISTING"
|
919
|
+
# resp.query_errors[0].error_code #=> String, one of "CLOUDFORMATION_STACK_INACTIVE", "CLOUDFORMATION_STACK_NOT_EXISTING", "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
|
869
920
|
# resp.query_errors[0].message #=> String
|
870
921
|
#
|
871
922
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupResources AWS API Documentation
|
@@ -877,7 +928,7 @@ module Aws::ResourceGroups
|
|
877
928
|
req.send_request(options)
|
878
929
|
end
|
879
930
|
|
880
|
-
# Returns a list of existing
|
931
|
+
# Returns a list of existing Resource Groups in your account.
|
881
932
|
#
|
882
933
|
# **Minimum permissions**
|
883
934
|
#
|
@@ -900,9 +951,9 @@ module Aws::ResourceGroups
|
|
900
951
|
# groups that have the specified configuration types attached. The
|
901
952
|
# current supported values are:
|
902
953
|
#
|
903
|
-
# * `AWS
|
954
|
+
# * `AWS::EC2::CapacityReservationPool`
|
904
955
|
#
|
905
|
-
# * `AWS
|
956
|
+
# * `AWS::EC2::HostManagement`
|
906
957
|
#
|
907
958
|
# @option params [Integer] :max_results
|
908
959
|
# The total number of results that you want included on each page of the
|
@@ -982,12 +1033,13 @@ module Aws::ResourceGroups
|
|
982
1033
|
#
|
983
1034
|
# @option params [Array<Types::GroupConfigurationItem>] :configuration
|
984
1035
|
# The new configuration to associate with the specified group. A
|
985
|
-
# configuration associates the resource group with an
|
986
|
-
# specifies how the service can interact with the
|
987
|
-
# group. A configuration is an array of
|
1036
|
+
# configuration associates the resource group with an Amazon Web
|
1037
|
+
# Services service and specifies how the service can interact with the
|
1038
|
+
# resources in the group. A configuration is an array of
|
1039
|
+
# GroupConfigurationItem elements.
|
988
1040
|
#
|
989
1041
|
# For information about the syntax of a service configuration, see
|
990
|
-
# [Service configurations for
|
1042
|
+
# [Service configurations for Resource Groups][1].
|
991
1043
|
#
|
992
1044
|
# <note markdown="1"> A resource group can contain either a `Configuration` or a
|
993
1045
|
# `ResourceQuery`, but not both.
|
@@ -1026,9 +1078,9 @@ module Aws::ResourceGroups
|
|
1026
1078
|
req.send_request(options)
|
1027
1079
|
end
|
1028
1080
|
|
1029
|
-
# Returns a list of
|
1030
|
-
# query. The query uses the same format as a
|
1031
|
-
# CreateGroup or UpdateGroupQuery operation.
|
1081
|
+
# Returns a list of Amazon Web Services resource identifiers that
|
1082
|
+
# matches the specified query. The query uses the same format as a
|
1083
|
+
# resource query in a CreateGroup or UpdateGroupQuery operation.
|
1032
1084
|
#
|
1033
1085
|
# **Minimum permissions**
|
1034
1086
|
#
|
@@ -1091,7 +1143,7 @@ module Aws::ResourceGroups
|
|
1091
1143
|
# resp.resource_identifiers[0].resource_type #=> String
|
1092
1144
|
# resp.next_token #=> String
|
1093
1145
|
# resp.query_errors #=> Array
|
1094
|
-
# resp.query_errors[0].error_code #=> String, one of "CLOUDFORMATION_STACK_INACTIVE", "CLOUDFORMATION_STACK_NOT_EXISTING"
|
1146
|
+
# resp.query_errors[0].error_code #=> String, one of "CLOUDFORMATION_STACK_INACTIVE", "CLOUDFORMATION_STACK_NOT_EXISTING", "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
|
1095
1147
|
# resp.query_errors[0].message #=> String
|
1096
1148
|
#
|
1097
1149
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/SearchResources AWS API Documentation
|
@@ -1156,7 +1208,11 @@ module Aws::ResourceGroups
|
|
1156
1208
|
req.send_request(options)
|
1157
1209
|
end
|
1158
1210
|
|
1159
|
-
# Removes the specified resources from the specified group.
|
1211
|
+
# Removes the specified resources from the specified group. This
|
1212
|
+
# operation works only with static groups that you populated using the
|
1213
|
+
# GroupResources operation. It doesn't work with any resource groups
|
1214
|
+
# that are automatically populated by tag-based or CloudFormation
|
1215
|
+
# stack-based queries.
|
1160
1216
|
#
|
1161
1217
|
# **Minimum permissions**
|
1162
1218
|
#
|
@@ -1251,6 +1307,46 @@ module Aws::ResourceGroups
|
|
1251
1307
|
req.send_request(options)
|
1252
1308
|
end
|
1253
1309
|
|
1310
|
+
# Turns on or turns off optional features in Resource Groups.
|
1311
|
+
#
|
1312
|
+
# The preceding example shows that the request to turn on group
|
1313
|
+
# lifecycle events is `IN_PROGRESS`. You can call the GetAccountSettings
|
1314
|
+
# operation to check for completion by looking for
|
1315
|
+
# `GroupLifecycleEventsStatus` to change to `ACTIVE`.
|
1316
|
+
#
|
1317
|
+
# @option params [String] :group_lifecycle_events_desired_status
|
1318
|
+
# Specifies whether you want to turn [group lifecycle events][1] on or
|
1319
|
+
# off.
|
1320
|
+
#
|
1321
|
+
#
|
1322
|
+
#
|
1323
|
+
# [1]: https://docs.aws.amazon.com/ARG/latest/userguide/monitor-groups.html
|
1324
|
+
#
|
1325
|
+
# @return [Types::UpdateAccountSettingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1326
|
+
#
|
1327
|
+
# * {Types::UpdateAccountSettingsOutput#account_settings #account_settings} => Types::AccountSettings
|
1328
|
+
#
|
1329
|
+
# @example Request syntax with placeholder values
|
1330
|
+
#
|
1331
|
+
# resp = client.update_account_settings({
|
1332
|
+
# group_lifecycle_events_desired_status: "ACTIVE", # accepts ACTIVE, INACTIVE
|
1333
|
+
# })
|
1334
|
+
#
|
1335
|
+
# @example Response structure
|
1336
|
+
#
|
1337
|
+
# resp.account_settings.group_lifecycle_events_desired_status #=> String, one of "ACTIVE", "INACTIVE"
|
1338
|
+
# resp.account_settings.group_lifecycle_events_status #=> String, one of "ACTIVE", "INACTIVE", "IN_PROGRESS", "ERROR"
|
1339
|
+
# resp.account_settings.group_lifecycle_events_status_message #=> String
|
1340
|
+
#
|
1341
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateAccountSettings AWS API Documentation
|
1342
|
+
#
|
1343
|
+
# @overload update_account_settings(params = {})
|
1344
|
+
# @param [Hash] params ({})
|
1345
|
+
def update_account_settings(params = {}, options = {})
|
1346
|
+
req = build_request(:update_account_settings, params)
|
1347
|
+
req.send_request(options)
|
1348
|
+
end
|
1349
|
+
|
1254
1350
|
# Updates the description for an existing group. You cannot update the
|
1255
1351
|
# name of a resource group.
|
1256
1352
|
#
|
@@ -1323,8 +1419,8 @@ module Aws::ResourceGroups
|
|
1323
1419
|
# The name or the ARN of the resource group to query.
|
1324
1420
|
#
|
1325
1421
|
# @option params [required, Types::ResourceQuery] :resource_query
|
1326
|
-
# The resource query to determine which
|
1327
|
-
# this resource group.
|
1422
|
+
# The resource query to determine which Amazon Web Services resources
|
1423
|
+
# are members of this resource group.
|
1328
1424
|
#
|
1329
1425
|
# <note markdown="1"> A resource group can contain either a `Configuration` or a
|
1330
1426
|
# `ResourceQuery`, but not both.
|
@@ -1374,7 +1470,7 @@ module Aws::ResourceGroups
|
|
1374
1470
|
params: params,
|
1375
1471
|
config: config)
|
1376
1472
|
context[:gem_name] = 'aws-sdk-resourcegroups'
|
1377
|
-
context[:gem_version] = '1.
|
1473
|
+
context[:gem_version] = '1.47.0'
|
1378
1474
|
Seahorse::Client::Request.new(handlers, context)
|
1379
1475
|
end
|
1380
1476
|
|
@@ -13,6 +13,7 @@ module Aws::ResourceGroups
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
AccountSettings = Shapes::StructureShape.new(name: 'AccountSettings')
|
16
17
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
17
18
|
CreateGroupInput = Shapes::StructureShape.new(name: 'CreateGroupInput')
|
18
19
|
CreateGroupOutput = Shapes::StructureShape.new(name: 'CreateGroupOutput')
|
@@ -24,6 +25,7 @@ module Aws::ResourceGroups
|
|
24
25
|
FailedResource = Shapes::StructureShape.new(name: 'FailedResource')
|
25
26
|
FailedResourceList = Shapes::ListShape.new(name: 'FailedResourceList')
|
26
27
|
ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
|
28
|
+
GetAccountSettingsOutput = Shapes::StructureShape.new(name: 'GetAccountSettingsOutput')
|
27
29
|
GetGroupConfigurationInput = Shapes::StructureShape.new(name: 'GetGroupConfigurationInput')
|
28
30
|
GetGroupConfigurationOutput = Shapes::StructureShape.new(name: 'GetGroupConfigurationOutput')
|
29
31
|
GetGroupInput = Shapes::StructureShape.new(name: 'GetGroupInput')
|
@@ -51,6 +53,9 @@ module Aws::ResourceGroups
|
|
51
53
|
GroupFilterValues = Shapes::ListShape.new(name: 'GroupFilterValues')
|
52
54
|
GroupIdentifier = Shapes::StructureShape.new(name: 'GroupIdentifier')
|
53
55
|
GroupIdentifierList = Shapes::ListShape.new(name: 'GroupIdentifierList')
|
56
|
+
GroupLifecycleEventsDesiredStatus = Shapes::StringShape.new(name: 'GroupLifecycleEventsDesiredStatus')
|
57
|
+
GroupLifecycleEventsStatus = Shapes::StringShape.new(name: 'GroupLifecycleEventsStatus')
|
58
|
+
GroupLifecycleEventsStatusMessage = Shapes::StringShape.new(name: 'GroupLifecycleEventsStatusMessage')
|
54
59
|
GroupList = Shapes::ListShape.new(name: 'GroupList')
|
55
60
|
GroupName = Shapes::StringShape.new(name: 'GroupName')
|
56
61
|
GroupParameterList = Shapes::ListShape.new(name: 'GroupParameterList')
|
@@ -106,11 +111,18 @@ module Aws::ResourceGroups
|
|
106
111
|
UngroupResourcesOutput = Shapes::StructureShape.new(name: 'UngroupResourcesOutput')
|
107
112
|
UntagInput = Shapes::StructureShape.new(name: 'UntagInput')
|
108
113
|
UntagOutput = Shapes::StructureShape.new(name: 'UntagOutput')
|
114
|
+
UpdateAccountSettingsInput = Shapes::StructureShape.new(name: 'UpdateAccountSettingsInput')
|
115
|
+
UpdateAccountSettingsOutput = Shapes::StructureShape.new(name: 'UpdateAccountSettingsOutput')
|
109
116
|
UpdateGroupInput = Shapes::StructureShape.new(name: 'UpdateGroupInput')
|
110
117
|
UpdateGroupOutput = Shapes::StructureShape.new(name: 'UpdateGroupOutput')
|
111
118
|
UpdateGroupQueryInput = Shapes::StructureShape.new(name: 'UpdateGroupQueryInput')
|
112
119
|
UpdateGroupQueryOutput = Shapes::StructureShape.new(name: 'UpdateGroupQueryOutput')
|
113
120
|
|
121
|
+
AccountSettings.add_member(:group_lifecycle_events_desired_status, Shapes::ShapeRef.new(shape: GroupLifecycleEventsDesiredStatus, location_name: "GroupLifecycleEventsDesiredStatus"))
|
122
|
+
AccountSettings.add_member(:group_lifecycle_events_status, Shapes::ShapeRef.new(shape: GroupLifecycleEventsStatus, location_name: "GroupLifecycleEventsStatus"))
|
123
|
+
AccountSettings.add_member(:group_lifecycle_events_status_message, Shapes::ShapeRef.new(shape: GroupLifecycleEventsStatusMessage, location_name: "GroupLifecycleEventsStatusMessage"))
|
124
|
+
AccountSettings.struct_class = Types::AccountSettings
|
125
|
+
|
114
126
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
115
127
|
BadRequestException.struct_class = Types::BadRequestException
|
116
128
|
|
@@ -144,6 +156,9 @@ module Aws::ResourceGroups
|
|
144
156
|
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
145
157
|
ForbiddenException.struct_class = Types::ForbiddenException
|
146
158
|
|
159
|
+
GetAccountSettingsOutput.add_member(:account_settings, Shapes::ShapeRef.new(shape: AccountSettings, location_name: "AccountSettings"))
|
160
|
+
GetAccountSettingsOutput.struct_class = Types::GetAccountSettingsOutput
|
161
|
+
|
147
162
|
GetGroupConfigurationInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
148
163
|
GetGroupConfigurationInput.struct_class = Types::GetGroupConfigurationInput
|
149
164
|
|
@@ -349,6 +364,12 @@ module Aws::ResourceGroups
|
|
349
364
|
UntagOutput.add_member(:keys, Shapes::ShapeRef.new(shape: TagKeyList, location_name: "Keys"))
|
350
365
|
UntagOutput.struct_class = Types::UntagOutput
|
351
366
|
|
367
|
+
UpdateAccountSettingsInput.add_member(:group_lifecycle_events_desired_status, Shapes::ShapeRef.new(shape: GroupLifecycleEventsDesiredStatus, location_name: "GroupLifecycleEventsDesiredStatus"))
|
368
|
+
UpdateAccountSettingsInput.struct_class = Types::UpdateAccountSettingsInput
|
369
|
+
|
370
|
+
UpdateAccountSettingsOutput.add_member(:account_settings, Shapes::ShapeRef.new(shape: AccountSettings, location_name: "AccountSettings"))
|
371
|
+
UpdateAccountSettingsOutput.struct_class = Types::UpdateAccountSettingsOutput
|
372
|
+
|
352
373
|
UpdateGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
|
353
374
|
UpdateGroupInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
|
354
375
|
UpdateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
@@ -410,6 +431,19 @@ module Aws::ResourceGroups
|
|
410
431
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
411
432
|
end)
|
412
433
|
|
434
|
+
api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
435
|
+
o.name = "GetAccountSettings"
|
436
|
+
o.http_method = "POST"
|
437
|
+
o.http_request_uri = "/get-account-settings"
|
438
|
+
o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
439
|
+
o.output = Shapes::ShapeRef.new(shape: GetAccountSettingsOutput)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
442
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
443
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
445
|
+
end)
|
446
|
+
|
413
447
|
api.add_operation(:get_group, Seahorse::Model::Operation.new.tap do |o|
|
414
448
|
o.name = "GetGroup"
|
415
449
|
o.http_method = "POST"
|
@@ -596,6 +630,19 @@ module Aws::ResourceGroups
|
|
596
630
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
597
631
|
end)
|
598
632
|
|
633
|
+
api.add_operation(:update_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
634
|
+
o.name = "UpdateAccountSettings"
|
635
|
+
o.http_method = "POST"
|
636
|
+
o.http_request_uri = "/update-account-settings"
|
637
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateAccountSettingsInput)
|
638
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateAccountSettingsOutput)
|
639
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
640
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
641
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
642
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
643
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
644
|
+
end)
|
645
|
+
|
599
646
|
api.add_operation(:update_group, Seahorse::Model::Operation.new.tap do |o|
|
600
647
|
o.name = "UpdateGroup"
|
601
648
|
o.http_method = "POST"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ResourceGroups
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
56
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
57
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
|
+
if self[:use_dual_stack].nil?
|
59
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
60
|
+
end
|
61
|
+
self[:use_fips] = options[:use_fips]
|
62
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
63
|
+
if self[:use_fips].nil?
|
64
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
65
|
+
end
|
66
|
+
self[:endpoint] = options[:endpoint]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|