create_flow_definition
async
¶
create_flow_definition(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
flow_definition_name: Optional[FlowDefinitionName] = None,
human_loop_request_source: Optional[HumanLoopRequestSource] = None,
human_loop_activation_config: Optional[HumanLoopActivationConfig] = None,
human_loop_config: Optional[HumanLoopConfig] = None,
output_config: Optional[FlowDefinitionOutputConfig] = None,
role_arn: Optional[RoleArn] = None,
tags: Optional[TagList] = None,
) -> CreateFlowDefinitionResponse
Creates a flow definition.
Parameters:
-
flow_definition_name(Optional[FlowDefinitionName], default:None) –The name of your flow definition.
-
human_loop_request_source(Optional[HumanLoopRequestSource], default:None) –Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source.
-
human_loop_activation_config(Optional[HumanLoopActivationConfig], default:None) –An object containing information about the events that trigger a human workflow.
-
human_loop_config(Optional[HumanLoopConfig], default:None) –An object containing information about the tasks the human reviewers will perform.
-
output_config(Optional[FlowDefinitionOutputConfig], default:None) –An object containing information about where the human review results will be uploaded.
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of the role needed to call other services on your behalf. For example,
arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298. -
tags(Optional[TagList], default:None) –An array of key-value pairs that contain metadata to help you categorize and organize a flow definition. Each tag consists of a key and a value, both of which you define.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 | |