AWS::AutoScaling::AutoScalingGroup is not working

I am trying to change the default healtchecktype from ec2 to elb and I am getting this error:
aws_elastic_beanstalk_environment.default: ConfigurationValidationException: Configuration validation exception: Invalid option specification (Namespace: ‘aws:autoscaling:autoscalinggroup’, OptionName: ‘HealthCheckType’): Unknown configuration setting.
status code: 400, request id: a6fbdb1e-197f-47cf-a7db-3e8672ae80b2
Under
resource "aws_elastic_beanstalk_environment" "default" below is the setting that I am using:

setting {
namespace = "aws:autoscaling:autoscalinggroup"
name      = "HealthCheckType"
value     = "ELB"

}
I got the valuse from aws documentation : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html

It is also supported by aws cloud formation:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-healthchecktype