aws-sdk-timestreamwrite 1.14.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f90484df952db46adb3408325b5b2b1b7a1e53ee52724104e67fc73ee42b5fa
4
- data.tar.gz: 445988dd23287490f0a3063654db5476a8640a8a6ab9394ee5823a262686feb1
3
+ metadata.gz: 533d244536b4849c1f70f990ebcb131d14ffba6bcfb5be44a0ee4b6af4033c05
4
+ data.tar.gz: d8a3a9565744e2fbb86629c5be97bf9a88f150cf57ef2c4ee3648c1b566d87d8
5
5
  SHA512:
6
- metadata.gz: 8e4b47a23f092686a69309d4766a503300be3c69ba37aaca4d2eb1b9d10a9fb1cfaa70cbd793fc13d21c06782a9c2ad35617f24973a04c3c92d47139fa88cfb4
7
- data.tar.gz: 77d8a231a462d79b971bcafad4c71cae337e1dc3c37f972158b765399e52749ccec4d3b865206796bfcf53e974c217421bc3c3a1d80699b566e0c716a68064e1
6
+ metadata.gz: 6565ada6da2f67162fac839376bde5d1588e93b4ab2919e3b126382be143a2b3b7b453b8fceda3a3209698befee5845c51ccb35feb0dd8c389ee95ae9522f310
7
+ data.tar.gz: c3316d33266829587cdb5c0b8e5196f28003ca198902301fb30664ba62bddca37229e8cd6b2469395982c98bb5ed3fc952baa082656dd99b8ca2ddcd643f3e2d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.15.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.14.0 (2022-02-24)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.16.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:timestreamwrite)
@@ -79,8 +79,9 @@ module Aws::TimestreamWrite
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::TimestreamWrite::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::TimestreamWrite
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::TimestreamWrite
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::TimestreamWrite::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::TimestreamWrite::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -1226,7 +1243,7 @@ module Aws::TimestreamWrite
1226
1243
  params: params,
1227
1244
  config: config)
1228
1245
  context[:gem_name] = 'aws-sdk-timestreamwrite'
1229
- context[:gem_version] = '1.14.0'
1246
+ context[:gem_version] = '1.16.0'
1230
1247
  Seahorse::Client::Request.new(handlers, context)
1231
1248
  end
1232
1249
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::TimestreamWrite
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # 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.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::TimestreamWrite
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://ingest.timestream-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://ingest.timestream-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://ingest.timestream.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://ingest.timestream.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,225 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::TimestreamWrite
12
+ module Endpoints
13
+
14
+ class CreateDatabase
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::TimestreamWrite::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CreateTable
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::TimestreamWrite::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DeleteDatabase
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::TimestreamWrite::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DeleteTable
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::TimestreamWrite::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DescribeDatabase
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::TimestreamWrite::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DescribeEndpoints
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::TimestreamWrite::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class DescribeTable
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::TimestreamWrite::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class ListDatabases
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::TimestreamWrite::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class ListTables
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::TimestreamWrite::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class ListTagsForResource
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::TimestreamWrite::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class TagResource
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::TimestreamWrite::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class UntagResource
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::TimestreamWrite::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class UpdateDatabase
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::TimestreamWrite::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class UpdateTable
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::TimestreamWrite::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class WriteRecords
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::TimestreamWrite::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ end
225
+ end
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::TimestreamWrite
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::TimestreamWrite::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::TimestreamWrite::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::TimestreamWrite::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_database
60
+ Aws::TimestreamWrite::Endpoints::CreateDatabase.build(context)
61
+ when :create_table
62
+ Aws::TimestreamWrite::Endpoints::CreateTable.build(context)
63
+ when :delete_database
64
+ Aws::TimestreamWrite::Endpoints::DeleteDatabase.build(context)
65
+ when :delete_table
66
+ Aws::TimestreamWrite::Endpoints::DeleteTable.build(context)
67
+ when :describe_database
68
+ Aws::TimestreamWrite::Endpoints::DescribeDatabase.build(context)
69
+ when :describe_endpoints
70
+ Aws::TimestreamWrite::Endpoints::DescribeEndpoints.build(context)
71
+ when :describe_table
72
+ Aws::TimestreamWrite::Endpoints::DescribeTable.build(context)
73
+ when :list_databases
74
+ Aws::TimestreamWrite::Endpoints::ListDatabases.build(context)
75
+ when :list_tables
76
+ Aws::TimestreamWrite::Endpoints::ListTables.build(context)
77
+ when :list_tags_for_resource
78
+ Aws::TimestreamWrite::Endpoints::ListTagsForResource.build(context)
79
+ when :tag_resource
80
+ Aws::TimestreamWrite::Endpoints::TagResource.build(context)
81
+ when :untag_resource
82
+ Aws::TimestreamWrite::Endpoints::UntagResource.build(context)
83
+ when :update_database
84
+ Aws::TimestreamWrite::Endpoints::UpdateDatabase.build(context)
85
+ when :update_table
86
+ Aws::TimestreamWrite::Endpoints::UpdateTable.build(context)
87
+ when :write_records
88
+ Aws::TimestreamWrite::Endpoints::WriteRecords.build(context)
89
+ end
90
+ end
91
+ end
92
+
93
+ def add_handlers(handlers, _config)
94
+ handlers.add(Handler, step: :build, priority: 75)
95
+ end
96
+ end
97
+ end
98
+ end
@@ -37,20 +37,6 @@ module Aws::TimestreamWrite
37
37
  include Aws::Structure
38
38
  end
39
39
 
40
- # @note When making an API call, you may pass CreateDatabaseRequest
41
- # data as a hash:
42
- #
43
- # {
44
- # database_name: "ResourceCreateAPIName", # required
45
- # kms_key_id: "StringValue2048",
46
- # tags: [
47
- # {
48
- # key: "TagKey", # required
49
- # value: "TagValue", # required
50
- # },
51
- # ],
52
- # }
53
- #
54
40
  # @!attribute [rw] database_name
55
41
  # The name of the Timestream database.
56
42
  # @return [String]
@@ -92,35 +78,6 @@ module Aws::TimestreamWrite
92
78
  include Aws::Structure
93
79
  end
94
80
 
95
- # @note When making an API call, you may pass CreateTableRequest
96
- # data as a hash:
97
- #
98
- # {
99
- # database_name: "ResourceCreateAPIName", # required
100
- # table_name: "ResourceCreateAPIName", # required
101
- # retention_properties: {
102
- # memory_store_retention_period_in_hours: 1, # required
103
- # magnetic_store_retention_period_in_days: 1, # required
104
- # },
105
- # tags: [
106
- # {
107
- # key: "TagKey", # required
108
- # value: "TagValue", # required
109
- # },
110
- # ],
111
- # magnetic_store_write_properties: {
112
- # enable_magnetic_store_writes: false, # required
113
- # magnetic_store_rejected_data_location: {
114
- # s3_configuration: {
115
- # bucket_name: "S3BucketName",
116
- # object_key_prefix: "S3ObjectKeyPrefix",
117
- # encryption_option: "SSE_S3", # accepts SSE_S3, SSE_KMS
118
- # kms_key_id: "StringValue2048",
119
- # },
120
- # },
121
- # },
122
- # }
123
- #
124
81
  # @!attribute [rw] database_name
125
82
  # The name of the Timestream database.
126
83
  # @return [String]
@@ -210,13 +167,6 @@ module Aws::TimestreamWrite
210
167
  include Aws::Structure
211
168
  end
212
169
 
213
- # @note When making an API call, you may pass DeleteDatabaseRequest
214
- # data as a hash:
215
- #
216
- # {
217
- # database_name: "ResourceName", # required
218
- # }
219
- #
220
170
  # @!attribute [rw] database_name
221
171
  # The name of the Timestream database to be deleted.
222
172
  # @return [String]
@@ -229,14 +179,6 @@ module Aws::TimestreamWrite
229
179
  include Aws::Structure
230
180
  end
231
181
 
232
- # @note When making an API call, you may pass DeleteTableRequest
233
- # data as a hash:
234
- #
235
- # {
236
- # database_name: "ResourceName", # required
237
- # table_name: "ResourceName", # required
238
- # }
239
- #
240
182
  # @!attribute [rw] database_name
241
183
  # The name of the database where the Timestream database is to be
242
184
  # deleted.
@@ -255,13 +197,6 @@ module Aws::TimestreamWrite
255
197
  include Aws::Structure
256
198
  end
257
199
 
258
- # @note When making an API call, you may pass DescribeDatabaseRequest
259
- # data as a hash:
260
- #
261
- # {
262
- # database_name: "ResourceName", # required
263
- # }
264
- #
265
200
  # @!attribute [rw] database_name
266
201
  # The name of the Timestream database.
267
202
  # @return [String]
@@ -305,14 +240,6 @@ module Aws::TimestreamWrite
305
240
  include Aws::Structure
306
241
  end
307
242
 
308
- # @note When making an API call, you may pass DescribeTableRequest
309
- # data as a hash:
310
- #
311
- # {
312
- # database_name: "ResourceName", # required
313
- # table_name: "ResourceName", # required
314
- # }
315
- #
316
243
  # @!attribute [rw] database_name
317
244
  # The name of the Timestream database.
318
245
  # @return [String]
@@ -346,15 +273,6 @@ module Aws::TimestreamWrite
346
273
  # example, the name and availability zone of an EC2 instance or the name
347
274
  # of the manufacturer of a wind turbine are dimensions.
348
275
  #
349
- # @note When making an API call, you may pass Dimension
350
- # data as a hash:
351
- #
352
- # {
353
- # name: "SchemaName", # required
354
- # value: "SchemaValue", # required
355
- # dimension_value_type: "VARCHAR", # accepts VARCHAR
356
- # }
357
- #
358
276
  # @!attribute [rw] name
359
277
  # Dimension represents the meta data attributes of the time series.
360
278
  # For example, the name and availability zone of an EC2 instance or
@@ -432,14 +350,6 @@ module Aws::TimestreamWrite
432
350
  include Aws::Structure
433
351
  end
434
352
 
435
- # @note When making an API call, you may pass ListDatabasesRequest
436
- # data as a hash:
437
- #
438
- # {
439
- # next_token: "String",
440
- # max_results: 1,
441
- # }
442
- #
443
353
  # @!attribute [rw] next_token
444
354
  # The pagination token. To resume pagination, provide the NextToken
445
355
  # value as argument of a subsequent API invocation.
@@ -479,15 +389,6 @@ module Aws::TimestreamWrite
479
389
  include Aws::Structure
480
390
  end
481
391
 
482
- # @note When making an API call, you may pass ListTablesRequest
483
- # data as a hash:
484
- #
485
- # {
486
- # database_name: "ResourceName",
487
- # next_token: "String",
488
- # max_results: 1,
489
- # }
490
- #
491
392
  # @!attribute [rw] database_name
492
393
  # The name of the Timestream database.
493
394
  # @return [String]
@@ -532,13 +433,6 @@ module Aws::TimestreamWrite
532
433
  include Aws::Structure
533
434
  end
534
435
 
535
- # @note When making an API call, you may pass ListTagsForResourceRequest
536
- # data as a hash:
537
- #
538
- # {
539
- # resource_arn: "AmazonResourceName", # required
540
- # }
541
- #
542
436
  # @!attribute [rw] resource_arn
543
437
  # The Timestream resource with tags to be listed. This value is an
544
438
  # Amazon Resource Name (ARN).
@@ -567,18 +461,6 @@ module Aws::TimestreamWrite
567
461
  # The location to write error reports for records rejected,
568
462
  # asynchronously, during magnetic store writes.
569
463
  #
570
- # @note When making an API call, you may pass MagneticStoreRejectedDataLocation
571
- # data as a hash:
572
- #
573
- # {
574
- # s3_configuration: {
575
- # bucket_name: "S3BucketName",
576
- # object_key_prefix: "S3ObjectKeyPrefix",
577
- # encryption_option: "SSE_S3", # accepts SSE_S3, SSE_KMS
578
- # kms_key_id: "StringValue2048",
579
- # },
580
- # }
581
- #
582
464
  # @!attribute [rw] s3_configuration
583
465
  # Configuration of an S3 location to write error reports for records
584
466
  # rejected, asynchronously, during magnetic store writes.
@@ -595,21 +477,6 @@ module Aws::TimestreamWrite
595
477
  # The set of properties on a table for configuring magnetic store
596
478
  # writes.
597
479
  #
598
- # @note When making an API call, you may pass MagneticStoreWriteProperties
599
- # data as a hash:
600
- #
601
- # {
602
- # enable_magnetic_store_writes: false, # required
603
- # magnetic_store_rejected_data_location: {
604
- # s3_configuration: {
605
- # bucket_name: "S3BucketName",
606
- # object_key_prefix: "S3ObjectKeyPrefix",
607
- # encryption_option: "SSE_S3", # accepts SSE_S3, SSE_KMS
608
- # kms_key_id: "StringValue2048",
609
- # },
610
- # },
611
- # }
612
- #
613
480
  # @!attribute [rw] enable_magnetic_store_writes
614
481
  # A flag to enable magnetic store writes.
615
482
  # @return [Boolean]
@@ -636,15 +503,6 @@ module Aws::TimestreamWrite
636
503
  # can pass multiple data attributes associated with the same time series
637
504
  # in a single record
638
505
  #
639
- # @note When making an API call, you may pass MeasureValue
640
- # data as a hash:
641
- #
642
- # {
643
- # name: "SchemaName", # required
644
- # value: "StringValue2048", # required
645
- # type: "DOUBLE", # required, accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN, TIMESTAMP, MULTI
646
- # }
647
- #
648
506
  # @!attribute [rw] name
649
507
  # Name of the MeasureValue.
650
508
  #
@@ -694,32 +552,6 @@ module Aws::TimestreamWrite
694
552
  # Timestream defaults to a `Version` of `1` for records without the
695
553
  # `Version` field.
696
554
  #
697
- # @note When making an API call, you may pass Record
698
- # data as a hash:
699
- #
700
- # {
701
- # dimensions: [
702
- # {
703
- # name: "SchemaName", # required
704
- # value: "SchemaValue", # required
705
- # dimension_value_type: "VARCHAR", # accepts VARCHAR
706
- # },
707
- # ],
708
- # measure_name: "SchemaName",
709
- # measure_value: "StringValue2048",
710
- # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN, TIMESTAMP, MULTI
711
- # time: "StringValue256",
712
- # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
713
- # version: 1,
714
- # measure_values: [
715
- # {
716
- # name: "SchemaName", # required
717
- # value: "StringValue2048", # required
718
- # type: "DOUBLE", # required, accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN, TIMESTAMP, MULTI
719
- # },
720
- # ],
721
- # }
722
- #
723
555
  # @!attribute [rw] dimensions
724
556
  # Contains the list of dimensions for time series data points.
725
557
  # @return [Array<Types::Dimension>]
@@ -940,14 +772,6 @@ module Aws::TimestreamWrite
940
772
  # Retention properties contain the duration for which your time series
941
773
  # data must be stored in the magnetic store and the memory store.
942
774
  #
943
- # @note When making an API call, you may pass RetentionProperties
944
- # data as a hash:
945
- #
946
- # {
947
- # memory_store_retention_period_in_hours: 1, # required
948
- # magnetic_store_retention_period_in_days: 1, # required
949
- # }
950
- #
951
775
  # @!attribute [rw] memory_store_retention_period_in_hours
952
776
  # The duration for which data must be stored in the memory store.
953
777
  # @return [Integer]
@@ -967,16 +791,6 @@ module Aws::TimestreamWrite
967
791
 
968
792
  # Configuration specifing an S3 location.
969
793
  #
970
- # @note When making an API call, you may pass S3Configuration
971
- # data as a hash:
972
- #
973
- # {
974
- # bucket_name: "S3BucketName",
975
- # object_key_prefix: "S3ObjectKeyPrefix",
976
- # encryption_option: "SSE_S3", # accepts SSE_S3, SSE_KMS
977
- # kms_key_id: "StringValue2048",
978
- # }
979
- #
980
794
  # @!attribute [rw] bucket_name
981
795
  # &gt;Bucket name of the customer S3 bucket.
982
796
  # @return [String]
@@ -1080,14 +894,6 @@ module Aws::TimestreamWrite
1080
894
  # you define. Tags enable you to categorize databases and/or tables, for
1081
895
  # example, by purpose, owner, or environment.
1082
896
  #
1083
- # @note When making an API call, you may pass Tag
1084
- # data as a hash:
1085
- #
1086
- # {
1087
- # key: "TagKey", # required
1088
- # value: "TagValue", # required
1089
- # }
1090
- #
1091
897
  # @!attribute [rw] key
1092
898
  # The key of the tag. Tag keys are case sensitive.
1093
899
  # @return [String]
@@ -1105,19 +911,6 @@ module Aws::TimestreamWrite
1105
911
  include Aws::Structure
1106
912
  end
1107
913
 
1108
- # @note When making an API call, you may pass TagResourceRequest
1109
- # data as a hash:
1110
- #
1111
- # {
1112
- # resource_arn: "AmazonResourceName", # required
1113
- # tags: [ # required
1114
- # {
1115
- # key: "TagKey", # required
1116
- # value: "TagValue", # required
1117
- # },
1118
- # ],
1119
- # }
1120
- #
1121
914
  # @!attribute [rw] resource_arn
1122
915
  # Identifies the Timestream resource to which tags should be added.
1123
916
  # This value is an Amazon Resource Name (ARN).
@@ -1154,14 +947,6 @@ module Aws::TimestreamWrite
1154
947
  include Aws::Structure
1155
948
  end
1156
949
 
1157
- # @note When making an API call, you may pass UntagResourceRequest
1158
- # data as a hash:
1159
- #
1160
- # {
1161
- # resource_arn: "AmazonResourceName", # required
1162
- # tag_keys: ["TagKey"], # required
1163
- # }
1164
- #
1165
950
  # @!attribute [rw] resource_arn
1166
951
  # The Timestream resource that the tags will be removed from. This
1167
952
  # value is an Amazon Resource Name (ARN).
@@ -1185,14 +970,6 @@ module Aws::TimestreamWrite
1185
970
  #
1186
971
  class UntagResourceResponse < Aws::EmptyStructure; end
1187
972
 
1188
- # @note When making an API call, you may pass UpdateDatabaseRequest
1189
- # data as a hash:
1190
- #
1191
- # {
1192
- # database_name: "ResourceName", # required
1193
- # kms_key_id: "StringValue2048", # required
1194
- # }
1195
- #
1196
973
  # @!attribute [rw] database_name
1197
974
  # The name of the database.
1198
975
  # @return [String]
@@ -1238,29 +1015,6 @@ module Aws::TimestreamWrite
1238
1015
  include Aws::Structure
1239
1016
  end
1240
1017
 
1241
- # @note When making an API call, you may pass UpdateTableRequest
1242
- # data as a hash:
1243
- #
1244
- # {
1245
- # database_name: "ResourceName", # required
1246
- # table_name: "ResourceName", # required
1247
- # retention_properties: {
1248
- # memory_store_retention_period_in_hours: 1, # required
1249
- # magnetic_store_retention_period_in_days: 1, # required
1250
- # },
1251
- # magnetic_store_write_properties: {
1252
- # enable_magnetic_store_writes: false, # required
1253
- # magnetic_store_rejected_data_location: {
1254
- # s3_configuration: {
1255
- # bucket_name: "S3BucketName",
1256
- # object_key_prefix: "S3ObjectKeyPrefix",
1257
- # encryption_option: "SSE_S3", # accepts SSE_S3, SSE_KMS
1258
- # kms_key_id: "StringValue2048",
1259
- # },
1260
- # },
1261
- # },
1262
- # }
1263
- #
1264
1018
  # @!attribute [rw] database_name
1265
1019
  # The name of the Timestream database.
1266
1020
  # @return [String]
@@ -1314,60 +1068,6 @@ module Aws::TimestreamWrite
1314
1068
  include Aws::Structure
1315
1069
  end
1316
1070
 
1317
- # @note When making an API call, you may pass WriteRecordsRequest
1318
- # data as a hash:
1319
- #
1320
- # {
1321
- # database_name: "ResourceName", # required
1322
- # table_name: "ResourceName", # required
1323
- # common_attributes: {
1324
- # dimensions: [
1325
- # {
1326
- # name: "SchemaName", # required
1327
- # value: "SchemaValue", # required
1328
- # dimension_value_type: "VARCHAR", # accepts VARCHAR
1329
- # },
1330
- # ],
1331
- # measure_name: "SchemaName",
1332
- # measure_value: "StringValue2048",
1333
- # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN, TIMESTAMP, MULTI
1334
- # time: "StringValue256",
1335
- # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1336
- # version: 1,
1337
- # measure_values: [
1338
- # {
1339
- # name: "SchemaName", # required
1340
- # value: "StringValue2048", # required
1341
- # type: "DOUBLE", # required, accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN, TIMESTAMP, MULTI
1342
- # },
1343
- # ],
1344
- # },
1345
- # records: [ # required
1346
- # {
1347
- # dimensions: [
1348
- # {
1349
- # name: "SchemaName", # required
1350
- # value: "SchemaValue", # required
1351
- # dimension_value_type: "VARCHAR", # accepts VARCHAR
1352
- # },
1353
- # ],
1354
- # measure_name: "SchemaName",
1355
- # measure_value: "StringValue2048",
1356
- # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN, TIMESTAMP, MULTI
1357
- # time: "StringValue256",
1358
- # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1359
- # version: 1,
1360
- # measure_values: [
1361
- # {
1362
- # name: "SchemaName", # required
1363
- # value: "StringValue2048", # required
1364
- # type: "DOUBLE", # required, accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN, TIMESTAMP, MULTI
1365
- # },
1366
- # ],
1367
- # },
1368
- # ],
1369
- # }
1370
- #
1371
1071
  # @!attribute [rw] database_name
1372
1072
  # The name of the Timestream database.
1373
1073
  # @return [String]
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-timestreamwrite/types'
15
15
  require_relative 'aws-sdk-timestreamwrite/client_api'
16
+ require_relative 'aws-sdk-timestreamwrite/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-timestreamwrite/client'
17
18
  require_relative 'aws-sdk-timestreamwrite/errors'
18
19
  require_relative 'aws-sdk-timestreamwrite/resource'
20
+ require_relative 'aws-sdk-timestreamwrite/endpoint_parameters'
21
+ require_relative 'aws-sdk-timestreamwrite/endpoint_provider'
22
+ require_relative 'aws-sdk-timestreamwrite/endpoints'
19
23
  require_relative 'aws-sdk-timestreamwrite/customizations'
20
24
 
21
25
  # This module provides support for Amazon Timestream Write. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-timestreamwrite/customizations'
48
52
  # @!group service
49
53
  module Aws::TimestreamWrite
50
54
 
51
- GEM_VERSION = '1.14.0'
55
+ GEM_VERSION = '1.16.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-timestreamwrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-timestreamwrite/client.rb
60
60
  - lib/aws-sdk-timestreamwrite/client_api.rb
61
61
  - lib/aws-sdk-timestreamwrite/customizations.rb
62
+ - lib/aws-sdk-timestreamwrite/endpoint_parameters.rb
63
+ - lib/aws-sdk-timestreamwrite/endpoint_provider.rb
64
+ - lib/aws-sdk-timestreamwrite/endpoints.rb
62
65
  - lib/aws-sdk-timestreamwrite/errors.rb
66
+ - lib/aws-sdk-timestreamwrite/plugins/endpoints.rb
63
67
  - lib/aws-sdk-timestreamwrite/resource.rb
64
68
  - lib/aws-sdk-timestreamwrite/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby