@@ -486,6 +486,7 @@ def __init__(
486486 cache_config : CacheConfig = None ,
487487 depends_on : Union [List [str ], List [Step ]] = None ,
488488 retry_policies : List [RetryPolicy ] = None ,
489+ kms_key = None ,
489490 ):
490491 """Construct a ProcessingStep, given a `Processor` instance.
491492
@@ -511,6 +512,8 @@ def __init__(
511512 depends_on (List[str] or List[Step]): A list of step names or step instance
512513 this `sagemaker.workflow.steps.ProcessingStep` depends on
513514 retry_policies (List[RetryPolicy]): A list of retry policy
515+ kms_key (str): The ARN of the KMS key that is used to encrypt the
516+ user code file. Defaults to `None`.
514517 """
515518 super (ProcessingStep , self ).__init__ (
516519 name , StepTypeEnum .PROCESSING , display_name , description , depends_on , retry_policies
@@ -522,6 +525,7 @@ def __init__(
522525 self .code = code
523526 self .property_files = property_files
524527 self .job_name = None
528+ self .kms_key = kms_key
525529
526530 # Examine why run method in sagemaker.processing.Processor mutates the processor instance
527531 # by setting the instance's arguments attribute. Refactor Processor.run, if possible.
@@ -556,8 +560,8 @@ def arguments(self) -> RequestType:
556560 inputs = self .inputs ,
557561 outputs = self .outputs ,
558562 code = self .code ,
563+ kms_key = self .kms_key ,
559564 )
560-
561565 process_args = ProcessingJob ._get_process_args (
562566 self .processor , normalized_inputs , normalized_outputs , experiment_config = dict ()
563567 )
0 commit comments