aws-sdk-taxsettings 1.4.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-taxsettings/client.rb +19 -2
- data/lib/aws-sdk-taxsettings/client_api.rb +1 -0
- data/lib/aws-sdk-taxsettings/endpoint_parameters.rb +8 -8
- data/lib/aws-sdk-taxsettings/endpoint_provider.rb +7 -7
- data/lib/aws-sdk-taxsettings/endpoints.rb +7 -7
- data/lib/aws-sdk-taxsettings/types.rb +1 -1
- data/lib/aws-sdk-taxsettings.rb +1 -1
- data/sig/client.rbs +1 -0
- data/sig/resource.rbs +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96499562cefee52973b4b400cd65e34af6082311874d02c303238e486c26b5e5
|
4
|
+
data.tar.gz: 220d1ec921a830d2c125fc497f44ef0e3c14c36bf88e06a8584d6bd7d8146391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9057680e8fb92f1a8db40ba96ed35f9cc24653491c0529a920cb9f47d29db91fb4f0356406fd9d085d03aaf0712937f330fb4d1c58ba360118436921ac8ed841
|
7
|
+
data.tar.gz: 7bef42e6a7b2dba7671ef5b09ade66d8284ef80bbae0eb56ce46cf3ee7734461d984182afc24dceea71d40e465df4c6aad588bbe2f8ec7ff0190466ecad1e890
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.6.0 (2024-09-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.5.0 (2024-07-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Set default endpoint for aws partition. Requests from all regions in aws partition will be forward to us-east-1 endpoint.
|
13
|
+
|
4
14
|
1.4.0 (2024-07-02)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.6.0
|
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
|
32
32
|
require 'aws-sdk-core/plugins/request_compression.rb'
|
33
33
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
34
34
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
35
|
+
require 'aws-sdk-core/plugins/telemetry.rb'
|
35
36
|
require 'aws-sdk-core/plugins/sign.rb'
|
36
37
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
37
38
|
|
@@ -83,6 +84,7 @@ module Aws::TaxSettings
|
|
83
84
|
add_plugin(Aws::Plugins::RequestCompression)
|
84
85
|
add_plugin(Aws::Plugins::DefaultsMode)
|
85
86
|
add_plugin(Aws::Plugins::RecursionDetection)
|
87
|
+
add_plugin(Aws::Plugins::Telemetry)
|
86
88
|
add_plugin(Aws::Plugins::Sign)
|
87
89
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
88
90
|
add_plugin(Aws::TaxSettings::Plugins::Endpoints)
|
@@ -330,6 +332,16 @@ module Aws::TaxSettings
|
|
330
332
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
331
333
|
# requests are made, and retries are disabled.
|
332
334
|
#
|
335
|
+
# @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
|
336
|
+
# Allows you to provide a telemetry provider, which is used to
|
337
|
+
# emit telemetry data. By default, uses `NoOpTelemetryProvider` which
|
338
|
+
# will not record or emit any telemetry data. The SDK supports the
|
339
|
+
# following telemetry providers:
|
340
|
+
#
|
341
|
+
# * OpenTelemetry (OTel) - To use the OTel provider, install and require the
|
342
|
+
# `opentelemetry-sdk` gem and then, pass in an instance of a
|
343
|
+
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
344
|
+
#
|
333
345
|
# @option options [Aws::TokenProvider] :token_provider
|
334
346
|
# A Bearer Token Provider. This can be an instance of any one of the
|
335
347
|
# following classes:
|
@@ -1245,14 +1257,19 @@ module Aws::TaxSettings
|
|
1245
1257
|
# @api private
|
1246
1258
|
def build_request(operation_name, params = {})
|
1247
1259
|
handlers = @handlers.for(operation_name)
|
1260
|
+
tracer = config.telemetry_provider.tracer_provider.tracer(
|
1261
|
+
Aws::Telemetry.module_to_tracer_name('Aws::TaxSettings')
|
1262
|
+
)
|
1248
1263
|
context = Seahorse::Client::RequestContext.new(
|
1249
1264
|
operation_name: operation_name,
|
1250
1265
|
operation: config.api.operation(operation_name),
|
1251
1266
|
client: self,
|
1252
1267
|
params: params,
|
1253
|
-
config: config
|
1268
|
+
config: config,
|
1269
|
+
tracer: tracer
|
1270
|
+
)
|
1254
1271
|
context[:gem_name] = 'aws-sdk-taxsettings'
|
1255
|
-
context[:gem_version] = '1.
|
1272
|
+
context[:gem_version] = '1.6.0'
|
1256
1273
|
Seahorse::Client::Request.new(handlers, context)
|
1257
1274
|
end
|
1258
1275
|
|
@@ -10,11 +10,6 @@
|
|
10
10
|
module Aws::TaxSettings
|
11
11
|
# Endpoint parameters used to influence endpoints per request.
|
12
12
|
#
|
13
|
-
# @!attribute region
|
14
|
-
# The AWS region used to dispatch the request.
|
15
|
-
#
|
16
|
-
# @return [String]
|
17
|
-
#
|
18
13
|
# @!attribute use_dual_stack
|
19
14
|
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
15
|
#
|
@@ -30,26 +25,30 @@ module Aws::TaxSettings
|
|
30
25
|
#
|
31
26
|
# @return [String]
|
32
27
|
#
|
28
|
+
# @!attribute region
|
29
|
+
# The AWS region used to dispatch the request.
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
33
|
EndpointParameters = Struct.new(
|
34
|
-
:region,
|
35
34
|
:use_dual_stack,
|
36
35
|
:use_fips,
|
37
36
|
:endpoint,
|
37
|
+
:region,
|
38
38
|
) do
|
39
39
|
include Aws::Structure
|
40
40
|
|
41
41
|
# @api private
|
42
42
|
class << self
|
43
43
|
PARAM_MAP = {
|
44
|
-
'Region' => :region,
|
45
44
|
'UseDualStack' => :use_dual_stack,
|
46
45
|
'UseFIPS' => :use_fips,
|
47
46
|
'Endpoint' => :endpoint,
|
47
|
+
'Region' => :region,
|
48
48
|
}.freeze
|
49
49
|
end
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
|
-
self[:region] = options[:region]
|
53
52
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
53
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
54
|
if self[:use_dual_stack].nil?
|
@@ -61,6 +60,7 @@ module Aws::TaxSettings
|
|
61
60
|
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
61
|
end
|
63
62
|
self[:endpoint] = options[:endpoint]
|
63
|
+
self[:region] = options[:region]
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -10,10 +10,10 @@
|
|
10
10
|
module Aws::TaxSettings
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
region = parameters.region
|
14
13
|
use_dual_stack = parameters.use_dual_stack
|
15
14
|
use_fips = parameters.use_fips
|
16
15
|
endpoint = parameters.endpoint
|
16
|
+
region = parameters.region
|
17
17
|
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
19
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
@@ -27,23 +27,23 @@ module Aws::TaxSettings
|
|
27
27
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
28
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
29
|
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"))
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://tax-fips.#{
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://tax-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
|
31
31
|
end
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
35
35
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://tax-fips.#{
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://tax-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
39
|
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
41
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://tax.#{
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://tax.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
|
43
43
|
end
|
44
44
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
45
|
end
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://tax.#{
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://tax.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
|
47
47
|
end
|
48
48
|
end
|
49
49
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -18,10 +18,10 @@ module Aws::TaxSettings
|
|
18
18
|
endpoint = context.config.endpoint.to_s
|
19
19
|
end
|
20
20
|
Aws::TaxSettings::EndpointParameters.new(
|
21
|
-
region: context.config.region,
|
22
21
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
22
|
use_fips: context.config.use_fips_endpoint,
|
24
23
|
endpoint: endpoint,
|
24
|
+
region: context.config.region,
|
25
25
|
)
|
26
26
|
end
|
27
27
|
end
|
@@ -32,10 +32,10 @@ module Aws::TaxSettings
|
|
32
32
|
endpoint = context.config.endpoint.to_s
|
33
33
|
end
|
34
34
|
Aws::TaxSettings::EndpointParameters.new(
|
35
|
-
region: context.config.region,
|
36
35
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
36
|
use_fips: context.config.use_fips_endpoint,
|
38
37
|
endpoint: endpoint,
|
38
|
+
region: context.config.region,
|
39
39
|
)
|
40
40
|
end
|
41
41
|
end
|
@@ -46,10 +46,10 @@ module Aws::TaxSettings
|
|
46
46
|
endpoint = context.config.endpoint.to_s
|
47
47
|
end
|
48
48
|
Aws::TaxSettings::EndpointParameters.new(
|
49
|
-
region: context.config.region,
|
50
49
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
50
|
use_fips: context.config.use_fips_endpoint,
|
52
51
|
endpoint: endpoint,
|
52
|
+
region: context.config.region,
|
53
53
|
)
|
54
54
|
end
|
55
55
|
end
|
@@ -60,10 +60,10 @@ module Aws::TaxSettings
|
|
60
60
|
endpoint = context.config.endpoint.to_s
|
61
61
|
end
|
62
62
|
Aws::TaxSettings::EndpointParameters.new(
|
63
|
-
region: context.config.region,
|
64
63
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
64
|
use_fips: context.config.use_fips_endpoint,
|
66
65
|
endpoint: endpoint,
|
66
|
+
region: context.config.region,
|
67
67
|
)
|
68
68
|
end
|
69
69
|
end
|
@@ -74,10 +74,10 @@ module Aws::TaxSettings
|
|
74
74
|
endpoint = context.config.endpoint.to_s
|
75
75
|
end
|
76
76
|
Aws::TaxSettings::EndpointParameters.new(
|
77
|
-
region: context.config.region,
|
78
77
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
79
78
|
use_fips: context.config.use_fips_endpoint,
|
80
79
|
endpoint: endpoint,
|
80
|
+
region: context.config.region,
|
81
81
|
)
|
82
82
|
end
|
83
83
|
end
|
@@ -88,10 +88,10 @@ module Aws::TaxSettings
|
|
88
88
|
endpoint = context.config.endpoint.to_s
|
89
89
|
end
|
90
90
|
Aws::TaxSettings::EndpointParameters.new(
|
91
|
-
region: context.config.region,
|
92
91
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
92
|
use_fips: context.config.use_fips_endpoint,
|
94
93
|
endpoint: endpoint,
|
94
|
+
region: context.config.region,
|
95
95
|
)
|
96
96
|
end
|
97
97
|
end
|
@@ -102,10 +102,10 @@ module Aws::TaxSettings
|
|
102
102
|
endpoint = context.config.endpoint.to_s
|
103
103
|
end
|
104
104
|
Aws::TaxSettings::EndpointParameters.new(
|
105
|
-
region: context.config.region,
|
106
105
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
106
|
use_fips: context.config.use_fips_endpoint,
|
108
107
|
endpoint: endpoint,
|
108
|
+
region: context.config.region,
|
109
109
|
)
|
110
110
|
end
|
111
111
|
end
|
data/lib/aws-sdk-taxsettings.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -50,6 +50,7 @@ module Aws
|
|
50
50
|
?session_token: String,
|
51
51
|
?sigv4a_signing_region_set: Array[String],
|
52
52
|
?stub_responses: untyped,
|
53
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
53
54
|
?token_provider: untyped,
|
54
55
|
?use_dualstack_endpoint: bool,
|
55
56
|
?use_fips_endpoint: bool,
|
data/sig/resource.rbs
CHANGED
@@ -50,6 +50,7 @@ module Aws
|
|
50
50
|
?session_token: String,
|
51
51
|
?sigv4a_signing_region_set: Array[String],
|
52
52
|
?stub_responses: untyped,
|
53
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
53
54
|
?token_provider: untyped,
|
54
55
|
?use_dualstack_endpoint: bool,
|
55
56
|
?use_fips_endpoint: bool,
|
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.
|
4
|
+
version: 1.6.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-
|
11
|
+
date: 2024-09-03 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.
|
22
|
+
version: 3.203.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.203.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.5'
|
47
47
|
description: Official AWS Ruby gem for Tax Settings. This gem is part of the AWS SDK
|
48
48
|
for Ruby.
|
49
49
|
email:
|