cursus.core.compiler.name_generator¶
Name generator utilities for pipeline naming.
This module provides utilities for generating pipeline names with consistent formats that comply with SageMaker naming constraints.
- validate_pipeline_name(name)[source]¶
Validate that a pipeline name conforms to SageMaker constraints.
- sanitize_pipeline_name(name)[source]¶
Sanitize a pipeline name to conform to SageMaker constraints.
This function: 1. Replaces dots with hyphens 2. Replaces underscores with hyphens 3. Removes any other special characters 4. Ensures the name starts with an alphanumeric character 5. Ensures the name ends with an alphanumeric character