# EventApiAttributes

Attributes for Event API imports.

- Source: [`aws-appsync/lib/eventapi.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-appsync/lib/eventapi.ts#L509)
- Type last changed: v2.193.0 · 30 Apr 2025

## 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';
const eventApiAttributes: appsync.EventApiAttributes = {
  apiId: 'apiId',
  httpDns: 'httpDns',
  realtimeDns: 'realtimeDns',

  // the properties below are optional
  apiArn: 'apiArn',
  apiName: 'apiName',
  authProviderTypes: [appsync.AppSyncAuthorizationType.API_KEY],
};
```

## Properties

- `apiArn`: string — the ARN of the Event API.

  **Default:** constructed arn

- `apiId`: string (required) — a unique AWS AppSync Event API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'.

- `apiName`: string — the name of the Event API.

  **Default:** not needed to import API

- `authProviderTypes`: [AppSyncAuthorizationType](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.AppSyncAuthorizationType.html)[] — The Authorization Types for this Event Api.

  **Default:** none, required to construct event rules from imported APIs

- `httpDns`: string (required) — the domain name of the Api's HTTP endpoint.

- `realtimeDns`: string (required) — the domain name of the Api's real-time endpoint.
