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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c31711743a49b39058a8c49535be7ccb5697ba4f6237aefd2daa95462d6efbef
4
- data.tar.gz: 515ee66281c05725fe9aa63937e0c5f841bf5986a1630deb95eb12bcbcdd3d60
3
+ metadata.gz: 5499c6122ccd400c309237850e9cf5dcdbd29df0a409913458b4495e1576846c
4
+ data.tar.gz: fdbbb0a24e01d925a0f06f973eefb0b44ade8788cb8f8c9623683fcbed679172
5
5
  SHA512:
6
- metadata.gz: 59e85bc612cd02201aa719c5f8cf377ee32d36b94d9fd4628be81b43c2187775aa89fdaf5f0722aa9e6c4d3a219a094fc463e002cc91324d19087150c04aecf6
7
- data.tar.gz: 8e97f3ab4dcf491bd2604ed948a2d240b044c6c88e70d5818cf3d86ad5be292a1214fe6760b9438d8a278a1e77d9d60a4b0c1cf02bb4d8b5d16b730031b0c0ff
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.3.0
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.3.0'
1255
+ context[:gem_version] = '1.5.0'
1247
1256
  Seahorse::Client::Request.new(handlers, context)
1248
1257
  end
1249
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.3.0'
55
+ GEM_VERSION = '1.5.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -48,6 +48,7 @@ module Aws
48
48
  ?sdk_ua_app_id: String,
49
49
  ?secret_access_key: String,
50
50
  ?session_token: String,
51
+ ?sigv4a_signing_region_set: Array[String],
51
52
  ?stub_responses: untyped,
52
53
  ?token_provider: untyped,
53
54
  ?use_dualstack_endpoint: bool,
data/sig/resource.rbs CHANGED
@@ -48,6 +48,7 @@ module Aws
48
48
  ?sdk_ua_app_id: String,
49
49
  ?secret_access_key: String,
50
50
  ?session_token: String,
51
+ ?sigv4a_signing_region_set: Array[String],
51
52
  ?stub_responses: untyped,
52
53
  ?token_provider: untyped,
53
54
  ?use_dualstack_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.3.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-06-25 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.199.0
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.199.0
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.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: