create_batch_import_job
¶
create_batch_import_job(
job_id: identifier,
input_path: s3BucketLocation,
output_path: s3BucketLocation,
event_type_name: identifier,
iam_role_arn: iamRoleArn,
*,
config_overrides: Optional[FraudDetectorClientConfig] = None,
tags: Optional[tagList] = None,
) -> CreateBatchImportJobResult
Creates a batch import job.
Parameters:
-
job_id(identifier) –The ID of the batch import job. The ID cannot be of a past job, unless the job exists in
CREATE_FAILEDstate. -
input_path(s3BucketLocation) –The URI that points to the Amazon S3 location of your data file.
-
output_path(s3BucketLocation) –The URI that points to the Amazon S3 location for storing your results.
-
event_type_name(identifier) –The name of the event type.
-
iam_role_arn(iamRoleArn) –The ARN of the IAM role created for Amazon S3 bucket that holds your data file.
The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 bucket. For more information about bucket permissions, see User policy examples in the Amazon S3 User Guide.
-
tags(Optional[tagList], default:None) –A collection of key-value pairs associated with this request.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
InternalServerException–An exception indicating an internal server error.
-
ResourceNotFoundException–An exception indicating the specified resource was not found.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.