AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Describes the launch specification for one or more Spot Instances. If you include On-Demand capacity in your fleet request or want to specify an EFA network device, you can't use SpotFleetLaunchSpecification; you must use LaunchTemplateConfig.

Inheritance Hierarchy


Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z


public class SpotFleetLaunchSpecification

The SpotFleetLaunchSpecification type exposes the following members



Public Property AddressingType System.String

Gets and sets the property AddressingType.


Public Property BlockDeviceMappings System.Collections.Generic.List<Amazon.EC2.Model.BlockDeviceMapping>

Gets and sets the property BlockDeviceMappings.

One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

Public Property EbsOptimized System.Boolean

Gets and sets the property EbsOptimized.

Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

Default: false

Public Property IamInstanceProfile Amazon.EC2.Model.IamInstanceProfileSpecification

Gets and sets the property IamInstanceProfile.

The IAM instance profile.

Public Property ImageId System.String

Gets and sets the property ImageId.

The ID of the AMI.

Public Property InstanceRequirements Amazon.EC2.Model.InstanceRequirements

Gets and sets the property InstanceRequirements.

The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.

If you specify InstanceRequirements, you can't specify InstanceType.

Public Property InstanceType Amazon.EC2.InstanceType

Gets and sets the property InstanceType.

The instance type.

Public Property KernelId System.String

Gets and sets the property KernelId.

The ID of the kernel.

Public Property KeyName System.String

Gets and sets the property KeyName.

The name of the key pair.

Public Property Monitoring Amazon.EC2.Model.SpotFleetMonitoring

Gets and sets the property Monitoring.

Enable or disable monitoring for the instances.

Public Property NetworkInterfaces System.Collections.Generic.List<Amazon.EC2.Model.InstanceNetworkInterfaceSpecification>

Gets and sets the property NetworkInterfaces.

One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

SpotFleetLaunchSpecification currently does not support Elastic Fabric Adapter (EFA). To specify an EFA, you must use LaunchTemplateConfig.

Public Property Placement Amazon.EC2.Model.SpotPlacement

Gets and sets the property Placement.

The placement information.

Public Property RamdiskId System.String

Gets and sets the property RamdiskId.

The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the Amazon Web Services Resource Center and search for the kernel ID.

Public Property SecurityGroups System.Collections.Generic.List<Amazon.EC2.Model.GroupIdentifier>

Gets and sets the property SecurityGroups.

The security groups.

Public Property SpotPrice System.String

Gets and sets the property SpotPrice.

The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

Public Property SubnetId System.String

Gets and sets the property SubnetId.

The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".

Public Property TagSpecifications System.Collections.Generic.List<Amazon.EC2.Model.SpotFleetTagSpecification>

Gets and sets the property TagSpecifications.

The tags to apply during creation.

Public Property UserData System.String

Gets and sets the property UserData.

The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.

Public Property WeightedCapacity System.Double

Gets and sets the property WeightedCapacity.

The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.

If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5