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,
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/connect.py
28499 28500 28501 28502 28503 28504 28505 28506 28507 28508 28509 28510 28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 28539 28540 28541 28542 28543 28544 28545 28546 28547 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 28579 28580 28581 28582 28583 28584 28585 28586 28587 28588 28589 28590 28591 28592 28593 28594 | |