listTemplateSteps method
List the steps in a template.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter stepGroupId :
The ID of the step group.
Parameter templateId :
The ID of the template.
Parameter maxResults :
The maximum number of results that can be returned.
Parameter nextToken :
The pagination token.
Implementation
Future<ListTemplateStepsResponse> listTemplateSteps({
required String stepGroupId,
required String templateId,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
0,
100,
);
final $query = <String, List<String>>{
'stepGroupId': [stepGroupId],
'templateId': [templateId],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/templatesteps',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListTemplateStepsResponse.fromJson(response);
}