create_contact_flow
¶
create_contact_flow(
instance_id: InstanceId,
name: ContactFlowName,
type: ContactFlowType,
content: ContactFlowContent,
*,
config_overrides: Optional[ConnectClientConfig] = None,
description: Optional[ContactFlowDescription] = None,
status: Optional[ContactFlowStatus] = None,
tags: Optional[TagMap] = None,
) -> CreateContactFlowResponse
Creates a flow for the specified Connect Customer instance.
You can also create and update flows using the Connect Customer Flow language.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance.
-
name(ContactFlowName) –The name of the flow.
-
type(ContactFlowType) –The type of the flow. For descriptions of the available types, see Choose a flow type in the Connect Customer Administrator Guide.
-
description(Optional[ContactFlowDescription], default:None) –The description of the flow.
-
content(ContactFlowContent) –The JSON string that represents the content of the flow. For an example, see Example flow in Connect Customer Flow language.
Length Constraints: Minimum length of 1. Maximum length of 256000.
-
status(Optional[ContactFlowStatus], default:None) –Indicates the flow status as either
SAVEDorPUBLISHED. ThePUBLISHEDstatus will initiate validation on the content. theSAVEDstatus does not initiate validation of the content.SAVED|PUBLISHED. -
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidContactFlowException–The flow is not valid.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 | |