create_batch_load_task
async
¶
create_batch_load_task(
data_source_configuration: DataSourceConfiguration,
report_configuration: ReportConfiguration,
target_database_name: ResourceCreateAPIName,
target_table_name: ResourceCreateAPIName,
*,
config_overrides: Optional[AsyncTimestreamWriteClientConfig] = None,
client_token: Optional[ClientRequestToken] = None,
data_model_configuration: Optional[DataModelConfiguration] = None,
record_version: Optional[RecordVersion] = None,
) -> CreateBatchLoadTaskResponse
Creates a new Timestream batch load task. A batch load task processes data from a CSV source in an S3 location and writes to a Timestream table. A mapping from source to target is defined in a batch load task. Errors and events are written to a report at an S3 location. For the report, if the KMS key is not specified, the report will be encrypted with an S3 managed key when SSE_S3 is the option. Otherwise an error is thrown. For more information, see Amazon Web Services managed keys. Service quotas apply. For details, see code sample.
Parameters:
-
client_token(Optional[ClientRequestToken], default:None) – -
data_source_configuration(DataSourceConfiguration) –Defines configuration details about the data source for a batch load task.
-
target_database_name(ResourceCreateAPIName) –Target Timestream database for a batch load task.
-
target_table_name(ResourceCreateAPIName) –Target Timestream table for a batch load task.
-
record_version(Optional[RecordVersion], default:None) –
Raises:
-
AccessDeniedException–You are not authorized to perform this action.
-
ConflictException–Timestream was unable to process this request because it contains resource that already exists.
-
InternalServerException–Timestream was unable to fully process this request because of an internal server error.
-
InvalidEndpointException–The requested endpoint was not valid.
-
ResourceNotFoundException–The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.
-
ServiceQuotaExceededException–The instance quota of resource exceeded for this account.
-
ThrottlingException–Too many requests were made by a user and they exceeded the service quotas. The request was throttled.
-
ValidationException–An invalid or malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_timestream_write/_services/async_timestream_write.py
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | |