CfnProjectProps Struct
Properties for defining a CfnProject.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devicefarm as devicefarm } from 'aws-cdk-lib';
const cfnProjectProps: devicefarm.CfnProjectProps = {
name: 'name',
// the properties below are optional
defaultJobTimeoutMinutes: 123,
environmentVariables: [{
name: 'name',
value: 'value',
}],
executionRoleArn: 'executionRoleArn',
tags: [{
key: 'key',
value: 'value',
}],
vpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
vpcId: 'vpcId',
},
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devicefarm as devicefarm
cfn_project_props = devicefarm.CfnProjectProps(
name="name",
# the properties below are optional
default_job_timeout_minutes=123,
environment_variables=[devicefarm.CfnProject.EnvironmentVariableProperty(
name="name",
value="value"
)],
execution_role_arn="executionRoleArn",
tags=[CfnTag(
key="key",
value="value"
)],
vpc_config=devicefarm.CfnProject.VpcConfigProperty(
security_group_ids=["securityGroupIds"],
subnet_ids=["subnetIds"],
vpc_id="vpcId"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devicefarm.*;
CfnProjectProps cfnProjectProps = CfnProjectProps.builder()
.name("name")
// the properties below are optional
.defaultJobTimeoutMinutes(123)
.environmentVariables(List.of(EnvironmentVariableProperty.builder()
.name("name")
.value("value")
.build()))
.executionRoleArn("executionRoleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.vpcId("vpcId")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DeviceFarm;
var cfnProjectProps = new CfnProjectProps {
Name = "name",
// the properties below are optional
DefaultJobTimeoutMinutes = 123,
EnvironmentVariables = new [] { new EnvironmentVariableProperty {
Name = "name",
Value = "value"
} },
ExecutionRoleArn = "executionRoleArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcConfig = new VpcConfigProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" },
VpcId = "vpcId"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnProjectProps := &CfnProjectProps{
Name: jsii.String("name"),
// the properties below are optional
DefaultJobTimeoutMinutes: jsii.Number(123),
EnvironmentVariables: []interface{}{
&EnvironmentVariableProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
ExecutionRoleArn: jsii.String("executionRoleArn"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VpcConfig: &VpcConfigProperty{
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
SubnetIds: []*string{
jsii.String("subnetIds"),
},
VpcId: jsii.String("vpcId"),
},
}
Properties
defaultJobTimeoutMinutesoptionalnumberdefault_job_timeout_minutesoptionalint | floatdefaultJobTimeoutMinutesoptionalNumberDefaultJobTimeoutMinutesoptionaldoubleDefaultJobTimeoutMinutesoptional*float64 #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.
environmentVariablesoptionalIResolvable | IResolvable | CfnProject.environment_variablesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EnvironmentVariableProperty]]]environmentVariablesoptionalIResolvableEnvironmentVariablesoptionalIResolvableEnvironmentVariablesoptionalinterface{} #executionRoleArnoptionalstringexecution_role_arnoptionalstrexecutionRoleArnoptionalStringExecutionRoleArnoptionalstringExecutionRoleArnoptional*string #The project's name.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags to add to the resource.
A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.
vpcConfigoptionalIResolvable | CfnProject.VpcConfigPropertyvpc_configoptionaltyping.Union[IResolvable, VpcConfigProperty]vpcConfigoptionalIResolvableVpcConfigoptionalIResolvableVpcConfigoptionalinterface{} #The VPC security groups and subnets that are attached to a project.