Skip to content
v2.278.0

SourceApiAssociationAttributes Struct ​

The attributes for imported AppSync Source Api Association.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';

declare const graphqlApi: appsync.GraphqlApi;
const sourceApiAssociationAttributes: appsync.SourceApiAssociationAttributes = {
  associationArn: 'associationArn',
  mergedApi: graphqlApi,
  sourceApi: graphqlApi,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync

# graphql_api: appsync.GraphqlApi

source_api_association_attributes = appsync.SourceApiAssociationAttributes(
    association_arn="associationArn",
    merged_api=graphql_api,
    source_api=graphql_api
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;

GraphqlApi graphqlApi;

SourceApiAssociationAttributes sourceApiAssociationAttributes = SourceApiAssociationAttributes.builder()
        .associationArn("associationArn")
        .mergedApi(graphqlApi)
        .sourceApi(graphqlApi)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;

GraphqlApi graphqlApi;

var sourceApiAssociationAttributes = new SourceApiAssociationAttributes {
    AssociationArn = "associationArn",
    MergedApi = graphqlApi,
    SourceApi = graphqlApi
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var graphqlApi GraphqlApi

sourceApiAssociationAttributes := &SourceApiAssociationAttributes{
	AssociationArn: jsii.String("associationArn"),
	MergedApi: graphqlApi,
	SourceApi: graphqlApi,
}

Properties ​

associationArnstringassociation_arnstrassociationArnStringAssociationArnstringAssociationArn*string required #
The association arn.
mergedApiIGraphqlApimerged_apiIGraphqlApimergedApiIGraphqlApiMergedApiIGraphqlApiMergedApiIGraphqlApi required #
The merged api in the association.
sourceApiIGraphqlApisource_apiIGraphqlApisourceApiIGraphqlApiSourceApiIGraphqlApiSourceApiIGraphqlApi required #
The source api in the association.