AWSAutoScalingMixedInstancesPolicy
Objective-C
@interface AWSAutoScalingMixedInstancesPolicy
Swift
class AWSAutoScalingMixedInstancesPolicy
Describes a mixed instances policy. A mixed instances policy contains the instance types that Amazon EC2 Auto Scaling can launch and other information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
-
Specifies the instances distribution.
Declaration
Objective-C
@property (nonatomic, strong) AWSAutoScalingInstancesDistribution *_Nullable instancesDistribution;
Swift
var instancesDistribution: AWSAutoScalingInstancesDistribution? { get set }
-
Specifies the launch template to use and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed instances policy.
Declaration
Objective-C
@property (nonatomic, strong) AWSAutoScalingLaunchTemplate *_Nullable launchTemplate;
Swift
var launchTemplate: AWSAutoScalingLaunchTemplate? { get set }