AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::AppSync::DomainNameApiAssociation

CfnDomainNameApiAssociation

The `AWS::AppSync::DomainNameApiAssociation` resource represents the mapping of your custom domain name to the assigned API URL.

Import

import { CfnDomainNameApiAssociation } from 'aws-cdk-lib/aws-appsync';

Or use the module namespace:

import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.CfnDomainNameApiAssociation

Properties

Configuration passed to the constructor as CfnDomainNameApiAssociationProps.

apiIdRequired
string

The API ID.

domainNameRequired
string | IDomainNameRef

The domain name.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the AWS AppSync Cheat Sheet

Everything you need to know about AWS AppSync on one page. HD quality, print-friendly.

Download Free Infographic