AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

SourceApiAssociation

AppSync SourceApiAssociation which associates an AppSync source API to an AppSync Merged API. The initial creation of the SourceApiAssociation merges the source API into the Merged API schema.

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as SourceApiAssociationProps.

mergedApiRequired
IGraphqlApi

The merged api to associate.

mergedApiExecutionRoleRequired
IRole

The merged api execution role for adding the access policy for the source api.

sourceApiRequired
IGraphqlApi

The source api to associate.

descriptionOptional
string

The description of the source api association.

Default: - None

mergeTypeOptional
MergeType

The merge type for the source.

Default: - AUTO_MERGE

Get the AWS AppSync Cheat Sheet

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

Download Free Infographic