The heat.engine.resources.autoscaling Module

class heat.engine.resources.autoscaling.AutoScalingGroup(name, json_snippet, stack)[source]

Bases: heat.engine.resources.autoscaling.InstanceGroup, heat.engine.resources.autoscaling.CooldownMixin

FnGetRefId()[source]
adjust(adjustment, adjustment_type='ChangeInCapacity')[source]
handle_create()[source]
handle_update(json_snippet)[source]
properties_schema = {'MinSize': {'Required': True, 'Type': 'String'}, 'HealthCheckGracePeriod': {'Implemented': False, 'Type': 'Integer'}, 'MaxSize': {'Required': True, 'Type': 'String'}, 'Cooldown': {'Type': 'String'}, 'DesiredCapacity': {'Type': 'Number'}, 'LaunchConfigurationName': {'Required': True, 'Type': 'String'}, 'Tags': {'Type': 'List', 'Schema': {'Type': 'Map', 'Schema': {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}}}, 'AvailabilityZones': {'Required': True, 'Type': 'List'}, 'LoadBalancerNames': {'Type': 'List'}, 'HealthCheckType': {'Implemented': False, 'Type': 'String', 'AllowedValues': ['EC2', 'ELB']}}
tags_schema = {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}
update_allowed_keys = ('Properties',)
update_allowed_properties = ('MaxSize', 'MinSize', 'Cooldown', 'DesiredCapacity')
class heat.engine.resources.autoscaling.CooldownMixin[source]

Bases: object

Utility class to encapsulate Cooldown related logic which is shared between AutoScalingGroup and ScalingPolicy

class heat.engine.resources.autoscaling.InstanceGroup(name, json_snippet, stack)[source]

Bases: heat.engine.resource.Resource

FnGetAtt(key)[source]

heat extension: “InstanceList” returns comma delimited list of server ip addresses.

FnGetRefId()[source]
check_active()[source]
handle_create()[source]
handle_delete()[source]
handle_update(json_snippet)[source]
properties_schema = {'Size': {'Required': True, 'Type': 'Number'}, 'Tags': {'Type': 'List', 'Schema': {'Type': 'Map', 'Schema': {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}}}, 'AvailabilityZones': {'Required': True, 'Type': 'List'}, 'LoadBalancerNames': {'Type': 'List'}, 'LaunchConfigurationName': {'Required': True, 'Type': 'String'}}
resize(new_capacity, raise_on_error=False)[source]
tags_schema = {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}
update_allowed_keys = ('Properties',)
update_allowed_properties = ('Size',)
class heat.engine.resources.autoscaling.LaunchConfiguration(name, json_snippet, stack)[source]

Bases: heat.engine.resource.Resource

properties_schema = {'UserData': {'Type': 'String'}, 'BlockDeviceMappings': {'Implemented': False, 'Type': 'String'}, 'KeyName': {'Type': 'String'}, 'SecurityGroups': {'Type': 'List'}, 'KernelId': {'Implemented': False, 'Type': 'String'}, 'RamDiskId': {'Implemented': False, 'Type': 'String'}, 'NovaSchedulerHints': {'Type': 'List', 'Schema': {'Type': 'Map', 'Schema': {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}}}, 'InstanceType': {'Required': True, 'Type': 'String'}, 'ImageId': {'Required': True, 'Type': 'String'}}
tags_schema = {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}
class heat.engine.resources.autoscaling.ScalingPolicy(name, json_snippet, stack)[source]

Bases: heat.engine.resource.Resource, heat.engine.resources.autoscaling.CooldownMixin

alarm()[source]
properties_schema = {'ScalingAdjustment': {'Required': True, 'Type': 'Number'}, 'AutoScalingGroupName': {'Required': True, 'Type': 'String'}, 'Cooldown': {'Type': 'Number'}, 'AdjustmentType': {'Required': True, 'Type': 'String', 'AllowedValues': ['ChangeInCapacity', 'ExactCapacity', 'PercentChangeInCapacity']}}
heat.engine.resources.autoscaling.resource_mapping()[source]

This Page