getTemplateStep method

Future<GetTemplateStepResponse> getTemplateStep({
  1. required String id,
  2. required String stepGroupId,
  3. required String templateId,
})

Get a specific step in a template.

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

Parameter id : The ID of the step.

Parameter stepGroupId : The ID of the step group.

Parameter templateId : The ID of the template.

Implementation

Future<GetTemplateStepResponse> getTemplateStep({
  required String id,
  required String stepGroupId,
  required String templateId,
}) async {
  final $query = <String, List<String>>{
    'stepGroupId': [stepGroupId],
    'templateId': [templateId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/templatestep/${Uri.encodeComponent(id)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetTemplateStepResponse.fromJson(response);
}