aws-sdk-taxsettings 1.3.0 → 1.5.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 +10 -1
- 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: 5499c6122ccd400c309237850e9cf5dcdbd29df0a409913458b4495e1576846c
|
4
|
+
data.tar.gz: fdbbb0a24e01d925a0f06f973eefb0b44ade8788cb8f8c9623683fcbed679172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b4724027627792b87ff2ec6e1653e10d09197a069d2d469f5ec0771e3ba08c0dc0861d7295f782a3e2b88d303aeb619afeedb867dda5bf7848fcc44d7dc7407
|
7
|
+
data.tar.gz: 5e0385ebb6d318f2f6f7263094d7cfa598bbb2183c821c392efa33b3b8051832faa728bb7dbeb9ff9aaacec7186fb5aa597a29064aca636d774cd9fbbfdb7e2c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.5.0 (2024-07-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Set default endpoint for aws partition. Requests from all regions in aws partition will be forward to us-east-1 endpoint.
|
8
|
+
|
9
|
+
1.4.0 (2024-07-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.3.0 (2024-06-25)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -312,6 +312,15 @@ module Aws::TaxSettings
|
|
312
312
|
#
|
313
313
|
# @option options [String] :session_token
|
314
314
|
#
|
315
|
+
# @option options [Array] :sigv4a_signing_region_set
|
316
|
+
# A list of regions that should be signed with SigV4a signing. When
|
317
|
+
# not passed, a default `:sigv4a_signing_region_set` is searched for
|
318
|
+
# in the following locations:
|
319
|
+
#
|
320
|
+
# * `Aws.config[:sigv4a_signing_region_set]`
|
321
|
+
# * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
|
322
|
+
# * `~/.aws/config`
|
323
|
+
#
|
315
324
|
# @option options [Boolean] :stub_responses (false)
|
316
325
|
# Causes the client to return stubbed responses. By default
|
317
326
|
# fake responses are generated and returned. You can specify
|
@@ -1243,7 +1252,7 @@ module Aws::TaxSettings
|
|
1243
1252
|
params: params,
|
1244
1253
|
config: config)
|
1245
1254
|
context[:gem_name] = 'aws-sdk-taxsettings'
|
1246
|
-
context[:gem_version] = '1.
|
1255
|
+
context[:gem_version] = '1.5.0'
|
1247
1256
|
Seahorse::Client::Request.new(handlers, context)
|
1248
1257
|
end
|
1249
1258
|
|
@@ -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
data/sig/resource.rbs
CHANGED
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.5.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-07-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.
|
22
|
+
version: 3.201.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.201.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:
|