File tree 1 file changed +3
-0
lines changed
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
757
757
entry_point = " inference.py" ,
758
758
role = Session().get_caller_identity_arn(),
759
759
predictor_cls = Predictor,
760
+ enable_network_isolation = True ,
760
761
)
761
762
762
763
Save the output from deploying the model to a variable named
@@ -875,6 +876,7 @@ value is not set.
875
876
hyperparameters = default_hyperparameters,
876
877
instance_count = instance_count,
877
878
instance_type = training_instance_type,
879
+ enable_network_isolation = True ,
878
880
)
879
881
880
882
# Specify the S3 location of training data for the training channel
@@ -936,6 +938,7 @@ took your model to train.
936
938
image_uri = deploy_image_uri,
937
939
source_dir = deploy_script_uri,
938
940
endpoint_name = endpoint_name,
941
+ enable_network_isolation = True ,
939
942
)
940
943
941
944
Perform Inference on a SageMaker Endpoint
You can’t perform that action at this time.
0 commit comments