@@ -78,6 +78,8 @@ def remote(
78
78
tags : List [Tuple [str , str ]] = None ,
79
79
volume_kms_key : str = None ,
80
80
volume_size : int = 30 ,
81
+ encrypt_inter_container_traffic : bool = None ,
82
+ enable_network_isolation : bool = None ,
81
83
):
82
84
"""Function that starts a new SageMaker job synchronously with overridden runtime settings.
83
85
@@ -114,6 +116,13 @@ def remote(
114
116
instance.
115
117
volume_size (int): Size in GB of the storage volume to use for storing input and output
116
118
data. Default is 30.
119
+ encrypt_inter_container_traffic (bool): Specifies whether traffic between training
120
+ containers is encrypted for the training job. (default: ``False``).
121
+ enable_network_isolation (bool): Specifies whether container will
122
+ run in network isolation mode (default: ``False``). Network
123
+ isolation mode restricts the container access to outside networks
124
+ (such as the Internet). The container does not make any inbound or
125
+ outbound network calls. Also known as Internet-free mode.
117
126
"""
118
127
119
128
def _remote (func ):
@@ -143,6 +152,8 @@ def wrapper(*args, **kwargs):
143
152
tags = tags ,
144
153
volume_kms_key = volume_kms_key ,
145
154
volume_size = volume_size ,
155
+ encrypt_inter_container_traffic = encrypt_inter_container_traffic ,
156
+ enable_network_isolation = enable_network_isolation ,
146
157
)
147
158
job = _Job .start (job_settings , func , args , kwargs )
148
159
@@ -331,6 +342,8 @@ def __init__(
331
342
tags : List [Tuple [str , str ]] = None ,
332
343
volume_kms_key : str = None ,
333
344
volume_size : int = 30 ,
345
+ encrypt_inter_container_traffic : bool = None ,
346
+ enable_network_isolation : bool = None ,
334
347
):
335
348
"""Initiates a ``RemoteExecutor`` instance.
336
349
@@ -373,6 +386,13 @@ def __init__(
373
386
instance.
374
387
volume_size (int): Size in GB of the storage volume to use for storing input and output
375
388
data. Defaults to 30.
389
+ encrypt_inter_container_traffic (bool): Specifies whether traffic between training
390
+ containers is encrypted for the training job. (default: ``False``).
391
+ enable_network_isolation (bool): Specifies whether container will
392
+ run in network isolation mode (default: ``False``). Network
393
+ isolation mode restricts the container access to outside networks
394
+ (such as the Internet). The container does not make any inbound or
395
+ outbound network calls. Also known as Internet-free mode.
376
396
"""
377
397
self .max_parallel_jobs = max_parallel_jobs
378
398
@@ -400,6 +420,8 @@ def __init__(
400
420
tags = tags ,
401
421
volume_kms_key = volume_kms_key ,
402
422
volume_size = volume_size ,
423
+ encrypt_inter_container_traffic = encrypt_inter_container_traffic ,
424
+ enable_network_isolation = enable_network_isolation ,
403
425
)
404
426
405
427
self ._state_condition = threading .Condition ()
0 commit comments