aws-sdk-freetier 1.13.0 → 1.15.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: f7dee5d35cfbe9b75f24382d787b7b366db64b70f05f0c658ca5b1cf25128491
4
- data.tar.gz: 115bd70155fafabd8beb80b727b0fad7e39a6dea6302e299433bbb1e814d3386
3
+ metadata.gz: 8c29ef92c05f14c746ce2f0b9a8b89a9ce5fcae7cd55e823731596485a3749a4
4
+ data.tar.gz: e6aef5d78ac262ec1cc3e06b2c0ecb163b7d88fa995927dc3fded9c4e89109fc
5
5
  SHA512:
6
- metadata.gz: 4ae6c37f3fa9ac8892135a494fab3cafc0272486610c4aa4dd3557bc3be73a69d3fbe8c8e938c1d7b08ed46d7a6c97f84b0bc399c2034da76fd4e173ac191876
7
- data.tar.gz: 1299bb84ab3d65be1b788d7d89144accdaa1de0ca8cd7ef9a6a33391a731a3d2779c21fd3359c748076d0a84aa0310489c6a599b438ae3b34f2bf5a22511e379
6
+ metadata.gz: 160be4a1decc911cf1b9c5f5311ed10ac5417b60726267ba81f632c57ce83730093dd2a3f12060b409c9b687f58d45adbb22fe124f8d7e4fe7259fe05226430e
7
+ data.tar.gz: 115d8571532befd59f9ccca4bbbbfcb84d6546ddfe6bfce8c4b949bd5a1e82fdccec6d5680af6db3b4ef7361d0b720b469e2c8ddabb47d979b4d9bd96bdb9d94
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.15.0 (2024-10-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.14.0 (2024-09-24)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.13.0 (2024-09-23)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.15.0
@@ -36,8 +36,6 @@ require 'aws-sdk-core/plugins/telemetry.rb'
36
36
  require 'aws-sdk-core/plugins/sign.rb'
37
37
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
38
38
 
39
- Aws::Plugins::GlobalConfiguration.add_identifier(:freetier)
40
-
41
39
  module Aws::FreeTier
42
40
  # An API client for FreeTier. To construct a client, you need to configure a `:region` and `:credentials`.
43
41
  #
@@ -547,7 +545,7 @@ module Aws::FreeTier
547
545
  tracer: tracer
548
546
  )
549
547
  context[:gem_name] = 'aws-sdk-freetier'
550
- context[:gem_version] = '1.13.0'
548
+ context[:gem_version] = '1.15.0'
551
549
  Seahorse::Client::Request.new(handlers, context)
552
550
  end
553
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)
@@ -11,6 +11,8 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:freetier)
15
+
14
16
  # This module provides support for AWS Free Tier. This module is available in the
15
17
  # `aws-sdk-freetier` gem.
16
18
  #
@@ -52,7 +54,7 @@ module Aws::FreeTier
52
54
  autoload :EndpointProvider, 'aws-sdk-freetier/endpoint_provider'
53
55
  autoload :Endpoints, 'aws-sdk-freetier/endpoints'
54
56
 
55
- GEM_VERSION = '1.13.0'
57
+ GEM_VERSION = '1.15.0'
56
58
 
57
59
  end
58
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.13.0
4
+ version: 1.15.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-23 00:00:00.000000000 Z
11
+ date: 2024-10-18 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