|
37 | 37 | from sagemaker.model_monitor.model_monitoring import _MODEL_MONITOR_S3_PATH |
38 | 38 | from sagemaker.processing import ProcessingInput, ProcessingOutput, ProcessingJob |
39 | 39 | from sagemaker.utils import name_from_base |
40 | | -from sagemaker.workflow import PipelineNonPrimitiveInputTypes |
41 | | -from sagemaker.workflow.entities import RequestType, PipelineVariable |
| 40 | +from sagemaker.workflow import PipelineNonPrimitiveInputTypes, ExecutionVariable, Parameter |
| 41 | +from sagemaker.workflow.entities import RequestType, Expression |
42 | 42 | from sagemaker.workflow.properties import Properties |
43 | 43 | from sagemaker.workflow.steps import Step, StepTypeEnum, CacheConfig |
44 | 44 | from sagemaker.workflow.check_job_config import CheckJobConfig |
@@ -194,15 +194,17 @@ def __init__( |
194 | 194 | ) |
195 | 195 |
|
196 | 196 | if isinstance( |
197 | | - clarify_check_config.data_config.s3_analysis_config_output_path, PipelineVariable |
| 197 | + clarify_check_config.data_config.s3_analysis_config_output_path, |
| 198 | + (ExecutionVariable, Expression, Parameter, Properties), |
198 | 199 | ): |
199 | 200 | raise RuntimeError( |
200 | 201 | "s3_analysis_config_output_path cannot be of type " |
201 | 202 | + "ExecutionVariable/Expression/Parameter/Properties" |
202 | 203 | ) |
203 | 204 |
|
204 | 205 | if not clarify_check_config.data_config.s3_analysis_config_output_path and isinstance( |
205 | | - clarify_check_config.data_config.s3_output_path, PipelineVariable |
| 206 | + clarify_check_config.data_config.s3_output_path, |
| 207 | + (ExecutionVariable, Expression, Parameter, Properties), |
206 | 208 | ): |
207 | 209 | raise RuntimeError( |
208 | 210 | "`s3_output_path` cannot be of type ExecutionVariable/Expression/Parameter" |
|
0 commit comments