describe_application

KinesisAnalytics.Client.describe_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.

Returns information about a specific Amazon Kinesis Analytics application.

If you want to retrieve a list of all applications in your account, use the ListApplications operation.

This operation requires permissions to perform the kinesisanalytics:DescribeApplication action. You can use DescribeApplication to get the current application versionId, which you need to call other operations such as Update .

See also: AWS API Documentation

Request Syntax

response = client.describe_application(
    ApplicationName='string'
)
Parameters
ApplicationName (string) --

[REQUIRED]

Name of the application.

Return type
dict
Returns
Response Syntax
{
    'ApplicationDetail': {
        'ApplicationName': 'string',
        'ApplicationDescription': 'string',
        'ApplicationARN': 'string',
        'ApplicationStatus': 'DELETING'|'STARTING'|'STOPPING'|'READY'|'RUNNING'|'UPDATING',
        'CreateTimestamp': datetime(2015, 1, 1),
        'LastUpdateTimestamp': datetime(2015, 1, 1),
        'InputDescriptions': [
            {
                'InputId': 'string',
                'NamePrefix': 'string',
                'InAppStreamNames': [
                    'string',
                ],
                'InputProcessingConfigurationDescription': {
                    'InputLambdaProcessorDescription': {
                        'ResourceARN': 'string',
                        'RoleARN': 'string'
                    }
                },
                'KinesisStreamsInputDescription': {
                    'ResourceARN': 'string',
                    'RoleARN': 'string'
                },
                'KinesisFirehoseInputDescription': {
                    'ResourceARN': 'string',
                    'RoleARN': 'string'
                },
                'InputSchema': {
                    'RecordFormat': {
                        'RecordFormatType': 'JSON'|'CSV',
                        'MappingParameters': {
                            'JSONMappingParameters': {
                                'RecordRowPath': 'string'
                            },
                            'CSVMappingParameters': {
                                'RecordRowDelimiter': 'string',
                                'RecordColumnDelimiter': 'string'
                            }
                        }
                    },
                    'RecordEncoding': 'string',
                    'RecordColumns': [
                        {
                            'Name': 'string',
                            'Mapping': 'string',
                            'SqlType': 'string'
                        },
                    ]
                },
                'InputParallelism': {
                    'Count': 123
                },
                'InputStartingPositionConfiguration': {
                    'InputStartingPosition': 'NOW'|'TRIM_HORIZON'|'LAST_STOPPED_POINT'
                }
            },
        ],
        'OutputDescriptions': [
            {
                'OutputId': 'string',
                'Name': 'string',
                'KinesisStreamsOutputDescription': {
                    'ResourceARN': 'string',
                    'RoleARN': 'string'
                },
                'KinesisFirehoseOutputDescription': {
                    'ResourceARN': 'string',
                    'RoleARN': 'string'
                },
                'LambdaOutputDescription': {
                    'ResourceARN': 'string',
                    'RoleARN': 'string'
                },
                'DestinationSchema': {
                    'RecordFormatType': 'JSON'|'CSV'
                }
            },
        ],
        'ReferenceDataSourceDescriptions': [
            {
                'ReferenceId': 'string',
                'TableName': 'string',
                'S3ReferenceDataSourceDescription': {
                    'BucketARN': 'string',
                    'FileKey': 'string',
                    'ReferenceRoleARN': 'string'
                },
                'ReferenceSchema': {
                    'RecordFormat': {
                        'RecordFormatType': 'JSON'|'CSV',
                        'MappingParameters': {
                            'JSONMappingParameters': {
                                'RecordRowPath': 'string'
                            },
                            'CSVMappingParameters': {
                                'RecordRowDelimiter': 'string',
                                'RecordColumnDelimiter': 'string'
                            }
                        }
                    },
                    'RecordEncoding': 'string',
                    'RecordColumns': [
                        {
                            'Name': 'string',
                            'Mapping': 'string',
                            'SqlType': 'string'
                        },
                    ]
                }
            },
        ],
        'CloudWatchLoggingOptionDescriptions': [
            {
                'CloudWatchLoggingOptionId': 'string',
                'LogStreamARN': 'string',
                'RoleARN': 'string'
            },
        ],
        'ApplicationCode': 'string',
        'ApplicationVersionId': 123
    }
}

Response Structure

  • (dict) --
    • ApplicationDetail (dict) --

      Provides a description of the application, such as the application Amazon Resource Name (ARN), status, latest version, and input and output configuration details.

      • ApplicationName (string) --

        Name of the application.

      • ApplicationDescription (string) --

        Description of the application.

      • ApplicationARN (string) --

        ARN of the application.

      • ApplicationStatus (string) --

        Status of the application.

      • CreateTimestamp (datetime) --

        Time stamp when the application version was created.

      • LastUpdateTimestamp (datetime) --

        Time stamp when the application was last updated.

      • InputDescriptions (list) --

        Describes the application input configuration. For more information, see Configuring Application Input.

        • (dict) --

          Describes the application input configuration. For more information, see Configuring Application Input.

          • InputId (string) --

            Input ID associated with the application input. This is the ID that Amazon Kinesis Analytics assigns to each input configuration you add to your application.

          • NamePrefix (string) --

            In-application name prefix.

          • InAppStreamNames (list) --

            Returns the in-application stream names that are mapped to the stream source.

            • (string) --
          • InputProcessingConfigurationDescription (dict) --

            The description of the preprocessor that executes on records in this input before the application's code is run.

            • InputLambdaProcessorDescription (dict) --

              Provides configuration information about the associated InputLambdaProcessorDescription.

              • ResourceARN (string) --

                The ARN of the AWS Lambda function that is used to preprocess the records in the stream.

              • RoleARN (string) --

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

          • KinesisStreamsInputDescription (dict) --

            If an Amazon Kinesis stream is configured as streaming source, provides Amazon Kinesis stream's Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf.

            • ResourceARN (string) --

              Amazon Resource Name (ARN) of the Amazon Kinesis stream.

            • RoleARN (string) --

              ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream.

          • KinesisFirehoseInputDescription (dict) --

            If an Amazon Kinesis Firehose delivery stream is configured as a streaming source, provides the delivery stream's ARN and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf.

            • ResourceARN (string) --

              Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream.

            • RoleARN (string) --

              ARN of the IAM role that Amazon Kinesis Analytics assumes to access the stream.

          • InputSchema (dict) --

            Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.

            • RecordFormat (dict) --

              Specifies the format of the records on the streaming source.

              • RecordFormatType (string) --

                The type of record format.

              • MappingParameters (dict) --

                When configuring application input at the time of creating or updating an application, provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source.

                • JSONMappingParameters (dict) --

                  Provides additional mapping information when JSON is the record format on the streaming source.

                  • RecordRowPath (string) --

                    Path to the top-level parent that contains the records.

                • CSVMappingParameters (dict) --

                  Provides additional mapping information when the record format uses delimiters (for example, CSV).

                  • RecordRowDelimiter (string) --

                    Row delimiter. For example, in a CSV format, 'n' is the typical row delimiter.

                  • RecordColumnDelimiter (string) --

                    Column delimiter. For example, in a CSV format, a comma (",") is the typical column delimiter.

            • RecordEncoding (string) --

              Specifies the encoding of the records in the streaming source. For example, UTF-8.

            • RecordColumns (list) --

              A list of RecordColumn objects.

              • (dict) --

                Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.

                Also used to describe the format of the reference data source.

                • Name (string) --

                  Name of the column created in the in-application input stream or reference table.

                • Mapping (string) --

                  Reference to the data element in the streaming input or the reference data source. This element is required if the RecordFormatType is JSON .

                • SqlType (string) --

                  Type of column created in the in-application input stream or reference table.

          • InputParallelism (dict) --

            Describes the configured parallelism (number of in-application streams mapped to the streaming source).

            • Count (integer) --

              Number of in-application streams to create. For more information, see Limits.

          • InputStartingPositionConfiguration (dict) --

            Point at which the application is configured to read from the input stream.

            • 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.
      • OutputDescriptions (list) --

        Describes the application output configuration. For more information, see Configuring Application Output.

        • (dict) --

          Describes the application output configuration, which includes the in-application stream name and the destination where the stream data is written. The destination can be an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery stream.

          • OutputId (string) --

            A unique identifier for the output configuration.

          • Name (string) --

            Name of the in-application stream configured as output.

          • KinesisStreamsOutputDescription (dict) --

            Describes Amazon Kinesis stream configured as the destination where output is written.

            • ResourceARN (string) --

              Amazon Resource Name (ARN) of the Amazon Kinesis stream.

            • RoleARN (string) --

              ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream.

          • KinesisFirehoseOutputDescription (dict) --

            Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is written.

            • ResourceARN (string) --

              Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream.

            • RoleARN (string) --

              ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream.

          • LambdaOutputDescription (dict) --

            Describes the AWS Lambda function configured as the destination where output is written.

            • ResourceARN (string) --

              Amazon Resource Name (ARN) of the destination Lambda function.

            • RoleARN (string) --

              ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination function.

          • DestinationSchema (dict) --

            Data format used for writing data to the destination.

            • RecordFormatType (string) --

              Specifies the format of the records on the output stream.

      • ReferenceDataSourceDescriptions (list) --

        Describes reference data sources configured for the application. For more information, see Configuring Application Input.

        • (dict) --

          Describes the reference data source configured for an application.

          • ReferenceId (string) --

            ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the reference data source to your application using the AddApplicationReferenceDataSource operation.

          • TableName (string) --

            The in-application table name created by the specific reference data source configuration.

          • S3ReferenceDataSourceDescription (dict) --

            Provides the S3 bucket name, the object key name that contains the reference data. It also provides the Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and populate the in-application reference table.

            • BucketARN (string) --

              Amazon Resource Name (ARN) of the S3 bucket.

            • FileKey (string) --

              Amazon S3 object key name.

            • ReferenceRoleARN (string) --

              ARN of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object on your behalf to populate the in-application reference table.

          • ReferenceSchema (dict) --

            Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.

            • RecordFormat (dict) --

              Specifies the format of the records on the streaming source.

              • RecordFormatType (string) --

                The type of record format.

              • MappingParameters (dict) --

                When configuring application input at the time of creating or updating an application, provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source.

                • JSONMappingParameters (dict) --

                  Provides additional mapping information when JSON is the record format on the streaming source.

                  • RecordRowPath (string) --

                    Path to the top-level parent that contains the records.

                • CSVMappingParameters (dict) --

                  Provides additional mapping information when the record format uses delimiters (for example, CSV).

                  • RecordRowDelimiter (string) --

                    Row delimiter. For example, in a CSV format, 'n' is the typical row delimiter.

                  • RecordColumnDelimiter (string) --

                    Column delimiter. For example, in a CSV format, a comma (",") is the typical column delimiter.

            • RecordEncoding (string) --

              Specifies the encoding of the records in the streaming source. For example, UTF-8.

            • RecordColumns (list) --

              A list of RecordColumn objects.

              • (dict) --

                Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.

                Also used to describe the format of the reference data source.

                • Name (string) --

                  Name of the column created in the in-application input stream or reference table.

                • Mapping (string) --

                  Reference to the data element in the streaming input or the reference data source. This element is required if the RecordFormatType is JSON .

                • SqlType (string) --

                  Type of column created in the in-application input stream or reference table.

      • CloudWatchLoggingOptionDescriptions (list) --

        Describes the CloudWatch log streams that are configured to receive application messages. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs.

        • (dict) --

          Description of the CloudWatch logging option.

          • CloudWatchLoggingOptionId (string) --

            ID of the CloudWatch logging option description.

          • LogStreamARN (string) --

            ARN of the CloudWatch log to receive application messages.

          • RoleARN (string) --

            IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the IAM role used must have the PutLogEvents policy action enabled.

      • ApplicationCode (string) --

        Returns the application code that you provided to perform data analysis on any of the in-application streams in your application.

      • ApplicationVersionId (integer) --

        Provides the current application version.

Exceptions

  • KinesisAnalytics.Client.exceptions.ResourceNotFoundException
  • KinesisAnalytics.Client.exceptions.UnsupportedOperationException