def create_thing_type(thingTypeName, thingTypeDescription, searchableAttributesList, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  thingTypeProperties = dict(thingTypeDescription=thingTypeDescription, searchableAttributes=searchableAttributesList)
  thingtype = conn.create_thing_type(thingTypeName=thingTypeName, thingTypeProperties=thingTypeProperties)
  if thingtype:
   log.info('The newly created thing type ARN is {0}'.format(thingtype['thingTypeArn']))
   return {'created': True, 'thingTypeArn': thingtype['thingTypeArn']}
  else:
   log.warning('thing type was not created')
   return {'created': False}
 except ClientError as e:
  return {'created': False, 'error': salt.utils.boto3.get_error(e)}

def create_thing_type ( thingTypeName , thingTypeDescription , searchableAttributesList , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) thingTypeProperties = dict ( thingTypeDescription = thingTypeDescription , searchableAttributes = searchableAttributesList ) thingtype = conn . create_thing_type ( thingTypeName = thingTypeName , thingTypeProperties = thingTypeProperties ) if thingtype : log . info ( 'The newly created thing type ARN is {0}' . format ( thingtype [ 'thingTypeArn' ] ) ) return { 'created' : True , 'thingTypeArn' : thingtype [ 'thingTypeArn' ] } else : log . warning ( 'thing type was not created' ) return { 'created' : False } except ClientError as e : return { 'created' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
given a valid config .