CfnSpotFleet

class aws_cdk.aws_ec2.CfnSpotFleet(scope, id, *, spot_fleet_request_config_data)

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::EC2::SpotFleet.

See

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

CloudformationResource

AWS::EC2::SpotFleet

Create a new AWS::EC2::SpotFleet.

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

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::SpotFleet'
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]

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

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

spot_fleet_request_config_data

AWS::EC2::SpotFleet.SpotFleetRequestConfigData.

See

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

Return type

Union[IResolvable, SpotFleetRequestConfigDataProperty]

stack

The stack in which this element is defined.

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

Return type

Stack

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

BlockDeviceMappingProperty

class CfnSpotFleet.BlockDeviceMappingProperty(*, device_name, ebs=None, no_device=None, virtual_name=None)

Bases: object

Parameters
  • device_name (str) – CfnSpotFleet.BlockDeviceMappingProperty.DeviceName.

  • ebs (Union[IResolvable, EbsBlockDeviceProperty, None]) – CfnSpotFleet.BlockDeviceMappingProperty.Ebs.

  • no_device (Optional[str]) – CfnSpotFleet.BlockDeviceMappingProperty.NoDevice.

  • virtual_name (Optional[str]) – CfnSpotFleet.BlockDeviceMappingProperty.VirtualName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html

Attributes

device_name

CfnSpotFleet.BlockDeviceMappingProperty.DeviceName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-devicename

Return type

str

ebs

CfnSpotFleet.BlockDeviceMappingProperty.Ebs.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-ebs

Return type

Union[IResolvable, EbsBlockDeviceProperty, None]

no_device

CfnSpotFleet.BlockDeviceMappingProperty.NoDevice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-nodevice

Return type

Optional[str]

virtual_name

CfnSpotFleet.BlockDeviceMappingProperty.VirtualName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-virtualname

Return type

Optional[str]

ClassicLoadBalancerProperty

class CfnSpotFleet.ClassicLoadBalancerProperty(*, name)

Bases: object

Parameters

name (str) – CfnSpotFleet.ClassicLoadBalancerProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancer.html

Attributes

name

CfnSpotFleet.ClassicLoadBalancerProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancer.html#cfn-ec2-spotfleet-classicloadbalancer-name

Return type

str

ClassicLoadBalancersConfigProperty

class CfnSpotFleet.ClassicLoadBalancersConfigProperty(*, classic_load_balancers)

Bases: object

Parameters

classic_load_balancers (Union[IResolvable, List[Union[IResolvable, ClassicLoadBalancerProperty]]]) – CfnSpotFleet.ClassicLoadBalancersConfigProperty.ClassicLoadBalancers.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancersconfig.html

Attributes

classic_load_balancers

CfnSpotFleet.ClassicLoadBalancersConfigProperty.ClassicLoadBalancers.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancersconfig.html#cfn-ec2-spotfleet-classicloadbalancersconfig-classicloadbalancers

Return type

Union[IResolvable, List[Union[IResolvable, ClassicLoadBalancerProperty]]]

EbsBlockDeviceProperty

class CfnSpotFleet.EbsBlockDeviceProperty(*, delete_on_termination=None, encrypted=None, iops=None, snapshot_id=None, volume_size=None, volume_type=None)

Bases: object

Parameters
  • delete_on_termination (Union[bool, IResolvable, None]) – CfnSpotFleet.EbsBlockDeviceProperty.DeleteOnTermination.

  • encrypted (Union[bool, IResolvable, None]) – CfnSpotFleet.EbsBlockDeviceProperty.Encrypted.

  • iops (Union[int, float, None]) – CfnSpotFleet.EbsBlockDeviceProperty.Iops.

  • snapshot_id (Optional[str]) – CfnSpotFleet.EbsBlockDeviceProperty.SnapshotId.

  • volume_size (Union[int, float, None]) – CfnSpotFleet.EbsBlockDeviceProperty.VolumeSize.

  • volume_type (Optional[str]) – CfnSpotFleet.EbsBlockDeviceProperty.VolumeType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html

Attributes

delete_on_termination

CfnSpotFleet.EbsBlockDeviceProperty.DeleteOnTermination.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-deleteontermination

Return type

Union[bool, IResolvable, None]

encrypted

CfnSpotFleet.EbsBlockDeviceProperty.Encrypted.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-encrypted

Return type

Union[bool, IResolvable, None]

iops

CfnSpotFleet.EbsBlockDeviceProperty.Iops.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-iops

Return type

Union[int, float, None]

snapshot_id

CfnSpotFleet.EbsBlockDeviceProperty.SnapshotId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-snapshotid

Return type

Optional[str]

volume_size

CfnSpotFleet.EbsBlockDeviceProperty.VolumeSize.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-volumesize

Return type

Union[int, float, None]

volume_type

CfnSpotFleet.EbsBlockDeviceProperty.VolumeType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-volumetype

Return type

Optional[str]

FleetLaunchTemplateSpecificationProperty

class CfnSpotFleet.FleetLaunchTemplateSpecificationProperty(*, version, launch_template_id=None, launch_template_name=None)

Bases: object

Parameters
  • version (str) – CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Version.

  • launch_template_id (Optional[str]) – CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.LaunchTemplateId.

  • launch_template_name (Optional[str]) – CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.LaunchTemplateName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html

Attributes

launch_template_id

CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.LaunchTemplateId.

See

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

Return type

Optional[str]

launch_template_name

CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.LaunchTemplateName.

See

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

Return type

Optional[str]

version

CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Version.

See

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

Return type

str

GroupIdentifierProperty

class CfnSpotFleet.GroupIdentifierProperty(*, group_id)

Bases: object

Parameters

group_id (str) – CfnSpotFleet.GroupIdentifierProperty.GroupId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html

Attributes

group_id

CfnSpotFleet.GroupIdentifierProperty.GroupId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html#cfn-ec2-spotfleet-groupidentifier-groupid

Return type

str

IamInstanceProfileSpecificationProperty

class CfnSpotFleet.IamInstanceProfileSpecificationProperty(*, arn=None)

Bases: object

Parameters

arn (Optional[str]) – CfnSpotFleet.IamInstanceProfileSpecificationProperty.Arn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html

Attributes

arn

CfnSpotFleet.IamInstanceProfileSpecificationProperty.Arn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html#cfn-ec2-spotfleet-iaminstanceprofilespecification-arn

Return type

Optional[str]

InstanceIpv6AddressProperty

class CfnSpotFleet.InstanceIpv6AddressProperty(*, ipv6_address)

Bases: object

Parameters

ipv6_address (str) – CfnSpotFleet.InstanceIpv6AddressProperty.Ipv6Address.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instanceipv6address.html

Attributes

ipv6_address

CfnSpotFleet.InstanceIpv6AddressProperty.Ipv6Address.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instanceipv6address.html#cfn-ec2-spotfleet-instanceipv6address-ipv6address

Return type

str

InstanceNetworkInterfaceSpecificationProperty

class CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty(*, associate_public_ip_address=None, delete_on_termination=None, description=None, device_index=None, groups=None, ipv6_address_count=None, ipv6_addresses=None, network_interface_id=None, private_ip_addresses=None, secondary_private_ip_address_count=None, subnet_id=None)

Bases: object

Parameters
  • associate_public_ip_address (Union[bool, IResolvable, None]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.AssociatePublicIpAddress.

  • delete_on_termination (Union[bool, IResolvable, None]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.DeleteOnTermination.

  • description (Optional[str]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Description.

  • device_index (Union[int, float, None]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.DeviceIndex.

  • groups (Optional[List[str]]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Groups.

  • ipv6_address_count (Union[int, float, None]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Ipv6AddressCount.

  • ipv6_addresses (Union[IResolvable, List[Union[IResolvable, InstanceIpv6AddressProperty]], None]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Ipv6Addresses.

  • network_interface_id (Optional[str]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.NetworkInterfaceId.

  • private_ip_addresses (Union[IResolvable, List[Union[IResolvable, PrivateIpAddressSpecificationProperty]], None]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.PrivateIpAddresses.

  • secondary_private_ip_address_count (Union[int, float, None]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.SecondaryPrivateIpAddressCount.

  • subnet_id (Optional[str]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.SubnetId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html

Attributes

associate_public_ip_address

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.AssociatePublicIpAddress.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-associatepublicipaddress

Return type

Union[bool, IResolvable, None]

delete_on_termination

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.DeleteOnTermination.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-deleteontermination

Return type

Union[bool, IResolvable, None]

description

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Description.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-description

Return type

Optional[str]

device_index

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.DeviceIndex.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-deviceindex

Return type

Union[int, float, None]

groups

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Groups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-groups

Return type

Optional[List[str]]

ipv6_address_count

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Ipv6AddressCount.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-ipv6addresscount

Return type

Union[int, float, None]

ipv6_addresses

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Ipv6Addresses.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-ipv6addresses

Return type

Union[IResolvable, List[Union[IResolvable, InstanceIpv6AddressProperty]], None]

network_interface_id

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.NetworkInterfaceId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-networkinterfaceid

Return type

Optional[str]

private_ip_addresses

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.PrivateIpAddresses.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-privateipaddresses

Return type

Union[IResolvable, List[Union[IResolvable, PrivateIpAddressSpecificationProperty]], None]

secondary_private_ip_address_count

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.SecondaryPrivateIpAddressCount.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-secondaryprivateipaddresscount

Return type

Union[int, float, None]

subnet_id

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.SubnetId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-subnetid

Return type

Optional[str]

LaunchTemplateConfigProperty

class CfnSpotFleet.LaunchTemplateConfigProperty(*, launch_template_specification=None, overrides=None)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html

Attributes

launch_template_specification

CfnSpotFleet.LaunchTemplateConfigProperty.LaunchTemplateSpecification.

See

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

Return type

Union[IResolvable, FleetLaunchTemplateSpecificationProperty, None]

overrides

CfnSpotFleet.LaunchTemplateConfigProperty.Overrides.

See

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

Return type

Union[IResolvable, List[Union[IResolvable, LaunchTemplateOverridesProperty]], None]

LaunchTemplateOverridesProperty

class CfnSpotFleet.LaunchTemplateOverridesProperty(*, availability_zone=None, instance_type=None, spot_price=None, subnet_id=None, weighted_capacity=None)

Bases: object

Parameters
  • availability_zone (Optional[str]) – CfnSpotFleet.LaunchTemplateOverridesProperty.AvailabilityZone.

  • instance_type (Optional[str]) – CfnSpotFleet.LaunchTemplateOverridesProperty.InstanceType.

  • spot_price (Optional[str]) – CfnSpotFleet.LaunchTemplateOverridesProperty.SpotPrice.

  • subnet_id (Optional[str]) – CfnSpotFleet.LaunchTemplateOverridesProperty.SubnetId.

  • weighted_capacity (Union[int, float, None]) – CfnSpotFleet.LaunchTemplateOverridesProperty.WeightedCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html

Attributes

availability_zone

CfnSpotFleet.LaunchTemplateOverridesProperty.AvailabilityZone.

See

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

Return type

Optional[str]

instance_type

CfnSpotFleet.LaunchTemplateOverridesProperty.InstanceType.

See

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

Return type

Optional[str]

spot_price

CfnSpotFleet.LaunchTemplateOverridesProperty.SpotPrice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-spotprice

Return type

Optional[str]

subnet_id

CfnSpotFleet.LaunchTemplateOverridesProperty.SubnetId.

See

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

Return type

Optional[str]

weighted_capacity

CfnSpotFleet.LaunchTemplateOverridesProperty.WeightedCapacity.

See

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

Return type

Union[int, float, None]

LoadBalancersConfigProperty

class CfnSpotFleet.LoadBalancersConfigProperty(*, classic_load_balancers_config=None, target_groups_config=None)

Bases: object

Parameters
See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html

Attributes

classic_load_balancers_config

CfnSpotFleet.LoadBalancersConfigProperty.ClassicLoadBalancersConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html#cfn-ec2-spotfleet-loadbalancersconfig-classicloadbalancersconfig

Return type

Union[IResolvable, ClassicLoadBalancersConfigProperty, None]

target_groups_config

CfnSpotFleet.LoadBalancersConfigProperty.TargetGroupsConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html#cfn-ec2-spotfleet-loadbalancersconfig-targetgroupsconfig

Return type

Union[IResolvable, TargetGroupsConfigProperty, None]

PrivateIpAddressSpecificationProperty

class CfnSpotFleet.PrivateIpAddressSpecificationProperty(*, private_ip_address, primary=None)

Bases: object

Parameters
  • private_ip_address (str) – CfnSpotFleet.PrivateIpAddressSpecificationProperty.PrivateIpAddress.

  • primary (Union[bool, IResolvable, None]) – CfnSpotFleet.PrivateIpAddressSpecificationProperty.Primary.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html

Attributes

primary

CfnSpotFleet.PrivateIpAddressSpecificationProperty.Primary.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html#cfn-ec2-spotfleet-privateipaddressspecification-primary

Return type

Union[bool, IResolvable, None]

private_ip_address

CfnSpotFleet.PrivateIpAddressSpecificationProperty.PrivateIpAddress.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html#cfn-ec2-spotfleet-privateipaddressspecification-privateipaddress

Return type

str

SpotFleetLaunchSpecificationProperty

class CfnSpotFleet.SpotFleetLaunchSpecificationProperty(*, image_id, instance_type, block_device_mappings=None, ebs_optimized=None, iam_instance_profile=None, kernel_id=None, key_name=None, monitoring=None, network_interfaces=None, placement=None, ramdisk_id=None, security_groups=None, spot_price=None, subnet_id=None, tag_specifications=None, user_data=None, weighted_capacity=None)

Bases: object

Parameters
  • image_id (str) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.ImageId.

  • instance_type (str) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.InstanceType.

  • block_device_mappings (Union[IResolvable, List[Union[IResolvable, BlockDeviceMappingProperty]], None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.BlockDeviceMappings.

  • ebs_optimized (Union[bool, IResolvable, None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.EbsOptimized.

  • iam_instance_profile (Union[IResolvable, IamInstanceProfileSpecificationProperty, None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.IamInstanceProfile.

  • kernel_id (Optional[str]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.KernelId.

  • key_name (Optional[str]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.KeyName.

  • monitoring (Union[IResolvable, SpotFleetMonitoringProperty, None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Monitoring.

  • network_interfaces (Union[IResolvable, List[Union[IResolvable, InstanceNetworkInterfaceSpecificationProperty]], None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.NetworkInterfaces.

  • placement (Union[IResolvable, SpotPlacementProperty, None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Placement.

  • ramdisk_id (Optional[str]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.RamdiskId.

  • security_groups (Union[IResolvable, List[Union[IResolvable, GroupIdentifierProperty]], None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.SecurityGroups.

  • spot_price (Optional[str]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.SpotPrice.

  • subnet_id (Optional[str]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.SubnetId.

  • tag_specifications (Union[IResolvable, List[Union[IResolvable, SpotFleetTagSpecificationProperty]], None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.TagSpecifications.

  • user_data (Optional[str]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.UserData.

  • weighted_capacity (Union[int, float, None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.WeightedCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html

Attributes

block_device_mappings

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.BlockDeviceMappings.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-blockdevicemappings

Return type

Union[IResolvable, List[Union[IResolvable, BlockDeviceMappingProperty]], None]

ebs_optimized

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.EbsOptimized.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-ebsoptimized

Return type

Union[bool, IResolvable, None]

iam_instance_profile

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.IamInstanceProfile.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-iaminstanceprofile

Return type

Union[IResolvable, IamInstanceProfileSpecificationProperty, None]

image_id

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.ImageId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-imageid

Return type

str

instance_type

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.InstanceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-instancetype

Return type

str

kernel_id

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.KernelId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-kernelid

Return type

Optional[str]

key_name

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.KeyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-keyname

Return type

Optional[str]

monitoring

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Monitoring.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-monitoring

Return type

Union[IResolvable, SpotFleetMonitoringProperty, None]

network_interfaces

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.NetworkInterfaces.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-networkinterfaces

Return type

Union[IResolvable, List[Union[IResolvable, InstanceNetworkInterfaceSpecificationProperty]], None]

placement

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.Placement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-placement

Return type

Union[IResolvable, SpotPlacementProperty, None]

ramdisk_id

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.RamdiskId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-ramdiskid

Return type

Optional[str]

security_groups

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.SecurityGroups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-securitygroups

Return type

Union[IResolvable, List[Union[IResolvable, GroupIdentifierProperty]], None]

spot_price

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.SpotPrice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-spotprice

Return type

Optional[str]

subnet_id

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.SubnetId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-subnetid

Return type

Optional[str]

tag_specifications

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.TagSpecifications.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-tagspecifications

Return type

Union[IResolvable, List[Union[IResolvable, SpotFleetTagSpecificationProperty]], None]

user_data

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.UserData.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-userdata

Return type

Optional[str]

weighted_capacity

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.WeightedCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-weightedcapacity

Return type

Union[int, float, None]

SpotFleetMonitoringProperty

class CfnSpotFleet.SpotFleetMonitoringProperty(*, enabled=None)

Bases: object

Parameters

enabled (Union[bool, IResolvable, None]) – CfnSpotFleet.SpotFleetMonitoringProperty.Enabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html

Attributes

enabled

CfnSpotFleet.SpotFleetMonitoringProperty.Enabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html#cfn-ec2-spotfleet-spotfleetmonitoring-enabled

Return type

Union[bool, IResolvable, None]

SpotFleetRequestConfigDataProperty

class CfnSpotFleet.SpotFleetRequestConfigDataProperty(*, iam_fleet_role, target_capacity, allocation_strategy=None, excess_capacity_termination_policy=None, instance_interruption_behavior=None, launch_specifications=None, launch_template_configs=None, load_balancers_config=None, replace_unhealthy_instances=None, spot_price=None, terminate_instances_with_expiration=None, type=None, valid_from=None, valid_until=None)

Bases: object

Parameters
  • iam_fleet_role (str) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.IamFleetRole.

  • target_capacity (Union[int, float]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.TargetCapacity.

  • allocation_strategy (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.AllocationStrategy.

  • excess_capacity_termination_policy (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.ExcessCapacityTerminationPolicy.

  • instance_interruption_behavior (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.InstanceInterruptionBehavior.

  • launch_specifications (Union[IResolvable, List[Union[IResolvable, SpotFleetLaunchSpecificationProperty]], None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.LaunchSpecifications.

  • launch_template_configs (Union[IResolvable, List[Union[IResolvable, LaunchTemplateConfigProperty]], None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.LaunchTemplateConfigs.

  • load_balancers_config (Union[IResolvable, LoadBalancersConfigProperty, None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.LoadBalancersConfig.

  • replace_unhealthy_instances (Union[bool, IResolvable, None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.ReplaceUnhealthyInstances.

  • spot_price (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.SpotPrice.

  • terminate_instances_with_expiration (Union[bool, IResolvable, None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.TerminateInstancesWithExpiration.

  • type (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.Type.

  • valid_from (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.ValidFrom.

  • valid_until (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.ValidUntil.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html

Attributes

allocation_strategy

CfnSpotFleet.SpotFleetRequestConfigDataProperty.AllocationStrategy.

See

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

Return type

Optional[str]

excess_capacity_termination_policy

CfnSpotFleet.SpotFleetRequestConfigDataProperty.ExcessCapacityTerminationPolicy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-excesscapacityterminationpolicy

Return type

Optional[str]

iam_fleet_role

CfnSpotFleet.SpotFleetRequestConfigDataProperty.IamFleetRole.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-iamfleetrole

Return type

str

instance_interruption_behavior

CfnSpotFleet.SpotFleetRequestConfigDataProperty.InstanceInterruptionBehavior.

See

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

Return type

Optional[str]

launch_specifications

CfnSpotFleet.SpotFleetRequestConfigDataProperty.LaunchSpecifications.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications

Return type

Union[IResolvable, List[Union[IResolvable, SpotFleetLaunchSpecificationProperty]], None]

launch_template_configs

CfnSpotFleet.SpotFleetRequestConfigDataProperty.LaunchTemplateConfigs.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-launchtemplateconfigs

Return type

Union[IResolvable, List[Union[IResolvable, LaunchTemplateConfigProperty]], None]

load_balancers_config

CfnSpotFleet.SpotFleetRequestConfigDataProperty.LoadBalancersConfig.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-loadbalancersconfig

Return type

Union[IResolvable, LoadBalancersConfigProperty, None]

replace_unhealthy_instances

CfnSpotFleet.SpotFleetRequestConfigDataProperty.ReplaceUnhealthyInstances.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-replaceunhealthyinstances

Return type

Union[bool, IResolvable, None]

spot_price

CfnSpotFleet.SpotFleetRequestConfigDataProperty.SpotPrice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-spotprice

Return type

Optional[str]

target_capacity

CfnSpotFleet.SpotFleetRequestConfigDataProperty.TargetCapacity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-targetcapacity

Return type

Union[int, float]

terminate_instances_with_expiration

CfnSpotFleet.SpotFleetRequestConfigDataProperty.TerminateInstancesWithExpiration.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-terminateinstanceswithexpiration

Return type

Union[bool, IResolvable, None]

type

CfnSpotFleet.SpotFleetRequestConfigDataProperty.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-type

Return type

Optional[str]

valid_from

CfnSpotFleet.SpotFleetRequestConfigDataProperty.ValidFrom.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-validfrom

Return type

Optional[str]

valid_until

CfnSpotFleet.SpotFleetRequestConfigDataProperty.ValidUntil.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-validuntil

Return type

Optional[str]

SpotFleetTagSpecificationProperty

class CfnSpotFleet.SpotFleetTagSpecificationProperty(*, resource_type=None, tags=None)

Bases: object

Parameters
  • resource_type (Optional[str]) – CfnSpotFleet.SpotFleetTagSpecificationProperty.ResourceType.

  • tags (Optional[List[CfnTag]]) – CfnSpotFleet.SpotFleetTagSpecificationProperty.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html

Attributes

resource_type

CfnSpotFleet.SpotFleetTagSpecificationProperty.ResourceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html#cfn-ec2-spotfleet-spotfleettagspecification-resourcetype

Return type

Optional[str]

tags

CfnSpotFleet.SpotFleetTagSpecificationProperty.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html#cfn-ec2-spotfleet-tags

Return type

Optional[List[CfnTag]]

SpotPlacementProperty

class CfnSpotFleet.SpotPlacementProperty(*, availability_zone=None, group_name=None, tenancy=None)

Bases: object

Parameters
  • availability_zone (Optional[str]) – CfnSpotFleet.SpotPlacementProperty.AvailabilityZone.

  • group_name (Optional[str]) – CfnSpotFleet.SpotPlacementProperty.GroupName.

  • tenancy (Optional[str]) – CfnSpotFleet.SpotPlacementProperty.Tenancy.

See

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

Attributes

availability_zone

CfnSpotFleet.SpotPlacementProperty.AvailabilityZone.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-availabilityzone

Return type

Optional[str]

group_name

CfnSpotFleet.SpotPlacementProperty.GroupName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-groupname

Return type

Optional[str]

tenancy

CfnSpotFleet.SpotPlacementProperty.Tenancy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-tenancy

Return type

Optional[str]

TargetGroupProperty

class CfnSpotFleet.TargetGroupProperty(*, arn)

Bases: object

Parameters

arn (str) – CfnSpotFleet.TargetGroupProperty.Arn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroup.html

Attributes

arn

CfnSpotFleet.TargetGroupProperty.Arn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroup.html#cfn-ec2-spotfleet-targetgroup-arn

Return type

str

TargetGroupsConfigProperty

class CfnSpotFleet.TargetGroupsConfigProperty(*, target_groups)

Bases: object

Parameters

target_groups (Union[IResolvable, List[Union[IResolvable, TargetGroupProperty]]]) – CfnSpotFleet.TargetGroupsConfigProperty.TargetGroups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroupsconfig.html

Attributes

target_groups

CfnSpotFleet.TargetGroupsConfigProperty.TargetGroups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroupsconfig.html#cfn-ec2-spotfleet-targetgroupsconfig-targetgroups

Return type

Union[IResolvable, List[Union[IResolvable, TargetGroupProperty]]]