aws-sdk-ecr 1.93.0 → 1.95.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-ecr/client.rb +1 -1
- data/lib/aws-sdk-ecr/endpoint_provider.rb +15 -34
- data/lib/aws-sdk-ecr.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: f7afd32333143731d7247bc8caa23b6ff70df3a14a3929d70bd57a71e5ebb3f6
         | 
| 4 | 
            +
              data.tar.gz: 5cd5a2199f482c75934c6c2fca98156de383c6f49beaaa446ff902ff0dd3e3f6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 805e5933fd02dc3ee7283ca2889a5792b7b9e832447f5681f3da3be36917e98548eef55a19601e9138370095e4d1df1b77a7c010ca8f446f9b52712a841566ec
         | 
| 7 | 
            +
              data.tar.gz: 5ffb2e4a326aec9254aabad3eea137d7d34221c461f8eb0863ba29ae20a45cec823fbeef2b284a8b89b48547a1749e0d800b40be62a4a9ab9f2a0b6f0d6bdab1
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,6 +1,16 @@ | |
| 1 1 | 
             
            Unreleased Changes
         | 
| 2 2 | 
             
            ------------------
         | 
| 3 3 |  | 
| 4 | 
            +
            1.95.0 (2025-02-06)
         | 
| 5 | 
            +
            ------------------
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            1.94.0 (2025-01-30)
         | 
| 10 | 
            +
            ------------------
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            * Feature - Temporarily updating dualstack endpoint support
         | 
| 13 | 
            +
             | 
| 4 14 | 
             
            1.93.0 (2025-01-29)
         | 
| 5 15 | 
             
            ------------------
         | 
| 6 16 |  | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.95.0
         | 
    
        data/lib/aws-sdk-ecr/client.rb
    CHANGED
    
    
| @@ -10,61 +10,42 @@ | |
| 10 10 | 
             
            module Aws::ECR
         | 
| 11 11 | 
             
              class EndpointProvider
         | 
| 12 12 | 
             
                def resolve_endpoint(parameters)
         | 
| 13 | 
            -
                   | 
| 14 | 
            -
             | 
| 15 | 
            -
                  use_fips = parameters.use_fips
         | 
| 16 | 
            -
                  endpoint = parameters.endpoint
         | 
| 17 | 
            -
                  if Aws::Endpoints::Matchers.set?(endpoint)
         | 
| 18 | 
            -
                    if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 13 | 
            +
                  if Aws::Endpoints::Matchers.set?(parameters.endpoint)
         | 
| 14 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
         | 
| 19 15 | 
             
                      raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
         | 
| 20 16 | 
             
                    end
         | 
| 21 | 
            -
                    if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 17 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 22 18 | 
             
                      raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
         | 
| 23 19 | 
             
                    end
         | 
| 24 | 
            -
                    return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
         | 
| 20 | 
            +
                    return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
         | 
| 25 21 | 
             
                  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)
         | 
| 22 | 
            +
                  if Aws::Endpoints::Matchers.set?(parameters.region)
         | 
| 23 | 
            +
                    if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
         | 
| 24 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 29 25 | 
             
                        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 | 
            -
                           | 
| 31 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.api.aws", headers: {}, properties: {})
         | 
| 32 | 
            -
                          end
         | 
| 33 | 
            -
                          if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
         | 
| 34 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.api.aws", headers: {}, properties: {})
         | 
| 35 | 
            -
                          end
         | 
| 36 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 26 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 37 27 | 
             
                        end
         | 
| 38 28 | 
             
                        raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
         | 
| 39 29 | 
             
                      end
         | 
| 40 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 30 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
         | 
| 41 31 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
         | 
| 42 32 | 
             
                          if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
         | 
| 43 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.amazonaws.com", headers: {}, properties: {})
         | 
| 33 | 
            +
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
         | 
| 44 34 | 
             
                          end
         | 
| 45 35 | 
             
                          if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
         | 
| 46 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.amazonaws.com", headers: {}, properties: {})
         | 
| 36 | 
            +
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
         | 
| 47 37 | 
             
                          end
         | 
| 48 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 38 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 49 39 | 
             
                        end
         | 
| 50 40 | 
             
                        raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
         | 
| 51 41 | 
             
                      end
         | 
| 52 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 42 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 53 43 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 54 | 
            -
                           | 
| 55 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr.#{region}.api.aws", headers: {}, properties: {})
         | 
| 56 | 
            -
                          end
         | 
| 57 | 
            -
                          if Aws::Endpoints::Matchers.string_equals?("aws-cn", Aws::Endpoints::Matchers.attr(partition_result, "name"))
         | 
| 58 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
         | 
| 59 | 
            -
                          end
         | 
| 60 | 
            -
                          if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
         | 
| 61 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://ecr.#{region}.api.aws", headers: {}, properties: {})
         | 
| 62 | 
            -
                          end
         | 
| 63 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 44 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 64 45 | 
             
                        end
         | 
| 65 46 | 
             
                        raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
         | 
| 66 47 | 
             
                      end
         | 
| 67 | 
            -
                      return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 48 | 
            +
                      return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 68 49 | 
             
                    end
         | 
| 69 50 | 
             
                  end
         | 
| 70 51 | 
             
                  raise ArgumentError, "Invalid Configuration: Missing Region"
         | 
    
        data/lib/aws-sdk-ecr.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-ecr
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.95.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: 2025- | 
| 11 | 
            +
            date: 2025-02-06 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-core
         |