# EventInvokeConfigProperty

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const eventInvokeConfigProperty: sam.CfnFunction.EventInvokeConfigProperty = {
  destinationConfig: {
    onFailure: {
      destination: 'destination',

      // the properties below are optional
      type: 'type',
    },
    onSuccess: {
      destination: 'destination',

      // the properties below are optional
      type: 'type',
    },
  },
  maximumEventAgeInSeconds: 123,
  maximumRetryAttempts: 123,
};
```

## Properties

- `destinationConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunction.EventInvokeDestinationConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.EventInvokeDestinationConfigProperty.html)

- `maximumEventAgeInSeconds`: number

- `maximumRetryAttempts`: number
