listTestGridSessionActions method
Returns a list of the actions taken in a TestGridSession.
May throw NotFoundException. May throw ArgumentException. May throw InternalServiceException.
Parameter sessionArn
:
The ARN of the session to retrieve.
Parameter maxResult
:
The maximum number of sessions to return per response.
Parameter nextToken
:
Pagination token.
Implementation
Future<ListTestGridSessionActionsResult> listTestGridSessionActions({
required String sessionArn,
int? maxResult,
String? nextToken,
}) async {
ArgumentError.checkNotNull(sessionArn, 'sessionArn');
_s.validateStringLength(
'sessionArn',
sessionArn,
32,
1011,
isRequired: true,
);
_s.validateNumRange(
'maxResult',
maxResult,
1,
1000,
);
_s.validateStringLength(
'nextToken',
nextToken,
4,
1024,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DeviceFarm_20150623.ListTestGridSessionActions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'sessionArn': sessionArn,
if (maxResult != null) 'maxResult': maxResult,
if (nextToken != null) 'nextToken': nextToken,
},
);
return ListTestGridSessionActionsResult.fromJson(jsonResponse.body);
}