startApplication method
- required String applicationName,
- required List<
InputConfiguration> inputConfigurations,
After the application starts, it begins consuming the input data, processes it, and writes the output to the configured destination.
The application status must be READY
for you to start an
application. You can get the application status in the console or using
the DescribeApplication
operation.
After you start the application, you can stop the application from processing the input by calling the StopApplication operation.
This operation requires permissions to perform the
kinesisanalytics:StartApplication
action.
May throw ResourceNotFoundException. May throw ResourceInUseException. May throw InvalidArgumentException. May throw InvalidApplicationConfigurationException. May throw UnsupportedOperationException.
Parameter applicationName
:
Name of the application.
Parameter inputConfigurations
:
Identifies the specific input, by ID, that the application starts
consuming. Amazon Kinesis Analytics starts reading the streaming source
associated with the input. You can also specify where in the streaming
source you want Amazon Kinesis Analytics to start reading.
Implementation
Future<void> startApplication({
required String applicationName,
required List<InputConfiguration> inputConfigurations,
}) async {
ArgumentError.checkNotNull(applicationName, 'applicationName');
_s.validateStringLength(
'applicationName',
applicationName,
1,
128,
isRequired: true,
);
ArgumentError.checkNotNull(inputConfigurations, 'inputConfigurations');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'KinesisAnalytics_20150814.StartApplication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ApplicationName': applicationName,
'InputConfigurations': inputConfigurations,
},
);
}