Enum MergeType
Merge type used to associate the source API.
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum MergeType
Syntax (vb)
Public Enum MergeType
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
// first source API
var firstApi = new GraphqlApi(this, "FirstSourceAPI", new GraphqlApiProps {
Name = "FirstSourceAPI",
Definition = Definition.FromFile(Join(__dirname, "appsync.merged-api-1.graphql"))
});
// second source API
var secondApi = new GraphqlApi(this, "SecondSourceAPI", new GraphqlApiProps {
Name = "SecondSourceAPI",
Definition = Definition.FromFile(Join(__dirname, "appsync.merged-api-2.graphql"))
});
// Merged API
var mergedApi = new GraphqlApi(this, "MergedAPI", new GraphqlApiProps {
Name = "MergedAPI",
Definition = Definition.FromSourceApis(new SourceApiOptions {
SourceApis = new [] { new SourceApi {
SourceApi = firstApi,
MergeType = MergeType.MANUAL_MERGE
}, new SourceApi {
SourceApi = secondApi,
MergeType = MergeType.AUTO_MERGE
} }
})
});
Synopsis
Fields
| AUTO_MERGE | Auto merge. |
| MANUAL_MERGE | Manual merge. |
Fields
| Name | Description |
|---|---|
| AUTO_MERGE | Auto merge. |
| MANUAL_MERGE | Manual merge. |