class Aws::LambdaPreview::Types::AddEventSourceRequest

@note When making an API call, you may pass AddEventSourceRequest

data as a hash:

    {
      event_source: "String", # required
      function_name: "FunctionName", # required
      role: "RoleArn", # required
      batch_size: 1,
      parameters: {
        "String" => "String",
      },
    }

@!attribute [rw] event_source

The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
the event source. Any record added to this stream causes AWS Lambda
to invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis
event, containing records, to your Lambda function as JSON.
@return [String]

@!attribute [rw] function_name

The Lambda function to invoke when AWS Lambda detects an event on
the stream.
@return [String]

@!attribute [rw] role

The ARN of the IAM role (invocation role) that AWS Lambda can assume
to read from the stream and invoke the function.
@return [String]

@!attribute [rw] batch_size

The largest number of records that AWS Lambda will give to your
function in a single event. The default is 100 records.
@return [Integer]

@!attribute [rw] parameters

A map (key-value pairs) defining the configuration for AWS Lambda to
use when reading the event source. Currently, AWS Lambda supports
only the `InitialPositionInStream` key. The valid values are:
"TRIM\_HORIZON" and "LATEST". The default value is
"TRIM\_HORIZON". For more information, go to
[ShardIteratorType][1] in the Amazon Kinesis Service API Reference.

[1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
@return [Hash<String,String>]

@see docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/AddEventSourceRequest AWS API Documentation

Constants

SENSITIVE