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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_spot_fleet = ec2.CfnSpotFleet(self, "MyCfnSpotFleet",
    spot_fleet_request_config_data=ec2.CfnSpotFleet.SpotFleetRequestConfigDataProperty(
        iam_fleet_role="iamFleetRole",
        target_capacity=123,

        # the properties below are optional
        allocation_strategy="allocationStrategy",
        context="context",
        excess_capacity_termination_policy="excessCapacityTerminationPolicy",
        instance_interruption_behavior="instanceInterruptionBehavior",
        instance_pools_to_use_count=123,
        launch_specifications=[ec2.CfnSpotFleet.SpotFleetLaunchSpecificationProperty(
            image_id="imageId",

            # the properties below are optional
            block_device_mappings=[ec2.CfnSpotFleet.BlockDeviceMappingProperty(
                device_name="deviceName",

                # the properties below are optional
                ebs=ec2.CfnSpotFleet.EbsBlockDeviceProperty(
                    delete_on_termination=False,
                    encrypted=False,
                    iops=123,
                    snapshot_id="snapshotId",
                    volume_size=123,
                    volume_type="volumeType"
                ),
                no_device="noDevice",
                virtual_name="virtualName"
            )],
            ebs_optimized=False,
            iam_instance_profile=ec2.CfnSpotFleet.IamInstanceProfileSpecificationProperty(
                arn="arn"
            ),
            instance_requirements=ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
                accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
                    max=123,
                    min=123
                ),
                accelerator_manufacturers=["acceleratorManufacturers"],
                accelerator_names=["acceleratorNames"],
                accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
                    max=123,
                    min=123
                ),
                accelerator_types=["acceleratorTypes"],
                bare_metal="bareMetal",
                baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
                    max=123,
                    min=123
                ),
                burstable_performance="burstablePerformance",
                cpu_manufacturers=["cpuManufacturers"],
                excluded_instance_types=["excludedInstanceTypes"],
                instance_generations=["instanceGenerations"],
                local_storage="localStorage",
                local_storage_types=["localStorageTypes"],
                memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
                    max=123,
                    min=123
                ),
                memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
                    max=123,
                    min=123
                ),
                network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
                    max=123,
                    min=123
                ),
                on_demand_max_price_percentage_over_lowest_price=123,
                require_hibernate_support=False,
                spot_max_price_percentage_over_lowest_price=123,
                total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
                    max=123,
                    min=123
                ),
                v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
                    max=123,
                    min=123
                )
            ),
            instance_type="instanceType",
            kernel_id="kernelId",
            key_name="keyName",
            monitoring=ec2.CfnSpotFleet.SpotFleetMonitoringProperty(
                enabled=False
            ),
            network_interfaces=[ec2.CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty(
                associate_public_ip_address=False,
                delete_on_termination=False,
                description="description",
                device_index=123,
                groups=["groups"],
                ipv6_address_count=123,
                ipv6_addresses=[ec2.CfnSpotFleet.InstanceIpv6AddressProperty(
                    ipv6_address="ipv6Address"
                )],
                network_interface_id="networkInterfaceId",
                private_ip_addresses=[ec2.CfnSpotFleet.PrivateIpAddressSpecificationProperty(
                    private_ip_address="privateIpAddress",

                    # the properties below are optional
                    primary=False
                )],
                secondary_private_ip_address_count=123,
                subnet_id="subnetId"
            )],
            placement=ec2.CfnSpotFleet.SpotPlacementProperty(
                availability_zone="availabilityZone",
                group_name="groupName",
                tenancy="tenancy"
            ),
            ramdisk_id="ramdiskId",
            security_groups=[ec2.CfnSpotFleet.GroupIdentifierProperty(
                group_id="groupId"
            )],
            spot_price="spotPrice",
            subnet_id="subnetId",
            tag_specifications=[ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty(
                resource_type="resourceType",
                tags=[CfnTag(
                    key="key",
                    value="value"
                )]
            )],
            user_data="userData",
            weighted_capacity=123
        )],
        launch_template_configs=[ec2.CfnSpotFleet.LaunchTemplateConfigProperty(
            launch_template_specification=ec2.CfnSpotFleet.FleetLaunchTemplateSpecificationProperty(
                version="version",

                # the properties below are optional
                launch_template_id="launchTemplateId",
                launch_template_name="launchTemplateName"
            ),
            overrides=[ec2.CfnSpotFleet.LaunchTemplateOverridesProperty(
                availability_zone="availabilityZone",
                instance_requirements=ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
                    accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
                        max=123,
                        min=123
                    ),
                    accelerator_manufacturers=["acceleratorManufacturers"],
                    accelerator_names=["acceleratorNames"],
                    accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
                        max=123,
                        min=123
                    ),
                    accelerator_types=["acceleratorTypes"],
                    bare_metal="bareMetal",
                    baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
                        max=123,
                        min=123
                    ),
                    burstable_performance="burstablePerformance",
                    cpu_manufacturers=["cpuManufacturers"],
                    excluded_instance_types=["excludedInstanceTypes"],
                    instance_generations=["instanceGenerations"],
                    local_storage="localStorage",
                    local_storage_types=["localStorageTypes"],
                    memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
                        max=123,
                        min=123
                    ),
                    memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
                        max=123,
                        min=123
                    ),
                    network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
                        max=123,
                        min=123
                    ),
                    on_demand_max_price_percentage_over_lowest_price=123,
                    require_hibernate_support=False,
                    spot_max_price_percentage_over_lowest_price=123,
                    total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
                        max=123,
                        min=123
                    ),
                    v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
                        max=123,
                        min=123
                    )
                ),
                instance_type="instanceType",
                spot_price="spotPrice",
                subnet_id="subnetId",
                weighted_capacity=123
            )]
        )],
        load_balancers_config=ec2.CfnSpotFleet.LoadBalancersConfigProperty(
            classic_load_balancers_config=ec2.CfnSpotFleet.ClassicLoadBalancersConfigProperty(
                classic_load_balancers=[ec2.CfnSpotFleet.ClassicLoadBalancerProperty(
                    name="name"
                )]
            ),
            target_groups_config=ec2.CfnSpotFleet.TargetGroupsConfigProperty(
                target_groups=[ec2.CfnSpotFleet.TargetGroupProperty(
                    arn="arn"
                )]
            )
        ),
        on_demand_allocation_strategy="onDemandAllocationStrategy",
        on_demand_max_total_price="onDemandMaxTotalPrice",
        on_demand_target_capacity=123,
        replace_unhealthy_instances=False,
        spot_maintenance_strategies=ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty(
            capacity_rebalance=ec2.CfnSpotFleet.SpotCapacityRebalanceProperty(
                replacement_strategy="replacementStrategy",
                termination_delay=123
            )
        ),
        spot_max_total_price="spotMaxTotalPrice",
        spot_price="spotPrice",
        target_capacity_unit_type="targetCapacityUnitType",
        terminate_instances_with_expiration=False,
        type="type",
        valid_from="validFrom",
        valid_until="validUntil"
    )
)

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:

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.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

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)

Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

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'
attr_id

Id

Type

cloudformationAttribute

Return type

str

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

AcceleratorCountRequestProperty

class CfnSpotFleet.AcceleratorCountRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.AcceleratorCountRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.AcceleratorCountRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

accelerator_count_request_property = ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.AcceleratorCountRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.AcceleratorCountRequestProperty.Min.

Link

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

Return type

Union[int, float, None]

AcceleratorTotalMemoryMiBRequestProperty

class CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

accelerator_total_memory_mi_bRequest_property = ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty.Min.

Link

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

Return type

Union[int, float, None]

BaselineEbsBandwidthMbpsRequestProperty

class CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

baseline_ebs_bandwidth_mbps_request_property = ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty.Min.

Link

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

Return type

Union[int, float, None]

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-blockdevicemapping.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

block_device_mapping_property = ec2.CfnSpotFleet.BlockDeviceMappingProperty(
    device_name="deviceName",

    # the properties below are optional
    ebs=ec2.CfnSpotFleet.EbsBlockDeviceProperty(
        delete_on_termination=False,
        encrypted=False,
        iops=123,
        snapshot_id="snapshotId",
        volume_size=123,
        volume_type="volumeType"
    ),
    no_device="noDevice",
    virtual_name="virtualName"
)

Attributes

device_name

CfnSpotFleet.BlockDeviceMappingProperty.DeviceName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-blockdevicemapping.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-blockdevicemapping.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-blockdevicemapping.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-blockdevicemapping.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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

classic_load_balancer_property = ec2.CfnSpotFleet.ClassicLoadBalancerProperty(
    name="name"
)

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

classic_load_balancers_config_property = ec2.CfnSpotFleet.ClassicLoadBalancersConfigProperty(
    classic_load_balancers=[ec2.CfnSpotFleet.ClassicLoadBalancerProperty(
        name="name"
    )]
)

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-ebsblockdevice.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

ebs_block_device_property = ec2.CfnSpotFleet.EbsBlockDeviceProperty(
    delete_on_termination=False,
    encrypted=False,
    iops=123,
    snapshot_id="snapshotId",
    volume_size=123,
    volume_type="volumeType"
)

Attributes

delete_on_termination

CfnSpotFleet.EbsBlockDeviceProperty.DeleteOnTermination.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-ebsblockdevice.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-ebsblockdevice.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-ebsblockdevice.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-ebsblockdevice.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-ebsblockdevice.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-ebsblockdevice.html#cfn-ec2-spotfleet-ebsblockdevice-volumetype

Return type

Optional[str]

FleetLaunchTemplateSpecificationProperty

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

Bases: object

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

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

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

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

fleet_launch_template_specification_property = ec2.CfnSpotFleet.FleetLaunchTemplateSpecificationProperty(
    version="version",

    # the properties below are optional
    launch_template_id="launchTemplateId",
    launch_template_name="launchTemplateName"
)

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-groupidentifier.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

group_identifier_property = ec2.CfnSpotFleet.GroupIdentifierProperty(
    group_id="groupId"
)

Attributes

group_id

CfnSpotFleet.GroupIdentifierProperty.GroupId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-groupidentifier.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-iaminstanceprofilespecification.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

iam_instance_profile_specification_property = ec2.CfnSpotFleet.IamInstanceProfileSpecificationProperty(
    arn="arn"
)

Attributes

arn

CfnSpotFleet.IamInstanceProfileSpecificationProperty.Arn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-iaminstanceprofilespecification.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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

instance_ipv6_address_property = ec2.CfnSpotFleet.InstanceIpv6AddressProperty(
    ipv6_address="ipv6Address"
)

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-instancenetworkinterfacespecification.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

instance_network_interface_specification_property = ec2.CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty(
    associate_public_ip_address=False,
    delete_on_termination=False,
    description="description",
    device_index=123,
    groups=["groups"],
    ipv6_address_count=123,
    ipv6_addresses=[ec2.CfnSpotFleet.InstanceIpv6AddressProperty(
        ipv6_address="ipv6Address"
    )],
    network_interface_id="networkInterfaceId",
    private_ip_addresses=[ec2.CfnSpotFleet.PrivateIpAddressSpecificationProperty(
        private_ip_address="privateIpAddress",

        # the properties below are optional
        primary=False
    )],
    secondary_private_ip_address_count=123,
    subnet_id="subnetId"
)

Attributes

associate_public_ip_address

CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.AssociatePublicIpAddress.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.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-instancenetworkinterfacespecification.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-subnetid

Return type

Optional[str]

InstanceRequirementsRequestProperty

class CfnSpotFleet.InstanceRequirementsRequestProperty(*, accelerator_count=None, accelerator_manufacturers=None, accelerator_names=None, accelerator_total_memory_mib=None, accelerator_types=None, bare_metal=None, baseline_ebs_bandwidth_mbps=None, burstable_performance=None, cpu_manufacturers=None, excluded_instance_types=None, instance_generations=None, local_storage=None, local_storage_types=None, memory_gib_per_v_cpu=None, memory_mib=None, network_interface_count=None, on_demand_max_price_percentage_over_lowest_price=None, require_hibernate_support=None, spot_max_price_percentage_over_lowest_price=None, total_local_storage_gb=None, v_cpu_count=None)

Bases: object

Parameters
  • accelerator_count (Union[IResolvable, AcceleratorCountRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorCount.

  • accelerator_manufacturers (Optional[Sequence[str]]) – CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorManufacturers.

  • accelerator_names (Optional[Sequence[str]]) – CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorNames.

  • accelerator_total_memory_mib (Union[IResolvable, AcceleratorTotalMemoryMiBRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorTotalMemoryMiB.

  • accelerator_types (Optional[Sequence[str]]) – CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorTypes.

  • bare_metal (Optional[str]) – CfnSpotFleet.InstanceRequirementsRequestProperty.BareMetal.

  • baseline_ebs_bandwidth_mbps (Union[IResolvable, BaselineEbsBandwidthMbpsRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.BaselineEbsBandwidthMbps.

  • burstable_performance (Optional[str]) – CfnSpotFleet.InstanceRequirementsRequestProperty.BurstablePerformance.

  • cpu_manufacturers (Optional[Sequence[str]]) – CfnSpotFleet.InstanceRequirementsRequestProperty.CpuManufacturers.

  • excluded_instance_types (Optional[Sequence[str]]) – CfnSpotFleet.InstanceRequirementsRequestProperty.ExcludedInstanceTypes.

  • instance_generations (Optional[Sequence[str]]) – CfnSpotFleet.InstanceRequirementsRequestProperty.InstanceGenerations.

  • local_storage (Optional[str]) – CfnSpotFleet.InstanceRequirementsRequestProperty.LocalStorage.

  • local_storage_types (Optional[Sequence[str]]) – CfnSpotFleet.InstanceRequirementsRequestProperty.LocalStorageTypes.

  • memory_gib_per_v_cpu (Union[IResolvable, MemoryGiBPerVCpuRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.MemoryGiBPerVCpu.

  • memory_mib (Union[IResolvable, MemoryMiBRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.MemoryMiB.

  • network_interface_count (Union[IResolvable, NetworkInterfaceCountRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.NetworkInterfaceCount.

  • on_demand_max_price_percentage_over_lowest_price (Union[int, float, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.OnDemandMaxPricePercentageOverLowestPrice.

  • require_hibernate_support (Union[bool, IResolvable, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.RequireHibernateSupport.

  • spot_max_price_percentage_over_lowest_price (Union[int, float, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.SpotMaxPricePercentageOverLowestPrice.

  • total_local_storage_gb (Union[IResolvable, TotalLocalStorageGBRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.TotalLocalStorageGB.

  • v_cpu_count (Union[IResolvable, VCpuCountRangeRequestProperty, None]) – CfnSpotFleet.InstanceRequirementsRequestProperty.VCpuCount.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

instance_requirements_request_property = ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
    accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
        max=123,
        min=123
    ),
    accelerator_manufacturers=["acceleratorManufacturers"],
    accelerator_names=["acceleratorNames"],
    accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
        max=123,
        min=123
    ),
    accelerator_types=["acceleratorTypes"],
    bare_metal="bareMetal",
    baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
        max=123,
        min=123
    ),
    burstable_performance="burstablePerformance",
    cpu_manufacturers=["cpuManufacturers"],
    excluded_instance_types=["excludedInstanceTypes"],
    instance_generations=["instanceGenerations"],
    local_storage="localStorage",
    local_storage_types=["localStorageTypes"],
    memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
        max=123,
        min=123
    ),
    memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
        max=123,
        min=123
    ),
    network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
        max=123,
        min=123
    ),
    on_demand_max_price_percentage_over_lowest_price=123,
    require_hibernate_support=False,
    spot_max_price_percentage_over_lowest_price=123,
    total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
        max=123,
        min=123
    ),
    v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
        max=123,
        min=123
    )
)

Attributes

accelerator_count

CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorCount.

Link

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

Return type

Union[IResolvable, AcceleratorCountRequestProperty, None]

accelerator_manufacturers

CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorManufacturers.

Link

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

Return type

Optional[List[str]]

accelerator_names

CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorNames.

Link

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

Return type

Optional[List[str]]

accelerator_total_memory_mib

CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorTotalMemoryMiB.

Link

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

Return type

Union[IResolvable, AcceleratorTotalMemoryMiBRequestProperty, None]

accelerator_types

CfnSpotFleet.InstanceRequirementsRequestProperty.AcceleratorTypes.

Link

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

Return type

Optional[List[str]]

bare_metal

CfnSpotFleet.InstanceRequirementsRequestProperty.BareMetal.

Link

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

Return type

Optional[str]

baseline_ebs_bandwidth_mbps

CfnSpotFleet.InstanceRequirementsRequestProperty.BaselineEbsBandwidthMbps.

Link

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

Return type

Union[IResolvable, BaselineEbsBandwidthMbpsRequestProperty, None]

burstable_performance

CfnSpotFleet.InstanceRequirementsRequestProperty.BurstablePerformance.

Link

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

Return type

Optional[str]

cpu_manufacturers

CfnSpotFleet.InstanceRequirementsRequestProperty.CpuManufacturers.

Link

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

Return type

Optional[List[str]]

excluded_instance_types

CfnSpotFleet.InstanceRequirementsRequestProperty.ExcludedInstanceTypes.

Link

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

Return type

Optional[List[str]]

instance_generations

CfnSpotFleet.InstanceRequirementsRequestProperty.InstanceGenerations.

Link

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

Return type

Optional[List[str]]

local_storage

CfnSpotFleet.InstanceRequirementsRequestProperty.LocalStorage.

Link

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

Return type

Optional[str]

local_storage_types

CfnSpotFleet.InstanceRequirementsRequestProperty.LocalStorageTypes.

Link

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

Return type

Optional[List[str]]

memory_gib_per_v_cpu

CfnSpotFleet.InstanceRequirementsRequestProperty.MemoryGiBPerVCpu.

Link

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

Return type

Union[IResolvable, MemoryGiBPerVCpuRequestProperty, None]

memory_mib

CfnSpotFleet.InstanceRequirementsRequestProperty.MemoryMiB.

Link

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

Return type

Union[IResolvable, MemoryMiBRequestProperty, None]

network_interface_count

CfnSpotFleet.InstanceRequirementsRequestProperty.NetworkInterfaceCount.

Link

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

Return type

Union[IResolvable, NetworkInterfaceCountRequestProperty, None]

on_demand_max_price_percentage_over_lowest_price

CfnSpotFleet.InstanceRequirementsRequestProperty.OnDemandMaxPricePercentageOverLowestPrice.

Link

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

Return type

Union[int, float, None]

require_hibernate_support

CfnSpotFleet.InstanceRequirementsRequestProperty.RequireHibernateSupport.

Link

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

Return type

Union[bool, IResolvable, None]

spot_max_price_percentage_over_lowest_price

CfnSpotFleet.InstanceRequirementsRequestProperty.SpotMaxPricePercentageOverLowestPrice.

Link

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

Return type

Union[int, float, None]

total_local_storage_gb

CfnSpotFleet.InstanceRequirementsRequestProperty.TotalLocalStorageGB.

Link

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

Return type

Union[IResolvable, TotalLocalStorageGBRequestProperty, None]

v_cpu_count

CfnSpotFleet.InstanceRequirementsRequestProperty.VCpuCount.

Link

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

Return type

Union[IResolvable, VCpuCountRangeRequestProperty, None]

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

launch_template_config_property = ec2.CfnSpotFleet.LaunchTemplateConfigProperty(
    launch_template_specification=ec2.CfnSpotFleet.FleetLaunchTemplateSpecificationProperty(
        version="version",

        # the properties below are optional
        launch_template_id="launchTemplateId",
        launch_template_name="launchTemplateName"
    ),
    overrides=[ec2.CfnSpotFleet.LaunchTemplateOverridesProperty(
        availability_zone="availabilityZone",
        instance_requirements=ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
            accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
                max=123,
                min=123
            ),
            accelerator_manufacturers=["acceleratorManufacturers"],
            accelerator_names=["acceleratorNames"],
            accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
                max=123,
                min=123
            ),
            accelerator_types=["acceleratorTypes"],
            bare_metal="bareMetal",
            baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
                max=123,
                min=123
            ),
            burstable_performance="burstablePerformance",
            cpu_manufacturers=["cpuManufacturers"],
            excluded_instance_types=["excludedInstanceTypes"],
            instance_generations=["instanceGenerations"],
            local_storage="localStorage",
            local_storage_types=["localStorageTypes"],
            memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
                max=123,
                min=123
            ),
            memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
                max=123,
                min=123
            ),
            network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
                max=123,
                min=123
            ),
            on_demand_max_price_percentage_over_lowest_price=123,
            require_hibernate_support=False,
            spot_max_price_percentage_over_lowest_price=123,
            total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
                max=123,
                min=123
            ),
            v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
                max=123,
                min=123
            )
        ),
        instance_type="instanceType",
        spot_price="spotPrice",
        subnet_id="subnetId",
        weighted_capacity=123
    )]
)

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_requirements=None, instance_type=None, spot_price=None, subnet_id=None, weighted_capacity=None)

Bases: object

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

  • instance_requirements (Union[IResolvable, InstanceRequirementsRequestProperty, None]) – CfnSpotFleet.LaunchTemplateOverridesProperty.InstanceRequirements.

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

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

launch_template_overrides_property = ec2.CfnSpotFleet.LaunchTemplateOverridesProperty(
    availability_zone="availabilityZone",
    instance_requirements=ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
        accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
            max=123,
            min=123
        ),
        accelerator_manufacturers=["acceleratorManufacturers"],
        accelerator_names=["acceleratorNames"],
        accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
            max=123,
            min=123
        ),
        accelerator_types=["acceleratorTypes"],
        bare_metal="bareMetal",
        baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
            max=123,
            min=123
        ),
        burstable_performance="burstablePerformance",
        cpu_manufacturers=["cpuManufacturers"],
        excluded_instance_types=["excludedInstanceTypes"],
        instance_generations=["instanceGenerations"],
        local_storage="localStorage",
        local_storage_types=["localStorageTypes"],
        memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
            max=123,
            min=123
        ),
        memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
            max=123,
            min=123
        ),
        network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
            max=123,
            min=123
        ),
        on_demand_max_price_percentage_over_lowest_price=123,
        require_hibernate_support=False,
        spot_max_price_percentage_over_lowest_price=123,
        total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
            max=123,
            min=123
        ),
        v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
            max=123,
            min=123
        )
    ),
    instance_type="instanceType",
    spot_price="spotPrice",
    subnet_id="subnetId",
    weighted_capacity=123
)

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_requirements

CfnSpotFleet.LaunchTemplateOverridesProperty.InstanceRequirements.

Link

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

Return type

Union[IResolvable, InstanceRequirementsRequestProperty, None]

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]

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

load_balancers_config_property = ec2.CfnSpotFleet.LoadBalancersConfigProperty(
    classic_load_balancers_config=ec2.CfnSpotFleet.ClassicLoadBalancersConfigProperty(
        classic_load_balancers=[ec2.CfnSpotFleet.ClassicLoadBalancerProperty(
            name="name"
        )]
    ),
    target_groups_config=ec2.CfnSpotFleet.TargetGroupsConfigProperty(
        target_groups=[ec2.CfnSpotFleet.TargetGroupProperty(
            arn="arn"
        )]
    )
)

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]

MemoryGiBPerVCpuRequestProperty

class CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.MemoryGiBPerVCpuRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.MemoryGiBPerVCpuRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

memory_gi_bPer_vCpu_request_property = ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.MemoryGiBPerVCpuRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.MemoryGiBPerVCpuRequestProperty.Min.

Link

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

Return type

Union[int, float, None]

MemoryMiBRequestProperty

class CfnSpotFleet.MemoryMiBRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.MemoryMiBRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.MemoryMiBRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

memory_mi_bRequest_property = ec2.CfnSpotFleet.MemoryMiBRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.MemoryMiBRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.MemoryMiBRequestProperty.Min.

Link

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

Return type

Union[int, float, None]

NetworkInterfaceCountRequestProperty

class CfnSpotFleet.NetworkInterfaceCountRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.NetworkInterfaceCountRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.NetworkInterfaceCountRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

network_interface_count_request_property = ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.NetworkInterfaceCountRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.NetworkInterfaceCountRequestProperty.Min.

Link

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

Return type

Union[int, float, None]

PrivateIpAddressSpecificationProperty

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

Bases: object

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

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

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

private_ip_address_specification_property = ec2.CfnSpotFleet.PrivateIpAddressSpecificationProperty(
    private_ip_address="privateIpAddress",

    # the properties below are optional
    primary=False
)

Attributes

primary

CfnSpotFleet.PrivateIpAddressSpecificationProperty.Primary.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-privateipaddressspecification.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-privateipaddressspecification.html#cfn-ec2-spotfleet-privateipaddressspecification-privateipaddress

Return type

str

SpotCapacityRebalanceProperty

class CfnSpotFleet.SpotCapacityRebalanceProperty(*, replacement_strategy=None, termination_delay=None)

Bases: object

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

  • termination_delay (Union[int, float, None]) – CfnSpotFleet.SpotCapacityRebalanceProperty.TerminationDelay.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

spot_capacity_rebalance_property = ec2.CfnSpotFleet.SpotCapacityRebalanceProperty(
    replacement_strategy="replacementStrategy",
    termination_delay=123
)

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]

termination_delay

CfnSpotFleet.SpotCapacityRebalanceProperty.TerminationDelay.

Link

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

Return type

Union[int, float, None]

SpotFleetLaunchSpecificationProperty

class CfnSpotFleet.SpotFleetLaunchSpecificationProperty(*, block_device_mappings=None, ebs_optimized=None, iam_instance_profile=None, image_id, instance_requirements=None, instance_type=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
  • 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.

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

  • instance_requirements (Union[IResolvable, InstanceRequirementsRequestProperty, None]) – CfnSpotFleet.SpotFleetLaunchSpecificationProperty.InstanceRequirements.

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

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

spot_fleet_launch_specification_property = ec2.CfnSpotFleet.SpotFleetLaunchSpecificationProperty(
    image_id="imageId",

    # the properties below are optional
    block_device_mappings=[ec2.CfnSpotFleet.BlockDeviceMappingProperty(
        device_name="deviceName",

        # the properties below are optional
        ebs=ec2.CfnSpotFleet.EbsBlockDeviceProperty(
            delete_on_termination=False,
            encrypted=False,
            iops=123,
            snapshot_id="snapshotId",
            volume_size=123,
            volume_type="volumeType"
        ),
        no_device="noDevice",
        virtual_name="virtualName"
    )],
    ebs_optimized=False,
    iam_instance_profile=ec2.CfnSpotFleet.IamInstanceProfileSpecificationProperty(
        arn="arn"
    ),
    instance_requirements=ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
        accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
            max=123,
            min=123
        ),
        accelerator_manufacturers=["acceleratorManufacturers"],
        accelerator_names=["acceleratorNames"],
        accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
            max=123,
            min=123
        ),
        accelerator_types=["acceleratorTypes"],
        bare_metal="bareMetal",
        baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
            max=123,
            min=123
        ),
        burstable_performance="burstablePerformance",
        cpu_manufacturers=["cpuManufacturers"],
        excluded_instance_types=["excludedInstanceTypes"],
        instance_generations=["instanceGenerations"],
        local_storage="localStorage",
        local_storage_types=["localStorageTypes"],
        memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
            max=123,
            min=123
        ),
        memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
            max=123,
            min=123
        ),
        network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
            max=123,
            min=123
        ),
        on_demand_max_price_percentage_over_lowest_price=123,
        require_hibernate_support=False,
        spot_max_price_percentage_over_lowest_price=123,
        total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
            max=123,
            min=123
        ),
        v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
            max=123,
            min=123
        )
    ),
    instance_type="instanceType",
    kernel_id="kernelId",
    key_name="keyName",
    monitoring=ec2.CfnSpotFleet.SpotFleetMonitoringProperty(
        enabled=False
    ),
    network_interfaces=[ec2.CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty(
        associate_public_ip_address=False,
        delete_on_termination=False,
        description="description",
        device_index=123,
        groups=["groups"],
        ipv6_address_count=123,
        ipv6_addresses=[ec2.CfnSpotFleet.InstanceIpv6AddressProperty(
            ipv6_address="ipv6Address"
        )],
        network_interface_id="networkInterfaceId",
        private_ip_addresses=[ec2.CfnSpotFleet.PrivateIpAddressSpecificationProperty(
            private_ip_address="privateIpAddress",

            # the properties below are optional
            primary=False
        )],
        secondary_private_ip_address_count=123,
        subnet_id="subnetId"
    )],
    placement=ec2.CfnSpotFleet.SpotPlacementProperty(
        availability_zone="availabilityZone",
        group_name="groupName",
        tenancy="tenancy"
    ),
    ramdisk_id="ramdiskId",
    security_groups=[ec2.CfnSpotFleet.GroupIdentifierProperty(
        group_id="groupId"
    )],
    spot_price="spotPrice",
    subnet_id="subnetId",
    tag_specifications=[ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty(
        resource_type="resourceType",
        tags=[CfnTag(
            key="key",
            value="value"
        )]
    )],
    user_data="userData",
    weighted_capacity=123
)

Attributes

block_device_mappings

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.BlockDeviceMappings.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-imageid

Return type

str

instance_requirements

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.InstanceRequirements.

Link

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

Return type

Union[IResolvable, InstanceRequirementsRequestProperty, None]

instance_type

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.InstanceType.

Link

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

Return type

Optional[str]

kernel_id

CfnSpotFleet.SpotFleetLaunchSpecificationProperty.KernelId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetlaunchspecification.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-spotfleetmonitoring.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

spot_fleet_monitoring_property = ec2.CfnSpotFleet.SpotFleetMonitoringProperty(
    enabled=False
)

Attributes

enabled

CfnSpotFleet.SpotFleetMonitoringProperty.Enabled.

Link

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

Return type

Union[bool, IResolvable, None]

SpotFleetRequestConfigDataProperty

class CfnSpotFleet.SpotFleetRequestConfigDataProperty(*, allocation_strategy=None, context=None, excess_capacity_termination_policy=None, iam_fleet_role, 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, target_capacity, target_capacity_unit_type=None, terminate_instances_with_expiration=None, type=None, valid_from=None, valid_until=None)

Bases: object

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

  • context (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.Context.

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

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

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

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

  • target_capacity_unit_type (Optional[str]) – CfnSpotFleet.SpotFleetRequestConfigDataProperty.TargetCapacityUnitType.

  • 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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

spot_fleet_request_config_data_property = ec2.CfnSpotFleet.SpotFleetRequestConfigDataProperty(
    iam_fleet_role="iamFleetRole",
    target_capacity=123,

    # the properties below are optional
    allocation_strategy="allocationStrategy",
    context="context",
    excess_capacity_termination_policy="excessCapacityTerminationPolicy",
    instance_interruption_behavior="instanceInterruptionBehavior",
    instance_pools_to_use_count=123,
    launch_specifications=[ec2.CfnSpotFleet.SpotFleetLaunchSpecificationProperty(
        image_id="imageId",

        # the properties below are optional
        block_device_mappings=[ec2.CfnSpotFleet.BlockDeviceMappingProperty(
            device_name="deviceName",

            # the properties below are optional
            ebs=ec2.CfnSpotFleet.EbsBlockDeviceProperty(
                delete_on_termination=False,
                encrypted=False,
                iops=123,
                snapshot_id="snapshotId",
                volume_size=123,
                volume_type="volumeType"
            ),
            no_device="noDevice",
            virtual_name="virtualName"
        )],
        ebs_optimized=False,
        iam_instance_profile=ec2.CfnSpotFleet.IamInstanceProfileSpecificationProperty(
            arn="arn"
        ),
        instance_requirements=ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
            accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
                max=123,
                min=123
            ),
            accelerator_manufacturers=["acceleratorManufacturers"],
            accelerator_names=["acceleratorNames"],
            accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
                max=123,
                min=123
            ),
            accelerator_types=["acceleratorTypes"],
            bare_metal="bareMetal",
            baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
                max=123,
                min=123
            ),
            burstable_performance="burstablePerformance",
            cpu_manufacturers=["cpuManufacturers"],
            excluded_instance_types=["excludedInstanceTypes"],
            instance_generations=["instanceGenerations"],
            local_storage="localStorage",
            local_storage_types=["localStorageTypes"],
            memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
                max=123,
                min=123
            ),
            memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
                max=123,
                min=123
            ),
            network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
                max=123,
                min=123
            ),
            on_demand_max_price_percentage_over_lowest_price=123,
            require_hibernate_support=False,
            spot_max_price_percentage_over_lowest_price=123,
            total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
                max=123,
                min=123
            ),
            v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
                max=123,
                min=123
            )
        ),
        instance_type="instanceType",
        kernel_id="kernelId",
        key_name="keyName",
        monitoring=ec2.CfnSpotFleet.SpotFleetMonitoringProperty(
            enabled=False
        ),
        network_interfaces=[ec2.CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty(
            associate_public_ip_address=False,
            delete_on_termination=False,
            description="description",
            device_index=123,
            groups=["groups"],
            ipv6_address_count=123,
            ipv6_addresses=[ec2.CfnSpotFleet.InstanceIpv6AddressProperty(
                ipv6_address="ipv6Address"
            )],
            network_interface_id="networkInterfaceId",
            private_ip_addresses=[ec2.CfnSpotFleet.PrivateIpAddressSpecificationProperty(
                private_ip_address="privateIpAddress",

                # the properties below are optional
                primary=False
            )],
            secondary_private_ip_address_count=123,
            subnet_id="subnetId"
        )],
        placement=ec2.CfnSpotFleet.SpotPlacementProperty(
            availability_zone="availabilityZone",
            group_name="groupName",
            tenancy="tenancy"
        ),
        ramdisk_id="ramdiskId",
        security_groups=[ec2.CfnSpotFleet.GroupIdentifierProperty(
            group_id="groupId"
        )],
        spot_price="spotPrice",
        subnet_id="subnetId",
        tag_specifications=[ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty(
            resource_type="resourceType",
            tags=[CfnTag(
                key="key",
                value="value"
            )]
        )],
        user_data="userData",
        weighted_capacity=123
    )],
    launch_template_configs=[ec2.CfnSpotFleet.LaunchTemplateConfigProperty(
        launch_template_specification=ec2.CfnSpotFleet.FleetLaunchTemplateSpecificationProperty(
            version="version",

            # the properties below are optional
            launch_template_id="launchTemplateId",
            launch_template_name="launchTemplateName"
        ),
        overrides=[ec2.CfnSpotFleet.LaunchTemplateOverridesProperty(
            availability_zone="availabilityZone",
            instance_requirements=ec2.CfnSpotFleet.InstanceRequirementsRequestProperty(
                accelerator_count=ec2.CfnSpotFleet.AcceleratorCountRequestProperty(
                    max=123,
                    min=123
                ),
                accelerator_manufacturers=["acceleratorManufacturers"],
                accelerator_names=["acceleratorNames"],
                accelerator_total_memory_mi_b=ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty(
                    max=123,
                    min=123
                ),
                accelerator_types=["acceleratorTypes"],
                bare_metal="bareMetal",
                baseline_ebs_bandwidth_mbps=ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty(
                    max=123,
                    min=123
                ),
                burstable_performance="burstablePerformance",
                cpu_manufacturers=["cpuManufacturers"],
                excluded_instance_types=["excludedInstanceTypes"],
                instance_generations=["instanceGenerations"],
                local_storage="localStorage",
                local_storage_types=["localStorageTypes"],
                memory_gi_bPer_vCpu=ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty(
                    max=123,
                    min=123
                ),
                memory_mi_b=ec2.CfnSpotFleet.MemoryMiBRequestProperty(
                    max=123,
                    min=123
                ),
                network_interface_count=ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty(
                    max=123,
                    min=123
                ),
                on_demand_max_price_percentage_over_lowest_price=123,
                require_hibernate_support=False,
                spot_max_price_percentage_over_lowest_price=123,
                total_local_storage_gb=ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
                    max=123,
                    min=123
                ),
                v_cpu_count=ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
                    max=123,
                    min=123
                )
            ),
            instance_type="instanceType",
            spot_price="spotPrice",
            subnet_id="subnetId",
            weighted_capacity=123
        )]
    )],
    load_balancers_config=ec2.CfnSpotFleet.LoadBalancersConfigProperty(
        classic_load_balancers_config=ec2.CfnSpotFleet.ClassicLoadBalancersConfigProperty(
            classic_load_balancers=[ec2.CfnSpotFleet.ClassicLoadBalancerProperty(
                name="name"
            )]
        ),
        target_groups_config=ec2.CfnSpotFleet.TargetGroupsConfigProperty(
            target_groups=[ec2.CfnSpotFleet.TargetGroupProperty(
                arn="arn"
            )]
        )
    ),
    on_demand_allocation_strategy="onDemandAllocationStrategy",
    on_demand_max_total_price="onDemandMaxTotalPrice",
    on_demand_target_capacity=123,
    replace_unhealthy_instances=False,
    spot_maintenance_strategies=ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty(
        capacity_rebalance=ec2.CfnSpotFleet.SpotCapacityRebalanceProperty(
            replacement_strategy="replacementStrategy",
            termination_delay=123
        )
    ),
    spot_max_total_price="spotMaxTotalPrice",
    spot_price="spotPrice",
    target_capacity_unit_type="targetCapacityUnitType",
    terminate_instances_with_expiration=False,
    type="type",
    valid_from="validFrom",
    valid_until="validUntil"
)

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]

context

CfnSpotFleet.SpotFleetRequestConfigDataProperty.Context.

Link

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

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]

target_capacity_unit_type

CfnSpotFleet.SpotFleetRequestConfigDataProperty.TargetCapacityUnitType.

Link

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

Return type

Optional[str]

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-spotfleettagspecification.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

spot_fleet_tag_specification_property = ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty(
    resource_type="resourceType",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

resource_type

CfnSpotFleet.SpotFleetTagSpecificationProperty.ResourceType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleettagspecification.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-spotfleettagspecification.html#cfn-ec2-spotfleet-spotfleettagspecification-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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

spot_maintenance_strategies_property = ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty(
    capacity_rebalance=ec2.CfnSpotFleet.SpotCapacityRebalanceProperty(
        replacement_strategy="replacementStrategy",
        termination_delay=123
    )
)

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-spotplacement.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

spot_placement_property = ec2.CfnSpotFleet.SpotPlacementProperty(
    availability_zone="availabilityZone",
    group_name="groupName",
    tenancy="tenancy"
)

Attributes

availability_zone

CfnSpotFleet.SpotPlacementProperty.AvailabilityZone.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotplacement.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-spotplacement.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-spotplacement.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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

target_group_property = ec2.CfnSpotFleet.TargetGroupProperty(
    arn="arn"
)

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

target_groups_config_property = ec2.CfnSpotFleet.TargetGroupsConfigProperty(
    target_groups=[ec2.CfnSpotFleet.TargetGroupProperty(
        arn="arn"
    )]
)

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

TotalLocalStorageGBRequestProperty

class CfnSpotFleet.TotalLocalStorageGBRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.TotalLocalStorageGBRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.TotalLocalStorageGBRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

total_local_storage_gBRequest_property = ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.TotalLocalStorageGBRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.TotalLocalStorageGBRequestProperty.Min.

Link

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

Return type

Union[int, float, None]

VCpuCountRangeRequestProperty

class CfnSpotFleet.VCpuCountRangeRequestProperty(*, max=None, min=None)

Bases: object

Parameters
  • max (Union[int, float, None]) – CfnSpotFleet.VCpuCountRangeRequestProperty.Max.

  • min (Union[int, float, None]) – CfnSpotFleet.VCpuCountRangeRequestProperty.Min.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

v_cpu_count_range_request_property = ec2.CfnSpotFleet.VCpuCountRangeRequestProperty(
    max=123,
    min=123
)

Attributes

max

CfnSpotFleet.VCpuCountRangeRequestProperty.Max.

Link

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

Return type

Union[int, float, None]

min

CfnSpotFleet.VCpuCountRangeRequestProperty.Min.

Link

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

Return type

Union[int, float, None]