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,
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/async_connect.py
29207 29208 29209 29210 29211 29212 29213 29214 29215 29216 29217 29218 29219 29220 29221 29222 29223 29224 29225 29226 29227 29228 29229 29230 29231 29232 29233 29234 29235 29236 29237 29238 29239 29240 29241 29242 29243 29244 29245 29246 29247 29248 29249 29250 29251 29252 29253 29254 29255 29256 29257 29258 29259 29260 29261 29262 29263 29264 29265 29266 29267 29268 29269 29270 29271 29272 29273 29274 29275 29276 29277 29278 29279 29280 29281 29282 29283 29284 29285 29286 29287 29288 29289 29290 29291 29292 29293 29294 29295 29296 29297 29298 29299 29300 29301 29302 29303 29304 29305 29306 29307 29308 29309 29310 29311 29312 29313 29314 29315 29316 29317 29318 29319 | |