@@ -461,6 +461,7 @@ def __init__(
461
461
cache_config : CacheConfig = None ,
462
462
depends_on : Union [List [str ], List [Step ]] = None ,
463
463
retry_policies : List [RetryPolicy ] = None ,
464
+ kms_key = None ,
464
465
):
465
466
"""Construct a ProcessingStep, given a `Processor` instance.
466
467
@@ -486,6 +487,8 @@ def __init__(
486
487
depends_on (List[str] or List[Step]): A list of step names or step instance
487
488
this `sagemaker.workflow.steps.ProcessingStep` depends on
488
489
retry_policies (List[RetryPolicy]): A list of retry policy
490
+ kms_key (str): The ARN of the KMS key that is used to encrypt the
491
+ user code file. Defaults to `None`.
489
492
"""
490
493
super (ProcessingStep , self ).__init__ (
491
494
name , StepTypeEnum .PROCESSING , display_name , description , depends_on , retry_policies
@@ -496,6 +499,7 @@ def __init__(
496
499
self .job_arguments = job_arguments
497
500
self .code = code
498
501
self .property_files = property_files
502
+ self .kms_key = kms_key
499
503
500
504
# Examine why run method in sagemaker.processing.Processor mutates the processor instance
501
505
# by setting the instance's arguments attribute. Refactor Processor.run, if possible.
@@ -518,8 +522,8 @@ def arguments(self) -> RequestType:
518
522
inputs = self .inputs ,
519
523
outputs = self .outputs ,
520
524
code = self .code ,
525
+ kms_key = self .kms_key ,
521
526
)
522
-
523
527
process_args = ProcessingJob ._get_process_args (
524
528
self .processor , normalized_inputs , normalized_outputs , experiment_config = dict ()
525
529
)
0 commit comments