#NEWLINE# def create_instance( self ) : #NEWLINE# #INDENT# kwargs = dict ( stack_id = self . parameters . get ( 'StackId' ) , layer_ids = self . parameters . get ( 'LayerIds' ) , instance_type = self . parameters . get ( 'InstanceType' ) , auto_scale_type = self . parameters . get ( 'AutoScalingType' ) , hostname = self . parameters . get ( 'Hostname' ) , os = self . parameters . get ( 'Os' ) , ami_id = self . parameters . get ( 'AmiId' ) , ssh_keyname = self . parameters . get ( 'SshKeyName' ) , availability_zone = self . parameters . get ( 'AvailabilityZone' ) , virtualization_type = self . parameters . get ( 'VirtualizationType' ) , subnet_id = self . parameters . get ( 'SubnetId' ) , architecture = self . parameters . get ( 'Architecture' ) , root_device_type = self . parameters . get ( 'RootDeviceType' ) , block_device_mappings = self . parameters . get ( 'BlockDeviceMappings' ) , install_updates_on_boot = self . parameters . get ( 'InstallUpdatesOnBoot' ) , ebs_optimized = self . parameters . get ( 'EbsOptimized' ) , agent_version = self . parameters . get ( 'AgentVersion' ) ) #NEWLINE# opsworks_instance = self . opsworks_backend . create_instance ( ** kwargs ) #NEWLINE# return json . dumps ( { #NEWLINE# #INDENT# 'InstanceId' : opsworks_instance . id , #NEWLINE# #UNINDENT# } , indent = 1 )