create_batch_segment_job
async
¶
create_batch_segment_job(
job_name: Name,
solution_version_arn: Arn,
job_input: BatchSegmentJobInput,
job_output: BatchSegmentJobOutput,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncPersonalizeClientConfig] = None,
filter_arn: Optional[Arn] = None,
num_results: Optional[NumBatchResults] = None,
tags: Optional[Tags] = None,
) -> CreateBatchSegmentJobResponse
Creates a batch segment job. The operation can handle up to 50 million records and the input file must be in JSON format. For more information, see Getting batch recommendations and user segments.
Parameters:
-
job_name(Name) –The name of the batch segment job to create.
-
solution_version_arn(Arn) –The Amazon Resource Name (ARN) of the solution version you want the batch segment job to use to generate batch segments.
-
filter_arn(Optional[Arn], default:None) –The ARN of the filter to apply to the batch segment job. For more information on using filters, see Filtering batch recommendations.
-
num_results(Optional[NumBatchResults], default:None) –The number of predicted users generated by the batch segment job for each line of input data. The maximum number of users per segment is 5 million.
-
job_input(BatchSegmentJobInput) –The Amazon S3 path for the input data used to generate the batch segment job.
-
job_output(BatchSegmentJobOutput) –The Amazon S3 path for the bucket where the job's output will be stored.
-
role_arn(RoleArn) –The ARN of the Amazon Identity and Access Management role that has permissions to read and write to your input and output Amazon S3 buckets respectively.
-
tags(Optional[Tags], default:None) –A list of tags to apply to the batch segment job.
Raises:
-
InvalidInputException–Provide a valid value for the field or parameter.
-
LimitExceededException–The limit on the number of requests per second has been exceeded.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceInUseException–The specified resource is in use.
-
ResourceNotFoundException–Could not find the specified resource.
-
TooManyTagsException–You have exceeded the maximum number of tags you can apply to this resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_personalize/_services/async_personalize.py
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 | |