enum MergeType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.MergeType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#MergeType |
Java | software.amazon.awscdk.services.appsync.MergeType |
Python | aws_cdk.aws_appsync.MergeType |
TypeScript (source) | aws-cdk-lib » aws_appsync » MergeType |
Merge type used to associate the source API.
Example
import * as cdk from 'aws-cdk-lib';
// first source API
const firstApi = new appsync.GraphqlApi(this, 'FirstSourceAPI', {
name: 'FirstSourceAPI',
definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-1.graphql')),
});
// second source API
const secondApi = new appsync.GraphqlApi(this, 'SecondSourceAPI', {
name: 'SecondSourceAPI',
definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.merged-api-2.graphql')),
});
// Merged API
const mergedApi = new appsync.GraphqlApi(this, 'MergedAPI', {
name: 'MergedAPI',
definition: appsync.Definition.fromSourceApis({
sourceApis: [
{
sourceApi: firstApi,
mergeType: appsync.MergeType.MANUAL_MERGE,
},
{
sourceApi: secondApi,
mergeType: appsync.MergeType.AUTO_MERGE,
}
],
}),
});
Members
Name | Description |
---|---|
MANUAL_MERGE | Manual merge. |
AUTO_MERGE | Auto merge. |
MANUAL_MERGE
Manual merge.
The merge must be triggered manually when the source API has changed.
AUTO_MERGE
Auto merge.
The merge is triggered automatically when the source API has changed.