Class: Aws::Plugins::RegionalEndpoint Private
- Inherits:
- 
      Seahorse::Client::Plugin
      
        - Object
- Seahorse::Client::Plugin
- Aws::Plugins::RegionalEndpoint
 
- Defined in:
- lib/aws-sdk-core/plugins/regional_endpoint.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 Method Summary collapse
Methods inherited from Seahorse::Client::Plugin
#add_handlers, #add_options, after_initialize, after_initialize_hooks, #before_initialize, before_initialize, before_initialize_hooks, handlers, literal, option, options
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response, #handler_for, #new_handler
Instance Method Details
#after_initialize(client) ⇒ 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.
| 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | # File 'lib/aws-sdk-core/plugins/regional_endpoint.rb', line 82 def after_initialize(client) region = client.config.region raise Errors::MissingRegionError if region.nil? || region == '' # resolve a default endpoint to preserve legacy behavior initialize_default_endpoint(client) if client.config.endpoint.nil? region_set = client.config.sigv4a_signing_region_set return if region_set.nil? raise Errors::InvalidRegionSetError unless region_set.is_a?(Array) region_set = region_set.compact.reject(&:empty?) raise Errors::InvalidRegionSetError if region_set.empty? client.config.sigv4a_signing_region_set = region_set end |