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
4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 | |