deleteStateMachineVersion method
Deletes a state machine version. After you delete a version, you can't call StartExecution using that version's ARN or use the version with a state machine alias. Related operations:
May throw ConflictException.
May throw InvalidArn.
May throw ValidationException.
Parameter stateMachineVersionArn :
The Amazon Resource Name (ARN) of the state machine version to delete.
Implementation
Future<void> deleteStateMachineVersion({
required String stateMachineVersionArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSStepFunctions.DeleteStateMachineVersion'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'stateMachineVersionArn': stateMachineVersionArn,
},
);
}