cursus.validation.alignment.config.step_type_specific_rules¶
Step-Type-Specific Builder Validation Rules
This module defines validation rules specific to different SageMaker step types. Each step type has unique methods and requirements beyond the universal builder interface.
Based on analysis of actual step builders in the cursus codebase.
- class StepTypeCategory(*values)[source]¶
Bases:
EnumCategories of step types based on their validation requirements.
- SCRIPT_BASED = 'script_based'¶
- CONTRACT_BASED = 'contract_based'¶
- NON_SCRIPT = 'non_script'¶
- CONFIG_ONLY = 'config_only'¶
- EXCLUDED = 'excluded'¶
- get_validation_rules_for_step_type(step_type)[source]¶
Get validation rules for a specific step type.
- get_required_methods_for_step_type(step_type)[source]¶
Get required methods for a specific step type.
- get_optional_methods_for_step_type(step_type)[source]¶
Get optional methods for a specific step type.
- get_all_methods_for_step_type(step_type)[source]¶
Get all methods (required + optional) for a specific step type.
- get_step_types_by_category(category)[source]¶
Get all step types in a specific category.
- Parameters:
category (StepTypeCategory) – The step type category
- Returns:
List of step type names in the category
- Return type:
- get_step_type_category(step_type)[source]¶
Get the category for a step type.
- Parameters:
step_type (str) – The SageMaker step type
- Returns:
StepTypeCategory enum value, or None if step type not found
- Return type:
StepTypeCategory | None