createApplicationSnapshot method
Creates a snapshot of the application's state data.
May throw InvalidApplicationConfigurationException.
May throw InvalidArgumentException.
May throw InvalidRequestException.
May throw LimitExceededException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
May throw UnsupportedOperationException.
Parameter applicationName :
The name of an existing application
Parameter snapshotName :
An identifier for the application snapshot.
Implementation
Future<void> createApplicationSnapshot({
required String applicationName,
required String snapshotName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'KinesisAnalytics_20180523.CreateApplicationSnapshot'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ApplicationName': applicationName,
'SnapshotName': snapshotName,
},
);
}