CfnEC2FleetProps

class aws_cdk.aws_ec2.CfnEC2FleetProps(*, launch_template_configs, target_capacity_specification, excess_capacity_termination_policy=None, on_demand_options=None, replace_unhealthy_instances=None, spot_options=None, tag_specifications=None, terminate_instances_with_expiration=None, type=None, valid_from=None, valid_until=None)

Bases: object

Properties for defining a AWS::EC2::EC2Fleet.

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html

Attributes

excess_capacity_termination_policy

AWS::EC2::EC2Fleet.ExcessCapacityTerminationPolicy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-excesscapacityterminationpolicy

Return type

Optional[str]

launch_template_configs

AWS::EC2::EC2Fleet.LaunchTemplateConfigs.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-launchtemplateconfigs

Return type

Union[IResolvable, List[Union[IResolvable, FleetLaunchTemplateConfigRequestProperty]]]

on_demand_options

AWS::EC2::EC2Fleet.OnDemandOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-ondemandoptions

Return type

Union[IResolvable, OnDemandOptionsRequestProperty, None]

replace_unhealthy_instances

AWS::EC2::EC2Fleet.ReplaceUnhealthyInstances.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-replaceunhealthyinstances

Return type

Union[bool, IResolvable, None]

spot_options

AWS::EC2::EC2Fleet.SpotOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-spotoptions

Return type

Union[IResolvable, SpotOptionsRequestProperty, None]

tag_specifications

AWS::EC2::EC2Fleet.TagSpecifications.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-tagspecifications

Return type

Union[IResolvable, List[Union[IResolvable, TagSpecificationProperty]], None]

target_capacity_specification

AWS::EC2::EC2Fleet.TargetCapacitySpecification.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-targetcapacityspecification

Return type

Union[IResolvable, TargetCapacitySpecificationRequestProperty]

terminate_instances_with_expiration

AWS::EC2::EC2Fleet.TerminateInstancesWithExpiration.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-terminateinstanceswithexpiration

Return type

Union[bool, IResolvable, None]

type

AWS::EC2::EC2Fleet.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-type

Return type

Optional[str]

valid_from

AWS::EC2::EC2Fleet.ValidFrom.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-validfrom

Return type

Optional[str]

valid_until

AWS::EC2::EC2Fleet.ValidUntil.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-validuntil

Return type

Optional[str]