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 OnDemandOptions Amazon.EC2.Model.OnDemandOptionsRequest

Gets and sets the property OnDemandOptions.

The allocation strategy of On-Demand Instances in an 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.

Describes the configuration of Spot Instances in an EC2 Fleet.

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

Gets and sets the property TagSpecifications.

The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType must be fleet, otherwise the fleet request fails. To tag instances at launch, specify the tags in the launch template. For information about tagging after launch, see Tagging Your Resources.

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

This property is deprecated. Setting this property results in non-UTC DateTimes not being marshalled correctly. Use ValidFromUtc instead. Setting either ValidFrom or ValidFromUtc results in both ValidFrom and ValidFromUtc being assigned, the latest assignment to either one of the two property is reflected in the value of both. ValidFrom is provided for backwards compatibility only and assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.

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 ValidFromUtc System.DateTime

Gets and sets the property ValidFromUtc.

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

This property is deprecated. Setting this property results in non-UTC DateTimes not being marshalled correctly. Use ValidUntilUtc instead. Setting either ValidUntil or ValidUntilUtc results in both ValidUntil and ValidUntilUtc being assigned, the latest assignment to either one of the two property is reflected in the value of both. ValidUntil is provided for backwards compatibility only and assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.

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.

Public Property ValidUntilUtc System.DateTime

Gets and sets the property ValidUntilUtc.

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