create_flow_definition
¶
create_flow_definition(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 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 | |