# EventSourceProperty

- 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 eventSourceProperty: sam.CfnStateMachine.EventSourceProperty = {
  properties: {
    method: 'method',
    path: 'path',

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

## Properties

- `properties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.ApiEventProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.ApiEventProperty.html) | [CfnStateMachine.CloudWatchEventEventProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.CloudWatchEventEventProperty.html) | [CfnStateMachine.EventBridgeRuleEventProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.EventBridgeRuleEventProperty.html) | [CfnStateMachine.ScheduleEventProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.ScheduleEventProperty.html) (required)

- `type`: string (required)
