create_contact_flow
async
¶
create_contact_flow(
instance_id: InstanceId,
name: ContactFlowName,
type: ContactFlowType,
content: ContactFlowContent,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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/async_connect.py
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 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 | |