def deprecate_thing_type(thingTypeName, undoDeprecate=False, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  conn.deprecate_thing_type(thingTypeName=thingTypeName, undoDeprecate=undoDeprecate)
  deprecated = (True if (undoDeprecate is False) else False)
  return {'deprecated': deprecated}
 except ClientError as e:
  return {'deprecated': False, 'error': salt.utils.boto3.get_error(e)}

def deprecate_thing_type ( thingTypeName , undoDeprecate = False , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) conn . deprecate_thing_type ( thingTypeName = thingTypeName , undoDeprecate = undoDeprecate ) deprecated = ( True if ( undoDeprecate is False ) else False ) return { 'deprecated' : deprecated } except ClientError as e : return { 'deprecated' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
given a thing type name .