@@ -193,6 +193,12 @@ func ResourceTencentCloudAsScalingConfig() *schema.Resource {
193193 Default : true ,
194194 Description : "To specify whether to enable cloud monitor service. Default is `TRUE`." ,
195195 },
196+ "enhanced_automation_tools_service" : {
197+ Type : schema .TypeBool ,
198+ Optional : true ,
199+ Default : true ,
200+ Description : "To specify whether to enable cloud automation tools service. Default is `TRUE`." ,
201+ },
196202 "user_data" : {
197203 Type : schema .TypeString ,
198204 Optional : true ,
@@ -383,6 +389,12 @@ func resourceTencentCloudAsScalingConfigCreate(d *schema.ResourceData, meta inte
383389 Enabled : & monitorService ,
384390 }
385391 }
392+ if v , ok := d .GetOkExists ("enhanced_automation_tools_service" ); ok {
393+ automationToolsService := v .(bool )
394+ request .EnhancedService .AutomationToolsService = & as.RunAutomationServiceEnabled {
395+ Enabled : & automationToolsService ,
396+ }
397+ }
386398
387399 if v , ok := d .GetOk ("user_data" ); ok {
388400 request .UserData = helper .String (v .(string ))
@@ -532,6 +544,7 @@ func resourceTencentCloudAsScalingConfigRead(d *schema.ResourceData, meta interf
532544 _ = d .Set ("security_group_ids" , helper .StringsInterfaces (config .SecurityGroupIds ))
533545 _ = d .Set ("enhanced_security_service" , * config .EnhancedService .SecurityService .Enabled )
534546 _ = d .Set ("enhanced_monitor_service" , * config .EnhancedService .MonitorService .Enabled )
547+ _ = d .Set ("enhanced_automation_tools_service" , * config .EnhancedService .AutomationToolsService .Enabled )
535548 _ = d .Set ("user_data" , helper .PString (config .UserData ))
536549 _ = d .Set ("instance_tags" , flattenInstanceTagsMapping (config .InstanceTags ))
537550 _ = d .Set ("disk_type_policy" , * config .DiskTypePolicy )
@@ -687,7 +700,7 @@ func resourceTencentCloudAsScalingConfigUpdate(d *schema.ResourceData, meta inte
687700 }
688701 }
689702
690- if d .HasChange ("enhanced_security_service" ) || d .HasChange ("enhanced_monitor_service" ) {
703+ if d .HasChange ("enhanced_security_service" ) || d .HasChange ("enhanced_monitor_service" ) || d . HasChange ( "enhanced_automation_tools_service" ) {
691704 request .EnhancedService = & as.EnhancedService {}
692705
693706 if v , ok := d .GetOkExists ("enhanced_security_service" ); ok {
@@ -702,6 +715,12 @@ func resourceTencentCloudAsScalingConfigUpdate(d *schema.ResourceData, meta inte
702715 Enabled : & monitorService ,
703716 }
704717 }
718+ if v , ok := d .GetOkExists ("enhanced_automation_tools_service" ); ok {
719+ automationToolsService := v .(bool )
720+ request .EnhancedService .AutomationToolsService = & as.RunAutomationServiceEnabled {
721+ Enabled : & automationToolsService ,
722+ }
723+ }
705724 }
706725
707726 if d .HasChange ("user_data" ) {
0 commit comments