#NEWLINE# def get_config( name = None , group_id = None , region = None , key = None , keyid = None , profile = None , vpc_id = None , vpc_name = None ) : #NEWLINE# #INDENT# '\n    Get the configuration for a security group.\n\n    CLI example::\n\n        salt myminion boto_secgroup.get_config mysecgroup\n    ' #NEWLINE# conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# sg = _get_group ( conn , name = name , vpc_id = vpc_id , vpc_name = vpc_name , group_id = group_id , region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# if sg : #NEWLINE# #INDENT# ret = odict . OrderedDict ( ) #NEWLINE# ret [ 'name' ] = sg . name #NEWLINE# ret [ 'group_id' ] = sg . id #NEWLINE# ret [ 'owner_id' ] = sg . owner_id #NEWLINE# ret [ 'description' ] = sg . description #NEWLINE# ret [ 'tags' ] = sg . tags #NEWLINE# _rules = _parse_rules ( sg , sg . rules ) #NEWLINE# _rules_egress = _parse_rules ( sg , sg . rules_egress ) #NEWLINE# ret [ 'rules' ] = _split_rules ( _rules ) #NEWLINE# ret [ 'rules_egress' ] = _split_rules ( _rules_egress ) #NEWLINE# return ret #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None