aws-sdk-swf 1.36.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7fbb50e840eb52e65169493be46212dcef5d8100450534254907a2b066d5de8
4
- data.tar.gz: cbb91e1e73b7c95a01c5e2561e9b8890e9fed4e1afd0eea6911ec09702480e54
3
+ metadata.gz: 42ec36b532e0c2bd35e14a97f5aad6adb118086c067ef5ba7006f1ae50d1a3f1
4
+ data.tar.gz: 27aa686efdf83e2fc3eebc0655a2016789d26c415e2528186fb702b548b33e2d
5
5
  SHA512:
6
- metadata.gz: 422731324c511bb333e8bf2f33be6993d1c997fcc61ffc863afc3d58bf0a70e965170cc4571c470b11f03b978a15400edb6a5f9c3a657d52655e05cddaba6ab6
7
- data.tar.gz: 89afdc2e6d7a707e9edce3c584f8c9d9b8986c23b34cf579b693ec3364a2b65429d59082c1cb4af8bb0617cef25c783880dd3fa64b2f9fad2cf54ab049674fdb
6
+ metadata.gz: 410f2edfa69bacd638bd819afe5364db07db41e9bd0f3b7c24be1691605a1b42d1f1d2e50933d2882e6e7c88a4bd570715d9782dd1d6e9665a15ba0b621a85f2
7
+ data.tar.gz: f293d5a6dc60f8376a4c4f31c25d5027ee7e3cb77a1a964024f6d69a76edbeacbc044252bc6c45b0d67258bdad84d200471b4c2b72909e568b9437ef8654fd72
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.38.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.37.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.36.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -248,4 +260,4 @@ Unreleased Changes
248
260
  1.0.0.rc1 (2016-12-05)
249
261
  ------------------
250
262
 
251
- * Feature - Initial preview release of the `aws-sdk-swf` gem.
263
+ * Feature - Initial preview release of the `aws-sdk-swf` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.36.0
1
+ 1.38.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
  require 'aws-sdk-swf/plugins/read_timeouts.rb'
36
36
 
@@ -80,9 +80,10 @@ module Aws::SWF
80
80
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
81
81
  add_plugin(Aws::Plugins::DefaultsMode)
82
82
  add_plugin(Aws::Plugins::RecursionDetection)
83
- add_plugin(Aws::Plugins::SignatureV4)
83
+ add_plugin(Aws::Plugins::Sign)
84
84
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
85
85
  add_plugin(Aws::SWF::Plugins::ReadTimeouts)
86
+ add_plugin(Aws::SWF::Plugins::Endpoints)
86
87
 
87
88
  # @overload initialize(options)
88
89
  # @param [Hash] options
@@ -299,6 +300,19 @@ module Aws::SWF
299
300
  # ** Please note ** When response stubbing is enabled, no HTTP
300
301
  # requests are made, and retries are disabled.
301
302
  #
303
+ # @option options [Aws::TokenProvider] :token_provider
304
+ # A Bearer Token Provider. This can be an instance of any one of the
305
+ # following classes:
306
+ #
307
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
308
+ # tokens.
309
+ #
310
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
311
+ # access token generated from `aws login`.
312
+ #
313
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
314
+ # will be used to search for tokens configured for your profile in shared configuration files.
315
+ #
302
316
  # @option options [Boolean] :use_dualstack_endpoint
303
317
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
304
318
  # will be used if available.
@@ -312,6 +326,9 @@ module Aws::SWF
312
326
  # When `true`, request parameters are validated before
313
327
  # sending the request.
314
328
  #
329
+ # @option options [Aws::SWF::EndpointProvider] :endpoint_provider
330
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SWF::EndpointParameters`
331
+ #
315
332
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
316
333
  # requests through. Formatted like 'http://proxy.com:123'.
317
334
  #
@@ -4312,7 +4329,7 @@ module Aws::SWF
4312
4329
  params: params,
4313
4330
  config: config)
4314
4331
  context[:gem_name] = 'aws-sdk-swf'
4315
- context[:gem_version] = '1.36.0'
4332
+ context[:gem_version] = '1.38.0'
4316
4333
  Seahorse::Client::Request.new(handlers, context)
4317
4334
  end
4318
4335
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SWF
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SWF
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ 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"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://swf-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://swf-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://swf.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://swf.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end