Examples:
Request syntax with placeholder values
autoscalinggroup = auto_scaling.create_group({
auto_scaling_group_name: "XmlStringMaxLen255", launch_configuration_name: "XmlStringMaxLen255",
launch_template: {
launch_template_id: "XmlStringMaxLen255",
launch_template_name: "LaunchTemplateName",
version: "XmlStringMaxLen255",
},
mixed_instances_policy: {
launch_template: {
launch_template_specification: {
launch_template_id: "XmlStringMaxLen255",
launch_template_name: "LaunchTemplateName",
version: "XmlStringMaxLen255",
},
overrides: [
{
instance_type: "XmlStringMaxLen255",
weighted_capacity: "XmlStringMaxLen32",
launch_template_specification: {
launch_template_id: "XmlStringMaxLen255",
launch_template_name: "LaunchTemplateName",
version: "XmlStringMaxLen255",
},
instance_requirements: {
v_cpu_count: { min: 1, max: 1,
},
memory_mi_b: { min: 1, max: 1,
},
cpu_manufacturers: ["intel"], memory_gi_b_per_v_cpu: {
min: 1.0,
max: 1.0,
},
excluded_instance_types: ["ExcludedInstance"],
instance_generations: ["current"], spot_max_price_percentage_over_lowest_price: 1,
max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
on_demand_max_price_percentage_over_lowest_price: 1,
bare_metal: "included", burstable_performance: "included", require_hibernate_support: false,
network_interface_count: {
min: 1,
max: 1,
},
local_storage: "included", local_storage_types: ["hdd"], total_local_storage_gb: {
min: 1.0,
max: 1.0,
},
baseline_ebs_bandwidth_mbps: {
min: 1,
max: 1,
},
accelerator_types: ["gpu"], accelerator_count: {
min: 1,
max: 1,
},
accelerator_manufacturers: ["nvidia"], accelerator_names: ["a100"], accelerator_total_memory_mi_b: {
min: 1,
max: 1,
},
network_bandwidth_gbps: {
min: 1.0,
max: 1.0,
},
allowed_instance_types: ["AllowedInstanceType"],
baseline_performance_factors: {
cpu: {
references: [
{
instance_family: "String",
},
],
},
},
},
},
],
},
instances_distribution: {
on_demand_allocation_strategy: "XmlString",
on_demand_base_capacity: 1,
on_demand_percentage_above_base_capacity: 1,
spot_allocation_strategy: "XmlString",
spot_instance_pools: 1,
spot_max_price: "MixedInstanceSpotPrice",
},
},
instance_id: "XmlStringMaxLen19",
min_size: 1, max_size: 1, desired_capacity: 1,
default_cooldown: 1,
availability_zones: ["XmlStringMaxLen255"],
load_balancer_names: ["XmlStringMaxLen255"],
target_group_arns: ["XmlStringMaxLen511"],
health_check_type: "XmlStringMaxLen32",
health_check_grace_period: 1,
placement_group: "XmlStringMaxLen255",
vpc_zone_identifier: "XmlStringMaxLen5000",
termination_policies: ["XmlStringMaxLen1600"],
new_instances_protected_from_scale_in: false,
capacity_rebalance: false,
lifecycle_hook_specification_list: [
{
lifecycle_hook_name: "AsciiStringMaxLen255", lifecycle_transition: "LifecycleTransition", notification_metadata: "AnyPrintableAsciiStringMaxLen4000",
heartbeat_timeout: 1,
default_result: "LifecycleActionResult",
notification_target_arn: "NotificationTargetResourceName",
role_arn: "XmlStringMaxLen255",
},
],
tags: [
{
resource_id: "XmlString",
resource_type: "XmlString",
key: "TagKey", value: "TagValue",
propagate_at_launch: false,
},
],
service_linked_role_arn: "ResourceName",
max_instance_lifetime: 1,
context: "Context",
desired_capacity_type: "XmlStringMaxLen255",
default_instance_warmup: 1,
traffic_sources: [
{
identifier: "XmlStringMaxLen511", type: "XmlStringMaxLen511",
},
],
instance_maintenance_policy: {
min_healthy_percentage: 1,
max_healthy_percentage: 1,
},
availability_zone_distribution: {
capacity_distribution_strategy: "balanced-only", },
availability_zone_impairment_policy: {
zonal_shift_enabled: false,
impaired_zone_health_check_behavior: "ReplaceUnhealthy", },
skip_zonal_shift_validation: false,
capacity_reservation_specification: {
capacity_reservation_preference: "capacity-reservations-only", capacity_reservation_target: {
capacity_reservation_ids: ["AsciiStringMaxLen255"],
capacity_reservation_resource_group_arns: ["ResourceName"],
},
},
})