Error creating API Gateway Domain Name by terraform

I have the terraform definition:
resource “aws_api_gateway_domain_name” “apigatewatDomainName” {
domain_name =
certificate_arn = “arn:aws:acm:us-east-1:12345566:certificate/dddddd-3333-4444-5555-0123456789a”

When I apply the terraform I am getting the error:

Error: Error creating API Gateway Domain Name: BadRequestException: The certificate that is attached to your distribution doesn’t cover the alternate domain name (CNAME) that you’re trying to add.

When I apply the command

aws acm describe-certificate --certificate-arn

I am getting in the description

“DomainValidationOptions”: [
“ValidationStatus”: “SUCCESS”,
“ResourceRecord”: {
“Type”: “CNAME”,
“Name”: “”,
“Value”: “”
“ValidationDomain”: “",
“ValidationMethod”: “DNS”,
“DomainName”: "”

Also, in this description I see
“SubjectAlternativeNames”: [

So, I assume that I can create a domain like “”, so I specified

resource “aws_api_gateway_domain_name” “” {

But terraform does not allow to have dots in a resource name :
“A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes.”