mypy-boto3-timestream-write 1.19.9__py3-none-any.whl → 1.41.0__py3-none-any.whl
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.
- mypy_boto3_timestream_write/__init__.py +8 -5
- mypy_boto3_timestream_write/__init__.pyi +8 -5
- mypy_boto3_timestream_write/__main__.py +13 -9
- mypy_boto3_timestream_write/client.py +175 -115
- mypy_boto3_timestream_write/client.pyi +193 -114
- mypy_boto3_timestream_write/literals.py +185 -27
- mypy_boto3_timestream_write/literals.pyi +185 -27
- mypy_boto3_timestream_write/type_defs.py +457 -309
- mypy_boto3_timestream_write/type_defs.pyi +423 -338
- mypy_boto3_timestream_write/version.py +4 -1
- mypy_boto3_timestream_write-1.41.0.dist-info/METADATA +452 -0
- mypy_boto3_timestream_write-1.41.0.dist-info/RECORD +16 -0
- {mypy_boto3_timestream_write-1.19.9.dist-info → mypy_boto3_timestream_write-1.41.0.dist-info}/WHEEL +1 -1
- mypy_boto3_timestream_write-1.41.0.dist-info/licenses/LICENSE +21 -0
- mypy_boto3_timestream_write-1.19.9.dist-info/METADATA +0 -268
- mypy_boto3_timestream_write-1.19.9.dist-info/RECORD +0 -15
- {mypy_boto3_timestream_write-1.19.9.dist-info → mypy_boto3_timestream_write-1.41.0.dist-info}/top_level.txt +0 -0
|
@@ -1,397 +1,545 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Type annotations for timestream-write service type definitions.
|
|
3
3
|
|
|
4
|
-
[
|
|
4
|
+
[Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_timestream_write/type_defs/)
|
|
5
|
+
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
5
7
|
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
9
|
-
from mypy_boto3_timestream_write.type_defs import
|
|
11
|
+
from mypy_boto3_timestream_write.type_defs import BatchLoadProgressReportTypeDef
|
|
10
12
|
|
|
11
|
-
data:
|
|
13
|
+
data: BatchLoadProgressReportTypeDef = ...
|
|
12
14
|
```
|
|
13
15
|
"""
|
|
16
|
+
|
|
17
|
+
from __future__ import annotations
|
|
18
|
+
|
|
14
19
|
import sys
|
|
20
|
+
from collections.abc import Sequence
|
|
15
21
|
from datetime import datetime
|
|
16
|
-
from typing import
|
|
22
|
+
from typing import Union
|
|
17
23
|
|
|
18
|
-
from .literals import
|
|
24
|
+
from .literals import (
|
|
25
|
+
BatchLoadStatusType,
|
|
26
|
+
MeasureValueTypeType,
|
|
27
|
+
PartitionKeyEnforcementLevelType,
|
|
28
|
+
PartitionKeyTypeType,
|
|
29
|
+
S3EncryptionOptionType,
|
|
30
|
+
ScalarMeasureValueTypeType,
|
|
31
|
+
TableStatusType,
|
|
32
|
+
TimeUnitType,
|
|
33
|
+
)
|
|
19
34
|
|
|
20
|
-
if sys.version_info >= (3,
|
|
21
|
-
from typing import Literal
|
|
35
|
+
if sys.version_info >= (3, 12):
|
|
36
|
+
from typing import Literal, NotRequired, TypedDict
|
|
22
37
|
else:
|
|
23
|
-
from typing_extensions import Literal
|
|
24
|
-
if sys.version_info >= (3, 9):
|
|
25
|
-
from typing import TypedDict
|
|
26
|
-
else:
|
|
27
|
-
from typing_extensions import TypedDict
|
|
38
|
+
from typing_extensions import Literal, NotRequired, TypedDict
|
|
28
39
|
|
|
29
40
|
|
|
30
41
|
__all__ = (
|
|
31
|
-
"
|
|
42
|
+
"BatchLoadProgressReportTypeDef",
|
|
43
|
+
"BatchLoadTaskDescriptionTypeDef",
|
|
44
|
+
"BatchLoadTaskTypeDef",
|
|
45
|
+
"CreateBatchLoadTaskRequestTypeDef",
|
|
46
|
+
"CreateBatchLoadTaskResponseTypeDef",
|
|
47
|
+
"CreateDatabaseRequestTypeDef",
|
|
32
48
|
"CreateDatabaseResponseTypeDef",
|
|
33
|
-
"
|
|
49
|
+
"CreateTableRequestTypeDef",
|
|
34
50
|
"CreateTableResponseTypeDef",
|
|
51
|
+
"CsvConfigurationTypeDef",
|
|
52
|
+
"DataModelConfigurationOutputTypeDef",
|
|
53
|
+
"DataModelConfigurationTypeDef",
|
|
54
|
+
"DataModelConfigurationUnionTypeDef",
|
|
55
|
+
"DataModelOutputTypeDef",
|
|
56
|
+
"DataModelS3ConfigurationTypeDef",
|
|
57
|
+
"DataModelTypeDef",
|
|
58
|
+
"DataSourceConfigurationTypeDef",
|
|
59
|
+
"DataSourceS3ConfigurationTypeDef",
|
|
35
60
|
"DatabaseTypeDef",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
61
|
+
"DeleteDatabaseRequestTypeDef",
|
|
62
|
+
"DeleteTableRequestTypeDef",
|
|
63
|
+
"DescribeBatchLoadTaskRequestTypeDef",
|
|
64
|
+
"DescribeBatchLoadTaskResponseTypeDef",
|
|
65
|
+
"DescribeDatabaseRequestTypeDef",
|
|
39
66
|
"DescribeDatabaseResponseTypeDef",
|
|
40
67
|
"DescribeEndpointsResponseTypeDef",
|
|
41
|
-
"
|
|
68
|
+
"DescribeTableRequestTypeDef",
|
|
42
69
|
"DescribeTableResponseTypeDef",
|
|
70
|
+
"DimensionMappingTypeDef",
|
|
43
71
|
"DimensionTypeDef",
|
|
72
|
+
"EmptyResponseMetadataTypeDef",
|
|
44
73
|
"EndpointTypeDef",
|
|
45
|
-
"
|
|
74
|
+
"ListBatchLoadTasksRequestTypeDef",
|
|
75
|
+
"ListBatchLoadTasksResponseTypeDef",
|
|
76
|
+
"ListDatabasesRequestTypeDef",
|
|
46
77
|
"ListDatabasesResponseTypeDef",
|
|
47
|
-
"
|
|
78
|
+
"ListTablesRequestTypeDef",
|
|
48
79
|
"ListTablesResponseTypeDef",
|
|
49
|
-
"
|
|
80
|
+
"ListTagsForResourceRequestTypeDef",
|
|
50
81
|
"ListTagsForResourceResponseTypeDef",
|
|
82
|
+
"MagneticStoreRejectedDataLocationTypeDef",
|
|
83
|
+
"MagneticStoreWritePropertiesTypeDef",
|
|
84
|
+
"MeasureValueTypeDef",
|
|
85
|
+
"MixedMeasureMappingOutputTypeDef",
|
|
86
|
+
"MixedMeasureMappingTypeDef",
|
|
87
|
+
"MultiMeasureAttributeMappingTypeDef",
|
|
88
|
+
"MultiMeasureMappingsOutputTypeDef",
|
|
89
|
+
"MultiMeasureMappingsTypeDef",
|
|
90
|
+
"PartitionKeyTypeDef",
|
|
51
91
|
"RecordTypeDef",
|
|
92
|
+
"RecordsIngestedTypeDef",
|
|
93
|
+
"ReportConfigurationTypeDef",
|
|
94
|
+
"ReportS3ConfigurationTypeDef",
|
|
52
95
|
"ResponseMetadataTypeDef",
|
|
96
|
+
"ResumeBatchLoadTaskRequestTypeDef",
|
|
53
97
|
"RetentionPropertiesTypeDef",
|
|
98
|
+
"S3ConfigurationTypeDef",
|
|
99
|
+
"SchemaOutputTypeDef",
|
|
100
|
+
"SchemaTypeDef",
|
|
101
|
+
"SchemaUnionTypeDef",
|
|
54
102
|
"TableTypeDef",
|
|
55
|
-
"
|
|
103
|
+
"TagResourceRequestTypeDef",
|
|
56
104
|
"TagTypeDef",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
105
|
+
"UntagResourceRequestTypeDef",
|
|
106
|
+
"UpdateDatabaseRequestTypeDef",
|
|
59
107
|
"UpdateDatabaseResponseTypeDef",
|
|
60
|
-
"
|
|
108
|
+
"UpdateTableRequestTypeDef",
|
|
61
109
|
"UpdateTableResponseTypeDef",
|
|
62
|
-
"
|
|
110
|
+
"WriteRecordsRequestTypeDef",
|
|
111
|
+
"WriteRecordsResponseTypeDef",
|
|
63
112
|
)
|
|
64
113
|
|
|
65
|
-
_RequiredCreateDatabaseRequestRequestTypeDef = TypedDict(
|
|
66
|
-
"_RequiredCreateDatabaseRequestRequestTypeDef",
|
|
67
|
-
{
|
|
68
|
-
"DatabaseName": str,
|
|
69
|
-
},
|
|
70
|
-
)
|
|
71
|
-
_OptionalCreateDatabaseRequestRequestTypeDef = TypedDict(
|
|
72
|
-
"_OptionalCreateDatabaseRequestRequestTypeDef",
|
|
73
|
-
{
|
|
74
|
-
"KmsKeyId": str,
|
|
75
|
-
"Tags": Sequence["TagTypeDef"],
|
|
76
|
-
},
|
|
77
|
-
total=False,
|
|
78
|
-
)
|
|
79
114
|
|
|
115
|
+
class BatchLoadProgressReportTypeDef(TypedDict):
|
|
116
|
+
RecordsProcessed: NotRequired[int]
|
|
117
|
+
RecordsIngested: NotRequired[int]
|
|
118
|
+
ParseFailures: NotRequired[int]
|
|
119
|
+
RecordIngestionFailures: NotRequired[int]
|
|
120
|
+
FileFailures: NotRequired[int]
|
|
121
|
+
BytesMetered: NotRequired[int]
|
|
80
122
|
|
|
81
|
-
class CreateDatabaseRequestRequestTypeDef(
|
|
82
|
-
_RequiredCreateDatabaseRequestRequestTypeDef, _OptionalCreateDatabaseRequestRequestTypeDef
|
|
83
|
-
):
|
|
84
|
-
pass
|
|
85
123
|
|
|
124
|
+
class BatchLoadTaskTypeDef(TypedDict):
|
|
125
|
+
TaskId: NotRequired[str]
|
|
126
|
+
TaskStatus: NotRequired[BatchLoadStatusType]
|
|
127
|
+
DatabaseName: NotRequired[str]
|
|
128
|
+
TableName: NotRequired[str]
|
|
129
|
+
CreationTime: NotRequired[datetime]
|
|
130
|
+
LastUpdatedTime: NotRequired[datetime]
|
|
131
|
+
ResumableUntil: NotRequired[datetime]
|
|
86
132
|
|
|
87
|
-
CreateDatabaseResponseTypeDef = TypedDict(
|
|
88
|
-
"CreateDatabaseResponseTypeDef",
|
|
89
|
-
{
|
|
90
|
-
"Database": "DatabaseTypeDef",
|
|
91
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
92
|
-
},
|
|
93
|
-
)
|
|
94
133
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
)
|
|
102
|
-
_OptionalCreateTableRequestRequestTypeDef = TypedDict(
|
|
103
|
-
"_OptionalCreateTableRequestRequestTypeDef",
|
|
104
|
-
{
|
|
105
|
-
"RetentionProperties": "RetentionPropertiesTypeDef",
|
|
106
|
-
"Tags": Sequence["TagTypeDef"],
|
|
107
|
-
},
|
|
108
|
-
total=False,
|
|
109
|
-
)
|
|
134
|
+
class ResponseMetadataTypeDef(TypedDict):
|
|
135
|
+
RequestId: str
|
|
136
|
+
HTTPStatusCode: int
|
|
137
|
+
HTTPHeaders: dict[str, str]
|
|
138
|
+
RetryAttempts: int
|
|
139
|
+
HostId: NotRequired[str]
|
|
110
140
|
|
|
111
141
|
|
|
112
|
-
class
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
pass
|
|
142
|
+
class TagTypeDef(TypedDict):
|
|
143
|
+
Key: str
|
|
144
|
+
Value: str
|
|
116
145
|
|
|
117
146
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
147
|
+
class DatabaseTypeDef(TypedDict):
|
|
148
|
+
Arn: NotRequired[str]
|
|
149
|
+
DatabaseName: NotRequired[str]
|
|
150
|
+
TableCount: NotRequired[int]
|
|
151
|
+
KmsKeyId: NotRequired[str]
|
|
152
|
+
CreationTime: NotRequired[datetime]
|
|
153
|
+
LastUpdatedTime: NotRequired[datetime]
|
|
125
154
|
|
|
126
|
-
DatabaseTypeDef = TypedDict(
|
|
127
|
-
"DatabaseTypeDef",
|
|
128
|
-
{
|
|
129
|
-
"Arn": str,
|
|
130
|
-
"DatabaseName": str,
|
|
131
|
-
"TableCount": int,
|
|
132
|
-
"KmsKeyId": str,
|
|
133
|
-
"CreationTime": datetime,
|
|
134
|
-
"LastUpdatedTime": datetime,
|
|
135
|
-
},
|
|
136
|
-
total=False,
|
|
137
|
-
)
|
|
138
155
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"DatabaseName": str,
|
|
143
|
-
},
|
|
144
|
-
)
|
|
156
|
+
class RetentionPropertiesTypeDef(TypedDict):
|
|
157
|
+
MemoryStoreRetentionPeriodInHours: int
|
|
158
|
+
MagneticStoreRetentionPeriodInDays: int
|
|
145
159
|
|
|
146
|
-
DeleteTableRequestRequestTypeDef = TypedDict(
|
|
147
|
-
"DeleteTableRequestRequestTypeDef",
|
|
148
|
-
{
|
|
149
|
-
"DatabaseName": str,
|
|
150
|
-
"TableName": str,
|
|
151
|
-
},
|
|
152
|
-
)
|
|
153
160
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
161
|
+
class CsvConfigurationTypeDef(TypedDict):
|
|
162
|
+
ColumnSeparator: NotRequired[str]
|
|
163
|
+
EscapeChar: NotRequired[str]
|
|
164
|
+
QuoteChar: NotRequired[str]
|
|
165
|
+
NullValue: NotRequired[str]
|
|
166
|
+
TrimWhiteSpace: NotRequired[bool]
|
|
160
167
|
|
|
161
|
-
DescribeDatabaseResponseTypeDef = TypedDict(
|
|
162
|
-
"DescribeDatabaseResponseTypeDef",
|
|
163
|
-
{
|
|
164
|
-
"Database": "DatabaseTypeDef",
|
|
165
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
166
|
-
},
|
|
167
|
-
)
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"Endpoints": List["EndpointTypeDef"],
|
|
173
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
174
|
-
},
|
|
175
|
-
)
|
|
169
|
+
class DataModelS3ConfigurationTypeDef(TypedDict):
|
|
170
|
+
BucketName: NotRequired[str]
|
|
171
|
+
ObjectKey: NotRequired[str]
|
|
176
172
|
|
|
177
|
-
DescribeTableRequestRequestTypeDef = TypedDict(
|
|
178
|
-
"DescribeTableRequestRequestTypeDef",
|
|
179
|
-
{
|
|
180
|
-
"DatabaseName": str,
|
|
181
|
-
"TableName": str,
|
|
182
|
-
},
|
|
183
|
-
)
|
|
184
173
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
174
|
+
class DimensionMappingTypeDef(TypedDict):
|
|
175
|
+
SourceColumn: NotRequired[str]
|
|
176
|
+
DestinationColumn: NotRequired[str]
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class DataSourceS3ConfigurationTypeDef(TypedDict):
|
|
180
|
+
BucketName: str
|
|
181
|
+
ObjectKeyPrefix: NotRequired[str]
|
|
182
|
+
|
|
192
183
|
|
|
193
|
-
|
|
194
|
-
|
|
184
|
+
class DeleteDatabaseRequestTypeDef(TypedDict):
|
|
185
|
+
DatabaseName: str
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
class DeleteTableRequestTypeDef(TypedDict):
|
|
189
|
+
DatabaseName: str
|
|
190
|
+
TableName: str
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
class DescribeBatchLoadTaskRequestTypeDef(TypedDict):
|
|
194
|
+
TaskId: str
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class DescribeDatabaseRequestTypeDef(TypedDict):
|
|
198
|
+
DatabaseName: str
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
class EndpointTypeDef(TypedDict):
|
|
202
|
+
Address: str
|
|
203
|
+
CachePeriodInMinutes: int
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
class DescribeTableRequestTypeDef(TypedDict):
|
|
207
|
+
DatabaseName: str
|
|
208
|
+
TableName: str
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
class DimensionTypeDef(TypedDict):
|
|
212
|
+
Name: str
|
|
213
|
+
Value: str
|
|
214
|
+
DimensionValueType: NotRequired[Literal["VARCHAR"]]
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
class ListBatchLoadTasksRequestTypeDef(TypedDict):
|
|
218
|
+
NextToken: NotRequired[str]
|
|
219
|
+
MaxResults: NotRequired[int]
|
|
220
|
+
TaskStatus: NotRequired[BatchLoadStatusType]
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class ListDatabasesRequestTypeDef(TypedDict):
|
|
224
|
+
NextToken: NotRequired[str]
|
|
225
|
+
MaxResults: NotRequired[int]
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class ListTablesRequestTypeDef(TypedDict):
|
|
229
|
+
DatabaseName: NotRequired[str]
|
|
230
|
+
NextToken: NotRequired[str]
|
|
231
|
+
MaxResults: NotRequired[int]
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
class ListTagsForResourceRequestTypeDef(TypedDict):
|
|
235
|
+
ResourceARN: str
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
class S3ConfigurationTypeDef(TypedDict):
|
|
239
|
+
BucketName: NotRequired[str]
|
|
240
|
+
ObjectKeyPrefix: NotRequired[str]
|
|
241
|
+
EncryptionOption: NotRequired[S3EncryptionOptionType]
|
|
242
|
+
KmsKeyId: NotRequired[str]
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
MeasureValueTypeDef = TypedDict(
|
|
246
|
+
"MeasureValueTypeDef",
|
|
195
247
|
{
|
|
196
248
|
"Name": str,
|
|
197
249
|
"Value": str,
|
|
250
|
+
"Type": MeasureValueTypeType,
|
|
198
251
|
},
|
|
199
252
|
)
|
|
200
|
-
_OptionalDimensionTypeDef = TypedDict(
|
|
201
|
-
"_OptionalDimensionTypeDef",
|
|
202
|
-
{
|
|
203
|
-
"DimensionValueType": Literal["VARCHAR"],
|
|
204
|
-
},
|
|
205
|
-
total=False,
|
|
206
|
-
)
|
|
207
253
|
|
|
208
254
|
|
|
209
|
-
class
|
|
210
|
-
|
|
255
|
+
class MultiMeasureAttributeMappingTypeDef(TypedDict):
|
|
256
|
+
SourceColumn: str
|
|
257
|
+
TargetMultiMeasureAttributeName: NotRequired[str]
|
|
258
|
+
MeasureValueType: NotRequired[ScalarMeasureValueTypeType]
|
|
211
259
|
|
|
212
260
|
|
|
213
|
-
|
|
214
|
-
"
|
|
261
|
+
PartitionKeyTypeDef = TypedDict(
|
|
262
|
+
"PartitionKeyTypeDef",
|
|
215
263
|
{
|
|
216
|
-
"
|
|
217
|
-
"
|
|
264
|
+
"Type": PartitionKeyTypeType,
|
|
265
|
+
"Name": NotRequired[str],
|
|
266
|
+
"EnforcementInRecord": NotRequired[PartitionKeyEnforcementLevelType],
|
|
218
267
|
},
|
|
219
268
|
)
|
|
220
269
|
|
|
221
|
-
ListDatabasesRequestRequestTypeDef = TypedDict(
|
|
222
|
-
"ListDatabasesRequestRequestTypeDef",
|
|
223
|
-
{
|
|
224
|
-
"NextToken": str,
|
|
225
|
-
"MaxResults": int,
|
|
226
|
-
},
|
|
227
|
-
total=False,
|
|
228
|
-
)
|
|
229
270
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"NextToken": str,
|
|
235
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
236
|
-
},
|
|
237
|
-
)
|
|
271
|
+
class RecordsIngestedTypeDef(TypedDict):
|
|
272
|
+
Total: NotRequired[int]
|
|
273
|
+
MemoryStore: NotRequired[int]
|
|
274
|
+
MagneticStore: NotRequired[int]
|
|
238
275
|
|
|
239
|
-
ListTablesRequestRequestTypeDef = TypedDict(
|
|
240
|
-
"ListTablesRequestRequestTypeDef",
|
|
241
|
-
{
|
|
242
|
-
"DatabaseName": str,
|
|
243
|
-
"NextToken": str,
|
|
244
|
-
"MaxResults": int,
|
|
245
|
-
},
|
|
246
|
-
total=False,
|
|
247
|
-
)
|
|
248
276
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
255
|
-
},
|
|
256
|
-
)
|
|
277
|
+
class ReportS3ConfigurationTypeDef(TypedDict):
|
|
278
|
+
BucketName: str
|
|
279
|
+
ObjectKeyPrefix: NotRequired[str]
|
|
280
|
+
EncryptionOption: NotRequired[S3EncryptionOptionType]
|
|
281
|
+
KmsKeyId: NotRequired[str]
|
|
257
282
|
|
|
258
|
-
ListTagsForResourceRequestRequestTypeDef = TypedDict(
|
|
259
|
-
"ListTagsForResourceRequestRequestTypeDef",
|
|
260
|
-
{
|
|
261
|
-
"ResourceARN": str,
|
|
262
|
-
},
|
|
263
|
-
)
|
|
264
283
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
{
|
|
268
|
-
"Tags": List["TagTypeDef"],
|
|
269
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
270
|
-
},
|
|
271
|
-
)
|
|
284
|
+
class ResumeBatchLoadTaskRequestTypeDef(TypedDict):
|
|
285
|
+
TaskId: str
|
|
272
286
|
|
|
273
|
-
RecordTypeDef = TypedDict(
|
|
274
|
-
"RecordTypeDef",
|
|
275
|
-
{
|
|
276
|
-
"Dimensions": Sequence["DimensionTypeDef"],
|
|
277
|
-
"MeasureName": str,
|
|
278
|
-
"MeasureValue": str,
|
|
279
|
-
"MeasureValueType": MeasureValueTypeType,
|
|
280
|
-
"Time": str,
|
|
281
|
-
"TimeUnit": TimeUnitType,
|
|
282
|
-
"Version": int,
|
|
283
|
-
},
|
|
284
|
-
total=False,
|
|
285
|
-
)
|
|
286
287
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
"RequestId": str,
|
|
291
|
-
"HostId": str,
|
|
292
|
-
"HTTPStatusCode": int,
|
|
293
|
-
"HTTPHeaders": Dict[str, Any],
|
|
294
|
-
"RetryAttempts": int,
|
|
295
|
-
},
|
|
296
|
-
)
|
|
288
|
+
class UntagResourceRequestTypeDef(TypedDict):
|
|
289
|
+
ResourceARN: str
|
|
290
|
+
TagKeys: Sequence[str]
|
|
297
291
|
|
|
298
|
-
RetentionPropertiesTypeDef = TypedDict(
|
|
299
|
-
"RetentionPropertiesTypeDef",
|
|
300
|
-
{
|
|
301
|
-
"MemoryStoreRetentionPeriodInHours": int,
|
|
302
|
-
"MagneticStoreRetentionPeriodInDays": int,
|
|
303
|
-
},
|
|
304
|
-
)
|
|
305
292
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"Arn": str,
|
|
310
|
-
"TableName": str,
|
|
311
|
-
"DatabaseName": str,
|
|
312
|
-
"TableStatus": TableStatusType,
|
|
313
|
-
"RetentionProperties": "RetentionPropertiesTypeDef",
|
|
314
|
-
"CreationTime": datetime,
|
|
315
|
-
"LastUpdatedTime": datetime,
|
|
316
|
-
},
|
|
317
|
-
total=False,
|
|
318
|
-
)
|
|
293
|
+
class UpdateDatabaseRequestTypeDef(TypedDict):
|
|
294
|
+
DatabaseName: str
|
|
295
|
+
KmsKeyId: str
|
|
319
296
|
|
|
320
|
-
TagResourceRequestRequestTypeDef = TypedDict(
|
|
321
|
-
"TagResourceRequestRequestTypeDef",
|
|
322
|
-
{
|
|
323
|
-
"ResourceARN": str,
|
|
324
|
-
"Tags": Sequence["TagTypeDef"],
|
|
325
|
-
},
|
|
326
|
-
)
|
|
327
297
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
"Key": str,
|
|
332
|
-
"Value": str,
|
|
333
|
-
},
|
|
334
|
-
)
|
|
298
|
+
class CreateBatchLoadTaskResponseTypeDef(TypedDict):
|
|
299
|
+
TaskId: str
|
|
300
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
335
301
|
|
|
336
|
-
UntagResourceRequestRequestTypeDef = TypedDict(
|
|
337
|
-
"UntagResourceRequestRequestTypeDef",
|
|
338
|
-
{
|
|
339
|
-
"ResourceARN": str,
|
|
340
|
-
"TagKeys": Sequence[str],
|
|
341
|
-
},
|
|
342
|
-
)
|
|
343
302
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
{
|
|
347
|
-
"DatabaseName": str,
|
|
348
|
-
"KmsKeyId": str,
|
|
349
|
-
},
|
|
350
|
-
)
|
|
303
|
+
class EmptyResponseMetadataTypeDef(TypedDict):
|
|
304
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
351
305
|
|
|
352
|
-
UpdateDatabaseResponseTypeDef = TypedDict(
|
|
353
|
-
"UpdateDatabaseResponseTypeDef",
|
|
354
|
-
{
|
|
355
|
-
"Database": "DatabaseTypeDef",
|
|
356
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
357
|
-
},
|
|
358
|
-
)
|
|
359
306
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
"TableName": str,
|
|
365
|
-
"RetentionProperties": "RetentionPropertiesTypeDef",
|
|
366
|
-
},
|
|
367
|
-
)
|
|
307
|
+
class ListBatchLoadTasksResponseTypeDef(TypedDict):
|
|
308
|
+
BatchLoadTasks: list[BatchLoadTaskTypeDef]
|
|
309
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
310
|
+
NextToken: NotRequired[str]
|
|
368
311
|
|
|
369
|
-
UpdateTableResponseTypeDef = TypedDict(
|
|
370
|
-
"UpdateTableResponseTypeDef",
|
|
371
|
-
{
|
|
372
|
-
"Table": "TableTypeDef",
|
|
373
|
-
"ResponseMetadata": "ResponseMetadataTypeDef",
|
|
374
|
-
},
|
|
375
|
-
)
|
|
376
312
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
313
|
+
class CreateDatabaseRequestTypeDef(TypedDict):
|
|
314
|
+
DatabaseName: str
|
|
315
|
+
KmsKeyId: NotRequired[str]
|
|
316
|
+
Tags: NotRequired[Sequence[TagTypeDef]]
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class ListTagsForResourceResponseTypeDef(TypedDict):
|
|
320
|
+
Tags: list[TagTypeDef]
|
|
321
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
class TagResourceRequestTypeDef(TypedDict):
|
|
325
|
+
ResourceARN: str
|
|
326
|
+
Tags: Sequence[TagTypeDef]
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
class CreateDatabaseResponseTypeDef(TypedDict):
|
|
330
|
+
Database: DatabaseTypeDef
|
|
331
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
class DescribeDatabaseResponseTypeDef(TypedDict):
|
|
335
|
+
Database: DatabaseTypeDef
|
|
336
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
class ListDatabasesResponseTypeDef(TypedDict):
|
|
340
|
+
Databases: list[DatabaseTypeDef]
|
|
341
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
342
|
+
NextToken: NotRequired[str]
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
class UpdateDatabaseResponseTypeDef(TypedDict):
|
|
346
|
+
Database: DatabaseTypeDef
|
|
347
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
class DataSourceConfigurationTypeDef(TypedDict):
|
|
351
|
+
DataSourceS3Configuration: DataSourceS3ConfigurationTypeDef
|
|
352
|
+
DataFormat: Literal["CSV"]
|
|
353
|
+
CsvConfiguration: NotRequired[CsvConfigurationTypeDef]
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
class DescribeEndpointsResponseTypeDef(TypedDict):
|
|
357
|
+
Endpoints: list[EndpointTypeDef]
|
|
358
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
class MagneticStoreRejectedDataLocationTypeDef(TypedDict):
|
|
362
|
+
S3Configuration: NotRequired[S3ConfigurationTypeDef]
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
class RecordTypeDef(TypedDict):
|
|
366
|
+
Dimensions: NotRequired[Sequence[DimensionTypeDef]]
|
|
367
|
+
MeasureName: NotRequired[str]
|
|
368
|
+
MeasureValue: NotRequired[str]
|
|
369
|
+
MeasureValueType: NotRequired[MeasureValueTypeType]
|
|
370
|
+
Time: NotRequired[str]
|
|
371
|
+
TimeUnit: NotRequired[TimeUnitType]
|
|
372
|
+
Version: NotRequired[int]
|
|
373
|
+
MeasureValues: NotRequired[Sequence[MeasureValueTypeDef]]
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
class MixedMeasureMappingOutputTypeDef(TypedDict):
|
|
377
|
+
MeasureValueType: MeasureValueTypeType
|
|
378
|
+
MeasureName: NotRequired[str]
|
|
379
|
+
SourceColumn: NotRequired[str]
|
|
380
|
+
TargetMeasureName: NotRequired[str]
|
|
381
|
+
MultiMeasureAttributeMappings: NotRequired[list[MultiMeasureAttributeMappingTypeDef]]
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
class MixedMeasureMappingTypeDef(TypedDict):
|
|
385
|
+
MeasureValueType: MeasureValueTypeType
|
|
386
|
+
MeasureName: NotRequired[str]
|
|
387
|
+
SourceColumn: NotRequired[str]
|
|
388
|
+
TargetMeasureName: NotRequired[str]
|
|
389
|
+
MultiMeasureAttributeMappings: NotRequired[Sequence[MultiMeasureAttributeMappingTypeDef]]
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
class MultiMeasureMappingsOutputTypeDef(TypedDict):
|
|
393
|
+
MultiMeasureAttributeMappings: list[MultiMeasureAttributeMappingTypeDef]
|
|
394
|
+
TargetMultiMeasureName: NotRequired[str]
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
class MultiMeasureMappingsTypeDef(TypedDict):
|
|
398
|
+
MultiMeasureAttributeMappings: Sequence[MultiMeasureAttributeMappingTypeDef]
|
|
399
|
+
TargetMultiMeasureName: NotRequired[str]
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
class SchemaOutputTypeDef(TypedDict):
|
|
403
|
+
CompositePartitionKey: NotRequired[list[PartitionKeyTypeDef]]
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
class SchemaTypeDef(TypedDict):
|
|
407
|
+
CompositePartitionKey: NotRequired[Sequence[PartitionKeyTypeDef]]
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
class WriteRecordsResponseTypeDef(TypedDict):
|
|
411
|
+
RecordsIngested: RecordsIngestedTypeDef
|
|
412
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
class ReportConfigurationTypeDef(TypedDict):
|
|
416
|
+
ReportS3Configuration: NotRequired[ReportS3ConfigurationTypeDef]
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
class MagneticStoreWritePropertiesTypeDef(TypedDict):
|
|
420
|
+
EnableMagneticStoreWrites: bool
|
|
421
|
+
MagneticStoreRejectedDataLocation: NotRequired[MagneticStoreRejectedDataLocationTypeDef]
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
class WriteRecordsRequestTypeDef(TypedDict):
|
|
425
|
+
DatabaseName: str
|
|
426
|
+
TableName: str
|
|
427
|
+
Records: Sequence[RecordTypeDef]
|
|
428
|
+
CommonAttributes: NotRequired[RecordTypeDef]
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
class DataModelOutputTypeDef(TypedDict):
|
|
432
|
+
DimensionMappings: list[DimensionMappingTypeDef]
|
|
433
|
+
TimeColumn: NotRequired[str]
|
|
434
|
+
TimeUnit: NotRequired[TimeUnitType]
|
|
435
|
+
MultiMeasureMappings: NotRequired[MultiMeasureMappingsOutputTypeDef]
|
|
436
|
+
MixedMeasureMappings: NotRequired[list[MixedMeasureMappingOutputTypeDef]]
|
|
437
|
+
MeasureNameColumn: NotRequired[str]
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
class DataModelTypeDef(TypedDict):
|
|
441
|
+
DimensionMappings: Sequence[DimensionMappingTypeDef]
|
|
442
|
+
TimeColumn: NotRequired[str]
|
|
443
|
+
TimeUnit: NotRequired[TimeUnitType]
|
|
444
|
+
MultiMeasureMappings: NotRequired[MultiMeasureMappingsTypeDef]
|
|
445
|
+
MixedMeasureMappings: NotRequired[Sequence[MixedMeasureMappingTypeDef]]
|
|
446
|
+
MeasureNameColumn: NotRequired[str]
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
SchemaUnionTypeDef = Union[SchemaTypeDef, SchemaOutputTypeDef]
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
class TableTypeDef(TypedDict):
|
|
453
|
+
Arn: NotRequired[str]
|
|
454
|
+
TableName: NotRequired[str]
|
|
455
|
+
DatabaseName: NotRequired[str]
|
|
456
|
+
TableStatus: NotRequired[TableStatusType]
|
|
457
|
+
RetentionProperties: NotRequired[RetentionPropertiesTypeDef]
|
|
458
|
+
CreationTime: NotRequired[datetime]
|
|
459
|
+
LastUpdatedTime: NotRequired[datetime]
|
|
460
|
+
MagneticStoreWriteProperties: NotRequired[MagneticStoreWritePropertiesTypeDef]
|
|
461
|
+
Schema: NotRequired[SchemaOutputTypeDef]
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
class DataModelConfigurationOutputTypeDef(TypedDict):
|
|
465
|
+
DataModel: NotRequired[DataModelOutputTypeDef]
|
|
466
|
+
DataModelS3Configuration: NotRequired[DataModelS3ConfigurationTypeDef]
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
class DataModelConfigurationTypeDef(TypedDict):
|
|
470
|
+
DataModel: NotRequired[DataModelTypeDef]
|
|
471
|
+
DataModelS3Configuration: NotRequired[DataModelS3ConfigurationTypeDef]
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
class CreateTableRequestTypeDef(TypedDict):
|
|
475
|
+
DatabaseName: str
|
|
476
|
+
TableName: str
|
|
477
|
+
RetentionProperties: NotRequired[RetentionPropertiesTypeDef]
|
|
478
|
+
Tags: NotRequired[Sequence[TagTypeDef]]
|
|
479
|
+
MagneticStoreWriteProperties: NotRequired[MagneticStoreWritePropertiesTypeDef]
|
|
480
|
+
Schema: NotRequired[SchemaUnionTypeDef]
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
class UpdateTableRequestTypeDef(TypedDict):
|
|
484
|
+
DatabaseName: str
|
|
485
|
+
TableName: str
|
|
486
|
+
RetentionProperties: NotRequired[RetentionPropertiesTypeDef]
|
|
487
|
+
MagneticStoreWriteProperties: NotRequired[MagneticStoreWritePropertiesTypeDef]
|
|
488
|
+
Schema: NotRequired[SchemaUnionTypeDef]
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
class CreateTableResponseTypeDef(TypedDict):
|
|
492
|
+
Table: TableTypeDef
|
|
493
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
class DescribeTableResponseTypeDef(TypedDict):
|
|
497
|
+
Table: TableTypeDef
|
|
498
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
class ListTablesResponseTypeDef(TypedDict):
|
|
502
|
+
Tables: list[TableTypeDef]
|
|
503
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
504
|
+
NextToken: NotRequired[str]
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
class UpdateTableResponseTypeDef(TypedDict):
|
|
508
|
+
Table: TableTypeDef
|
|
509
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
class BatchLoadTaskDescriptionTypeDef(TypedDict):
|
|
513
|
+
TaskId: NotRequired[str]
|
|
514
|
+
ErrorMessage: NotRequired[str]
|
|
515
|
+
DataSourceConfiguration: NotRequired[DataSourceConfigurationTypeDef]
|
|
516
|
+
ProgressReport: NotRequired[BatchLoadProgressReportTypeDef]
|
|
517
|
+
ReportConfiguration: NotRequired[ReportConfigurationTypeDef]
|
|
518
|
+
DataModelConfiguration: NotRequired[DataModelConfigurationOutputTypeDef]
|
|
519
|
+
TargetDatabaseName: NotRequired[str]
|
|
520
|
+
TargetTableName: NotRequired[str]
|
|
521
|
+
TaskStatus: NotRequired[BatchLoadStatusType]
|
|
522
|
+
RecordVersion: NotRequired[int]
|
|
523
|
+
CreationTime: NotRequired[datetime]
|
|
524
|
+
LastUpdatedTime: NotRequired[datetime]
|
|
525
|
+
ResumableUntil: NotRequired[datetime]
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
DataModelConfigurationUnionTypeDef = Union[
|
|
529
|
+
DataModelConfigurationTypeDef, DataModelConfigurationOutputTypeDef
|
|
530
|
+
]
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
class DescribeBatchLoadTaskResponseTypeDef(TypedDict):
|
|
534
|
+
BatchLoadTaskDescription: BatchLoadTaskDescriptionTypeDef
|
|
535
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
392
536
|
|
|
393
537
|
|
|
394
|
-
class
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
538
|
+
class CreateBatchLoadTaskRequestTypeDef(TypedDict):
|
|
539
|
+
DataSourceConfiguration: DataSourceConfigurationTypeDef
|
|
540
|
+
ReportConfiguration: ReportConfigurationTypeDef
|
|
541
|
+
TargetDatabaseName: str
|
|
542
|
+
TargetTableName: str
|
|
543
|
+
ClientToken: NotRequired[str]
|
|
544
|
+
DataModelConfiguration: NotRequired[DataModelConfigurationUnionTypeDef]
|
|
545
|
+
RecordVersion: NotRequired[int]
|