SpotFleetLaunchSpecification
public struct SpotFleetLaunchSpecification : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
Deprecated.
Declaration
Swift
public let addressingType: String?
-
One or more block devices that are mapped to the Spot Instances. You can’t specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
Declaration
Swift
public let blockDeviceMappings: [BlockDeviceMapping]?
-
Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn’t available with all instance types. Additional usage charges apply when using an EBS Optimized instance. Default: false
Declaration
Swift
public let ebsOptimized: Bool?
-
The IAM instance profile.
Declaration
Swift
public let iamInstanceProfile: IamInstanceProfileSpecification?
-
The ID of the AMI.
Declaration
Swift
public let imageId: String?
-
The instance type.
Declaration
Swift
public let instanceType: InstanceType?
-
The ID of the kernel.
Declaration
Swift
public let kernelId: String?
-
The name of the key pair.
Declaration
Swift
public let keyName: String?
-
Enable or disable monitoring for the instances.
Declaration
Swift
public let monitoring: SpotFleetMonitoring?
-
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
Declaration
Swift
public let networkInterfaces: [InstanceNetworkInterfaceSpecification]?
-
The placement information.
Declaration
Swift
public let placement: SpotPlacement?
-
The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.
Declaration
Swift
public let ramdiskId: String?
-
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
Declaration
Swift
public let securityGroups: [GroupIdentifier]?
-
The maximum price per unit hour that you are willing to pay for a Spot Instance. If this value is not specified, the default is the Spot price specified for the fleet. To determine the Spot price per unit hour, divide the Spot price by the value of WeightedCapacity.
Declaration
Swift
public let spotPrice: String?
-
The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, “subnet-1234abcdeexample1, subnet-0987cdef6example2”.
Declaration
Swift
public let subnetId: String?
-
The tags to apply during creation.
Declaration
Swift
public let tagSpecifications: [SpotFleetTagSpecification]?
-
The Base64-encoded user data that instances use when starting up.
Declaration
Swift
public let userData: String?
-
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O. If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
Declaration
Swift
public let weightedCapacity: Double?
-
init(addressingType:blockDeviceMappings:ebsOptimized:iamInstanceProfile:imageId:instanceType:kernelId:keyName:monitoring:networkInterfaces:placement:ramdiskId:securityGroups:spotPrice:subnetId:tagSpecifications:userData:weightedCapacity:)
Undocumented
Declaration
Swift
public init(addressingType: String? = nil, blockDeviceMappings: [BlockDeviceMapping]? = nil, ebsOptimized: Bool? = nil, iamInstanceProfile: IamInstanceProfileSpecification? = nil, imageId: String? = nil, instanceType: InstanceType? = nil, kernelId: String? = nil, keyName: String? = nil, monitoring: SpotFleetMonitoring? = nil, networkInterfaces: [InstanceNetworkInterfaceSpecification]? = nil, placement: SpotPlacement? = nil, ramdiskId: String? = nil, securityGroups: [GroupIdentifier]? = nil, spotPrice: String? = nil, subnetId: String? = nil, tagSpecifications: [SpotFleetTagSpecification]? = nil, userData: String? = nil, weightedCapacity: Double? = nil)