aws-sdk-timestreamwrite 1.23.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-timestreamwrite/client.rb +73 -48
- data/lib/aws-sdk-timestreamwrite/endpoint_provider.rb +3 -0
- data/lib/aws-sdk-timestreamwrite/plugins/endpoints.rb +4 -2
- data/lib/aws-sdk-timestreamwrite.rb +1 -1
- data/sig/client.rbs +451 -0
- data/sig/errors.rbs +44 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +497 -0
- data/sig/waiters.rbs +13 -0
- metadata +14 -9
data/sig/client.rbs
ADDED
@@ -0,0 +1,451 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module TimestreamWrite
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?ignore_configured_endpoint_urls: bool,
|
36
|
+
?log_formatter: untyped,
|
37
|
+
?log_level: Symbol,
|
38
|
+
?logger: untyped,
|
39
|
+
?max_attempts: Integer,
|
40
|
+
?profile: String,
|
41
|
+
?request_min_compression_size_bytes: Integer,
|
42
|
+
?retry_backoff: Proc,
|
43
|
+
?retry_base_delay: Float,
|
44
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
45
|
+
?retry_limit: Integer,
|
46
|
+
?retry_max_delay: Integer,
|
47
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
48
|
+
?sdk_ua_app_id: String,
|
49
|
+
?secret_access_key: String,
|
50
|
+
?session_token: String,
|
51
|
+
?simple_json: bool,
|
52
|
+
?stub_responses: untyped,
|
53
|
+
?token_provider: untyped,
|
54
|
+
?use_dualstack_endpoint: bool,
|
55
|
+
?use_fips_endpoint: bool,
|
56
|
+
?validate_params: bool,
|
57
|
+
?endpoint_provider: untyped,
|
58
|
+
?http_proxy: String,
|
59
|
+
?http_open_timeout: (Float | Integer),
|
60
|
+
?http_read_timeout: (Float | Integer),
|
61
|
+
?http_idle_timeout: (Float | Integer),
|
62
|
+
?http_continue_timeout: (Float | Integer),
|
63
|
+
?ssl_timeout: (Float | Integer | nil),
|
64
|
+
?http_wire_trace: bool,
|
65
|
+
?ssl_verify_peer: bool,
|
66
|
+
?ssl_ca_bundle: String,
|
67
|
+
?ssl_ca_directory: String,
|
68
|
+
?ssl_ca_store: String,
|
69
|
+
?on_chunk_received: Proc,
|
70
|
+
?on_chunk_sent: Proc,
|
71
|
+
?raise_response_errors: bool
|
72
|
+
) -> instance
|
73
|
+
| (?Hash[Symbol, untyped]) -> instance
|
74
|
+
|
75
|
+
|
76
|
+
interface _CreateBatchLoadTaskResponseSuccess
|
77
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateBatchLoadTaskResponse]
|
78
|
+
def task_id: () -> ::String
|
79
|
+
end
|
80
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#create_batch_load_task-instance_method
|
81
|
+
def create_batch_load_task: (
|
82
|
+
?client_token: ::String,
|
83
|
+
?data_model_configuration: {
|
84
|
+
data_model: {
|
85
|
+
time_column: ::String?,
|
86
|
+
time_unit: ("MILLISECONDS" | "SECONDS" | "MICROSECONDS" | "NANOSECONDS")?,
|
87
|
+
dimension_mappings: Array[
|
88
|
+
{
|
89
|
+
source_column: ::String?,
|
90
|
+
destination_column: ::String?
|
91
|
+
},
|
92
|
+
],
|
93
|
+
multi_measure_mappings: {
|
94
|
+
target_multi_measure_name: ::String?,
|
95
|
+
multi_measure_attribute_mappings: Array[
|
96
|
+
{
|
97
|
+
source_column: ::String,
|
98
|
+
target_multi_measure_attribute_name: ::String?,
|
99
|
+
measure_value_type: ("DOUBLE" | "BIGINT" | "BOOLEAN" | "VARCHAR" | "TIMESTAMP")?
|
100
|
+
},
|
101
|
+
]
|
102
|
+
}?,
|
103
|
+
mixed_measure_mappings: Array[
|
104
|
+
{
|
105
|
+
measure_name: ::String?,
|
106
|
+
source_column: ::String?,
|
107
|
+
target_measure_name: ::String?,
|
108
|
+
measure_value_type: ("DOUBLE" | "BIGINT" | "VARCHAR" | "BOOLEAN" | "TIMESTAMP" | "MULTI"),
|
109
|
+
multi_measure_attribute_mappings: Array[
|
110
|
+
{
|
111
|
+
source_column: ::String,
|
112
|
+
target_multi_measure_attribute_name: ::String?,
|
113
|
+
measure_value_type: ("DOUBLE" | "BIGINT" | "BOOLEAN" | "VARCHAR" | "TIMESTAMP")?
|
114
|
+
},
|
115
|
+
]?
|
116
|
+
},
|
117
|
+
]?,
|
118
|
+
measure_name_column: ::String?
|
119
|
+
}?,
|
120
|
+
data_model_s3_configuration: {
|
121
|
+
bucket_name: ::String?,
|
122
|
+
object_key: ::String?
|
123
|
+
}?
|
124
|
+
},
|
125
|
+
data_source_configuration: {
|
126
|
+
data_source_s3_configuration: {
|
127
|
+
bucket_name: ::String,
|
128
|
+
object_key_prefix: ::String?
|
129
|
+
},
|
130
|
+
csv_configuration: {
|
131
|
+
column_separator: ::String?,
|
132
|
+
escape_char: ::String?,
|
133
|
+
quote_char: ::String?,
|
134
|
+
null_value: ::String?,
|
135
|
+
trim_white_space: bool?
|
136
|
+
}?,
|
137
|
+
data_format: ("CSV")
|
138
|
+
},
|
139
|
+
report_configuration: {
|
140
|
+
report_s3_configuration: {
|
141
|
+
bucket_name: ::String,
|
142
|
+
object_key_prefix: ::String?,
|
143
|
+
encryption_option: ("SSE_S3" | "SSE_KMS")?,
|
144
|
+
kms_key_id: ::String?
|
145
|
+
}?
|
146
|
+
},
|
147
|
+
target_database_name: ::String,
|
148
|
+
target_table_name: ::String,
|
149
|
+
?record_version: ::Integer
|
150
|
+
) -> _CreateBatchLoadTaskResponseSuccess
|
151
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateBatchLoadTaskResponseSuccess
|
152
|
+
|
153
|
+
interface _CreateDatabaseResponseSuccess
|
154
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateDatabaseResponse]
|
155
|
+
def database: () -> Types::Database
|
156
|
+
end
|
157
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#create_database-instance_method
|
158
|
+
def create_database: (
|
159
|
+
database_name: ::String,
|
160
|
+
?kms_key_id: ::String,
|
161
|
+
?tags: Array[
|
162
|
+
{
|
163
|
+
key: ::String,
|
164
|
+
value: ::String
|
165
|
+
},
|
166
|
+
]
|
167
|
+
) -> _CreateDatabaseResponseSuccess
|
168
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDatabaseResponseSuccess
|
169
|
+
|
170
|
+
interface _CreateTableResponseSuccess
|
171
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateTableResponse]
|
172
|
+
def table: () -> Types::Table
|
173
|
+
end
|
174
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#create_table-instance_method
|
175
|
+
def create_table: (
|
176
|
+
database_name: ::String,
|
177
|
+
table_name: ::String,
|
178
|
+
?retention_properties: {
|
179
|
+
memory_store_retention_period_in_hours: ::Integer,
|
180
|
+
magnetic_store_retention_period_in_days: ::Integer
|
181
|
+
},
|
182
|
+
?tags: Array[
|
183
|
+
{
|
184
|
+
key: ::String,
|
185
|
+
value: ::String
|
186
|
+
},
|
187
|
+
],
|
188
|
+
?magnetic_store_write_properties: {
|
189
|
+
enable_magnetic_store_writes: bool,
|
190
|
+
magnetic_store_rejected_data_location: {
|
191
|
+
s3_configuration: {
|
192
|
+
bucket_name: ::String?,
|
193
|
+
object_key_prefix: ::String?,
|
194
|
+
encryption_option: ("SSE_S3" | "SSE_KMS")?,
|
195
|
+
kms_key_id: ::String?
|
196
|
+
}?
|
197
|
+
}?
|
198
|
+
},
|
199
|
+
?schema: {
|
200
|
+
composite_partition_key: Array[
|
201
|
+
{
|
202
|
+
type: ("DIMENSION" | "MEASURE"),
|
203
|
+
name: ::String?,
|
204
|
+
enforcement_in_record: ("REQUIRED" | "OPTIONAL")?
|
205
|
+
},
|
206
|
+
]?
|
207
|
+
}
|
208
|
+
) -> _CreateTableResponseSuccess
|
209
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTableResponseSuccess
|
210
|
+
|
211
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#delete_database-instance_method
|
212
|
+
def delete_database: (
|
213
|
+
database_name: ::String
|
214
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
215
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
216
|
+
|
217
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#delete_table-instance_method
|
218
|
+
def delete_table: (
|
219
|
+
database_name: ::String,
|
220
|
+
table_name: ::String
|
221
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
222
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
223
|
+
|
224
|
+
interface _DescribeBatchLoadTaskResponseSuccess
|
225
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeBatchLoadTaskResponse]
|
226
|
+
def batch_load_task_description: () -> Types::BatchLoadTaskDescription
|
227
|
+
end
|
228
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#describe_batch_load_task-instance_method
|
229
|
+
def describe_batch_load_task: (
|
230
|
+
task_id: ::String
|
231
|
+
) -> _DescribeBatchLoadTaskResponseSuccess
|
232
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeBatchLoadTaskResponseSuccess
|
233
|
+
|
234
|
+
interface _DescribeDatabaseResponseSuccess
|
235
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeDatabaseResponse]
|
236
|
+
def database: () -> Types::Database
|
237
|
+
end
|
238
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#describe_database-instance_method
|
239
|
+
def describe_database: (
|
240
|
+
database_name: ::String
|
241
|
+
) -> _DescribeDatabaseResponseSuccess
|
242
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeDatabaseResponseSuccess
|
243
|
+
|
244
|
+
interface _DescribeEndpointsResponseSuccess
|
245
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeEndpointsResponse]
|
246
|
+
def endpoints: () -> ::Array[Types::Endpoint]
|
247
|
+
end
|
248
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#describe_endpoints-instance_method
|
249
|
+
def describe_endpoints: (
|
250
|
+
) -> _DescribeEndpointsResponseSuccess
|
251
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeEndpointsResponseSuccess
|
252
|
+
|
253
|
+
interface _DescribeTableResponseSuccess
|
254
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeTableResponse]
|
255
|
+
def table: () -> Types::Table
|
256
|
+
end
|
257
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#describe_table-instance_method
|
258
|
+
def describe_table: (
|
259
|
+
database_name: ::String,
|
260
|
+
table_name: ::String
|
261
|
+
) -> _DescribeTableResponseSuccess
|
262
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeTableResponseSuccess
|
263
|
+
|
264
|
+
interface _ListBatchLoadTasksResponseSuccess
|
265
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListBatchLoadTasksResponse]
|
266
|
+
def next_token: () -> ::String
|
267
|
+
def batch_load_tasks: () -> ::Array[Types::BatchLoadTask]
|
268
|
+
end
|
269
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#list_batch_load_tasks-instance_method
|
270
|
+
def list_batch_load_tasks: (
|
271
|
+
?next_token: ::String,
|
272
|
+
?max_results: ::Integer,
|
273
|
+
?task_status: ("CREATED" | "IN_PROGRESS" | "FAILED" | "SUCCEEDED" | "PROGRESS_STOPPED" | "PENDING_RESUME")
|
274
|
+
) -> _ListBatchLoadTasksResponseSuccess
|
275
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBatchLoadTasksResponseSuccess
|
276
|
+
|
277
|
+
interface _ListDatabasesResponseSuccess
|
278
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListDatabasesResponse]
|
279
|
+
def databases: () -> ::Array[Types::Database]
|
280
|
+
def next_token: () -> ::String
|
281
|
+
end
|
282
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#list_databases-instance_method
|
283
|
+
def list_databases: (
|
284
|
+
?next_token: ::String,
|
285
|
+
?max_results: ::Integer
|
286
|
+
) -> _ListDatabasesResponseSuccess
|
287
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDatabasesResponseSuccess
|
288
|
+
|
289
|
+
interface _ListTablesResponseSuccess
|
290
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTablesResponse]
|
291
|
+
def tables: () -> ::Array[Types::Table]
|
292
|
+
def next_token: () -> ::String
|
293
|
+
end
|
294
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#list_tables-instance_method
|
295
|
+
def list_tables: (
|
296
|
+
?database_name: ::String,
|
297
|
+
?next_token: ::String,
|
298
|
+
?max_results: ::Integer
|
299
|
+
) -> _ListTablesResponseSuccess
|
300
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTablesResponseSuccess
|
301
|
+
|
302
|
+
interface _ListTagsForResourceResponseSuccess
|
303
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
|
304
|
+
def tags: () -> ::Array[Types::Tag]
|
305
|
+
end
|
306
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#list_tags_for_resource-instance_method
|
307
|
+
def list_tags_for_resource: (
|
308
|
+
resource_arn: ::String
|
309
|
+
) -> _ListTagsForResourceResponseSuccess
|
310
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
311
|
+
|
312
|
+
interface _ResumeBatchLoadTaskResponseSuccess
|
313
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ResumeBatchLoadTaskResponse]
|
314
|
+
end
|
315
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#resume_batch_load_task-instance_method
|
316
|
+
def resume_batch_load_task: (
|
317
|
+
task_id: ::String
|
318
|
+
) -> _ResumeBatchLoadTaskResponseSuccess
|
319
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResumeBatchLoadTaskResponseSuccess
|
320
|
+
|
321
|
+
interface _TagResourceResponseSuccess
|
322
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
|
323
|
+
end
|
324
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#tag_resource-instance_method
|
325
|
+
def tag_resource: (
|
326
|
+
resource_arn: ::String,
|
327
|
+
tags: Array[
|
328
|
+
{
|
329
|
+
key: ::String,
|
330
|
+
value: ::String
|
331
|
+
},
|
332
|
+
]
|
333
|
+
) -> _TagResourceResponseSuccess
|
334
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
|
335
|
+
|
336
|
+
interface _UntagResourceResponseSuccess
|
337
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
|
338
|
+
end
|
339
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#untag_resource-instance_method
|
340
|
+
def untag_resource: (
|
341
|
+
resource_arn: ::String,
|
342
|
+
tag_keys: Array[::String]
|
343
|
+
) -> _UntagResourceResponseSuccess
|
344
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
|
345
|
+
|
346
|
+
interface _UpdateDatabaseResponseSuccess
|
347
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateDatabaseResponse]
|
348
|
+
def database: () -> Types::Database
|
349
|
+
end
|
350
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#update_database-instance_method
|
351
|
+
def update_database: (
|
352
|
+
database_name: ::String,
|
353
|
+
kms_key_id: ::String
|
354
|
+
) -> _UpdateDatabaseResponseSuccess
|
355
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateDatabaseResponseSuccess
|
356
|
+
|
357
|
+
interface _UpdateTableResponseSuccess
|
358
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateTableResponse]
|
359
|
+
def table: () -> Types::Table
|
360
|
+
end
|
361
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#update_table-instance_method
|
362
|
+
def update_table: (
|
363
|
+
database_name: ::String,
|
364
|
+
table_name: ::String,
|
365
|
+
?retention_properties: {
|
366
|
+
memory_store_retention_period_in_hours: ::Integer,
|
367
|
+
magnetic_store_retention_period_in_days: ::Integer
|
368
|
+
},
|
369
|
+
?magnetic_store_write_properties: {
|
370
|
+
enable_magnetic_store_writes: bool,
|
371
|
+
magnetic_store_rejected_data_location: {
|
372
|
+
s3_configuration: {
|
373
|
+
bucket_name: ::String?,
|
374
|
+
object_key_prefix: ::String?,
|
375
|
+
encryption_option: ("SSE_S3" | "SSE_KMS")?,
|
376
|
+
kms_key_id: ::String?
|
377
|
+
}?
|
378
|
+
}?
|
379
|
+
},
|
380
|
+
?schema: {
|
381
|
+
composite_partition_key: Array[
|
382
|
+
{
|
383
|
+
type: ("DIMENSION" | "MEASURE"),
|
384
|
+
name: ::String?,
|
385
|
+
enforcement_in_record: ("REQUIRED" | "OPTIONAL")?
|
386
|
+
},
|
387
|
+
]?
|
388
|
+
}
|
389
|
+
) -> _UpdateTableResponseSuccess
|
390
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTableResponseSuccess
|
391
|
+
|
392
|
+
interface _WriteRecordsResponseSuccess
|
393
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::WriteRecordsResponse]
|
394
|
+
def records_ingested: () -> Types::RecordsIngested
|
395
|
+
end
|
396
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Client.html#write_records-instance_method
|
397
|
+
def write_records: (
|
398
|
+
database_name: ::String,
|
399
|
+
table_name: ::String,
|
400
|
+
?common_attributes: {
|
401
|
+
dimensions: Array[
|
402
|
+
{
|
403
|
+
name: ::String,
|
404
|
+
value: ::String,
|
405
|
+
dimension_value_type: ("VARCHAR")?
|
406
|
+
},
|
407
|
+
]?,
|
408
|
+
measure_name: ::String?,
|
409
|
+
measure_value: ::String?,
|
410
|
+
measure_value_type: ("DOUBLE" | "BIGINT" | "VARCHAR" | "BOOLEAN" | "TIMESTAMP" | "MULTI")?,
|
411
|
+
time: ::String?,
|
412
|
+
time_unit: ("MILLISECONDS" | "SECONDS" | "MICROSECONDS" | "NANOSECONDS")?,
|
413
|
+
version: ::Integer?,
|
414
|
+
measure_values: Array[
|
415
|
+
{
|
416
|
+
name: ::String,
|
417
|
+
value: ::String,
|
418
|
+
type: ("DOUBLE" | "BIGINT" | "VARCHAR" | "BOOLEAN" | "TIMESTAMP" | "MULTI")
|
419
|
+
},
|
420
|
+
]?
|
421
|
+
},
|
422
|
+
records: Array[
|
423
|
+
{
|
424
|
+
dimensions: Array[
|
425
|
+
{
|
426
|
+
name: ::String,
|
427
|
+
value: ::String,
|
428
|
+
dimension_value_type: ("VARCHAR")?
|
429
|
+
},
|
430
|
+
]?,
|
431
|
+
measure_name: ::String?,
|
432
|
+
measure_value: ::String?,
|
433
|
+
measure_value_type: ("DOUBLE" | "BIGINT" | "VARCHAR" | "BOOLEAN" | "TIMESTAMP" | "MULTI")?,
|
434
|
+
time: ::String?,
|
435
|
+
time_unit: ("MILLISECONDS" | "SECONDS" | "MICROSECONDS" | "NANOSECONDS")?,
|
436
|
+
version: ::Integer?,
|
437
|
+
measure_values: Array[
|
438
|
+
{
|
439
|
+
name: ::String,
|
440
|
+
value: ::String,
|
441
|
+
type: ("DOUBLE" | "BIGINT" | "VARCHAR" | "BOOLEAN" | "TIMESTAMP" | "MULTI")
|
442
|
+
},
|
443
|
+
]?
|
444
|
+
},
|
445
|
+
]
|
446
|
+
) -> _WriteRecordsResponseSuccess
|
447
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _WriteRecordsResponseSuccess
|
448
|
+
end
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module TimestreamWrite
|
10
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
class AccessDeniedException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
17
|
+
class ConflictException < ::Aws::Errors::ServiceError
|
18
|
+
def message: () -> ::String
|
19
|
+
end
|
20
|
+
class InternalServerException < ::Aws::Errors::ServiceError
|
21
|
+
def message: () -> ::String
|
22
|
+
end
|
23
|
+
class InvalidEndpointException < ::Aws::Errors::ServiceError
|
24
|
+
def message: () -> ::String
|
25
|
+
end
|
26
|
+
class RejectedRecordsException < ::Aws::Errors::ServiceError
|
27
|
+
def message: () -> ::String
|
28
|
+
def rejected_records: () -> ::String
|
29
|
+
end
|
30
|
+
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
31
|
+
def message: () -> ::String
|
32
|
+
end
|
33
|
+
class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
|
34
|
+
def message: () -> ::String
|
35
|
+
end
|
36
|
+
class ThrottlingException < ::Aws::Errors::ServiceError
|
37
|
+
def message: () -> ::String
|
38
|
+
end
|
39
|
+
class ValidationException < ::Aws::Errors::ServiceError
|
40
|
+
def message: () -> ::String
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/sig/resource.rbs
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module TimestreamWrite
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Resource.html
|
11
|
+
class Resource
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TimestreamWrite/Resource.html#initialize-instance_method
|
13
|
+
def initialize: (
|
14
|
+
?client: Client,
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?ignore_configured_endpoint_urls: bool,
|
36
|
+
?log_formatter: untyped,
|
37
|
+
?log_level: Symbol,
|
38
|
+
?logger: untyped,
|
39
|
+
?max_attempts: Integer,
|
40
|
+
?profile: String,
|
41
|
+
?request_min_compression_size_bytes: Integer,
|
42
|
+
?retry_backoff: Proc,
|
43
|
+
?retry_base_delay: Float,
|
44
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
45
|
+
?retry_limit: Integer,
|
46
|
+
?retry_max_delay: Integer,
|
47
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
48
|
+
?sdk_ua_app_id: String,
|
49
|
+
?secret_access_key: String,
|
50
|
+
?session_token: String,
|
51
|
+
?simple_json: bool,
|
52
|
+
?stub_responses: untyped,
|
53
|
+
?token_provider: untyped,
|
54
|
+
?use_dualstack_endpoint: bool,
|
55
|
+
?use_fips_endpoint: bool,
|
56
|
+
?validate_params: bool,
|
57
|
+
?endpoint_provider: untyped,
|
58
|
+
?http_proxy: String,
|
59
|
+
?http_open_timeout: (Float | Integer),
|
60
|
+
?http_read_timeout: (Float | Integer),
|
61
|
+
?http_idle_timeout: (Float | Integer),
|
62
|
+
?http_continue_timeout: (Float | Integer),
|
63
|
+
?ssl_timeout: (Float | Integer | nil),
|
64
|
+
?http_wire_trace: bool,
|
65
|
+
?ssl_verify_peer: bool,
|
66
|
+
?ssl_ca_bundle: String,
|
67
|
+
?ssl_ca_directory: String,
|
68
|
+
?ssl_ca_store: String,
|
69
|
+
?on_chunk_received: Proc,
|
70
|
+
?on_chunk_sent: Proc,
|
71
|
+
?raise_response_errors: bool
|
72
|
+
) -> void
|
73
|
+
| (?Hash[Symbol, untyped]) -> void
|
74
|
+
|
75
|
+
def client: () -> Client
|
76
|
+
|
77
|
+
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|