create_project
async
¶
create_project(
name: Name,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
default_job_timeout_minutes: Optional[JobTimeoutMinutes] = None,
vpc_config: Optional[VpcConfig] = None,
environment_variables: Optional[EnvironmentVariables] = None,
execution_role_arn: Optional[AmazonRoleResourceName] = None,
) -> CreateProjectResult
Creates a project.
Parameters:
-
name(Name) –The project's name.
-
default_job_timeout_minutes(Optional[JobTimeoutMinutes], default:None) –Sets the execution timeout value (in minutes) for a project. All test runs in this project use the specified execution timeout value unless overridden when scheduling a run.
-
vpc_config(Optional[VpcConfig], default:None) –The VPC security groups and subnets that are attached to a project.
-
environment_variables(Optional[EnvironmentVariables], default:None) –A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file.
For more information about using test spec files, please see Custom test environments in AWS Device Farm.
-
execution_role_arn(Optional[AmazonRoleResourceName], default:None) –An IAM role to be assumed by the test host for all runs in the project.
Raises:
-
ArgumentException–An invalid argument was specified.
-
LimitExceededException–A limit was exceeded.
-
NotFoundException–The specified entity was not found.
-
ServiceAccountException–There was a problem with the service account.
-
TagOperationException–The operation was not successful. Try again.
-
UnknownServiceError–The service returned an error code this client does not model.