Class: Aws::SecurityHub::Types::AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb

Overview

Note:

When making an API call, you may pass AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails data as a hash:

{
  instances_distribution: {
    on_demand_allocation_strategy: "NonEmptyString",
    on_demand_base_capacity: 1,
    on_demand_percentage_above_base_capacity: 1,
    spot_allocation_strategy: "NonEmptyString",
    spot_instance_pools: 1,
    spot_max_price: "NonEmptyString",
  },
  launch_template: {
    launch_template_specification: {
      launch_template_id: "NonEmptyString",
      launch_template_name: "NonEmptyString",
      version: "NonEmptyString",
    },
    overrides: [
      {
        instance_type: "NonEmptyString",
        weighted_capacity: "NonEmptyString",
      },
    ],
  },
}

The mixed instances policy for the automatic scaling group.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#instances_distributionTypes::AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails

The instances distribution. The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacity.



1626
1627
1628
1629
1630
1631
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 1626

class AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails < Struct.new(
  :instances_distribution,
  :launch_template)
  SENSITIVE = []
  include Aws::Structure
end

#launch_templateTypes::AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails

The launch template to use and the instance types (overrides) to use to provision EC2 instances to fulfill On-Demand and Spot capacities.



1626
1627
1628
1629
1630
1631
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 1626

class AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails < Struct.new(
  :instances_distribution,
  :launch_template)
  SENSITIVE = []
  include Aws::Structure
end