AWSEC2FleetData

Objective-C

@interface AWSEC2FleetData

Swift

class AWSEC2FleetData

Describes an EC2 Fleet.

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

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2FleetActivityStatus activityStatus;

    Swift

    var activityStatus: AWSEC2FleetActivityStatus { get set }
  • 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

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable clientToken;

    Swift

    var clientToken: String? { get set }
  • Reserved.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable context;

    Swift

    var context: String? { get set }
  • The creation date and time of the EC2 Fleet.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable createTime;

    Swift

    var createTime: Date? { get set }
  • Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2DescribeFleetError *> *_Nullable errors;

    Swift

    var errors: [AWSEC2DescribeFleetError]? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy;

    Swift

    var excessCapacityTerminationPolicy: AWSEC2FleetExcessCapacityTerminationPolicy { get set }
  • The ID of the EC2 Fleet.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable fleetId;

    Swift

    var fleetId: String? { get set }
  • The state of the EC2 Fleet.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2FleetStateCode fleetState;

    Swift

    var fleetState: AWSEC2FleetStateCode { get set }
  • The number of units fulfilled by this request compared to the set target capacity.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable fulfilledCapacity;

    Swift

    var fulfilledCapacity: NSNumber? { get set }
  • The number of units fulfilled by this request compared to the set target On-Demand capacity.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable fulfilledOnDemandCapacity;

    Swift

    var fulfilledOnDemandCapacity: NSNumber? { get set }
  • Information about the instances that were launched by the fleet. Valid only when Type is set to instant.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2DescribeFleetsInstances *> *_Nullable instances;

    Swift

    var instances: [AWSEC2DescribeFleetsInstances]? { get set }
  • The launch template and overrides.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2FleetLaunchTemplateConfig *> *_Nullable launchTemplateConfigs;

    Swift

    var launchTemplateConfigs: [AWSEC2FleetLaunchTemplateConfig]? { get set }
  • The allocation strategy of On-Demand Instances in an EC2 Fleet.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2OnDemandOptions *_Nullable onDemandOptions;

    Swift

    var onDemandOptions: AWSEC2OnDemandOptions? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable replaceUnhealthyInstances;

    Swift

    var replaceUnhealthyInstances: NSNumber? { get set }
  • The configuration of Spot Instances in an EC2 Fleet.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2SpotOptions *_Nullable spotOptions;

    Swift

    var spotOptions: AWSEC2SpotOptions? { get set }
  • The tags for an EC2 Fleet resource.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2Tag *> *_Nullable tags;

    Swift

    var tags: [AWSEC2Tag]? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2TargetCapacitySpecification *_Nullable targetCapacitySpecification;

    Swift

    var targetCapacitySpecification: AWSEC2TargetCapacitySpecification? { get set }
  • Indicates whether running instances should be terminated when the EC2 Fleet expires.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable terminateInstancesWithExpiration;

    Swift

    var terminateInstancesWithExpiration: NSNumber? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2FleetType types;

    Swift

    var types: AWSEC2FleetType { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable validFrom;

    Swift

    var validFrom: Date? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable validUntil;

    Swift

    var validUntil: Date? { get set }