create_test
¶
create_test(
service_arn: Arn,
test_template_arn: ServiceOwnedArn,
*,
config_overrides: Optional[resiliencehubv2ClientConfig] = None,
logging_configuration: Optional[LoggingConfiguration] = None,
stop_conditions: Optional[StopConditionList] = None,
role_name: Optional[IamRoleName] = None,
parameters: Optional[TestParameters] = None,
) -> CreateTestResponse
Creates a test for a service by configuring a test template. Each service has one test per template.
Parameters:
-
service_arn(Arn) –The ARN of the service to create the test for.
-
test_template_arn(ServiceOwnedArn) –The ARN of the test template to configure.
-
logging_configuration(Optional[LoggingConfiguration], default:None) –The logging configuration for the test.
-
stop_conditions(Optional[StopConditionList], default:None) –The stop conditions for the test.
-
role_name(Optional[IamRoleName], default:None) –The name of the IAM execution role to use when running the test.
-
parameters(Optional[TestParameters], default:None) –The parameter values for the test.
Raises:
-
AccessDeniedException–Access denied — caller lacks required permissions.
-
ConflictException–Conflict — resource already exists.
-
InternalServerException–Internal service error.
-
ResourceNotFoundException–Resource not found.
-
ValidationException–Validation error — invalid input parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resiliencehubv2/_services/resiliencehubv2.py
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 | |