This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation.

Adds an InputProcessingConfiguration to an application. An input processor preprocesses records on the input stream before the application's SQL code executes. Currently, the only input processor available is AWS Lambda.

See also: AWS API Documentation

Request Syntax

response = client.add_application_input_processing_configuration(
        'InputLambdaProcessor': {
            'ResourceARN': 'string',
            'RoleARN': 'string'
  • ApplicationName (string) --


    Name of the application to which you want to add the input processing configuration.

  • CurrentApplicationVersionId (integer) --


    Version of the application to which you want to add the input processing configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • InputId (string) --


    The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the DescribeApplication operation.

  • InputProcessingConfiguration (dict) --


    The InputProcessingConfiguration to add to the application.

    • InputLambdaProcessor (dict) -- [REQUIRED]

      The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code.

      • ResourceARN (string) -- [REQUIRED]

        The ARN of the AWS Lambda function that operates on records in the stream.


        To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see Example ARNs: AWS Lambda

      • RoleARN (string) -- [REQUIRED]

        The ARN of the IAM role that is used to access the AWS Lambda function.

Return type



Response Syntax


Response Structure

  • (dict) --


  • KinesisAnalytics.Client.exceptions.ResourceNotFoundException
  • KinesisAnalytics.Client.exceptions.ResourceInUseException
  • KinesisAnalytics.Client.exceptions.InvalidArgumentException
  • KinesisAnalytics.Client.exceptions.ConcurrentModificationException
  • KinesisAnalytics.Client.exceptions.UnsupportedOperationException