aws-sdk-resourceexplorer2 1.2.0 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b67053ecc407e56a0fee76fdd124666618b7465cd4f8afc44f317b3dae0410d
4
- data.tar.gz: 0471ecebe4bbe0f9fc3a5f754890699a9b41e3104121729468585bfc3cfa79c4
3
+ metadata.gz: 7781a0004146cef68d2f41c0ad95f36aefb2edba63a4b05bfaf1fc32bf718630
4
+ data.tar.gz: 70afdd2de002c1efe2dcfb129cc5e571016d83e464e8c17810660bb0c33332d7
5
5
  SHA512:
6
- metadata.gz: 5a5a9b4da7370bfba739be9fc0370f5d4f83f819523d28da0800f6235dcdd5e27ef7191e20a5bcc22f8204b0d81903603346ab8938a3faca59860a756cdc2a2d
7
- data.tar.gz: 99a56811d3feab67680d4b06f164de276d702a21578943e5025b683b6006d7456165da900c553663db5ba16d2711dedf181b9df310fcbc57186dc1f33d7b73db
6
+ metadata.gz: 7af0fb7428aa0d5a65d1751e67249dbabdecb67ec552aaa8cda079fd6ee3b15730fdc9df8fabf8160d3a9060df0a1f25b404a7b2ef2f4762e61d471a824415cc
7
+ data.tar.gz: 0a802ec8f25904ae485d6287d0cadec73a47f3d073ce118c93569d14baa05c0afa965cb2ea34cac9ab0baa44b03508b63f36f99a8c377c51f1a214928938333e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.4.0 (2023-03-16)
5
+ ------------------
6
+
7
+ * Feature - Documentation updates for APIs.
8
+
9
+ 1.3.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.2.0 (2022-12-20)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.4.0
@@ -482,9 +482,9 @@ module Aws::ResourceExplorer2
482
482
  # that allows Resource Explorer to enumerate your resources to populate
483
483
  # the index.
484
484
  #
485
- # * **Action**\: `resource-explorer-2:CreateIndex`
485
+ # * **Action**: `resource-explorer-2:CreateIndex`
486
486
  #
487
- # **Resource**\: The ARN of the index (as it will exist after the
487
+ # **Resource**: The ARN of the index (as it will exist after the
488
488
  # operation completes) in the Amazon Web Services Region and account
489
489
  # in which you're trying to create the index. Use the wildcard
490
490
  # character (`*`) at the end of the string to match the eventual UUID.
@@ -498,9 +498,9 @@ module Aws::ResourceExplorer2
498
498
  # Alternatively, you can use `"Resource": "*"` to allow the role or
499
499
  # user to create an index in any Region.
500
500
  #
501
- # * **Action**\: `iam:CreateServiceLinkedRole`
501
+ # * **Action**: `iam:CreateServiceLinkedRole`
502
502
  #
503
- # **Resource**\: No specific resource (*).
503
+ # **Resource**: No specific resource (*).
504
504
  #
505
505
  # This permission is required only the first time you create an index
506
506
  # to turn on Resource Explorer in the account. Resource Explorer uses
@@ -1492,7 +1492,7 @@ module Aws::ResourceExplorer2
1492
1492
  params: params,
1493
1493
  config: config)
1494
1494
  context[:gem_name] = 'aws-sdk-resourceexplorer2'
1495
- context[:gem_version] = '1.2.0'
1495
+ context[:gem_version] = '1.4.0'
1496
1496
  Seahorse::Client::Request.new(handlers, context)
1497
1497
  end
1498
1498
 
@@ -43,9 +43,6 @@ module Aws::ResourceExplorer2
43
43
 
44
44
  def initialize(options = {})
45
45
  self[:region] = options[:region]
46
- if self[:region].nil?
47
- raise ArgumentError, "Missing required EndpointParameter: :region"
48
- end
49
46
  self[:use_fips] = options[:use_fips]
50
47
  self[:use_fips] = false if self[:use_fips].nil?
51
48
  if self[:use_fips].nil?
@@ -9,85 +9,39 @@
9
9
 
10
10
  module Aws::ResourceExplorer2
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_fips = parameters.use_fips
15
+ endpoint = parameters.endpoint
16
+ if Aws::Endpoints::Matchers.set?(endpoint)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
18
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
19
+ end
20
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
21
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
22
+ if Aws::Endpoints::Matchers.set?(region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
25
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
26
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
27
+ return Aws::Endpoints::Endpoint.new(url: "https://resource-explorer-2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
28
+ end
29
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
30
+ end
31
+ return Aws::Endpoints::Endpoint.new(url: "https://resource-explorer-2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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://resource-explorer-2-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
+ return Aws::Endpoints::Endpoint.new(url: "https://resource-explorer-2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ end
42
+ raise ArgumentError, "Invalid Configuration: Missing Region"
43
+ raise ArgumentError, 'No endpoint could be resolved'
24
44
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
45
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRklQUyI6eyJidWlsdElu
35
- IjoiQVdTOjpVc2VGSVBTIiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZh
36
- bHNlLCJkb2N1bWVudGF0aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVx
37
- dWVzdCB0byB0aGUgRklQUy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQu
38
- IElmIHRoZSBjb25maWd1cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBG
39
- SVBTIGNvbXBsaWFudCBlbmRwb2ludCwgZGlzcGF0Y2hpbmcgdGhlIHJlcXVl
40
- c3Qgd2lsbCByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6IkJvb2xlYW4ifSwi
41
- RW5kcG9pbnQiOnsiYnVpbHRJbiI6IlNESzo6RW5kcG9pbnQiLCJyZXF1aXJl
42
- ZCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJPdmVycmlkZSB0aGUgZW5kcG9p
43
- bnQgdXN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bGVzIjpbeyJjb25kaXRpb25zIjpbeyJm
77
- biI6ImJvb2xlYW5FcXVhbHMiLCJhcmd2IjpbdHJ1ZSx7ImZuIjoiZ2V0QXR0
78
- ciIsImFyZ3YiOlt7InJlZiI6IlBhcnRpdGlvblJlc3VsdCJ9LCJzdXBwb3J0
79
- c0ZJUFMiXX1dfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlv
80
- bnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3Jlc291cmNlLWV4
81
- cGxvcmVyLTItZmlwcy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1
82
- ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoi
83
- ZW5kcG9pbnQifV19LHsiY29uZGl0aW9ucyI6W10sImVycm9yIjoiRklQUyBp
84
- cyBlbmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0
85
- IEZJUFMiLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVu
86
- ZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vcmVzb3VyY2UtZXhwbG9yZXItMi57
87
- UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0
88
- aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX1d
89
- fV19
90
-
91
- JSON
92
46
  end
93
47
  end
@@ -123,9 +123,9 @@ module Aws::ResourceExplorer2
123
123
  include Aws::Structure
124
124
  end
125
125
 
126
- # You tried to create a new view or index when one already exists, and
127
- # you either didn't specify or specified a different idempotency token
128
- # as the original request.
126
+ # The request failed because either you specified parameters that didn’t
127
+ # match the original request, or you attempted to create a view with a
128
+ # name that already exists in this Amazon Web Services Region.
129
129
  #
130
130
  # @!attribute [rw] message
131
131
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-resourceexplorer2/customizations'
52
52
  # @!group service
53
53
  module Aws::ResourceExplorer2
54
54
 
55
- GEM_VERSION = '1.2.0'
55
+ GEM_VERSION = '1.4.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resourceexplorer2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.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-12-20 00:00:00.000000000 Z
11
+ date: 2023-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core