deleteApplication method
Deletes the specified application. Amazon Kinesis Analytics halts
application execution and deletes the application, including any
application artifacts (such as in-application streams, reference table,
and application code).
This operation requires permissions to perform the
kinesisanalytics:DeleteApplication action.
May throw ConcurrentModificationException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
May throw UnsupportedOperationException.
Parameter applicationName :
Name of the Amazon Kinesis Analytics application to delete.
Parameter createTimestamp :
You can 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_20150814.DeleteApplication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ApplicationName': applicationName,
'CreateTimestamp': unixTimestampToJson(createTimestamp),
},
);
}