KinesisAnalyticsV2 / Client / stop_application
stop_application#
- KinesisAnalyticsV2.Client.stop_application(**kwargs)#
- Stops the application from processing data. You can stop an application only if it is in the running status, unless you set the - Forceparameter to- true.- You can use the DescribeApplication operation to find the application status. - Managed Service for Apache Flink takes a snapshot when the application is stopped, unless - Forceis set to- true.- See also: AWS API Documentation - Request Syntax- response = client.stop_application( ApplicationName='string', Force=True|False ) - Parameters:
- ApplicationName (string) – - [REQUIRED] - The name of the running application to stop. 
- Force (boolean) – - Set to - trueto force the application to stop. If you set- Forceto- true, Managed Service for Apache Flink stops the application without taking a snapshot.- Note- Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application. - You can only force stop a Managed Service for Apache Flink application. You can’t force stop a SQL-based Kinesis Data Analytics application. - The application must be in the - STARTING,- UPDATING,- STOPPING,- AUTOSCALING, or- RUNNINGstatus.
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'OperationId': 'string' } - Response Structure- (dict) – - OperationId (string) – Operation ID for tracking StopApplication request 
 
 
 - Exceptions- KinesisAnalyticsV2.Client.exceptions.ResourceNotFoundException
- KinesisAnalyticsV2.Client.exceptions.ResourceInUseException
- KinesisAnalyticsV2.Client.exceptions.InvalidArgumentException
- KinesisAnalyticsV2.Client.exceptions.InvalidRequestException
- KinesisAnalyticsV2.Client.exceptions.InvalidApplicationConfigurationException
- KinesisAnalyticsV2.Client.exceptions.ConcurrentModificationException