startApplication method

Future<void> startApplication({
  1. required String applicationName,
  2. required RunConfiguration runConfiguration,
})

Starts the specified Kinesis Data Analytics application. After creating an application, you must exclusively call this operation to start your application.

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

Parameter applicationName : The name of the application.

Parameter runConfiguration : Identifies the run configuration (start parameters) of a Kinesis Data Analytics application.

Implementation

Future<void> startApplication({
  required String applicationName,
  required RunConfiguration runConfiguration,
}) async {
  ArgumentError.checkNotNull(applicationName, 'applicationName');
  _s.validateStringLength(
    'applicationName',
    applicationName,
    1,
    128,
    isRequired: true,
  );
  ArgumentError.checkNotNull(runConfiguration, 'runConfiguration');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'KinesisAnalytics_20180523.StartApplication'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ApplicationName': applicationName,
      'RunConfiguration': runConfiguration,
    },
  );
}