aws-sdk-freetier 1.14.0 → 1.16.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: 87240a0383f4c37fa407e10e699dd8e3182ba89d3d170a26fba75d66eec781df
4
- data.tar.gz: cf412e27c62053a3e932aed04d9b7cafc76bc18c7eea4578f8b3c7ffed53ea42
3
+ metadata.gz: ae67503f84643f9bedd9ec6b5174d44ab6fb4b8f962b26647d54ea41968c6187
4
+ data.tar.gz: 3bc201398d5fd7b311f245e37203e9d25932f00a1c4005348970f6e282b7e91d
5
5
  SHA512:
6
- metadata.gz: 5bb15c66a027524621784dce06688c13f7e9fc861815786dad4f2efa73826d56364b72cb39dd07ff21843ad7a1f0c6a684a20b9cc087100a43ef2a6a0c75f28b
7
- data.tar.gz: 737a66fbb3d8f80f7ab5b2066c3a4725089cebeec17ed3c3f9cea5bfb0fa46dcef6f622a62ee1d148a76275983ef6e5b674964cbd7fdab718b276b9abc8fad2f
6
+ metadata.gz: b2df1e0038f0e92e89dfabfc097ec34dfcfafc8850b649dc45eab9f61ea95f1acee748444e7b587bd086adc87146132b8315ddf30b96b1e20722ff4f2ab7b9a5
7
+ data.tar.gz: d2eefc2f79a7ed152af8e7fc692136380b006059a654ea5eb1cbbce455221af2d3344d283874c49bee9a6aae2609011c338b343be0c27c21f98b1e9f1b3588fc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2024-11-06)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.15.0 (2024-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.14.0 (2024-09-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.16.0
@@ -545,7 +545,7 @@ module Aws::FreeTier
545
545
  tracer: tracer
546
546
  )
547
547
  context[:gem_name] = 'aws-sdk-freetier'
548
- context[:gem_version] = '1.14.0'
548
+ context[:gem_version] = '1.16.0'
549
549
  Seahorse::Client::Request.new(handlers, context)
550
550
  end
551
551
 
@@ -45,10 +45,15 @@ module Aws::FreeTier
45
45
  self[:region] = options[:region]
46
46
  self[:use_fips] = options[:use_fips]
47
47
  self[:use_fips] = false if self[:use_fips].nil?
48
- if self[:use_fips].nil?
49
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
50
- end
51
48
  self[:endpoint] = options[:endpoint]
52
49
  end
50
+
51
+ def self.create(config, options={})
52
+ new({
53
+ region: config.region,
54
+ use_fips: config.use_fips_endpoint,
55
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
56
+ }.merge(options))
57
+ end
53
58
  end
54
59
  end
@@ -12,15 +12,9 @@ module Aws::FreeTier
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class GetFreeTierUsage
16
- def self.build(context)
17
- Aws::FreeTier::EndpointParameters.new(
18
- region: context.config.region,
19
- use_fips: context.config.use_fips_endpoint,
20
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
21
- )
22
- end
23
- end
24
15
 
16
+ def self.parameters_for_operation(context)
17
+ Aws::FreeTier::EndpointParameters.create(context.config)
18
+ end
25
19
  end
26
20
  end
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::FreeTier::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,13 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :get_free_tier_usage
74
- Aws::FreeTier::Endpoints::GetFreeTierUsage.build(context)
75
- end
76
- end
77
70
  end
78
71
 
79
72
  def add_handlers(handlers, _config)
@@ -53,9 +53,9 @@ module Aws::FreeTier
53
53
  # You can filter to match exactly for `REGION==us-east-1 OR
54
54
  # REGION==us-west-1`.
55
55
  #
56
- # The corresponding `Expression` appears like the following: `\{
57
- # "Dimensions": \{ "Key": "REGION", "Values": [ "us-east-1", "us-west-1"
58
- # ], "MatchOptions": ["EQUALS"] \} \}`
56
+ # The corresponding `Expression` appears like the following: `{
57
+ # "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1"
58
+ # ], "MatchOptions": ["EQUALS"] } }`
59
59
  #
60
60
  # As shown in the previous example, lists of dimension values are
61
61
  # combined with `OR` when you apply the filter.
@@ -70,13 +70,12 @@ module Aws::FreeTier
70
70
  # (SERVICE CONTAINS AWSLambda)) AND (USAGE_TYPE !CONTAINS
71
71
  # DataTransfer)`.
72
72
  #
73
- # The corresponding `Expression` appears like the following: `\{ "And":
74
- # [ \{"Or": [ \{"Dimensions": \{ "Key": "REGION", "Values": [
75
- # "us-east-1", "us-west-1" ], "MatchOptions": ["EQUALS"] \}\},
76
- # \{"Dimensions": \{ "Key": "SERVICE", "Values": ["AWSLambda"],
77
- # "MatchOptions": ["CONTAINS"] \} \} ]\}, \{"Not": \{"Dimensions": \{
78
- # "Key": "USAGE_TYPE", "Values": ["DataTransfer"], "MatchOptions":
79
- # ["CONTAINS"] \}\}\} ] \}`
73
+ # The corresponding `Expression` appears like the following: `{ "And": [
74
+ # {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1",
75
+ # "us-west-1" ], "MatchOptions": ["EQUALS"] }}, {"Dimensions": { "Key":
76
+ # "SERVICE", "Values": ["AWSLambda"], "MatchOptions": ["CONTAINS"] } }
77
+ # ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values":
78
+ # ["DataTransfer"], "MatchOptions": ["CONTAINS"] }}} ] }`
80
79
  #
81
80
  # In the following **Contents**, you must specify exactly one of the
82
81
  # following root operators.
@@ -54,7 +54,7 @@ module Aws::FreeTier
54
54
  autoload :EndpointProvider, 'aws-sdk-freetier/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-freetier/endpoints'
56
56
 
57
- GEM_VERSION = '1.14.0'
57
+ GEM_VERSION = '1.16.0'
58
58
 
59
59
  end
60
60
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-freetier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.16.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: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.207.0
22
+ version: 3.210.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement