AWSEC2SpotFleetLaunchSpecification

Objective-C

@interface AWSEC2SpotFleetLaunchSpecification

Swift

class AWSEC2SpotFleetLaunchSpecification

Describes the launch specification for one or more Spot Instances. If you include On-Demand capacity in your fleet request, you can’t use SpotFleetLaunchSpecification; you must use LaunchTemplateConfig.

  • Deprecated.

    Declaration

    Objective-C

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

    Swift

    var addressingType: String? { get set }
  • 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

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2BlockDeviceMapping *> *_Nullable blockDeviceMappings;

    Swift

    var blockDeviceMappings: [AWSEC2BlockDeviceMapping]? { get set }
  • 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

    Objective-C

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

    Swift

    var ebsOptimized: NSNumber? { get set }
  • The IAM instance profile.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2IamInstanceProfileSpecification *_Nullable iamInstanceProfile;

    Swift

    var iamInstanceProfile: AWSEC2IamInstanceProfileSpecification? { get set }
  • The ID of the AMI.

    Declaration

    Objective-C

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

    Swift

    var imageId: String? { get set }
  • The instance type.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2InstanceType instanceType;

    Swift

    var instanceType: AWSEC2InstanceType { get set }
  • The ID of the kernel.

    Declaration

    Objective-C

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

    Swift

    var kernelId: String? { get set }
  • The name of the key pair.

    Declaration

    Objective-C

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

    Swift

    var keyName: String? { get set }
  • Enable or disable monitoring for the instances.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2SpotFleetMonitoring *_Nullable monitoring;

    Swift

    var monitoring: AWSEC2SpotFleetMonitoring? { get set }
  • 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

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2InstanceNetworkInterfaceSpecification *> *_Nullable networkInterfaces;

    Swift

    var networkInterfaces: [AWSEC2InstanceNetworkInterfaceSpecification]? { get set }
  • The placement information.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2SpotPlacement *_Nullable placement;

    Swift

    var placement: AWSEC2SpotPlacement? { get set }
  • 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

    Objective-C

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

    Swift

    var ramdiskId: String? { get set }
  • 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

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2GroupIdentifier *> *_Nullable securityGroups;

    Swift

    var securityGroups: [AWSEC2GroupIdentifier]? { get set }
  • 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

    Objective-C

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

    Swift

    var spotPrice: String? { get set }
  • 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

    Objective-C

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

    Swift

    var subnetId: String? { get set }
  • The tags to apply during creation.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2SpotFleetTagSpecification *> *_Nullable tagSpecifications;

    Swift

    var tagSpecifications: [AWSEC2SpotFleetTagSpecification]? { get set }
  • The Base64-encoded user data that instances use when starting up.

    Declaration

    Objective-C

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

    Swift

    var userData: String? { get set }
  • 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

    Objective-C

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

    Swift

    var weightedCapacity: NSNumber? { get set }