start_application

start_application(**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.

Starts the specified Amazon Kinesis Analytics application. After creating an application, you must exclusively call this operation to start your application.

After the application starts, it begins consuming the input data, processes it, and writes the output to the configured destination.

The application status must be READY for you to start an application. You can get the application status in the console or using the DescribeApplication operation.

After you start the application, you can stop the application from processing the input by calling the StopApplication operation.

This operation requires permissions to perform the kinesisanalytics:StartApplication action.

See also: AWS API Documentation

Request Syntax

response = client.start_application(
    ApplicationName='string',
    InputConfigurations=[
        {
            'Id': 'string',
            'InputStartingPositionConfiguration': {
                'InputStartingPosition': 'NOW'|'TRIM_HORIZON'|'LAST_STOPPED_POINT'
            }
        },
    ]
)
Parameters
  • ApplicationName (string) --

    [REQUIRED]

    Name of the application.

  • InputConfigurations (list) --

    [REQUIRED]

    Identifies the specific input, by ID, that the application starts consuming. Amazon Kinesis Analytics starts reading the streaming source associated with the input. You can also specify where in the streaming source you want Amazon Kinesis Analytics to start reading.

    • (dict) --

      When you start your application, you provide this configuration, which identifies the input source and the point in the input source at which you want the application to start processing records.

      • Id (string) -- [REQUIRED]

        Input source ID. You can get this ID by calling the DescribeApplication operation.

      • InputStartingPositionConfiguration (dict) -- [REQUIRED]

        Point at which you want the application to start processing records from the streaming source.

        • InputStartingPosition (string) --

          The starting position on the stream.

          • NOW - Start reading just after the most recent record in the stream, start at the request time stamp that the customer issued.
          • TRIM_HORIZON - Start reading at the last untrimmed record in the stream, which is the oldest record available in the stream. This option is not available for an Amazon Kinesis Firehose delivery stream.
          • LAST_STOPPED_POINT - Resume reading from where the application last stopped reading.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

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