create_related_item
¶
create_related_item(
domain_id: DomainId,
case_id: CaseId,
type: RelatedItemType,
content: RelatedItemInputContent,
*,
config_overrides: Optional[ConnectCasesClientConfig] = None,
performed_by: Optional[UserUnion] = None,
) -> CreateRelatedItemResponse
Creates a related item (comments, tasks, and contacts) and associates it with a case.
There's a quota for the number of fields allowed in a Custom type related item. See Amazon Connect Cases quotas.
Use cases
Following are examples of related items that you may want to associate with a case:
-
Related contacts, such as calls, chats, emails tasks
-
Comments, for agent notes
-
SLAs, to capture target resolution goals
-
Cases, to capture related Amazon Connect Cases
-
Files, such as policy documentation or customer-provided attachments
-
Custom related items, which provide flexibility for you to define related items that such as bookings, orders, products, notices, and more
Important things to know
-
If you are associating a contact to a case by passing in
Contactfor atype, you must have DescribeContact permission on the ARN of the contact that you provide incontent.contact.contactArn. -
A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a
contactArn). All Related Items have their own internal identifier, therelatedItemArn. Examples of related items includecommentsandcontacts. -
If you provide a value for
performedBy.userArnyou must also have DescribeUser permission on the ARN of the user that you provide. -
The
typefield is reserved for internal use only.
Endpoints: See Amazon Connect endpoints and quotas.
Parameters:
-
domain_id(DomainId) –The unique identifier of the Cases domain.
-
case_id(CaseId) –A unique identifier of the case.
-
type(RelatedItemType) –The type of a related item.
-
content(RelatedItemInputContent) –The content of a related item to be created.
-
performed_by(Optional[UserUnion], default:None) –Represents the creator of the related item.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–We couldn't process your request because of an issue with the server. Try again later.
-
ResourceNotFoundException–We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.
-
ServiceQuotaExceededException–The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.
-
ThrottlingException–The rate has been exceeded for this API. Please try again after a few minutes.
-
ValidationException–The request isn't valid. Check the syntax and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connectcases/_services/connect_cases.py
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 | |