aws-sdk-apigateway 1.101.0 → 1.107.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 +30 -0
 - data/VERSION +1 -1
 - data/lib/aws-sdk-apigateway/client.rb +35 -8
 - data/lib/aws-sdk-apigateway/client_api.rb +1 -0
 - data/lib/aws-sdk-apigateway/endpoints.rb +120 -480
 - data/lib/aws-sdk-apigateway/plugins/endpoints.rb +18 -6
 - data/lib/aws-sdk-apigateway/types.rb +3 -1
 - data/lib/aws-sdk-apigateway.rb +15 -11
 - data/sig/client.rbs +2 -0
 - data/sig/resource.rbs +2 -0
 - metadata +4 -4
 
| 
         @@ -15,11 +15,11 @@ module Aws::APIGateway 
     | 
|
| 
       15 
15 
     | 
    
         
             
                    :endpoint_provider,
         
     | 
| 
       16 
16 
     | 
    
         
             
                    doc_type: 'Aws::APIGateway::EndpointProvider',
         
     | 
| 
       17 
17 
     | 
    
         
             
                    rbs_type: 'untyped',
         
     | 
| 
       18 
     | 
    
         
            -
                    docstring:  
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
      
 18 
     | 
    
         
            +
                    docstring: <<~DOCS) do |_cfg|
         
     | 
| 
      
 19 
     | 
    
         
            +
            The endpoint provider used to resolve endpoints. Any object that responds to
         
     | 
| 
      
 20 
     | 
    
         
            +
            `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
         
     | 
| 
      
 21 
     | 
    
         
            +
            `Aws::APIGateway::EndpointParameters`.
         
     | 
| 
      
 22 
     | 
    
         
            +
                    DOCS
         
     | 
| 
       23 
23 
     | 
    
         
             
                    Aws::APIGateway::EndpointProvider.new
         
     | 
| 
       24 
24 
     | 
    
         
             
                  end
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
         @@ -40,11 +40,23 @@ module Aws::APIGateway 
     | 
|
| 
       40 
40 
     | 
    
         
             
                      context[:auth_scheme] =
         
     | 
| 
       41 
41 
     | 
    
         
             
                        Aws::Endpoints.resolve_auth_scheme(context, endpoint)
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
       43 
     | 
    
         
            -
                      @handler.call(context)
         
     | 
| 
      
 43 
     | 
    
         
            +
                      with_metrics(context) { @handler.call(context) }
         
     | 
| 
       44 
44 
     | 
    
         
             
                    end
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
                    private
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
      
 48 
     | 
    
         
            +
                    def with_metrics(context, &block)
         
     | 
| 
      
 49 
     | 
    
         
            +
                      metrics = []
         
     | 
| 
      
 50 
     | 
    
         
            +
                      metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
         
     | 
| 
      
 51 
     | 
    
         
            +
                      if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
         
     | 
| 
      
 52 
     | 
    
         
            +
                        metrics << 'SIGV4A_SIGNING'
         
     | 
| 
      
 53 
     | 
    
         
            +
                      end
         
     | 
| 
      
 54 
     | 
    
         
            +
                      if context.config.credentials&.credentials&.account_id
         
     | 
| 
      
 55 
     | 
    
         
            +
                        metrics << 'RESOLVED_ACCOUNT_ID'
         
     | 
| 
      
 56 
     | 
    
         
            +
                      end
         
     | 
| 
      
 57 
     | 
    
         
            +
                      Aws::Plugins::UserAgent.metric(*metrics, &block)
         
     | 
| 
      
 58 
     | 
    
         
            +
                    end
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
       48 
60 
     | 
    
         
             
                    def apply_endpoint_headers(context, headers)
         
     | 
| 
       49 
61 
     | 
    
         
             
                      headers.each do |key, values|
         
     | 
| 
       50 
62 
     | 
    
         
             
                        value = values
         
     | 
| 
         @@ -1845,7 +1845,8 @@ module Aws::APIGateway 
     | 
|
| 
       1845 
1845 
     | 
    
         
             
                #
         
     | 
| 
       1846 
1846 
     | 
    
         
             
                # @!attribute [rw] certificate_upload_date
         
     | 
| 
       1847 
1847 
     | 
    
         
             
                #   The timestamp when the certificate that was used by edge-optimized
         
     | 
| 
       1848 
     | 
    
         
            -
                #   endpoint for this domain name was uploaded.
         
     | 
| 
      
 1848 
     | 
    
         
            +
                #   endpoint for this domain name was uploaded. API Gateway doesn't
         
     | 
| 
      
 1849 
     | 
    
         
            +
                #   change this value if you update the certificate.
         
     | 
| 
       1849 
1850 
     | 
    
         
             
                #   @return [Time]
         
     | 
| 
       1850 
1851 
     | 
    
         
             
                #
         
     | 
| 
       1851 
1852 
     | 
    
         
             
                # @!attribute [rw] regional_domain_name
         
     | 
| 
         @@ -6007,3 +6008,4 @@ module Aws::APIGateway 
     | 
|
| 
       6007 
6008 
     | 
    
         | 
| 
       6008 
6009 
     | 
    
         
             
              end
         
     | 
| 
       6009 
6010 
     | 
    
         
             
            end
         
     | 
| 
      
 6011 
     | 
    
         
            +
             
     | 
    
        data/lib/aws-sdk-apigateway.rb
    CHANGED
    
    | 
         @@ -11,16 +11,7 @@ 
     | 
|
| 
       11 
11 
     | 
    
         
             
            require 'aws-sdk-core'
         
     | 
| 
       12 
12 
     | 
    
         
             
            require 'aws-sigv4'
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/client_api'
         
     | 
| 
       16 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/plugins/endpoints.rb'
         
     | 
| 
       17 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/client'
         
     | 
| 
       18 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/errors'
         
     | 
| 
       19 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/resource'
         
     | 
| 
       20 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/endpoint_parameters'
         
     | 
| 
       21 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/endpoint_provider'
         
     | 
| 
       22 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/endpoints'
         
     | 
| 
       23 
     | 
    
         
            -
            require_relative 'aws-sdk-apigateway/customizations'
         
     | 
| 
      
 14 
     | 
    
         
            +
            Aws::Plugins::GlobalConfiguration.add_identifier(:apigateway)
         
     | 
| 
       24 
15 
     | 
    
         | 
| 
       25 
16 
     | 
    
         
             
            # This module provides support for Amazon API Gateway. This module is available in the
         
     | 
| 
       26 
17 
     | 
    
         
             
            # `aws-sdk-apigateway` gem.
         
     | 
| 
         @@ -51,7 +42,20 @@ require_relative 'aws-sdk-apigateway/customizations' 
     | 
|
| 
       51 
42 
     | 
    
         
             
            #
         
     | 
| 
       52 
43 
     | 
    
         
             
            # @!group service
         
     | 
| 
       53 
44 
     | 
    
         
             
            module Aws::APIGateway
         
     | 
| 
      
 45 
     | 
    
         
            +
              autoload :Types, 'aws-sdk-apigateway/types'
         
     | 
| 
      
 46 
     | 
    
         
            +
              autoload :ClientApi, 'aws-sdk-apigateway/client_api'
         
     | 
| 
      
 47 
     | 
    
         
            +
              module Plugins
         
     | 
| 
      
 48 
     | 
    
         
            +
                autoload :Endpoints, 'aws-sdk-apigateway/plugins/endpoints.rb'
         
     | 
| 
      
 49 
     | 
    
         
            +
              end
         
     | 
| 
      
 50 
     | 
    
         
            +
              autoload :Client, 'aws-sdk-apigateway/client'
         
     | 
| 
      
 51 
     | 
    
         
            +
              autoload :Errors, 'aws-sdk-apigateway/errors'
         
     | 
| 
      
 52 
     | 
    
         
            +
              autoload :Resource, 'aws-sdk-apigateway/resource'
         
     | 
| 
      
 53 
     | 
    
         
            +
              autoload :EndpointParameters, 'aws-sdk-apigateway/endpoint_parameters'
         
     | 
| 
      
 54 
     | 
    
         
            +
              autoload :EndpointProvider, 'aws-sdk-apigateway/endpoint_provider'
         
     | 
| 
      
 55 
     | 
    
         
            +
              autoload :Endpoints, 'aws-sdk-apigateway/endpoints'
         
     | 
| 
       54 
56 
     | 
    
         | 
| 
       55 
     | 
    
         
            -
              GEM_VERSION = '1. 
     | 
| 
      
 57 
     | 
    
         
            +
              GEM_VERSION = '1.107.0'
         
     | 
| 
       56 
58 
     | 
    
         | 
| 
       57 
59 
     | 
    
         
             
            end
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
            require_relative 'aws-sdk-apigateway/customizations'
         
     | 
    
        data/sig/client.rbs
    CHANGED
    
    | 
         @@ -15,6 +15,7 @@ module Aws 
     | 
|
| 
       15 
15 
     | 
    
         
             
                                  ?credentials: untyped,
         
     | 
| 
       16 
16 
     | 
    
         
             
                                  ?region: String,
         
     | 
| 
       17 
17 
     | 
    
         
             
                                  ?access_key_id: String,
         
     | 
| 
      
 18 
     | 
    
         
            +
                                  ?account_id: String,
         
     | 
| 
       18 
19 
     | 
    
         
             
                                  ?active_endpoint_cache: bool,
         
     | 
| 
       19 
20 
     | 
    
         
             
                                  ?adaptive_retry_wait_to_fill: bool,
         
     | 
| 
       20 
21 
     | 
    
         
             
                                  ?client_side_monitoring: bool,
         
     | 
| 
         @@ -50,6 +51,7 @@ module Aws 
     | 
|
| 
       50 
51 
     | 
    
         
             
                                  ?session_token: String,
         
     | 
| 
       51 
52 
     | 
    
         
             
                                  ?sigv4a_signing_region_set: Array[String],
         
     | 
| 
       52 
53 
     | 
    
         
             
                                  ?stub_responses: untyped,
         
     | 
| 
      
 54 
     | 
    
         
            +
                                  ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
         
     | 
| 
       53 
55 
     | 
    
         
             
                                  ?token_provider: untyped,
         
     | 
| 
       54 
56 
     | 
    
         
             
                                  ?use_dualstack_endpoint: bool,
         
     | 
| 
       55 
57 
     | 
    
         
             
                                  ?use_fips_endpoint: bool,
         
     | 
    
        data/sig/resource.rbs
    CHANGED
    
    | 
         @@ -15,6 +15,7 @@ module Aws 
     | 
|
| 
       15 
15 
     | 
    
         
             
                                    ?credentials: untyped,
         
     | 
| 
       16 
16 
     | 
    
         
             
                                    ?region: String,
         
     | 
| 
       17 
17 
     | 
    
         
             
                                    ?access_key_id: String,
         
     | 
| 
      
 18 
     | 
    
         
            +
                                    ?account_id: String,
         
     | 
| 
       18 
19 
     | 
    
         
             
                                    ?active_endpoint_cache: bool,
         
     | 
| 
       19 
20 
     | 
    
         
             
                                    ?adaptive_retry_wait_to_fill: bool,
         
     | 
| 
       20 
21 
     | 
    
         
             
                                    ?client_side_monitoring: bool,
         
     | 
| 
         @@ -50,6 +51,7 @@ module Aws 
     | 
|
| 
       50 
51 
     | 
    
         
             
                                    ?session_token: String,
         
     | 
| 
       51 
52 
     | 
    
         
             
                                    ?sigv4a_signing_region_set: Array[String],
         
     | 
| 
       52 
53 
     | 
    
         
             
                                    ?stub_responses: untyped,
         
     | 
| 
      
 54 
     | 
    
         
            +
                                    ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
         
     | 
| 
       53 
55 
     | 
    
         
             
                                    ?token_provider: untyped,
         
     | 
| 
       54 
56 
     | 
    
         
             
                                    ?use_dualstack_endpoint: bool,
         
     | 
| 
       55 
57 
     | 
    
         
             
                                    ?use_fips_endpoint: bool,
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: aws-sdk-apigateway
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.107.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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-09-24 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. 
     | 
| 
      
 22 
     | 
    
         
            +
                    version: 3.207.0
         
     | 
| 
       23 
23 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       24 
24 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       25 
25 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -29,7 +29,7 @@ dependencies: 
     | 
|
| 
       29 
29 
     | 
    
         
             
                    version: '3'
         
     | 
| 
       30 
30 
     | 
    
         
             
                - - ">="
         
     | 
| 
       31 
31 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       32 
     | 
    
         
            -
                    version: 3. 
     | 
| 
      
 32 
     | 
    
         
            +
                    version: 3.207.0
         
     | 
| 
       33 
33 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       34 
34 
     | 
    
         
             
              name: aws-sigv4
         
     | 
| 
       35 
35 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |