cursus.validation.alignment.validators.property_path_validator

SageMaker Property Path Validator

Validates SageMaker Step Property Path References based on official SageMaker documentation. This module implements Level 2 Property Path Validation for the unified alignment tester.

Reference: https://sagemaker.readthedocs.io/en/v2.92.2/amazon_sagemaker_model_building_pipeline.html#data-dependency-property-reference

class SageMakerPropertyPathValidator[source]

Bases: object

Validates SageMaker step property paths against official documentation.

This validator ensures that property paths used in step specifications are valid for the specific SageMaker step type, preventing runtime errors in pipeline execution.

validate_specification_property_paths(specification, contract_name)[source]

Validate all property paths in a specification.

Parameters:
  • specification (Dict[str, Any]) – Specification dictionary

  • contract_name (str) – Name of the contract being validated

Returns:

List of validation issues

Return type:

List[Dict[str, Any]]

get_step_type_documentation(step_type, node_type='')[source]

Get documentation information for a specific step type.

Parameters:
  • step_type (str) – The SageMaker step type

  • node_type (str) – The node type (optional)

Returns:

Dictionary with documentation information

Return type:

Dict[str, Any]

list_supported_step_types()[source]

List all supported step types and their documentation.

Returns:

List of supported step types with their information

Return type:

List[Dict[str, Any]]

validate_property_paths(specification, contract_name)[source]

Convenience function to validate property paths in a specification.

Parameters:
  • specification (Dict[str, Any]) – Specification dictionary

  • contract_name (str) – Name of the contract being validated

Returns:

List of validation issues

Return type:

List[Dict[str, Any]]