# SourceApiAssociationAttributes

The attributes for imported AppSync Source Api Association.

Used as argument in: [SourceApiAssociation.fromSourceApiAssociationAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.SourceApiAssociation.html#fromsourceapiassociationattributes)

- Source: [`aws-appsync/lib/source-api-association.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appsync/lib/source-api-association.ts#L56)
- Type last changed: v2.97.0 · 22 Sep 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `associationArn`: string (required) — The association arn.

- `mergedApi`: [IGraphqlApi](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.IGraphqlApi.html) (required) — The merged api in the association.

- `sourceApi`: [IGraphqlApi](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.IGraphqlApi.html) (required) — The source api in the association.
