createSimulationApplicationVersion method
Creates a simulation application with a specific revision id.
May throw InvalidParameterException. May throw IdempotentParameterMismatchException. May throw LimitExceededException. May throw ThrottlingException. May throw InternalServerException.
Parameter application
:
The application information for the simulation application.
Parameter currentRevisionId
:
The current revision id for the simulation application. If you provide a
value and it matches the latest revision ID, a new version will be
created.
Implementation
Future<CreateSimulationApplicationVersionResponse>
createSimulationApplicationVersion({
required String application,
String? currentRevisionId,
}) async {
ArgumentError.checkNotNull(application, 'application');
_s.validateStringLength(
'application',
application,
1,
1224,
isRequired: true,
);
_s.validateStringLength(
'currentRevisionId',
currentRevisionId,
1,
40,
);
final $payload = <String, dynamic>{
'application': application,
if (currentRevisionId != null) 'currentRevisionId': currentRevisionId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/createSimulationApplicationVersion',
exceptionFnMap: _exceptionFns,
);
return CreateSimulationApplicationVersionResponse.fromJson(response);
}