# ApiEventProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 apiEventProperty: sam.CfnStateMachine.ApiEventProperty = {
  method: 'method',
  path: 'path',

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sam as sam

api_event_property = sam.CfnStateMachine.ApiEventProperty(
    method="method",
    path="path",

    # the properties below are optional
    rest_api_id="restApiId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sam.*;

ApiEventProperty apiEventProperty = ApiEventProperty.builder()
        .method("method")
        .path("path")

        // the properties below are optional
        .restApiId("restApiId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SAM;

var apiEventProperty = new ApiEventProperty {
    Method = "method",
    Path = "path",

    // the properties below are optional
    RestApiId = "restApiId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

apiEventProperty := &ApiEventProperty{
	Method: jsii.String("method"),
	Path: jsii.String("path"),

	// the properties below are optional
	RestApiId: jsii.String("restApiId"),
}
```

## Properties

- `method`: string (required)

- `path`: string (required)

- `restApiId`: string
