create_flow
¶
create_flow(
flow_name: FlowName,
trigger_config: TriggerConfig,
source_flow_config: SourceFlowConfig,
destination_flow_config_list: DestinationFlowConfigList,
tasks: Tasks,
*,
config_overrides: Optional[AppflowClientConfig] = None,
description: Optional[FlowDescription] = None,
kms_arn: Optional[KMSArn] = None,
tags: Optional[TagMap] = None,
metadata_catalog_config: Optional[MetadataCatalogConfig] = None,
client_token: Optional[ClientToken] = None,
) -> CreateFlowResponse
Enables your application to create a new flow using Amazon AppFlow. You must create a connector profile before calling this API. Please note that the Request Syntax below shows syntax for multiple destinations, however, you can only transfer data to one item in this list at a time. Amazon AppFlow does not currently support flows to multiple destinations at once.
Parameters:
-
flow_name(FlowName) –The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.
-
description(Optional[FlowDescription], default:None) –A description of the flow you want to create.
-
kms_arn(Optional[KMSArn], default:None) –The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key.
-
trigger_config(TriggerConfig) –The trigger settings that determine how and when the flow runs.
-
source_flow_config(SourceFlowConfig) –The configuration that controls how Amazon AppFlow retrieves data from the source connector.
-
destination_flow_config_list(DestinationFlowConfigList) –The configuration that controls how Amazon AppFlow places data in the destination connector.
-
tasks(Tasks) –A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for your flow.
-
metadata_catalog_config(Optional[MetadataCatalogConfig], default:None) –Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
-
client_token(Optional[ClientToken], default:None) –The
clientTokenparameter is an idempotency token. It ensures that yourCreateFlowrequest completes only once. You choose the value to pass. For example, if you don't receive a response from your request, you can safely retry the request with the sameclientTokenparameter value.If you omit a
clientTokenvalue, the Amazon Web Services SDK that you are using inserts a value for you. This way, the SDK can safely retry requests multiple times after a network error. You must provide your own value for other use cases.If you specify input parameters that differ from your first request, an error occurs. If you use a different value for
clientToken, Amazon AppFlow considers it a new call toCreateFlow. The token is active for 8 hours.
Raises:
-
AccessDeniedException–AppFlow/Requester has invalid or missing permissions.
-
ConflictException–There was a conflict when processing the request (for example, a flow with the given name already exists within the account. Check for conflicting resource names and try again.
-
ConnectorAuthenticationException–An error occurred when authenticating with the connector endpoint.
-
ConnectorServerException–An error occurred when retrieving data from the connector endpoint.
-
InternalServerException–An internal service error occurred during the processing of your request. Try again later.
-
ResourceNotFoundException–The resource specified in the request (such as the source or destination connector profile) is not found.
-
ServiceQuotaExceededException–The request would cause a service quota (such as the number of flows) to be exceeded.
-
ValidationException–The request has invalid or missing parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appflow/_services/appflow.py
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 | |