stopApplication method
Stops the application from processing input data. You can stop an
application only if it is in the running state. You can use the DescribeApplication
operation to find the application state. After the application is stopped,
Amazon Kinesis Analytics stops reading data from the input, the
application stops processing data, and there is no output written to the
destination.
This operation requires permissions to perform the
kinesisanalytics:StopApplication
action.
May throw ResourceNotFoundException. May throw ResourceInUseException. May throw UnsupportedOperationException.
Parameter applicationName
:
Name of the running application to stop.
Implementation
Future<void> stopApplication({
required String applicationName,
}) async {
ArgumentError.checkNotNull(applicationName, 'applicationName');
_s.validateStringLength(
'applicationName',
applicationName,
1,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'KinesisAnalytics_20150814.StopApplication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ApplicationName': applicationName,
},
);
}