# BaseArchiveProps

The event archive base properties.

- Source: [`aws-events/lib/archive.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-events/lib/archive.ts#L16)
- Type last changed: v2.214.0 · 2 Sep 2025

## Example

```ts
const bus = new events.EventBus(this, 'bus', {
  eventBusName: 'MyCustomEventBus',
  description: 'MyCustomEventBus',
});

bus.archive('MyArchive', {
  archiveName: 'MyCustomEventBusArchive',
  description: 'MyCustomerEventBus Archive',
  eventPattern: {
    account: [Stack.of(this).account],
  },
  retention: Duration.days(365),
});
```

## Properties

- `archiveName`: string — The name of the archive.

  **Default:** Automatically generated

- `description`: string = none — A description for the archive.

- `eventPattern`: [EventPattern](/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventPattern.html) (required) — An event pattern to use to filter events sent to the archive.

- `kmsKey`: [IKey](/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The customer managed key that encrypts this archive.

  **Default:** Use an AWS managed key

- `retention`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Infinite — The number of days to retain events for.

  Default value is 0. If set to 0, events are retained indefinitely.
