Interface SourceApiOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SourceApiOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:39:58.584Z")
@Stability(Stable)
public interface SourceApiOptions
extends software.amazon.jsii.JsiiSerializable
Additional API configuration for creating a AppSync Merged API.
Example:
import software.amazon.awscdk.*;
// first source API
GraphqlApi firstApi = GraphqlApi.Builder.create(this, "FirstSourceAPI")
.name("FirstSourceAPI")
.definition(Definition.fromFile(join(__dirname, "appsync.merged-api-1.graphql")))
.build();
// second source API
GraphqlApi secondApi = GraphqlApi.Builder.create(this, "SecondSourceAPI")
.name("SecondSourceAPI")
.definition(Definition.fromFile(join(__dirname, "appsync.merged-api-2.graphql")))
.build();
// Merged API
GraphqlApi mergedApi = GraphqlApi.Builder.create(this, "MergedAPI")
.name("MergedAPI")
.definition(Definition.fromSourceApis(SourceApiOptions.builder()
.sourceApis(List.of(SourceApi.builder()
.sourceApi(firstApi)
.mergeType(MergeType.MANUAL_MERGE)
.build(), SourceApi.builder()
.sourceApi(secondApi)
.mergeType(MergeType.AUTO_MERGE)
.build()))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSourceApiOptionsstatic final classAn implementation forSourceApiOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceApiOptions.Builderbuilder()default RoleIAM Role used to validate access to source APIs at runtime and to update the merged API endpoint with the source API changes.Definition of source APIs associated with this Merged API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSourceApis
Definition of source APIs associated with this Merged API. -
getMergedApiExecutionRole
IAM Role used to validate access to source APIs at runtime and to update the merged API endpoint with the source API changes.Default: - An IAM Role with acccess to source schemas will be created
-
builder
- Returns:
- a
SourceApiOptions.BuilderofSourceApiOptions
-