add_application_input_processing_configuration
(**kwargs)¶Note
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(
ApplicationName='string',
CurrentApplicationVersionId=123,
InputId='string',
InputProcessingConfiguration={
'InputLambdaProcessor': {
'ResourceARN': 'string',
'RoleARN': 'string'
}
}
)
[REQUIRED]
Name of the application to which you want to add the input processing configuration.
[REQUIRED]
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.
[REQUIRED]
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.
[REQUIRED]
The InputProcessingConfiguration to add to the application.
The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code.
The ARN of the AWS Lambda function that operates on records in the stream.
Note
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
The ARN of the IAM role that is used to access the AWS Lambda function.
dict
Response Syntax
{}
Response Structure
Exceptions
KinesisAnalytics.Client.exceptions.ResourceNotFoundException
KinesisAnalytics.Client.exceptions.ResourceInUseException
KinesisAnalytics.Client.exceptions.InvalidArgumentException
KinesisAnalytics.Client.exceptions.ConcurrentModificationException
KinesisAnalytics.Client.exceptions.UnsupportedOperationException