diff --git a/aws/resource_aws_sagemaker_endpoint.go b/aws/resource_aws_sagemaker_endpoint.go index b48c215a47b..726c06d4a78 100644 --- a/aws/resource_aws_sagemaker_endpoint.go +++ b/aws/resource_aws_sagemaker_endpoint.go @@ -132,8 +132,6 @@ func resourceAwsSagemakerEndpointRead(d *schema.ResourceData, meta interface{}) func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{}) error { conn := meta.(*AWSClient).sagemakerconn - d.Partial(true) - if d.HasChange("tags") { o, n := d.GetChange("tags") @@ -141,7 +139,6 @@ func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{} return fmt.Errorf("error updating Sagemaker Endpoint (%s) tags: %s", d.Id(), err) } } - d.SetPartial("tags") if d.HasChange("endpoint_config_name") { modifyOpts := &sagemaker.UpdateEndpointInput{ @@ -153,7 +150,6 @@ func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{} if _, err := conn.UpdateEndpoint(modifyOpts); err != nil { return fmt.Errorf("error updating SageMaker Endpoint (%s): %s", d.Id(), err) } - d.SetPartial("endpoint_config_name") describeInput := &sagemaker.DescribeEndpointInput{ EndpointName: aws.String(d.Id()), @@ -165,8 +161,6 @@ func resourceAwsSagemakerEndpointUpdate(d *schema.ResourceData, meta interface{} } } - d.Partial(false) - return resourceAwsSagemakerEndpointRead(d, meta) } diff --git a/aws/resource_aws_sagemaker_model.go b/aws/resource_aws_sagemaker_model.go index ba977fa3aa2..bfcc831ed4b 100644 --- a/aws/resource_aws_sagemaker_model.go +++ b/aws/resource_aws_sagemaker_model.go @@ -281,8 +281,6 @@ func flattenSageMakerVpcConfigResponse(vpcConfig *sagemaker.VpcConfig) []map[str func resourceAwsSagemakerModelUpdate(d *schema.ResourceData, meta interface{}) error { conn := meta.(*AWSClient).sagemakerconn - d.Partial(true) - if d.HasChange("tags") { o, n := d.GetChange("tags") @@ -291,8 +289,6 @@ func resourceAwsSagemakerModelUpdate(d *schema.ResourceData, meta interface{}) e } } - d.Partial(false) - return resourceAwsSagemakerModelRead(d, meta) } diff --git a/aws/resource_aws_sagemaker_notebook_instance.go b/aws/resource_aws_sagemaker_notebook_instance.go index 5ce1d792a64..ea657473bdb 100644 --- a/aws/resource_aws_sagemaker_notebook_instance.go +++ b/aws/resource_aws_sagemaker_notebook_instance.go @@ -214,8 +214,6 @@ func resourceAwsSagemakerNotebookInstanceRead(d *schema.ResourceData, meta inter func resourceAwsSagemakerNotebookInstanceUpdate(d *schema.ResourceData, meta interface{}) error { conn := meta.(*AWSClient).sagemakerconn - d.Partial(true) - if d.HasChange("tags") { o, n := d.GetChange("tags") @@ -223,7 +221,6 @@ func resourceAwsSagemakerNotebookInstanceUpdate(d *schema.ResourceData, meta int return fmt.Errorf("error updating Sagemaker Notebook Instance (%s) tags: %s", d.Id(), err) } } - d.SetPartial("tags") hasChanged := false // Update @@ -325,8 +322,6 @@ func resourceAwsSagemakerNotebookInstanceUpdate(d *schema.ResourceData, meta int } } - d.Partial(false) - return resourceAwsSagemakerNotebookInstanceRead(d, meta) }