Interface SourceApiAssociationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SourceApiAssociationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-11T23:26:28.951Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSourceApiAssociationProps
static final class
An 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.Builder
ofSourceApiAssociationProps
-