Aws_lakeformation_opt_in failing with wildcard

resource “aws_lakeformation_opt_in” “table_optins” {

principal {

data_lake_principal_identifier = “role_arn”
}

resource_data {
table {
catalog_id = “catalog_id”
database_name = “Db_name”
wildcard = true
}
}
}

failing with error erroring with operation error LakeFormation: CreateLakeFormationOptIn, https response error StatusCode: 400, RequestID: 2a4fbcb6-b50c-46ec-abb5-3e27acbb3bda, InvalidInputException: Table name and table wildcard cannot both be empty.