KinesisAnalyticsV2.Client.
update_application
(**kwargs)¶Updates an existing Kinesis Data Analytics application. Using this operation, you can update application code, input configuration, and output configuration.
Kinesis Data Analytics updates the ApplicationVersionId
each time you update your application.
Note
You cannot update the RuntimeEnvironment
of an existing application. If you need to update an application's RuntimeEnvironment
, you must delete the application and create it again.
See also: AWS API Documentation
Request Syntax
response = client.update_application(
ApplicationName='string',
CurrentApplicationVersionId=123,
ApplicationConfigurationUpdate={
'SqlApplicationConfigurationUpdate': {
'InputUpdates': [
{
'InputId': 'string',
'NamePrefixUpdate': 'string',
'InputProcessingConfigurationUpdate': {
'InputLambdaProcessorUpdate': {
'ResourceARNUpdate': 'string'
}
},
'KinesisStreamsInputUpdate': {
'ResourceARNUpdate': 'string'
},
'KinesisFirehoseInputUpdate': {
'ResourceARNUpdate': 'string'
},
'InputSchemaUpdate': {
'RecordFormatUpdate': {
'RecordFormatType': 'JSON'|'CSV',
'MappingParameters': {
'JSONMappingParameters': {
'RecordRowPath': 'string'
},
'CSVMappingParameters': {
'RecordRowDelimiter': 'string',
'RecordColumnDelimiter': 'string'
}
}
},
'RecordEncodingUpdate': 'string',
'RecordColumnUpdates': [
{
'Name': 'string',
'Mapping': 'string',
'SqlType': 'string'
},
]
},
'InputParallelismUpdate': {
'CountUpdate': 123
}
},
],
'OutputUpdates': [
{
'OutputId': 'string',
'NameUpdate': 'string',
'KinesisStreamsOutputUpdate': {
'ResourceARNUpdate': 'string'
},
'KinesisFirehoseOutputUpdate': {
'ResourceARNUpdate': 'string'
},
'LambdaOutputUpdate': {
'ResourceARNUpdate': 'string'
},
'DestinationSchemaUpdate': {
'RecordFormatType': 'JSON'|'CSV'
}
},
],
'ReferenceDataSourceUpdates': [
{
'ReferenceId': 'string',
'TableNameUpdate': 'string',
'S3ReferenceDataSourceUpdate': {
'BucketARNUpdate': 'string',
'FileKeyUpdate': 'string'
},
'ReferenceSchemaUpdate': {
'RecordFormat': {
'RecordFormatType': 'JSON'|'CSV',
'MappingParameters': {
'JSONMappingParameters': {
'RecordRowPath': 'string'
},
'CSVMappingParameters': {
'RecordRowDelimiter': 'string',
'RecordColumnDelimiter': 'string'
}
}
},
'RecordEncoding': 'string',
'RecordColumns': [
{
'Name': 'string',
'Mapping': 'string',
'SqlType': 'string'
},
]
}
},
]
},
'ApplicationCodeConfigurationUpdate': {
'CodeContentTypeUpdate': 'PLAINTEXT'|'ZIPFILE',
'CodeContentUpdate': {
'TextContentUpdate': 'string',
'ZipFileContentUpdate': b'bytes',
'S3ContentLocationUpdate': {
'BucketARNUpdate': 'string',
'FileKeyUpdate': 'string',
'ObjectVersionUpdate': 'string'
}
}
},
'FlinkApplicationConfigurationUpdate': {
'CheckpointConfigurationUpdate': {
'ConfigurationTypeUpdate': 'DEFAULT'|'CUSTOM',
'CheckpointingEnabledUpdate': True|False,
'CheckpointIntervalUpdate': 123,
'MinPauseBetweenCheckpointsUpdate': 123
},
'MonitoringConfigurationUpdate': {
'ConfigurationTypeUpdate': 'DEFAULT'|'CUSTOM',
'MetricsLevelUpdate': 'APPLICATION'|'TASK'|'OPERATOR'|'PARALLELISM',
'LogLevelUpdate': 'INFO'|'WARN'|'ERROR'|'DEBUG'
},
'ParallelismConfigurationUpdate': {
'ConfigurationTypeUpdate': 'DEFAULT'|'CUSTOM',
'ParallelismUpdate': 123,
'ParallelismPerKPUUpdate': 123,
'AutoScalingEnabledUpdate': True|False
}
},
'EnvironmentPropertyUpdates': {
'PropertyGroups': [
{
'PropertyGroupId': 'string',
'PropertyMap': {
'string': 'string'
}
},
]
},
'ApplicationSnapshotConfigurationUpdate': {
'SnapshotsEnabledUpdate': True|False
},
'VpcConfigurationUpdates': [
{
'VpcConfigurationId': 'string',
'SubnetIdUpdates': [
'string',
],
'SecurityGroupIdUpdates': [
'string',
]
},
],
'ZeppelinApplicationConfigurationUpdate': {
'MonitoringConfigurationUpdate': {
'LogLevelUpdate': 'INFO'|'WARN'|'ERROR'|'DEBUG'
},
'CatalogConfigurationUpdate': {
'GlueDataCatalogConfigurationUpdate': {
'DatabaseARNUpdate': 'string'
}
},
'DeployAsApplicationConfigurationUpdate': {
'S3ContentLocationUpdate': {
'BucketARNUpdate': 'string',
'BasePathUpdate': 'string'
}
},
'CustomArtifactsConfigurationUpdate': [
{
'ArtifactType': 'UDF'|'DEPENDENCY_JAR',
'S3ContentLocation': {
'BucketARN': 'string',
'FileKey': 'string',
'ObjectVersion': 'string'
},
'MavenReference': {
'GroupId': 'string',
'ArtifactId': 'string',
'Version': 'string'
}
},
]
}
},
ServiceExecutionRoleUpdate='string',
RunConfigurationUpdate={
'FlinkRunConfiguration': {
'AllowNonRestoredState': True|False
},
'ApplicationRestoreConfiguration': {
'ApplicationRestoreType': 'SKIP_RESTORE_FROM_SNAPSHOT'|'RESTORE_FROM_LATEST_SNAPSHOT'|'RESTORE_FROM_CUSTOM_SNAPSHOT',
'SnapshotName': 'string'
}
},
CloudWatchLoggingOptionUpdates=[
{
'CloudWatchLoggingOptionId': 'string',
'LogStreamARNUpdate': 'string'
},
],
ConditionalToken='string'
)
[REQUIRED]
The name of the application to update.
CurrentApplicationVersionId
or the ConditionalToken
.You can retrieve the application version ID using DescribeApplication. For better concurrency support, use the ConditionalToken
parameter instead of CurrentApplicationVersionId
.Describes application configuration updates.
Describes updates to a SQL-based Kinesis Data Analytics application's configuration.
The array of InputUpdate objects describing the new input streams used by the application.
For a SQL-based Kinesis Data Analytics application, describes updates to a specific input configuration (identified by the InputId
of an application).
The input ID of the application input to be updated.
The name prefix for in-application streams that Kinesis Data Analytics creates for the specific streaming source.
Describes updates to an InputProcessingConfiguration.
Provides update information for an InputLambdaProcessor.
The Amazon Resource Name (ARN) of the new Amazon 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: Amazon Lambda
If a Kinesis data stream is the streaming source to be updated, provides an updated stream Amazon Resource Name (ARN).
The Amazon Resource Name (ARN) of the input Kinesis data stream to read.
If a Kinesis Data Firehose delivery stream is the streaming source to be updated, provides an updated stream ARN.
The Amazon Resource Name (ARN) of the input delivery stream to read.
Describes the data format on the streaming source, and how record elements on the streaming source map to columns of the in-application stream that is created.
Specifies the format of the records on the streaming source.
The type of record format.
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.
Provides additional mapping information when JSON is the record format on the streaming source.
The path to the top-level parent that contains the records.
Provides additional mapping information when the record format uses delimiters (for example, CSV).
The row delimiter. For example, in a CSV format, 'n' is the typical row delimiter.
The column delimiter. For example, in a CSV format, a comma (",") is the typical column delimiter.
Specifies the encoding of the records in the streaming source; for example, UTF-8.
A list of RecordColumn
objects. Each object describes the mapping of the streaming source element to the corresponding column in the in-application stream.
For a SQL-based 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.
The name of the column that is created in the in-application input stream or reference table.
A reference to the data element in the streaming input or the reference data source.
The type of column created in the in-application input stream or reference table.
Describes the parallelism updates (the number of in-application streams Kinesis Data Analytics creates for the specific streaming source).
The number of in-application streams to create for the specified streaming source.
The array of OutputUpdate objects describing the new destination streams used by the application.
For a SQL-based Kinesis Data Analytics application, describes updates to the output configuration identified by the OutputId
.
Identifies the specific output configuration that you want to update.
If you want to specify a different in-application stream for this output configuration, use this field to specify the new in-application stream name.
Describes a Kinesis data stream as the destination for the output.
The Amazon Resource Name (ARN) of the Kinesis data stream where you want to write the output.
Describes a Kinesis Data Firehose delivery stream as the destination for the output.
The Amazon Resource Name (ARN) of the delivery stream to write to.
Describes an Amazon Lambda function as the destination for the output.
The Amazon Resource Name (ARN) of the destination Amazon Lambda function.
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: Amazon Lambda
Describes the data format when records are written to the destination.
Specifies the format of the records on the output stream.
The array of ReferenceDataSourceUpdate objects describing the new reference data sources used by the application.
When you update a reference data source configuration for a SQL-based Kinesis Data Analytics application, this object provides all the updated values (such as the source bucket name and object key name), the in-application table name that is created, and updated mapping information that maps the data in the Amazon S3 object to the in-application reference table that is created.
The ID of the reference data source that is being updated. You can use the DescribeApplication operation to get this value.
The in-application table name that is created by this update.
Describes the S3 bucket name, object key name, and IAM role that Kinesis Data Analytics can assume to read the Amazon S3 object on your behalf and populate the in-application reference table.
The Amazon Resource Name (ARN) of the S3 bucket.
The object key name.
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.
Specifies the format of the records on the streaming source.
The type of record format.
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.
Provides additional mapping information when JSON is the record format on the streaming source.
The path to the top-level parent that contains the records.
Provides additional mapping information when the record format uses delimiters (for example, CSV).
The row delimiter. For example, in a CSV format, 'n' is the typical row delimiter.
The column delimiter. For example, in a CSV format, a comma (",") is the typical column delimiter.
Specifies the encoding of the records in the streaming source. For example, UTF-8.
A list of RecordColumn
objects.
For a SQL-based 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.
The name of the column that is created in the in-application input stream or reference table.
A reference to the data element in the streaming input or the reference data source.
The type of column created in the in-application input stream or reference table.
Describes updates to an application's code configuration.
Describes updates to the code content type.
Describes updates to the code content of an application.
Describes an update to the text code for an application.
Describes an update to the zipped code for an application.
Describes an update to the location of code for an application.
The new Amazon Resource Name (ARN) for the S3 bucket containing the application code.
The new file key for the object containing the application code.
The new version of the object containing the application code.
Describes updates to a Flink-based Kinesis Data Analytics application's configuration.
Describes updates to an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance.
Describes updates to whether the application uses the default checkpointing behavior of Kinesis Data Analytics. You must set this property to CUSTOM
in order to set the CheckpointingEnabled
, CheckpointInterval
, or MinPauseBetweenCheckpoints
parameters.
Note
If this value is set to DEFAULT
, the application will use the following values, even if they are set to other values using APIs or application code:
Describes updates to whether checkpointing is enabled for an application.
Note
If CheckpointConfiguration.ConfigurationType
is DEFAULT
, the application will use a CheckpointingEnabled
value of true
, even if this value is set to another value using this API or in application code.
Describes updates to the interval in milliseconds between checkpoint operations.
Note
If CheckpointConfiguration.ConfigurationType
is DEFAULT
, the application will use a CheckpointInterval
value of 60000, even if this value is set to another value using this API or in application code.
Describes updates to the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start.
Note
If CheckpointConfiguration.ConfigurationType
is DEFAULT
, the application will use a MinPauseBetweenCheckpoints
value of 5000, even if this value is set using this API or in application code.
Describes updates to the configuration parameters for Amazon CloudWatch logging for an application.
Describes updates to whether to use the default CloudWatch logging configuration for an application. You must set this property to CUSTOM
in order to set the LogLevel
or MetricsLevel
parameters.
Describes updates to the granularity of the CloudWatch Logs for an application. The Parallelism
level is not recommended for applications with a Parallelism over 64 due to excessive costs.
Describes updates to the verbosity of the CloudWatch Logs for an application.
Describes updates to the parameters for how an application executes multiple tasks simultaneously.
Describes updates to whether the application uses the default parallelism for the Kinesis Data Analytics service, or if a custom parallelism is used. You must set this property to CUSTOM
in order to change your application's AutoScalingEnabled
, Parallelism
, or ParallelismPerKPU
properties.
Describes updates to the initial number of parallel tasks an application can perform. If AutoScalingEnabled
is set to True, then Kinesis Data Analytics can increase the CurrentParallelism
value in response to application load. The service can increase CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by requesting a limit increase. If application load is reduced, the service will reduce CurrentParallelism
down to the Parallelism
setting.
Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit (KPU) used by the application.
Describes updates to whether the Kinesis Data Analytics service can increase the parallelism of a Flink-based Kinesis Data Analytics application in response to increased throughput.
Describes updates to the environment properties for a Flink-based Kinesis Data Analytics application.
Describes updates to the execution property groups.
Property key-value pairs passed into an application.
Describes the key of an application execution property key-value pair.
Describes the value of an application execution property key-value pair.
Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.
Describes updates to whether snapshots are enabled for an application.
Updates to the array of descriptions of VPC configurations available to the application.
Describes updates to the VPC configuration used by the application.
Describes an update to the ID of the VPC configuration.
Describes updates to the array of Subnet IDs used by the VPC configuration.
Describes updates to the array of SecurityGroup IDs used by the VPC configuration.
Updates to the configuration of a Kinesis Data Analytics Studio notebook.
Updates to the monitoring configuration of a Kinesis Data Analytics Studio notebook.
Updates to the logging level for Apache Zeppelin within a Kinesis Data Analytics Studio notebook.
Updates to the configuration of the Amazon Glue Data Catalog that is associated with the Kinesis Data Analytics Studio notebook.
Updates to the configuration parameters for the default Amazon Glue database. You use this database for SQL queries that you write in a Kinesis Data Analytics Studio notebook.
The updated Amazon Resource Name (ARN) of the database.
Updates to the configuration information required to deploy an Amazon Data Analytics Studio notebook as an application with durable state.
Updates to the location that holds the data required to specify an Amazon Data Analytics application.
The updated Amazon Resource Name (ARN) of the S3 bucket.
The updated S3 bucket path.
Updates to the customer artifacts. Custom artifacts are dependency JAR files and user-defined functions (UDF).
Specifies dependency JARs, as well as JAR files that contain user-defined functions (UDF).
UDF
stands for user-defined functions. This type of artifact must be in an S3 bucket. ADEPENDENCY_JAR
can be in either Maven or an S3 bucket.
For a Kinesis Data Analytics application provides a description of an Amazon S3 object, including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object that contains the data, and the version number of the Amazon S3 object that contains the data.
The Amazon Resource Name (ARN) for the S3 bucket containing the application code.
The file key for the object containing the application code.
The version of the object containing the application code.
The parameters required to fully specify a Maven reference.
The group ID of the Maven reference.
The artifact ID of the Maven reference.
The version of the Maven reference.
Describes updates to the application's starting parameters.
Describes the starting parameters for a Flink-based Kinesis Data Analytics application.
When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. This will happen if the program is updated between snapshots to remove stateful parameters, and state data in the snapshot no longer corresponds to valid application data. For more information, see Allowing Non-Restored State in the Apache Flink documentation.
Note
This value defaults to false
. If you update your application without specifying this parameter, AllowNonRestoredState
will be set to false
, even if it was previously set to true
.
Describes updates to the restore behavior of a restarting application.
Specifies how the application should be restored.
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
.
Describes application Amazon CloudWatch logging option updates. You can only update existing CloudWatch logging options with this action. To add a new CloudWatch logging option, use AddApplicationCloudWatchLoggingOption.
Describes the Amazon CloudWatch logging option updates.
The ID of the CloudWatch logging option to update
The Amazon Resource Name (ARN) of the CloudWatch log to receive application messages.
CurrentApplicationVersionId
or the ConditionalToken
. You get the application's current ConditionalToken
using DescribeApplication. For better concurrency support, use the ConditionalToken
parameter instead of CurrentApplicationVersionId
.dict
Response Syntax
{
'ApplicationDetail': {
'ApplicationARN': 'string',
'ApplicationDescription': 'string',
'ApplicationName': 'string',
'RuntimeEnvironment': 'SQL-1_0'|'FLINK-1_6'|'FLINK-1_8'|'ZEPPELIN-FLINK-1_0'|'FLINK-1_11'|'FLINK-1_13'|'ZEPPELIN-FLINK-2_0'|'FLINK-1_15',
'ServiceExecutionRole': 'string',
'ApplicationStatus': 'DELETING'|'STARTING'|'STOPPING'|'READY'|'RUNNING'|'UPDATING'|'AUTOSCALING'|'FORCE_STOPPING'|'ROLLING_BACK'|'MAINTENANCE'|'ROLLED_BACK',
'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'
},
'FlinkRunConfigurationDescription': {
'AllowNonRestoredState': True|False
}
},
'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
},
'VpcConfigurationDescriptions': [
{
'VpcConfigurationId': 'string',
'VpcId': 'string',
'SubnetIds': [
'string',
],
'SecurityGroupIds': [
'string',
]
},
],
'ZeppelinApplicationConfigurationDescription': {
'MonitoringConfigurationDescription': {
'LogLevel': 'INFO'|'WARN'|'ERROR'|'DEBUG'
},
'CatalogConfigurationDescription': {
'GlueDataCatalogConfigurationDescription': {
'DatabaseARN': 'string'
}
},
'DeployAsApplicationConfigurationDescription': {
'S3ContentLocationDescription': {
'BucketARN': 'string',
'BasePath': 'string'
}
},
'CustomArtifactsConfigurationDescription': [
{
'ArtifactType': 'UDF'|'DEPENDENCY_JAR',
'S3ContentLocationDescription': {
'BucketARN': 'string',
'FileKey': 'string',
'ObjectVersion': 'string'
},
'MavenReferenceDescription': {
'GroupId': 'string',
'ArtifactId': 'string',
'Version': 'string'
}
},
]
}
},
'CloudWatchLoggingOptionDescriptions': [
{
'CloudWatchLoggingOptionId': 'string',
'LogStreamARN': 'string',
'RoleARN': 'string'
},
],
'ApplicationMaintenanceConfigurationDescription': {
'ApplicationMaintenanceWindowStartTime': 'string',
'ApplicationMaintenanceWindowEndTime': 'string'
},
'ApplicationVersionUpdatedFrom': 123,
'ApplicationVersionRolledBackFrom': 123,
'ConditionalToken': 'string',
'ApplicationVersionRolledBackTo': 123,
'ApplicationMode': 'STREAMING'|'INTERACTIVE'
}
}
Response Structure
(dict) --
ApplicationDetail (dict) --
Describes application updates.
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.
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) --
Describes details about the application code and starting parameters for a Kinesis Data Analytics application.
SqlApplicationConfigurationDescription (dict) --
The details about inputs, outputs, and reference data sources for a 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 a SQL-based 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.
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 Amazon 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: Amazon Lambda
RoleARN (string) --
The ARN of the IAM role that is used to access the Amazon 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 a SQL-based 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 a SQL-based 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 a SQL-based 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 a SQL-based 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 Flink-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
.
FlinkRunConfigurationDescription (dict) --
Describes the starting parameters for a Flink-based Kinesis Data Analytics application.
AllowNonRestoredState (boolean) --
When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. This will happen if the program is updated between snapshots to remove stateful parameters, and state data in the snapshot no longer corresponds to valid application data. For more information, see Allowing Non-Restored State in the Apache Flink documentation.
Note
This value defaults to false
. If you update your application without specifying this parameter, AllowNonRestoredState
will be set to false
, even if it was previously set to true
.
FlinkApplicationConfigurationDescription (dict) --
The details about a Flink-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.
Note
If this value is set to DEFAULT
, the application will use the following values, even if they are set to other values using APIs or application code:
CheckpointingEnabled (boolean) --
Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.
Note
If CheckpointConfiguration.ConfigurationType
is DEFAULT
, the application will use a CheckpointingEnabled
value of true
, even if this value is set to another value using this API or in application code.
CheckpointInterval (integer) --
Describes the interval in milliseconds between checkpoint operations.
Note
If CheckpointConfiguration.ConfigurationType
is DEFAULT
, the application will use a CheckpointInterval
value of 60000, even if this value is set to another value using this API or in application code.
MinPauseBetweenCheckpoints (integer) --
Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start.
Note
If CheckpointConfiguration.ConfigurationType
is DEFAULT
, the application will use a MinPauseBetweenCheckpoints
value of 5000, even if this value is set using this API or in application code.
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 Flink-based Kinesis Data Analytics application can perform. If AutoScalingEnabled
is set to True, then Kinesis Data Analytics can increase the CurrentParallelism
value in response to application load. The service can increase CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by requesting a limit increase. If application load is reduced, the service can reduce the CurrentParallelism
value down to the Parallelism
setting.
ParallelismPerKPU (integer) --
Describes the number of parallel tasks that a Flink-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 Flink-based Kinesis Data Analytics application can perform. If AutoScalingEnabled
is set to True, Kinesis Data Analytics can increase this value in response to application load. The service can increase this value up to the maximum parallelism, which is ParalellismPerKPU
times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by requesting a limit increase. If application load is reduced, the service can reduce the CurrentParallelism
value down to the Parallelism
setting.
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 Flink-based Kinesis Data Analytics application.
PropertyGroupDescriptions (list) --
Describes the execution property groups.
(dict) --
Property key-value pairs passed into an 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.
ApplicationSnapshotConfigurationDescription (dict) --
Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.
SnapshotsEnabled (boolean) --
Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.
VpcConfigurationDescriptions (list) --
The array of descriptions of VPC configurations available to the application.
(dict) --
Describes the parameters of a VPC used by the application.
VpcConfigurationId (string) --
The ID of the VPC configuration.
VpcId (string) --
The ID of the associated VPC.
SubnetIds (list) --
The array of Subnet IDs used by the VPC configuration.
SecurityGroupIds (list) --
The array of SecurityGroup IDs used by the VPC configuration.
ZeppelinApplicationConfigurationDescription (dict) --
The configuration parameters for a Kinesis Data Analytics Studio notebook.
MonitoringConfigurationDescription (dict) --
The monitoring configuration of a Kinesis Data Analytics Studio notebook.
LogLevel (string) --
Describes the verbosity of the CloudWatch Logs for an application.
CatalogConfigurationDescription (dict) --
The Amazon Glue Data Catalog that is associated with the Kinesis Data Analytics Studio notebook.
GlueDataCatalogConfigurationDescription (dict) --
The configuration parameters for the default Amazon Glue database. You use this database for SQL queries that you write in a Kinesis Data Analytics Studio notebook.
DatabaseARN (string) --
The Amazon Resource Name (ARN) of the database.
DeployAsApplicationConfigurationDescription (dict) --
The parameters required to deploy a Kinesis Data Analytics Studio notebook as an application with durable state.
S3ContentLocationDescription (dict) --
The location that holds the data required to specify an Amazon Data Analytics application.
BucketARN (string) --
The Amazon Resource Name (ARN) of the S3 bucket.
BasePath (string) --
The base path for the S3 bucket.
CustomArtifactsConfigurationDescription (list) --
Custom artifacts are dependency JARs and user-defined functions (UDF).
(dict) --
Specifies a dependency JAR or a JAR of user-defined functions.
ArtifactType (string) --
UDF
stands for user-defined functions. This type of artifact must be in an S3 bucket. ADEPENDENCY_JAR
can be in either Maven or an S3 bucket.
S3ContentLocationDescription (dict) --
For a Kinesis Data Analytics application provides a description of an Amazon S3 object, including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object that contains the data, and the version number of the Amazon S3 object that contains the data.
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.
MavenReferenceDescription (dict) --
The parameters that are required to specify a Maven dependency.
GroupId (string) --
The group ID of the Maven reference.
ArtifactId (string) --
The artifact ID of the Maven reference.
Version (string) --
The version of the Maven reference.
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.
ApplicationMaintenanceConfigurationDescription (dict) --
The details of the maintenance configuration for the application.
ApplicationMaintenanceWindowStartTime (string) --
The start time for the maintenance window.
ApplicationMaintenanceWindowEndTime (string) --
The end time for the maintenance window.
ApplicationVersionUpdatedFrom (integer) --
The previous application version before the latest application update. RollbackApplication reverts the application to this version.
ApplicationVersionRolledBackFrom (integer) --
If you reverted the application using RollbackApplication, the application version when RollbackApplication
was called.
ConditionalToken (string) --
A value you use to implement strong concurrency for application updates.
ApplicationVersionRolledBackTo (integer) --
The version to which you want to roll back the application.
ApplicationMode (string) --
To create a Kinesis Data Analytics Studio notebook, you must set the mode to INTERACTIVE
. However, for a Kinesis Data Analytics for Apache Flink application, the mode is optional.
Exceptions
KinesisAnalyticsV2.Client.exceptions.CodeValidationException
KinesisAnalyticsV2.Client.exceptions.ResourceNotFoundException
KinesisAnalyticsV2.Client.exceptions.ResourceInUseException
KinesisAnalyticsV2.Client.exceptions.InvalidArgumentException
KinesisAnalyticsV2.Client.exceptions.ConcurrentModificationException
KinesisAnalyticsV2.Client.exceptions.InvalidRequestException
KinesisAnalyticsV2.Client.exceptions.InvalidApplicationConfigurationException
KinesisAnalyticsV2.Client.exceptions.LimitExceededException