@@ -475,6 +475,7 @@ def __init__(
475
475
cache_config : CacheConfig = None ,
476
476
depends_on : Union [List [str ], List [Step ]] = None ,
477
477
retry_policies : List [RetryPolicy ] = None ,
478
+ kms_key = None ,
478
479
):
479
480
"""Construct a ProcessingStep, given a `Processor` instance.
480
481
@@ -500,6 +501,8 @@ def __init__(
500
501
depends_on (List[str] or List[Step]): A list of step names or step instance
501
502
this `sagemaker.workflow.steps.ProcessingStep` depends on
502
503
retry_policies (List[RetryPolicy]): A list of retry policy
504
+ kms_key (str): The ARN of the KMS key that is used to encrypt the
505
+ user code file. Defaults to `None`.
503
506
"""
504
507
super (ProcessingStep , self ).__init__ (
505
508
name , StepTypeEnum .PROCESSING , display_name , description , depends_on , retry_policies
@@ -511,6 +514,7 @@ def __init__(
511
514
self .code = code
512
515
self .property_files = property_files
513
516
self .job_name = None
517
+ self .kms_key = kms_key
514
518
515
519
# Examine why run method in sagemaker.processing.Processor mutates the processor instance
516
520
# by setting the instance's arguments attribute. Refactor Processor.run, if possible.
@@ -545,8 +549,8 @@ def arguments(self) -> RequestType:
545
549
inputs = self .inputs ,
546
550
outputs = self .outputs ,
547
551
code = self .code ,
552
+ kms_key = self .kms_key ,
548
553
)
549
-
550
554
process_args = ProcessingJob ._get_process_args (
551
555
self .processor , normalized_inputs , normalized_outputs , experiment_config = dict ()
552
556
)
0 commit comments