getWorkflowDefinition method
Future<GetWorkflowDefinitionResponse>
getWorkflowDefinition({
- required String workflowDefinitionName,
Retrieves the details and configuration of a specific workflow definition.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter workflowDefinitionName :
The name of the workflow definition to retrieve.
Implementation
Future<GetWorkflowDefinitionResponse> getWorkflowDefinition({
required String workflowDefinitionName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/workflow-definitions/${Uri.encodeComponent(workflowDefinitionName)}',
exceptionFnMap: _exceptionFns,
);
return GetWorkflowDefinitionResponse.fromJson(response);
}