#NEWLINE# def create_stack( self ) : #NEWLINE# #INDENT# kwargs = dict ( name = self . parameters . get ( 'Name' ) , region = self . parameters . get ( 'Region' ) , vpcid = self . parameters . get ( 'VpcId' ) , attributes = self . parameters . get ( 'Attributes' ) , default_instance_profile_arn = self . parameters . get ( 'DefaultInstanceProfileArn' ) , default_os = self . parameters . get ( 'DefaultOs' ) , hostname_theme = self . parameters . get ( 'HostnameTheme' ) , default_availability_zone = self . parameters . get ( 'DefaultAvailabilityZone' ) , default_subnet_id = self . parameters . get ( 'DefaultInstanceProfileArn' ) , custom_json = self . parameters . get ( 'CustomJson' ) , configuration_manager = self . parameters . get ( 'ConfigurationManager' ) , chef_configuration = self . parameters . get ( 'ChefConfiguration' ) , use_custom_cookbooks = self . parameters . get ( 'UseCustomCookbooks' ) , use_opsworks_security_groups = self . parameters . get ( 'UseOpsworksSecurityGroups' ) , custom_cookbooks_source = self . parameters . get ( 'CustomCookbooksSource' ) , default_ssh_keyname = self . parameters . get ( 'DefaultSshKeyName' ) , default_root_device_type = self . parameters . get ( 'DefaultRootDeviceType' ) , service_role_arn = self . parameters . get ( 'ServiceRoleArn' ) , agent_version = self . parameters . get ( 'AgentVersion' ) ) #NEWLINE# stack = self . opsworks_backend . create_stack ( ** self ) #NEWLINE# return json . dumps ( { #NEWLINE# #INDENT# 'StackId' : stack . id , #NEWLINE# #UNINDENT# } , indent = 1 )