Class: Aws::AgentRegistry::EndpointParameters
- Inherits:
-
Struct
- Object
- Struct
- Aws::AgentRegistry::EndpointParameters
- Defined in:
- gems/aws-sdk-agentregistry/lib/aws-sdk-agentregistry/endpoint_parameters.rb
Overview
Endpoint parameters used to influence endpoints per request.
Constant Summary collapse
- PARAM_MAP =
{ 'Region' => :region, 'Endpoint' => :endpoint, }.freeze
Instance Attribute Summary collapse
-
#endpoint ⇒ String
Override the endpoint used to send requests.
-
#region ⇒ String
The AWS region of the service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EndpointParameters
constructor
A new instance of EndpointParameters.
Constructor Details
#initialize(options = {}) ⇒ EndpointParameters
Returns a new instance of EndpointParameters.
37 38 39 40 |
# File 'gems/aws-sdk-agentregistry/lib/aws-sdk-agentregistry/endpoint_parameters.rb', line 37 def initialize( = {}) self[:region] = [:region] self[:endpoint] = [:endpoint] end |
Instance Attribute Details
#endpoint ⇒ String
Override the endpoint used to send requests.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'gems/aws-sdk-agentregistry/lib/aws-sdk-agentregistry/endpoint_parameters.rb', line 23 EndpointParameters = Struct.new( :region, :endpoint, ) do include Aws::Structure # @api private class << self PARAM_MAP = { 'Region' => :region, 'Endpoint' => :endpoint, }.freeze end def initialize( = {}) self[:region] = [:region] self[:endpoint] = [:endpoint] end def self.create(config, ={}) new({ region: config.region, endpoint: (config.endpoint.to_s unless config.regional_endpoint), }.merge()) end end |
#region ⇒ String
The AWS region of the service.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'gems/aws-sdk-agentregistry/lib/aws-sdk-agentregistry/endpoint_parameters.rb', line 23 EndpointParameters = Struct.new( :region, :endpoint, ) do include Aws::Structure # @api private class << self PARAM_MAP = { 'Region' => :region, 'Endpoint' => :endpoint, }.freeze end def initialize( = {}) self[:region] = [:region] self[:endpoint] = [:endpoint] end def self.create(config, ={}) new({ region: config.region, endpoint: (config.endpoint.to_s unless config.regional_endpoint), }.merge()) end end |
Class Method Details
.create(config, options = {}) ⇒ Object
42 43 44 45 46 47 |
# File 'gems/aws-sdk-agentregistry/lib/aws-sdk-agentregistry/endpoint_parameters.rb', line 42 def self.create(config, ={}) new({ region: config.region, endpoint: (config.endpoint.to_s unless config.regional_endpoint), }.merge()) end |