update_test_case
¶
update_test_case(
instance_id: InstanceIdOrArn,
test_case_id: TestCaseId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
content: Optional[TestCaseContent] = None,
entry_point: Optional[TestCaseEntryPoint] = None,
initialization_data: Optional[TestCaseInitializationData] = None,
synthetic_customer_configuration: Optional[SyntheticCustomerConfiguration] = None,
name: Optional[TestCaseName] = None,
description: Optional[TestCaseDescription] = None,
status: Optional[TestCaseStatus] = None,
last_modified_time: Optional[Timestamp] = None,
last_modified_region: Optional[RegionName] = None,
) -> UpdateTestCaseResponse
Updates any of the metadata for a test case, such as the name, description, and status or content of an existing test case. This API doesn't allow customers to update the tags of the test case resource for the specified Amazon Connect instance.
Parameters:
-
instance_id(InstanceIdOrArn) –The identifier of the Amazon Connect instance.
-
test_case_id(TestCaseId) –The identifier of the test case to update.
-
content(Optional[TestCaseContent], default:None) –The JSON string that represents the content of the test.
-
entry_point(Optional[TestCaseEntryPoint], default:None) –Defines the starting point for your test.
-
initialization_data(Optional[TestCaseInitializationData], default:None) –Defines the test attributes for precise data representation.
-
synthetic_customer_configuration(Optional[SyntheticCustomerConfiguration], default:None) –The configuration of an AI-driven synthetic customer that you use to simulate the customer side of the test. If you specify this parameter, it replaces your entire existing configuration. If you omit it, Amazon Connect keeps your existing configuration. If you set
Enabledtotrueand the test case status toPUBLISHED, you must provide aPersonawith aName, and aScenariowith aName,Goal, andExpectedOutcome. -
name(Optional[TestCaseName], default:None) –The name of the test case.
-
description(Optional[TestCaseDescription], default:None) –The description of the test case.
-
status(Optional[TestCaseStatus], default:None) –Indicates the test status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content. The SAVED status does not initiate validation of the content.
-
last_modified_time(Optional[Timestamp], default:None) –The time at which the resource was last modified.
-
last_modified_region(Optional[RegionName], default:None) –The region in which the resource was last modified
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
InvalidTestCaseException–The test is not valid.
-
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
28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 28840 28841 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 28879 28880 28881 28882 28883 28884 28885 28886 28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 28898 28899 28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 28913 28914 28915 28916 28917 28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 | |