create_classification_job
async
¶
create_classification_job(
*,
config_overrides: Optional[AsyncMacie2ClientConfig] = None,
allow_list_ids: Optional[__listOf__string] = None,
client_token: Optional[__string] = None,
custom_data_identifier_ids: Optional[__listOf__string] = None,
description: Optional[__string] = None,
initial_run: Optional[__boolean] = None,
job_type: Optional[JobType] = None,
managed_data_identifier_ids: Optional[__listOf__string] = None,
managed_data_identifier_selector: Optional[ManagedDataIdentifierSelector] = None,
name: Optional[__string] = None,
s3_job_definition: Optional[S3JobDefinition] = None,
sampling_percentage: Optional[__integer] = None,
schedule_frequency: Optional[JobScheduleFrequency] = None,
tags: Optional[TagMap] = None,
) -> CreateClassificationJobResponse
Creates and defines the settings for a classification job.
Parameters:
-
allow_list_ids(Optional[__listOf__string], default:None) –An array of unique identifiers, one for each allow list for the job to use when it analyzes data.
-
client_token(Optional[__string], default:None) –A unique, case-sensitive token that you provide to ensure the idempotency of the request.
-
custom_data_identifier_ids(Optional[__listOf__string], default:None) –An array of unique identifiers, one for each custom data identifier for the job to use when it analyzes data. To use only managed data identifiers, don't specify a value for this property and specify a value other than NONE for the managedDataIdentifierSelector property.
-
description(Optional[__string], default:None) –A custom description of the job. The description can contain as many as 200 characters.
-
initial_run(Optional[__boolean], default:None) –For a recurring job, specifies whether to analyze all existing, eligible objects immediately after the job is created (true). To analyze only those objects that are created or changed after you create the job and before the job's first scheduled run, set this value to false.
If you configure the job to run only once, don't specify a value for this property.
-
job_type(Optional[JobType], default:None) –The schedule for running the job. Valid values are:
ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the scheduleFrequency property.
SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the scheduleFrequency property to specify the recurrence pattern for the job.
-
managed_data_identifier_ids(Optional[__listOf__string], default:None) –An array of unique identifiers, one for each managed data identifier for the job to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type that you specify for the job (managedDataIdentifierSelector).
To retrieve a list of valid values for this property, use the ListManagedDataIdentifiers operation.
-
managed_data_identifier_selector(Optional[ManagedDataIdentifierSelector], default:None) –The selection type to apply when determining which managed data identifiers the job uses to analyze data. Valid values are:
ALL - Use all managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.
INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.
NONE - Don't use any managed data identifiers. If you specify this value, specify at least one value for the customDataIdentifierIds property and don't specify any values for the managedDataIdentifierIds property.
RECOMMENDED (default) - Use the recommended set of managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.
If you don't specify a value for this property, the job uses the recommended set of managed data identifiers.
If the job is a recurring job and you specify ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If you don't specify a value for this property or you specify RECOMMENDED for a recurring job, each job run automatically uses all the managed data identifiers that are in the recommended set when the run starts.
To learn about individual managed data identifiers or determine which ones are in the recommended set, see Using managed data identifiers or Recommended managed data identifiers in the Amazon Macie User Guide.
-
name(Optional[__string], default:None) –A custom name for the job. The name can contain as many as 500 characters.
-
s3_job_definition(Optional[S3JobDefinition], default:None) –The S3 buckets that contain the objects to analyze, and the scope of that analysis.
-
sampling_percentage(Optional[__integer], default:None) –The sampling depth, as a percentage, for the job to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
-
schedule_frequency(Optional[JobScheduleFrequency], default:None) –The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the jobType property to ONE_TIME.
-
tags(Optional[TagMap], default:None) –A map of key-value pairs that specifies the tags to associate with the job.
A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Raises:
-
AccessDeniedException–Provides information about an error that occurred due to insufficient access to a specified resource.
-
ConflictException–Provides information about an error that occurred due to a versioning conflict for a specified resource.
-
InternalServerException–Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
-
ResourceNotFoundException–Provides information about an error that occurred because a specified resource wasn't found.
-
ServiceQuotaExceededException–Provides information about an error that occurred due to one or more service quotas for an account.
-
ThrottlingException–Provides information about an error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–Provides information about an error that occurred due to a syntax error in a request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_macie2/_services/async_macie2.py
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 | |