aws-sdk-timestreamwrite 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 594b65ebca6e36398a081adc78cb6fe41ccadae851dac651e87e81cbe0581c73
4
+ data.tar.gz: 6ca7d2c6034c8370a57bfb06d466c4a8b81524681ccdcbe52dec9aaa03b0bbb9
5
+ SHA512:
6
+ metadata.gz: 7ce3639740ec9dd0bd572d259d2127bd111c17e2d44fdcbf6e4496353f9cf7d648baa0c20f737ebe2c0faf11f0616434233a4d553ae8f6a9a91dfb809dcafb68
7
+ data.tar.gz: 4f31603b503a91f9596ca3e4996b80d30afb976b7f1d6da0e5c6091baa7951dc25774e3bd0f769ca5b3e59b9bdce628ddd76396598823de95adc7597133006c4
@@ -0,0 +1,53 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ require_relative 'aws-sdk-timestreamwrite/types'
15
+ require_relative 'aws-sdk-timestreamwrite/client_api'
16
+ require_relative 'aws-sdk-timestreamwrite/client'
17
+ require_relative 'aws-sdk-timestreamwrite/errors'
18
+ require_relative 'aws-sdk-timestreamwrite/resource'
19
+ require_relative 'aws-sdk-timestreamwrite/customizations'
20
+
21
+ # This module provides support for Amazon Timestream Write. This module is available in the
22
+ # `aws-sdk-timestreamwrite` gem.
23
+ #
24
+ # # Client
25
+ #
26
+ # The {Client} class provides one method for each API operation. Operation
27
+ # methods each accept a hash of request parameters and return a response
28
+ # structure.
29
+ #
30
+ # timestream_write = Aws::TimestreamWrite::Client.new
31
+ # resp = timestream_write.create_database(params)
32
+ #
33
+ # See {Client} for more information.
34
+ #
35
+ # # Errors
36
+ #
37
+ # Errors returned from Amazon Timestream Write are defined in the
38
+ # {Errors} module and all extend {Errors::ServiceError}.
39
+ #
40
+ # begin
41
+ # # do stuff
42
+ # rescue Aws::TimestreamWrite::Errors::ServiceError
43
+ # # rescues all Amazon Timestream Write API errors
44
+ # end
45
+ #
46
+ # See {Errors} for more information.
47
+ #
48
+ # @!group service
49
+ module Aws::TimestreamWrite
50
+
51
+ GEM_VERSION = '1.0.0'
52
+
53
+ end
@@ -0,0 +1,1081 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'seahorse/client/plugins/content_length.rb'
11
+ require 'aws-sdk-core/plugins/credentials_configuration.rb'
12
+ require 'aws-sdk-core/plugins/logging.rb'
13
+ require 'aws-sdk-core/plugins/param_converter.rb'
14
+ require 'aws-sdk-core/plugins/param_validator.rb'
15
+ require 'aws-sdk-core/plugins/user_agent.rb'
16
+ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
17
+ require 'aws-sdk-core/plugins/retry_errors.rb'
18
+ require 'aws-sdk-core/plugins/global_configuration.rb'
19
+ require 'aws-sdk-core/plugins/regional_endpoint.rb'
20
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
21
+ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
+ require 'aws-sdk-core/plugins/response_paging.rb'
23
+ require 'aws-sdk-core/plugins/stub_responses.rb'
24
+ require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
+ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
+ require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/signature_v4.rb'
31
+ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
+
33
+ Aws::Plugins::GlobalConfiguration.add_identifier(:timestreamwrite)
34
+
35
+ module Aws::TimestreamWrite
36
+ # An API client for TimestreamWrite. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::TimestreamWrite::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
48
+ class Client < Seahorse::Client::Base
49
+
50
+ include Aws::ClientStubs
51
+
52
+ @identifier = :timestreamwrite
53
+
54
+ set_api(ClientApi::API)
55
+
56
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
57
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
58
+ add_plugin(Aws::Plugins::Logging)
59
+ add_plugin(Aws::Plugins::ParamConverter)
60
+ add_plugin(Aws::Plugins::ParamValidator)
61
+ add_plugin(Aws::Plugins::UserAgent)
62
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
63
+ add_plugin(Aws::Plugins::RetryErrors)
64
+ add_plugin(Aws::Plugins::GlobalConfiguration)
65
+ add_plugin(Aws::Plugins::RegionalEndpoint)
66
+ add_plugin(Aws::Plugins::EndpointDiscovery)
67
+ add_plugin(Aws::Plugins::EndpointPattern)
68
+ add_plugin(Aws::Plugins::ResponsePaging)
69
+ add_plugin(Aws::Plugins::StubResponses)
70
+ add_plugin(Aws::Plugins::IdempotencyToken)
71
+ add_plugin(Aws::Plugins::JsonvalueConverter)
72
+ add_plugin(Aws::Plugins::ClientMetricsPlugin)
73
+ add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
+ add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
76
+ add_plugin(Aws::Plugins::SignatureV4)
77
+ add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
+
79
+ # @overload initialize(options)
80
+ # @param [Hash] options
81
+ # @option options [required, Aws::CredentialProvider] :credentials
82
+ # Your AWS credentials. This can be an instance of any one of the
83
+ # following classes:
84
+ #
85
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
+ # credentials.
87
+ #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
102
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
103
+ # from an EC2 IMDS on an EC2 instance.
104
+ #
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
107
+ #
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
110
+ #
111
+ # When `:credentials` are not configured directly, the following
112
+ # locations will be searched for credentials:
113
+ #
114
+ # * `Aws.config[:credentials]`
115
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
116
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
117
+ # * `~/.aws/credentials`
118
+ # * `~/.aws/config`
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
123
+ #
124
+ # @option options [required, String] :region
125
+ # The AWS region to connect to. The configured `:region` is
126
+ # used to determine the service `:endpoint`. When not passed,
127
+ # a default `:region` is searched for in the following locations:
128
+ #
129
+ # * `Aws.config[:region]`
130
+ # * `ENV['AWS_REGION']`
131
+ # * `ENV['AMAZON_REGION']`
132
+ # * `ENV['AWS_DEFAULT_REGION']`
133
+ # * `~/.aws/credentials`
134
+ # * `~/.aws/config`
135
+ #
136
+ # @option options [String] :access_key_id
137
+ #
138
+ # @option options [Boolean] :active_endpoint_cache (false)
139
+ # When set to `true`, a thread polling for endpoints will be running in
140
+ # the background every 60 secs (default). Defaults to `false`.
141
+ #
142
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
143
+ # Used only in `adaptive` retry mode. When true, the request will sleep
144
+ # until there is sufficent client side capacity to retry the request.
145
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
146
+ # not retry instead of sleeping.
147
+ #
148
+ # @option options [Boolean] :client_side_monitoring (false)
149
+ # When `true`, client-side metrics will be collected for all API requests from
150
+ # this client.
151
+ #
152
+ # @option options [String] :client_side_monitoring_client_id ("")
153
+ # Allows you to provide an identifier for this client which will be attached to
154
+ # all generated client side metrics. Defaults to an empty string.
155
+ #
156
+ # @option options [String] :client_side_monitoring_host ("127.0.0.1")
157
+ # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
158
+ # side monitoring agent is running on, where client metrics will be published via UDP.
159
+ #
160
+ # @option options [Integer] :client_side_monitoring_port (31000)
161
+ # Required for publishing client metrics. The port that the client side monitoring
162
+ # agent is running on, where client metrics will be published via UDP.
163
+ #
164
+ # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
165
+ # Allows you to provide a custom client-side monitoring publisher class. By default,
166
+ # will use the Client Side Monitoring Agent Publisher.
167
+ #
168
+ # @option options [Boolean] :convert_params (true)
169
+ # When `true`, an attempt is made to coerce request parameters into
170
+ # the required types.
171
+ #
172
+ # @option options [Boolean] :correct_clock_skew (true)
173
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
+ # a clock skew correction and retry requests with skewed client clocks.
175
+ #
176
+ # @option options [Boolean] :disable_host_prefix_injection (false)
177
+ # Set to true to disable SDK automatically adding host prefix
178
+ # to default service endpoint when available.
179
+ #
180
+ # @option options [String] :endpoint
181
+ # The client endpoint is normally constructed from the `:region`
182
+ # option. You should only configure an `:endpoint` when connecting
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
184
+ #
185
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
186
+ # Used for the maximum size limit of the LRU cache storing endpoints data
187
+ # for endpoint discovery enabled operations. Defaults to 1000.
188
+ #
189
+ # @option options [Integer] :endpoint_cache_max_threads (10)
190
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
191
+ #
192
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
193
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
194
+ # Use this option to config the time interval in seconds for making
195
+ # requests fetching endpoints information. Defaults to 60 sec.
196
+ #
197
+ # @option options [Boolean] :endpoint_discovery (true)
198
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
199
+ #
200
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
201
+ # The log formatter.
202
+ #
203
+ # @option options [Symbol] :log_level (:info)
204
+ # The log level to send messages to the `:logger` at.
205
+ #
206
+ # @option options [Logger] :logger
207
+ # The Logger instance to send log messages to. If this option
208
+ # is not set, logging will be disabled.
209
+ #
210
+ # @option options [Integer] :max_attempts (3)
211
+ # An integer representing the maximum number attempts that will be made for
212
+ # a single request, including the initial attempt. For example,
213
+ # setting this value to 5 will result in a request being retried up to
214
+ # 4 times. Used in `standard` and `adaptive` retry modes.
215
+ #
216
+ # @option options [String] :profile ("default")
217
+ # Used when loading credentials from the shared credentials file
218
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
219
+ #
220
+ # @option options [Proc] :retry_backoff
221
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
222
+ # This option is only used in the `legacy` retry mode.
223
+ #
224
+ # @option options [Float] :retry_base_delay (0.3)
225
+ # The base delay in seconds used by the default backoff function. This option
226
+ # is only used in the `legacy` retry mode.
227
+ #
228
+ # @option options [Symbol] :retry_jitter (:none)
229
+ # A delay randomiser function used by the default backoff function.
230
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
231
+ # otherwise a Proc that takes and returns a number. This option is only used
232
+ # in the `legacy` retry mode.
233
+ #
234
+ # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
235
+ #
236
+ # @option options [Integer] :retry_limit (3)
237
+ # The maximum number of times to retry failed requests. Only
238
+ # ~ 500 level server errors and certain ~ 400 level client errors
239
+ # are retried. Generally, these are throttling errors, data
240
+ # checksum errors, networking errors, timeout errors, auth errors,
241
+ # endpoint discovery, and errors from expired credentials.
242
+ # This option is only used in the `legacy` retry mode.
243
+ #
244
+ # @option options [Integer] :retry_max_delay (0)
245
+ # The maximum number of seconds to delay between retries (0 for no limit)
246
+ # used by the default backoff function. This option is only used in the
247
+ # `legacy` retry mode.
248
+ #
249
+ # @option options [String] :retry_mode ("legacy")
250
+ # Specifies which retry algorithm to use. Values are:
251
+ #
252
+ # * `legacy` - The pre-existing retry behavior. This is default value if
253
+ # no retry mode is provided.
254
+ #
255
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
256
+ # This includes support for retry quotas, which limit the number of
257
+ # unsuccessful retries a client can make.
258
+ #
259
+ # * `adaptive` - An experimental retry mode that includes all the
260
+ # functionality of `standard` mode along with automatic client side
261
+ # throttling. This is a provisional mode that may change behavior
262
+ # in the future.
263
+ #
264
+ #
265
+ # @option options [String] :secret_access_key
266
+ #
267
+ # @option options [String] :session_token
268
+ #
269
+ # @option options [Boolean] :simple_json (false)
270
+ # Disables request parameter conversion, validation, and formatting.
271
+ # Also disable response data type conversions. This option is useful
272
+ # when you want to ensure the highest level of performance by
273
+ # avoiding overhead of walking request parameters and response data
274
+ # structures.
275
+ #
276
+ # When `:simple_json` is enabled, the request parameters hash must
277
+ # be formatted exactly as the DynamoDB API expects.
278
+ #
279
+ # @option options [Boolean] :stub_responses (false)
280
+ # Causes the client to return stubbed responses. By default
281
+ # fake responses are generated and returned. You can specify
282
+ # the response data to return or errors to raise by calling
283
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
284
+ #
285
+ # ** Please note ** When response stubbing is enabled, no HTTP
286
+ # requests are made, and retries are disabled.
287
+ #
288
+ # @option options [Boolean] :validate_params (true)
289
+ # When `true`, request parameters are validated before
290
+ # sending the request.
291
+ #
292
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
293
+ # requests through. Formatted like 'http://proxy.com:123'.
294
+ #
295
+ # @option options [Float] :http_open_timeout (15) The number of
296
+ # seconds to wait when opening a HTTP session before raising a
297
+ # `Timeout::Error`.
298
+ #
299
+ # @option options [Integer] :http_read_timeout (60) The default
300
+ # number of seconds to wait for response data. This value can
301
+ # safely be set per-request on the session.
302
+ #
303
+ # @option options [Float] :http_idle_timeout (5) The number of
304
+ # seconds a connection is allowed to sit idle before it is
305
+ # considered stale. Stale connections are closed and removed
306
+ # from the pool before making a request.
307
+ #
308
+ # @option options [Float] :http_continue_timeout (1) The number of
309
+ # seconds to wait for a 100-continue response before sending the
310
+ # request body. This option has no effect unless the request has
311
+ # "Expect" header set to "100-continue". Defaults to `nil` which
312
+ # disables this behaviour. This value can safely be set per
313
+ # request on the session.
314
+ #
315
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
316
+ # HTTP debug output will be sent to the `:logger`.
317
+ #
318
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
319
+ # SSL peer certificates are verified when establishing a
320
+ # connection.
321
+ #
322
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
323
+ # certificate authority bundle file that should be used when
324
+ # verifying peer certificates. If you do not pass
325
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
326
+ # will be used if available.
327
+ #
328
+ # @option options [String] :ssl_ca_directory Full path of the
329
+ # directory that contains the unbundled SSL certificate
330
+ # authority files for verifying peer certificates. If you do
331
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
332
+ # system default will be used if available.
333
+ #
334
+ def initialize(*args)
335
+ super
336
+ end
337
+
338
+ # @!group API Operations
339
+
340
+ # Creates a new Timestream database. If the KMS key is not specified,
341
+ # the database will be encrypted with a Timestream managed KMS key
342
+ # located in your account. Refer to [AWS managed KMS keys][1] for more
343
+ # info. Service quotas apply. For more information, see [Access
344
+ # Management][2] in the Timestream Developer Guide.
345
+ #
346
+ #
347
+ #
348
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
349
+ # [2]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
350
+ #
351
+ # @option params [required, String] :database_name
352
+ # The name of the Timestream database.
353
+ #
354
+ # @option params [String] :kms_key_id
355
+ # The KMS key for the database. If the KMS key is not specified, the
356
+ # database will be encrypted with a Timestream managed KMS key located
357
+ # in your account. Refer to [AWS managed KMS keys][1] for more info.
358
+ #
359
+ #
360
+ #
361
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
362
+ #
363
+ # @option params [Array<Types::Tag>] :tags
364
+ # A list of key-value pairs to label the table.
365
+ #
366
+ # @return [Types::CreateDatabaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
367
+ #
368
+ # * {Types::CreateDatabaseResponse#database #database} => Types::Database
369
+ #
370
+ # @example Request syntax with placeholder values
371
+ #
372
+ # resp = client.create_database({
373
+ # database_name: "ResourceName", # required
374
+ # kms_key_id: "StringValue2048",
375
+ # tags: [
376
+ # {
377
+ # key: "TagKey", # required
378
+ # value: "TagValue", # required
379
+ # },
380
+ # ],
381
+ # })
382
+ #
383
+ # @example Response structure
384
+ #
385
+ # resp.database.arn #=> String
386
+ # resp.database.database_name #=> String
387
+ # resp.database.table_count #=> Integer
388
+ # resp.database.kms_key_id #=> String
389
+ # resp.database.creation_time #=> Time
390
+ # resp.database.last_updated_time #=> Time
391
+ #
392
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/CreateDatabase AWS API Documentation
393
+ #
394
+ # @overload create_database(params = {})
395
+ # @param [Hash] params ({})
396
+ def create_database(params = {}, options = {})
397
+ req = build_request(:create_database, params)
398
+ req.send_request(options)
399
+ end
400
+
401
+ # The CreateTable operation adds a new table to an existing database in
402
+ # your account. In an AWS account, table names must be at least unique
403
+ # within each Region if they are in the same database. You may have
404
+ # identical table names in the same Region if the tables are in seperate
405
+ # databases. While creating the table, you must specify the table name,
406
+ # database name, and the retention properties. Service quotas apply. For
407
+ # more information, see [Access Management][1] in the Timestream
408
+ # Developer Guide.
409
+ #
410
+ #
411
+ #
412
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
413
+ #
414
+ # @option params [required, String] :database_name
415
+ # The name of the Timestream database.
416
+ #
417
+ # @option params [required, String] :table_name
418
+ # The name of the Timestream table.
419
+ #
420
+ # @option params [Types::RetentionProperties] :retention_properties
421
+ # The duration for which your time series data must be stored in the
422
+ # memory store and the magnetic store.
423
+ #
424
+ # @option params [Array<Types::Tag>] :tags
425
+ # A list of key-value pairs to label the table.
426
+ #
427
+ # @return [Types::CreateTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
428
+ #
429
+ # * {Types::CreateTableResponse#table #table} => Types::Table
430
+ #
431
+ # @example Request syntax with placeholder values
432
+ #
433
+ # resp = client.create_table({
434
+ # database_name: "ResourceName", # required
435
+ # table_name: "ResourceName", # required
436
+ # retention_properties: {
437
+ # memory_store_retention_period_in_hours: 1, # required
438
+ # magnetic_store_retention_period_in_days: 1, # required
439
+ # },
440
+ # tags: [
441
+ # {
442
+ # key: "TagKey", # required
443
+ # value: "TagValue", # required
444
+ # },
445
+ # ],
446
+ # })
447
+ #
448
+ # @example Response structure
449
+ #
450
+ # resp.table.arn #=> String
451
+ # resp.table.table_name #=> String
452
+ # resp.table.database_name #=> String
453
+ # resp.table.table_status #=> String, one of "ACTIVE", "DELETING"
454
+ # resp.table.retention_properties.memory_store_retention_period_in_hours #=> Integer
455
+ # resp.table.retention_properties.magnetic_store_retention_period_in_days #=> Integer
456
+ # resp.table.creation_time #=> Time
457
+ # resp.table.last_updated_time #=> Time
458
+ #
459
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/CreateTable AWS API Documentation
460
+ #
461
+ # @overload create_table(params = {})
462
+ # @param [Hash] params ({})
463
+ def create_table(params = {}, options = {})
464
+ req = build_request(:create_table, params)
465
+ req.send_request(options)
466
+ end
467
+
468
+ # Deletes a given Timestream database. *This is an irreversible
469
+ # operation. After a database is deleted, the time series data from its
470
+ # tables cannot be recovered.*
471
+ #
472
+ # All tables in the database must be deleted first, or a
473
+ # ValidationException error will be thrown.
474
+ #
475
+ # @option params [required, String] :database_name
476
+ # The name of the Timestream database to be deleted.
477
+ #
478
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
479
+ #
480
+ # @example Request syntax with placeholder values
481
+ #
482
+ # resp = client.delete_database({
483
+ # database_name: "ResourceName", # required
484
+ # })
485
+ #
486
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/DeleteDatabase AWS API Documentation
487
+ #
488
+ # @overload delete_database(params = {})
489
+ # @param [Hash] params ({})
490
+ def delete_database(params = {}, options = {})
491
+ req = build_request(:delete_database, params)
492
+ req.send_request(options)
493
+ end
494
+
495
+ # Deletes a given Timestream table. This is an irreversible operation.
496
+ # After a Timestream database table is deleted, the time series data
497
+ # stored in the table cannot be recovered.
498
+ #
499
+ # @option params [required, String] :database_name
500
+ # The name of the database where the Timestream database is to be
501
+ # deleted.
502
+ #
503
+ # @option params [required, String] :table_name
504
+ # The name of the Timestream table to be deleted.
505
+ #
506
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
507
+ #
508
+ # @example Request syntax with placeholder values
509
+ #
510
+ # resp = client.delete_table({
511
+ # database_name: "ResourceName", # required
512
+ # table_name: "ResourceName", # required
513
+ # })
514
+ #
515
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/DeleteTable AWS API Documentation
516
+ #
517
+ # @overload delete_table(params = {})
518
+ # @param [Hash] params ({})
519
+ def delete_table(params = {}, options = {})
520
+ req = build_request(:delete_table, params)
521
+ req.send_request(options)
522
+ end
523
+
524
+ # Returns information about the database, including the database name,
525
+ # time that the database was created, and the total number of tables
526
+ # found within the database. Service quotas apply. For more information,
527
+ # see [Access Management][1] in the Timestream Developer Guide.
528
+ #
529
+ #
530
+ #
531
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
532
+ #
533
+ # @option params [required, String] :database_name
534
+ # The name of the Timestream database.
535
+ #
536
+ # @return [Types::DescribeDatabaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
537
+ #
538
+ # * {Types::DescribeDatabaseResponse#database #database} => Types::Database
539
+ #
540
+ # @example Request syntax with placeholder values
541
+ #
542
+ # resp = client.describe_database({
543
+ # database_name: "ResourceName", # required
544
+ # })
545
+ #
546
+ # @example Response structure
547
+ #
548
+ # resp.database.arn #=> String
549
+ # resp.database.database_name #=> String
550
+ # resp.database.table_count #=> Integer
551
+ # resp.database.kms_key_id #=> String
552
+ # resp.database.creation_time #=> Time
553
+ # resp.database.last_updated_time #=> Time
554
+ #
555
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/DescribeDatabase AWS API Documentation
556
+ #
557
+ # @overload describe_database(params = {})
558
+ # @param [Hash] params ({})
559
+ def describe_database(params = {}, options = {})
560
+ req = build_request(:describe_database, params)
561
+ req.send_request(options)
562
+ end
563
+
564
+ # DescribeEndpoints returns a list of available endpoints to make
565
+ # Timestream API calls against. This API is available through both Write
566
+ # and Query.
567
+ #
568
+ # Because Timestream’s SDKs are designed to transparently work with the
569
+ # service’s architecture, including the management and mapping of the
570
+ # service endpoints, *it is not recommended that you use this API
571
+ # unless*\:
572
+ #
573
+ # * Your application uses a programming language that does not yet have
574
+ # SDK support
575
+ #
576
+ # * You require better control over the client-side implementation
577
+ #
578
+ # For detailed information on how to use DescribeEndpoints, see [The
579
+ # Endpoint Discovery Pattern and REST APIs][1].
580
+ #
581
+ #
582
+ #
583
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/Using-API.endpoint-discovery.html
584
+ #
585
+ # @return [Types::DescribeEndpointsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
586
+ #
587
+ # * {Types::DescribeEndpointsResponse#endpoints #endpoints} => Array&lt;Types::Endpoint&gt;
588
+ #
589
+ # @example Response structure
590
+ #
591
+ # resp.endpoints #=> Array
592
+ # resp.endpoints[0].address #=> String
593
+ # resp.endpoints[0].cache_period_in_minutes #=> Integer
594
+ #
595
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/DescribeEndpoints AWS API Documentation
596
+ #
597
+ # @overload describe_endpoints(params = {})
598
+ # @param [Hash] params ({})
599
+ def describe_endpoints(params = {}, options = {})
600
+ req = build_request(:describe_endpoints, params)
601
+ req.send_request(options)
602
+ end
603
+
604
+ # Returns information about the table, including the table name,
605
+ # database name, retention duration of the memory store and the magnetic
606
+ # store. Service quotas apply. For more information, see [Access
607
+ # Management][1] in the Timestream Developer Guide.
608
+ #
609
+ #
610
+ #
611
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
612
+ #
613
+ # @option params [required, String] :database_name
614
+ # The name of the Timestream database.
615
+ #
616
+ # @option params [required, String] :table_name
617
+ # The name of the Timestream table.
618
+ #
619
+ # @return [Types::DescribeTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
620
+ #
621
+ # * {Types::DescribeTableResponse#table #table} => Types::Table
622
+ #
623
+ # @example Request syntax with placeholder values
624
+ #
625
+ # resp = client.describe_table({
626
+ # database_name: "ResourceName", # required
627
+ # table_name: "ResourceName", # required
628
+ # })
629
+ #
630
+ # @example Response structure
631
+ #
632
+ # resp.table.arn #=> String
633
+ # resp.table.table_name #=> String
634
+ # resp.table.database_name #=> String
635
+ # resp.table.table_status #=> String, one of "ACTIVE", "DELETING"
636
+ # resp.table.retention_properties.memory_store_retention_period_in_hours #=> Integer
637
+ # resp.table.retention_properties.magnetic_store_retention_period_in_days #=> Integer
638
+ # resp.table.creation_time #=> Time
639
+ # resp.table.last_updated_time #=> Time
640
+ #
641
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/DescribeTable AWS API Documentation
642
+ #
643
+ # @overload describe_table(params = {})
644
+ # @param [Hash] params ({})
645
+ def describe_table(params = {}, options = {})
646
+ req = build_request(:describe_table, params)
647
+ req.send_request(options)
648
+ end
649
+
650
+ # Returns a list of your Timestream databases. Service quotas apply. For
651
+ # more information, see [Access Management][1] in the Timestream
652
+ # Developer Guide.
653
+ #
654
+ #
655
+ #
656
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
657
+ #
658
+ # @option params [String] :next_token
659
+ # The pagination token. To resume pagination, provide the NextToken
660
+ # value as argument of a subsequent API invocation.
661
+ #
662
+ # @option params [Integer] :max_results
663
+ # The total number of items to return in the output. If the total number
664
+ # of items available is more than the value specified, a NextToken is
665
+ # provided in the output. To resume pagination, provide the NextToken
666
+ # value as argument of a subsequent API invocation.
667
+ #
668
+ # @return [Types::ListDatabasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
669
+ #
670
+ # * {Types::ListDatabasesResponse#databases #databases} => Array&lt;Types::Database&gt;
671
+ # * {Types::ListDatabasesResponse#next_token #next_token} => String
672
+ #
673
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
674
+ #
675
+ # @example Request syntax with placeholder values
676
+ #
677
+ # resp = client.list_databases({
678
+ # next_token: "String",
679
+ # max_results: 1,
680
+ # })
681
+ #
682
+ # @example Response structure
683
+ #
684
+ # resp.databases #=> Array
685
+ # resp.databases[0].arn #=> String
686
+ # resp.databases[0].database_name #=> String
687
+ # resp.databases[0].table_count #=> Integer
688
+ # resp.databases[0].kms_key_id #=> String
689
+ # resp.databases[0].creation_time #=> Time
690
+ # resp.databases[0].last_updated_time #=> Time
691
+ # resp.next_token #=> String
692
+ #
693
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/ListDatabases AWS API Documentation
694
+ #
695
+ # @overload list_databases(params = {})
696
+ # @param [Hash] params ({})
697
+ def list_databases(params = {}, options = {})
698
+ req = build_request(:list_databases, params)
699
+ req.send_request(options)
700
+ end
701
+
702
+ # A list of tables, along with the name, status and retention properties
703
+ # of each table.
704
+ #
705
+ # @option params [String] :database_name
706
+ # The name of the Timestream database.
707
+ #
708
+ # @option params [String] :next_token
709
+ # The pagination token. To resume pagination, provide the NextToken
710
+ # value as argument of a subsequent API invocation.
711
+ #
712
+ # @option params [Integer] :max_results
713
+ # The total number of items to return in the output. If the total number
714
+ # of items available is more than the value specified, a NextToken is
715
+ # provided in the output. To resume pagination, provide the NextToken
716
+ # value as argument of a subsequent API invocation.
717
+ #
718
+ # @return [Types::ListTablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
719
+ #
720
+ # * {Types::ListTablesResponse#tables #tables} => Array&lt;Types::Table&gt;
721
+ # * {Types::ListTablesResponse#next_token #next_token} => String
722
+ #
723
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
724
+ #
725
+ # @example Request syntax with placeholder values
726
+ #
727
+ # resp = client.list_tables({
728
+ # database_name: "ResourceName",
729
+ # next_token: "String",
730
+ # max_results: 1,
731
+ # })
732
+ #
733
+ # @example Response structure
734
+ #
735
+ # resp.tables #=> Array
736
+ # resp.tables[0].arn #=> String
737
+ # resp.tables[0].table_name #=> String
738
+ # resp.tables[0].database_name #=> String
739
+ # resp.tables[0].table_status #=> String, one of "ACTIVE", "DELETING"
740
+ # resp.tables[0].retention_properties.memory_store_retention_period_in_hours #=> Integer
741
+ # resp.tables[0].retention_properties.magnetic_store_retention_period_in_days #=> Integer
742
+ # resp.tables[0].creation_time #=> Time
743
+ # resp.tables[0].last_updated_time #=> Time
744
+ # resp.next_token #=> String
745
+ #
746
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/ListTables AWS API Documentation
747
+ #
748
+ # @overload list_tables(params = {})
749
+ # @param [Hash] params ({})
750
+ def list_tables(params = {}, options = {})
751
+ req = build_request(:list_tables, params)
752
+ req.send_request(options)
753
+ end
754
+
755
+ # List all tags on a Timestream resource.
756
+ #
757
+ # @option params [required, String] :resource_arn
758
+ # The Timestream resource with tags to be listed. This value is an
759
+ # Amazon Resource Name (ARN).
760
+ #
761
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
762
+ #
763
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
764
+ #
765
+ # @example Request syntax with placeholder values
766
+ #
767
+ # resp = client.list_tags_for_resource({
768
+ # resource_arn: "AmazonResourceName", # required
769
+ # })
770
+ #
771
+ # @example Response structure
772
+ #
773
+ # resp.tags #=> Array
774
+ # resp.tags[0].key #=> String
775
+ # resp.tags[0].value #=> String
776
+ #
777
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/ListTagsForResource AWS API Documentation
778
+ #
779
+ # @overload list_tags_for_resource(params = {})
780
+ # @param [Hash] params ({})
781
+ def list_tags_for_resource(params = {}, options = {})
782
+ req = build_request(:list_tags_for_resource, params)
783
+ req.send_request(options)
784
+ end
785
+
786
+ # Associate a set of tags with a Timestream resource. You can then
787
+ # activate these user-defined tags so that they appear on the Billing
788
+ # and Cost Management console for cost allocation tracking.
789
+ #
790
+ # @option params [required, String] :resource_arn
791
+ # Identifies the Timestream resource to which tags should be added. This
792
+ # value is an Amazon Resource Name (ARN).
793
+ #
794
+ # @option params [required, Array<Types::Tag>] :tags
795
+ # The tags to be assigned to the Timestream resource.
796
+ #
797
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
798
+ #
799
+ # @example Request syntax with placeholder values
800
+ #
801
+ # resp = client.tag_resource({
802
+ # resource_arn: "AmazonResourceName", # required
803
+ # tags: [ # required
804
+ # {
805
+ # key: "TagKey", # required
806
+ # value: "TagValue", # required
807
+ # },
808
+ # ],
809
+ # })
810
+ #
811
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/TagResource AWS API Documentation
812
+ #
813
+ # @overload tag_resource(params = {})
814
+ # @param [Hash] params ({})
815
+ def tag_resource(params = {}, options = {})
816
+ req = build_request(:tag_resource, params)
817
+ req.send_request(options)
818
+ end
819
+
820
+ # Removes the association of tags from a Timestream resource.
821
+ #
822
+ # @option params [required, String] :resource_arn
823
+ # The Timestream resource that the tags will be removed from. This value
824
+ # is an Amazon Resource Name (ARN).
825
+ #
826
+ # @option params [required, Array<String>] :tag_keys
827
+ # A list of tags keys. Existing tags of the resource whose keys are
828
+ # members of this list will be removed from the Timestream resource.
829
+ #
830
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
831
+ #
832
+ # @example Request syntax with placeholder values
833
+ #
834
+ # resp = client.untag_resource({
835
+ # resource_arn: "AmazonResourceName", # required
836
+ # tag_keys: ["TagKey"], # required
837
+ # })
838
+ #
839
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/UntagResource AWS API Documentation
840
+ #
841
+ # @overload untag_resource(params = {})
842
+ # @param [Hash] params ({})
843
+ def untag_resource(params = {}, options = {})
844
+ req = build_request(:untag_resource, params)
845
+ req.send_request(options)
846
+ end
847
+
848
+ # Modifies the KMS key for an existing database. While updating the
849
+ # database, you must specify the database name and the identifier of the
850
+ # new KMS key to be used (`KmsKeyId`). If there are any concurrent
851
+ # `UpdateDatabase` requests, first writer wins.
852
+ #
853
+ # @option params [required, String] :database_name
854
+ # The name of the database.
855
+ #
856
+ # @option params [required, String] :kms_key_id
857
+ # The identifier of the new KMS key (`KmsKeyId`) to be used to encrypt
858
+ # the data stored in the database. If the `KmsKeyId` currently
859
+ # registered with the database is the same as the `KmsKeyId` in the
860
+ # request, there will not be any update.
861
+ #
862
+ # You can specify the `KmsKeyId` using any of the following:
863
+ #
864
+ # * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
865
+ #
866
+ # * Key ARN:
867
+ # `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
868
+ #
869
+ # * Alias name: `alias/ExampleAlias`
870
+ #
871
+ # * Alias ARN: `arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias`
872
+ #
873
+ # @return [Types::UpdateDatabaseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
874
+ #
875
+ # * {Types::UpdateDatabaseResponse#database #database} => Types::Database
876
+ #
877
+ # @example Request syntax with placeholder values
878
+ #
879
+ # resp = client.update_database({
880
+ # database_name: "ResourceName", # required
881
+ # kms_key_id: "StringValue2048", # required
882
+ # })
883
+ #
884
+ # @example Response structure
885
+ #
886
+ # resp.database.arn #=> String
887
+ # resp.database.database_name #=> String
888
+ # resp.database.table_count #=> Integer
889
+ # resp.database.kms_key_id #=> String
890
+ # resp.database.creation_time #=> Time
891
+ # resp.database.last_updated_time #=> Time
892
+ #
893
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/UpdateDatabase AWS API Documentation
894
+ #
895
+ # @overload update_database(params = {})
896
+ # @param [Hash] params ({})
897
+ def update_database(params = {}, options = {})
898
+ req = build_request(:update_database, params)
899
+ req.send_request(options)
900
+ end
901
+
902
+ # Modifies the retention duration of the memory store and magnetic store
903
+ # for your Timestream table. Note that the change in retention duration
904
+ # takes effect immediately. For example, if the retention period of the
905
+ # memory store was initially set to 2 hours and then changed to 24
906
+ # hours, the memory store will be capable of holding 24 hours of data,
907
+ # but will be populated with 24 hours of data 22 hours after this change
908
+ # was made. Timestream does not retrieve data from the magnetic store to
909
+ # populate the memory store.
910
+ #
911
+ # Service quotas apply. For more information, see [Access Management][1]
912
+ # in the Timestream Developer Guide.
913
+ #
914
+ #
915
+ #
916
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
917
+ #
918
+ # @option params [required, String] :database_name
919
+ # The name of the Timestream database.
920
+ #
921
+ # @option params [required, String] :table_name
922
+ # The name of the Timesream table.
923
+ #
924
+ # @option params [required, Types::RetentionProperties] :retention_properties
925
+ # The retention duration of the memory store and the magnetic store.
926
+ #
927
+ # @return [Types::UpdateTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
928
+ #
929
+ # * {Types::UpdateTableResponse#table #table} => Types::Table
930
+ #
931
+ # @example Request syntax with placeholder values
932
+ #
933
+ # resp = client.update_table({
934
+ # database_name: "ResourceName", # required
935
+ # table_name: "ResourceName", # required
936
+ # retention_properties: { # required
937
+ # memory_store_retention_period_in_hours: 1, # required
938
+ # magnetic_store_retention_period_in_days: 1, # required
939
+ # },
940
+ # })
941
+ #
942
+ # @example Response structure
943
+ #
944
+ # resp.table.arn #=> String
945
+ # resp.table.table_name #=> String
946
+ # resp.table.database_name #=> String
947
+ # resp.table.table_status #=> String, one of "ACTIVE", "DELETING"
948
+ # resp.table.retention_properties.memory_store_retention_period_in_hours #=> Integer
949
+ # resp.table.retention_properties.magnetic_store_retention_period_in_days #=> Integer
950
+ # resp.table.creation_time #=> Time
951
+ # resp.table.last_updated_time #=> Time
952
+ #
953
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/UpdateTable AWS API Documentation
954
+ #
955
+ # @overload update_table(params = {})
956
+ # @param [Hash] params ({})
957
+ def update_table(params = {}, options = {})
958
+ req = build_request(:update_table, params)
959
+ req.send_request(options)
960
+ end
961
+
962
+ # The WriteRecords operation enables you to write your time series data
963
+ # into Timestream. You can specify a single data point or a batch of
964
+ # data points to be inserted into the system. Timestream offers you with
965
+ # a flexible schema that auto detects the column names and data types
966
+ # for your Timestream tables based on the dimension names and data types
967
+ # of the data points you specify when invoking writes into the database.
968
+ # Timestream support eventual consistency read semantics. This means
969
+ # that when you query data immediately after writing a batch of data
970
+ # into Timestream, the query results might not reflect the results of a
971
+ # recently completed write operation. The results may also include some
972
+ # stale data. If you repeat the query request after a short time, the
973
+ # results should return the latest data. Service quotas apply. For more
974
+ # information, see [Access Management][1] in the Timestream Developer
975
+ # Guide.
976
+ #
977
+ #
978
+ #
979
+ # [1]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html
980
+ #
981
+ # @option params [required, String] :database_name
982
+ # The name of the Timestream database.
983
+ #
984
+ # @option params [required, String] :table_name
985
+ # The name of the Timesream table.
986
+ #
987
+ # @option params [Types::Record] :common_attributes
988
+ # A record containing the common measure and dimension attributes shared
989
+ # across all the records in the request. The measure and dimension
990
+ # attributes specified in here will be merged with the measure and
991
+ # dimension attributes in the records object when the data is written
992
+ # into Timestream.
993
+ #
994
+ # @option params [required, Array<Types::Record>] :records
995
+ # An array of records containing the unique dimension and measure
996
+ # attributes for each time series data point.
997
+ #
998
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
999
+ #
1000
+ # @example Request syntax with placeholder values
1001
+ #
1002
+ # resp = client.write_records({
1003
+ # database_name: "ResourceName", # required
1004
+ # table_name: "ResourceName", # required
1005
+ # common_attributes: {
1006
+ # dimensions: [
1007
+ # {
1008
+ # name: "StringValue256", # required
1009
+ # value: "StringValue2048", # required
1010
+ # dimension_value_type: "VARCHAR", # accepts VARCHAR
1011
+ # },
1012
+ # ],
1013
+ # measure_name: "StringValue256",
1014
+ # measure_value: "StringValue2048",
1015
+ # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
1016
+ # time: "StringValue256",
1017
+ # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1018
+ # },
1019
+ # records: [ # required
1020
+ # {
1021
+ # dimensions: [
1022
+ # {
1023
+ # name: "StringValue256", # required
1024
+ # value: "StringValue2048", # required
1025
+ # dimension_value_type: "VARCHAR", # accepts VARCHAR
1026
+ # },
1027
+ # ],
1028
+ # measure_name: "StringValue256",
1029
+ # measure_value: "StringValue2048",
1030
+ # measure_value_type: "DOUBLE", # accepts DOUBLE, BIGINT, VARCHAR, BOOLEAN
1031
+ # time: "StringValue256",
1032
+ # time_unit: "MILLISECONDS", # accepts MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS
1033
+ # },
1034
+ # ],
1035
+ # })
1036
+ #
1037
+ # @see http://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/WriteRecords AWS API Documentation
1038
+ #
1039
+ # @overload write_records(params = {})
1040
+ # @param [Hash] params ({})
1041
+ def write_records(params = {}, options = {})
1042
+ req = build_request(:write_records, params)
1043
+ req.send_request(options)
1044
+ end
1045
+
1046
+ # @!endgroup
1047
+
1048
+ # @param params ({})
1049
+ # @api private
1050
+ def build_request(operation_name, params = {})
1051
+ handlers = @handlers.for(operation_name)
1052
+ context = Seahorse::Client::RequestContext.new(
1053
+ operation_name: operation_name,
1054
+ operation: config.api.operation(operation_name),
1055
+ client: self,
1056
+ params: params,
1057
+ config: config)
1058
+ context[:gem_name] = 'aws-sdk-timestreamwrite'
1059
+ context[:gem_version] = '1.0.0'
1060
+ Seahorse::Client::Request.new(handlers, context)
1061
+ end
1062
+
1063
+ # @api private
1064
+ # @deprecated
1065
+ def waiter_names
1066
+ []
1067
+ end
1068
+
1069
+ class << self
1070
+
1071
+ # @api private
1072
+ attr_reader :identifier
1073
+
1074
+ # @api private
1075
+ def errors_module
1076
+ Errors
1077
+ end
1078
+
1079
+ end
1080
+ end
1081
+ end