Gets revisions of the specified workflow. Only the last 100 revisions are stored. If the workflow has been deprecated, this action will return revisions that occurred before the deprecation. This action won't work for workflows that have been deleted.
Parameters:
-
id
(Urn)
–
The ID of the workflow.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
-
next_token
(Optional[NextToken], default:
None
)
–
The string that specifies the next page of results. Use this when you're paginating results.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to return in the response.
Raises:
Source code in docs_src/capo_iotthingsgraph/_services/async_io_t_things_graph.py
| async def get_flow_template_revisions(
self,
id: "capo_iotthingsgraph.types.urn.Urn",
*,
config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = None,
next_token: Optional["capo_iotthingsgraph.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_iotthingsgraph.types.max_results.MaxResults"
] = None,
) -> "capo_iotthingsgraph.types.get_flow_template_revisions_response.GetFlowTemplateRevisionsResponse":
"""<p>Gets revisions of the specified workflow. Only the last 100 revisions are stored. If the workflow has been deprecated, this action will return revisions that occurred before the deprecation. This action won't work for workflows that have been deleted.</p>
Args:
id: <p>The ID of the workflow.</p> <p>The ID should be in the following format.</p> <p> <code>urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME</code> </p>
next_token: <p>The string that specifies the next page of results. Use this when you're paginating results.</p>
max_results: <p>The maximum number of results to return in the response.</p>
Raises:
capo_iotthingsgraph.errors.internal_failure_exception.InternalFailureException: <p></p>
capo_iotthingsgraph.errors.invalid_request_exception.InvalidRequestException: <p></p>
capo_iotthingsgraph.errors.resource_not_found_exception.ResourceNotFoundException: <p></p>
capo_iotthingsgraph.errors.throttling_exception.ThrottlingException: <p></p>
capo_iotthingsgraph.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iotthingsgraph.types.get_flow_template_revisions_request.GetFlowTemplateRevisionsRequest]",
) -> AsyncOperationResponse[
"capo_iotthingsgraph.types.get_flow_template_revisions_response.GetFlowTemplateRevisionsResponse"
]:
import capo_iotthingsgraph._operations.iot_things_graph_front_end_service.get_flow_template_revisions
(
output,
http_response,
) = await capo_iotthingsgraph._operations.iot_things_graph_front_end_service.get_flow_template_revisions.async_get_flow_template_revisions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetFlowTemplateRevisions")
)
input_: capo_iotthingsgraph.types.get_flow_template_revisions_request.GetFlowTemplateRevisionsRequest = {
"id": id
}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|