Skip to content
v2.278.0

KinesisEventProperty Struct ​

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

  // the properties below are optional
  batchSize: 123,
  enabled: false,
  functionResponseTypes: ['functionResponseTypes'],
};
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
// 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();
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" }
};
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 ​

batchSizeoptionalnumberbatch_sizeoptionalint | floatbatchSizeoptionalNumberBatchSizeoptionaldoubleBatchSizeoptional*float64 #
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
functionResponseTypesoptionalstring[]function_response_typesoptionaltyping.List[str]functionResponseTypesoptionalList<String>FunctionResponseTypesoptionalstring[]FunctionResponseTypesoptional*[]*string #
startingPositionstringstarting_positionstrstartingPositionStringStartingPositionstringStartingPosition*string required #
streamstringstreamstrstreamStringStreamstringStream*string required #