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

__init__(*, 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)

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

Parameters
  • launch_template_configs (Union[IResolvable, List[Union[IResolvable, FleetLaunchTemplateConfigRequestProperty]]]) – AWS::EC2::EC2Fleet.LaunchTemplateConfigs.

  • target_capacity_specification (Union[IResolvable, TargetCapacitySpecificationRequestProperty]) – AWS::EC2::EC2Fleet.TargetCapacitySpecification.

  • excess_capacity_termination_policy (Optional[str]) – AWS::EC2::EC2Fleet.ExcessCapacityTerminationPolicy.

  • on_demand_options (Union[IResolvable, None, OnDemandOptionsRequestProperty]) – AWS::EC2::EC2Fleet.OnDemandOptions.

  • replace_unhealthy_instances (Union[bool, None, IResolvable]) – AWS::EC2::EC2Fleet.ReplaceUnhealthyInstances.

  • spot_options (Union[IResolvable, None, SpotOptionsRequestProperty]) – AWS::EC2::EC2Fleet.SpotOptions.

  • tag_specifications (Union[IResolvable, None, List[Union[IResolvable, TagSpecificationProperty]]]) – AWS::EC2::EC2Fleet.TagSpecifications.

  • terminate_instances_with_expiration (Union[bool, None, IResolvable]) – AWS::EC2::EC2Fleet.TerminateInstancesWithExpiration.

  • type (Optional[str]) – AWS::EC2::EC2Fleet.Type.

  • valid_from (Optional[str]) – AWS::EC2::EC2Fleet.ValidFrom.

  • valid_until (Optional[str]) – AWS::EC2::EC2Fleet.ValidUntil.

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

Attributes

excess_capacity_termination_policy

AWS::EC2::EC2Fleet.ExcessCapacityTerminationPolicy.

see :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 :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 :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-ondemandoptions

Return type

Union[IResolvable, None, OnDemandOptionsRequestProperty]

replace_unhealthy_instances

AWS::EC2::EC2Fleet.ReplaceUnhealthyInstances.

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

Return type

Union[bool, None, IResolvable]

spot_options

AWS::EC2::EC2Fleet.SpotOptions.

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

Return type

Union[IResolvable, None, SpotOptionsRequestProperty]

tag_specifications

AWS::EC2::EC2Fleet.TagSpecifications.

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

Return type

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

target_capacity_specification

AWS::EC2::EC2Fleet.TargetCapacitySpecification.

see :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 :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-terminateinstanceswithexpiration

Return type

Union[bool, None, IResolvable]

type

AWS::EC2::EC2Fleet.Type.

see :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 :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 :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-validuntil

Return type

Optional[str]