start_data_quality_rule_recommendation_run
¶
start_data_quality_rule_recommendation_run(
data_source: DataSource,
role: RoleString,
*,
config_overrides: Optional[GlueClientConfig] = None,
number_of_workers: Optional[NullableInteger] = None,
timeout: Optional[Timeout] = None,
created_ruleset_name: Optional[NameString] = None,
data_quality_security_configuration: Optional[NameString] = None,
client_token: Optional[HashString] = None,
additional_run_options: Optional[
DataQualityRuleRecommendationRunAdditionalRunOptions
] = None,
recommendation_mode: Optional[RecommendationMode] = None,
) -> StartDataQualityRuleRecommendationRunResponse
Starts a recommendation run that is used to generate rules when you don't know what rules to write. Glue Data Quality analyzes the data and comes up with recommendations for a potential ruleset. You can then triage the ruleset and modify the generated ruleset to your liking.
Recommendation runs are automatically deleted after 90 days.
Parameters:
-
data_source(DataSource) –The data source (Glue table) associated with this run.
-
role(RoleString) –The IAM role that Glue assumes to access resources for the run.
For more information, see Configure IAM permissions for Glue Data Quality.
-
number_of_workers(Optional[NullableInteger], default:None) –The number of
G.1Xworkers to be used in the run. The default is 5. -
timeout(Optional[Timeout], default:None) –The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
created_ruleset_name(Optional[NameString], default:None) –A name for the ruleset.
-
data_quality_security_configuration(Optional[NameString], default:None) –The name of the security configuration created with the data quality encryption option.
-
client_token(Optional[HashString], default:None) –Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.
-
additional_run_options(Optional[DataQualityRuleRecommendationRunAdditionalRunOptions], default:None) –Additional run options you can specify for a recommendation run.
-
recommendation_mode(Optional[RecommendationMode], default:None) –The mode that Glue Data Quality uses to recommend rules.
The default is
BASIC.
Raises:
-
ConflictException–The
CreatePartitionsAPI was called on a table that has indexes enabled. -
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 | |