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.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.SpotFleetLaunchSpecification

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

Syntax

C#
public class SpotFleetLaunchSpecification

The SpotFleetLaunchSpecification type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AddressingType System.String

Gets and sets the property AddressingType.

Deprecated.

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

Gets and sets the property BlockDeviceMappings.

One or more block device mapping entries.

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 InstanceType Amazon.EC2.InstanceType

Gets and sets the property InstanceType.

The instance type. Note that T2 and HS1 instance types are not supported.

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.

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.

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

Gets and sets the property SecurityGroups.

One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.

Public Property SpotPrice System.String

Gets and sets the property SpotPrice.

The bid price per unit hour for the specified instance type. If this value is not specified, the default is the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by the value of WeightedCapacity.

Public Property SubnetId System.String

Gets and sets the property SubnetId.

The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".

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 user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.

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 (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, we round the number of instances to the next whole number. If this value is not specified, the default is 1.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms