listTemplateStepGroups method

Future<ListTemplateStepGroupsResponse> listTemplateStepGroups({
  1. required String templateId,
  2. int? maxResults,
  3. String? nextToken,
})

List the step groups in a template.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

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<ListTemplateStepGroupsResponse> listTemplateStepGroups({
  required String templateId,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    0,
    100,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/templatestepgroups/${Uri.encodeComponent(templateId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListTemplateStepGroupsResponse.fromJson(response);
}