update_test_case
async
¶
update_test_case(
instance_id: InstanceIdOrArn,
test_case_id: TestCaseId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
content: Optional[TestCaseContent] = None,
entry_point: Optional[TestCaseEntryPoint] = None,
initialization_data: Optional[TestCaseInitializationData] = 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.
-
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/async_connect.py
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 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 | |