Class: Aws::Plugins::EndpointDiscovery::Handler Private
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Aws::Plugins::EndpointDiscovery::Handler
- Defined in:
- lib/aws-sdk-core/plugins/endpoint_discovery.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Handler
Instance Method Summary collapse
- #call(context) ⇒ Object private
Methods inherited from Seahorse::Client::Handler
Constructor Details
This class inherits a constructor from Seahorse::Client::Handler
Instance Method Details
#call(context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/aws-sdk-core/plugins/endpoint_discovery.rb', line 66 def call(context) if context.operation.endpoint_operation context.http_request.headers['x-amz-api-version'] = context.config.api.version _apply_endpoint_discovery_user_agent(context) elsif discovery_cfg = context.operation.endpoint_discovery endpoint = _discover_endpoint( context, Aws::Util.str_2_bool(discovery_cfg["required"]) ) if endpoint context.http_request.endpoint = _valid_uri(endpoint.address) # Skips dynamic endpoint usage, use this endpoint instead context[:discovered_endpoint] = true end if endpoint || context.config.endpoint_discovery _apply_endpoint_discovery_user_agent(context) end end @handler.call(context) end |