The heat.engine.resources.instance Module

class heat.engine.resources.instance.Instance(name, json_snippet, stack)[source]

Bases: heat.engine.resource.Resource

FnGetAtt(key)[source]
attach_volumes()[source]
check_active()[source]
detach_volumes()[source]
handle_create()[source]
handle_delete()[source]

Delete an instance, blocking until it is disposed by OpenStack

handle_update(json_snippet)[source]
metadata_update(new_metadata=None)[source]

Refresh the metadata if new_metadata is None

properties_schema = {'Volumes': {'Type': 'List'}, 'UserData': {'Type': 'String'}, 'SourceDestCheck': {'Implemented': False, 'Type': 'Boolean'}, 'AvailabilityZone': {'Type': 'String'}, 'Monitoring': {'Implemented': False, 'Type': 'Boolean'}, 'NovaSchedulerHints': {'Type': 'List', 'Schema': {'Type': 'Map', 'Schema': {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}}}, 'Tags': {'Type': 'List', 'Schema': {'Type': 'Map', 'Schema': {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}}}, 'Tenancy': {'Implemented': False, 'Type': 'String', 'AllowedValues': ['dedicated', 'default']}, 'PlacementGroupName': {'Implemented': False, 'Type': 'String'}, 'ImageId': {'Required': True, 'Type': 'String'}, 'SubnetId': {'Implemented': False, 'Type': 'String'}, 'KeyName': {'Type': 'String'}, 'SecurityGroups': {'Type': 'List'}, 'SecurityGroupIds': {'Implemented': False, 'Type': 'List'}, 'KernelId': {'Implemented': False, 'Type': 'String'}, 'RamDiskId': {'Implemented': False, 'Type': 'String'}, 'DisableApiTermination': {'Implemented': False, 'Type': 'String'}, 'InstanceType': {'Required': True, 'Type': 'String'}, 'PrivateIpAddress': {'Implemented': False, 'Type': 'String'}, 'NetworkInterfaces': {'Type': 'List'}}
tags_schema = {'Value': {'Required': True, 'Type': 'String'}, 'Key': {'Required': True, 'Type': 'String'}}
update_allowed_keys = ('Metadata',)
validate()[source]

Validate any of the provided params

class heat.engine.resources.instance.Restarter(name, json_snippet, stack)[source]

Bases: heat.engine.resource.Resource

alarm()[source]
properties_schema = {'InstanceId': {'Required': True, 'Type': 'String'}}
heat.engine.resources.instance.resource_mapping()[source]

This Page