def create_client_from_parsed_globals(session, service_name, parsed_globals, overrides=None):
 client_args = {}
 if ('region' in parsed_globals):
  client_args['region_name'] = parsed_globals.region
 if ('endpoint_url' in parsed_globals):
  client_args['endpoint_url'] = parsed_globals.endpoint_url
 if ('verify_ssl' in parsed_globals):
  client_args['verify'] = parsed_globals.verify_ssl
 if overrides:
  client_args.update(overrides)
 return session.create_client(service_name, **client_args)

def create_client_from_parsed_globals ( session , service_name , parsed_globals , overrides = None ) : client_args = { } if ( 'region' in parsed_globals ) : client_args [ 'region_name' ] = parsed_globals . region if ( 'endpoint_url' in parsed_globals ) : client_args [ 'endpoint_url' ] = parsed_globals . endpoint_url if ( 'verify_ssl' in parsed_globals ) : client_args [ 'verify' ] = parsed_globals . verify_ssl if overrides : client_args . update ( overrides ) return session . create_client ( service_name , ** client_args )
creates a service client .