|
803 | 803 | update_contact_routing_data/5, |
804 | 804 | update_contact_schedule/2, |
805 | 805 | update_contact_schedule/3, |
| 806 | + update_contact_task_template/2, |
| 807 | + update_contact_task_template/3, |
806 | 808 | update_data_table_attribute/5, |
807 | 809 | update_data_table_attribute/6, |
808 | 810 | update_data_table_metadata/4, |
|
10648 | 10650 | -type update_contact_schedule_response() :: #{}. |
10649 | 10651 |
|
10650 | 10652 |
|
| 10653 | +%% Example: |
| 10654 | +%% update_contact_task_template_request() :: #{ |
| 10655 | +%% <<"ContactId">> := string(), |
| 10656 | +%% <<"InstanceId">> := string(), |
| 10657 | +%% <<"TaskTemplateId">> := string() |
| 10658 | +%% } |
| 10659 | +-type update_contact_task_template_request() :: #{binary() => any()}. |
| 10660 | + |
| 10661 | +%% Example: |
| 10662 | +%% update_contact_task_template_response() :: #{} |
| 10663 | +-type update_contact_task_template_response() :: #{}. |
| 10664 | + |
| 10665 | + |
10651 | 10666 | %% Example: |
10652 | 10667 | %% update_data_table_attribute_request() :: #{ |
10653 | 10668 | %% <<"Description">> => string(), |
|
14315 | 14330 | invalid_parameter_exception() | |
14316 | 14331 | internal_service_exception(). |
14317 | 14332 |
|
| 14333 | +-type update_contact_task_template_errors() :: |
| 14334 | + service_quota_exceeded_exception() | |
| 14335 | + resource_not_found_exception() | |
| 14336 | + property_validation_exception() | |
| 14337 | + limit_exceeded_exception() | |
| 14338 | + invalid_request_exception() | |
| 14339 | + internal_service_exception() | |
| 14340 | + access_denied_exception(). |
| 14341 | + |
14318 | 14342 | -type update_data_table_attribute_errors() :: |
14319 | 14343 | throttling_exception() | |
14320 | 14344 | service_quota_exceeded_exception() | |
@@ -17826,18 +17850,18 @@ delete_attached_file(Client, FileId, InstanceId, Input0, Options0) -> |
17826 | 17850 | %% information (PII) from a |
17827 | 17851 | %% contact in the specified Connect Customer instance. |
17828 | 17852 | %% |
17829 | | -%% This operation redacts PII (such as |
| 17853 | +%% We redact PII (such as |
17830 | 17854 | %% customer endpoints, additional email recipients, and the email subject) |
17831 | 17855 | %% from the contact and its |
17832 | 17856 | %% associated contact trace record (CTR). The contact must be in a terminated |
17833 | 17857 | %% state. |
17834 | 17858 | %% |
17835 | | -%% This operation performs a hard deletion of the specified PII and cannot be |
17836 | | -%% undone. There is |
17837 | | -%% no retention period; after the data is deleted, it cannot be recovered. |
17838 | | -%% Only fields that |
17839 | | -%% Connect Customer identifies and stores as PII are removed. Any PII that |
17840 | | -%% you place in fields |
| 17859 | +%% This deletion is permanent and cannot be undone. Performing this |
| 17860 | +%% operation permanently deletes the specified PII. There is |
| 17861 | +%% no retention period; you cannot recover the data after deletion. We remove |
| 17862 | +%% only the fields |
| 17863 | +%% that Connect Customer identifies and stores as PII. Any PII that you place |
| 17864 | +%% in fields |
17841 | 17865 | %% outside the scope of this operation remains your responsibility to remove. |
17842 | 17866 | -spec delete_contact_data(aws_client:aws_client(), binary() | list(), binary() | list(), delete_contact_data_request()) -> |
17843 | 17867 | {ok, delete_contact_data_response(), tuple()} | |
@@ -26968,11 +26992,14 @@ send_outbound_web_notification(Client, InstanceId, Input0, Options0) -> |
26968 | 26992 | %% @doc Provides a pre-signed Amazon S3 URL in response for uploading your |
26969 | 26993 | %% content. |
26970 | 26994 | %% |
26971 | | -%% You may only use this API to upload attachments to an Connect Customer |
| 26995 | +%% You may only use this API to upload attachments to a Connect Customer |
26972 | 26996 | %% Case: |
26973 | | -%% https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateCase.html |
26974 | | -%% or Connect Customer Email: |
26975 | | -%% https://docs.aws.amazon.com/connect/latest/adminguide/setup-email-channel.html. |
| 26997 | +%% https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateCase.html, |
| 26998 | +%% Connect Customer Email: |
| 26999 | +%% https://docs.aws.amazon.com/connect/latest/adminguide/setup-email-channel.html, |
| 27000 | +%% or |
| 27001 | +%% Connect Customer Task: |
| 27002 | +%% https://docs.aws.amazon.com/connect/latest/adminguide/concepts-getting-started-tasks.html. |
26976 | 27003 | -spec start_attached_file_upload(aws_client:aws_client(), binary() | list(), start_attached_file_upload_request()) -> |
26977 | 27004 | {ok, start_attached_file_upload_response(), tuple()} | |
26978 | 27005 | {error, any()} | |
@@ -28847,6 +28874,89 @@ update_contact_schedule(Client, Input0, Options0) -> |
28847 | 28874 |
|
28848 | 28875 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
28849 | 28876 |
|
| 28877 | +%% @doc Updates the task template association on an existing task contact. |
| 28878 | +%% |
| 28879 | +%% You can update the task template on a contact |
| 28880 | +%% before assignment to support tasks that are created without a template |
| 28881 | +%% (for example Rules: |
| 28882 | +%% https://docs.aws.amazon.com/connect/latest/adminguide/connect-rules.html |
| 28883 | +%% or disconnect flows: |
| 28884 | +%% https://docs.aws.amazon.com/connect/latest/adminguide/set-disconnect-flow.html) |
| 28885 | +%% or change the agent interaction |
| 28886 | +%% form to represent the latest task data (for example an initial request |
| 28887 | +%% that was submitted as a refund gets updated to |
| 28888 | +%% an account cancellation and requires a new template). |
| 28889 | +%% |
| 28890 | +%% This operation can only be used with task contacts that are in progress |
| 28891 | +%% and not connected to an agent. A task |
| 28892 | +%% template can be updated a maximum of 5 times per contact. |
| 28893 | +%% |
| 28894 | +%% The task's references must be compatible with the fields of the target |
| 28895 | +%% task template. If the target template has |
| 28896 | +%% a required field, the task must have a corresponding reference with a |
| 28897 | +%% matching name and compatible type. The |
| 28898 | +%% following task template field types map to reference types: |
| 28899 | +%% |
| 28900 | +%% `TEXT', `TEXT_AREA', `BOOLEAN', and `SINGLE_SELECT' map to |
| 28901 | +%% references of type `STRING'. |
| 28902 | +%% |
| 28903 | +%% `NUMBER' maps to references of type `NUMBER'. |
| 28904 | +%% |
| 28905 | +%% `DATE_TIME' maps to references of type `DATE'. |
| 28906 | +%% |
| 28907 | +%% `URL' maps to references of type `URL'. |
| 28908 | +%% |
| 28909 | +%% `EMAIL' maps to references of type `EMAIL'. |
| 28910 | +%% |
| 28911 | +%% References corresponding to `TEXT' fields must be fewer than 512 |
| 28912 | +%% characters. |
| 28913 | +%% `TEXT_AREA' fields must be fewer than 4,096 characters. `BOOLEAN' |
| 28914 | +%% fields must have a value |
| 28915 | +%% of `true' or `false'. |
| 28916 | +%% |
| 28917 | +%% An `InvalidRequestException' occurs when |
| 28918 | +%% `UpdateContactTaskTemplate' is called on a |
| 28919 | +%% connected or terminated task, when it is called on non-task contacts, and |
| 28920 | +%% when the task contact already uses the |
| 28921 | +%% provided task template. A `PropertyValidationException' occurs when |
| 28922 | +%% the task's references conflict with |
| 28923 | +%% the task template's fields, for example if the task is missing a |
| 28924 | +%% reference that matches a required field, or if the |
| 28925 | +%% task has a reference that matches a required field's name but not its |
| 28926 | +%% datatype. |
| 28927 | +-spec update_contact_task_template(aws_client:aws_client(), update_contact_task_template_request()) -> |
| 28928 | + {ok, update_contact_task_template_response(), tuple()} | |
| 28929 | + {error, any()} | |
| 28930 | + {error, update_contact_task_template_errors(), tuple()}. |
| 28931 | +update_contact_task_template(Client, Input) -> |
| 28932 | + update_contact_task_template(Client, Input, []). |
| 28933 | + |
| 28934 | +-spec update_contact_task_template(aws_client:aws_client(), update_contact_task_template_request(), proplists:proplist()) -> |
| 28935 | + {ok, update_contact_task_template_response(), tuple()} | |
| 28936 | + {error, any()} | |
| 28937 | + {error, update_contact_task_template_errors(), tuple()}. |
| 28938 | +update_contact_task_template(Client, Input0, Options0) -> |
| 28939 | + Method = post, |
| 28940 | + Path = ["/contact/task-template"], |
| 28941 | + SuccessStatusCode = 200, |
| 28942 | + {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), |
| 28943 | + {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), |
| 28944 | + Options = [{send_body_as_binary, SendBodyAsBinary}, |
| 28945 | + {receive_body_as_binary, ReceiveBodyAsBinary}, |
| 28946 | + {append_sha256_content_hash, false} |
| 28947 | + | Options2], |
| 28948 | + |
| 28949 | + Headers = [], |
| 28950 | + Input1 = Input0, |
| 28951 | + |
| 28952 | + CustomHeaders = [], |
| 28953 | + Input2 = Input1, |
| 28954 | + |
| 28955 | + Query_ = [], |
| 28956 | + Input = Input2, |
| 28957 | + |
| 28958 | + request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
| 28959 | + |
28850 | 28960 | %% @doc Updates all properties for an attribute using all properties from |
28851 | 28961 | %% CreateDataTableAttribute. |
28852 | 28962 | %% |
|
0 commit comments