File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -3553,19 +3553,17 @@ def endpoint_from_production_variants(
3553
3553
Returns:
3554
3554
str: The name of the created ``Endpoint``.
3555
3555
"""
3556
- if not _deployment_entity_exists (
3557
- lambda : self .sagemaker_client .describe_endpoint_config (EndpointConfigName = name )
3558
- ):
3559
- config_options = {"EndpointConfigName" : name , "ProductionVariants" : production_variants }
3560
- tags = _append_project_tags (tags )
3561
- if tags :
3562
- config_options ["Tags" ] = tags
3563
- if kms_key :
3564
- config_options ["KmsKeyId" ] = kms_key
3565
- if data_capture_config_dict is not None :
3566
- config_options ["DataCaptureConfig" ] = data_capture_config_dict
3567
-
3568
- self .sagemaker_client .create_endpoint_config (** config_options )
3556
+ config_options = {"EndpointConfigName" : name , "ProductionVariants" : production_variants }
3557
+ tags = _append_project_tags (tags )
3558
+ if tags :
3559
+ config_options ["Tags" ] = tags
3560
+ if kms_key :
3561
+ config_options ["KmsKeyId" ] = kms_key
3562
+ if data_capture_config_dict is not None :
3563
+ config_options ["DataCaptureConfig" ] = data_capture_config_dict
3564
+
3565
+ self .sagemaker_client .create_endpoint_config (** config_options )
3566
+
3569
3567
return self .create_endpoint (endpoint_name = name , config_name = name , tags = tags , wait = wait )
3570
3568
3571
3569
def expand_role (self , role ):
You can’t perform that action at this time.
0 commit comments