CfnProjectPropsMixin
- class aws_cdk.mixins_preview.aws_devicefarm.mixins.CfnProjectPropsMixin(props, *, strategy=None)
Bases:
MixinCreates 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_devicefarm import mixins as devicefarm_mixins cfn_project_props_mixin = devicefarm_mixins.CfnProjectPropsMixin(devicefarm_mixins.CfnProjectMixinProps( default_job_timeout_minutes=123, name="name", tags=[CfnTag( key="key", value="value" )], vpc_config=devicefarm_mixins.CfnProjectPropsMixin.VpcConfigProperty( security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"], vpc_id="vpcId" ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::DeviceFarm::Project.- Parameters:
props (
Union[CfnProjectMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['defaultJobTimeoutMinutes', 'name', 'tags', 'vpcConfig']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
VpcConfigProperty
- class CfnProjectPropsMixin.VpcConfigProperty(*, security_group_ids=None, subnet_ids=None, vpc_id=None)
Bases:
objectThe 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:
- 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.mixins_preview.aws_devicefarm import mixins as devicefarm_mixins vpc_config_property = devicefarm_mixins.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 .
- 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 .
- vpc_id
A list of VPC IDs.
Each VPC is given a unique ID upon creation.