Skip to content

Commit 70b0847

Browse files
author
Chuyang Deng
committed
update spark processing with kms keys=
1 parent b2348fc commit 70b0847

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/sagemaker/spark/processing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def run(
174174
self,
175175
submit_app,
176176
inputs=None,
177+
kms_key=None,
177178
outputs=None,
178179
arguments=None,
179180
wait=True,
@@ -188,6 +189,8 @@ def run(
188189
inputs (list[:class:`~sagemaker.processing.ProcessingInput`]): Input files for
189190
the processing job. These must be provided as
190191
:class:`~sagemaker.processing.ProcessingInput` objects (default: None).
192+
kms_key (str): The ARN of the KMS key that is used to encrypt the
193+
user code file (default: None).
191194
outputs (list[:class:`~sagemaker.processing.ProcessingOutput`]): Outputs for
192195
the processing job. These can be specified as either path strings or
193196
:class:`~sagemaker.processing.ProcessingOutput` objects (default: None).
@@ -207,6 +210,7 @@ def run(
207210
super().run(
208211
submit_app,
209212
inputs,
213+
kms_key,
210214
outputs,
211215
arguments,
212216
wait,

tests/unit/sagemaker/spark/test_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_configuration_validation(config, expected, sagemaker_session) -> None:
200200
def test_spark_processor_base_run(mock_super_run, spark_processor_base):
201201
spark_processor_base.run(submit_app="app")
202202

203-
mock_super_run.assert_called_with("app", None, None, None, True, True, None, None)
203+
mock_super_run.assert_called_with("app", None, None, None, None, True, True, None, None)
204204

205205

206206
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)