create_profile_job
¶
create_profile_job(
dataset_name: DatasetName,
name: JobName,
output_location: S3Location,
role_arn: Arn,
*,
config_overrides: Optional[DataBrewClientConfig] = None,
encryption_key_arn: Optional[EncryptionKeyArn] = None,
encryption_mode: Optional[EncryptionMode] = None,
log_subscription: Optional[LogSubscription] = None,
max_capacity: Optional[MaxCapacity] = None,
max_retries: Optional[MaxRetries] = None,
configuration: Optional[ProfileConfiguration] = None,
validation_configurations: Optional[ValidationConfigurationList] = None,
tags: Optional[TagMap] = None,
timeout: Optional[Timeout] = None,
job_sample: Optional[JobSample] = None,
) -> CreateProfileJobResponse
Creates a new job to analyze a dataset and create its data profile.
Parameters:
-
dataset_name(DatasetName) –The name of the dataset that this job is to act upon.
-
encryption_key_arn(Optional[EncryptionKeyArn], default:None) –The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.
-
encryption_mode(Optional[EncryptionMode], default:None) –The encryption mode for the job, which can be one of the following:
-
SSE-KMS-SSE-KMS- Server-side encryption with KMS-managed keys. -
SSE-S3- Server-side encryption with keys managed by Amazon S3.
-
-
name(JobName) –The name of the job to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
-
log_subscription(Optional[LogSubscription], default:None) –Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log stream for each job run.
-
max_capacity(Optional[MaxCapacity], default:None) –The maximum number of nodes that DataBrew can use when the job processes data.
-
max_retries(Optional[MaxRetries], default:None) –The maximum number of times to retry the job after a job run fails.
-
configuration(Optional[ProfileConfiguration], default:None) –Configuration for profile jobs. Used to select columns, do evaluations, and override default parameters of evaluations. When configuration is null, the profile job will run with default settings.
-
validation_configurations(Optional[ValidationConfigurationList], default:None) –List of validation configurations that are applied to the profile job.
-
role_arn(Arn) –The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
-
tags(Optional[TagMap], default:None) –Metadata tags to apply to this job.
-
timeout(Optional[Timeout], default:None) –The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of
TIMEOUT. -
job_sample(Optional[JobSample], default:None) –Sample configuration for profile jobs only. Determines the number of rows on which the profile job will be executed. If a JobSample value is not provided, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
Raises:
-
AccessDeniedException–Access to the specified resource was denied.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
ResourceNotFoundException–One or more resources can't be found.
-
ServiceQuotaExceededException–A service quota is exceeded.
-
ValidationException–The input parameters for this request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_databrew/_services/data_brew.py
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 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 | |