WorkflowTemplate.Rd
Abstract class to create a template for Sagemaker workflows
new()
WorkflowTemplate$new(s3_bucket, workflow, role, client, ...)
s3_bucket
(str): S3 bucket under which the output artifacts from the training job will be stored. The parent path used is built using the format: ``s3://s3_bucket/pipeline_name/models/job_name/``. In this format, `pipeline_name` refers to the keyword argument provided for TrainingPipeline. If a `pipeline_name` argument was not provided, one is auto-generated by the pipeline as `training-pipeline-<timestamp>`. Also, in the format, `job_name` refers to the job name provided when calling the :meth:`TrainingPipeline.run()` method.
workflow
: Workflow for AWS State Machine.
role
(str): An AWS IAM role (either name or full Amazon Resource Name (ARN)). This role is used to create, manage, and execute the Step Functions workflows.
client
(SFN.Client, optional): sfn
client to use for attaching the existing
workflow in Step Functions to the Workflow object. If not provided,
a default sfn
client for Step Functions will be automatically
created and used. (default: None)
...
: currently not implemented
render_graph()
Renders a visualization of the workflow graph.
WorkflowTemplate$render_graph(portrait = FALSE)
portrait
(bool, optional): Boolean flag set to `True` if the workflow graph should be rendered in portrait orientation. Set to `False`, if the graph should be rendered in landscape orientation. (default: False)
get_workflow()
Returns Workflow
WorkflowTemplate$get_workflow()
build_workflow_definition()
Build the workflow definition for the inference pipeline with all the states involved.
WorkflowTemplate$build_workflow_definition()
:class:`~stepfunctions.steps.states.Chain`: Workflow definition as a chain of states involved in the the inference pipeline.
create()
Creates the workflow on Step Functions.
WorkflowTemplate$create()
str: The Amazon Resource Name (ARN) of the workflow created. If the workflow already existed, the ARN of the existing workflow is returned.
execute()
Run the inference pipeline.
WorkflowTemplate$execute(...)
...
: Not yet implemented
:R:class:`~stepfunctions.workflow.Execution`: Running instance of the inference pipeline.
format()
format class
WorkflowTemplate$format()
clone()
The objects of this class are cloneable with this method.
WorkflowTemplate$clone(deep = FALSE)
deep
Whether to make a deep clone.