File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -757,6 +757,7 @@ see `Model <https://sagemaker.readthedocs.io/en/stable/api/inference/model.html
757757 entry_point = " inference.py" ,
758758 role = Session().get_caller_identity_arn(),
759759 predictor_cls = Predictor,
760+ enable_network_isolation = True ,
760761 )
761762
762763 Save the output from deploying the model to a variable named
@@ -874,6 +875,7 @@ value is not set.
874875 hyperparameters = default_hyperparameters,
875876 instance_count = instance_count,
876877 instance_type = training_instance_type,
878+ enable_network_isolation = True ,
877879 )
878880
879881 # Specify the S3 location of training data for the training channel
@@ -935,6 +937,7 @@ took your model to train.
935937 image_uri = deploy_image_uri,
936938 source_dir = deploy_script_uri,
937939 endpoint_name = endpoint_name,
940+ enable_network_isolation = True ,
938941 )
939942
940943 Perform Inference on a SageMaker Endpoint
You can’t perform that action at this time.
0 commit comments