deleteApplication method
Deletes the specified application. Managed Service for Apache Flink halts application execution and deletes the application.
May throw ConcurrentModificationException.
May throw InvalidApplicationConfigurationException.
May throw InvalidArgumentException.
May throw InvalidRequestException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
Parameter applicationName :
The name of the application to delete.
Parameter createTimestamp :
Use the DescribeApplication operation to get this value.
Implementation
Future<void> deleteApplication({
required String applicationName,
required DateTime createTimestamp,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'KinesisAnalytics_20180523.DeleteApplication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ApplicationName': applicationName,
'CreateTimestamp': unixTimestampToJson(createTimestamp),
},
);
}