CfnProjectPropsMixin

class aws_cdk.cfn_property_mixins.aws_devicefarm.CfnProjectPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a project.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-project.html

CloudformationResource:

AWS::DeviceFarm::Project

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_devicefarm as devicefarm
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_project_props_mixin = devicefarm.CfnProjectPropsMixin(devicefarm.CfnProjectMixinProps(
    default_job_timeout_minutes=123,
    environment_variables=[devicefarm.CfnProjectPropsMixin.EnvironmentVariableProperty(
        name="name",
        value="value"
    )],
    execution_role_arn="executionRoleArn",
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    vpc_config=devicefarm.CfnProjectPropsMixin.VpcConfigProperty(
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"],
        vpc_id="vpcId"
    )
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::DeviceFarm::Project.

Parameters:
  • props (Union[CfnProjectMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['defaultJobTimeoutMinutes', 'environmentVariables', 'executionRoleArn', 'name', 'tags', 'vpcConfig']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

EnvironmentVariableProperty

class CfnProjectPropsMixin.EnvironmentVariableProperty(*, name=None, value=None)

Bases: object

Parameters:
  • name (Optional[str])

  • value (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devicefarm-project-environmentvariable.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_devicefarm as devicefarm

environment_variable_property = devicefarm.CfnProjectPropsMixin.EnvironmentVariableProperty(
    name="name",
    value="value"
)

Attributes

name

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devicefarm-project-environmentvariable.html#cfn-devicefarm-project-environmentvariable-name

Type:

see

value

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devicefarm-project-environmentvariable.html#cfn-devicefarm-project-environmentvariable-value

Type:

see

VpcConfigProperty

class CfnProjectPropsMixin.VpcConfigProperty(*, security_group_ids=None, subnet_ids=None, vpc_id=None)

Bases: object

The VPC security groups and subnets that are attached to a project.

Parameters:
  • security_group_ids (Optional[Sequence[str]]) – A list of VPC security group IDs. A security group allows inbound traffic from network interfaces (and their associated instances) that are assigned to the same security group. See Security groups in the Amazon Virtual Private Cloud user guide .

  • subnet_ids (Optional[Sequence[str]]) – A subnet is a range of IP addresses in your VPC. You can launch Amazon resources, such as EC2 instances, into a specific subnet. When you create a subnet, you specify the IPv4 CIDR block for the subnet, which is a subset of the VPC CIDR block. See VPCs and subnets in the Amazon Virtual Private Cloud user guide .

  • vpc_id (Optional[str]) – A list of VPC IDs. Each VPC is given a unique ID upon creation.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devicefarm-project-vpcconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_devicefarm as devicefarm

vpc_config_property = devicefarm.CfnProjectPropsMixin.VpcConfigProperty(
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"],
    vpc_id="vpcId"
)

Attributes

security_group_ids

A list of VPC security group IDs.

A security group allows inbound traffic from network interfaces (and their associated instances) that are assigned to the same security group. See Security groups in the Amazon Virtual Private Cloud user guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devicefarm-project-vpcconfig.html#cfn-devicefarm-project-vpcconfig-securitygroupids

subnet_ids

A subnet is a range of IP addresses in your VPC.

You can launch Amazon resources, such as EC2 instances, into a specific subnet. When you create a subnet, you specify the IPv4 CIDR block for the subnet, which is a subset of the VPC CIDR block. See VPCs and subnets in the Amazon Virtual Private Cloud user guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devicefarm-project-vpcconfig.html#cfn-devicefarm-project-vpcconfig-subnetids

vpc_id

A list of VPC IDs.

Each VPC is given a unique ID upon creation.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devicefarm-project-vpcconfig.html#cfn-devicefarm-project-vpcconfig-vpcid