Class: Aws::S3Tables::EndpointParameters

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

Overview

Endpoint parameters used to influence endpoints per request.

Constant Summary collapse

PARAM_MAP =
{
  'UseDualStack' => :use_dual_stack,
  'UseFIPS' => :use_fips,
  'Endpoint' => :endpoint,
  'Region' => :region,
  'IsPutRowsEndpoint' => :is_put_rows_endpoint,
  'TableResourceArn' => :table_resource_arn,
}.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ EndpointParameters

Returns a new instance of EndpointParameters.



65
66
67
68
69
70
71
72
73
74
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 65

def initialize(options = {})
  self[:use_dual_stack] = options[:use_dual_stack]
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
  self[:use_fips] = options[:use_fips]
  self[:use_fips] = false if self[:use_fips].nil?
  self[:endpoint] = options[:endpoint]
  self[:region] = options[:region]
  self[:is_put_rows_endpoint] = options[:is_put_rows_endpoint]
  self[:table_resource_arn] = options[:table_resource_arn]
end

Instance Attribute Details

#endpoint ⇒ string

Override the endpoint used to send this request

Returns:

  • (string)


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 43

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

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

  def initialize(options = {})
    self[:use_dual_stack] = options[:use_dual_stack]
    self[:use_dual_stack] = false if self[:use_dual_stack].nil?
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    self[:endpoint] = options[:endpoint]
    self[:region] = options[:region]
    self[:is_put_rows_endpoint] = options[:is_put_rows_endpoint]
    self[:table_resource_arn] = options[:table_resource_arn]
  end

  def self.create(config, options={})
    new({
      use_dual_stack: config.use_dualstack_endpoint,
      use_fips: config.use_fips_endpoint,
      endpoint: (config.endpoint.to_s unless config.regional_endpoint),
      region: config.region,
    }.merge(options))
  end
end

#is_put_rows_endpoint ⇒ boolean

Set by the operations that the S3 Tables data plane serves, such as PutRows, to select the data-plane endpoint. Left unset by every other operation.

Returns:

  • (boolean)


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 43

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

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

  def initialize(options = {})
    self[:use_dual_stack] = options[:use_dual_stack]
    self[:use_dual_stack] = false if self[:use_dual_stack].nil?
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    self[:endpoint] = options[:endpoint]
    self[:region] = options[:region]
    self[:is_put_rows_endpoint] = options[:is_put_rows_endpoint]
    self[:table_resource_arn] = options[:table_resource_arn]
  end

  def self.create(config, options={})
    new({
      use_dual_stack: config.use_dualstack_endpoint,
      use_fips: config.use_fips_endpoint,
      endpoint: (config.endpoint.to_s unless config.regional_endpoint),
      region: config.region,
    }.merge(options))
  end
end

#region ⇒ string

The AWS region used to dispatch the request.

Returns:

  • (string)


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 43

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

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

  def initialize(options = {})
    self[:use_dual_stack] = options[:use_dual_stack]
    self[:use_dual_stack] = false if self[:use_dual_stack].nil?
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    self[:endpoint] = options[:endpoint]
    self[:region] = options[:region]
    self[:is_put_rows_endpoint] = options[:is_put_rows_endpoint]
    self[:table_resource_arn] = options[:table_resource_arn]
  end

  def self.create(config, options={})
    new({
      use_dual_stack: config.use_dualstack_endpoint,
      use_fips: config.use_fips_endpoint,
      endpoint: (config.endpoint.to_s unless config.regional_endpoint),
      region: config.region,
    }.merge(options))
  end
end

#table_resource_arn ⇒ string

The ARN of the table that the request addresses. Its account ID becomes the first label of the data-plane hostname.

Returns:

  • (string)


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 43

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

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

  def initialize(options = {})
    self[:use_dual_stack] = options[:use_dual_stack]
    self[:use_dual_stack] = false if self[:use_dual_stack].nil?
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    self[:endpoint] = options[:endpoint]
    self[:region] = options[:region]
    self[:is_put_rows_endpoint] = options[:is_put_rows_endpoint]
    self[:table_resource_arn] = options[:table_resource_arn]
  end

  def self.create(config, options={})
    new({
      use_dual_stack: config.use_dualstack_endpoint,
      use_fips: config.use_fips_endpoint,
      endpoint: (config.endpoint.to_s unless config.regional_endpoint),
      region: config.region,
    }.merge(options))
  end
end

#use_dual_stack ⇒ boolean

When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.

Returns:

  • (boolean)


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 43

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

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

  def initialize(options = {})
    self[:use_dual_stack] = options[:use_dual_stack]
    self[:use_dual_stack] = false if self[:use_dual_stack].nil?
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    self[:endpoint] = options[:endpoint]
    self[:region] = options[:region]
    self[:is_put_rows_endpoint] = options[:is_put_rows_endpoint]
    self[:table_resource_arn] = options[:table_resource_arn]
  end

  def self.create(config, options={})
    new({
      use_dual_stack: config.use_dualstack_endpoint,
      use_fips: config.use_fips_endpoint,
      endpoint: (config.endpoint.to_s unless config.regional_endpoint),
      region: config.region,
    }.merge(options))
  end
end

#use_fips ⇒ boolean

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)


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 43

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

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

  def initialize(options = {})
    self[:use_dual_stack] = options[:use_dual_stack]
    self[:use_dual_stack] = false if self[:use_dual_stack].nil?
    self[:use_fips] = options[:use_fips]
    self[:use_fips] = false if self[:use_fips].nil?
    self[:endpoint] = options[:endpoint]
    self[:region] = options[:region]
    self[:is_put_rows_endpoint] = options[:is_put_rows_endpoint]
    self[:table_resource_arn] = options[:table_resource_arn]
  end

  def self.create(config, options={})
    new({
      use_dual_stack: config.use_dualstack_endpoint,
      use_fips: config.use_fips_endpoint,
      endpoint: (config.endpoint.to_s unless config.regional_endpoint),
      region: config.region,
    }.merge(options))
  end
end

Class Method Details

.create(config, options = {}) ⇒ Object



76
77
78
79
80
81
82
83
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/endpoint_parameters.rb', line 76

def self.create(config, options={})
  new({
    use_dual_stack: config.use_dualstack_endpoint,
    use_fips: config.use_fips_endpoint,
    endpoint: (config.endpoint.to_s unless config.regional_endpoint),
    region: config.region,
  }.merge(options))
end