# EventInvokeDestinationConfigProperty

- 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 eventInvokeDestinationConfigProperty: sam.CfnFunction.EventInvokeDestinationConfigProperty = {
  onFailure: {
    destination: 'destination',

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

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

## Properties

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

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