CfnSpotFleet

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

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::EC2::SpotFleet.

CloudformationResource

AWS::EC2::SpotFleet

Link

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

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. See https://github.com/aws/jsii/issues/826
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
cfn_resource.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::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.

Link

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.

Link

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

Attributes

device_name

CfnSpotFleet.BlockDeviceMappingProperty.DeviceName.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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

Attributes

name

CfnSpotFleet.ClassicLoadBalancerProperty.Name.

Link

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, Sequence[Union[IResolvable, ClassicLoadBalancerProperty]]]) – CfnSpotFleet.ClassicLoadBalancersConfigProperty.ClassicLoadBalancers.

Link

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

Attributes

classic_load_balancers

CfnSpotFleet.ClassicLoadBalancersConfigProperty.ClassicLoadBalancers.

Link

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.

Link

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

Attributes

delete_on_termination

CfnSpotFleet.EbsBlockDeviceProperty.DeleteOnTermination.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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

Attributes

launch_template_id

CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.LaunchTemplateId.

Link

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.

Link

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.

Link

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.

Link

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

Attributes

group_id

CfnSpotFleet.GroupIdentifierProperty.GroupId.

Link

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.

Link

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

Attributes

arn

CfnSpotFleet.IamInstanceProfileSpecificationProperty.Arn.

Link

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.

Link

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

Attributes

ipv6_address

CfnSpotFleet.InstanceIpv6AddressProperty.Ipv6Address.

Link

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[Sequence[str]]) – CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Groups.

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

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

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

  • private_ip_addresses (Union[IResolvable, Sequence[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.

Link

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

Attributes

associate_public_ip_address

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.AssociatePublicIpAddress.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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
Link

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

Attributes

launch_template_specification

CfnSpotFleet.LaunchTemplateConfigProperty.LaunchTemplateSpecification.

Link

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.

Link

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, priority=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.

  • priority (Union[int, float, None]) – CfnSpotFleet.LaunchTemplateOverridesProperty.Priority.

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

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

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

Link

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

Attributes

availability_zone

CfnSpotFleet.LaunchTemplateOverridesProperty.AvailabilityZone.

Link

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.

Link

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

Return type

Optional[str]

priority

CfnSpotFleet.LaunchTemplateOverridesProperty.Priority.

Link

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

Return type

Union[int, float, None]

spot_price

CfnSpotFleet.LaunchTemplateOverridesProperty.SpotPrice.

Link

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.

Link

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.

Link

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
Link

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

Attributes

classic_load_balancers_config

CfnSpotFleet.LoadBalancersConfigProperty.ClassicLoadBalancersConfig.

Link

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.

Link

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.

Link

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

Attributes

primary

CfnSpotFleet.PrivateIpAddressSpecificationProperty.Primary.

Link

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.

Link

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

SpotCapacityRebalanceProperty

class CfnSpotFleet.SpotCapacityRebalanceProperty(*, replacement_strategy=None)

Bases: object

Parameters

replacement_strategy (Optional[str]) – CfnSpotFleet.SpotCapacityRebalanceProperty.ReplacementStrategy.

Link

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

Attributes

replacement_strategy

CfnSpotFleet.SpotCapacityRebalanceProperty.ReplacementStrategy.

Link

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

Return type

Optional[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, Sequence[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, Sequence[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, Sequence[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, Sequence[Union[IResolvable, SpotFleetTagSpecificationProperty]], None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.TagSpecifications.

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

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

Link

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

Attributes

block_device_mappings

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.BlockDeviceMappings.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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

Attributes

enabled

CfnSpotFleet.SpotFleetMonitoringProperty.Enabled.

Link

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, instance_pools_to_use_count=None, launch_specifications=None, launch_template_configs=None, load_balancers_config=None, on_demand_allocation_strategy=None, on_demand_max_total_price=None, on_demand_target_capacity=None, replace_unhealthy_instances=None, spot_maintenance_strategies=None, spot_max_total_price=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.

  • instance_pools_to_use_count (Union[int, float, None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.InstancePoolsToUseCount.

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

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

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

  • on_demand_allocation_strategy (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.OnDemandAllocationStrategy.

  • on_demand_max_total_price (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.OnDemandMaxTotalPrice.

  • on_demand_target_capacity (Union[int, float, None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.OnDemandTargetCapacity.

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

  • spot_maintenance_strategies (Union[IResolvable, SpotMaintenanceStrategiesProperty, None]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.SpotMaintenanceStrategies.

  • spot_max_total_price (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.SpotMaxTotalPrice.

  • 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.

Link

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

Attributes

allocation_strategy

CfnSpotFleet.SpotFleetRequestConfigDataProperty.AllocationStrategy.

Link

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.

Link

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.

Link

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.

Link

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

Return type

Optional[str]

instance_pools_to_use_count

CfnSpotFleet.SpotFleetRequestConfigDataProperty.InstancePoolsToUseCount.

Link

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

Return type

Union[int, float, None]

launch_specifications

CfnSpotFleet.SpotFleetRequestConfigDataProperty.LaunchSpecifications.

Link

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.

Link

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.

Link

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]

on_demand_allocation_strategy

CfnSpotFleet.SpotFleetRequestConfigDataProperty.OnDemandAllocationStrategy.

Link

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

Return type

Optional[str]

on_demand_max_total_price

CfnSpotFleet.SpotFleetRequestConfigDataProperty.OnDemandMaxTotalPrice.

Link

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

Return type

Optional[str]

on_demand_target_capacity

CfnSpotFleet.SpotFleetRequestConfigDataProperty.OnDemandTargetCapacity.

Link

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

Return type

Union[int, float, None]

replace_unhealthy_instances

CfnSpotFleet.SpotFleetRequestConfigDataProperty.ReplaceUnhealthyInstances.

Link

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_maintenance_strategies

CfnSpotFleet.SpotFleetRequestConfigDataProperty.SpotMaintenanceStrategies.

Link

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

Return type

Union[IResolvable, SpotMaintenanceStrategiesProperty, None]

spot_max_total_price

CfnSpotFleet.SpotFleetRequestConfigDataProperty.SpotMaxTotalPrice.

Link

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

Return type

Optional[str]

spot_price

CfnSpotFleet.SpotFleetRequestConfigDataProperty.SpotPrice.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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[Sequence[CfnTag]]) – CfnSpotFleet.SpotFleetTagSpecificationProperty.Tags.

Link

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

Attributes

resource_type

CfnSpotFleet.SpotFleetTagSpecificationProperty.ResourceType.

Link

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.

Link

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

SpotMaintenanceStrategiesProperty

class CfnSpotFleet.SpotMaintenanceStrategiesProperty(*, capacity_rebalance=None)

Bases: object

Parameters

capacity_rebalance (Union[IResolvable, SpotCapacityRebalanceProperty, None]) – CfnSpotFleet.SpotMaintenanceStrategiesProperty.CapacityRebalance.

Link

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

Attributes

capacity_rebalance

CfnSpotFleet.SpotMaintenanceStrategiesProperty.CapacityRebalance.

Link

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

Return type

Union[IResolvable, SpotCapacityRebalanceProperty, None]

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.

Link

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

Attributes

availability_zone

CfnSpotFleet.SpotPlacementProperty.AvailabilityZone.

Link

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.

Link

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.

Link

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.

Link

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

Attributes

arn

CfnSpotFleet.TargetGroupProperty.Arn.

Link

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, Sequence[Union[IResolvable, TargetGroupProperty]]]) – CfnSpotFleet.TargetGroupsConfigProperty.TargetGroups.

Link

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

Attributes

target_groups

CfnSpotFleet.TargetGroupsConfigProperty.TargetGroups.

Link

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