Resource: aws_appsync_domain_name_api_association

Provides an AppSync API Association.

Example Usage

resource "aws_appsync_domain_name_api_association" "example" {
  api_id      = aws_appsync_graphql_api.example.id
  domain_name = aws_appsync_domain_name.example.domain_name
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_appsync_domain_name_api_association using the AppSync domain name. For example:

import {
  to = aws_appsync_domain_name_api_association.example
  id = "example.com"
}

Using terraform import, import aws_appsync_domain_name_api_association using the AppSync domain name. For example:

% terraform import aws_appsync_domain_name_api_association.example example.com