Class SourceApiOptions
Additional API configuration for creating a AppSync Merged API.
Inheritance
System.Object
SourceApiOptions
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SourceApiOptions : Object, ISourceApiOptions
Syntax (vb)
Public Class SourceApiOptions
Inherits Object
Implements ISourceApiOptions
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
Constructors
SourceApiOptions() |
Properties
MergedApiExecutionRole | IAM Role used to validate access to source APIs at runtime and to update the merged API endpoint with the source API changes. |
SourceApis | Definition of source APIs associated with this Merged API. |
Constructors
SourceApiOptions()
public SourceApiOptions()
Properties
MergedApiExecutionRole
IAM Role used to validate access to source APIs at runtime and to update the merged API endpoint with the source API changes.
public Role MergedApiExecutionRole { get; set; }
Property Value
Remarks
Default: - An IAM Role with acccess to source schemas will be created
SourceApis
Definition of source APIs associated with this Merged API.
public ISourceApi[] SourceApis { get; set; }
Property Value