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 an EC2 Fleet.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.FleetData

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

Syntax

C#
public class FleetData

The FleetData type exposes the following members

Constructors

NameDescription
Public Method FleetData()

Properties

NameTypeDescription
Public Property ActivityStatus Amazon.EC2.FleetActivityStatus

Gets and sets the property ActivityStatus.

The progress of the EC2 Fleet. If there is an error, the status is error. After all requests are placed, the status is pending_fulfillment. If the size of the EC2 Fleet is equal to or greater than its target capacity, the status is fulfilled. If the size of the EC2 Fleet is decreased, the status is pending_termination while instances are terminating.

Public Property ClientToken System.String

Gets and sets the property ClientToken.

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

Constraints: Maximum 64 ASCII characters

Public Property Context System.String

Gets and sets the property Context.

Reserved.

Public Property CreateTime System.DateTime

Gets and sets the property CreateTime.

The creation date and time of the EC2 Fleet.

Public Property Errors System.Collections.Generic.List<Amazon.EC2.Model.DescribeFleetError>

Gets and sets the property Errors.

Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant.

Public Property ExcessCapacityTerminationPolicy Amazon.EC2.FleetExcessCapacityTerminationPolicy

Gets and sets the property ExcessCapacityTerminationPolicy.

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

Supported only for fleets of type maintain.

Public Property FleetId System.String

Gets and sets the property FleetId.

The ID of the EC2 Fleet.

Public Property FleetState Amazon.EC2.FleetStateCode

Gets and sets the property FleetState.

The state of the EC2 Fleet.

Public Property FulfilledCapacity System.Double

Gets and sets the property FulfilledCapacity.

The number of units fulfilled by this request compared to the set target capacity.

Public Property FulfilledOnDemandCapacity System.Double

Gets and sets the property FulfilledOnDemandCapacity.

The number of units fulfilled by this request compared to the set target On-Demand capacity.

Public Property Instances System.Collections.Generic.List<Amazon.EC2.Model.DescribeFleetsInstances>

Gets and sets the property Instances.

Information about the instances that were launched by the fleet. Valid only when Type is set to instant.

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

Gets and sets the property LaunchTemplateConfigs.

The launch template and overrides.

Public Property OnDemandOptions Amazon.EC2.Model.OnDemandOptions

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 Spot Instances. Supported only for fleets of type maintain. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.

Public Property SpotOptions Amazon.EC2.Model.SpotOptions

Gets and sets the property SpotOptions.

The configuration of Spot Instances in an EC2 Fleet.

Public Property Tags System.Collections.Generic.List<Amazon.EC2.Model.Tag>

Gets and sets the property Tags.

The tags for an EC2 Fleet resource.

Public Property TargetCapacitySpecification Amazon.EC2.Model.TargetCapacitySpecification

Gets and sets the property TargetCapacitySpecification.

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

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 it 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 instance requests are placed or able to fulfill the request. The default end date is 7 days from the current date.

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