deleteApplication method

Future<void> deleteApplication({
  1. required String applicationName,
  2. required DateTime createTimestamp,
})

Deletes the specified application. Kinesis Data Analytics halts application execution and deletes the application.

May throw ConcurrentModificationException. May throw ResourceNotFoundException. May throw ResourceInUseException. May throw InvalidArgumentException. May throw InvalidRequestException. May throw InvalidApplicationConfigurationException.

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 {
  ArgumentError.checkNotNull(applicationName, 'applicationName');
  _s.validateStringLength(
    'applicationName',
    applicationName,
    1,
    128,
    isRequired: true,
  );
  ArgumentError.checkNotNull(createTimestamp, 'createTimestamp');
  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),
    },
  );
}