Interface SourceApiAssociationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SourceApiAssociationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:59.045Z")
@Stability(Stable)
public interface SourceApiAssociationProps
extends software.amazon.jsii.JsiiSerializable
Properties for SourceApiAssociation which associates an AppSync Source API with an AppSync Merged API.
Example:
GraphqlApi sourceApi = GraphqlApi.Builder.create(this, "FirstSourceAPI")
.name("FirstSourceAPI")
.definition(Definition.fromFile(join(__dirname, "appsync.merged-api-1.graphql")))
.build();
IGraphqlApi importedMergedApi = GraphqlApi.fromGraphqlApiAttributes(this, "ImportedMergedApi", GraphqlApiAttributes.builder()
.graphqlApiId("MyApiId")
.graphqlApiArn("MyApiArn")
.build());
IRole importedExecutionRole = Role.fromRoleArn(this, "ExecutionRole", "arn:aws:iam::ACCOUNT:role/MyExistingRole");
SourceApiAssociation.Builder.create(this, "SourceApiAssociation2")
.sourceApi(sourceApi)
.mergedApi(importedMergedApi)
.mergeType(MergeType.MANUAL_MERGE)
.mergedApiExecutionRole(importedExecutionRole)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSourceApiAssociationPropsstatic final classAn implementation forSourceApiAssociationProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMergedApi
The merged api to associate. -
getMergedApiExecutionRole
The merged api execution role for adding the access policy for the source api. -
getSourceApi
The source api to associate. -
getDescription
The description of the source api association.Default: - None
-
getMergeType
The merge type for the source.Default: - AUTO_MERGE
-
builder
- Returns:
- a
SourceApiAssociationProps.BuilderofSourceApiAssociationProps
-