create_test_case
async
¶
create_test_case(
instance_id: InstanceIdOrArn,
name: TestCaseName,
content: TestCaseContent,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
description: Optional[TestCaseDescription] = None,
entry_point: Optional[TestCaseEntryPoint] = None,
initialization_data: Optional[TestCaseInitializationData] = None,
synthetic_customer_configuration: Optional[SyntheticCustomerConfiguration] = None,
status: Optional[TestCaseStatus] = None,
test_case_id: Optional[TestCaseId] = None,
tags: Optional[TagMap] = None,
last_modified_time: Optional[Timestamp] = None,
last_modified_region: Optional[RegionName] = None,
) -> CreateTestCaseResponse
Creates a test case with its content and metadata for the specified Amazon Connect instance.
Parameters:
-
instance_id(InstanceIdOrArn) –The identifier of the Amazon Connect instance.
-
name(TestCaseName) –The name of the test.
-
description(Optional[TestCaseDescription], default:None) –The description of the test.
-
content(TestCaseContent) –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 initial custom attributes for your test.
-
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 set
Enabledtotrueand the test case status toPUBLISHED, you must provide aPersonawith aName, and aScenariowith aName,Goal, andExpectedOutcome. If the test case status isSAVED, you can provide a partial configuration. -
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.
-
test_case_id(Optional[TestCaseId], default:None) –Id of the test case if you want to create it in a replica region using Amazon Connect Global Resiliency
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource.
-
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.
-
IdempotencyException–An entity with the same 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.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
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
5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 | |