CfnFleetPropsMixin
- class aws_cdk.mixins_preview.aws_codebuild.mixins.CfnFleetPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::CodeBuild::Fleetresource configures a compute fleet, a set of dedicated instances for your build environment.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html
- CloudformationResource:
AWS::CodeBuild::Fleet
- 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_codebuild import mixins as codebuild_mixins cfn_fleet_props_mixin = codebuild_mixins.CfnFleetPropsMixin(codebuild_mixins.CfnFleetMixinProps( base_capacity=123, compute_configuration=codebuild_mixins.CfnFleetPropsMixin.ComputeConfigurationProperty( disk=123, instance_type="instanceType", machine_type="machineType", memory=123, v_cpu=123 ), compute_type="computeType", environment_type="environmentType", fleet_proxy_configuration=codebuild_mixins.CfnFleetPropsMixin.ProxyConfigurationProperty( default_behavior="defaultBehavior", ordered_proxy_rules=[codebuild_mixins.CfnFleetPropsMixin.FleetProxyRuleProperty( effect="effect", entities=["entities"], type="type" )] ), fleet_service_role="fleetServiceRole", fleet_vpc_config=codebuild_mixins.CfnFleetPropsMixin.VpcConfigProperty( security_group_ids=["securityGroupIds"], subnets=["subnets"], vpc_id="vpcId" ), image_id="imageId", name="name", overflow_behavior="overflowBehavior", scaling_configuration=codebuild_mixins.CfnFleetPropsMixin.ScalingConfigurationInputProperty( max_capacity=123, scaling_type="scalingType", target_tracking_scaling_configs=[codebuild_mixins.CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty( metric_type="metricType", target_value=123 )] ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CodeBuild::Fleet.- Parameters:
props (
Union[CfnFleetMixinProps,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 = ['baseCapacity', 'computeConfiguration', 'computeType', 'environmentType', 'fleetProxyConfiguration', 'fleetServiceRole', 'fleetVpcConfig', 'imageId', 'name', 'overflowBehavior', 'scalingConfiguration', 'tags']
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
ComputeConfigurationProperty
- class CfnFleetPropsMixin.ComputeConfigurationProperty(*, disk=None, instance_type=None, machine_type=None, memory=None, v_cpu=None)
Bases:
objectContains compute attributes.
These attributes only need be specified when your project’s or fleet’s
computeTypeis set toATTRIBUTE_BASED_COMPUTEorCUSTOM_INSTANCE_TYPE.- Parameters:
disk (
Union[int,float,None]) – The amount of disk space of the instance type included in your fleet.instance_type (
Optional[str]) – The EC2 instance type to be launched in your fleet.machine_type (
Optional[str]) – The machine type of the instance type included in your fleet.memory (
Union[int,float,None]) – The amount of memory of the instance type included in your fleet.v_cpu (
Union[int,float,None]) – The number of vCPUs of the instance type included in your fleet.
- 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_codebuild import mixins as codebuild_mixins compute_configuration_property = codebuild_mixins.CfnFleetPropsMixin.ComputeConfigurationProperty( disk=123, instance_type="instanceType", machine_type="machineType", memory=123, v_cpu=123 )
Attributes
- disk
The amount of disk space of the instance type included in your fleet.
- instance_type
The EC2 instance type to be launched in your fleet.
- machine_type
The machine type of the instance type included in your fleet.
- memory
The amount of memory of the instance type included in your fleet.
- v_cpu
The number of vCPUs of the instance type included in your fleet.
FleetProxyRuleProperty
- class CfnFleetPropsMixin.FleetProxyRuleProperty(*, effect=None, entities=None, type=None)
Bases:
objectInformation about the proxy rule for your reserved capacity instances.
- Parameters:
effect (
Optional[str]) – The behavior of the proxy rule.entities (
Optional[Sequence[str]]) – The destination of the proxy rule.type (
Optional[str]) – The type of proxy rule.
- 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_codebuild import mixins as codebuild_mixins fleet_proxy_rule_property = codebuild_mixins.CfnFleetPropsMixin.FleetProxyRuleProperty( effect="effect", entities=["entities"], type="type" )
Attributes
- effect
The behavior of the proxy rule.
- entities
The destination of the proxy rule.
ProxyConfigurationProperty
- class CfnFleetPropsMixin.ProxyConfigurationProperty(*, default_behavior=None, ordered_proxy_rules=None)
Bases:
objectInformation about the proxy configurations that apply network access control to your reserved capacity instances.
- Parameters:
default_behavior (
Optional[str]) – The default behavior of outgoing traffic.ordered_proxy_rules (
Union[IResolvable,Sequence[Union[IResolvable,FleetProxyRuleProperty,Dict[str,Any]]],None]) – An array ofFleetProxyRuleobjects that represent the specified destination domains or IPs to allow or deny network access control to.
- 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_codebuild import mixins as codebuild_mixins proxy_configuration_property = codebuild_mixins.CfnFleetPropsMixin.ProxyConfigurationProperty( default_behavior="defaultBehavior", ordered_proxy_rules=[codebuild_mixins.CfnFleetPropsMixin.FleetProxyRuleProperty( effect="effect", entities=["entities"], type="type" )] )
Attributes
- default_behavior
The default behavior of outgoing traffic.
- ordered_proxy_rules
An array of
FleetProxyRuleobjects that represent the specified destination domains or IPs to allow or deny network access control to.
ScalingConfigurationInputProperty
- class CfnFleetPropsMixin.ScalingConfigurationInputProperty(*, max_capacity=None, scaling_type=None, target_tracking_scaling_configs=None)
Bases:
objectThe scaling configuration input of a compute fleet.
- Parameters:
max_capacity (
Union[int,float,None]) – The maximum number of instances in the fleet when auto-scaling.scaling_type (
Optional[str]) – The scaling type for a compute fleet.target_tracking_scaling_configs (
Union[IResolvable,Sequence[Union[IResolvable,TargetTrackingScalingConfigurationProperty,Dict[str,Any]]],None]) – A list ofTargetTrackingScalingConfigurationobjects.
- 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_codebuild import mixins as codebuild_mixins scaling_configuration_input_property = codebuild_mixins.CfnFleetPropsMixin.ScalingConfigurationInputProperty( max_capacity=123, scaling_type="scalingType", target_tracking_scaling_configs=[codebuild_mixins.CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty( metric_type="metricType", target_value=123 )] )
Attributes
- max_capacity
The maximum number of instances in the fleet when auto-scaling.
- scaling_type
The scaling type for a compute fleet.
- target_tracking_scaling_configs
A list of
TargetTrackingScalingConfigurationobjects.
TargetTrackingScalingConfigurationProperty
- class CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty(*, metric_type=None, target_value=None)
Bases:
objectDefines when a new instance is auto-scaled into the compute fleet.
- Parameters:
metric_type (
Optional[str]) – The metric type to determine auto-scaling.target_value (
Union[int,float,None]) – The value ofmetricTypewhen to start scaling.
- 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_codebuild import mixins as codebuild_mixins target_tracking_scaling_configuration_property = codebuild_mixins.CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty( metric_type="metricType", target_value=123 )
Attributes
- metric_type
The metric type to determine auto-scaling.
- target_value
The value of
metricTypewhen to start scaling.
VpcConfigProperty
- class CfnFleetPropsMixin.VpcConfigProperty(*, security_group_ids=None, subnets=None, vpc_id=None)
Bases:
objectInformation about the VPC configuration that AWS CodeBuild accesses.
- Parameters:
security_group_ids (
Optional[Sequence[str]]) – A list of one or more security groups IDs in your Amazon VPC.subnets (
Optional[Sequence[str]]) – A list of one or more subnet IDs in your Amazon VPC.vpc_id (
Optional[str]) – The ID of the Amazon VPC.
- 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_codebuild import mixins as codebuild_mixins vpc_config_property = codebuild_mixins.CfnFleetPropsMixin.VpcConfigProperty( security_group_ids=["securityGroupIds"], subnets=["subnets"], vpc_id="vpcId" )
Attributes
- security_group_ids
A list of one or more security groups IDs in your Amazon VPC.
- subnets
A list of one or more subnet IDs in your Amazon VPC.
- vpc_id
The ID of the Amazon VPC.