update_application
async
¶
update_application(
application_name: ApplicationName,
*,
config_overrides: Optional[AsyncKinesisAnalyticsV2ClientConfig] = None,
current_application_version_id: Optional[ApplicationVersionId] = None,
application_configuration_update: Optional[ApplicationConfigurationUpdate] = None,
service_execution_role_update: Optional[RoleARN] = None,
run_configuration_update: Optional[RunConfigurationUpdate] = None,
cloud_watch_logging_option_updates: Optional[CloudWatchLoggingOptionUpdates] = None,
conditional_token: Optional[ConditionalToken] = None,
runtime_environment_update: Optional[RuntimeEnvironment] = None,
) -> UpdateApplicationResponse
Updates an existing Managed Service for Apache Flink application. Using this operation, you can update application code, input configuration, and output configuration.
Managed Service for Apache Flink updates the ApplicationVersionId each time you update your application.
Parameters:
-
application_name(ApplicationName) –The name of the application to update.
-
current_application_version_id(Optional[ApplicationVersionId], default:None) –The current application version ID. You must provide the
CurrentApplicationVersionIdor theConditionalToken.You can retrieve the application version ID using DescribeApplication. For better concurrency support, use theConditionalTokenparameter instead ofCurrentApplicationVersionId. -
application_configuration_update(Optional[ApplicationConfigurationUpdate], default:None) –Describes application configuration updates.
-
service_execution_role_update(Optional[RoleARN], default:None) –Describes updates to the service execution role.
-
run_configuration_update(Optional[RunConfigurationUpdate], default:None) –Describes updates to the application's starting parameters.
-
cloud_watch_logging_option_updates(Optional[CloudWatchLoggingOptionUpdates], default:None) –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.
-
conditional_token(Optional[ConditionalToken], default:None) –A value you use to implement strong concurrency for application updates. You must provide the
CurrentApplicationVersionIdor theConditionalToken. You get the application's currentConditionalTokenusing DescribeApplication. For better concurrency support, use theConditionalTokenparameter instead ofCurrentApplicationVersionId. -
runtime_environment_update(Optional[RuntimeEnvironment], default:None) –Updates the Managed Service for Apache Flink runtime environment used to run your code. To avoid issues you must:
-
Ensure your new jar and dependencies are compatible with the new runtime selected.
-
Ensure your new code's state is compatible with the snapshot from which your application will start
-
Raises:
-
CodeValidationException–The user-provided application code (query) is not valid. This can be a simple syntax error.
-
ConcurrentModificationException–Exception thrown as a result of concurrent modifications to an application or snapshot. This error can be the result of attempting to modify an application without using the current application ID.
-
InvalidApplicationConfigurationException–The user-provided application configuration is not valid.
-
InvalidArgumentException–The specified input parameter value is not valid.
-
InvalidRequestException–The request JSON is not valid for the operation.
-
LimitExceededException–The number of allowed resources has been exceeded.
-
ResourceInUseException–The application or snapshot is not available for this operation.
-
ResourceNotFoundException–The specified application, snapshot, or snapshot operation can't be found.
-
UnsupportedOperationException–The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis_analytics_v2/_services/async_kinesis_analytics_v2.py
2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 | |