Class: Aws::EKSAuth::EndpointParameters

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/endpoint_parameters.rb

Overview

Endpoint parameters used to influence endpoints per request.

Constant Summary collapse

PARAM_MAP =
{
  'Region' => :region,
  'UseFIPS' => :use_fips,
  'Endpoint' => :endpoint,
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ EndpointParameters

Returns a new instance of EndpointParameters.



44
45
46
47
48
49
50
51
52
# File 'gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/endpoint_parameters.rb', line 44

def initialize(options = {})
  self[:region] = options[:region]
  self[:use_fips] = options[:use_fips]
  self[:use_fips] = false if self[:use_fips].nil?
  if self[:use_fips].nil?
    raise ArgumentError, "Missing required EndpointParameter: :use_fips"
  end
  self[:endpoint] = options[:endpoint]
end

Instance Attribute Details

#endpointString

Override the endpoint used to send this request

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/endpoint_parameters.rb', line 28

EndpointParameters = Struct.new(
  :region,
  :use_fips,
  :endpoint,
) do
  include Aws::Structure

  # @api private
  class << self
    PARAM_MAP = {
      'Region' => :region,
      'UseFIPS' => :use_fips,
      'Endpoint' => :endpoint,
    }.freeze
  end

  def initialize(options = {})
    self[:region] = options[:region]
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    if self[:use_fips].nil?
      raise ArgumentError, "Missing required EndpointParameter: :use_fips"
    end
    self[:endpoint] = options[:endpoint]
  end
end

#regionString

The AWS region used to dispatch the request.

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/endpoint_parameters.rb', line 28

EndpointParameters = Struct.new(
  :region,
  :use_fips,
  :endpoint,
) do
  include Aws::Structure

  # @api private
  class << self
    PARAM_MAP = {
      'Region' => :region,
      'UseFIPS' => :use_fips,
      'Endpoint' => :endpoint,
    }.freeze
  end

  def initialize(options = {})
    self[:region] = options[:region]
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    if self[:use_fips].nil?
      raise ArgumentError, "Missing required EndpointParameter: :use_fips"
    end
    self[:endpoint] = options[:endpoint]
  end
end

#use_fipsBoolean

When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.

Returns:

  • (Boolean)


28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'gems/aws-sdk-eksauth/lib/aws-sdk-eksauth/endpoint_parameters.rb', line 28

EndpointParameters = Struct.new(
  :region,
  :use_fips,
  :endpoint,
) do
  include Aws::Structure

  # @api private
  class << self
    PARAM_MAP = {
      'Region' => :region,
      'UseFIPS' => :use_fips,
      'Endpoint' => :endpoint,
    }.freeze
  end

  def initialize(options = {})
    self[:region] = options[:region]
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    if self[:use_fips].nil?
      raise ArgumentError, "Missing required EndpointParameter: :use_fips"
    end
    self[:endpoint] = options[:endpoint]
  end
end