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.

Container for the parameters to the CreateFleet operation. Launches an EC2 Fleet.

You can create a single EC2 Fleet that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

For more information, see Launching an EC2 Fleet in the Amazon Elastic Compute Cloud User Guide.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.AmazonEC2Request
      Amazon.EC2.Model.CreateFleetRequest

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

Syntax

C#
public class CreateFleetRequest : AmazonEC2Request
         IAmazonWebServiceRequest

The CreateFleetRequest type exposes the following members

Constructors

NameDescription
Public Method CreateFleetRequest()

Properties

NameTypeDescription
Public Property ClientToken System.String

Gets and sets the property ClientToken.

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

Public Property ExcessCapacityTerminationPolicy Amazon.EC2.FleetExcessCapacityTerminationPolicy

Gets and sets the property ExcessCapacityTerminationPolicy.

Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.

Public Property LaunchTemplateConfigs System.Collections.Generic.List<Amazon.EC2.Model.FleetLaunchTemplateConfigRequest>

Gets and sets the property LaunchTemplateConfigs.

The configuration for the EC2 Fleet.

Public Property ReplaceUnhealthyInstances System.Boolean

Gets and sets the property ReplaceUnhealthyInstances.

Indicates whether EC2 Fleet should replace unhealthy instances.

Public Property SpotOptions Amazon.EC2.Model.SpotOptionsRequest

Gets and sets the property SpotOptions.

Includes SpotAllocationStrategy and SpotInstanceInterruptionBehavior inside this structure.

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

Gets and sets the property TagSpecifications.

The tags for an EC2 Fleet resource.

Public Property TargetCapacitySpecification Amazon.EC2.Model.TargetCapacitySpecificationRequest

Gets and sets the property TargetCapacitySpecification.

The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and DefaultCapacityType structure.

Public Property TerminateInstancesWithExpiration System.Boolean

Gets and sets the property TerminateInstancesWithExpiration.

Indicates whether running instances should be terminated when the EC2 Fleet expires.

Public Property Type Amazon.EC2.FleetType

Gets and sets the property Type.

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. If you request a certain target capacity, EC2 Fleet only places the required requests. It does not attempt to replenish instances if capacity is diminished, and does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically replenishes any interrupted Spot Instances. Default: maintain.

Public Property ValidFrom System.DateTime

Gets and sets the property ValidFrom.

The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

Public Property ValidUntil System.DateTime

Gets and sets the property ValidUntil.

The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. The default end date is 7 days from the current date.

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