Unable to create AWS Directory

Hello There,

I was trying to deploy aws directory of type ADConnector through terraform and the plan also successful where i can see it is creating a directory. But when went to apply it is throwing back the below error. Can you please check and suggest where am I missing

Error: creating Directory Service AD Connector Directory (tmm.exe.com): operation error Directory Service: ConnectDirectory, 1 validation error(s) found.

missing required field, ConnectDirectoryInput.ConnectSettings.

Below is my resource code

resource “aws_directory_service_directory” “tmm_na_corp_toyota_com” {
name = var.directory_name
password = var.directory_password
size = var.directory_size
type = var.directory_type

vpc_settings {
vpc_id = var.vpc_id
subnet_ids = var.subnet_ids
}

tags = {
Name = var.directory_name
}
}