Amazon Kinesis Analytics

2019/05/08 - Amazon Kinesis Analytics - 3 new 1 updated api methods

Changes  Kinesis Data Analytics APIs now support tagging on applications.

ListTagsForResource (new) Link ¶

Retrieves the list of key-value tags assigned to the application.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    ResourceARN='string'
)
type ResourceARN

string

param ResourceARN

[REQUIRED]

The ARN of the application for which to retrieve tags.

rtype

dict

returns

Response Syntax

{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Tags (list) --

      The key-value tags assigned to the application.

      • (dict) --

        A key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management Guide .

        • Key (string) --

          The key of the key-value tag.

        • Value (string) --

          The value of the key-value tag. The value is optional.

TagResource (new) Link ¶

Adds one or more key-value tags to a Kinesis Analytics application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    ResourceARN='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type ResourceARN

string

param ResourceARN

[REQUIRED]

The ARN of the application to assign the tags.

type Tags

list

param Tags

[REQUIRED]

The key-value tags to assign to the application.

  • (dict) --

    A key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management Guide .

    • Key (string) -- [REQUIRED]

      The key of the key-value tag.

    • Value (string) --

      The value of the key-value tag. The value is optional.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

UntagResource (new) Link ¶

Removes one or more tags from a Kinesis Analytics application.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    ResourceARN='string',
    TagKeys=[
        'string',
    ]
)
type ResourceARN

string

param ResourceARN

[REQUIRED]

The ARN of the Kinesis Analytics application from which to remove the tags.

type TagKeys

list

param TagKeys

[REQUIRED]

A list of keys of tags to remove from the specified application.

  • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

CreateApplication (updated) Link ¶
Changes (request)
{'Tags': [{'Key': 'string', 'Value': 'string'}]}

Creates an Amazon Kinesis Data Analytics application. For information about creating a Kinesis Data Analytics application, see Creating an Application.

See also: AWS API Documentation

Request Syntax

client.create_application(
    ApplicationName='string',
    ApplicationDescription='string',
    RuntimeEnvironment='SQL-1_0'|'FLINK-1_6',
    ServiceExecutionRole='string',
    ApplicationConfiguration={
        'SqlApplicationConfiguration': {
            'Inputs': [
                {
                    'NamePrefix': 'string',
                    'InputProcessingConfiguration': {
                        'InputLambdaProcessor': {
                            'ResourceARN': 'string'
                        }
                    },
                    'KinesisStreamsInput': {
                        'ResourceARN': 'string'
                    },
                    'KinesisFirehoseInput': {
                        'ResourceARN': 'string'
                    },
                    'InputParallelism': {
                        'Count': 123
                    },
                    'InputSchema': {
                        'RecordFormat': {
                            'RecordFormatType': 'JSON'|'CSV',
                            'MappingParameters': {
                                'JSONMappingParameters': {
                                    'RecordRowPath': 'string'
                                },
                                'CSVMappingParameters': {
                                    'RecordRowDelimiter': 'string',
                                    'RecordColumnDelimiter': 'string'
                                }
                            }
                        },
                        'RecordEncoding': 'string',
                        'RecordColumns': [
                            {
                                'Name': 'string',
                                'Mapping': 'string',
                                'SqlType': 'string'
                            },
                        ]
                    }
                },
            ],
            'Outputs': [
                {
                    'Name': 'string',
                    'KinesisStreamsOutput': {
                        'ResourceARN': 'string'
                    },
                    'KinesisFirehoseOutput': {
                        'ResourceARN': 'string'
                    },
                    'LambdaOutput': {
                        'ResourceARN': 'string'
                    },
                    'DestinationSchema': {
                        'RecordFormatType': 'JSON'|'CSV'
                    }
                },
            ],
            'ReferenceDataSources': [
                {
                    'TableName': 'string',
                    'S3ReferenceDataSource': {
                        'BucketARN': 'string',
                        'FileKey': 'string'
                    },
                    'ReferenceSchema': {
                        'RecordFormat': {
                            'RecordFormatType': 'JSON'|'CSV',
                            'MappingParameters': {
                                'JSONMappingParameters': {
                                    'RecordRowPath': 'string'
                                },
                                'CSVMappingParameters': {
                                    'RecordRowDelimiter': 'string',
                                    'RecordColumnDelimiter': 'string'
                                }
                            }
                        },
                        'RecordEncoding': 'string',
                        'RecordColumns': [
                            {
                                'Name': 'string',
                                'Mapping': 'string',
                                'SqlType': 'string'
                            },
                        ]
                    }
                },
            ]
        },
        'FlinkApplicationConfiguration': {
            'CheckpointConfiguration': {
                'ConfigurationType': 'DEFAULT'|'CUSTOM',
                'CheckpointingEnabled': True|False,
                'CheckpointInterval': 123,
                'MinPauseBetweenCheckpoints': 123
            },
            'MonitoringConfiguration': {
                'ConfigurationType': 'DEFAULT'|'CUSTOM',
                'MetricsLevel': 'APPLICATION'|'TASK'|'OPERATOR'|'PARALLELISM',
                'LogLevel': 'INFO'|'WARN'|'ERROR'|'DEBUG'
            },
            'ParallelismConfiguration': {
                'ConfigurationType': 'DEFAULT'|'CUSTOM',
                'Parallelism': 123,
                'ParallelismPerKPU': 123,
                'AutoScalingEnabled': True|False
            }
        },
        'EnvironmentProperties': {
            'PropertyGroups': [
                {
                    'PropertyGroupId': 'string',
                    'PropertyMap': {
                        'string': 'string'
                    }
                },
            ]
        },
        'ApplicationCodeConfiguration': {
            'CodeContent': {
                'TextContent': 'string',
                'ZipFileContent': b'bytes',
                'S3ContentLocation': {
                    'BucketARN': 'string',
                    'FileKey': 'string',
                    'ObjectVersion': 'string'
                }
            },
            'CodeContentType': 'PLAINTEXT'|'ZIPFILE'
        },
        'ApplicationSnapshotConfiguration': {
            'SnapshotsEnabled': True|False
        }
    },
    CloudWatchLoggingOptions=[
        {
            'LogStreamARN': 'string'
        },
    ],
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type ApplicationName

string

param ApplicationName

[REQUIRED]

The name of your application (for example, sample-app ).

type ApplicationDescription

string

param ApplicationDescription

A summary description of the application.

type RuntimeEnvironment

string

param RuntimeEnvironment

[REQUIRED]

The runtime environment for the application ( SQL-1.0 or FLINK-1_6 ).

type ServiceExecutionRole

string

param ServiceExecutionRole

[REQUIRED]

The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.

type ApplicationConfiguration

dict

param ApplicationConfiguration

Use this parameter to configure the application.

  • SqlApplicationConfiguration (dict) --

    The creation and update parameters for an SQL-based Kinesis Data Analytics application.

    • Inputs (list) --

      The array of Input objects describing the input streams used by the application.

      • (dict) --

        When you configure the application input for an SQL-based Amazon Kinesis Data Analytics application, you specify the streaming source, the in-application stream name that is created, and the mapping between the two.

        • NamePrefix (string) -- [REQUIRED]

          The name prefix to use when creating an in-application stream. Suppose that you specify a prefix " MyInApplicationStream ." Kinesis Data Analytics then creates one or more (as per the InputParallelism count you specified) in-application streams with the names " MyInApplicationStream_001 ," " MyInApplicationStream_002 ," and so on.

        • InputProcessingConfiguration (dict) --

          The InputProcessingConfiguration for the input. An input processor transforms records as they are received from the stream, before the application's SQL code executes. Currently, the only input processing configuration available is InputLambdaProcessor.

          • 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.

              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

        • KinesisStreamsInput (dict) --

          If the streaming source is an Amazon Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).

          • ResourceARN (string) -- [REQUIRED]

            The ARN of the input Kinesis data stream to read.

        • KinesisFirehoseInput (dict) --

          If the streaming source is an Amazon Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.

          • ResourceARN (string) -- [REQUIRED]

            The Amazon Resource Name (ARN) of the delivery stream.

        • InputParallelism (dict) --

          Describes the number of in-application streams to create.

          • Count (integer) --

            The number of in-application streams to create.

        • InputSchema (dict) -- [REQUIRED]

          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.

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

          • RecordFormat (dict) -- [REQUIRED]

            Specifies the format of the records on the streaming source.

            • RecordFormatType (string) -- [REQUIRED]

              The type of record format.

            • MappingParameters (dict) --

              When you configure 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) -- [REQUIRED]

                  The 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) -- [REQUIRED]

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

                • RecordColumnDelimiter (string) -- [REQUIRED]

                  The 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) -- [REQUIRED]

            A list of RecordColumn objects.

            • (dict) --

              For an SQL-based Amazon Kinesis Data Analytics application, 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) -- [REQUIRED]

                The name of the column that is created in the in-application input stream or reference table.

              • Mapping (string) --

                A reference to the data element in the streaming input or the reference data source.

              • SqlType (string) -- [REQUIRED]

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

    • Outputs (list) --

      The array of Output objects describing the destination streams used by the application.

      • (dict) --

        Describes an SQL-based Amazon Kinesis Data Analytics application's output configuration, in which you identify an in-application stream and a destination where you want the in-application stream data to be written. The destination can be a Kinesis data stream or a Kinesis Data Firehose delivery stream.

        • Name (string) -- [REQUIRED]

          The name of the in-application stream.

        • KinesisStreamsOutput (dict) --

          Identifies an Amazon Kinesis data stream as the destination.

          • ResourceARN (string) -- [REQUIRED]

            The ARN of the destination Kinesis data stream to write to.

        • KinesisFirehoseOutput (dict) --

          Identifies an Amazon Kinesis Data Firehose delivery stream as the destination.

          • ResourceARN (string) -- [REQUIRED]

            The ARN of the destination delivery stream to write to.

        • LambdaOutput (dict) --

          Identifies an AWS Lambda function as the destination.

          • ResourceARN (string) -- [REQUIRED]

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

            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

        • DestinationSchema (dict) -- [REQUIRED]

          Describes the data format when records are written to the destination.

          • RecordFormatType (string) -- [REQUIRED]

            Specifies the format of the records on the output stream.

    • ReferenceDataSources (list) --

      The array of ReferenceDataSource objects describing the reference data sources used by the application.

      • (dict) --

        For an SQL-based Amazon Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table.

        • TableName (string) -- [REQUIRED]

          The name of the in-application table to create.

        • S3ReferenceDataSource (dict) --

          Identifies the S3 bucket and object that contains the reference data. A Kinesis Data Analytics application loads reference data only once. If the data changes, you call the UpdateApplication operation to trigger reloading of data into your application.

          • BucketARN (string) --

            The Amazon Resource Name (ARN) of the S3 bucket.

          • FileKey (string) --

            The object key name containing the reference data.

        • ReferenceSchema (dict) -- [REQUIRED]

          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) -- [REQUIRED]

            Specifies the format of the records on the streaming source.

            • RecordFormatType (string) -- [REQUIRED]

              The type of record format.

            • MappingParameters (dict) --

              When you configure 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) -- [REQUIRED]

                  The 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) -- [REQUIRED]

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

                • RecordColumnDelimiter (string) -- [REQUIRED]

                  The 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) -- [REQUIRED]

            A list of RecordColumn objects.

            • (dict) --

              For an SQL-based Amazon Kinesis Data Analytics application, 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) -- [REQUIRED]

                The name of the column that is created in the in-application input stream or reference table.

              • Mapping (string) --

                A reference to the data element in the streaming input or the reference data source.

              • SqlType (string) -- [REQUIRED]

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

  • FlinkApplicationConfiguration (dict) --

    The creation and update parameters for a Java-based Kinesis Data Analytics application.

    • CheckpointConfiguration (dict) --

      Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation.

      • ConfigurationType (string) -- [REQUIRED]

        Describes whether the application uses Amazon Kinesis Data Analytics' default checkpointing behavior.

      • CheckpointingEnabled (boolean) --

        Describes whether checkpointing is enabled for a Java-based Kinesis Data Analytics application.

      • CheckpointInterval (integer) --

        Describes the interval in milliseconds between checkpoint operations.

      • MinPauseBetweenCheckpoints (integer) --

        Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval , the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation.

    • MonitoringConfiguration (dict) --

      Describes configuration parameters for Amazon CloudWatch logging for an application.

      • ConfigurationType (string) -- [REQUIRED]

        Describes whether to use the default CloudWatch logging configuration for an application.

      • MetricsLevel (string) --

        Describes the granularity of the CloudWatch Logs for an application.

      • LogLevel (string) --

        Describes the verbosity of the CloudWatch Logs for an application.

    • ParallelismConfiguration (dict) --

      Describes parameters for how an application executes multiple tasks simultaneously.

      • ConfigurationType (string) -- [REQUIRED]

        Describes whether the application uses the default parallelism for the Kinesis Data Analytics service.

      • Parallelism (integer) --

        Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration$AutoScalingEnabled is set to true .

      • ParallelismPerKPU (integer) --

        Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.

      • AutoScalingEnabled (boolean) --

        Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.

  • EnvironmentProperties (dict) --

    Describes execution properties for a Java-based Kinesis Data Analytics application.

    • PropertyGroups (list) -- [REQUIRED]

      Describes the execution property groups.

      • (dict) --

        Property key-value pairs passed into a Java-based Kinesis Data Analytics application.

        • PropertyGroupId (string) -- [REQUIRED]

          Describes the key of an application execution property key-value pair.

        • PropertyMap (dict) -- [REQUIRED]

          Describes the value of an application execution property key-value pair.

          • (string) --

            • (string) --

  • ApplicationCodeConfiguration (dict) -- [REQUIRED]

    The code location and type parameters for a Java-based Kinesis Data Analytics application.

    • CodeContent (dict) --

      The location and type of the application code.

      • TextContent (string) --

        The text-format code for a Java-based Kinesis Data Analytics application.

      • ZipFileContent (bytes) --

        The zip-format code for a Java-based Kinesis Data Analytics application.

      • S3ContentLocation (dict) --

        Information about the Amazon S3 bucket containing the application code.

        • BucketARN (string) -- [REQUIRED]

          The Amazon Resource Name (ARN) for the S3 bucket containing the application code.

        • FileKey (string) -- [REQUIRED]

          The file key for the object containing the application code.

        • ObjectVersion (string) --

          The version of the object containing the application code.

    • CodeContentType (string) -- [REQUIRED]

      Specifies whether the code content is in text or zip format.

  • ApplicationSnapshotConfiguration (dict) --

    Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

    • SnapshotsEnabled (boolean) -- [REQUIRED]

      Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

type CloudWatchLoggingOptions

list

param CloudWatchLoggingOptions

Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors.

  • (dict) --

    Provides a description of Amazon CloudWatch logging options, including the log stream Amazon Resource Name (ARN).

    • LogStreamARN (string) -- [REQUIRED]

      The ARN of the CloudWatch log to receive application messages.

type Tags

list

param Tags

A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management Guide .

  • (dict) --

    A key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management Guide .

    • Key (string) -- [REQUIRED]

      The key of the key-value tag.

    • Value (string) --

      The value of the key-value tag. The value is optional.

rtype

dict

returns

Response Syntax

{
    'ApplicationDetail': {
        'ApplicationARN': 'string',
        'ApplicationDescription': 'string',
        'ApplicationName': 'string',
        'RuntimeEnvironment': 'SQL-1_0'|'FLINK-1_6',
        'ServiceExecutionRole': 'string',
        'ApplicationStatus': 'DELETING'|'STARTING'|'STOPPING'|'READY'|'RUNNING'|'UPDATING',
        'ApplicationVersionId': 123,
        'CreateTimestamp': datetime(2015, 1, 1),
        'LastUpdateTimestamp': datetime(2015, 1, 1),
        'ApplicationConfigurationDescription': {
            'SqlApplicationConfigurationDescription': {
                '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'
                                },
                            ]
                        }
                    },
                ]
            },
            'ApplicationCodeConfigurationDescription': {
                'CodeContentType': 'PLAINTEXT'|'ZIPFILE',
                'CodeContentDescription': {
                    'TextContent': 'string',
                    'CodeMD5': 'string',
                    'CodeSize': 123,
                    'S3ApplicationCodeLocationDescription': {
                        'BucketARN': 'string',
                        'FileKey': 'string',
                        'ObjectVersion': 'string'
                    }
                }
            },
            'RunConfigurationDescription': {
                'ApplicationRestoreConfigurationDescription': {
                    'ApplicationRestoreType': 'SKIP_RESTORE_FROM_SNAPSHOT'|'RESTORE_FROM_LATEST_SNAPSHOT'|'RESTORE_FROM_CUSTOM_SNAPSHOT',
                    'SnapshotName': 'string'
                }
            },
            'FlinkApplicationConfigurationDescription': {
                'CheckpointConfigurationDescription': {
                    'ConfigurationType': 'DEFAULT'|'CUSTOM',
                    'CheckpointingEnabled': True|False,
                    'CheckpointInterval': 123,
                    'MinPauseBetweenCheckpoints': 123
                },
                'MonitoringConfigurationDescription': {
                    'ConfigurationType': 'DEFAULT'|'CUSTOM',
                    'MetricsLevel': 'APPLICATION'|'TASK'|'OPERATOR'|'PARALLELISM',
                    'LogLevel': 'INFO'|'WARN'|'ERROR'|'DEBUG'
                },
                'ParallelismConfigurationDescription': {
                    'ConfigurationType': 'DEFAULT'|'CUSTOM',
                    'Parallelism': 123,
                    'ParallelismPerKPU': 123,
                    'CurrentParallelism': 123,
                    'AutoScalingEnabled': True|False
                },
                'JobPlanDescription': 'string'
            },
            'EnvironmentPropertyDescriptions': {
                'PropertyGroupDescriptions': [
                    {
                        'PropertyGroupId': 'string',
                        'PropertyMap': {
                            'string': 'string'
                        }
                    },
                ]
            },
            'ApplicationSnapshotConfigurationDescription': {
                'SnapshotsEnabled': True|False
            }
        },
        'CloudWatchLoggingOptionDescriptions': [
            {
                'CloudWatchLoggingOptionId': 'string',
                'LogStreamARN': 'string',
                'RoleARN': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • ApplicationDetail (dict) --

      In response to your CreateApplication request, Kinesis Data Analytics returns a response with details of the application it created.

      • ApplicationARN (string) --

        The ARN of the application.

      • ApplicationDescription (string) --

        The description of the application.

      • ApplicationName (string) --

        The name of the application.

      • RuntimeEnvironment (string) --

        The runtime environment for the application ( SQL-1.0 or FLINK-1_6 ).

      • ServiceExecutionRole (string) --

        Specifies the IAM role that the application uses to access external resources.

      • ApplicationStatus (string) --

        The status of the application.

      • ApplicationVersionId (integer) --

        Provides the current application version. Kinesis Data Analytics updates the ApplicationVersionId each time you update the application.

      • CreateTimestamp (datetime) --

        The current timestamp when the application was created.

      • LastUpdateTimestamp (datetime) --

        The current timestamp when the application was last updated.

      • ApplicationConfigurationDescription (dict) --

        Provides details about the application's SQL or Java code and starting parameters.

        • SqlApplicationConfigurationDescription (dict) --

          The details about inputs, outputs, and reference data sources for an SQL-based Kinesis Data Analytics application.

          • InputDescriptions (list) --

            The array of InputDescription objects describing the input streams used by the application.

            • (dict) --

              Describes the application input configuration for an SQL-based Amazon Kinesis Data Analytics application.

              • InputId (string) --

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

              • NamePrefix (string) --

                The 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.

                    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

                  • RoleARN (string) --

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

                    Note

                    Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

              • KinesisStreamsInputDescription (dict) --

                If a Kinesis data stream is configured as a streaming source, provides the Kinesis data stream's Amazon Resource Name (ARN).

                • ResourceARN (string) --

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

                • RoleARN (string) --

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

                  Note

                  Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

              • KinesisFirehoseInputDescription (dict) --

                If a Kinesis Data Firehose delivery stream is configured as a streaming source, provides the delivery stream's ARN.

                • ResourceARN (string) --

                  The Amazon Resource Name (ARN) of the delivery stream.

                • RoleARN (string) --

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

                  Note

                  Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

              • 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 you configure 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) --

                        The 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) --

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

                      • RecordColumnDelimiter (string) --

                        The 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) --

                    For an SQL-based Amazon Kinesis Data Analytics application, 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) --

                      The name of the column that is created in the in-application input stream or reference table.

                    • Mapping (string) --

                      A reference to the data element in the streaming input or the reference data source.

                    • SqlType (string) --

                      The 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) --

                  The number of in-application streams to create.

              • InputStartingPositionConfiguration (dict) --

                The 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, and start at the request timestamp 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 Data Firehose delivery stream.

                  • LAST_STOPPED_POINT - Resume reading from where the application last stopped reading.

          • OutputDescriptions (list) --

            The array of OutputDescription objects describing the destination streams used by the application.

            • (dict) --

              For an SQL-based Amazon Kinesis Data Analytics application, 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 a Kinesis data stream or a Kinesis Data Firehose delivery stream.

              • OutputId (string) --

                A unique identifier for the output configuration.

              • Name (string) --

                The name of the in-application stream that is configured as output.

              • KinesisStreamsOutputDescription (dict) --

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

                • ResourceARN (string) --

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

                • RoleARN (string) --

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

                  Note

                  Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

              • KinesisFirehoseOutputDescription (dict) --

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

                • ResourceARN (string) --

                  The Amazon Resource Name (ARN) of the delivery stream.

                • RoleARN (string) --

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

                  Note

                  Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

              • LambdaOutputDescription (dict) --

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

                • ResourceARN (string) --

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

                • RoleARN (string) --

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

                  Note

                  Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

              • DestinationSchema (dict) --

                The data format used for writing data to the destination.

                • RecordFormatType (string) --

                  Specifies the format of the records on the output stream.

          • ReferenceDataSourceDescriptions (list) --

            The array of ReferenceDataSourceDescription objects describing the reference data sources used by the application.

            • (dict) --

              For an SQL-based Amazon Kinesis Data Analytics application, describes the reference data source configured for an application.

              • ReferenceId (string) --

                The ID of the reference data source. This is the ID that Kinesis Data Analytics assigns when you add the reference data source to your application using the CreateApplication or UpdateApplication operation.

              • TableName (string) --

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

              • S3ReferenceDataSourceDescription (dict) --

                Provides the Amazon S3 bucket name, the object key name that contains the reference data.

                • BucketARN (string) --

                  The Amazon Resource Name (ARN) of the S3 bucket.

                • FileKey (string) --

                  Amazon S3 object key name.

                • ReferenceRoleARN (string) --

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

                  Note

                  Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

              • 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 you configure 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) --

                        The 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) --

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

                      • RecordColumnDelimiter (string) --

                        The 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) --

                    For an SQL-based Amazon Kinesis Data Analytics application, 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) --

                      The name of the column that is created in the in-application input stream or reference table.

                    • Mapping (string) --

                      A reference to the data element in the streaming input or the reference data source.

                    • SqlType (string) --

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

        • ApplicationCodeConfigurationDescription (dict) --

          The details about the application code for a Java-based Kinesis Data Analytics application.

          • CodeContentType (string) --

            Specifies whether the code content is in text or zip format.

          • CodeContentDescription (dict) --

            Describes details about the location and format of the application code.

            • TextContent (string) --

              The text-format code

            • CodeMD5 (string) --

              The checksum that can be used to validate zip-format code.

            • CodeSize (integer) --

              The size in bytes of the application code. Can be used to validate zip-format code.

            • S3ApplicationCodeLocationDescription (dict) --

              The S3 bucket Amazon Resource Name (ARN), file key, and object version of the application code stored in Amazon S3.

              • BucketARN (string) --

                The Amazon Resource Name (ARN) for the S3 bucket containing the application code.

              • FileKey (string) --

                The file key for the object containing the application code.

              • ObjectVersion (string) --

                The version of the object containing the application code.

        • RunConfigurationDescription (dict) --

          The details about the starting properties for a Kinesis Data Analytics application.

          • ApplicationRestoreConfigurationDescription (dict) --

            Describes the restore behavior of a restarting application.

            • ApplicationRestoreType (string) --

              Specifies how the application should be restored.

            • SnapshotName (string) --

              The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT is specified for the ApplicationRestoreType .

        • FlinkApplicationConfigurationDescription (dict) --

          The details about a Java-based Kinesis Data Analytics application.

          • CheckpointConfigurationDescription (dict) --

            Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance.

            • ConfigurationType (string) --

              Describes whether the application uses the default checkpointing behavior in Kinesis Data Analytics.

            • CheckpointingEnabled (boolean) --

              Describes whether checkpointing is enabled for a Java-based Kinesis Data Analytics application.

            • CheckpointInterval (integer) --

              Describes the interval in milliseconds between checkpoint operations.

            • MinPauseBetweenCheckpoints (integer) --

              Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start.

          • MonitoringConfigurationDescription (dict) --

            Describes configuration parameters for Amazon CloudWatch logging for an application.

            • ConfigurationType (string) --

              Describes whether to use the default CloudWatch logging configuration for an application.

            • MetricsLevel (string) --

              Describes the granularity of the CloudWatch Logs for an application.

            • LogLevel (string) --

              Describes the verbosity of the CloudWatch Logs for an application.

          • ParallelismConfigurationDescription (dict) --

            Describes parameters for how an application executes multiple tasks simultaneously.

            • ConfigurationType (string) --

              Describes whether the application uses the default parallelism for the Kinesis Data Analytics service.

            • Parallelism (integer) --

              Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform.

            • ParallelismPerKPU (integer) --

              Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application.

            • CurrentParallelism (integer) --

              Describes the current number of parallel tasks that a Java-based Kinesis Data Analytics application can perform.

            • AutoScalingEnabled (boolean) --

              Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.

          • JobPlanDescription (string) --

            The job plan for an application. For more information about the job plan, see Jobs and Scheduling in the Apache Flink Documentation. To retrieve the job plan for the application, use the DescribeApplicationRequest$IncludeAdditionalDetails parameter of the DescribeApplication operation.

        • EnvironmentPropertyDescriptions (dict) --

          Describes execution properties for a Java-based Kinesis Data Analytics application.

          • PropertyGroupDescriptions (list) --

            Describes the execution property groups.

            • (dict) --

              Property key-value pairs passed into a Java-based Kinesis Data Analytics application.

              • PropertyGroupId (string) --

                Describes the key of an application execution property key-value pair.

              • PropertyMap (dict) --

                Describes the value of an application execution property key-value pair.

                • (string) --

                  • (string) --

        • ApplicationSnapshotConfigurationDescription (dict) --

          Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

          • SnapshotsEnabled (boolean) --

            Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

      • CloudWatchLoggingOptionDescriptions (list) --

        Describes the application Amazon CloudWatch logging options.

        • (dict) --

          Describes the Amazon CloudWatch logging option.

          • CloudWatchLoggingOptionId (string) --

            The ID of the CloudWatch logging option description.

          • LogStreamARN (string) --

            The Amazon Resource Name (ARN) of the CloudWatch log to receive application messages.

          • RoleARN (string) --

            The IAM ARN of the role to use to send application messages.

            Note

            Provided for backward compatibility. Applications created with the current API version have an application-level service execution role rather than a resource-level role.