aws-sdk-resourcegroupstaggingapi 1.48.0 → 1.49.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: 2ef60b3c86c55f4cdfac880333cf988d7ec765de55f7d993134a8e009f5b7cd5
4
- data.tar.gz: 458c39fc19706153b3536761d2668d9ded69444efb7db6528bb6f66ec4a1d29c
3
+ metadata.gz: 7f54e35f201a61444aade2c8f1a9dd14b883372485f01698534dd6b9666ee3bc
4
+ data.tar.gz: 1d6d0d09dc67a9e87c7e64b31558627b04d6bbddaad7a4e40a8a8de28f6f4242
5
5
  SHA512:
6
- metadata.gz: 2da03061f295111ae505359dfa01515971e5da7efef799b6732b1ae9861ea75c925912ff894b35c757108179e60d55639c062a3f9a1f520a75646621ffbd6881
7
- data.tar.gz: 007ea8a57af4a23a60672ca6dc648926685d941c5b9f757c43b6f0d74bd7ecec1ba4518eba51cbae5df73bdbea385d2b0eea0214ae27150d87f59ff23457db63
6
+ metadata.gz: 8ac2f217269a29ffd7396ae78033fd5389025379127c8c07685d823a9d2ec562b5dfaa452c77899284417b318fd233ca2c01c401e4d99f4fdfac836e247279f5
7
+ data.tar.gz: 3e10c6ef39a07d1283ef3134db221af59ffcfb36e25a155d0919baaaf74823aeec469f834faa18a224ffae29f2c3a26b90018d841b93cde9b1f8dcf76a4fa177
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.49.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.48.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -303,4 +310,4 @@ Unreleased Changes
303
310
  1.0.0.rc1 (2017-04-21)
304
311
  ------------------
305
312
 
306
- * Feature - Initial release of `aws-sdk-resourcegroupstaggingapi`.
313
+ * Feature - Initial release of `aws-sdk-resourcegroupstaggingapi`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.48.0
1
+ 1.49.0
@@ -1034,7 +1034,7 @@ module Aws::ResourceGroupsTaggingAPI
1034
1034
  params: params,
1035
1035
  config: config)
1036
1036
  context[:gem_name] = 'aws-sdk-resourcegroupstaggingapi'
1037
- context[:gem_version] = '1.48.0'
1037
+ context[:gem_version] = '1.49.0'
1038
1038
  Seahorse::Client::Request.new(handlers, context)
1039
1039
  end
1040
1040
 
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::ResourceGroupsTaggingAPI
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://tagging-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://tagging-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://tagging.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://tagging.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZW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dnaW5n
100
- LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4
101
- fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRw
102
- b2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sg
103
- aXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9y
104
- dCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6
105
- W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vdGFnZ2luZy57UmVnaW9u
106
- fS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7
107
- fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -184,19 +184,6 @@ module Aws::ResourceGroupsTaggingAPI
184
184
  include Aws::Structure
185
185
  end
186
186
 
187
- # @note When making an API call, you may pass GetComplianceSummaryInput
188
- # data as a hash:
189
- #
190
- # {
191
- # target_id_filters: ["TargetId"],
192
- # region_filters: ["Region"],
193
- # resource_type_filters: ["AmazonResourceType"],
194
- # tag_key_filters: ["TagKey"],
195
- # group_by: ["TARGET_ID"], # accepts TARGET_ID, REGION, RESOURCE_TYPE
196
- # max_results: 1,
197
- # pagination_token: "PaginationToken",
198
- # }
199
- #
200
187
  # @!attribute [rw] target_id_filters
201
188
  # Specifies target identifiers (usually, specific account IDs) to
202
189
  # limit the output by. If you use this parameter, the count of
@@ -304,25 +291,6 @@ module Aws::ResourceGroupsTaggingAPI
304
291
  include Aws::Structure
305
292
  end
306
293
 
307
- # @note When making an API call, you may pass GetResourcesInput
308
- # data as a hash:
309
- #
310
- # {
311
- # pagination_token: "PaginationToken",
312
- # tag_filters: [
313
- # {
314
- # key: "TagKey",
315
- # values: ["TagValue"],
316
- # },
317
- # ],
318
- # resources_per_page: 1,
319
- # tags_per_page: 1,
320
- # resource_type_filters: ["AmazonResourceType"],
321
- # include_compliance_details: false,
322
- # exclude_compliant_resources: false,
323
- # resource_arn_list: ["ResourceARN"],
324
- # }
325
- #
326
294
  # @!attribute [rw] pagination_token
327
295
  # Specifies a `PaginationToken` response value from a previous request
328
296
  # to indicate that you want the next page of results. Leave this
@@ -500,13 +468,6 @@ module Aws::ResourceGroupsTaggingAPI
500
468
  include Aws::Structure
501
469
  end
502
470
 
503
- # @note When making an API call, you may pass GetTagKeysInput
504
- # data as a hash:
505
- #
506
- # {
507
- # pagination_token: "PaginationToken",
508
- # }
509
- #
510
471
  # @!attribute [rw] pagination_token
511
472
  # Specifies a `PaginationToken` response value from a previous request
512
473
  # to indicate that you want the next page of results. Leave this
@@ -541,14 +502,6 @@ module Aws::ResourceGroupsTaggingAPI
541
502
  include Aws::Structure
542
503
  end
543
504
 
544
- # @note When making an API call, you may pass GetTagValuesInput
545
- # data as a hash:
546
- #
547
- # {
548
- # pagination_token: "PaginationToken",
549
- # key: "TagKey", # required
550
- # }
551
- #
552
505
  # @!attribute [rw] pagination_token
553
506
  # Specifies a `PaginationToken` response value from a previous request
554
507
  # to indicate that you want the next page of results. Leave this
@@ -676,13 +629,6 @@ module Aws::ResourceGroupsTaggingAPI
676
629
  include Aws::Structure
677
630
  end
678
631
 
679
- # @note When making an API call, you may pass StartReportCreationInput
680
- # data as a hash:
681
- #
682
- # {
683
- # s3_bucket: "S3Bucket", # required
684
- # }
685
- #
686
632
  # @!attribute [rw] s3_bucket
687
633
  # The name of the Amazon S3 bucket where the report will be stored;
688
634
  # for example:
@@ -784,14 +730,6 @@ module Aws::ResourceGroupsTaggingAPI
784
730
  # A list of tags (keys and values) that are used to specify the
785
731
  # associated resources.
786
732
  #
787
- # @note When making an API call, you may pass TagFilter
788
- # data as a hash:
789
- #
790
- # {
791
- # key: "TagKey",
792
- # values: ["TagValue"],
793
- # }
794
- #
795
733
  # @!attribute [rw] key
796
734
  # One part of a key-value pair that makes up a tag. A key is a general
797
735
  # label that acts like a category for more specific tag values.
@@ -812,16 +750,6 @@ module Aws::ResourceGroupsTaggingAPI
812
750
  include Aws::Structure
813
751
  end
814
752
 
815
- # @note When making an API call, you may pass TagResourcesInput
816
- # data as a hash:
817
- #
818
- # {
819
- # resource_arn_list: ["ResourceARN"], # required
820
- # tags: { # required
821
- # "TagKey" => "TagValue",
822
- # },
823
- # }
824
- #
825
753
  # @!attribute [rw] resource_arn_list
826
754
  # Specifies the list of ARNs of the resources that you want to apply
827
755
  # tags to.
@@ -879,14 +807,6 @@ module Aws::ResourceGroupsTaggingAPI
879
807
  include Aws::Structure
880
808
  end
881
809
 
882
- # @note When making an API call, you may pass UntagResourcesInput
883
- # data as a hash:
884
- #
885
- # {
886
- # resource_arn_list: ["ResourceARN"], # required
887
- # tag_keys: ["TagKey"], # required
888
- # }
889
- #
890
810
  # @!attribute [rw] resource_arn_list
891
811
  # Specifies a list of ARNs of the resources that you want to remove
892
812
  # tags from.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-resourcegroupstaggingapi/customizations'
52
52
  # @!group service
53
53
  module Aws::ResourceGroupsTaggingAPI
54
54
 
55
- GEM_VERSION = '1.48.0'
55
+ GEM_VERSION = '1.49.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resourcegroupstaggingapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.48.0
4
+ version: 1.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core