aws-sdk-swf 1.76.0 → 1.78.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 +4 -4
 - data/CHANGELOG.md +10 -0
 - data/VERSION +1 -1
 - data/lib/aws-sdk-swf/client.rb +1 -1
 - data/lib/aws-sdk-swf/endpoint_parameters.rb +12 -12
 - data/lib/aws-sdk-swf/endpoint_provider.rb +8 -5
 - data/lib/aws-sdk-swf.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 42d43a41e53a079d562ea6d0d86e5b253d9d4bab218e85282245f86eef93e5af
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: dd266db81c9dfc64e4255c83acd251ab6b7363ce0c3bfcadcb775de6e774b130
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6d374d172d5f8cc8fbdb96383b8b5445fcd580e18a85a46f8f6f95264f608cef15683601bc42d9f042368ab76d78ab3c90cf0e49fe589d6ed0065f9109ad9e25
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d8bd97d3106407b2731c5cda172d4d1d96099e2b1e35905c2bc7d3735cbfcca75e661df49099c4a379e675328b34bb0ce943056df9889fd7ab2523f50477850e
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,6 +1,16 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            Unreleased Changes
         
     | 
| 
       2 
2 
     | 
    
         
             
            ------------------
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
      
 4 
     | 
    
         
            +
            1.78.0 (2025-10-17)
         
     | 
| 
      
 5 
     | 
    
         
            +
            ------------------
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            * Feature - Releasing minor endpoint updates.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            1.77.0 (2025-08-28)
         
     | 
| 
      
 10 
     | 
    
         
            +
            ------------------
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            * Feature - Remove incorrect endpoint tests
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       4 
14 
     | 
    
         
             
            1.76.0 (2025-08-26)
         
     | 
| 
       5 
15 
     | 
    
         
             
            ------------------
         
     | 
| 
       6 
16 
     | 
    
         | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.78.0
         
     | 
    
        data/lib/aws-sdk-swf/client.rb
    CHANGED
    
    
| 
         @@ -10,59 +10,59 @@ 
     | 
|
| 
       10 
10 
     | 
    
         
             
            module Aws::SWF
         
     | 
| 
       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 
     | 
    
         
             
              #
         
     | 
| 
       21 
     | 
    
         
            -
              #   @return [ 
     | 
| 
      
 16 
     | 
    
         
            +
              #   @return [boolean]
         
     | 
| 
       22 
17 
     | 
    
         
             
              #
         
     | 
| 
       23 
18 
     | 
    
         
             
              # @!attribute use_fips
         
     | 
| 
       24 
19 
     | 
    
         
             
              #   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 
20 
     | 
    
         
             
              #
         
     | 
| 
       26 
     | 
    
         
            -
              #   @return [ 
     | 
| 
      
 21 
     | 
    
         
            +
              #   @return [boolean]
         
     | 
| 
       27 
22 
     | 
    
         
             
              #
         
     | 
| 
       28 
23 
     | 
    
         
             
              # @!attribute endpoint
         
     | 
| 
       29 
24 
     | 
    
         
             
              #   Override the endpoint used to send this request
         
     | 
| 
       30 
25 
     | 
    
         
             
              #
         
     | 
| 
       31 
     | 
    
         
            -
              #   @return [ 
     | 
| 
      
 26 
     | 
    
         
            +
              #   @return [string]
         
     | 
| 
      
 27 
     | 
    
         
            +
              #
         
     | 
| 
      
 28 
     | 
    
         
            +
              # @!attribute region
         
     | 
| 
      
 29 
     | 
    
         
            +
              #   The AWS region used to dispatch the request.
         
     | 
| 
      
 30 
     | 
    
         
            +
              #
         
     | 
| 
      
 31 
     | 
    
         
            +
              #   @return [string]
         
     | 
| 
       32 
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 
     | 
    
         
             
                  self[:use_fips] = options[:use_fips]
         
     | 
| 
       56 
55 
     | 
    
         
             
                  self[:use_fips] = false if self[:use_fips].nil?
         
     | 
| 
       57 
56 
     | 
    
         
             
                  self[:endpoint] = options[:endpoint]
         
     | 
| 
      
 57 
     | 
    
         
            +
                  self[:region] = options[:region]
         
     | 
| 
       58 
58 
     | 
    
         
             
                end
         
     | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
60 
     | 
    
         
             
                def self.create(config, options={})
         
     | 
| 
       61 
61 
     | 
    
         
             
                  new({
         
     | 
| 
       62 
     | 
    
         
            -
                    region: config.region,
         
     | 
| 
       63 
62 
     | 
    
         
             
                    use_dual_stack: config.use_dualstack_endpoint,
         
     | 
| 
       64 
63 
     | 
    
         
             
                    use_fips: config.use_fips_endpoint,
         
     | 
| 
       65 
64 
     | 
    
         
             
                    endpoint: (config.endpoint.to_s unless config.regional_endpoint),
         
     | 
| 
      
 65 
     | 
    
         
            +
                    region: config.region,
         
     | 
| 
       66 
66 
     | 
    
         
             
                  }.merge(options))
         
     | 
| 
       67 
67 
     | 
    
         
             
                end
         
     | 
| 
       68 
68 
     | 
    
         
             
              end
         
     | 
| 
         @@ -21,22 +21,25 @@ module Aws::SWF 
     | 
|
| 
       21 
21 
     | 
    
         
             
                  end
         
     | 
| 
       22 
22 
     | 
    
         
             
                  if Aws::Endpoints::Matchers.set?(parameters.region)
         
     | 
| 
       23 
23 
     | 
    
         
             
                    if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
         
     | 
| 
      
 24 
     | 
    
         
            +
                      if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
         
     | 
| 
      
 25 
     | 
    
         
            +
                        return Aws::Endpoints::Endpoint.new(url: "https://swf.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         
     | 
| 
      
 26 
     | 
    
         
            +
                      end
         
     | 
| 
      
 27 
     | 
    
         
            +
                      if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         
     | 
| 
      
 28 
     | 
    
         
            +
                        return Aws::Endpoints::Endpoint.new(url: "https://swf-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         
     | 
| 
      
 29 
     | 
    
         
            +
                      end
         
     | 
| 
       24 
30 
     | 
    
         
             
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         
     | 
| 
       25 
31 
     | 
    
         
             
                        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"))
         
     | 
| 
       26 
32 
     | 
    
         
             
                          return Aws::Endpoints::Endpoint.new(url: "https://swf-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         
     | 
| 
       27 
33 
     | 
    
         
             
                        end
         
     | 
| 
       28 
34 
     | 
    
         
             
                        raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
         
     | 
| 
       29 
35 
     | 
    
         
             
                      end
         
     | 
| 
       30 
     | 
    
         
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
         
     | 
| 
      
 36 
     | 
    
         
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
         
     | 
| 
       31 
37 
     | 
    
         
             
                        if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
         
     | 
| 
       32 
     | 
    
         
            -
                          if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
         
     | 
| 
       33 
     | 
    
         
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://swf.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
         
     | 
| 
       34 
     | 
    
         
            -
                          end
         
     | 
| 
       35 
38 
     | 
    
         
             
                          return Aws::Endpoints::Endpoint.new(url: "https://swf-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         
     | 
| 
       36 
39 
     | 
    
         
             
                        end
         
     | 
| 
       37 
40 
     | 
    
         
             
                        raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
         
     | 
| 
       38 
41 
     | 
    
         
             
                      end
         
     | 
| 
       39 
     | 
    
         
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         
     | 
| 
      
 42 
     | 
    
         
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         
     | 
| 
       40 
43 
     | 
    
         
             
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         
     | 
| 
       41 
44 
     | 
    
         
             
                          return Aws::Endpoints::Endpoint.new(url: "https://swf.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         
     | 
| 
       42 
45 
     | 
    
         
             
                        end
         
     | 
    
        data/lib/aws-sdk-swf.rb
    CHANGED