CreateFleetRequest
public struct CreateFleetRequest : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Declaration
Swift
public let clientToken: String?
-
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
Declaration
Swift
public let dryRun: Bool?
-
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.
Declaration
Swift
public let excessCapacityTerminationPolicy: FleetExcessCapacityTerminationPolicy?
-
The configuration for the EC2 Fleet.
Declaration
Swift
public let launchTemplateConfigs: [FleetLaunchTemplateConfigRequest]
-
Describes the configuration of On-Demand Instances in an EC2 Fleet.
Declaration
Swift
public let onDemandOptions: OnDemandOptionsRequest?
-
Indicates whether EC2 Fleet should replace unhealthy instances.
Declaration
Swift
public let replaceUnhealthyInstances: Bool?
-
Describes the configuration of Spot Instances in an EC2 Fleet.
Declaration
Swift
public let spotOptions: SpotOptionsRequest?
-
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.
Declaration
Swift
public let tagSpecifications: [TagSpecification]?
-
The number of units to request.
Declaration
Swift
public let targetCapacitySpecification: TargetCapacitySpecificationRequest
-
Indicates whether running instances should be terminated when the EC2 Fleet expires.
Declaration
Swift
public let terminateInstancesWithExpiration: Bool?
-
The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired capacity, and maintains it by replenishing interrupted Spot Instances (maintain). A value of instant places a synchronous one-time request, and returns errors for any instances that could not be launched. A value of request places an asynchronous one-time request without maintaining capacity or submitting requests in alternative capacity pools if capacity is unavailable. For more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.
Declaration
Swift
public let type: FleetType?
-
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
Swift
public let validFrom: TimeStamp?
-
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. If no value is specified, the request remains until you cancel it.
Declaration
Swift
public let validUntil: TimeStamp?
-
init(clientToken:dryRun:excessCapacityTerminationPolicy:launchTemplateConfigs:onDemandOptions:replaceUnhealthyInstances:spotOptions:tagSpecifications:targetCapacitySpecification:terminateInstancesWithExpiration:type:validFrom:validUntil:)
Undocumented
Declaration
Swift
public init(clientToken: String? = nil, dryRun: Bool? = nil, excessCapacityTerminationPolicy: FleetExcessCapacityTerminationPolicy? = nil, launchTemplateConfigs: [FleetLaunchTemplateConfigRequest], onDemandOptions: OnDemandOptionsRequest? = nil, replaceUnhealthyInstances: Bool? = nil, spotOptions: SpotOptionsRequest? = nil, tagSpecifications: [TagSpecification]? = nil, targetCapacitySpecification: TargetCapacitySpecificationRequest, terminateInstancesWithExpiration: Bool? = nil, type: FleetType? = nil, validFrom: TimeStamp? = nil, validUntil: TimeStamp? = nil)
-
Declaration
Swift
public func validate(name: String) throws