Skip to content

Resource: awsAppsyncDomainName

Provides an AppSync Domain Name.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.appsyncDomainName.AppsyncDomainName(this, "example", {
  certificateArn: "${aws_acm_certificate.example.arn}",
  domainName: "api.example.com",
});

Argument Reference

The following arguments are supported:

  • certificateArn - (Required) ARN of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate. The certifiacte must reside in us-east-1.
  • description - (Optional) A description of the Domain Name.
  • domainName - (Required) Domain name.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Appsync Domain Name.
  • appsyncDomainName - Domain name that AppSync provides.
  • hostedZoneId - ID of your Amazon Route 53 hosted zone.

Import

awsAppsyncDomainName can be imported using the AppSync domain name, e.g.,

$ terraform import aws_appsync_domain_name.example example.com