@@ -476,7 +476,7 @@ func resourceTencentCloudTseCngwRouteUpdate(d *schema.ResourceData, meta interfa
476476 request .RouteName = & routeName
477477 request .RouteID = cngwRoute .ID
478478
479- immutableArgs := []string {"gateway_id" , "service_id" , "route_name" }
479+ immutableArgs := []string {"gateway_id" , "service_id" , "route_name" , "force_https" }
480480
481481 for _ , v := range immutableArgs {
482482 if d .HasChange (v ) {
@@ -494,33 +494,27 @@ func resourceTencentCloudTseCngwRouteUpdate(d *schema.ResourceData, meta interfa
494494 }
495495 }
496496
497- if d .HasChange ("hosts" ) {
498- if v , ok := d .GetOk ("hosts" ); ok {
499- hostsSet := v .(* schema.Set ).List ()
500- for i := range hostsSet {
501- hosts := hostsSet [i ].(string )
502- request .Hosts = append (request .Hosts , & hosts )
503- }
497+ if v , ok := d .GetOk ("hosts" ); ok {
498+ hostsSet := v .(* schema.Set ).List ()
499+ for i := range hostsSet {
500+ hosts := hostsSet [i ].(string )
501+ request .Hosts = append (request .Hosts , & hosts )
504502 }
505503 }
506504
507- if d .HasChange ("paths" ) {
508- if v , ok := d .GetOk ("paths" ); ok {
509- pathsSet := v .(* schema.Set ).List ()
510- for i := range pathsSet {
511- paths := pathsSet [i ].(string )
512- request .Paths = append (request .Paths , & paths )
513- }
505+ if v , ok := d .GetOk ("paths" ); ok {
506+ pathsSet := v .(* schema.Set ).List ()
507+ for i := range pathsSet {
508+ paths := pathsSet [i ].(string )
509+ request .Paths = append (request .Paths , & paths )
514510 }
515511 }
516512
517- if d .HasChange ("protocols" ) {
518- if v , ok := d .GetOk ("protocols" ); ok {
519- protocolsSet := v .(* schema.Set ).List ()
520- for i := range protocolsSet {
521- protocols := protocolsSet [i ].(string )
522- request .Protocols = append (request .Protocols , & protocols )
523- }
513+ if v , ok := d .GetOk ("protocols" ); ok {
514+ protocolsSet := v .(* schema.Set ).List ()
515+ for i := range protocolsSet {
516+ protocols := protocolsSet [i ].(string )
517+ request .Protocols = append (request .Protocols , & protocols )
524518 }
525519 }
526520
@@ -542,11 +536,11 @@ func resourceTencentCloudTseCngwRouteUpdate(d *schema.ResourceData, meta interfa
542536 }
543537 }
544538
545- if d .HasChange ("force_https" ) {
546- if v , ok := d .GetOkExists ("force_https" ); ok {
547- request .ForceHttps = helper .Bool (v .(bool ))
548- }
549- }
539+ // if d.HasChange("force_https") {
540+ // if v, ok := d.GetOkExists("force_https"); ok {
541+ // request.ForceHttps = helper.Bool(v.(bool))
542+ // }
543+ // }
550544
551545 if d .HasChange ("destination_ports" ) {
552546 if v , ok := d .GetOk ("destination_ports" ); ok {
0 commit comments