aws-sdk-resourcegroups 1.28.0 → 1.33.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23f39cc4f5026e0dc2c82b6f0d1f27af639f37d533e3745619f1396346d17767
4
- data.tar.gz: 7b8a568cf9111a52645a438f807378624f377b9c82391fa8cfc5fea090eda738
3
+ metadata.gz: 0cd9b853dae692f26ea582fd09d1b7ee05c9e6c415daf225561e9f51de1ba373
4
+ data.tar.gz: 2774d44203d0f390edbd27d81df9880d8df7068c15ceff03c16a5d732c7ea206
5
5
  SHA512:
6
- metadata.gz: 7273a02b0539ad28f76adff569b92d01c63c79be20890a2dd00db6a6ee1c786ed96ee0036daa68f8d7e4cb40056ca4d2f3aba295f2c452a56bfcd916720ddeb9
7
- data.tar.gz: 91d08d85858c9f2f745e976daa04215c7196d89ad99122db7c1eb2f6f1aca92878a25ace291f573ae62dc0cfef776b31f717d7722de923fcc8d4dbe0de29ed19
6
+ metadata.gz: cc8d1ab14a885c2bd8aad249c766cb80d9edce7a939d87a6b40cc70924d82cab7fae5e98f779064dd8ef1871c0da4cdfc1dac4c3a79dc15f360b11156c434fcc
7
+ data.tar.gz: ec90a308aa4956e52173a5dd876dac639f892d6240da062ecec2c2b74fc4739da759f9553821adacffa9c6ff57480d129f6db0ab3e8b02c776631d342d6c2ae8
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-resourcegroups/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::ResourceGroups
49
50
 
50
- GEM_VERSION = '1.28.0'
51
+ GEM_VERSION = '1.33.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::ResourceGroups
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::ResourceGroups
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -314,6 +329,23 @@ module Aws::ResourceGroups
314
329
 
315
330
  # Creates a resource group with the specified name and description. You
316
331
  # can optionally include a resource query, or a service configuration.
332
+ # For more information about constructing a resource query, see [Create
333
+ # a tag-based group in Resource Groups][1]. For more information about
334
+ # service configurations, see [Service configurations for resource
335
+ # groups][2].
336
+ #
337
+ # **Minimum permissions**
338
+ #
339
+ # To run this command, you must have the following permissions:
340
+ #
341
+ # * `resource-groups:CreateGroup`
342
+ #
343
+ # ^
344
+ #
345
+ #
346
+ #
347
+ # [1]: https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag
348
+ # [2]: https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html
317
349
  #
318
350
  # @option params [required, String] :name
319
351
  # The name of the group, which is the identifier of the group in other
@@ -329,13 +361,18 @@ module Aws::ResourceGroups
329
361
  #
330
362
  # @option params [Types::ResourceQuery] :resource_query
331
363
  # The resource query that determines which AWS resources are members of
332
- # this group.
364
+ # this group. For more information about resource queries, see [Create a
365
+ # tag-based group in Resource Groups][1].
333
366
  #
334
- # <note markdown="1"> You can specify either a `ResourceQuery` or a `Configuration`, but not
335
- # both.
367
+ # <note markdown="1"> A resource group can contain either a `ResourceQuery` or a
368
+ # `Configuration`, but not both.
336
369
  #
337
370
  # </note>
338
371
  #
372
+ #
373
+ #
374
+ # [1]: https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag
375
+ #
339
376
  # @option params [Hash<String,String>] :tags
340
377
  # The tags to add to the group. A tag is key-value pair string.
341
378
  #
@@ -343,12 +380,18 @@ module Aws::ResourceGroups
343
380
  # A configuration associates the resource group with an AWS service and
344
381
  # specifies how the service can interact with the resources in the
345
382
  # group. A configuration is an array of GroupConfigurationItem elements.
383
+ # For details about the syntax of service configurations, see [Service
384
+ # configurations for resource groups][1].
346
385
  #
347
- # <note markdown="1"> You can specify either a `Configuration` or a `ResourceQuery` in a
348
- # group, but not both.
386
+ # <note markdown="1"> A resource group can contain either a `Configuration` or a
387
+ # `ResourceQuery`, but not both.
349
388
  #
350
389
  # </note>
351
390
  #
391
+ #
392
+ #
393
+ # [1]: https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html
394
+ #
352
395
  # @return [Types::CreateGroupOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
353
396
  #
354
397
  # * {Types::CreateGroupOutput#group #group} => Types::Group
@@ -418,8 +461,16 @@ module Aws::ResourceGroups
418
461
  # not delete any resources that are members of the group; it only
419
462
  # deletes the group structure.
420
463
  #
464
+ # **Minimum permissions**
465
+ #
466
+ # To run this command, you must have the following permissions:
467
+ #
468
+ # * `resource-groups:DeleteGroup`
469
+ #
470
+ # ^
471
+ #
421
472
  # @option params [String] :group_name
422
- # Don't use this parameter. Use `Group` instead.
473
+ # Deprecated - don't use this parameter. Use `Group` instead.
423
474
  #
424
475
  # @option params [String] :group
425
476
  # The name or the ARN of the resource group to delete.
@@ -452,8 +503,16 @@ module Aws::ResourceGroups
452
503
 
453
504
  # Returns information about a specified resource group.
454
505
  #
506
+ # **Minimum permissions**
507
+ #
508
+ # To run this command, you must have the following permissions:
509
+ #
510
+ # * `resource-groups:GetGroup`
511
+ #
512
+ # ^
513
+ #
455
514
  # @option params [String] :group_name
456
- # Don't use this parameter. Use `Group` instead.
515
+ # Deprecated - don't use this parameter. Use `Group` instead.
457
516
  #
458
517
  # @option params [String] :group
459
518
  # The name or the ARN of the resource group to retrieve.
@@ -485,18 +544,20 @@ module Aws::ResourceGroups
485
544
  end
486
545
 
487
546
  # Returns the service configuration associated with the specified
488
- # resource group. AWS Resource Groups supports configurations for the
489
- # following resource group types:
547
+ # resource group. For details about the service configuration syntax,
548
+ # see [Service configurations for resource groups][1].
549
+ #
550
+ # **Minimum permissions**
490
551
  #
491
- # * `AWS::EC2::CapacityReservationPool` - Amazon EC2 capacity
492
- # reservation pools. For more information, see [Working with capacity
493
- # reservation groups][1] in the *EC2 Users Guide*.
552
+ # To run this command, you must have the following permissions:
553
+ #
554
+ # * `resource-groups:GetGroupConfiguration`
494
555
  #
495
556
  # ^
496
557
  #
497
558
  #
498
559
  #
499
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group
560
+ # [1]: https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html
500
561
  #
501
562
  # @option params [String] :group
502
563
  # The name or the ARN of the resource group.
@@ -538,7 +599,20 @@ module Aws::ResourceGroups
538
599
  end
539
600
 
540
601
  # Retrieves the resource query associated with the specified resource
541
- # group.
602
+ # group. For more information about resource queries, see [Create a
603
+ # tag-based group in Resource Groups][1].
604
+ #
605
+ # **Minimum permissions**
606
+ #
607
+ # To run this command, you must have the following permissions:
608
+ #
609
+ # * `resource-groups:GetGroupQuery`
610
+ #
611
+ # ^
612
+ #
613
+ #
614
+ #
615
+ # [1]: https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag
542
616
  #
543
617
  # @option params [String] :group_name
544
618
  # Don't use this parameter. Use `Group` instead.
@@ -575,6 +649,14 @@ module Aws::ResourceGroups
575
649
  # Returns a list of tags that are associated with a resource group,
576
650
  # specified by an ARN.
577
651
  #
652
+ # **Minimum permissions**
653
+ #
654
+ # To run this command, you must have the following permissions:
655
+ #
656
+ # * `resource-groups:GetTags`
657
+ #
658
+ # ^
659
+ #
578
660
  # @option params [required, String] :arn
579
661
  # The ARN of the resource group whose tags you want to retrieve.
580
662
  #
@@ -606,6 +688,14 @@ module Aws::ResourceGroups
606
688
 
607
689
  # Adds the specified resources to the specified group.
608
690
  #
691
+ # **Minimum permissions**
692
+ #
693
+ # To run this command, you must have the following permissions:
694
+ #
695
+ # * `resource-groups:GroupResources`
696
+ #
697
+ # ^
698
+ #
609
699
  # @option params [required, String] :group
610
700
  # The name or the ARN of the resource group to add resources to.
611
701
  #
@@ -616,6 +706,7 @@ module Aws::ResourceGroups
616
706
  #
617
707
  # * {Types::GroupResourcesOutput#succeeded #succeeded} => Array&lt;String&gt;
618
708
  # * {Types::GroupResourcesOutput#failed #failed} => Array&lt;Types::FailedResource&gt;
709
+ # * {Types::GroupResourcesOutput#pending #pending} => Array&lt;Types::PendingResource&gt;
619
710
  #
620
711
  # @example Request syntax with placeholder values
621
712
  #
@@ -632,6 +723,8 @@ module Aws::ResourceGroups
632
723
  # resp.failed[0].resource_arn #=> String
633
724
  # resp.failed[0].error_message #=> String
634
725
  # resp.failed[0].error_code #=> String
726
+ # resp.pending #=> Array
727
+ # resp.pending[0].resource_arn #=> String
635
728
  #
636
729
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupResources AWS API Documentation
637
730
  #
@@ -645,8 +738,17 @@ module Aws::ResourceGroups
645
738
  # Returns a list of ARNs of the resources that are members of a
646
739
  # specified resource group.
647
740
  #
741
+ # **Minimum permissions**
742
+ #
743
+ # To run this command, you must have the following permissions:
744
+ #
745
+ # * `resource-groups:ListGroupResources`
746
+ #
747
+ # ^
748
+ #
648
749
  # @option params [String] :group_name
649
- # Don't use this parameter. Use `Group` instead.
750
+ # <i> <b>Deprecated - don't use this parameter. Use the
751
+ # <code>Group</code> request field instead.</b> </i>
650
752
  #
651
753
  # @option params [String] :group
652
754
  # The name or the ARN of the resource group
@@ -702,6 +804,7 @@ module Aws::ResourceGroups
702
804
  #
703
805
  # @return [Types::ListGroupResourcesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
704
806
  #
807
+ # * {Types::ListGroupResourcesOutput#resources #resources} => Array&lt;Types::ListGroupResourcesItem&gt;
705
808
  # * {Types::ListGroupResourcesOutput#resource_identifiers #resource_identifiers} => Array&lt;Types::ResourceIdentifier&gt;
706
809
  # * {Types::ListGroupResourcesOutput#next_token #next_token} => String
707
810
  # * {Types::ListGroupResourcesOutput#query_errors #query_errors} => Array&lt;Types::QueryError&gt;
@@ -725,6 +828,10 @@ module Aws::ResourceGroups
725
828
  #
726
829
  # @example Response structure
727
830
  #
831
+ # resp.resources #=> Array
832
+ # resp.resources[0].identifier.resource_arn #=> String
833
+ # resp.resources[0].identifier.resource_type #=> String
834
+ # resp.resources[0].status.name #=> String, one of "PENDING"
728
835
  # resp.resource_identifiers #=> Array
729
836
  # resp.resource_identifiers[0].resource_arn #=> String
730
837
  # resp.resource_identifiers[0].resource_type #=> String
@@ -744,6 +851,14 @@ module Aws::ResourceGroups
744
851
 
745
852
  # Returns a list of existing resource groups in your account.
746
853
  #
854
+ # **Minimum permissions**
855
+ #
856
+ # To run this command, you must have the following permissions:
857
+ #
858
+ # * `resource-groups:ListGroups`
859
+ #
860
+ # ^
861
+ #
747
862
  # @option params [Array<Types::GroupFilter>] :filters
748
863
  # Filters, formatted as GroupFilter objects, that you want to apply to a
749
864
  # `ListGroups` operation.
@@ -757,9 +872,9 @@ module Aws::ResourceGroups
757
872
  # groups that have the specified configuration types attached. The
758
873
  # current supported values are:
759
874
  #
760
- # * AWS:EC2::CapacityReservationPool
875
+ # * `AWS:EC2::CapacityReservationPool`
761
876
  #
762
- # ^
877
+ # * `AWS:EC2::HostManagement`
763
878
  #
764
879
  # @option params [Integer] :max_results
765
880
  # The total number of results that you want included on each page of the
@@ -821,10 +936,80 @@ module Aws::ResourceGroups
821
936
  req.send_request(options)
822
937
  end
823
938
 
824
- # Returns a list of AWS resource identifiers that matches tne specified
939
+ # Attaches a service configuration to the specified group. This occurs
940
+ # asynchronously, and can take time to complete. You can use
941
+ # GetGroupConfiguration to check the status of the update.
942
+ #
943
+ # **Minimum permissions**
944
+ #
945
+ # To run this command, you must have the following permissions:
946
+ #
947
+ # * `resource-groups:PutGroupConfiguration`
948
+ #
949
+ # ^
950
+ #
951
+ # @option params [String] :group
952
+ # The name or ARN of the resource group with the configuration that you
953
+ # want to update.
954
+ #
955
+ # @option params [Array<Types::GroupConfigurationItem>] :configuration
956
+ # The new configuration to associate with the specified group. A
957
+ # configuration associates the resource group with an AWS service and
958
+ # specifies how the service can interact with the resources in the
959
+ # group. A configuration is an array of GroupConfigurationItem elements.
960
+ #
961
+ # For information about the syntax of a service configuration, see
962
+ # [Service configurations for resource groups][1].
963
+ #
964
+ # <note markdown="1"> A resource group can contain either a `Configuration` or a
965
+ # `ResourceQuery`, but not both.
966
+ #
967
+ # </note>
968
+ #
969
+ #
970
+ #
971
+ # [1]: https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html
972
+ #
973
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
974
+ #
975
+ # @example Request syntax with placeholder values
976
+ #
977
+ # resp = client.put_group_configuration({
978
+ # group: "GroupString",
979
+ # configuration: [
980
+ # {
981
+ # type: "GroupConfigurationType", # required
982
+ # parameters: [
983
+ # {
984
+ # name: "GroupConfigurationParameterName", # required
985
+ # values: ["GroupConfigurationParameterValue"],
986
+ # },
987
+ # ],
988
+ # },
989
+ # ],
990
+ # })
991
+ #
992
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/PutGroupConfiguration AWS API Documentation
993
+ #
994
+ # @overload put_group_configuration(params = {})
995
+ # @param [Hash] params ({})
996
+ def put_group_configuration(params = {}, options = {})
997
+ req = build_request(:put_group_configuration, params)
998
+ req.send_request(options)
999
+ end
1000
+
1001
+ # Returns a list of AWS resource identifiers that matches the specified
825
1002
  # query. The query uses the same format as a resource query in a
826
1003
  # CreateGroup or UpdateGroupQuery operation.
827
1004
  #
1005
+ # **Minimum permissions**
1006
+ #
1007
+ # To run this command, you must have the following permissions:
1008
+ #
1009
+ # * `resource-groups:SearchResources`
1010
+ #
1011
+ # ^
1012
+ #
828
1013
  # @option params [required, Types::ResourceQuery] :resource_query
829
1014
  # The search query, using the same formats that are supported for
830
1015
  # resource group definition. For more information, see CreateGroup.
@@ -895,6 +1080,14 @@ module Aws::ResourceGroups
895
1080
  # you with billing and administration services. Tags are not intended to
896
1081
  # be used for private or sensitive data.
897
1082
  #
1083
+ # **Minimum permissions**
1084
+ #
1085
+ # To run this command, you must have the following permissions:
1086
+ #
1087
+ # * `resource-groups:Tag`
1088
+ #
1089
+ # ^
1090
+ #
898
1091
  # @option params [required, String] :arn
899
1092
  # The ARN of the resource group to which to add tags.
900
1093
  #
@@ -933,6 +1126,14 @@ module Aws::ResourceGroups
933
1126
 
934
1127
  # Removes the specified resources from the specified group.
935
1128
  #
1129
+ # **Minimum permissions**
1130
+ #
1131
+ # To run this command, you must have the following permissions:
1132
+ #
1133
+ # * `resource-groups:UngroupResources`
1134
+ #
1135
+ # ^
1136
+ #
936
1137
  # @option params [required, String] :group
937
1138
  # The name or the ARN of the resource group from which to remove the
938
1139
  # resources.
@@ -944,6 +1145,7 @@ module Aws::ResourceGroups
944
1145
  #
945
1146
  # * {Types::UngroupResourcesOutput#succeeded #succeeded} => Array&lt;String&gt;
946
1147
  # * {Types::UngroupResourcesOutput#failed #failed} => Array&lt;Types::FailedResource&gt;
1148
+ # * {Types::UngroupResourcesOutput#pending #pending} => Array&lt;Types::PendingResource&gt;
947
1149
  #
948
1150
  # @example Request syntax with placeholder values
949
1151
  #
@@ -960,6 +1162,8 @@ module Aws::ResourceGroups
960
1162
  # resp.failed[0].resource_arn #=> String
961
1163
  # resp.failed[0].error_message #=> String
962
1164
  # resp.failed[0].error_code #=> String
1165
+ # resp.pending #=> Array
1166
+ # resp.pending[0].resource_arn #=> String
963
1167
  #
964
1168
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UngroupResources AWS API Documentation
965
1169
  #
@@ -972,6 +1176,14 @@ module Aws::ResourceGroups
972
1176
 
973
1177
  # Deletes tags from a specified resource group.
974
1178
  #
1179
+ # **Minimum permissions**
1180
+ #
1181
+ # To run this command, you must have the following permissions:
1182
+ #
1183
+ # * `resource-groups:Untag`
1184
+ #
1185
+ # ^
1186
+ #
975
1187
  # @option params [required, String] :arn
976
1188
  # The ARN of the resource group from which to remove tags. The command
977
1189
  # removed both the specified keys and any values associated with those
@@ -1010,6 +1222,14 @@ module Aws::ResourceGroups
1010
1222
  # Updates the description for an existing group. You cannot update the
1011
1223
  # name of a resource group.
1012
1224
  #
1225
+ # **Minimum permissions**
1226
+ #
1227
+ # To run this command, you must have the following permissions:
1228
+ #
1229
+ # * `resource-groups:UpdateGroup`
1230
+ #
1231
+ # ^
1232
+ #
1013
1233
  # @option params [String] :group_name
1014
1234
  # Don't use this parameter. Use `Group` instead.
1015
1235
  #
@@ -1048,7 +1268,21 @@ module Aws::ResourceGroups
1048
1268
  req.send_request(options)
1049
1269
  end
1050
1270
 
1051
- # Updates the resource query of a group.
1271
+ # Updates the resource query of a group. For more information about
1272
+ # resource queries, see [Create a tag-based group in Resource
1273
+ # Groups][1].
1274
+ #
1275
+ # **Minimum permissions**
1276
+ #
1277
+ # To run this command, you must have the following permissions:
1278
+ #
1279
+ # * `resource-groups:UpdateGroupQuery`
1280
+ #
1281
+ # ^
1282
+ #
1283
+ #
1284
+ #
1285
+ # [1]: https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag
1052
1286
  #
1053
1287
  # @option params [String] :group_name
1054
1288
  # Don't use this parameter. Use `Group` instead.
@@ -1060,6 +1294,11 @@ module Aws::ResourceGroups
1060
1294
  # The resource query to determine which AWS resources are members of
1061
1295
  # this resource group.
1062
1296
  #
1297
+ # <note markdown="1"> A resource group can contain either a `Configuration` or a
1298
+ # `ResourceQuery`, but not both.
1299
+ #
1300
+ # </note>
1301
+ #
1063
1302
  # @return [Types::UpdateGroupQueryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1064
1303
  #
1065
1304
  # * {Types::UpdateGroupQueryOutput#group_query #group_query} => Types::GroupQuery
@@ -1103,7 +1342,7 @@ module Aws::ResourceGroups
1103
1342
  params: params,
1104
1343
  config: config)
1105
1344
  context[:gem_name] = 'aws-sdk-resourcegroups'
1106
- context[:gem_version] = '1.28.0'
1345
+ context[:gem_version] = '1.33.0'
1107
1346
  Seahorse::Client::Request.new(handlers, context)
1108
1347
  end
1109
1348