# SourceApi

Configuration of source API.

- Source: [`aws-appsync/lib/graphqlapi.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts#L348)
- Type last changed: v2.97.0 · 22 Sep 2023

## 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 sourceApi: appsync.SourceApi = {
  sourceApi: graphqlApi,

  // the properties below are optional
  description: 'description',
  mergeType: appsync.MergeType.MANUAL_MERGE,
};
```

## Properties

- `description`: string — Description of the Source API asssociation.

- `mergeType`: [MergeType](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.MergeType.html) — Merging option used to associate the source API to the Merged API.

  **Default:** Auto merge. The merge is triggered automatically when the source API has changed

- `sourceApi`: [IGraphqlApi](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.IGraphqlApi.html) (required) — Source API that is associated with the merged API.
