aws-sdk-taxsettings 1.7.0 → 1.8.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: f3985e1e511af5ad2246180cefe8084e32a45a53b33dd5185e6509dd73ea6c35
4
- data.tar.gz: f723270d7b1d3893fcd804e51d2387f7b9a8fda20eb408c052c318880e803249
3
+ metadata.gz: 5fbf2c61f29413c50400a1539539953252280c756f259a9b863fe6df3f676520
4
+ data.tar.gz: df48c5465219a3fba6b8e98f22a09163029f2e832be5ba94a67faddfc5affba0
5
5
  SHA512:
6
- metadata.gz: ef6429a1f0b26e78740b37c0829d3af031ed086761f1f50718ca0230123e1093acefd0db68218da5851bdd894709e6ad0b64509800252fa0d6b2e2f2e4cdf129
7
- data.tar.gz: dce097a1fdbe11f7e6bc07803d57a23c493f847cc257b9d52d79880db27fa83cdaee6d0eca1e1c3d94ebf6e4f1257ec2f305ab3db847af057c973a67c9780907
6
+ metadata.gz: c809b7fc8493074fe6455a7f312b2bdb92284c0c0f43217061fe940146bbc8463d6ea55a6b4fad531d621548cff707d4e4e4f73cad10adcd90e6d771f0c841ed
7
+ data.tar.gz: 3370dc0ea7c9568943138660ff901121281ae0377a5fadd12846dcb1480bc68bdcf06d4a6b703860c621782f9d11708e60475238a8668dd4b43a3f4e3bb0e58f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.8.0 (2024-09-11)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.7.0 (2024-09-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.8.0
@@ -1275,7 +1275,7 @@ module Aws::TaxSettings
1275
1275
  tracer: tracer
1276
1276
  )
1277
1277
  context[:gem_name] = 'aws-sdk-taxsettings'
1278
- context[:gem_version] = '1.7.0'
1278
+ context[:gem_version] = '1.8.0'
1279
1279
  Seahorse::Client::Request.new(handlers, context)
1280
1280
  end
1281
1281
 
@@ -14,13 +14,10 @@ module Aws::TaxSettings
14
14
 
15
15
  class BatchDeleteTaxRegistration
16
16
  def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
17
  Aws::TaxSettings::EndpointParameters.new(
21
18
  use_dual_stack: context.config.use_dualstack_endpoint,
22
19
  use_fips: context.config.use_fips_endpoint,
23
- endpoint: endpoint,
20
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
24
21
  region: context.config.region,
25
22
  )
26
23
  end
@@ -28,13 +25,10 @@ module Aws::TaxSettings
28
25
 
29
26
  class BatchPutTaxRegistration
30
27
  def self.build(context)
31
- unless context.config.regional_endpoint
32
- endpoint = context.config.endpoint.to_s
33
- end
34
28
  Aws::TaxSettings::EndpointParameters.new(
35
29
  use_dual_stack: context.config.use_dualstack_endpoint,
36
30
  use_fips: context.config.use_fips_endpoint,
37
- endpoint: endpoint,
31
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
38
32
  region: context.config.region,
39
33
  )
40
34
  end
@@ -42,13 +36,10 @@ module Aws::TaxSettings
42
36
 
43
37
  class DeleteTaxRegistration
44
38
  def self.build(context)
45
- unless context.config.regional_endpoint
46
- endpoint = context.config.endpoint.to_s
47
- end
48
39
  Aws::TaxSettings::EndpointParameters.new(
49
40
  use_dual_stack: context.config.use_dualstack_endpoint,
50
41
  use_fips: context.config.use_fips_endpoint,
51
- endpoint: endpoint,
42
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
52
43
  region: context.config.region,
53
44
  )
54
45
  end
@@ -56,13 +47,10 @@ module Aws::TaxSettings
56
47
 
57
48
  class GetTaxRegistration
58
49
  def self.build(context)
59
- unless context.config.regional_endpoint
60
- endpoint = context.config.endpoint.to_s
61
- end
62
50
  Aws::TaxSettings::EndpointParameters.new(
63
51
  use_dual_stack: context.config.use_dualstack_endpoint,
64
52
  use_fips: context.config.use_fips_endpoint,
65
- endpoint: endpoint,
53
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
66
54
  region: context.config.region,
67
55
  )
68
56
  end
@@ -70,13 +58,10 @@ module Aws::TaxSettings
70
58
 
71
59
  class GetTaxRegistrationDocument
72
60
  def self.build(context)
73
- unless context.config.regional_endpoint
74
- endpoint = context.config.endpoint.to_s
75
- end
76
61
  Aws::TaxSettings::EndpointParameters.new(
77
62
  use_dual_stack: context.config.use_dualstack_endpoint,
78
63
  use_fips: context.config.use_fips_endpoint,
79
- endpoint: endpoint,
64
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
80
65
  region: context.config.region,
81
66
  )
82
67
  end
@@ -84,13 +69,10 @@ module Aws::TaxSettings
84
69
 
85
70
  class ListTaxRegistrations
86
71
  def self.build(context)
87
- unless context.config.regional_endpoint
88
- endpoint = context.config.endpoint.to_s
89
- end
90
72
  Aws::TaxSettings::EndpointParameters.new(
91
73
  use_dual_stack: context.config.use_dualstack_endpoint,
92
74
  use_fips: context.config.use_fips_endpoint,
93
- endpoint: endpoint,
75
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
94
76
  region: context.config.region,
95
77
  )
96
78
  end
@@ -98,13 +80,10 @@ module Aws::TaxSettings
98
80
 
99
81
  class PutTaxRegistration
100
82
  def self.build(context)
101
- unless context.config.regional_endpoint
102
- endpoint = context.config.endpoint.to_s
103
- end
104
83
  Aws::TaxSettings::EndpointParameters.new(
105
84
  use_dual_stack: context.config.use_dualstack_endpoint,
106
85
  use_fips: context.config.use_fips_endpoint,
107
- endpoint: endpoint,
86
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
108
87
  region: context.config.region,
109
88
  )
110
89
  end
@@ -40,11 +40,20 @@ module Aws::TaxSettings
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
55
+ end
56
+
48
57
  def apply_endpoint_headers(context, headers)
49
58
  headers.each do |key, values|
50
59
  value = values
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-taxsettings/customizations'
52
52
  # @!group service
53
53
  module Aws::TaxSettings
54
54
 
55
- GEM_VERSION = '1.7.0'
55
+ GEM_VERSION = '1.8.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-taxsettings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.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-10 00:00:00.000000000 Z
11
+ date: 2024-09-11 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.203.0
22
+ version: 3.205.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.203.0
32
+ version: 3.205.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement