@@ -78,6 +78,8 @@ def remote(
7878 tags : List [Tuple [str , str ]] = None ,
7979 volume_kms_key : str = None ,
8080 volume_size : int = 30 ,
81+ encrypt_inter_container_traffic : bool = None ,
82+ enable_network_isolation : bool = None ,
8183):
8284 """Function that starts a new SageMaker job synchronously with overridden runtime settings.
8385
@@ -114,6 +116,13 @@ def remote(
114116 instance.
115117 volume_size (int): Size in GB of the storage volume to use for storing input and output
116118 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.
117126 """
118127
119128 def _remote (func ):
@@ -143,6 +152,8 @@ def wrapper(*args, **kwargs):
143152 tags = tags ,
144153 volume_kms_key = volume_kms_key ,
145154 volume_size = volume_size ,
155+ encrypt_inter_container_traffic = encrypt_inter_container_traffic ,
156+ enable_network_isolation = enable_network_isolation ,
146157 )
147158 job = _Job .start (job_settings , func , args , kwargs )
148159
@@ -331,6 +342,8 @@ def __init__(
331342 tags : List [Tuple [str , str ]] = None ,
332343 volume_kms_key : str = None ,
333344 volume_size : int = 30 ,
345+ encrypt_inter_container_traffic : bool = None ,
346+ enable_network_isolation : bool = None ,
334347 ):
335348 """Initiates a ``RemoteExecutor`` instance.
336349
@@ -373,6 +386,13 @@ def __init__(
373386 instance.
374387 volume_size (int): Size in GB of the storage volume to use for storing input and output
375388 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.
376396 """
377397 self .max_parallel_jobs = max_parallel_jobs
378398
@@ -400,6 +420,8 @@ def __init__(
400420 tags = tags ,
401421 volume_kms_key = volume_kms_key ,
402422 volume_size = volume_size ,
423+ encrypt_inter_container_traffic = encrypt_inter_container_traffic ,
424+ enable_network_isolation = enable_network_isolation ,
403425 )
404426
405427 self ._state_condition = threading .Condition ()
0 commit comments