@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.510Z") @Stability(value=Stable) public class KinesisEventSource extends StreamEventSource
Example:
import software.amazon.awscdk.services.kinesis.*;
import software.amazon.awscdk.services.lambda.eventsources.KinesisEventSource;
Function myFunction;
Stream stream = new Stream(this, "MyStream");
myFunction.addEventSource(KinesisEventSource.Builder.create(stream)
.batchSize(100) // default
.startingPosition(StartingPosition.TRIM_HORIZON)
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
KinesisEventSource.Builder
A fluent builder for
KinesisEventSource. |
software.amazon.jsii.JsiiObject.InitializationModeIEventSource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
KinesisEventSource(IStream stream,
KinesisEventSourceProps props) |
protected |
KinesisEventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KinesisEventSource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(IFunction target)
Called by `lambda.addEventSource` to allow the event source to bind to this function.
|
String |
getEventSourceMappingId()
The identifier for this EventSourceMapping.
|
IStream |
getStream() |
enrichMappingOptions, getPropsjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected KinesisEventSource(software.amazon.jsii.JsiiObjectRef objRef)
protected KinesisEventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public KinesisEventSource(@NotNull
IStream stream,
@NotNull
KinesisEventSourceProps props)
stream - This parameter is required.props - This parameter is required.@Stability(value=Stable)
public void bind(@NotNull
IFunction target)
bind in interface IEventSourcebind in class StreamEventSourcetarget - This parameter is required.@Stability(value=Stable) @NotNull public String getEventSourceMappingId()
@Stability(value=Stable) @NotNull public IStream getStream()
Copyright © 2022. All rights reserved.