aws-sdk-cloudhsmv2 1.48.0 → 1.50.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-cloudhsmv2/client.rb +5 -1
- data/lib/aws-sdk-cloudhsmv2/endpoint_provider.rb +31 -22
- data/lib/aws-sdk-cloudhsmv2.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ae1fe9ddaf52d30cef61c2a9c6d440be971078d02d43b513ce679aeea218c0a4
         | 
| 4 | 
            +
              data.tar.gz: 716fb16ffc9668a7d99b64f2a19f077b4fed1da1591dacf0a3b4f6e08ce61fac
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: df556c834c491b2413c7d2080b8f95688081c54327bac790b36e19600bd51605ae152aeea5c68da177f4a56ebac85410b7416f4eb277ea66ea93eec88fe23f84
         | 
| 7 | 
            +
              data.tar.gz: 3632a76f08636e0a9b8579ac3b9e5acdbfbd870d0f0f1180a78ee24fe432ee1d7b572f2568fc8dfae2009cd0dc1e33eaa12fa7bd594ecf488e3b7d25fcff6070
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,6 +1,16 @@ | |
| 1 1 | 
             
            Unreleased Changes
         | 
| 2 2 | 
             
            ------------------
         | 
| 3 3 |  | 
| 4 | 
            +
            1.50.0 (2023-09-19)
         | 
| 5 | 
            +
            ------------------
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            1.49.0 (2023-07-11)
         | 
| 10 | 
            +
            ------------------
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         | 
| 13 | 
            +
             | 
| 4 14 | 
             
            1.48.0 (2023-07-06)
         | 
| 5 15 | 
             
            ------------------
         | 
| 6 16 |  | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.50.0
         | 
| @@ -216,6 +216,10 @@ module Aws::CloudHSMV2 | |
| 216 216 | 
             
                #   @option options [Boolean] :endpoint_discovery (false)
         | 
| 217 217 | 
             
                #     When set to `true`, endpoint discovery will be enabled for operations when available.
         | 
| 218 218 | 
             
                #
         | 
| 219 | 
            +
                #   @option options [Boolean] :ignore_configured_endpoint_urls
         | 
| 220 | 
            +
                #     Setting to true disables use of endpoint URLs provided via environment
         | 
| 221 | 
            +
                #     variables and the shared configuration file.
         | 
| 222 | 
            +
                #
         | 
| 219 223 | 
             
                #   @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
         | 
| 220 224 | 
             
                #     The log formatter.
         | 
| 221 225 | 
             
                #
         | 
| @@ -1247,7 +1251,7 @@ module Aws::CloudHSMV2 | |
| 1247 1251 | 
             
                    params: params,
         | 
| 1248 1252 | 
             
                    config: config)
         | 
| 1249 1253 | 
             
                  context[:gem_name] = 'aws-sdk-cloudhsmv2'
         | 
| 1250 | 
            -
                  context[:gem_version] = '1. | 
| 1254 | 
            +
                  context[:gem_version] = '1.50.0'
         | 
| 1251 1255 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 1252 1256 | 
             
                end
         | 
| 1253 1257 |  | 
| @@ -14,36 +14,45 @@ module Aws::CloudHSMV2 | |
| 14 14 | 
             
                  use_dual_stack = parameters.use_dual_stack
         | 
| 15 15 | 
             
                  use_fips = parameters.use_fips
         | 
| 16 16 | 
             
                  endpoint = parameters.endpoint
         | 
| 17 | 
            -
                  if  | 
| 18 | 
            -
                    if Aws::Endpoints::Matchers. | 
| 17 | 
            +
                  if Aws::Endpoints::Matchers.set?(endpoint)
         | 
| 18 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 19 | 
            +
                      raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
         | 
| 20 | 
            +
                    end
         | 
| 21 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 22 | 
            +
                      raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
         | 
| 23 | 
            +
                    end
         | 
| 24 | 
            +
                    return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
         | 
| 25 | 
            +
                  end
         | 
| 26 | 
            +
                  if Aws::Endpoints::Matchers.set?(region)
         | 
| 27 | 
            +
                    if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
         | 
| 28 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 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://cloudhsmv2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 31 | 
            +
                        end
         | 
| 32 | 
            +
                        raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
         | 
| 33 | 
            +
                      end
         | 
| 19 34 | 
             
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 20 | 
            -
                         | 
| 35 | 
            +
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
         | 
| 36 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 37 | 
            +
                        end
         | 
| 38 | 
            +
                        raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
         | 
| 21 39 | 
             
                      end
         | 
| 22 40 | 
             
                      if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 23 | 
            -
                         | 
| 41 | 
            +
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 42 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 43 | 
            +
                        end
         | 
| 44 | 
            +
                        raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
         | 
| 24 45 | 
             
                      end
         | 
| 25 | 
            -
                       | 
| 26 | 
            -
             | 
| 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://cloudhsmv2-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://cloudhsmv2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 46 | 
            +
                      if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
         | 
| 47 | 
            +
                        return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2.#{region}.amazonaws.com", headers: {}, properties: {})
         | 
| 36 48 | 
             
                      end
         | 
| 37 | 
            -
                       | 
| 38 | 
            -
             | 
| 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://cloudhsmv2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 49 | 
            +
                      if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
         | 
| 50 | 
            +
                        return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2.#{region}.amazonaws.com", headers: {}, properties: {})
         | 
| 42 51 | 
             
                      end
         | 
| 43 | 
            -
                       | 
| 52 | 
            +
                      return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 44 53 | 
             
                    end
         | 
| 45 | 
            -
                    return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 46 54 | 
             
                  end
         | 
| 55 | 
            +
                  raise ArgumentError, "Invalid Configuration: Missing Region"
         | 
| 47 56 | 
             
                  raise ArgumentError, 'No endpoint could be resolved'
         | 
| 48 57 |  | 
| 49 58 | 
             
                end
         | 
    
        data/lib/aws-sdk-cloudhsmv2.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-cloudhsmv2
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.50.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: 2023- | 
| 11 | 
            +
            date: 2023-09-19 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-core
         |