create_batch_prediction_job
¶
create_batch_prediction_job(
job_id: identifier,
input_path: s3BucketLocation,
output_path: s3BucketLocation,
event_type_name: identifier,
detector_name: identifier,
iam_role_arn: iamRoleArn,
*,
config_overrides: Optional[FraudDetectorClientConfig] = None,
detector_version: Optional[wholeNumberVersionString] = None,
tags: Optional[tagList] = None,
) -> CreateBatchPredictionJobResult
Creates a batch prediction job.
Parameters:
-
job_id(identifier) –The ID of the batch prediction job.
-
input_path(s3BucketLocation) –The Amazon S3 location of your training file.
-
output_path(s3BucketLocation) –The Amazon S3 location of your output file.
-
event_type_name(identifier) –The name of the event type.
-
detector_name(identifier) –The name of the detector.
-
detector_version(Optional[wholeNumberVersionString], default:None) –The detector version.
-
iam_role_arn(iamRoleArn) –The ARN of the IAM role to use for this job request.
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 and value pairs.
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.