startFleet method
Starts the specified fleet.
May throw ResourceNotFoundException. May throw OperationNotPermittedException. May throw LimitExceededException. May throw RequestLimitExceededException. May throw InvalidAccountStatusException. May throw ConcurrentModificationException. May throw ResourceNotAvailableException. May throw InvalidRoleException.
Parameter name
:
The name of the fleet.
Implementation
Future<void> startFleet({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
1152921504606846976,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'PhotonAdminProxyService.StartFleet'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
}