CfnEC2Fleet

class aws_cdk.aws_ec2.CfnEC2Fleet(scope, id, *, 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: aws_cdk.core.CfnResource

A CloudFormation AWS::EC2::EC2Fleet.

See

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

CloudformationResource

AWS::EC2::EC2Fleet

Create a new AWS::EC2::EC2Fleet.

Parameters

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters

path (str) – The path of the value to delete.

Return type

None

add_depends_on(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters

target (CfnResource) –

Return type

None

add_metadata(key, value)

Add a value to the CloudFormation Resource Metadata.

Parameters
  • key (str) –

  • value (Any) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

None

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}
Parameters
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters

property_path (str) – The path to the property.

Return type

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

Parameters
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.

Return type

None

get_att(attribute_name)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters

attribute_name (str) – The name of the attribute.

Return type

Reference

get_metadata(key)

Retrieve a value value from the CloudFormation Resource Metadata.

Parameters

key (str) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

Any

inspect(inspector)

(experimental) Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

Stability

experimental

Return type

None

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters

new_logical_id (str) – The new logical ID to use for this stack element.

Return type

None

to_string()

Returns a string representation of this construct.

Return type

str

Returns

a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::EC2::EC2Fleet'
cfn_options

Options for this resource, such as condition, update policy etc.

Return type

ICfnResourceOptions

cfn_resource_type

AWS resource type.

Return type

str

creation_stack

return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

Return type

List[str]

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]]]

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

Return type

str

Returns

the logical ID as a stringified token. This value will only get resolved during synthesis.

node

The construct tree node associated with this construct.

Return type

ConstructNode

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]

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

Return type

str

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]

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Return type

Stack

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]

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters

x (Any) –

Return type

bool

Returns

The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(construct)

Check whether the given construct is a CfnResource.

Parameters

construct (IConstruct) –

Return type

bool

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool

CapacityReservationOptionsRequestProperty

class CfnEC2Fleet.CapacityReservationOptionsRequestProperty(*, usage_strategy=None)

Bases: object

Parameters

usage_strategy (Optional[str]) – CfnEC2Fleet.CapacityReservationOptionsRequestProperty.UsageStrategy.

See

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

Attributes

usage_strategy

CfnEC2Fleet.CapacityReservationOptionsRequestProperty.UsageStrategy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-capacityreservationoptionsrequest.html#cfn-ec2-ec2fleet-capacityreservationoptionsrequest-usagestrategy

Return type

Optional[str]

FleetLaunchTemplateConfigRequestProperty

class CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty(*, launch_template_specification=None, overrides=None)

Bases: object

Parameters
See

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

Attributes

launch_template_specification

CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.LaunchTemplateSpecification.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateconfigrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateconfigrequest-launchtemplatespecification

Return type

Union[IResolvable, FleetLaunchTemplateSpecificationRequestProperty, None]

overrides

CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Overrides.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateconfigrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateconfigrequest-overrides

Return type

Union[IResolvable, List[Union[IResolvable, FleetLaunchTemplateOverridesRequestProperty]], None]

FleetLaunchTemplateOverridesRequestProperty

class CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty(*, availability_zone=None, instance_type=None, max_price=None, placement=None, priority=None, subnet_id=None, weighted_capacity=None)

Bases: object

Parameters
  • availability_zone (Optional[str]) – CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.AvailabilityZone.

  • instance_type (Optional[str]) – CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.InstanceType.

  • max_price (Optional[str]) – CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.MaxPrice.

  • placement (Union[IResolvable, PlacementProperty, None]) – CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Placement.

  • priority (Union[int, float, None]) – CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Priority.

  • subnet_id (Optional[str]) – CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.SubnetId.

  • weighted_capacity (Union[int, float, None]) – CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.WeightedCapacity.

See

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

Attributes

availability_zone

CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.AvailabilityZone.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-availabilityzone

Return type

Optional[str]

instance_type

CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.InstanceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-instancetype

Return type

Optional[str]

max_price

CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.MaxPrice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-maxprice

Return type

Optional[str]

placement

CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Placement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-placement

Return type

Union[IResolvable, PlacementProperty, None]

priority

CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Priority.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-priority

Return type

Union[int, float, None]

subnet_id

CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.SubnetId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-subnetid

Return type

Optional[str]

weighted_capacity

CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.WeightedCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-weightedcapacity

Return type

Union[int, float, None]

FleetLaunchTemplateSpecificationRequestProperty

class CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty(*, launch_template_id=None, launch_template_name=None, version=None)

Bases: object

Parameters
  • launch_template_id (Optional[str]) – CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.LaunchTemplateId.

  • launch_template_name (Optional[str]) – CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.LaunchTemplateName.

  • version (Optional[str]) – CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Version.

See

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

Attributes

launch_template_id

CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.LaunchTemplateId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplateid

Return type

Optional[str]

launch_template_name

CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.LaunchTemplateName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplatename

Return type

Optional[str]

version

CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Version.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-version

Return type

Optional[str]

OnDemandOptionsRequestProperty

class CfnEC2Fleet.OnDemandOptionsRequestProperty(*, allocation_strategy=None, capacity_reservation_options=None, max_total_price=None, min_target_capacity=None, single_availability_zone=None, single_instance_type=None)

Bases: object

Parameters
  • allocation_strategy (Optional[str]) – CfnEC2Fleet.OnDemandOptionsRequestProperty.AllocationStrategy.

  • capacity_reservation_options (Union[IResolvable, CapacityReservationOptionsRequestProperty, None]) – CfnEC2Fleet.OnDemandOptionsRequestProperty.CapacityReservationOptions.

  • max_total_price (Optional[str]) – CfnEC2Fleet.OnDemandOptionsRequestProperty.MaxTotalPrice.

  • min_target_capacity (Union[int, float, None]) – CfnEC2Fleet.OnDemandOptionsRequestProperty.MinTargetCapacity.

  • single_availability_zone (Union[bool, IResolvable, None]) – CfnEC2Fleet.OnDemandOptionsRequestProperty.SingleAvailabilityZone.

  • single_instance_type (Union[bool, IResolvable, None]) – CfnEC2Fleet.OnDemandOptionsRequestProperty.SingleInstanceType.

See

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

Attributes

allocation_strategy

CfnEC2Fleet.OnDemandOptionsRequestProperty.AllocationStrategy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-allocationstrategy

Return type

Optional[str]

capacity_reservation_options

CfnEC2Fleet.OnDemandOptionsRequestProperty.CapacityReservationOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-capacityreservationoptions

Return type

Union[IResolvable, CapacityReservationOptionsRequestProperty, None]

max_total_price

CfnEC2Fleet.OnDemandOptionsRequestProperty.MaxTotalPrice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-maxtotalprice

Return type

Optional[str]

min_target_capacity

CfnEC2Fleet.OnDemandOptionsRequestProperty.MinTargetCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-mintargetcapacity

Return type

Union[int, float, None]

single_availability_zone

CfnEC2Fleet.OnDemandOptionsRequestProperty.SingleAvailabilityZone.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-singleavailabilityzone

Return type

Union[bool, IResolvable, None]

single_instance_type

CfnEC2Fleet.OnDemandOptionsRequestProperty.SingleInstanceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-singleinstancetype

Return type

Union[bool, IResolvable, None]

PlacementProperty

class CfnEC2Fleet.PlacementProperty(*, affinity=None, availability_zone=None, group_name=None, host_id=None, host_resource_group_arn=None, partition_number=None, spread_domain=None, tenancy=None)

Bases: object

Parameters
  • affinity (Optional[str]) – CfnEC2Fleet.PlacementProperty.Affinity.

  • availability_zone (Optional[str]) – CfnEC2Fleet.PlacementProperty.AvailabilityZone.

  • group_name (Optional[str]) – CfnEC2Fleet.PlacementProperty.GroupName.

  • host_id (Optional[str]) – CfnEC2Fleet.PlacementProperty.HostId.

  • host_resource_group_arn (Optional[str]) – CfnEC2Fleet.PlacementProperty.HostResourceGroupArn.

  • partition_number (Union[int, float, None]) – CfnEC2Fleet.PlacementProperty.PartitionNumber.

  • spread_domain (Optional[str]) – CfnEC2Fleet.PlacementProperty.SpreadDomain.

  • tenancy (Optional[str]) – CfnEC2Fleet.PlacementProperty.Tenancy.

See

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

Attributes

affinity

CfnEC2Fleet.PlacementProperty.Affinity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-affinity

Return type

Optional[str]

availability_zone

CfnEC2Fleet.PlacementProperty.AvailabilityZone.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-availabilityzone

Return type

Optional[str]

group_name

CfnEC2Fleet.PlacementProperty.GroupName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-groupname

Return type

Optional[str]

host_id

CfnEC2Fleet.PlacementProperty.HostId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-hostid

Return type

Optional[str]

host_resource_group_arn

CfnEC2Fleet.PlacementProperty.HostResourceGroupArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-hostresourcegrouparn

Return type

Optional[str]

partition_number

CfnEC2Fleet.PlacementProperty.PartitionNumber.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-partitionnumber

Return type

Union[int, float, None]

spread_domain

CfnEC2Fleet.PlacementProperty.SpreadDomain.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-spreaddomain

Return type

Optional[str]

tenancy

CfnEC2Fleet.PlacementProperty.Tenancy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-placement.html#cfn-ec2-ec2fleet-placement-tenancy

Return type

Optional[str]

SpotOptionsRequestProperty

class CfnEC2Fleet.SpotOptionsRequestProperty(*, allocation_strategy=None, instance_interruption_behavior=None, instance_pools_to_use_count=None, max_total_price=None, min_target_capacity=None, single_availability_zone=None, single_instance_type=None)

Bases: object

Parameters
  • allocation_strategy (Optional[str]) – CfnEC2Fleet.SpotOptionsRequestProperty.AllocationStrategy.

  • instance_interruption_behavior (Optional[str]) – CfnEC2Fleet.SpotOptionsRequestProperty.InstanceInterruptionBehavior.

  • instance_pools_to_use_count (Union[int, float, None]) – CfnEC2Fleet.SpotOptionsRequestProperty.InstancePoolsToUseCount.

  • max_total_price (Optional[str]) – CfnEC2Fleet.SpotOptionsRequestProperty.MaxTotalPrice.

  • min_target_capacity (Union[int, float, None]) – CfnEC2Fleet.SpotOptionsRequestProperty.MinTargetCapacity.

  • single_availability_zone (Union[bool, IResolvable, None]) – CfnEC2Fleet.SpotOptionsRequestProperty.SingleAvailabilityZone.

  • single_instance_type (Union[bool, IResolvable, None]) – CfnEC2Fleet.SpotOptionsRequestProperty.SingleInstanceType.

See

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

Attributes

allocation_strategy

CfnEC2Fleet.SpotOptionsRequestProperty.AllocationStrategy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-allocationstrategy

Return type

Optional[str]

instance_interruption_behavior

CfnEC2Fleet.SpotOptionsRequestProperty.InstanceInterruptionBehavior.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-instanceinterruptionbehavior

Return type

Optional[str]

instance_pools_to_use_count

CfnEC2Fleet.SpotOptionsRequestProperty.InstancePoolsToUseCount.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-instancepoolstousecount

Return type

Union[int, float, None]

max_total_price

CfnEC2Fleet.SpotOptionsRequestProperty.MaxTotalPrice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-maxtotalprice

Return type

Optional[str]

min_target_capacity

CfnEC2Fleet.SpotOptionsRequestProperty.MinTargetCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-mintargetcapacity

Return type

Union[int, float, None]

single_availability_zone

CfnEC2Fleet.SpotOptionsRequestProperty.SingleAvailabilityZone.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-singleavailabilityzone

Return type

Union[bool, IResolvable, None]

single_instance_type

CfnEC2Fleet.SpotOptionsRequestProperty.SingleInstanceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-singleinstancetype

Return type

Union[bool, IResolvable, None]

TagSpecificationProperty

class CfnEC2Fleet.TagSpecificationProperty(*, resource_type=None, tags=None)

Bases: object

Parameters
  • resource_type (Optional[str]) – CfnEC2Fleet.TagSpecificationProperty.ResourceType.

  • tags (Optional[List[CfnTag]]) – CfnEC2Fleet.TagSpecificationProperty.Tags.

See

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

Attributes

resource_type

CfnEC2Fleet.TagSpecificationProperty.ResourceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-tagspecification.html#cfn-ec2-ec2fleet-tagspecification-resourcetype

Return type

Optional[str]

tags

CfnEC2Fleet.TagSpecificationProperty.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-tagspecification.html#cfn-ec2-ec2fleet-tagspecification-tags

Return type

Optional[List[CfnTag]]

TargetCapacitySpecificationRequestProperty

class CfnEC2Fleet.TargetCapacitySpecificationRequestProperty(*, total_target_capacity, default_target_capacity_type=None, on_demand_target_capacity=None, spot_target_capacity=None)

Bases: object

Parameters
  • total_target_capacity (Union[int, float]) – CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.TotalTargetCapacity.

  • default_target_capacity_type (Optional[str]) – CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.DefaultTargetCapacityType.

  • on_demand_target_capacity (Union[int, float, None]) – CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.OnDemandTargetCapacity.

  • spot_target_capacity (Union[int, float, None]) – CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.SpotTargetCapacity.

See

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

Attributes

default_target_capacity_type

CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.DefaultTargetCapacityType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-defaulttargetcapacitytype

Return type

Optional[str]

on_demand_target_capacity

CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.OnDemandTargetCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-ondemandtargetcapacity

Return type

Union[int, float, None]

spot_target_capacity

CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.SpotTargetCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-spottargetcapacity

Return type

Union[int, float, None]

total_target_capacity

CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.TotalTargetCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-totaltargetcapacity

Return type

Union[int, float]