aws-sdk-taxsettings 1.4.0 → 1.5.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: f005f7f3d7dba82254485e9c6f523f46ad5dad56c964f8386eb72a0b9ba2dbd5
4
- data.tar.gz: 9e02cf2a96e1cc1926bce34f320f244c7fb27787f6c1ad8f5881f02a55128ca7
3
+ metadata.gz: 5499c6122ccd400c309237850e9cf5dcdbd29df0a409913458b4495e1576846c
4
+ data.tar.gz: fdbbb0a24e01d925a0f06f973eefb0b44ade8788cb8f8c9623683fcbed679172
5
5
  SHA512:
6
- metadata.gz: 19b4ae7fd5d9e3a23c7affd6730b1ead5738c8c249a103242f86e3d4552e10cbe65d19cea8d5ebdc7bce8d820581b2737bf31783512210fa80291d7e5b083065
7
- data.tar.gz: 72c6e3da2124c3ef1959f93495e5a4832211b2784e77f26ca6bbb51e65a560342b71ab4779e54cc8b5d64f752a0a3b8b2f1a60eaffeb4153da3a5a0e9c78e686
6
+ metadata.gz: 4b4724027627792b87ff2ec6e1653e10d09197a069d2d469f5ec0771e3ba08c0dc0861d7295f782a3e2b88d303aeb619afeedb867dda5bf7848fcc44d7dc7407
7
+ data.tar.gz: 5e0385ebb6d318f2f6f7263094d7cfa598bbb2183c821c392efa33b3b8051832faa728bb7dbeb9ff9aaacec7186fb5aa597a29064aca636d774cd9fbbfdb7e2c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.4.0 (2024-07-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.5.0
@@ -1252,7 +1252,7 @@ module Aws::TaxSettings
1252
1252
  params: params,
1253
1253
  config: config)
1254
1254
  context[:gem_name] = 'aws-sdk-taxsettings'
1255
- context[:gem_version] = '1.4.0'
1255
+ context[:gem_version] = '1.5.0'
1256
1256
  Seahorse::Client::Request.new(handlers, context)
1257
1257
  end
1258
1258
 
@@ -417,6 +417,7 @@ module Aws::TaxSettings
417
417
 
418
418
  api.metadata = {
419
419
  "apiVersion" => "2018-05-10",
420
+ "auth" => ["aws.auth#sigv4"],
420
421
  "endpointPrefix" => "tax",
421
422
  "jsonVersion" => "1.1",
422
423
  "protocol" => "rest-json",
@@ -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.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
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.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
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
@@ -820,7 +820,7 @@ module Aws::TaxSettings
820
820
  class ListTaxRegistrationsResponse < Struct.new(
821
821
  :account_details,
822
822
  :next_token)
823
- SENSITIVE = []
823
+ SENSITIVE = [:account_details]
824
824
  include Aws::Structure
825
825
  end
826
826
 
@@ -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.4.0'
55
+ GEM_VERSION = '1.5.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.4.0
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-07-02 00:00:00.000000000 Z
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
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.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.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: