#NEWLINE# def _transform_structure( self , schema , shapes ) : #NEWLINE# #INDENT# structure_shape = self . _populate_initial_shape ( schema ) #NEWLINE# members = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# required_members = [ ] #NEWLINE# for ( key , value ) in schema [ 'properties' ] . items ( ) : #NEWLINE# #INDENT# current_type_name = self . _json_schema_to_aws_type ( value ) #NEWLINE# current_shape_name = self . _shape_namer . new_shape_name ( current_type_name ) #NEWLINE# members [ key ] = { #NEWLINE# #INDENT# 'shape' : current_shape_name , #NEWLINE# #UNINDENT# } #NEWLINE# if value . get ( 'required' , False ) : #NEWLINE# #INDENT# required_members . append ( key ) #NEWLINE# #UNINDENT# self . _transform ( value , shapes , current_shape_name ) #NEWLINE# #UNINDENT# structure_shape [ 'members' ] = members #NEWLINE# if required_members : #NEWLINE# #INDENT# structure_shape [ 'required' ] = required_members #NEWLINE# #UNINDENT# return structure_shape