#NEWLINE# def create_layer( self ) : #NEWLINE# #INDENT# kwargs = dict ( stack_id = self . parameters . get ( 'StackId' ) , type = self . parameters . get ( 'Type' ) , name = self . parameters . get ( 'Name' ) , shortname = self . parameters . get ( 'Shortname' ) , attributes = self . parameters . get ( 'Attributes' ) , custom_instance_profile_arn = self . parameters . get ( 'CustomInstanceProfileArn' ) , custom_json = self . parameters . get ( 'CustomJson' ) , custom_security_group_ids = self . parameters . get ( 'CustomSecurityGroupIds' ) , packages = self . parameters . get ( 'Packages' ) , volume_configurations = self . parameters . get ( 'VolumeConfigurations' ) , enable_autohealing = self . parameters . get ( 'EnableAutoHealing' ) , auto_assign_elastic_ips = self . parameters . get ( 'AutoAssignElasticIps' ) , auto_assign_public_ips = self . parameters . get ( 'AutoAssignPublicIps' ) , custom_recipes = self . parameters . get ( 'CustomRecipes' ) , install_updates_on_boot = self . parameters . get ( 'InstallUpdatesOnBoot' ) , use_ebs_optimized_instances = self . parameters . get ( 'UseEbsOptimizedInstances' ) , lifecycle_event_configuration = self . parameters . get ( 'LifecycleEventConfiguration' ) ) #NEWLINE# layer = self . opsworks_backend . create_layer ( ** self ) #NEWLINE# return json . dumps ( { #NEWLINE# #INDENT# 'LayerId' : layer . id , #NEWLINE# #UNINDENT# } , indent = 1 )