# KinesisEventProperty

- 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 kinesisEventProperty: sam.CfnFunction.KinesisEventProperty = {
  startingPosition: 'startingPosition',
  stream: 'stream',

  // the properties below are optional
  batchSize: 123,
  enabled: false,
  functionResponseTypes: ['functionResponseTypes'],
};
```

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

kinesis_event_property = sam.CfnFunction.KinesisEventProperty(
    starting_position="startingPosition",
    stream="stream",

    # the properties below are optional
    batch_size=123,
    enabled=False,
    function_response_types=["functionResponseTypes"]
)
```

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.*;

KinesisEventProperty kinesisEventProperty = KinesisEventProperty.builder()
        .startingPosition("startingPosition")
        .stream("stream")

        // the properties below are optional
        .batchSize(123)
        .enabled(false)
        .functionResponseTypes(List.of("functionResponseTypes"))
        .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 kinesisEventProperty = new KinesisEventProperty {
    StartingPosition = "startingPosition",
    Stream = "stream",

    // the properties below are optional
    BatchSize = 123,
    Enabled = false,
    FunctionResponseTypes = new [] { "functionResponseTypes" }
};
```

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"

kinesisEventProperty := &KinesisEventProperty{
	StartingPosition: jsii.String("startingPosition"),
	Stream: jsii.String("stream"),

	// the properties below are optional
	BatchSize: jsii.Number(123),
	Enabled: jsii.Boolean(false),
	FunctionResponseTypes: []*string{
		jsii.String("functionResponseTypes"),
	},
}
```

## Properties

- `batchSize`: number

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html)

- `functionResponseTypes`: string[]

- `startingPosition`: string (required)

- `stream`: string (required)
