deleteApplicationSnapshot method
Deletes a snapshot of application state.
May throw ConcurrentModificationException.
May throw InvalidArgumentException.
May throw InvalidRequestException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
May throw UnsupportedOperationException.
Parameter applicationName :
The name of an existing application.
Parameter snapshotCreationTimestamp :
The creation timestamp of the application snapshot to delete. You can
retrieve this value using or .
Parameter snapshotName :
The identifier for the snapshot delete.
Implementation
Future<void> deleteApplicationSnapshot({
required String applicationName,
required DateTime snapshotCreationTimestamp,
required String snapshotName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'KinesisAnalytics_20180523.DeleteApplicationSnapshot'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ApplicationName': applicationName,
'SnapshotCreationTimestamp':
unixTimestampToJson(snapshotCreationTimestamp),
'SnapshotName': snapshotName,
},
);
}