Terraform import shows null values

When I am doing terraform for say a autoscaling group or a lambda function . The state file has value null for some variables whereas in tf code the variables have proper value .

Have added screenshot for tf code and state file .