@@ -486,6 +486,7 @@ def __init__(
486
486
cache_config : CacheConfig = None ,
487
487
depends_on : Union [List [str ], List [Step ]] = None ,
488
488
retry_policies : List [RetryPolicy ] = None ,
489
+ kms_key = None ,
489
490
):
490
491
"""Construct a ProcessingStep, given a `Processor` instance.
491
492
@@ -511,6 +512,8 @@ def __init__(
511
512
depends_on (List[str] or List[Step]): A list of step names or step instance
512
513
this `sagemaker.workflow.steps.ProcessingStep` depends on
513
514
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`.
514
517
"""
515
518
super (ProcessingStep , self ).__init__ (
516
519
name , StepTypeEnum .PROCESSING , display_name , description , depends_on , retry_policies
@@ -522,6 +525,7 @@ def __init__(
522
525
self .code = code
523
526
self .property_files = property_files
524
527
self .job_name = None
528
+ self .kms_key = kms_key
525
529
526
530
# Examine why run method in sagemaker.processing.Processor mutates the processor instance
527
531
# by setting the instance's arguments attribute. Refactor Processor.run, if possible.
@@ -556,8 +560,8 @@ def arguments(self) -> RequestType:
556
560
inputs = self .inputs ,
557
561
outputs = self .outputs ,
558
562
code = self .code ,
563
+ kms_key = self .kms_key ,
559
564
)
560
-
561
565
process_args = ProcessingJob ._get_process_args (
562
566
self .processor , normalized_inputs , normalized_outputs , experiment_config = dict ()
563
567
)
0 commit comments