Class SourceApiAssociation
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appsync.SourceApiAssociation
- All Implemented Interfaces:
IEnvironmentAware,IResource,ISourceApiAssociation,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:59.043Z")
@Stability(Stable)
public class SourceApiAssociation
extends Resource
implements ISourceApiAssociation
AppSync SourceApiAssociation which associates an AppSync source API to an AppSync Merged API.
The initial creation of the SourceApiAssociation merges the source API into the Merged API schema.
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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.ISourceApiAssociation
ISourceApiAssociation.Jsii$Default, ISourceApiAssociation.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSourceApiAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSourceApiAssociation(software.amazon.jsii.JsiiObjectRef objRef) SourceApiAssociation(software.constructs.Construct scope, String id, SourceApiAssociationProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ISourceApiAssociationfromSourceApiAssociationAttributes(software.constructs.Construct scope, String id, SourceApiAssociationAttributes attrs) Import Appsync Source Api Association from source API, merged api, and merge type.The underlying CFN source api association resource.The association arn.The association id.The merged api in the association.The merge type for the source api association.The source api in the association.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
SourceApiAssociation
protected SourceApiAssociation(software.amazon.jsii.JsiiObjectRef objRef) -
SourceApiAssociation
protected SourceApiAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SourceApiAssociation
@Stability(Stable) public SourceApiAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SourceApiAssociationProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromSourceApiAssociationAttributes
@Stability(Stable) @NotNull public static ISourceApiAssociation fromSourceApiAssociationAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SourceApiAssociationAttributes attrs) Import Appsync Source Api Association from source API, merged api, and merge type.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
getAssociation
The underlying CFN source api association resource. -
getAssociationArn
The association arn.- Specified by:
getAssociationArnin interfaceISourceApiAssociation
-
getAssociationId
The association id.- Specified by:
getAssociationIdin interfaceISourceApiAssociation
-
getMergedApi
The merged api in the association.- Specified by:
getMergedApiin interfaceISourceApiAssociation
-
getMergeType
The merge type for the source api association. -
getSourceApi
The source api in the association.- Specified by:
getSourceApiin interfaceISourceApiAssociation
-