api.go 206 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package machinelearning provides a client for Amazon Machine Learning.
  3. package machinelearning
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. )
  10. const opAddTags = "AddTags"
  11. // AddTagsRequest generates a "aws/request.Request" representing the
  12. // client's request for the AddTags operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the AddTags method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the AddTagsRequest method.
  26. // req, resp := client.AddTagsRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *MachineLearning) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
  34. op := &request.Operation{
  35. Name: opAddTags,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &AddTagsInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &AddTagsOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Adds one or more tags to an object, up to a limit of 10. Each tag consists
  48. // of a key and an optional value. If you add a tag using a key that is already
  49. // associated with the ML object, AddTags updates the tag's value.
  50. func (c *MachineLearning) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
  51. req, out := c.AddTagsRequest(input)
  52. err := req.Send()
  53. return out, err
  54. }
  55. const opCreateBatchPrediction = "CreateBatchPrediction"
  56. // CreateBatchPredictionRequest generates a "aws/request.Request" representing the
  57. // client's request for the CreateBatchPrediction operation. The "output" return
  58. // value can be used to capture response data after the request's "Send" method
  59. // is called.
  60. //
  61. // Creating a request object using this method should be used when you want to inject
  62. // custom logic into the request's lifecycle using a custom handler, or if you want to
  63. // access properties on the request object before or after sending the request. If
  64. // you just want the service response, call the CreateBatchPrediction method directly
  65. // instead.
  66. //
  67. // Note: You must call the "Send" method on the returned request object in order
  68. // to execute the request.
  69. //
  70. // // Example sending a request using the CreateBatchPredictionRequest method.
  71. // req, resp := client.CreateBatchPredictionRequest(params)
  72. //
  73. // err := req.Send()
  74. // if err == nil { // resp is now filled
  75. // fmt.Println(resp)
  76. // }
  77. //
  78. func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredictionInput) (req *request.Request, output *CreateBatchPredictionOutput) {
  79. op := &request.Operation{
  80. Name: opCreateBatchPrediction,
  81. HTTPMethod: "POST",
  82. HTTPPath: "/",
  83. }
  84. if input == nil {
  85. input = &CreateBatchPredictionInput{}
  86. }
  87. req = c.newRequest(op, input, output)
  88. output = &CreateBatchPredictionOutput{}
  89. req.Data = output
  90. return
  91. }
  92. // Generates predictions for a group of observations. The observations to process
  93. // exist in one or more data files referenced by a DataSource. This operation
  94. // creates a new BatchPrediction, and uses an MLModel and the data files referenced
  95. // by the DataSource as information sources.
  96. //
  97. // CreateBatchPrediction is an asynchronous operation. In response to CreateBatchPrediction,
  98. // Amazon Machine Learning (Amazon ML) immediately returns and sets the BatchPrediction
  99. // status to PENDING. After the BatchPrediction completes, Amazon ML sets the
  100. // status to COMPLETED.
  101. //
  102. // You can poll for status updates by using the GetBatchPrediction operation
  103. // and checking the Status parameter of the result. After the COMPLETED status
  104. // appears, the results are available in the location specified by the OutputUri
  105. // parameter.
  106. func (c *MachineLearning) CreateBatchPrediction(input *CreateBatchPredictionInput) (*CreateBatchPredictionOutput, error) {
  107. req, out := c.CreateBatchPredictionRequest(input)
  108. err := req.Send()
  109. return out, err
  110. }
  111. const opCreateDataSourceFromRDS = "CreateDataSourceFromRDS"
  112. // CreateDataSourceFromRDSRequest generates a "aws/request.Request" representing the
  113. // client's request for the CreateDataSourceFromRDS operation. The "output" return
  114. // value can be used to capture response data after the request's "Send" method
  115. // is called.
  116. //
  117. // Creating a request object using this method should be used when you want to inject
  118. // custom logic into the request's lifecycle using a custom handler, or if you want to
  119. // access properties on the request object before or after sending the request. If
  120. // you just want the service response, call the CreateDataSourceFromRDS method directly
  121. // instead.
  122. //
  123. // Note: You must call the "Send" method on the returned request object in order
  124. // to execute the request.
  125. //
  126. // // Example sending a request using the CreateDataSourceFromRDSRequest method.
  127. // req, resp := client.CreateDataSourceFromRDSRequest(params)
  128. //
  129. // err := req.Send()
  130. // if err == nil { // resp is now filled
  131. // fmt.Println(resp)
  132. // }
  133. //
  134. func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSourceFromRDSInput) (req *request.Request, output *CreateDataSourceFromRDSOutput) {
  135. op := &request.Operation{
  136. Name: opCreateDataSourceFromRDS,
  137. HTTPMethod: "POST",
  138. HTTPPath: "/",
  139. }
  140. if input == nil {
  141. input = &CreateDataSourceFromRDSInput{}
  142. }
  143. req = c.newRequest(op, input, output)
  144. output = &CreateDataSourceFromRDSOutput{}
  145. req.Data = output
  146. return
  147. }
  148. // Creates a DataSource object from an Amazon Relational Database Service (http://aws.amazon.com/rds/)
  149. // (Amazon RDS). A DataSource references data that can be used to perform CreateMLModel,
  150. // CreateEvaluation, or CreateBatchPrediction operations.
  151. //
  152. // CreateDataSourceFromRDS is an asynchronous operation. In response to CreateDataSourceFromRDS,
  153. // Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource
  154. // status to PENDING. After the DataSource is created and ready for use, Amazon
  155. // ML sets the Status parameter to COMPLETED. DataSource in the COMPLETED or
  156. // PENDING state can be used only to perform >CreateMLModel>, CreateEvaluation,
  157. // or CreateBatchPrediction operations.
  158. //
  159. // If Amazon ML cannot accept the input source, it sets the Status parameter
  160. // to FAILED and includes an error message in the Message attribute of the GetDataSource
  161. // operation response.
  162. func (c *MachineLearning) CreateDataSourceFromRDS(input *CreateDataSourceFromRDSInput) (*CreateDataSourceFromRDSOutput, error) {
  163. req, out := c.CreateDataSourceFromRDSRequest(input)
  164. err := req.Send()
  165. return out, err
  166. }
  167. const opCreateDataSourceFromRedshift = "CreateDataSourceFromRedshift"
  168. // CreateDataSourceFromRedshiftRequest generates a "aws/request.Request" representing the
  169. // client's request for the CreateDataSourceFromRedshift operation. The "output" return
  170. // value can be used to capture response data after the request's "Send" method
  171. // is called.
  172. //
  173. // Creating a request object using this method should be used when you want to inject
  174. // custom logic into the request's lifecycle using a custom handler, or if you want to
  175. // access properties on the request object before or after sending the request. If
  176. // you just want the service response, call the CreateDataSourceFromRedshift method directly
  177. // instead.
  178. //
  179. // Note: You must call the "Send" method on the returned request object in order
  180. // to execute the request.
  181. //
  182. // // Example sending a request using the CreateDataSourceFromRedshiftRequest method.
  183. // req, resp := client.CreateDataSourceFromRedshiftRequest(params)
  184. //
  185. // err := req.Send()
  186. // if err == nil { // resp is now filled
  187. // fmt.Println(resp)
  188. // }
  189. //
  190. func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataSourceFromRedshiftInput) (req *request.Request, output *CreateDataSourceFromRedshiftOutput) {
  191. op := &request.Operation{
  192. Name: opCreateDataSourceFromRedshift,
  193. HTTPMethod: "POST",
  194. HTTPPath: "/",
  195. }
  196. if input == nil {
  197. input = &CreateDataSourceFromRedshiftInput{}
  198. }
  199. req = c.newRequest(op, input, output)
  200. output = &CreateDataSourceFromRedshiftOutput{}
  201. req.Data = output
  202. return
  203. }
  204. // Creates a DataSource from a database hosted on an Amazon Redshift cluster.
  205. // A DataSource references data that can be used to perform either CreateMLModel,
  206. // CreateEvaluation, or CreateBatchPrediction operations.
  207. //
  208. // CreateDataSourceFromRedshift is an asynchronous operation. In response to
  209. // CreateDataSourceFromRedshift, Amazon Machine Learning (Amazon ML) immediately
  210. // returns and sets the DataSource status to PENDING. After the DataSource is
  211. // created and ready for use, Amazon ML sets the Status parameter to COMPLETED.
  212. // DataSource in COMPLETED or PENDING states can be used to perform only CreateMLModel,
  213. // CreateEvaluation, or CreateBatchPrediction operations.
  214. //
  215. // If Amazon ML can't accept the input source, it sets the Status parameter
  216. // to FAILED and includes an error message in the Message attribute of the GetDataSource
  217. // operation response.
  218. //
  219. // The observations should be contained in the database hosted on an Amazon
  220. // Redshift cluster and should be specified by a SelectSqlQuery query. Amazon
  221. // ML executes an Unload command in Amazon Redshift to transfer the result set
  222. // of the SelectSqlQuery query to S3StagingLocation.
  223. //
  224. // After the DataSource has been created, it's ready for use in evaluations
  225. // and batch predictions. If you plan to use the DataSource to train an MLModel,
  226. // the DataSource also requires a recipe. A recipe describes how each input
  227. // variable will be used in training an MLModel. Will the variable be included
  228. // or excluded from training? Will the variable be manipulated; for example,
  229. // will it be combined with another variable or will it be split apart into
  230. // word combinations? The recipe provides answers to these questions.
  231. //
  232. // You can't change an existing datasource, but you can copy and modify the
  233. // settings from an existing Amazon Redshift datasource to create a new datasource.
  234. // To do so, call GetDataSource for an existing datasource and copy the values
  235. // to a CreateDataSource call. Change the settings that you want to change and
  236. // make sure that all required fields have the appropriate values.
  237. func (c *MachineLearning) CreateDataSourceFromRedshift(input *CreateDataSourceFromRedshiftInput) (*CreateDataSourceFromRedshiftOutput, error) {
  238. req, out := c.CreateDataSourceFromRedshiftRequest(input)
  239. err := req.Send()
  240. return out, err
  241. }
  242. const opCreateDataSourceFromS3 = "CreateDataSourceFromS3"
  243. // CreateDataSourceFromS3Request generates a "aws/request.Request" representing the
  244. // client's request for the CreateDataSourceFromS3 operation. The "output" return
  245. // value can be used to capture response data after the request's "Send" method
  246. // is called.
  247. //
  248. // Creating a request object using this method should be used when you want to inject
  249. // custom logic into the request's lifecycle using a custom handler, or if you want to
  250. // access properties on the request object before or after sending the request. If
  251. // you just want the service response, call the CreateDataSourceFromS3 method directly
  252. // instead.
  253. //
  254. // Note: You must call the "Send" method on the returned request object in order
  255. // to execute the request.
  256. //
  257. // // Example sending a request using the CreateDataSourceFromS3Request method.
  258. // req, resp := client.CreateDataSourceFromS3Request(params)
  259. //
  260. // err := req.Send()
  261. // if err == nil { // resp is now filled
  262. // fmt.Println(resp)
  263. // }
  264. //
  265. func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceFromS3Input) (req *request.Request, output *CreateDataSourceFromS3Output) {
  266. op := &request.Operation{
  267. Name: opCreateDataSourceFromS3,
  268. HTTPMethod: "POST",
  269. HTTPPath: "/",
  270. }
  271. if input == nil {
  272. input = &CreateDataSourceFromS3Input{}
  273. }
  274. req = c.newRequest(op, input, output)
  275. output = &CreateDataSourceFromS3Output{}
  276. req.Data = output
  277. return
  278. }
  279. // Creates a DataSource object. A DataSource references data that can be used
  280. // to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.
  281. //
  282. // CreateDataSourceFromS3 is an asynchronous operation. In response to CreateDataSourceFromS3,
  283. // Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource
  284. // status to PENDING. After the DataSource has been created and is ready for
  285. // use, Amazon ML sets the Status parameter to COMPLETED. DataSource in the
  286. // COMPLETED or PENDING state can be used to perform only CreateMLModel, CreateEvaluation
  287. // or CreateBatchPrediction operations.
  288. //
  289. // If Amazon ML can't accept the input source, it sets the Status parameter
  290. // to FAILED and includes an error message in the Message attribute of the GetDataSource
  291. // operation response.
  292. //
  293. // The observation data used in a DataSource should be ready to use; that is,
  294. // it should have a consistent structure, and missing data values should be
  295. // kept to a minimum. The observation data must reside in one or more .csv files
  296. // in an Amazon Simple Storage Service (Amazon S3) location, along with a schema
  297. // that describes the data items by name and type. The same schema must be used
  298. // for all of the data files referenced by the DataSource.
  299. //
  300. // After the DataSource has been created, it's ready to use in evaluations
  301. // and batch predictions. If you plan to use the DataSource to train an MLModel,
  302. // the DataSource also needs a recipe. A recipe describes how each input variable
  303. // will be used in training an MLModel. Will the variable be included or excluded
  304. // from training? Will the variable be manipulated; for example, will it be
  305. // combined with another variable or will it be split apart into word combinations?
  306. // The recipe provides answers to these questions.
  307. func (c *MachineLearning) CreateDataSourceFromS3(input *CreateDataSourceFromS3Input) (*CreateDataSourceFromS3Output, error) {
  308. req, out := c.CreateDataSourceFromS3Request(input)
  309. err := req.Send()
  310. return out, err
  311. }
  312. const opCreateEvaluation = "CreateEvaluation"
  313. // CreateEvaluationRequest generates a "aws/request.Request" representing the
  314. // client's request for the CreateEvaluation operation. The "output" return
  315. // value can be used to capture response data after the request's "Send" method
  316. // is called.
  317. //
  318. // Creating a request object using this method should be used when you want to inject
  319. // custom logic into the request's lifecycle using a custom handler, or if you want to
  320. // access properties on the request object before or after sending the request. If
  321. // you just want the service response, call the CreateEvaluation method directly
  322. // instead.
  323. //
  324. // Note: You must call the "Send" method on the returned request object in order
  325. // to execute the request.
  326. //
  327. // // Example sending a request using the CreateEvaluationRequest method.
  328. // req, resp := client.CreateEvaluationRequest(params)
  329. //
  330. // err := req.Send()
  331. // if err == nil { // resp is now filled
  332. // fmt.Println(resp)
  333. // }
  334. //
  335. func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) (req *request.Request, output *CreateEvaluationOutput) {
  336. op := &request.Operation{
  337. Name: opCreateEvaluation,
  338. HTTPMethod: "POST",
  339. HTTPPath: "/",
  340. }
  341. if input == nil {
  342. input = &CreateEvaluationInput{}
  343. }
  344. req = c.newRequest(op, input, output)
  345. output = &CreateEvaluationOutput{}
  346. req.Data = output
  347. return
  348. }
  349. // Creates a new Evaluation of an MLModel. An MLModel is evaluated on a set
  350. // of observations associated to a DataSource. Like a DataSource for an MLModel,
  351. // the DataSource for an Evaluation contains values for the Target Variable.
  352. // The Evaluation compares the predicted result for each observation to the
  353. // actual outcome and provides a summary so that you know how effective the
  354. // MLModel functions on the test data. Evaluation generates a relevant performance
  355. // metric, such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on
  356. // the corresponding MLModelType: BINARY, REGRESSION or MULTICLASS.
  357. //
  358. // CreateEvaluation is an asynchronous operation. In response to CreateEvaluation,
  359. // Amazon Machine Learning (Amazon ML) immediately returns and sets the evaluation
  360. // status to PENDING. After the Evaluation is created and ready for use, Amazon
  361. // ML sets the status to COMPLETED.
  362. //
  363. // You can use the GetEvaluation operation to check progress of the evaluation
  364. // during the creation operation.
  365. func (c *MachineLearning) CreateEvaluation(input *CreateEvaluationInput) (*CreateEvaluationOutput, error) {
  366. req, out := c.CreateEvaluationRequest(input)
  367. err := req.Send()
  368. return out, err
  369. }
  370. const opCreateMLModel = "CreateMLModel"
  371. // CreateMLModelRequest generates a "aws/request.Request" representing the
  372. // client's request for the CreateMLModel operation. The "output" return
  373. // value can be used to capture response data after the request's "Send" method
  374. // is called.
  375. //
  376. // Creating a request object using this method should be used when you want to inject
  377. // custom logic into the request's lifecycle using a custom handler, or if you want to
  378. // access properties on the request object before or after sending the request. If
  379. // you just want the service response, call the CreateMLModel method directly
  380. // instead.
  381. //
  382. // Note: You must call the "Send" method on the returned request object in order
  383. // to execute the request.
  384. //
  385. // // Example sending a request using the CreateMLModelRequest method.
  386. // req, resp := client.CreateMLModelRequest(params)
  387. //
  388. // err := req.Send()
  389. // if err == nil { // resp is now filled
  390. // fmt.Println(resp)
  391. // }
  392. //
  393. func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req *request.Request, output *CreateMLModelOutput) {
  394. op := &request.Operation{
  395. Name: opCreateMLModel,
  396. HTTPMethod: "POST",
  397. HTTPPath: "/",
  398. }
  399. if input == nil {
  400. input = &CreateMLModelInput{}
  401. }
  402. req = c.newRequest(op, input, output)
  403. output = &CreateMLModelOutput{}
  404. req.Data = output
  405. return
  406. }
  407. // Creates a new MLModel using the DataSource and the recipe as information
  408. // sources.
  409. //
  410. // An MLModel is nearly immutable. Users can update only the MLModelName and
  411. // the ScoreThreshold in an MLModel without creating a new MLModel.
  412. //
  413. // CreateMLModel is an asynchronous operation. In response to CreateMLModel,
  414. // Amazon Machine Learning (Amazon ML) immediately returns and sets the MLModel
  415. // status to PENDING. After the MLModel has been created and ready is for use,
  416. // Amazon ML sets the status to COMPLETED.
  417. //
  418. // You can use the GetMLModel operation to check the progress of the MLModel
  419. // during the creation operation.
  420. //
  421. // CreateMLModel requires a DataSource with computed statistics, which can
  422. // be created by setting ComputeStatistics to true in CreateDataSourceFromRDS,
  423. // CreateDataSourceFromS3, or CreateDataSourceFromRedshift operations.
  424. func (c *MachineLearning) CreateMLModel(input *CreateMLModelInput) (*CreateMLModelOutput, error) {
  425. req, out := c.CreateMLModelRequest(input)
  426. err := req.Send()
  427. return out, err
  428. }
  429. const opCreateRealtimeEndpoint = "CreateRealtimeEndpoint"
  430. // CreateRealtimeEndpointRequest generates a "aws/request.Request" representing the
  431. // client's request for the CreateRealtimeEndpoint operation. The "output" return
  432. // value can be used to capture response data after the request's "Send" method
  433. // is called.
  434. //
  435. // Creating a request object using this method should be used when you want to inject
  436. // custom logic into the request's lifecycle using a custom handler, or if you want to
  437. // access properties on the request object before or after sending the request. If
  438. // you just want the service response, call the CreateRealtimeEndpoint method directly
  439. // instead.
  440. //
  441. // Note: You must call the "Send" method on the returned request object in order
  442. // to execute the request.
  443. //
  444. // // Example sending a request using the CreateRealtimeEndpointRequest method.
  445. // req, resp := client.CreateRealtimeEndpointRequest(params)
  446. //
  447. // err := req.Send()
  448. // if err == nil { // resp is now filled
  449. // fmt.Println(resp)
  450. // }
  451. //
  452. func (c *MachineLearning) CreateRealtimeEndpointRequest(input *CreateRealtimeEndpointInput) (req *request.Request, output *CreateRealtimeEndpointOutput) {
  453. op := &request.Operation{
  454. Name: opCreateRealtimeEndpoint,
  455. HTTPMethod: "POST",
  456. HTTPPath: "/",
  457. }
  458. if input == nil {
  459. input = &CreateRealtimeEndpointInput{}
  460. }
  461. req = c.newRequest(op, input, output)
  462. output = &CreateRealtimeEndpointOutput{}
  463. req.Data = output
  464. return
  465. }
  466. // Creates a real-time endpoint for the MLModel. The endpoint contains the URI
  467. // of the MLModel; that is, the location to send real-time prediction requests
  468. // for the specified MLModel.
  469. func (c *MachineLearning) CreateRealtimeEndpoint(input *CreateRealtimeEndpointInput) (*CreateRealtimeEndpointOutput, error) {
  470. req, out := c.CreateRealtimeEndpointRequest(input)
  471. err := req.Send()
  472. return out, err
  473. }
  474. const opDeleteBatchPrediction = "DeleteBatchPrediction"
  475. // DeleteBatchPredictionRequest generates a "aws/request.Request" representing the
  476. // client's request for the DeleteBatchPrediction operation. The "output" return
  477. // value can be used to capture response data after the request's "Send" method
  478. // is called.
  479. //
  480. // Creating a request object using this method should be used when you want to inject
  481. // custom logic into the request's lifecycle using a custom handler, or if you want to
  482. // access properties on the request object before or after sending the request. If
  483. // you just want the service response, call the DeleteBatchPrediction method directly
  484. // instead.
  485. //
  486. // Note: You must call the "Send" method on the returned request object in order
  487. // to execute the request.
  488. //
  489. // // Example sending a request using the DeleteBatchPredictionRequest method.
  490. // req, resp := client.DeleteBatchPredictionRequest(params)
  491. //
  492. // err := req.Send()
  493. // if err == nil { // resp is now filled
  494. // fmt.Println(resp)
  495. // }
  496. //
  497. func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredictionInput) (req *request.Request, output *DeleteBatchPredictionOutput) {
  498. op := &request.Operation{
  499. Name: opDeleteBatchPrediction,
  500. HTTPMethod: "POST",
  501. HTTPPath: "/",
  502. }
  503. if input == nil {
  504. input = &DeleteBatchPredictionInput{}
  505. }
  506. req = c.newRequest(op, input, output)
  507. output = &DeleteBatchPredictionOutput{}
  508. req.Data = output
  509. return
  510. }
  511. // Assigns the DELETED status to a BatchPrediction, rendering it unusable.
  512. //
  513. // After using the DeleteBatchPrediction operation, you can use the GetBatchPrediction
  514. // operation to verify that the status of the BatchPrediction changed to DELETED.
  515. //
  516. // Caution: The result of the DeleteBatchPrediction operation is irreversible.
  517. func (c *MachineLearning) DeleteBatchPrediction(input *DeleteBatchPredictionInput) (*DeleteBatchPredictionOutput, error) {
  518. req, out := c.DeleteBatchPredictionRequest(input)
  519. err := req.Send()
  520. return out, err
  521. }
  522. const opDeleteDataSource = "DeleteDataSource"
  523. // DeleteDataSourceRequest generates a "aws/request.Request" representing the
  524. // client's request for the DeleteDataSource operation. The "output" return
  525. // value can be used to capture response data after the request's "Send" method
  526. // is called.
  527. //
  528. // Creating a request object using this method should be used when you want to inject
  529. // custom logic into the request's lifecycle using a custom handler, or if you want to
  530. // access properties on the request object before or after sending the request. If
  531. // you just want the service response, call the DeleteDataSource method directly
  532. // instead.
  533. //
  534. // Note: You must call the "Send" method on the returned request object in order
  535. // to execute the request.
  536. //
  537. // // Example sending a request using the DeleteDataSourceRequest method.
  538. // req, resp := client.DeleteDataSourceRequest(params)
  539. //
  540. // err := req.Send()
  541. // if err == nil { // resp is now filled
  542. // fmt.Println(resp)
  543. // }
  544. //
  545. func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *request.Request, output *DeleteDataSourceOutput) {
  546. op := &request.Operation{
  547. Name: opDeleteDataSource,
  548. HTTPMethod: "POST",
  549. HTTPPath: "/",
  550. }
  551. if input == nil {
  552. input = &DeleteDataSourceInput{}
  553. }
  554. req = c.newRequest(op, input, output)
  555. output = &DeleteDataSourceOutput{}
  556. req.Data = output
  557. return
  558. }
  559. // Assigns the DELETED status to a DataSource, rendering it unusable.
  560. //
  561. // After using the DeleteDataSource operation, you can use the GetDataSource
  562. // operation to verify that the status of the DataSource changed to DELETED.
  563. //
  564. // Caution: The results of the DeleteDataSource operation are irreversible.
  565. func (c *MachineLearning) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) {
  566. req, out := c.DeleteDataSourceRequest(input)
  567. err := req.Send()
  568. return out, err
  569. }
  570. const opDeleteEvaluation = "DeleteEvaluation"
  571. // DeleteEvaluationRequest generates a "aws/request.Request" representing the
  572. // client's request for the DeleteEvaluation operation. The "output" return
  573. // value can be used to capture response data after the request's "Send" method
  574. // is called.
  575. //
  576. // Creating a request object using this method should be used when you want to inject
  577. // custom logic into the request's lifecycle using a custom handler, or if you want to
  578. // access properties on the request object before or after sending the request. If
  579. // you just want the service response, call the DeleteEvaluation method directly
  580. // instead.
  581. //
  582. // Note: You must call the "Send" method on the returned request object in order
  583. // to execute the request.
  584. //
  585. // // Example sending a request using the DeleteEvaluationRequest method.
  586. // req, resp := client.DeleteEvaluationRequest(params)
  587. //
  588. // err := req.Send()
  589. // if err == nil { // resp is now filled
  590. // fmt.Println(resp)
  591. // }
  592. //
  593. func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) (req *request.Request, output *DeleteEvaluationOutput) {
  594. op := &request.Operation{
  595. Name: opDeleteEvaluation,
  596. HTTPMethod: "POST",
  597. HTTPPath: "/",
  598. }
  599. if input == nil {
  600. input = &DeleteEvaluationInput{}
  601. }
  602. req = c.newRequest(op, input, output)
  603. output = &DeleteEvaluationOutput{}
  604. req.Data = output
  605. return
  606. }
  607. // Assigns the DELETED status to an Evaluation, rendering it unusable.
  608. //
  609. // After invoking the DeleteEvaluation operation, you can use the GetEvaluation
  610. // operation to verify that the status of the Evaluation changed to DELETED.
  611. //
  612. // Caution The results of the DeleteEvaluation operation are irreversible.
  613. func (c *MachineLearning) DeleteEvaluation(input *DeleteEvaluationInput) (*DeleteEvaluationOutput, error) {
  614. req, out := c.DeleteEvaluationRequest(input)
  615. err := req.Send()
  616. return out, err
  617. }
  618. const opDeleteMLModel = "DeleteMLModel"
  619. // DeleteMLModelRequest generates a "aws/request.Request" representing the
  620. // client's request for the DeleteMLModel operation. The "output" return
  621. // value can be used to capture response data after the request's "Send" method
  622. // is called.
  623. //
  624. // Creating a request object using this method should be used when you want to inject
  625. // custom logic into the request's lifecycle using a custom handler, or if you want to
  626. // access properties on the request object before or after sending the request. If
  627. // you just want the service response, call the DeleteMLModel method directly
  628. // instead.
  629. //
  630. // Note: You must call the "Send" method on the returned request object in order
  631. // to execute the request.
  632. //
  633. // // Example sending a request using the DeleteMLModelRequest method.
  634. // req, resp := client.DeleteMLModelRequest(params)
  635. //
  636. // err := req.Send()
  637. // if err == nil { // resp is now filled
  638. // fmt.Println(resp)
  639. // }
  640. //
  641. func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req *request.Request, output *DeleteMLModelOutput) {
  642. op := &request.Operation{
  643. Name: opDeleteMLModel,
  644. HTTPMethod: "POST",
  645. HTTPPath: "/",
  646. }
  647. if input == nil {
  648. input = &DeleteMLModelInput{}
  649. }
  650. req = c.newRequest(op, input, output)
  651. output = &DeleteMLModelOutput{}
  652. req.Data = output
  653. return
  654. }
  655. // Assigns the DELETED status to an MLModel, rendering it unusable.
  656. //
  657. // After using the DeleteMLModel operation, you can use the GetMLModel operation
  658. // to verify that the status of the MLModel changed to DELETED.
  659. //
  660. // Caution: The result of the DeleteMLModel operation is irreversible.
  661. func (c *MachineLearning) DeleteMLModel(input *DeleteMLModelInput) (*DeleteMLModelOutput, error) {
  662. req, out := c.DeleteMLModelRequest(input)
  663. err := req.Send()
  664. return out, err
  665. }
  666. const opDeleteRealtimeEndpoint = "DeleteRealtimeEndpoint"
  667. // DeleteRealtimeEndpointRequest generates a "aws/request.Request" representing the
  668. // client's request for the DeleteRealtimeEndpoint operation. The "output" return
  669. // value can be used to capture response data after the request's "Send" method
  670. // is called.
  671. //
  672. // Creating a request object using this method should be used when you want to inject
  673. // custom logic into the request's lifecycle using a custom handler, or if you want to
  674. // access properties on the request object before or after sending the request. If
  675. // you just want the service response, call the DeleteRealtimeEndpoint method directly
  676. // instead.
  677. //
  678. // Note: You must call the "Send" method on the returned request object in order
  679. // to execute the request.
  680. //
  681. // // Example sending a request using the DeleteRealtimeEndpointRequest method.
  682. // req, resp := client.DeleteRealtimeEndpointRequest(params)
  683. //
  684. // err := req.Send()
  685. // if err == nil { // resp is now filled
  686. // fmt.Println(resp)
  687. // }
  688. //
  689. func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEndpointInput) (req *request.Request, output *DeleteRealtimeEndpointOutput) {
  690. op := &request.Operation{
  691. Name: opDeleteRealtimeEndpoint,
  692. HTTPMethod: "POST",
  693. HTTPPath: "/",
  694. }
  695. if input == nil {
  696. input = &DeleteRealtimeEndpointInput{}
  697. }
  698. req = c.newRequest(op, input, output)
  699. output = &DeleteRealtimeEndpointOutput{}
  700. req.Data = output
  701. return
  702. }
  703. // Deletes a real time endpoint of an MLModel.
  704. func (c *MachineLearning) DeleteRealtimeEndpoint(input *DeleteRealtimeEndpointInput) (*DeleteRealtimeEndpointOutput, error) {
  705. req, out := c.DeleteRealtimeEndpointRequest(input)
  706. err := req.Send()
  707. return out, err
  708. }
  709. const opDeleteTags = "DeleteTags"
  710. // DeleteTagsRequest generates a "aws/request.Request" representing the
  711. // client's request for the DeleteTags operation. The "output" return
  712. // value can be used to capture response data after the request's "Send" method
  713. // is called.
  714. //
  715. // Creating a request object using this method should be used when you want to inject
  716. // custom logic into the request's lifecycle using a custom handler, or if you want to
  717. // access properties on the request object before or after sending the request. If
  718. // you just want the service response, call the DeleteTags method directly
  719. // instead.
  720. //
  721. // Note: You must call the "Send" method on the returned request object in order
  722. // to execute the request.
  723. //
  724. // // Example sending a request using the DeleteTagsRequest method.
  725. // req, resp := client.DeleteTagsRequest(params)
  726. //
  727. // err := req.Send()
  728. // if err == nil { // resp is now filled
  729. // fmt.Println(resp)
  730. // }
  731. //
  732. func (c *MachineLearning) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  733. op := &request.Operation{
  734. Name: opDeleteTags,
  735. HTTPMethod: "POST",
  736. HTTPPath: "/",
  737. }
  738. if input == nil {
  739. input = &DeleteTagsInput{}
  740. }
  741. req = c.newRequest(op, input, output)
  742. output = &DeleteTagsOutput{}
  743. req.Data = output
  744. return
  745. }
  746. // Deletes the specified tags associated with an ML object. After this operation
  747. // is complete, you can't recover deleted tags.
  748. //
  749. // If you specify a tag that doesn't exist, Amazon ML ignores it.
  750. func (c *MachineLearning) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  751. req, out := c.DeleteTagsRequest(input)
  752. err := req.Send()
  753. return out, err
  754. }
  755. const opDescribeBatchPredictions = "DescribeBatchPredictions"
  756. // DescribeBatchPredictionsRequest generates a "aws/request.Request" representing the
  757. // client's request for the DescribeBatchPredictions operation. The "output" return
  758. // value can be used to capture response data after the request's "Send" method
  759. // is called.
  760. //
  761. // Creating a request object using this method should be used when you want to inject
  762. // custom logic into the request's lifecycle using a custom handler, or if you want to
  763. // access properties on the request object before or after sending the request. If
  764. // you just want the service response, call the DescribeBatchPredictions method directly
  765. // instead.
  766. //
  767. // Note: You must call the "Send" method on the returned request object in order
  768. // to execute the request.
  769. //
  770. // // Example sending a request using the DescribeBatchPredictionsRequest method.
  771. // req, resp := client.DescribeBatchPredictionsRequest(params)
  772. //
  773. // err := req.Send()
  774. // if err == nil { // resp is now filled
  775. // fmt.Println(resp)
  776. // }
  777. //
  778. func (c *MachineLearning) DescribeBatchPredictionsRequest(input *DescribeBatchPredictionsInput) (req *request.Request, output *DescribeBatchPredictionsOutput) {
  779. op := &request.Operation{
  780. Name: opDescribeBatchPredictions,
  781. HTTPMethod: "POST",
  782. HTTPPath: "/",
  783. Paginator: &request.Paginator{
  784. InputTokens: []string{"NextToken"},
  785. OutputTokens: []string{"NextToken"},
  786. LimitToken: "Limit",
  787. TruncationToken: "",
  788. },
  789. }
  790. if input == nil {
  791. input = &DescribeBatchPredictionsInput{}
  792. }
  793. req = c.newRequest(op, input, output)
  794. output = &DescribeBatchPredictionsOutput{}
  795. req.Data = output
  796. return
  797. }
  798. // Returns a list of BatchPrediction operations that match the search criteria
  799. // in the request.
  800. func (c *MachineLearning) DescribeBatchPredictions(input *DescribeBatchPredictionsInput) (*DescribeBatchPredictionsOutput, error) {
  801. req, out := c.DescribeBatchPredictionsRequest(input)
  802. err := req.Send()
  803. return out, err
  804. }
  805. // DescribeBatchPredictionsPages iterates over the pages of a DescribeBatchPredictions operation,
  806. // calling the "fn" function with the response data for each page. To stop
  807. // iterating, return false from the fn function.
  808. //
  809. // See DescribeBatchPredictions method for more information on how to use this operation.
  810. //
  811. // Note: This operation can generate multiple requests to a service.
  812. //
  813. // // Example iterating over at most 3 pages of a DescribeBatchPredictions operation.
  814. // pageNum := 0
  815. // err := client.DescribeBatchPredictionsPages(params,
  816. // func(page *DescribeBatchPredictionsOutput, lastPage bool) bool {
  817. // pageNum++
  818. // fmt.Println(page)
  819. // return pageNum <= 3
  820. // })
  821. //
  822. func (c *MachineLearning) DescribeBatchPredictionsPages(input *DescribeBatchPredictionsInput, fn func(p *DescribeBatchPredictionsOutput, lastPage bool) (shouldContinue bool)) error {
  823. page, _ := c.DescribeBatchPredictionsRequest(input)
  824. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  825. return page.EachPage(func(p interface{}, lastPage bool) bool {
  826. return fn(p.(*DescribeBatchPredictionsOutput), lastPage)
  827. })
  828. }
  829. const opDescribeDataSources = "DescribeDataSources"
  830. // DescribeDataSourcesRequest generates a "aws/request.Request" representing the
  831. // client's request for the DescribeDataSources operation. The "output" return
  832. // value can be used to capture response data after the request's "Send" method
  833. // is called.
  834. //
  835. // Creating a request object using this method should be used when you want to inject
  836. // custom logic into the request's lifecycle using a custom handler, or if you want to
  837. // access properties on the request object before or after sending the request. If
  838. // you just want the service response, call the DescribeDataSources method directly
  839. // instead.
  840. //
  841. // Note: You must call the "Send" method on the returned request object in order
  842. // to execute the request.
  843. //
  844. // // Example sending a request using the DescribeDataSourcesRequest method.
  845. // req, resp := client.DescribeDataSourcesRequest(params)
  846. //
  847. // err := req.Send()
  848. // if err == nil { // resp is now filled
  849. // fmt.Println(resp)
  850. // }
  851. //
  852. func (c *MachineLearning) DescribeDataSourcesRequest(input *DescribeDataSourcesInput) (req *request.Request, output *DescribeDataSourcesOutput) {
  853. op := &request.Operation{
  854. Name: opDescribeDataSources,
  855. HTTPMethod: "POST",
  856. HTTPPath: "/",
  857. Paginator: &request.Paginator{
  858. InputTokens: []string{"NextToken"},
  859. OutputTokens: []string{"NextToken"},
  860. LimitToken: "Limit",
  861. TruncationToken: "",
  862. },
  863. }
  864. if input == nil {
  865. input = &DescribeDataSourcesInput{}
  866. }
  867. req = c.newRequest(op, input, output)
  868. output = &DescribeDataSourcesOutput{}
  869. req.Data = output
  870. return
  871. }
  872. // Returns a list of DataSource that match the search criteria in the request.
  873. func (c *MachineLearning) DescribeDataSources(input *DescribeDataSourcesInput) (*DescribeDataSourcesOutput, error) {
  874. req, out := c.DescribeDataSourcesRequest(input)
  875. err := req.Send()
  876. return out, err
  877. }
  878. // DescribeDataSourcesPages iterates over the pages of a DescribeDataSources operation,
  879. // calling the "fn" function with the response data for each page. To stop
  880. // iterating, return false from the fn function.
  881. //
  882. // See DescribeDataSources method for more information on how to use this operation.
  883. //
  884. // Note: This operation can generate multiple requests to a service.
  885. //
  886. // // Example iterating over at most 3 pages of a DescribeDataSources operation.
  887. // pageNum := 0
  888. // err := client.DescribeDataSourcesPages(params,
  889. // func(page *DescribeDataSourcesOutput, lastPage bool) bool {
  890. // pageNum++
  891. // fmt.Println(page)
  892. // return pageNum <= 3
  893. // })
  894. //
  895. func (c *MachineLearning) DescribeDataSourcesPages(input *DescribeDataSourcesInput, fn func(p *DescribeDataSourcesOutput, lastPage bool) (shouldContinue bool)) error {
  896. page, _ := c.DescribeDataSourcesRequest(input)
  897. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  898. return page.EachPage(func(p interface{}, lastPage bool) bool {
  899. return fn(p.(*DescribeDataSourcesOutput), lastPage)
  900. })
  901. }
  902. const opDescribeEvaluations = "DescribeEvaluations"
  903. // DescribeEvaluationsRequest generates a "aws/request.Request" representing the
  904. // client's request for the DescribeEvaluations operation. The "output" return
  905. // value can be used to capture response data after the request's "Send" method
  906. // is called.
  907. //
  908. // Creating a request object using this method should be used when you want to inject
  909. // custom logic into the request's lifecycle using a custom handler, or if you want to
  910. // access properties on the request object before or after sending the request. If
  911. // you just want the service response, call the DescribeEvaluations method directly
  912. // instead.
  913. //
  914. // Note: You must call the "Send" method on the returned request object in order
  915. // to execute the request.
  916. //
  917. // // Example sending a request using the DescribeEvaluationsRequest method.
  918. // req, resp := client.DescribeEvaluationsRequest(params)
  919. //
  920. // err := req.Send()
  921. // if err == nil { // resp is now filled
  922. // fmt.Println(resp)
  923. // }
  924. //
  925. func (c *MachineLearning) DescribeEvaluationsRequest(input *DescribeEvaluationsInput) (req *request.Request, output *DescribeEvaluationsOutput) {
  926. op := &request.Operation{
  927. Name: opDescribeEvaluations,
  928. HTTPMethod: "POST",
  929. HTTPPath: "/",
  930. Paginator: &request.Paginator{
  931. InputTokens: []string{"NextToken"},
  932. OutputTokens: []string{"NextToken"},
  933. LimitToken: "Limit",
  934. TruncationToken: "",
  935. },
  936. }
  937. if input == nil {
  938. input = &DescribeEvaluationsInput{}
  939. }
  940. req = c.newRequest(op, input, output)
  941. output = &DescribeEvaluationsOutput{}
  942. req.Data = output
  943. return
  944. }
  945. // Returns a list of DescribeEvaluations that match the search criteria in the
  946. // request.
  947. func (c *MachineLearning) DescribeEvaluations(input *DescribeEvaluationsInput) (*DescribeEvaluationsOutput, error) {
  948. req, out := c.DescribeEvaluationsRequest(input)
  949. err := req.Send()
  950. return out, err
  951. }
  952. // DescribeEvaluationsPages iterates over the pages of a DescribeEvaluations operation,
  953. // calling the "fn" function with the response data for each page. To stop
  954. // iterating, return false from the fn function.
  955. //
  956. // See DescribeEvaluations method for more information on how to use this operation.
  957. //
  958. // Note: This operation can generate multiple requests to a service.
  959. //
  960. // // Example iterating over at most 3 pages of a DescribeEvaluations operation.
  961. // pageNum := 0
  962. // err := client.DescribeEvaluationsPages(params,
  963. // func(page *DescribeEvaluationsOutput, lastPage bool) bool {
  964. // pageNum++
  965. // fmt.Println(page)
  966. // return pageNum <= 3
  967. // })
  968. //
  969. func (c *MachineLearning) DescribeEvaluationsPages(input *DescribeEvaluationsInput, fn func(p *DescribeEvaluationsOutput, lastPage bool) (shouldContinue bool)) error {
  970. page, _ := c.DescribeEvaluationsRequest(input)
  971. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  972. return page.EachPage(func(p interface{}, lastPage bool) bool {
  973. return fn(p.(*DescribeEvaluationsOutput), lastPage)
  974. })
  975. }
  976. const opDescribeMLModels = "DescribeMLModels"
  977. // DescribeMLModelsRequest generates a "aws/request.Request" representing the
  978. // client's request for the DescribeMLModels operation. The "output" return
  979. // value can be used to capture response data after the request's "Send" method
  980. // is called.
  981. //
  982. // Creating a request object using this method should be used when you want to inject
  983. // custom logic into the request's lifecycle using a custom handler, or if you want to
  984. // access properties on the request object before or after sending the request. If
  985. // you just want the service response, call the DescribeMLModels method directly
  986. // instead.
  987. //
  988. // Note: You must call the "Send" method on the returned request object in order
  989. // to execute the request.
  990. //
  991. // // Example sending a request using the DescribeMLModelsRequest method.
  992. // req, resp := client.DescribeMLModelsRequest(params)
  993. //
  994. // err := req.Send()
  995. // if err == nil { // resp is now filled
  996. // fmt.Println(resp)
  997. // }
  998. //
  999. func (c *MachineLearning) DescribeMLModelsRequest(input *DescribeMLModelsInput) (req *request.Request, output *DescribeMLModelsOutput) {
  1000. op := &request.Operation{
  1001. Name: opDescribeMLModels,
  1002. HTTPMethod: "POST",
  1003. HTTPPath: "/",
  1004. Paginator: &request.Paginator{
  1005. InputTokens: []string{"NextToken"},
  1006. OutputTokens: []string{"NextToken"},
  1007. LimitToken: "Limit",
  1008. TruncationToken: "",
  1009. },
  1010. }
  1011. if input == nil {
  1012. input = &DescribeMLModelsInput{}
  1013. }
  1014. req = c.newRequest(op, input, output)
  1015. output = &DescribeMLModelsOutput{}
  1016. req.Data = output
  1017. return
  1018. }
  1019. // Returns a list of MLModel that match the search criteria in the request.
  1020. func (c *MachineLearning) DescribeMLModels(input *DescribeMLModelsInput) (*DescribeMLModelsOutput, error) {
  1021. req, out := c.DescribeMLModelsRequest(input)
  1022. err := req.Send()
  1023. return out, err
  1024. }
  1025. // DescribeMLModelsPages iterates over the pages of a DescribeMLModels operation,
  1026. // calling the "fn" function with the response data for each page. To stop
  1027. // iterating, return false from the fn function.
  1028. //
  1029. // See DescribeMLModels method for more information on how to use this operation.
  1030. //
  1031. // Note: This operation can generate multiple requests to a service.
  1032. //
  1033. // // Example iterating over at most 3 pages of a DescribeMLModels operation.
  1034. // pageNum := 0
  1035. // err := client.DescribeMLModelsPages(params,
  1036. // func(page *DescribeMLModelsOutput, lastPage bool) bool {
  1037. // pageNum++
  1038. // fmt.Println(page)
  1039. // return pageNum <= 3
  1040. // })
  1041. //
  1042. func (c *MachineLearning) DescribeMLModelsPages(input *DescribeMLModelsInput, fn func(p *DescribeMLModelsOutput, lastPage bool) (shouldContinue bool)) error {
  1043. page, _ := c.DescribeMLModelsRequest(input)
  1044. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1045. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1046. return fn(p.(*DescribeMLModelsOutput), lastPage)
  1047. })
  1048. }
  1049. const opDescribeTags = "DescribeTags"
  1050. // DescribeTagsRequest generates a "aws/request.Request" representing the
  1051. // client's request for the DescribeTags operation. The "output" return
  1052. // value can be used to capture response data after the request's "Send" method
  1053. // is called.
  1054. //
  1055. // Creating a request object using this method should be used when you want to inject
  1056. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1057. // access properties on the request object before or after sending the request. If
  1058. // you just want the service response, call the DescribeTags method directly
  1059. // instead.
  1060. //
  1061. // Note: You must call the "Send" method on the returned request object in order
  1062. // to execute the request.
  1063. //
  1064. // // Example sending a request using the DescribeTagsRequest method.
  1065. // req, resp := client.DescribeTagsRequest(params)
  1066. //
  1067. // err := req.Send()
  1068. // if err == nil { // resp is now filled
  1069. // fmt.Println(resp)
  1070. // }
  1071. //
  1072. func (c *MachineLearning) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  1073. op := &request.Operation{
  1074. Name: opDescribeTags,
  1075. HTTPMethod: "POST",
  1076. HTTPPath: "/",
  1077. }
  1078. if input == nil {
  1079. input = &DescribeTagsInput{}
  1080. }
  1081. req = c.newRequest(op, input, output)
  1082. output = &DescribeTagsOutput{}
  1083. req.Data = output
  1084. return
  1085. }
  1086. // Describes one or more of the tags for your Amazon ML object.
  1087. func (c *MachineLearning) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  1088. req, out := c.DescribeTagsRequest(input)
  1089. err := req.Send()
  1090. return out, err
  1091. }
  1092. const opGetBatchPrediction = "GetBatchPrediction"
  1093. // GetBatchPredictionRequest generates a "aws/request.Request" representing the
  1094. // client's request for the GetBatchPrediction operation. The "output" return
  1095. // value can be used to capture response data after the request's "Send" method
  1096. // is called.
  1097. //
  1098. // Creating a request object using this method should be used when you want to inject
  1099. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1100. // access properties on the request object before or after sending the request. If
  1101. // you just want the service response, call the GetBatchPrediction method directly
  1102. // instead.
  1103. //
  1104. // Note: You must call the "Send" method on the returned request object in order
  1105. // to execute the request.
  1106. //
  1107. // // Example sending a request using the GetBatchPredictionRequest method.
  1108. // req, resp := client.GetBatchPredictionRequest(params)
  1109. //
  1110. // err := req.Send()
  1111. // if err == nil { // resp is now filled
  1112. // fmt.Println(resp)
  1113. // }
  1114. //
  1115. func (c *MachineLearning) GetBatchPredictionRequest(input *GetBatchPredictionInput) (req *request.Request, output *GetBatchPredictionOutput) {
  1116. op := &request.Operation{
  1117. Name: opGetBatchPrediction,
  1118. HTTPMethod: "POST",
  1119. HTTPPath: "/",
  1120. }
  1121. if input == nil {
  1122. input = &GetBatchPredictionInput{}
  1123. }
  1124. req = c.newRequest(op, input, output)
  1125. output = &GetBatchPredictionOutput{}
  1126. req.Data = output
  1127. return
  1128. }
  1129. // Returns a BatchPrediction that includes detailed metadata, status, and data
  1130. // file information for a Batch Prediction request.
  1131. func (c *MachineLearning) GetBatchPrediction(input *GetBatchPredictionInput) (*GetBatchPredictionOutput, error) {
  1132. req, out := c.GetBatchPredictionRequest(input)
  1133. err := req.Send()
  1134. return out, err
  1135. }
  1136. const opGetDataSource = "GetDataSource"
  1137. // GetDataSourceRequest generates a "aws/request.Request" representing the
  1138. // client's request for the GetDataSource operation. The "output" return
  1139. // value can be used to capture response data after the request's "Send" method
  1140. // is called.
  1141. //
  1142. // Creating a request object using this method should be used when you want to inject
  1143. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1144. // access properties on the request object before or after sending the request. If
  1145. // you just want the service response, call the GetDataSource method directly
  1146. // instead.
  1147. //
  1148. // Note: You must call the "Send" method on the returned request object in order
  1149. // to execute the request.
  1150. //
  1151. // // Example sending a request using the GetDataSourceRequest method.
  1152. // req, resp := client.GetDataSourceRequest(params)
  1153. //
  1154. // err := req.Send()
  1155. // if err == nil { // resp is now filled
  1156. // fmt.Println(resp)
  1157. // }
  1158. //
  1159. func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req *request.Request, output *GetDataSourceOutput) {
  1160. op := &request.Operation{
  1161. Name: opGetDataSource,
  1162. HTTPMethod: "POST",
  1163. HTTPPath: "/",
  1164. }
  1165. if input == nil {
  1166. input = &GetDataSourceInput{}
  1167. }
  1168. req = c.newRequest(op, input, output)
  1169. output = &GetDataSourceOutput{}
  1170. req.Data = output
  1171. return
  1172. }
  1173. // Returns a DataSource that includes metadata and data file information, as
  1174. // well as the current status of the DataSource.
  1175. //
  1176. // GetDataSource provides results in normal or verbose format. The verbose
  1177. // format adds the schema description and the list of files pointed to by the
  1178. // DataSource to the normal format.
  1179. func (c *MachineLearning) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) {
  1180. req, out := c.GetDataSourceRequest(input)
  1181. err := req.Send()
  1182. return out, err
  1183. }
  1184. const opGetEvaluation = "GetEvaluation"
  1185. // GetEvaluationRequest generates a "aws/request.Request" representing the
  1186. // client's request for the GetEvaluation operation. The "output" return
  1187. // value can be used to capture response data after the request's "Send" method
  1188. // is called.
  1189. //
  1190. // Creating a request object using this method should be used when you want to inject
  1191. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1192. // access properties on the request object before or after sending the request. If
  1193. // you just want the service response, call the GetEvaluation method directly
  1194. // instead.
  1195. //
  1196. // Note: You must call the "Send" method on the returned request object in order
  1197. // to execute the request.
  1198. //
  1199. // // Example sending a request using the GetEvaluationRequest method.
  1200. // req, resp := client.GetEvaluationRequest(params)
  1201. //
  1202. // err := req.Send()
  1203. // if err == nil { // resp is now filled
  1204. // fmt.Println(resp)
  1205. // }
  1206. //
  1207. func (c *MachineLearning) GetEvaluationRequest(input *GetEvaluationInput) (req *request.Request, output *GetEvaluationOutput) {
  1208. op := &request.Operation{
  1209. Name: opGetEvaluation,
  1210. HTTPMethod: "POST",
  1211. HTTPPath: "/",
  1212. }
  1213. if input == nil {
  1214. input = &GetEvaluationInput{}
  1215. }
  1216. req = c.newRequest(op, input, output)
  1217. output = &GetEvaluationOutput{}
  1218. req.Data = output
  1219. return
  1220. }
  1221. // Returns an Evaluation that includes metadata as well as the current status
  1222. // of the Evaluation.
  1223. func (c *MachineLearning) GetEvaluation(input *GetEvaluationInput) (*GetEvaluationOutput, error) {
  1224. req, out := c.GetEvaluationRequest(input)
  1225. err := req.Send()
  1226. return out, err
  1227. }
  1228. const opGetMLModel = "GetMLModel"
  1229. // GetMLModelRequest generates a "aws/request.Request" representing the
  1230. // client's request for the GetMLModel operation. The "output" return
  1231. // value can be used to capture response data after the request's "Send" method
  1232. // is called.
  1233. //
  1234. // Creating a request object using this method should be used when you want to inject
  1235. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1236. // access properties on the request object before or after sending the request. If
  1237. // you just want the service response, call the GetMLModel method directly
  1238. // instead.
  1239. //
  1240. // Note: You must call the "Send" method on the returned request object in order
  1241. // to execute the request.
  1242. //
  1243. // // Example sending a request using the GetMLModelRequest method.
  1244. // req, resp := client.GetMLModelRequest(params)
  1245. //
  1246. // err := req.Send()
  1247. // if err == nil { // resp is now filled
  1248. // fmt.Println(resp)
  1249. // }
  1250. //
  1251. func (c *MachineLearning) GetMLModelRequest(input *GetMLModelInput) (req *request.Request, output *GetMLModelOutput) {
  1252. op := &request.Operation{
  1253. Name: opGetMLModel,
  1254. HTTPMethod: "POST",
  1255. HTTPPath: "/",
  1256. }
  1257. if input == nil {
  1258. input = &GetMLModelInput{}
  1259. }
  1260. req = c.newRequest(op, input, output)
  1261. output = &GetMLModelOutput{}
  1262. req.Data = output
  1263. return
  1264. }
  1265. // Returns an MLModel that includes detailed metadata, data source information,
  1266. // and the current status of the MLModel.
  1267. //
  1268. // GetMLModel provides results in normal or verbose format.
  1269. func (c *MachineLearning) GetMLModel(input *GetMLModelInput) (*GetMLModelOutput, error) {
  1270. req, out := c.GetMLModelRequest(input)
  1271. err := req.Send()
  1272. return out, err
  1273. }
  1274. const opPredict = "Predict"
  1275. // PredictRequest generates a "aws/request.Request" representing the
  1276. // client's request for the Predict operation. The "output" return
  1277. // value can be used to capture response data after the request's "Send" method
  1278. // is called.
  1279. //
  1280. // Creating a request object using this method should be used when you want to inject
  1281. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1282. // access properties on the request object before or after sending the request. If
  1283. // you just want the service response, call the Predict method directly
  1284. // instead.
  1285. //
  1286. // Note: You must call the "Send" method on the returned request object in order
  1287. // to execute the request.
  1288. //
  1289. // // Example sending a request using the PredictRequest method.
  1290. // req, resp := client.PredictRequest(params)
  1291. //
  1292. // err := req.Send()
  1293. // if err == nil { // resp is now filled
  1294. // fmt.Println(resp)
  1295. // }
  1296. //
  1297. func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Request, output *PredictOutput) {
  1298. op := &request.Operation{
  1299. Name: opPredict,
  1300. HTTPMethod: "POST",
  1301. HTTPPath: "/",
  1302. }
  1303. if input == nil {
  1304. input = &PredictInput{}
  1305. }
  1306. req = c.newRequest(op, input, output)
  1307. output = &PredictOutput{}
  1308. req.Data = output
  1309. return
  1310. }
  1311. // Generates a prediction for the observation using the specified ML Model.
  1312. //
  1313. // Note Not all response parameters will be populated. Whether a response parameter
  1314. // is populated depends on the type of model requested.
  1315. func (c *MachineLearning) Predict(input *PredictInput) (*PredictOutput, error) {
  1316. req, out := c.PredictRequest(input)
  1317. err := req.Send()
  1318. return out, err
  1319. }
  1320. const opUpdateBatchPrediction = "UpdateBatchPrediction"
  1321. // UpdateBatchPredictionRequest generates a "aws/request.Request" representing the
  1322. // client's request for the UpdateBatchPrediction operation. The "output" return
  1323. // value can be used to capture response data after the request's "Send" method
  1324. // is called.
  1325. //
  1326. // Creating a request object using this method should be used when you want to inject
  1327. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1328. // access properties on the request object before or after sending the request. If
  1329. // you just want the service response, call the UpdateBatchPrediction method directly
  1330. // instead.
  1331. //
  1332. // Note: You must call the "Send" method on the returned request object in order
  1333. // to execute the request.
  1334. //
  1335. // // Example sending a request using the UpdateBatchPredictionRequest method.
  1336. // req, resp := client.UpdateBatchPredictionRequest(params)
  1337. //
  1338. // err := req.Send()
  1339. // if err == nil { // resp is now filled
  1340. // fmt.Println(resp)
  1341. // }
  1342. //
  1343. func (c *MachineLearning) UpdateBatchPredictionRequest(input *UpdateBatchPredictionInput) (req *request.Request, output *UpdateBatchPredictionOutput) {
  1344. op := &request.Operation{
  1345. Name: opUpdateBatchPrediction,
  1346. HTTPMethod: "POST",
  1347. HTTPPath: "/",
  1348. }
  1349. if input == nil {
  1350. input = &UpdateBatchPredictionInput{}
  1351. }
  1352. req = c.newRequest(op, input, output)
  1353. output = &UpdateBatchPredictionOutput{}
  1354. req.Data = output
  1355. return
  1356. }
  1357. // Updates the BatchPredictionName of a BatchPrediction.
  1358. //
  1359. // You can use the GetBatchPrediction operation to view the contents of the
  1360. // updated data element.
  1361. func (c *MachineLearning) UpdateBatchPrediction(input *UpdateBatchPredictionInput) (*UpdateBatchPredictionOutput, error) {
  1362. req, out := c.UpdateBatchPredictionRequest(input)
  1363. err := req.Send()
  1364. return out, err
  1365. }
  1366. const opUpdateDataSource = "UpdateDataSource"
  1367. // UpdateDataSourceRequest generates a "aws/request.Request" representing the
  1368. // client's request for the UpdateDataSource operation. The "output" return
  1369. // value can be used to capture response data after the request's "Send" method
  1370. // is called.
  1371. //
  1372. // Creating a request object using this method should be used when you want to inject
  1373. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1374. // access properties on the request object before or after sending the request. If
  1375. // you just want the service response, call the UpdateDataSource method directly
  1376. // instead.
  1377. //
  1378. // Note: You must call the "Send" method on the returned request object in order
  1379. // to execute the request.
  1380. //
  1381. // // Example sending a request using the UpdateDataSourceRequest method.
  1382. // req, resp := client.UpdateDataSourceRequest(params)
  1383. //
  1384. // err := req.Send()
  1385. // if err == nil { // resp is now filled
  1386. // fmt.Println(resp)
  1387. // }
  1388. //
  1389. func (c *MachineLearning) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *request.Request, output *UpdateDataSourceOutput) {
  1390. op := &request.Operation{
  1391. Name: opUpdateDataSource,
  1392. HTTPMethod: "POST",
  1393. HTTPPath: "/",
  1394. }
  1395. if input == nil {
  1396. input = &UpdateDataSourceInput{}
  1397. }
  1398. req = c.newRequest(op, input, output)
  1399. output = &UpdateDataSourceOutput{}
  1400. req.Data = output
  1401. return
  1402. }
  1403. // Updates the DataSourceName of a DataSource.
  1404. //
  1405. // You can use the GetDataSource operation to view the contents of the updated
  1406. // data element.
  1407. func (c *MachineLearning) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) {
  1408. req, out := c.UpdateDataSourceRequest(input)
  1409. err := req.Send()
  1410. return out, err
  1411. }
  1412. const opUpdateEvaluation = "UpdateEvaluation"
  1413. // UpdateEvaluationRequest generates a "aws/request.Request" representing the
  1414. // client's request for the UpdateEvaluation operation. The "output" return
  1415. // value can be used to capture response data after the request's "Send" method
  1416. // is called.
  1417. //
  1418. // Creating a request object using this method should be used when you want to inject
  1419. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1420. // access properties on the request object before or after sending the request. If
  1421. // you just want the service response, call the UpdateEvaluation method directly
  1422. // instead.
  1423. //
  1424. // Note: You must call the "Send" method on the returned request object in order
  1425. // to execute the request.
  1426. //
  1427. // // Example sending a request using the UpdateEvaluationRequest method.
  1428. // req, resp := client.UpdateEvaluationRequest(params)
  1429. //
  1430. // err := req.Send()
  1431. // if err == nil { // resp is now filled
  1432. // fmt.Println(resp)
  1433. // }
  1434. //
  1435. func (c *MachineLearning) UpdateEvaluationRequest(input *UpdateEvaluationInput) (req *request.Request, output *UpdateEvaluationOutput) {
  1436. op := &request.Operation{
  1437. Name: opUpdateEvaluation,
  1438. HTTPMethod: "POST",
  1439. HTTPPath: "/",
  1440. }
  1441. if input == nil {
  1442. input = &UpdateEvaluationInput{}
  1443. }
  1444. req = c.newRequest(op, input, output)
  1445. output = &UpdateEvaluationOutput{}
  1446. req.Data = output
  1447. return
  1448. }
  1449. // Updates the EvaluationName of an Evaluation.
  1450. //
  1451. // You can use the GetEvaluation operation to view the contents of the updated
  1452. // data element.
  1453. func (c *MachineLearning) UpdateEvaluation(input *UpdateEvaluationInput) (*UpdateEvaluationOutput, error) {
  1454. req, out := c.UpdateEvaluationRequest(input)
  1455. err := req.Send()
  1456. return out, err
  1457. }
  1458. const opUpdateMLModel = "UpdateMLModel"
  1459. // UpdateMLModelRequest generates a "aws/request.Request" representing the
  1460. // client's request for the UpdateMLModel operation. The "output" return
  1461. // value can be used to capture response data after the request's "Send" method
  1462. // is called.
  1463. //
  1464. // Creating a request object using this method should be used when you want to inject
  1465. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1466. // access properties on the request object before or after sending the request. If
  1467. // you just want the service response, call the UpdateMLModel method directly
  1468. // instead.
  1469. //
  1470. // Note: You must call the "Send" method on the returned request object in order
  1471. // to execute the request.
  1472. //
  1473. // // Example sending a request using the UpdateMLModelRequest method.
  1474. // req, resp := client.UpdateMLModelRequest(params)
  1475. //
  1476. // err := req.Send()
  1477. // if err == nil { // resp is now filled
  1478. // fmt.Println(resp)
  1479. // }
  1480. //
  1481. func (c *MachineLearning) UpdateMLModelRequest(input *UpdateMLModelInput) (req *request.Request, output *UpdateMLModelOutput) {
  1482. op := &request.Operation{
  1483. Name: opUpdateMLModel,
  1484. HTTPMethod: "POST",
  1485. HTTPPath: "/",
  1486. }
  1487. if input == nil {
  1488. input = &UpdateMLModelInput{}
  1489. }
  1490. req = c.newRequest(op, input, output)
  1491. output = &UpdateMLModelOutput{}
  1492. req.Data = output
  1493. return
  1494. }
  1495. // Updates the MLModelName and the ScoreThreshold of an MLModel.
  1496. //
  1497. // You can use the GetMLModel operation to view the contents of the updated
  1498. // data element.
  1499. func (c *MachineLearning) UpdateMLModel(input *UpdateMLModelInput) (*UpdateMLModelOutput, error) {
  1500. req, out := c.UpdateMLModelRequest(input)
  1501. err := req.Send()
  1502. return out, err
  1503. }
  1504. type AddTagsInput struct {
  1505. _ struct{} `type:"structure"`
  1506. // The ID of the ML object to tag. For example, exampleModelId.
  1507. ResourceId *string `min:"1" type:"string" required:"true"`
  1508. // The type of the ML object to tag.
  1509. ResourceType *string `type:"string" required:"true" enum:"TaggableResourceType"`
  1510. // The key-value pairs to use to create tags. If you specify a key without specifying
  1511. // a value, Amazon ML creates a tag with the specified key and a value of null.
  1512. Tags []*Tag `type:"list" required:"true"`
  1513. }
  1514. // String returns the string representation
  1515. func (s AddTagsInput) String() string {
  1516. return awsutil.Prettify(s)
  1517. }
  1518. // GoString returns the string representation
  1519. func (s AddTagsInput) GoString() string {
  1520. return s.String()
  1521. }
  1522. // Validate inspects the fields of the type to determine if they are valid.
  1523. func (s *AddTagsInput) Validate() error {
  1524. invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
  1525. if s.ResourceId == nil {
  1526. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  1527. }
  1528. if s.ResourceId != nil && len(*s.ResourceId) < 1 {
  1529. invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
  1530. }
  1531. if s.ResourceType == nil {
  1532. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  1533. }
  1534. if s.Tags == nil {
  1535. invalidParams.Add(request.NewErrParamRequired("Tags"))
  1536. }
  1537. if s.Tags != nil {
  1538. for i, v := range s.Tags {
  1539. if v == nil {
  1540. continue
  1541. }
  1542. if err := v.Validate(); err != nil {
  1543. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  1544. }
  1545. }
  1546. }
  1547. if invalidParams.Len() > 0 {
  1548. return invalidParams
  1549. }
  1550. return nil
  1551. }
  1552. // Amazon ML returns the following elements.
  1553. type AddTagsOutput struct {
  1554. _ struct{} `type:"structure"`
  1555. // The ID of the ML object that was tagged.
  1556. ResourceId *string `min:"1" type:"string"`
  1557. // The type of the ML object that was tagged.
  1558. ResourceType *string `type:"string" enum:"TaggableResourceType"`
  1559. }
  1560. // String returns the string representation
  1561. func (s AddTagsOutput) String() string {
  1562. return awsutil.Prettify(s)
  1563. }
  1564. // GoString returns the string representation
  1565. func (s AddTagsOutput) GoString() string {
  1566. return s.String()
  1567. }
  1568. // Represents the output of a GetBatchPrediction operation.
  1569. //
  1570. // The content consists of the detailed metadata, the status, and the data
  1571. // file information of a Batch Prediction.
  1572. type BatchPrediction struct {
  1573. _ struct{} `type:"structure"`
  1574. // The ID of the DataSource that points to the group of observations to predict.
  1575. BatchPredictionDataSourceId *string `min:"1" type:"string"`
  1576. // The ID assigned to the BatchPrediction at creation. This value should be
  1577. // identical to the value of the BatchPredictionID in the request.
  1578. BatchPredictionId *string `min:"1" type:"string"`
  1579. // Long integer type that is a 64-bit signed number.
  1580. ComputeTime *int64 `type:"long"`
  1581. // The time that the BatchPrediction was created. The time is expressed in epoch
  1582. // time.
  1583. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  1584. // The AWS user account that invoked the BatchPrediction. The account type can
  1585. // be either an AWS root account or an AWS Identity and Access Management (IAM)
  1586. // user account.
  1587. CreatedByIamUser *string `type:"string"`
  1588. // A timestamp represented in epoch time.
  1589. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  1590. // The location of the data file or directory in Amazon Simple Storage Service
  1591. // (Amazon S3).
  1592. InputDataLocationS3 *string `type:"string"`
  1593. // Long integer type that is a 64-bit signed number.
  1594. InvalidRecordCount *int64 `type:"long"`
  1595. // The time of the most recent edit to the BatchPrediction. The time is expressed
  1596. // in epoch time.
  1597. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  1598. // The ID of the MLModel that generated predictions for the BatchPrediction
  1599. // request.
  1600. MLModelId *string `min:"1" type:"string"`
  1601. // A description of the most recent details about processing the batch prediction
  1602. // request.
  1603. Message *string `type:"string"`
  1604. // A user-supplied name or description of the BatchPrediction.
  1605. Name *string `type:"string"`
  1606. // The location of an Amazon S3 bucket or directory to receive the operation
  1607. // results. The following substrings are not allowed in the s3 key portion of
  1608. // the outputURI field: ':', '//', '/./', '/../'.
  1609. OutputUri *string `type:"string"`
  1610. // A timestamp represented in epoch time.
  1611. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  1612. // The status of the BatchPrediction. This element can have one of the following
  1613. // values:
  1614. //
  1615. // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate
  1616. // predictions for a batch of observations. INPROGRESS - The process is underway.
  1617. // FAILED - The request to perform a batch prediction did not run to completion.
  1618. // It is not usable. COMPLETED - The batch prediction process completed successfully.
  1619. // DELETED - The BatchPrediction is marked as deleted. It is not usable.
  1620. Status *string `type:"string" enum:"EntityStatus"`
  1621. // Long integer type that is a 64-bit signed number.
  1622. TotalRecordCount *int64 `type:"long"`
  1623. }
  1624. // String returns the string representation
  1625. func (s BatchPrediction) String() string {
  1626. return awsutil.Prettify(s)
  1627. }
  1628. // GoString returns the string representation
  1629. func (s BatchPrediction) GoString() string {
  1630. return s.String()
  1631. }
  1632. type CreateBatchPredictionInput struct {
  1633. _ struct{} `type:"structure"`
  1634. // The ID of the DataSource that points to the group of observations to predict.
  1635. BatchPredictionDataSourceId *string `min:"1" type:"string" required:"true"`
  1636. // A user-supplied ID that uniquely identifies the BatchPrediction.
  1637. BatchPredictionId *string `min:"1" type:"string" required:"true"`
  1638. // A user-supplied name or description of the BatchPrediction. BatchPredictionName
  1639. // can only use the UTF-8 character set.
  1640. BatchPredictionName *string `type:"string"`
  1641. // The ID of the MLModel that will generate predictions for the group of observations.
  1642. MLModelId *string `min:"1" type:"string" required:"true"`
  1643. // The location of an Amazon Simple Storage Service (Amazon S3) bucket or directory
  1644. // to store the batch prediction results. The following substrings are not allowed
  1645. // in the s3 key portion of the outputURI field: ':', '//', '/./', '/../'.
  1646. //
  1647. // Amazon ML needs permissions to store and retrieve the logs on your behalf.
  1648. // For information about how to set permissions, see the Amazon Machine Learning
  1649. // Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg).
  1650. OutputUri *string `type:"string" required:"true"`
  1651. }
  1652. // String returns the string representation
  1653. func (s CreateBatchPredictionInput) String() string {
  1654. return awsutil.Prettify(s)
  1655. }
  1656. // GoString returns the string representation
  1657. func (s CreateBatchPredictionInput) GoString() string {
  1658. return s.String()
  1659. }
  1660. // Validate inspects the fields of the type to determine if they are valid.
  1661. func (s *CreateBatchPredictionInput) Validate() error {
  1662. invalidParams := request.ErrInvalidParams{Context: "CreateBatchPredictionInput"}
  1663. if s.BatchPredictionDataSourceId == nil {
  1664. invalidParams.Add(request.NewErrParamRequired("BatchPredictionDataSourceId"))
  1665. }
  1666. if s.BatchPredictionDataSourceId != nil && len(*s.BatchPredictionDataSourceId) < 1 {
  1667. invalidParams.Add(request.NewErrParamMinLen("BatchPredictionDataSourceId", 1))
  1668. }
  1669. if s.BatchPredictionId == nil {
  1670. invalidParams.Add(request.NewErrParamRequired("BatchPredictionId"))
  1671. }
  1672. if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 {
  1673. invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1))
  1674. }
  1675. if s.MLModelId == nil {
  1676. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  1677. }
  1678. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  1679. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  1680. }
  1681. if s.OutputUri == nil {
  1682. invalidParams.Add(request.NewErrParamRequired("OutputUri"))
  1683. }
  1684. if invalidParams.Len() > 0 {
  1685. return invalidParams
  1686. }
  1687. return nil
  1688. }
  1689. // Represents the output of a CreateBatchPrediction operation, and is an acknowledgement
  1690. // that Amazon ML received the request.
  1691. //
  1692. // The CreateBatchPrediction operation is asynchronous. You can poll for status
  1693. // updates by using the >GetBatchPrediction operation and checking the Status
  1694. // parameter of the result.
  1695. type CreateBatchPredictionOutput struct {
  1696. _ struct{} `type:"structure"`
  1697. // A user-supplied ID that uniquely identifies the BatchPrediction. This value
  1698. // is identical to the value of the BatchPredictionId in the request.
  1699. BatchPredictionId *string `min:"1" type:"string"`
  1700. }
  1701. // String returns the string representation
  1702. func (s CreateBatchPredictionOutput) String() string {
  1703. return awsutil.Prettify(s)
  1704. }
  1705. // GoString returns the string representation
  1706. func (s CreateBatchPredictionOutput) GoString() string {
  1707. return s.String()
  1708. }
  1709. type CreateDataSourceFromRDSInput struct {
  1710. _ struct{} `type:"structure"`
  1711. // The compute statistics for a DataSource. The statistics are generated from
  1712. // the observation data referenced by a DataSource. Amazon ML uses the statistics
  1713. // internally during MLModel training. This parameter must be set to true if
  1714. // the DataSource needs to be used for MLModel training.
  1715. ComputeStatistics *bool `type:"boolean"`
  1716. // A user-supplied ID that uniquely identifies the DataSource. Typically, an
  1717. // Amazon Resource Number (ARN) becomes the ID for a DataSource.
  1718. DataSourceId *string `min:"1" type:"string" required:"true"`
  1719. // A user-supplied name or description of the DataSource.
  1720. DataSourceName *string `type:"string"`
  1721. // The data specification of an Amazon RDS DataSource:
  1722. //
  1723. // DatabaseInformation - DatabaseName - The name of the Amazon RDS database.
  1724. // InstanceIdentifier - A unique identifier for the Amazon RDS database instance.
  1725. //
  1726. //
  1727. // DatabaseCredentials - AWS Identity and Access Management (IAM) credentials
  1728. // that are used to connect to the Amazon RDS database.
  1729. //
  1730. // ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an EC2
  1731. // instance to carry out the copy task from Amazon RDS to Amazon Simple Storage
  1732. // Service (Amazon S3). For more information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html)
  1733. // for data pipelines.
  1734. //
  1735. // ServiceRole - A role (DataPipelineDefaultRole) assumed by the AWS Data Pipeline
  1736. // service to monitor the progress of the copy task from Amazon RDS to Amazon
  1737. // S3. For more information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html)
  1738. // for data pipelines.
  1739. //
  1740. // SecurityInfo - The security information to use to access an RDS DB instance.
  1741. // You need to set up appropriate ingress rules for the security entity IDs
  1742. // provided to allow access to the Amazon RDS instance. Specify a [SubnetId,
  1743. // SecurityGroupIds] pair for a VPC-based RDS DB instance.
  1744. //
  1745. // SelectSqlQuery - A query that is used to retrieve the observation data for
  1746. // the Datasource.
  1747. //
  1748. // S3StagingLocation - The Amazon S3 location for staging Amazon RDS data.
  1749. // The data retrieved from Amazon RDS using SelectSqlQuery is stored in this
  1750. // location.
  1751. //
  1752. // DataSchemaUri - The Amazon S3 location of the DataSchema.
  1753. //
  1754. // DataSchema - A JSON string representing the schema. This is not required
  1755. // if DataSchemaUri is specified.
  1756. //
  1757. // DataRearrangement - A JSON string that represents the splitting and rearrangement
  1758. // requirements for the Datasource.
  1759. //
  1760. // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
  1761. RDSData *RDSDataSpec `type:"structure" required:"true"`
  1762. // The role that Amazon ML assumes on behalf of the user to create and activate
  1763. // a data pipeline in the user's account and copy data using the SelectSqlQuery
  1764. // query from Amazon RDS to Amazon S3.
  1765. RoleARN *string `min:"1" type:"string" required:"true"`
  1766. }
  1767. // String returns the string representation
  1768. func (s CreateDataSourceFromRDSInput) String() string {
  1769. return awsutil.Prettify(s)
  1770. }
  1771. // GoString returns the string representation
  1772. func (s CreateDataSourceFromRDSInput) GoString() string {
  1773. return s.String()
  1774. }
  1775. // Validate inspects the fields of the type to determine if they are valid.
  1776. func (s *CreateDataSourceFromRDSInput) Validate() error {
  1777. invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromRDSInput"}
  1778. if s.DataSourceId == nil {
  1779. invalidParams.Add(request.NewErrParamRequired("DataSourceId"))
  1780. }
  1781. if s.DataSourceId != nil && len(*s.DataSourceId) < 1 {
  1782. invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1))
  1783. }
  1784. if s.RDSData == nil {
  1785. invalidParams.Add(request.NewErrParamRequired("RDSData"))
  1786. }
  1787. if s.RoleARN == nil {
  1788. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  1789. }
  1790. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  1791. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  1792. }
  1793. if s.RDSData != nil {
  1794. if err := s.RDSData.Validate(); err != nil {
  1795. invalidParams.AddNested("RDSData", err.(request.ErrInvalidParams))
  1796. }
  1797. }
  1798. if invalidParams.Len() > 0 {
  1799. return invalidParams
  1800. }
  1801. return nil
  1802. }
  1803. // Represents the output of a CreateDataSourceFromRDS operation, and is an acknowledgement
  1804. // that Amazon ML received the request.
  1805. //
  1806. // The CreateDataSourceFromRDS> operation is asynchronous. You can poll for
  1807. // updates by using the GetBatchPrediction operation and checking the Status
  1808. // parameter. You can inspect the Message when Status shows up as FAILED. You
  1809. // can also check the progress of the copy operation by going to the DataPipeline
  1810. // console and looking up the pipeline using the pipelineId from the describe
  1811. // call.
  1812. type CreateDataSourceFromRDSOutput struct {
  1813. _ struct{} `type:"structure"`
  1814. // A user-supplied ID that uniquely identifies the datasource. This value should
  1815. // be identical to the value of the DataSourceID in the request.
  1816. DataSourceId *string `min:"1" type:"string"`
  1817. }
  1818. // String returns the string representation
  1819. func (s CreateDataSourceFromRDSOutput) String() string {
  1820. return awsutil.Prettify(s)
  1821. }
  1822. // GoString returns the string representation
  1823. func (s CreateDataSourceFromRDSOutput) GoString() string {
  1824. return s.String()
  1825. }
  1826. type CreateDataSourceFromRedshiftInput struct {
  1827. _ struct{} `type:"structure"`
  1828. // The compute statistics for a DataSource. The statistics are generated from
  1829. // the observation data referenced by a DataSource. Amazon ML uses the statistics
  1830. // internally during MLModel training. This parameter must be set to true if
  1831. // the DataSource needs to be used for MLModel training.
  1832. ComputeStatistics *bool `type:"boolean"`
  1833. // A user-supplied ID that uniquely identifies the DataSource.
  1834. DataSourceId *string `min:"1" type:"string" required:"true"`
  1835. // A user-supplied name or description of the DataSource.
  1836. DataSourceName *string `type:"string"`
  1837. // The data specification of an Amazon Redshift DataSource:
  1838. //
  1839. // DatabaseInformation - DatabaseName - The name of the Amazon Redshift
  1840. // database. ClusterIdentifier - The unique ID for the Amazon Redshift cluster.
  1841. //
  1842. // DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials
  1843. // that are used to connect to the Amazon Redshift database.
  1844. //
  1845. // SelectSqlQuery - The query that is used to retrieve the observation data
  1846. // for the Datasource.
  1847. //
  1848. // S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location
  1849. // for staging Amazon Redshift data. The data retrieved from Amazon Redshift
  1850. // using the SelectSqlQuery query is stored in this location.
  1851. //
  1852. // DataSchemaUri - The Amazon S3 location of the DataSchema.
  1853. //
  1854. // DataSchema - A JSON string representing the schema. This is not required
  1855. // if DataSchemaUri is specified.
  1856. //
  1857. // DataRearrangement - A JSON string that represents the splitting and rearrangement
  1858. // requirements for the DataSource.
  1859. //
  1860. // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
  1861. DataSpec *RedshiftDataSpec `type:"structure" required:"true"`
  1862. // A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the
  1863. // role on behalf of the user to create the following:
  1864. //
  1865. // A security group to allow Amazon ML to execute the SelectSqlQuery query
  1866. // on an Amazon Redshift cluster
  1867. //
  1868. // An Amazon S3 bucket policy to grant Amazon ML read/write permissions on
  1869. // the S3StagingLocation
  1870. RoleARN *string `min:"1" type:"string" required:"true"`
  1871. }
  1872. // String returns the string representation
  1873. func (s CreateDataSourceFromRedshiftInput) String() string {
  1874. return awsutil.Prettify(s)
  1875. }
  1876. // GoString returns the string representation
  1877. func (s CreateDataSourceFromRedshiftInput) GoString() string {
  1878. return s.String()
  1879. }
  1880. // Validate inspects the fields of the type to determine if they are valid.
  1881. func (s *CreateDataSourceFromRedshiftInput) Validate() error {
  1882. invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromRedshiftInput"}
  1883. if s.DataSourceId == nil {
  1884. invalidParams.Add(request.NewErrParamRequired("DataSourceId"))
  1885. }
  1886. if s.DataSourceId != nil && len(*s.DataSourceId) < 1 {
  1887. invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1))
  1888. }
  1889. if s.DataSpec == nil {
  1890. invalidParams.Add(request.NewErrParamRequired("DataSpec"))
  1891. }
  1892. if s.RoleARN == nil {
  1893. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  1894. }
  1895. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  1896. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  1897. }
  1898. if s.DataSpec != nil {
  1899. if err := s.DataSpec.Validate(); err != nil {
  1900. invalidParams.AddNested("DataSpec", err.(request.ErrInvalidParams))
  1901. }
  1902. }
  1903. if invalidParams.Len() > 0 {
  1904. return invalidParams
  1905. }
  1906. return nil
  1907. }
  1908. // Represents the output of a CreateDataSourceFromRedshift operation, and is
  1909. // an acknowledgement that Amazon ML received the request.
  1910. //
  1911. // The CreateDataSourceFromRedshift operation is asynchronous. You can poll
  1912. // for updates by using the GetBatchPrediction operation and checking the Status
  1913. // parameter.
  1914. type CreateDataSourceFromRedshiftOutput struct {
  1915. _ struct{} `type:"structure"`
  1916. // A user-supplied ID that uniquely identifies the datasource. This value should
  1917. // be identical to the value of the DataSourceID in the request.
  1918. DataSourceId *string `min:"1" type:"string"`
  1919. }
  1920. // String returns the string representation
  1921. func (s CreateDataSourceFromRedshiftOutput) String() string {
  1922. return awsutil.Prettify(s)
  1923. }
  1924. // GoString returns the string representation
  1925. func (s CreateDataSourceFromRedshiftOutput) GoString() string {
  1926. return s.String()
  1927. }
  1928. type CreateDataSourceFromS3Input struct {
  1929. _ struct{} `type:"structure"`
  1930. // The compute statistics for a DataSource. The statistics are generated from
  1931. // the observation data referenced by a DataSource. Amazon ML uses the statistics
  1932. // internally during MLModel training. This parameter must be set to true if
  1933. // the DataSource needs to be used for MLModel training.
  1934. ComputeStatistics *bool `type:"boolean"`
  1935. // A user-supplied identifier that uniquely identifies the DataSource.
  1936. DataSourceId *string `min:"1" type:"string" required:"true"`
  1937. // A user-supplied name or description of the DataSource.
  1938. DataSourceName *string `type:"string"`
  1939. // The data specification of a DataSource:
  1940. //
  1941. // DataLocationS3 - The Amazon S3 location of the observation data.
  1942. //
  1943. // DataSchemaLocationS3 - The Amazon S3 location of the DataSchema.
  1944. //
  1945. // DataSchema - A JSON string representing the schema. This is not required
  1946. // if DataSchemaUri is specified.
  1947. //
  1948. // DataRearrangement - A JSON string that represents the splitting and rearrangement
  1949. // requirements for the Datasource.
  1950. //
  1951. // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
  1952. DataSpec *S3DataSpec `type:"structure" required:"true"`
  1953. }
  1954. // String returns the string representation
  1955. func (s CreateDataSourceFromS3Input) String() string {
  1956. return awsutil.Prettify(s)
  1957. }
  1958. // GoString returns the string representation
  1959. func (s CreateDataSourceFromS3Input) GoString() string {
  1960. return s.String()
  1961. }
  1962. // Validate inspects the fields of the type to determine if they are valid.
  1963. func (s *CreateDataSourceFromS3Input) Validate() error {
  1964. invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromS3Input"}
  1965. if s.DataSourceId == nil {
  1966. invalidParams.Add(request.NewErrParamRequired("DataSourceId"))
  1967. }
  1968. if s.DataSourceId != nil && len(*s.DataSourceId) < 1 {
  1969. invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1))
  1970. }
  1971. if s.DataSpec == nil {
  1972. invalidParams.Add(request.NewErrParamRequired("DataSpec"))
  1973. }
  1974. if s.DataSpec != nil {
  1975. if err := s.DataSpec.Validate(); err != nil {
  1976. invalidParams.AddNested("DataSpec", err.(request.ErrInvalidParams))
  1977. }
  1978. }
  1979. if invalidParams.Len() > 0 {
  1980. return invalidParams
  1981. }
  1982. return nil
  1983. }
  1984. // Represents the output of a CreateDataSourceFromS3 operation, and is an acknowledgement
  1985. // that Amazon ML received the request.
  1986. //
  1987. // The CreateDataSourceFromS3 operation is asynchronous. You can poll for updates
  1988. // by using the GetBatchPrediction operation and checking the Status parameter.
  1989. type CreateDataSourceFromS3Output struct {
  1990. _ struct{} `type:"structure"`
  1991. // A user-supplied ID that uniquely identifies the DataSource. This value should
  1992. // be identical to the value of the DataSourceID in the request.
  1993. DataSourceId *string `min:"1" type:"string"`
  1994. }
  1995. // String returns the string representation
  1996. func (s CreateDataSourceFromS3Output) String() string {
  1997. return awsutil.Prettify(s)
  1998. }
  1999. // GoString returns the string representation
  2000. func (s CreateDataSourceFromS3Output) GoString() string {
  2001. return s.String()
  2002. }
  2003. type CreateEvaluationInput struct {
  2004. _ struct{} `type:"structure"`
  2005. // The ID of the DataSource for the evaluation. The schema of the DataSource
  2006. // must match the schema used to create the MLModel.
  2007. EvaluationDataSourceId *string `min:"1" type:"string" required:"true"`
  2008. // A user-supplied ID that uniquely identifies the Evaluation.
  2009. EvaluationId *string `min:"1" type:"string" required:"true"`
  2010. // A user-supplied name or description of the Evaluation.
  2011. EvaluationName *string `type:"string"`
  2012. // The ID of the MLModel to evaluate.
  2013. //
  2014. // The schema used in creating the MLModel must match the schema of the DataSource
  2015. // used in the Evaluation.
  2016. MLModelId *string `min:"1" type:"string" required:"true"`
  2017. }
  2018. // String returns the string representation
  2019. func (s CreateEvaluationInput) String() string {
  2020. return awsutil.Prettify(s)
  2021. }
  2022. // GoString returns the string representation
  2023. func (s CreateEvaluationInput) GoString() string {
  2024. return s.String()
  2025. }
  2026. // Validate inspects the fields of the type to determine if they are valid.
  2027. func (s *CreateEvaluationInput) Validate() error {
  2028. invalidParams := request.ErrInvalidParams{Context: "CreateEvaluationInput"}
  2029. if s.EvaluationDataSourceId == nil {
  2030. invalidParams.Add(request.NewErrParamRequired("EvaluationDataSourceId"))
  2031. }
  2032. if s.EvaluationDataSourceId != nil && len(*s.EvaluationDataSourceId) < 1 {
  2033. invalidParams.Add(request.NewErrParamMinLen("EvaluationDataSourceId", 1))
  2034. }
  2035. if s.EvaluationId == nil {
  2036. invalidParams.Add(request.NewErrParamRequired("EvaluationId"))
  2037. }
  2038. if s.EvaluationId != nil && len(*s.EvaluationId) < 1 {
  2039. invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1))
  2040. }
  2041. if s.MLModelId == nil {
  2042. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  2043. }
  2044. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  2045. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  2046. }
  2047. if invalidParams.Len() > 0 {
  2048. return invalidParams
  2049. }
  2050. return nil
  2051. }
  2052. // Represents the output of a CreateEvaluation operation, and is an acknowledgement
  2053. // that Amazon ML received the request.
  2054. //
  2055. // CreateEvaluation operation is asynchronous. You can poll for status updates
  2056. // by using the GetEvcaluation operation and checking the Status parameter.
  2057. type CreateEvaluationOutput struct {
  2058. _ struct{} `type:"structure"`
  2059. // The user-supplied ID that uniquely identifies the Evaluation. This value
  2060. // should be identical to the value of the EvaluationId in the request.
  2061. EvaluationId *string `min:"1" type:"string"`
  2062. }
  2063. // String returns the string representation
  2064. func (s CreateEvaluationOutput) String() string {
  2065. return awsutil.Prettify(s)
  2066. }
  2067. // GoString returns the string representation
  2068. func (s CreateEvaluationOutput) GoString() string {
  2069. return s.String()
  2070. }
  2071. type CreateMLModelInput struct {
  2072. _ struct{} `type:"structure"`
  2073. // A user-supplied ID that uniquely identifies the MLModel.
  2074. MLModelId *string `min:"1" type:"string" required:"true"`
  2075. // A user-supplied name or description of the MLModel.
  2076. MLModelName *string `type:"string"`
  2077. // The category of supervised learning that this MLModel will address. Choose
  2078. // from the following types:
  2079. //
  2080. // Choose REGRESSION if the MLModel will be used to predict a numeric value.
  2081. // Choose BINARY if the MLModel result has two possible values. Choose MULTICLASS
  2082. // if the MLModel result has a limited number of values. For more information,
  2083. // see the Amazon Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg).
  2084. MLModelType *string `type:"string" required:"true" enum:"MLModelType"`
  2085. // A list of the training parameters in the MLModel. The list is implemented
  2086. // as a map of key-value pairs.
  2087. //
  2088. // The following is the current set of training parameters:
  2089. //
  2090. // sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending
  2091. // on the input data, the size of the model might affect its performance.
  2092. //
  2093. // The value is an integer that ranges from 100000 to 2147483648. The default
  2094. // value is 33554432.
  2095. //
  2096. // sgd.maxPasses - The number of times that the training process traverses
  2097. // the observations to build the MLModel. The value is an integer that ranges
  2098. // from 1 to 10000. The default value is 10.
  2099. //
  2100. // sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling
  2101. // the data improves a model's ability to find the optimal solution for a variety
  2102. // of data types. The valid values are auto and none. The default value is none.
  2103. // We strongly recommend that you shuffle your data.
  2104. //
  2105. // sgd.l1RegularizationAmount - The coefficient regularization L1 norm. It
  2106. // controls overfitting the data by penalizing large coefficients. This tends
  2107. // to drive coefficients to zero, resulting in a sparse feature set. If you
  2108. // use this parameter, start by specifying a small value, such as 1.0E-08.
  2109. //
  2110. // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to
  2111. // not use L1 normalization. This parameter can't be used when L2 is specified.
  2112. // Use this parameter sparingly.
  2113. //
  2114. // sgd.l2RegularizationAmount - The coefficient regularization L2 norm. It
  2115. // controls overfitting the data by penalizing large coefficients. This tends
  2116. // to drive coefficients to small, nonzero values. If you use this parameter,
  2117. // start by specifying a small value, such as 1.0E-08.
  2118. //
  2119. // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to
  2120. // not use L2 normalization. This parameter can't be used when L1 is specified.
  2121. // Use this parameter sparingly.
  2122. Parameters map[string]*string `type:"map"`
  2123. // The data recipe for creating the MLModel. You must specify either the recipe
  2124. // or its URI. If you don't specify a recipe or its URI, Amazon ML creates a
  2125. // default.
  2126. Recipe *string `type:"string"`
  2127. // The Amazon Simple Storage Service (Amazon S3) location and file name that
  2128. // contains the MLModel recipe. You must specify either the recipe or its URI.
  2129. // If you don't specify a recipe or its URI, Amazon ML creates a default.
  2130. RecipeUri *string `type:"string"`
  2131. // The DataSource that points to the training data.
  2132. TrainingDataSourceId *string `min:"1" type:"string" required:"true"`
  2133. }
  2134. // String returns the string representation
  2135. func (s CreateMLModelInput) String() string {
  2136. return awsutil.Prettify(s)
  2137. }
  2138. // GoString returns the string representation
  2139. func (s CreateMLModelInput) GoString() string {
  2140. return s.String()
  2141. }
  2142. // Validate inspects the fields of the type to determine if they are valid.
  2143. func (s *CreateMLModelInput) Validate() error {
  2144. invalidParams := request.ErrInvalidParams{Context: "CreateMLModelInput"}
  2145. if s.MLModelId == nil {
  2146. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  2147. }
  2148. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  2149. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  2150. }
  2151. if s.MLModelType == nil {
  2152. invalidParams.Add(request.NewErrParamRequired("MLModelType"))
  2153. }
  2154. if s.TrainingDataSourceId == nil {
  2155. invalidParams.Add(request.NewErrParamRequired("TrainingDataSourceId"))
  2156. }
  2157. if s.TrainingDataSourceId != nil && len(*s.TrainingDataSourceId) < 1 {
  2158. invalidParams.Add(request.NewErrParamMinLen("TrainingDataSourceId", 1))
  2159. }
  2160. if invalidParams.Len() > 0 {
  2161. return invalidParams
  2162. }
  2163. return nil
  2164. }
  2165. // Represents the output of a CreateMLModel operation, and is an acknowledgement
  2166. // that Amazon ML received the request.
  2167. //
  2168. // The CreateMLModel operation is asynchronous. You can poll for status updates
  2169. // by using the GetMLModel operation and checking the Status parameter.
  2170. type CreateMLModelOutput struct {
  2171. _ struct{} `type:"structure"`
  2172. // A user-supplied ID that uniquely identifies the MLModel. This value should
  2173. // be identical to the value of the MLModelId in the request.
  2174. MLModelId *string `min:"1" type:"string"`
  2175. }
  2176. // String returns the string representation
  2177. func (s CreateMLModelOutput) String() string {
  2178. return awsutil.Prettify(s)
  2179. }
  2180. // GoString returns the string representation
  2181. func (s CreateMLModelOutput) GoString() string {
  2182. return s.String()
  2183. }
  2184. type CreateRealtimeEndpointInput struct {
  2185. _ struct{} `type:"structure"`
  2186. // The ID assigned to the MLModel during creation.
  2187. MLModelId *string `min:"1" type:"string" required:"true"`
  2188. }
  2189. // String returns the string representation
  2190. func (s CreateRealtimeEndpointInput) String() string {
  2191. return awsutil.Prettify(s)
  2192. }
  2193. // GoString returns the string representation
  2194. func (s CreateRealtimeEndpointInput) GoString() string {
  2195. return s.String()
  2196. }
  2197. // Validate inspects the fields of the type to determine if they are valid.
  2198. func (s *CreateRealtimeEndpointInput) Validate() error {
  2199. invalidParams := request.ErrInvalidParams{Context: "CreateRealtimeEndpointInput"}
  2200. if s.MLModelId == nil {
  2201. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  2202. }
  2203. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  2204. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  2205. }
  2206. if invalidParams.Len() > 0 {
  2207. return invalidParams
  2208. }
  2209. return nil
  2210. }
  2211. // Represents the output of an CreateRealtimeEndpoint operation.
  2212. //
  2213. // The result contains the MLModelId and the endpoint information for the MLModel.
  2214. //
  2215. // The endpoint information includes the URI of the MLModel; that is, the
  2216. // location to send online prediction requests for the specified MLModel.
  2217. type CreateRealtimeEndpointOutput struct {
  2218. _ struct{} `type:"structure"`
  2219. // A user-supplied ID that uniquely identifies the MLModel. This value should
  2220. // be identical to the value of the MLModelId in the request.
  2221. MLModelId *string `min:"1" type:"string"`
  2222. // The endpoint information of the MLModel
  2223. RealtimeEndpointInfo *RealtimeEndpointInfo `type:"structure"`
  2224. }
  2225. // String returns the string representation
  2226. func (s CreateRealtimeEndpointOutput) String() string {
  2227. return awsutil.Prettify(s)
  2228. }
  2229. // GoString returns the string representation
  2230. func (s CreateRealtimeEndpointOutput) GoString() string {
  2231. return s.String()
  2232. }
  2233. // Represents the output of the GetDataSource operation.
  2234. //
  2235. // The content consists of the detailed metadata and data file information
  2236. // and the current status of the DataSource.
  2237. type DataSource struct {
  2238. _ struct{} `type:"structure"`
  2239. // The parameter is true if statistics need to be generated from the observation
  2240. // data.
  2241. ComputeStatistics *bool `type:"boolean"`
  2242. // Long integer type that is a 64-bit signed number.
  2243. ComputeTime *int64 `type:"long"`
  2244. // The time that the DataSource was created. The time is expressed in epoch
  2245. // time.
  2246. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  2247. // The AWS user account from which the DataSource was created. The account type
  2248. // can be either an AWS root account or an AWS Identity and Access Management
  2249. // (IAM) user account.
  2250. CreatedByIamUser *string `type:"string"`
  2251. // The location and name of the data in Amazon Simple Storage Service (Amazon
  2252. // S3) that is used by a DataSource.
  2253. DataLocationS3 *string `type:"string"`
  2254. // A JSON string that represents the splitting and rearrangement requirement
  2255. // used when this DataSource was created.
  2256. DataRearrangement *string `type:"string"`
  2257. // The total number of observations contained in the data files that the DataSource
  2258. // references.
  2259. DataSizeInBytes *int64 `type:"long"`
  2260. // The ID that is assigned to the DataSource during creation.
  2261. DataSourceId *string `min:"1" type:"string"`
  2262. // A timestamp represented in epoch time.
  2263. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  2264. // The time of the most recent edit to the BatchPrediction. The time is expressed
  2265. // in epoch time.
  2266. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  2267. // A description of the most recent details about creating the DataSource.
  2268. Message *string `type:"string"`
  2269. // A user-supplied name or description of the DataSource.
  2270. Name *string `type:"string"`
  2271. // The number of data files referenced by the DataSource.
  2272. NumberOfFiles *int64 `type:"long"`
  2273. // The datasource details that are specific to Amazon RDS.
  2274. RDSMetadata *RDSMetadata `type:"structure"`
  2275. // Describes the DataSource details specific to Amazon Redshift.
  2276. RedshiftMetadata *RedshiftMetadata `type:"structure"`
  2277. // The Amazon Resource Name (ARN) of an AWS IAM Role (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts),
  2278. // such as the following: arn:aws:iam::account:role/rolename.
  2279. RoleARN *string `min:"1" type:"string"`
  2280. // A timestamp represented in epoch time.
  2281. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  2282. // The current status of the DataSource. This element can have one of the following
  2283. // values:
  2284. //
  2285. // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create
  2286. // a DataSource. INPROGRESS - The creation process is underway. FAILED - The
  2287. // request to create a DataSource did not run to completion. It is not usable.
  2288. // COMPLETED - The creation process completed successfully. DELETED - The DataSource
  2289. // is marked as deleted. It is not usable.
  2290. Status *string `type:"string" enum:"EntityStatus"`
  2291. }
  2292. // String returns the string representation
  2293. func (s DataSource) String() string {
  2294. return awsutil.Prettify(s)
  2295. }
  2296. // GoString returns the string representation
  2297. func (s DataSource) GoString() string {
  2298. return s.String()
  2299. }
  2300. type DeleteBatchPredictionInput struct {
  2301. _ struct{} `type:"structure"`
  2302. // A user-supplied ID that uniquely identifies the BatchPrediction.
  2303. BatchPredictionId *string `min:"1" type:"string" required:"true"`
  2304. }
  2305. // String returns the string representation
  2306. func (s DeleteBatchPredictionInput) String() string {
  2307. return awsutil.Prettify(s)
  2308. }
  2309. // GoString returns the string representation
  2310. func (s DeleteBatchPredictionInput) GoString() string {
  2311. return s.String()
  2312. }
  2313. // Validate inspects the fields of the type to determine if they are valid.
  2314. func (s *DeleteBatchPredictionInput) Validate() error {
  2315. invalidParams := request.ErrInvalidParams{Context: "DeleteBatchPredictionInput"}
  2316. if s.BatchPredictionId == nil {
  2317. invalidParams.Add(request.NewErrParamRequired("BatchPredictionId"))
  2318. }
  2319. if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 {
  2320. invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1))
  2321. }
  2322. if invalidParams.Len() > 0 {
  2323. return invalidParams
  2324. }
  2325. return nil
  2326. }
  2327. // Represents the output of a DeleteBatchPrediction operation.
  2328. //
  2329. // You can use the GetBatchPrediction operation and check the value of the
  2330. // Status parameter to see whether a BatchPrediction is marked as DELETED.
  2331. type DeleteBatchPredictionOutput struct {
  2332. _ struct{} `type:"structure"`
  2333. // A user-supplied ID that uniquely identifies the BatchPrediction. This value
  2334. // should be identical to the value of the BatchPredictionID in the request.
  2335. BatchPredictionId *string `min:"1" type:"string"`
  2336. }
  2337. // String returns the string representation
  2338. func (s DeleteBatchPredictionOutput) String() string {
  2339. return awsutil.Prettify(s)
  2340. }
  2341. // GoString returns the string representation
  2342. func (s DeleteBatchPredictionOutput) GoString() string {
  2343. return s.String()
  2344. }
  2345. type DeleteDataSourceInput struct {
  2346. _ struct{} `type:"structure"`
  2347. // A user-supplied ID that uniquely identifies the DataSource.
  2348. DataSourceId *string `min:"1" type:"string" required:"true"`
  2349. }
  2350. // String returns the string representation
  2351. func (s DeleteDataSourceInput) String() string {
  2352. return awsutil.Prettify(s)
  2353. }
  2354. // GoString returns the string representation
  2355. func (s DeleteDataSourceInput) GoString() string {
  2356. return s.String()
  2357. }
  2358. // Validate inspects the fields of the type to determine if they are valid.
  2359. func (s *DeleteDataSourceInput) Validate() error {
  2360. invalidParams := request.ErrInvalidParams{Context: "DeleteDataSourceInput"}
  2361. if s.DataSourceId == nil {
  2362. invalidParams.Add(request.NewErrParamRequired("DataSourceId"))
  2363. }
  2364. if s.DataSourceId != nil && len(*s.DataSourceId) < 1 {
  2365. invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1))
  2366. }
  2367. if invalidParams.Len() > 0 {
  2368. return invalidParams
  2369. }
  2370. return nil
  2371. }
  2372. // Represents the output of a DeleteDataSource operation.
  2373. type DeleteDataSourceOutput struct {
  2374. _ struct{} `type:"structure"`
  2375. // A user-supplied ID that uniquely identifies the DataSource. This value should
  2376. // be identical to the value of the DataSourceID in the request.
  2377. DataSourceId *string `min:"1" type:"string"`
  2378. }
  2379. // String returns the string representation
  2380. func (s DeleteDataSourceOutput) String() string {
  2381. return awsutil.Prettify(s)
  2382. }
  2383. // GoString returns the string representation
  2384. func (s DeleteDataSourceOutput) GoString() string {
  2385. return s.String()
  2386. }
  2387. type DeleteEvaluationInput struct {
  2388. _ struct{} `type:"structure"`
  2389. // A user-supplied ID that uniquely identifies the Evaluation to delete.
  2390. EvaluationId *string `min:"1" type:"string" required:"true"`
  2391. }
  2392. // String returns the string representation
  2393. func (s DeleteEvaluationInput) String() string {
  2394. return awsutil.Prettify(s)
  2395. }
  2396. // GoString returns the string representation
  2397. func (s DeleteEvaluationInput) GoString() string {
  2398. return s.String()
  2399. }
  2400. // Validate inspects the fields of the type to determine if they are valid.
  2401. func (s *DeleteEvaluationInput) Validate() error {
  2402. invalidParams := request.ErrInvalidParams{Context: "DeleteEvaluationInput"}
  2403. if s.EvaluationId == nil {
  2404. invalidParams.Add(request.NewErrParamRequired("EvaluationId"))
  2405. }
  2406. if s.EvaluationId != nil && len(*s.EvaluationId) < 1 {
  2407. invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1))
  2408. }
  2409. if invalidParams.Len() > 0 {
  2410. return invalidParams
  2411. }
  2412. return nil
  2413. }
  2414. // Represents the output of a DeleteEvaluation operation. The output indicates
  2415. // that Amazon Machine Learning (Amazon ML) received the request.
  2416. //
  2417. // You can use the GetEvaluation operation and check the value of the Status
  2418. // parameter to see whether an Evaluation is marked as DELETED.
  2419. type DeleteEvaluationOutput struct {
  2420. _ struct{} `type:"structure"`
  2421. // A user-supplied ID that uniquely identifies the Evaluation. This value should
  2422. // be identical to the value of the EvaluationId in the request.
  2423. EvaluationId *string `min:"1" type:"string"`
  2424. }
  2425. // String returns the string representation
  2426. func (s DeleteEvaluationOutput) String() string {
  2427. return awsutil.Prettify(s)
  2428. }
  2429. // GoString returns the string representation
  2430. func (s DeleteEvaluationOutput) GoString() string {
  2431. return s.String()
  2432. }
  2433. type DeleteMLModelInput struct {
  2434. _ struct{} `type:"structure"`
  2435. // A user-supplied ID that uniquely identifies the MLModel.
  2436. MLModelId *string `min:"1" type:"string" required:"true"`
  2437. }
  2438. // String returns the string representation
  2439. func (s DeleteMLModelInput) String() string {
  2440. return awsutil.Prettify(s)
  2441. }
  2442. // GoString returns the string representation
  2443. func (s DeleteMLModelInput) GoString() string {
  2444. return s.String()
  2445. }
  2446. // Validate inspects the fields of the type to determine if they are valid.
  2447. func (s *DeleteMLModelInput) Validate() error {
  2448. invalidParams := request.ErrInvalidParams{Context: "DeleteMLModelInput"}
  2449. if s.MLModelId == nil {
  2450. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  2451. }
  2452. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  2453. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  2454. }
  2455. if invalidParams.Len() > 0 {
  2456. return invalidParams
  2457. }
  2458. return nil
  2459. }
  2460. // Represents the output of a DeleteMLModel operation.
  2461. //
  2462. // You can use the GetMLModel operation and check the value of the Status parameter
  2463. // to see whether an MLModel is marked as DELETED.
  2464. type DeleteMLModelOutput struct {
  2465. _ struct{} `type:"structure"`
  2466. // A user-supplied ID that uniquely identifies the MLModel. This value should
  2467. // be identical to the value of the MLModelID in the request.
  2468. MLModelId *string `min:"1" type:"string"`
  2469. }
  2470. // String returns the string representation
  2471. func (s DeleteMLModelOutput) String() string {
  2472. return awsutil.Prettify(s)
  2473. }
  2474. // GoString returns the string representation
  2475. func (s DeleteMLModelOutput) GoString() string {
  2476. return s.String()
  2477. }
  2478. type DeleteRealtimeEndpointInput struct {
  2479. _ struct{} `type:"structure"`
  2480. // The ID assigned to the MLModel during creation.
  2481. MLModelId *string `min:"1" type:"string" required:"true"`
  2482. }
  2483. // String returns the string representation
  2484. func (s DeleteRealtimeEndpointInput) String() string {
  2485. return awsutil.Prettify(s)
  2486. }
  2487. // GoString returns the string representation
  2488. func (s DeleteRealtimeEndpointInput) GoString() string {
  2489. return s.String()
  2490. }
  2491. // Validate inspects the fields of the type to determine if they are valid.
  2492. func (s *DeleteRealtimeEndpointInput) Validate() error {
  2493. invalidParams := request.ErrInvalidParams{Context: "DeleteRealtimeEndpointInput"}
  2494. if s.MLModelId == nil {
  2495. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  2496. }
  2497. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  2498. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  2499. }
  2500. if invalidParams.Len() > 0 {
  2501. return invalidParams
  2502. }
  2503. return nil
  2504. }
  2505. // Represents the output of an DeleteRealtimeEndpoint operation.
  2506. //
  2507. // The result contains the MLModelId and the endpoint information for the MLModel.
  2508. type DeleteRealtimeEndpointOutput struct {
  2509. _ struct{} `type:"structure"`
  2510. // A user-supplied ID that uniquely identifies the MLModel. This value should
  2511. // be identical to the value of the MLModelId in the request.
  2512. MLModelId *string `min:"1" type:"string"`
  2513. // The endpoint information of the MLModel
  2514. RealtimeEndpointInfo *RealtimeEndpointInfo `type:"structure"`
  2515. }
  2516. // String returns the string representation
  2517. func (s DeleteRealtimeEndpointOutput) String() string {
  2518. return awsutil.Prettify(s)
  2519. }
  2520. // GoString returns the string representation
  2521. func (s DeleteRealtimeEndpointOutput) GoString() string {
  2522. return s.String()
  2523. }
  2524. type DeleteTagsInput struct {
  2525. _ struct{} `type:"structure"`
  2526. // The ID of the tagged ML object. For example, exampleModelId.
  2527. ResourceId *string `min:"1" type:"string" required:"true"`
  2528. // The type of the tagged ML object.
  2529. ResourceType *string `type:"string" required:"true" enum:"TaggableResourceType"`
  2530. // One or more tags to delete.
  2531. TagKeys []*string `type:"list" required:"true"`
  2532. }
  2533. // String returns the string representation
  2534. func (s DeleteTagsInput) String() string {
  2535. return awsutil.Prettify(s)
  2536. }
  2537. // GoString returns the string representation
  2538. func (s DeleteTagsInput) GoString() string {
  2539. return s.String()
  2540. }
  2541. // Validate inspects the fields of the type to determine if they are valid.
  2542. func (s *DeleteTagsInput) Validate() error {
  2543. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  2544. if s.ResourceId == nil {
  2545. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  2546. }
  2547. if s.ResourceId != nil && len(*s.ResourceId) < 1 {
  2548. invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
  2549. }
  2550. if s.ResourceType == nil {
  2551. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  2552. }
  2553. if s.TagKeys == nil {
  2554. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  2555. }
  2556. if invalidParams.Len() > 0 {
  2557. return invalidParams
  2558. }
  2559. return nil
  2560. }
  2561. // Amazon ML returns the following elements.
  2562. type DeleteTagsOutput struct {
  2563. _ struct{} `type:"structure"`
  2564. // The ID of the ML object from which tags were deleted.
  2565. ResourceId *string `min:"1" type:"string"`
  2566. // The type of the ML object from which tags were deleted.
  2567. ResourceType *string `type:"string" enum:"TaggableResourceType"`
  2568. }
  2569. // String returns the string representation
  2570. func (s DeleteTagsOutput) String() string {
  2571. return awsutil.Prettify(s)
  2572. }
  2573. // GoString returns the string representation
  2574. func (s DeleteTagsOutput) GoString() string {
  2575. return s.String()
  2576. }
  2577. type DescribeBatchPredictionsInput struct {
  2578. _ struct{} `type:"structure"`
  2579. // The equal to operator. The BatchPrediction results will have FilterVariable
  2580. // values that exactly match the value specified with EQ.
  2581. EQ *string `type:"string"`
  2582. // Use one of the following variables to filter a list of BatchPrediction:
  2583. //
  2584. // CreatedAt - Sets the search criteria to the BatchPrediction creation date.
  2585. // Status - Sets the search criteria to the BatchPrediction status. Name -
  2586. // Sets the search criteria to the contents of the BatchPrediction Name. IAMUser
  2587. // - Sets the search criteria to the user account that invoked the BatchPrediction
  2588. // creation. MLModelId - Sets the search criteria to the MLModel used in the
  2589. // BatchPrediction. DataSourceId - Sets the search criteria to the DataSource
  2590. // used in the BatchPrediction. DataURI - Sets the search criteria to the data
  2591. // file(s) used in the BatchPrediction. The URL can identify either a file or
  2592. // an Amazon Simple Storage Solution (Amazon S3) bucket or directory.
  2593. FilterVariable *string `type:"string" enum:"BatchPredictionFilterVariable"`
  2594. // The greater than or equal to operator. The BatchPrediction results will have
  2595. // FilterVariable values that are greater than or equal to the value specified
  2596. // with GE.
  2597. GE *string `type:"string"`
  2598. // The greater than operator. The BatchPrediction results will have FilterVariable
  2599. // values that are greater than the value specified with GT.
  2600. GT *string `type:"string"`
  2601. // The less than or equal to operator. The BatchPrediction results will have
  2602. // FilterVariable values that are less than or equal to the value specified
  2603. // with LE.
  2604. LE *string `type:"string"`
  2605. // The less than operator. The BatchPrediction results will have FilterVariable
  2606. // values that are less than the value specified with LT.
  2607. LT *string `type:"string"`
  2608. // The number of pages of information to include in the result. The range of
  2609. // acceptable values is 1 through 100. The default value is 100.
  2610. Limit *int64 `min:"1" type:"integer"`
  2611. // The not equal to operator. The BatchPrediction results will have FilterVariable
  2612. // values not equal to the value specified with NE.
  2613. NE *string `type:"string"`
  2614. // An ID of the page in the paginated results.
  2615. NextToken *string `type:"string"`
  2616. // A string that is found at the beginning of a variable, such as Name or Id.
  2617. //
  2618. // For example, a Batch Prediction operation could have the Name 2014-09-09-HolidayGiftMailer.
  2619. // To search for this BatchPrediction, select Name for the FilterVariable and
  2620. // any of the following strings for the Prefix:
  2621. //
  2622. // 2014-09
  2623. //
  2624. // 2014-09-09
  2625. //
  2626. // 2014-09-09-Holiday
  2627. Prefix *string `type:"string"`
  2628. // A two-value parameter that determines the sequence of the resulting list
  2629. // of MLModels.
  2630. //
  2631. // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges
  2632. // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable.
  2633. SortOrder *string `type:"string" enum:"SortOrder"`
  2634. }
  2635. // String returns the string representation
  2636. func (s DescribeBatchPredictionsInput) String() string {
  2637. return awsutil.Prettify(s)
  2638. }
  2639. // GoString returns the string representation
  2640. func (s DescribeBatchPredictionsInput) GoString() string {
  2641. return s.String()
  2642. }
  2643. // Validate inspects the fields of the type to determine if they are valid.
  2644. func (s *DescribeBatchPredictionsInput) Validate() error {
  2645. invalidParams := request.ErrInvalidParams{Context: "DescribeBatchPredictionsInput"}
  2646. if s.Limit != nil && *s.Limit < 1 {
  2647. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2648. }
  2649. if invalidParams.Len() > 0 {
  2650. return invalidParams
  2651. }
  2652. return nil
  2653. }
  2654. // Represents the output of a DescribeBatchPredictions operation. The content
  2655. // is essentially a list of BatchPredictions.
  2656. type DescribeBatchPredictionsOutput struct {
  2657. _ struct{} `type:"structure"`
  2658. // The ID of the next page in the paginated results that indicates at least
  2659. // one more page follows.
  2660. NextToken *string `type:"string"`
  2661. // A list of BatchPrediction objects that meet the search criteria.
  2662. Results []*BatchPrediction `type:"list"`
  2663. }
  2664. // String returns the string representation
  2665. func (s DescribeBatchPredictionsOutput) String() string {
  2666. return awsutil.Prettify(s)
  2667. }
  2668. // GoString returns the string representation
  2669. func (s DescribeBatchPredictionsOutput) GoString() string {
  2670. return s.String()
  2671. }
  2672. type DescribeDataSourcesInput struct {
  2673. _ struct{} `type:"structure"`
  2674. // The equal to operator. The DataSource results will have FilterVariable values
  2675. // that exactly match the value specified with EQ.
  2676. EQ *string `type:"string"`
  2677. // Use one of the following variables to filter a list of DataSource:
  2678. //
  2679. // CreatedAt - Sets the search criteria to DataSource creation dates. Status
  2680. // - Sets the search criteria to DataSource statuses. Name - Sets the search
  2681. // criteria to the contents of DataSource Name. DataUri - Sets the search
  2682. // criteria to the URI of data files used to create the DataSource. The URI
  2683. // can identify either a file or an Amazon Simple Storage Service (Amazon S3)
  2684. // bucket or directory. IAMUser - Sets the search criteria to the user account
  2685. // that invoked the DataSource creation.
  2686. FilterVariable *string `type:"string" enum:"DataSourceFilterVariable"`
  2687. // The greater than or equal to operator. The DataSource results will have FilterVariable
  2688. // values that are greater than or equal to the value specified with GE.
  2689. GE *string `type:"string"`
  2690. // The greater than operator. The DataSource results will have FilterVariable
  2691. // values that are greater than the value specified with GT.
  2692. GT *string `type:"string"`
  2693. // The less than or equal to operator. The DataSource results will have FilterVariable
  2694. // values that are less than or equal to the value specified with LE.
  2695. LE *string `type:"string"`
  2696. // The less than operator. The DataSource results will have FilterVariable values
  2697. // that are less than the value specified with LT.
  2698. LT *string `type:"string"`
  2699. // The maximum number of DataSource to include in the result.
  2700. Limit *int64 `min:"1" type:"integer"`
  2701. // The not equal to operator. The DataSource results will have FilterVariable
  2702. // values not equal to the value specified with NE.
  2703. NE *string `type:"string"`
  2704. // The ID of the page in the paginated results.
  2705. NextToken *string `type:"string"`
  2706. // A string that is found at the beginning of a variable, such as Name or Id.
  2707. //
  2708. // For example, a DataSource could have the Name 2014-09-09-HolidayGiftMailer.
  2709. // To search for this DataSource, select Name for the FilterVariable and any
  2710. // of the following strings for the Prefix:
  2711. //
  2712. // 2014-09
  2713. //
  2714. // 2014-09-09
  2715. //
  2716. // 2014-09-09-Holiday
  2717. Prefix *string `type:"string"`
  2718. // A two-value parameter that determines the sequence of the resulting list
  2719. // of DataSource.
  2720. //
  2721. // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges
  2722. // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable.
  2723. SortOrder *string `type:"string" enum:"SortOrder"`
  2724. }
  2725. // String returns the string representation
  2726. func (s DescribeDataSourcesInput) String() string {
  2727. return awsutil.Prettify(s)
  2728. }
  2729. // GoString returns the string representation
  2730. func (s DescribeDataSourcesInput) GoString() string {
  2731. return s.String()
  2732. }
  2733. // Validate inspects the fields of the type to determine if they are valid.
  2734. func (s *DescribeDataSourcesInput) Validate() error {
  2735. invalidParams := request.ErrInvalidParams{Context: "DescribeDataSourcesInput"}
  2736. if s.Limit != nil && *s.Limit < 1 {
  2737. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2738. }
  2739. if invalidParams.Len() > 0 {
  2740. return invalidParams
  2741. }
  2742. return nil
  2743. }
  2744. // Represents the query results from a DescribeDataSources operation. The content
  2745. // is essentially a list of DataSource.
  2746. type DescribeDataSourcesOutput struct {
  2747. _ struct{} `type:"structure"`
  2748. // An ID of the next page in the paginated results that indicates at least one
  2749. // more page follows.
  2750. NextToken *string `type:"string"`
  2751. // A list of DataSource that meet the search criteria.
  2752. Results []*DataSource `type:"list"`
  2753. }
  2754. // String returns the string representation
  2755. func (s DescribeDataSourcesOutput) String() string {
  2756. return awsutil.Prettify(s)
  2757. }
  2758. // GoString returns the string representation
  2759. func (s DescribeDataSourcesOutput) GoString() string {
  2760. return s.String()
  2761. }
  2762. type DescribeEvaluationsInput struct {
  2763. _ struct{} `type:"structure"`
  2764. // The equal to operator. The Evaluation results will have FilterVariable values
  2765. // that exactly match the value specified with EQ.
  2766. EQ *string `type:"string"`
  2767. // Use one of the following variable to filter a list of Evaluation objects:
  2768. //
  2769. // CreatedAt - Sets the search criteria to the Evaluation creation date.
  2770. // Status - Sets the search criteria to the Evaluation status. Name - Sets
  2771. // the search criteria to the contents of Evaluation Name. IAMUser - Sets
  2772. // the search criteria to the user account that invoked an Evaluation. MLModelId
  2773. // - Sets the search criteria to the MLModel that was evaluated. DataSourceId
  2774. // - Sets the search criteria to the DataSource used in Evaluation. DataUri
  2775. // - Sets the search criteria to the data file(s) used in Evaluation. The URL
  2776. // can identify either a file or an Amazon Simple Storage Solution (Amazon S3)
  2777. // bucket or directory.
  2778. FilterVariable *string `type:"string" enum:"EvaluationFilterVariable"`
  2779. // The greater than or equal to operator. The Evaluation results will have FilterVariable
  2780. // values that are greater than or equal to the value specified with GE.
  2781. GE *string `type:"string"`
  2782. // The greater than operator. The Evaluation results will have FilterVariable
  2783. // values that are greater than the value specified with GT.
  2784. GT *string `type:"string"`
  2785. // The less than or equal to operator. The Evaluation results will have FilterVariable
  2786. // values that are less than or equal to the value specified with LE.
  2787. LE *string `type:"string"`
  2788. // The less than operator. The Evaluation results will have FilterVariable values
  2789. // that are less than the value specified with LT.
  2790. LT *string `type:"string"`
  2791. // The maximum number of Evaluation to include in the result.
  2792. Limit *int64 `min:"1" type:"integer"`
  2793. // The not equal to operator. The Evaluation results will have FilterVariable
  2794. // values not equal to the value specified with NE.
  2795. NE *string `type:"string"`
  2796. // The ID of the page in the paginated results.
  2797. NextToken *string `type:"string"`
  2798. // A string that is found at the beginning of a variable, such as Name or Id.
  2799. //
  2800. // For example, an Evaluation could have the Name 2014-09-09-HolidayGiftMailer.
  2801. // To search for this Evaluation, select Name for the FilterVariable and any
  2802. // of the following strings for the Prefix:
  2803. //
  2804. // 2014-09
  2805. //
  2806. // 2014-09-09
  2807. //
  2808. // 2014-09-09-Holiday
  2809. Prefix *string `type:"string"`
  2810. // A two-value parameter that determines the sequence of the resulting list
  2811. // of Evaluation.
  2812. //
  2813. // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges
  2814. // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable.
  2815. SortOrder *string `type:"string" enum:"SortOrder"`
  2816. }
  2817. // String returns the string representation
  2818. func (s DescribeEvaluationsInput) String() string {
  2819. return awsutil.Prettify(s)
  2820. }
  2821. // GoString returns the string representation
  2822. func (s DescribeEvaluationsInput) GoString() string {
  2823. return s.String()
  2824. }
  2825. // Validate inspects the fields of the type to determine if they are valid.
  2826. func (s *DescribeEvaluationsInput) Validate() error {
  2827. invalidParams := request.ErrInvalidParams{Context: "DescribeEvaluationsInput"}
  2828. if s.Limit != nil && *s.Limit < 1 {
  2829. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2830. }
  2831. if invalidParams.Len() > 0 {
  2832. return invalidParams
  2833. }
  2834. return nil
  2835. }
  2836. // Represents the query results from a DescribeEvaluations operation. The content
  2837. // is essentially a list of Evaluation.
  2838. type DescribeEvaluationsOutput struct {
  2839. _ struct{} `type:"structure"`
  2840. // The ID of the next page in the paginated results that indicates at least
  2841. // one more page follows.
  2842. NextToken *string `type:"string"`
  2843. // A list of Evaluation that meet the search criteria.
  2844. Results []*Evaluation `type:"list"`
  2845. }
  2846. // String returns the string representation
  2847. func (s DescribeEvaluationsOutput) String() string {
  2848. return awsutil.Prettify(s)
  2849. }
  2850. // GoString returns the string representation
  2851. func (s DescribeEvaluationsOutput) GoString() string {
  2852. return s.String()
  2853. }
  2854. type DescribeMLModelsInput struct {
  2855. _ struct{} `type:"structure"`
  2856. // The equal to operator. The MLModel results will have FilterVariable values
  2857. // that exactly match the value specified with EQ.
  2858. EQ *string `type:"string"`
  2859. // Use one of the following variables to filter a list of MLModel:
  2860. //
  2861. // CreatedAt - Sets the search criteria to MLModel creation date. Status
  2862. // - Sets the search criteria to MLModel status. Name - Sets the search criteria
  2863. // to the contents of MLModel Name. IAMUser - Sets the search criteria to
  2864. // the user account that invoked the MLModel creation. TrainingDataSourceId
  2865. // - Sets the search criteria to the DataSource used to train one or more MLModel.
  2866. // RealtimeEndpointStatus - Sets the search criteria to the MLModel real-time
  2867. // endpoint status. MLModelType - Sets the search criteria to MLModel type:
  2868. // binary, regression, or multi-class. Algorithm - Sets the search criteria
  2869. // to the algorithm that the MLModel uses. TrainingDataURI - Sets the search
  2870. // criteria to the data file(s) used in training a MLModel. The URL can identify
  2871. // either a file or an Amazon Simple Storage Service (Amazon S3) bucket or directory.
  2872. FilterVariable *string `type:"string" enum:"MLModelFilterVariable"`
  2873. // The greater than or equal to operator. The MLModel results will have FilterVariable
  2874. // values that are greater than or equal to the value specified with GE.
  2875. GE *string `type:"string"`
  2876. // The greater than operator. The MLModel results will have FilterVariable values
  2877. // that are greater than the value specified with GT.
  2878. GT *string `type:"string"`
  2879. // The less than or equal to operator. The MLModel results will have FilterVariable
  2880. // values that are less than or equal to the value specified with LE.
  2881. LE *string `type:"string"`
  2882. // The less than operator. The MLModel results will have FilterVariable values
  2883. // that are less than the value specified with LT.
  2884. LT *string `type:"string"`
  2885. // The number of pages of information to include in the result. The range of
  2886. // acceptable values is 1 through 100. The default value is 100.
  2887. Limit *int64 `min:"1" type:"integer"`
  2888. // The not equal to operator. The MLModel results will have FilterVariable values
  2889. // not equal to the value specified with NE.
  2890. NE *string `type:"string"`
  2891. // The ID of the page in the paginated results.
  2892. NextToken *string `type:"string"`
  2893. // A string that is found at the beginning of a variable, such as Name or Id.
  2894. //
  2895. // For example, an MLModel could have the Name 2014-09-09-HolidayGiftMailer.
  2896. // To search for this MLModel, select Name for the FilterVariable and any of
  2897. // the following strings for the Prefix:
  2898. //
  2899. // 2014-09
  2900. //
  2901. // 2014-09-09
  2902. //
  2903. // 2014-09-09-Holiday
  2904. Prefix *string `type:"string"`
  2905. // A two-value parameter that determines the sequence of the resulting list
  2906. // of MLModel.
  2907. //
  2908. // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges
  2909. // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable.
  2910. SortOrder *string `type:"string" enum:"SortOrder"`
  2911. }
  2912. // String returns the string representation
  2913. func (s DescribeMLModelsInput) String() string {
  2914. return awsutil.Prettify(s)
  2915. }
  2916. // GoString returns the string representation
  2917. func (s DescribeMLModelsInput) GoString() string {
  2918. return s.String()
  2919. }
  2920. // Validate inspects the fields of the type to determine if they are valid.
  2921. func (s *DescribeMLModelsInput) Validate() error {
  2922. invalidParams := request.ErrInvalidParams{Context: "DescribeMLModelsInput"}
  2923. if s.Limit != nil && *s.Limit < 1 {
  2924. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2925. }
  2926. if invalidParams.Len() > 0 {
  2927. return invalidParams
  2928. }
  2929. return nil
  2930. }
  2931. // Represents the output of a DescribeMLModels operation. The content is essentially
  2932. // a list of MLModel.
  2933. type DescribeMLModelsOutput struct {
  2934. _ struct{} `type:"structure"`
  2935. // The ID of the next page in the paginated results that indicates at least
  2936. // one more page follows.
  2937. NextToken *string `type:"string"`
  2938. // A list of MLModel that meet the search criteria.
  2939. Results []*MLModel `type:"list"`
  2940. }
  2941. // String returns the string representation
  2942. func (s DescribeMLModelsOutput) String() string {
  2943. return awsutil.Prettify(s)
  2944. }
  2945. // GoString returns the string representation
  2946. func (s DescribeMLModelsOutput) GoString() string {
  2947. return s.String()
  2948. }
  2949. type DescribeTagsInput struct {
  2950. _ struct{} `type:"structure"`
  2951. // The ID of the ML object. For example, exampleModelId.
  2952. ResourceId *string `min:"1" type:"string" required:"true"`
  2953. // The type of the ML object.
  2954. ResourceType *string `type:"string" required:"true" enum:"TaggableResourceType"`
  2955. }
  2956. // String returns the string representation
  2957. func (s DescribeTagsInput) String() string {
  2958. return awsutil.Prettify(s)
  2959. }
  2960. // GoString returns the string representation
  2961. func (s DescribeTagsInput) GoString() string {
  2962. return s.String()
  2963. }
  2964. // Validate inspects the fields of the type to determine if they are valid.
  2965. func (s *DescribeTagsInput) Validate() error {
  2966. invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
  2967. if s.ResourceId == nil {
  2968. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  2969. }
  2970. if s.ResourceId != nil && len(*s.ResourceId) < 1 {
  2971. invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
  2972. }
  2973. if s.ResourceType == nil {
  2974. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  2975. }
  2976. if invalidParams.Len() > 0 {
  2977. return invalidParams
  2978. }
  2979. return nil
  2980. }
  2981. // Amazon ML returns the following elements.
  2982. type DescribeTagsOutput struct {
  2983. _ struct{} `type:"structure"`
  2984. // The ID of the tagged ML object.
  2985. ResourceId *string `min:"1" type:"string"`
  2986. // The type of the tagged ML object.
  2987. ResourceType *string `type:"string" enum:"TaggableResourceType"`
  2988. // A list of tags associated with the ML object.
  2989. Tags []*Tag `type:"list"`
  2990. }
  2991. // String returns the string representation
  2992. func (s DescribeTagsOutput) String() string {
  2993. return awsutil.Prettify(s)
  2994. }
  2995. // GoString returns the string representation
  2996. func (s DescribeTagsOutput) GoString() string {
  2997. return s.String()
  2998. }
  2999. // Represents the output of GetEvaluation operation.
  3000. //
  3001. // The content consists of the detailed metadata and data file information
  3002. // and the current status of the Evaluation.
  3003. type Evaluation struct {
  3004. _ struct{} `type:"structure"`
  3005. // Long integer type that is a 64-bit signed number.
  3006. ComputeTime *int64 `type:"long"`
  3007. // The time that the Evaluation was created. The time is expressed in epoch
  3008. // time.
  3009. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3010. // The AWS user account that invoked the evaluation. The account type can be
  3011. // either an AWS root account or an AWS Identity and Access Management (IAM)
  3012. // user account.
  3013. CreatedByIamUser *string `type:"string"`
  3014. // The ID of the DataSource that is used to evaluate the MLModel.
  3015. EvaluationDataSourceId *string `min:"1" type:"string"`
  3016. // The ID that is assigned to the Evaluation at creation.
  3017. EvaluationId *string `min:"1" type:"string"`
  3018. // A timestamp represented in epoch time.
  3019. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3020. // The location and name of the data in Amazon Simple Storage Server (Amazon
  3021. // S3) that is used in the evaluation.
  3022. InputDataLocationS3 *string `type:"string"`
  3023. // The time of the most recent edit to the Evaluation. The time is expressed
  3024. // in epoch time.
  3025. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3026. // The ID of the MLModel that is the focus of the evaluation.
  3027. MLModelId *string `min:"1" type:"string"`
  3028. // A description of the most recent details about evaluating the MLModel.
  3029. Message *string `type:"string"`
  3030. // A user-supplied name or description of the Evaluation.
  3031. Name *string `type:"string"`
  3032. // Measurements of how well the MLModel performed, using observations referenced
  3033. // by the DataSource. One of the following metrics is returned, based on the
  3034. // type of the MLModel:
  3035. //
  3036. // BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique
  3037. // to measure performance.
  3038. //
  3039. // RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE)
  3040. // technique to measure performance. RMSE measures the difference between predicted
  3041. // and actual values for a single variable.
  3042. //
  3043. // MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique
  3044. // to measure performance.
  3045. //
  3046. // For more information about performance metrics, please see the Amazon
  3047. // Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg).
  3048. PerformanceMetrics *PerformanceMetrics `type:"structure"`
  3049. // A timestamp represented in epoch time.
  3050. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3051. // The status of the evaluation. This element can have one of the following
  3052. // values:
  3053. //
  3054. // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to evaluate
  3055. // an MLModel. INPROGRESS - The evaluation is underway. FAILED - The request
  3056. // to evaluate an MLModel did not run to completion. It is not usable. COMPLETED
  3057. // - The evaluation process completed successfully. DELETED - The Evaluation
  3058. // is marked as deleted. It is not usable.
  3059. Status *string `type:"string" enum:"EntityStatus"`
  3060. }
  3061. // String returns the string representation
  3062. func (s Evaluation) String() string {
  3063. return awsutil.Prettify(s)
  3064. }
  3065. // GoString returns the string representation
  3066. func (s Evaluation) GoString() string {
  3067. return s.String()
  3068. }
  3069. type GetBatchPredictionInput struct {
  3070. _ struct{} `type:"structure"`
  3071. // An ID assigned to the BatchPrediction at creation.
  3072. BatchPredictionId *string `min:"1" type:"string" required:"true"`
  3073. }
  3074. // String returns the string representation
  3075. func (s GetBatchPredictionInput) String() string {
  3076. return awsutil.Prettify(s)
  3077. }
  3078. // GoString returns the string representation
  3079. func (s GetBatchPredictionInput) GoString() string {
  3080. return s.String()
  3081. }
  3082. // Validate inspects the fields of the type to determine if they are valid.
  3083. func (s *GetBatchPredictionInput) Validate() error {
  3084. invalidParams := request.ErrInvalidParams{Context: "GetBatchPredictionInput"}
  3085. if s.BatchPredictionId == nil {
  3086. invalidParams.Add(request.NewErrParamRequired("BatchPredictionId"))
  3087. }
  3088. if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 {
  3089. invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1))
  3090. }
  3091. if invalidParams.Len() > 0 {
  3092. return invalidParams
  3093. }
  3094. return nil
  3095. }
  3096. // Represents the output of a GetBatchPrediction operation and describes a BatchPrediction.
  3097. type GetBatchPredictionOutput struct {
  3098. _ struct{} `type:"structure"`
  3099. // The ID of the DataSource that was used to create the BatchPrediction.
  3100. BatchPredictionDataSourceId *string `min:"1" type:"string"`
  3101. // An ID assigned to the BatchPrediction at creation. This value should be identical
  3102. // to the value of the BatchPredictionID in the request.
  3103. BatchPredictionId *string `min:"1" type:"string"`
  3104. // The approximate CPU time in milliseconds that Amazon Machine Learning spent
  3105. // processing the BatchPrediction, normalized and scaled on computation resources.
  3106. // ComputeTime is only available if the BatchPrediction is in the COMPLETED
  3107. // state.
  3108. ComputeTime *int64 `type:"long"`
  3109. // The time when the BatchPrediction was created. The time is expressed in epoch
  3110. // time.
  3111. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3112. // The AWS user account that invoked the BatchPrediction. The account type can
  3113. // be either an AWS root account or an AWS Identity and Access Management (IAM)
  3114. // user account.
  3115. CreatedByIamUser *string `type:"string"`
  3116. // The epoch time when Amazon Machine Learning marked the BatchPrediction as
  3117. // COMPLETED or FAILED. FinishedAt is only available when the BatchPrediction
  3118. // is in the COMPLETED or FAILED state.
  3119. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3120. // The location of the data file or directory in Amazon Simple Storage Service
  3121. // (Amazon S3).
  3122. InputDataLocationS3 *string `type:"string"`
  3123. // The number of invalid records that Amazon Machine Learning saw while processing
  3124. // the BatchPrediction.
  3125. InvalidRecordCount *int64 `type:"long"`
  3126. // The time of the most recent edit to BatchPrediction. The time is expressed
  3127. // in epoch time.
  3128. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3129. // A link to the file that contains logs of the CreateBatchPrediction operation.
  3130. LogUri *string `type:"string"`
  3131. // The ID of the MLModel that generated predictions for the BatchPrediction
  3132. // request.
  3133. MLModelId *string `min:"1" type:"string"`
  3134. // A description of the most recent details about processing the batch prediction
  3135. // request.
  3136. Message *string `type:"string"`
  3137. // A user-supplied name or description of the BatchPrediction.
  3138. Name *string `type:"string"`
  3139. // The location of an Amazon S3 bucket or directory to receive the operation
  3140. // results.
  3141. OutputUri *string `type:"string"`
  3142. // The epoch time when Amazon Machine Learning marked the BatchPrediction as
  3143. // INPROGRESS. StartedAt isn't available if the BatchPrediction is in the PENDING
  3144. // state.
  3145. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3146. // The status of the BatchPrediction, which can be one of the following values:
  3147. //
  3148. // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate
  3149. // batch predictions. INPROGRESS - The batch predictions are in progress.
  3150. // FAILED - The request to perform a batch prediction did not run to completion.
  3151. // It is not usable. COMPLETED - The batch prediction process completed successfully.
  3152. // DELETED - The BatchPrediction is marked as deleted. It is not usable.
  3153. Status *string `type:"string" enum:"EntityStatus"`
  3154. // The number of total records that Amazon Machine Learning saw while processing
  3155. // the BatchPrediction.
  3156. TotalRecordCount *int64 `type:"long"`
  3157. }
  3158. // String returns the string representation
  3159. func (s GetBatchPredictionOutput) String() string {
  3160. return awsutil.Prettify(s)
  3161. }
  3162. // GoString returns the string representation
  3163. func (s GetBatchPredictionOutput) GoString() string {
  3164. return s.String()
  3165. }
  3166. type GetDataSourceInput struct {
  3167. _ struct{} `type:"structure"`
  3168. // The ID assigned to the DataSource at creation.
  3169. DataSourceId *string `min:"1" type:"string" required:"true"`
  3170. // Specifies whether the GetDataSource operation should return DataSourceSchema.
  3171. //
  3172. // If true, DataSourceSchema is returned.
  3173. //
  3174. // If false, DataSourceSchema is not returned.
  3175. Verbose *bool `type:"boolean"`
  3176. }
  3177. // String returns the string representation
  3178. func (s GetDataSourceInput) String() string {
  3179. return awsutil.Prettify(s)
  3180. }
  3181. // GoString returns the string representation
  3182. func (s GetDataSourceInput) GoString() string {
  3183. return s.String()
  3184. }
  3185. // Validate inspects the fields of the type to determine if they are valid.
  3186. func (s *GetDataSourceInput) Validate() error {
  3187. invalidParams := request.ErrInvalidParams{Context: "GetDataSourceInput"}
  3188. if s.DataSourceId == nil {
  3189. invalidParams.Add(request.NewErrParamRequired("DataSourceId"))
  3190. }
  3191. if s.DataSourceId != nil && len(*s.DataSourceId) < 1 {
  3192. invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1))
  3193. }
  3194. if invalidParams.Len() > 0 {
  3195. return invalidParams
  3196. }
  3197. return nil
  3198. }
  3199. // Represents the output of a GetDataSource operation and describes a DataSource.
  3200. type GetDataSourceOutput struct {
  3201. _ struct{} `type:"structure"`
  3202. // The parameter is true if statistics need to be generated from the observation
  3203. // data.
  3204. ComputeStatistics *bool `type:"boolean"`
  3205. // The approximate CPU time in milliseconds that Amazon Machine Learning spent
  3206. // processing the DataSource, normalized and scaled on computation resources.
  3207. // ComputeTime is only available if the DataSource is in the COMPLETED state
  3208. // and the ComputeStatistics is set to true.
  3209. ComputeTime *int64 `type:"long"`
  3210. // The time that the DataSource was created. The time is expressed in epoch
  3211. // time.
  3212. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3213. // The AWS user account from which the DataSource was created. The account type
  3214. // can be either an AWS root account or an AWS Identity and Access Management
  3215. // (IAM) user account.
  3216. CreatedByIamUser *string `type:"string"`
  3217. // The location of the data file or directory in Amazon Simple Storage Service
  3218. // (Amazon S3).
  3219. DataLocationS3 *string `type:"string"`
  3220. // A JSON string that represents the splitting and rearrangement requirement
  3221. // used when this DataSource was created.
  3222. DataRearrangement *string `type:"string"`
  3223. // The total size of observations in the data files.
  3224. DataSizeInBytes *int64 `type:"long"`
  3225. // The ID assigned to the DataSource at creation. This value should be identical
  3226. // to the value of the DataSourceId in the request.
  3227. DataSourceId *string `min:"1" type:"string"`
  3228. // The schema used by all of the data files of this DataSource.
  3229. //
  3230. // Note This parameter is provided as part of the verbose format.
  3231. DataSourceSchema *string `type:"string"`
  3232. // The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED
  3233. // or FAILED. FinishedAt is only available when the DataSource is in the COMPLETED
  3234. // or FAILED state.
  3235. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3236. // The time of the most recent edit to the DataSource. The time is expressed
  3237. // in epoch time.
  3238. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3239. // A link to the file containing logs of CreateDataSourceFrom* operations.
  3240. LogUri *string `type:"string"`
  3241. // The user-supplied description of the most recent details about creating the
  3242. // DataSource.
  3243. Message *string `type:"string"`
  3244. // A user-supplied name or description of the DataSource.
  3245. Name *string `type:"string"`
  3246. // The number of data files referenced by the DataSource.
  3247. NumberOfFiles *int64 `type:"long"`
  3248. // The datasource details that are specific to Amazon RDS.
  3249. RDSMetadata *RDSMetadata `type:"structure"`
  3250. // Describes the DataSource details specific to Amazon Redshift.
  3251. RedshiftMetadata *RedshiftMetadata `type:"structure"`
  3252. // The Amazon Resource Name (ARN) of an AWS IAM Role (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts),
  3253. // such as the following: arn:aws:iam::account:role/rolename.
  3254. RoleARN *string `min:"1" type:"string"`
  3255. // The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS.
  3256. // StartedAt isn't available if the DataSource is in the PENDING state.
  3257. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3258. // The current status of the DataSource. This element can have one of the following
  3259. // values:
  3260. //
  3261. // PENDING - Amazon ML submitted a request to create a DataSource. INPROGRESS
  3262. // - The creation process is underway. FAILED - The request to create a DataSource
  3263. // did not run to completion. It is not usable. COMPLETED - The creation process
  3264. // completed successfully. DELETED - The DataSource is marked as deleted. It
  3265. // is not usable.
  3266. Status *string `type:"string" enum:"EntityStatus"`
  3267. }
  3268. // String returns the string representation
  3269. func (s GetDataSourceOutput) String() string {
  3270. return awsutil.Prettify(s)
  3271. }
  3272. // GoString returns the string representation
  3273. func (s GetDataSourceOutput) GoString() string {
  3274. return s.String()
  3275. }
  3276. type GetEvaluationInput struct {
  3277. _ struct{} `type:"structure"`
  3278. // The ID of the Evaluation to retrieve. The evaluation of each MLModel is recorded
  3279. // and cataloged. The ID provides the means to access the information.
  3280. EvaluationId *string `min:"1" type:"string" required:"true"`
  3281. }
  3282. // String returns the string representation
  3283. func (s GetEvaluationInput) String() string {
  3284. return awsutil.Prettify(s)
  3285. }
  3286. // GoString returns the string representation
  3287. func (s GetEvaluationInput) GoString() string {
  3288. return s.String()
  3289. }
  3290. // Validate inspects the fields of the type to determine if they are valid.
  3291. func (s *GetEvaluationInput) Validate() error {
  3292. invalidParams := request.ErrInvalidParams{Context: "GetEvaluationInput"}
  3293. if s.EvaluationId == nil {
  3294. invalidParams.Add(request.NewErrParamRequired("EvaluationId"))
  3295. }
  3296. if s.EvaluationId != nil && len(*s.EvaluationId) < 1 {
  3297. invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1))
  3298. }
  3299. if invalidParams.Len() > 0 {
  3300. return invalidParams
  3301. }
  3302. return nil
  3303. }
  3304. // Represents the output of a GetEvaluation operation and describes an Evaluation.
  3305. type GetEvaluationOutput struct {
  3306. _ struct{} `type:"structure"`
  3307. // The approximate CPU time in milliseconds that Amazon Machine Learning spent
  3308. // processing the Evaluation, normalized and scaled on computation resources.
  3309. // ComputeTime is only available if the Evaluation is in the COMPLETED state.
  3310. ComputeTime *int64 `type:"long"`
  3311. // The time that the Evaluation was created. The time is expressed in epoch
  3312. // time.
  3313. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3314. // The AWS user account that invoked the evaluation. The account type can be
  3315. // either an AWS root account or an AWS Identity and Access Management (IAM)
  3316. // user account.
  3317. CreatedByIamUser *string `type:"string"`
  3318. // The DataSource used for this evaluation.
  3319. EvaluationDataSourceId *string `min:"1" type:"string"`
  3320. // The evaluation ID which is same as the EvaluationId in the request.
  3321. EvaluationId *string `min:"1" type:"string"`
  3322. // The epoch time when Amazon Machine Learning marked the Evaluation as COMPLETED
  3323. // or FAILED. FinishedAt is only available when the Evaluation is in the COMPLETED
  3324. // or FAILED state.
  3325. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3326. // The location of the data file or directory in Amazon Simple Storage Service
  3327. // (Amazon S3).
  3328. InputDataLocationS3 *string `type:"string"`
  3329. // The time of the most recent edit to the Evaluation. The time is expressed
  3330. // in epoch time.
  3331. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3332. // A link to the file that contains logs of the CreateEvaluation operation.
  3333. LogUri *string `type:"string"`
  3334. // The ID of the MLModel that was the focus of the evaluation.
  3335. MLModelId *string `min:"1" type:"string"`
  3336. // A description of the most recent details about evaluating the MLModel.
  3337. Message *string `type:"string"`
  3338. // A user-supplied name or description of the Evaluation.
  3339. Name *string `type:"string"`
  3340. // Measurements of how well the MLModel performed using observations referenced
  3341. // by the DataSource. One of the following metric is returned based on the type
  3342. // of the MLModel:
  3343. //
  3344. // BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique
  3345. // to measure performance.
  3346. //
  3347. // RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE)
  3348. // technique to measure performance. RMSE measures the difference between predicted
  3349. // and actual values for a single variable.
  3350. //
  3351. // MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique
  3352. // to measure performance.
  3353. //
  3354. // For more information about performance metrics, please see the Amazon
  3355. // Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg).
  3356. PerformanceMetrics *PerformanceMetrics `type:"structure"`
  3357. // The epoch time when Amazon Machine Learning marked the Evaluation as INPROGRESS.
  3358. // StartedAt isn't available if the Evaluation is in the PENDING state.
  3359. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3360. // The status of the evaluation. This element can have one of the following
  3361. // values:
  3362. //
  3363. // PENDING - Amazon Machine Language (Amazon ML) submitted a request to evaluate
  3364. // an MLModel. INPROGRESS - The evaluation is underway. FAILED - The request
  3365. // to evaluate an MLModel did not run to completion. It is not usable. COMPLETED
  3366. // - The evaluation process completed successfully. DELETED - The Evaluation
  3367. // is marked as deleted. It is not usable.
  3368. Status *string `type:"string" enum:"EntityStatus"`
  3369. }
  3370. // String returns the string representation
  3371. func (s GetEvaluationOutput) String() string {
  3372. return awsutil.Prettify(s)
  3373. }
  3374. // GoString returns the string representation
  3375. func (s GetEvaluationOutput) GoString() string {
  3376. return s.String()
  3377. }
  3378. type GetMLModelInput struct {
  3379. _ struct{} `type:"structure"`
  3380. // The ID assigned to the MLModel at creation.
  3381. MLModelId *string `min:"1" type:"string" required:"true"`
  3382. // Specifies whether the GetMLModel operation should return Recipe.
  3383. //
  3384. // If true, Recipe is returned.
  3385. //
  3386. // If false, Recipe is not returned.
  3387. Verbose *bool `type:"boolean"`
  3388. }
  3389. // String returns the string representation
  3390. func (s GetMLModelInput) String() string {
  3391. return awsutil.Prettify(s)
  3392. }
  3393. // GoString returns the string representation
  3394. func (s GetMLModelInput) GoString() string {
  3395. return s.String()
  3396. }
  3397. // Validate inspects the fields of the type to determine if they are valid.
  3398. func (s *GetMLModelInput) Validate() error {
  3399. invalidParams := request.ErrInvalidParams{Context: "GetMLModelInput"}
  3400. if s.MLModelId == nil {
  3401. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  3402. }
  3403. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  3404. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  3405. }
  3406. if invalidParams.Len() > 0 {
  3407. return invalidParams
  3408. }
  3409. return nil
  3410. }
  3411. // Represents the output of a GetMLModel operation, and provides detailed information
  3412. // about a MLModel.
  3413. type GetMLModelOutput struct {
  3414. _ struct{} `type:"structure"`
  3415. // The approximate CPU time in milliseconds that Amazon Machine Learning spent
  3416. // processing the MLModel, normalized and scaled on computation resources. ComputeTime
  3417. // is only available if the MLModel is in the COMPLETED state.
  3418. ComputeTime *int64 `type:"long"`
  3419. // The time that the MLModel was created. The time is expressed in epoch time.
  3420. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3421. // The AWS user account from which the MLModel was created. The account type
  3422. // can be either an AWS root account or an AWS Identity and Access Management
  3423. // (IAM) user account.
  3424. CreatedByIamUser *string `type:"string"`
  3425. // The current endpoint of the MLModel
  3426. EndpointInfo *RealtimeEndpointInfo `type:"structure"`
  3427. // The epoch time when Amazon Machine Learning marked the MLModel as COMPLETED
  3428. // or FAILED. FinishedAt is only available when the MLModel is in the COMPLETED
  3429. // or FAILED state.
  3430. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3431. // The location of the data file or directory in Amazon Simple Storage Service
  3432. // (Amazon S3).
  3433. InputDataLocationS3 *string `type:"string"`
  3434. // The time of the most recent edit to the MLModel. The time is expressed in
  3435. // epoch time.
  3436. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3437. // A link to the file that contains logs of the CreateMLModel operation.
  3438. LogUri *string `type:"string"`
  3439. // The MLModel ID, which is same as the MLModelId in the request.
  3440. MLModelId *string `min:"1" type:"string"`
  3441. // Identifies the MLModel category. The following are the available types:
  3442. //
  3443. // REGRESSION -- Produces a numeric result. For example, "What price should
  3444. // a house be listed at?" BINARY -- Produces one of two possible results. For
  3445. // example, "Is this an e-commerce website?" MULTICLASS -- Produces one of several
  3446. // possible results. For example, "Is this a HIGH, LOW or MEDIUM risk trade?"
  3447. MLModelType *string `type:"string" enum:"MLModelType"`
  3448. // A description of the most recent details about accessing the MLModel.
  3449. Message *string `type:"string"`
  3450. // A user-supplied name or description of the MLModel.
  3451. Name *string `type:"string"`
  3452. // The recipe to use when training the MLModel. The Recipe provides detailed
  3453. // information about the observation data to use during training, and manipulations
  3454. // to perform on the observation data during training.
  3455. //
  3456. // Note This parameter is provided as part of the verbose format.
  3457. Recipe *string `type:"string"`
  3458. // The schema used by all of the data files referenced by the DataSource.
  3459. //
  3460. // Note This parameter is provided as part of the verbose format.
  3461. Schema *string `type:"string"`
  3462. // The scoring threshold is used in binary classification MLModel models. It
  3463. // marks the boundary between a positive prediction and a negative prediction.
  3464. //
  3465. // Output values greater than or equal to the threshold receive a positive
  3466. // result from the MLModel, such as true. Output values less than the threshold
  3467. // receive a negative response from the MLModel, such as false.
  3468. ScoreThreshold *float64 `type:"float"`
  3469. // The time of the most recent edit to the ScoreThreshold. The time is expressed
  3470. // in epoch time.
  3471. ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3472. // Long integer type that is a 64-bit signed number.
  3473. SizeInBytes *int64 `type:"long"`
  3474. // The epoch time when Amazon Machine Learning marked the MLModel as INPROGRESS.
  3475. // StartedAt isn't available if the MLModel is in the PENDING state.
  3476. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3477. // The current status of the MLModel. This element can have one of the following
  3478. // values:
  3479. //
  3480. // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to describe
  3481. // a MLModel. INPROGRESS - The request is processing. FAILED - The request
  3482. // did not run to completion. The ML model isn't usable. COMPLETED - The request
  3483. // completed successfully. DELETED - The MLModel is marked as deleted. It isn't
  3484. // usable.
  3485. Status *string `type:"string" enum:"EntityStatus"`
  3486. // The ID of the training DataSource.
  3487. TrainingDataSourceId *string `min:"1" type:"string"`
  3488. // A list of the training parameters in the MLModel. The list is implemented
  3489. // as a map of key-value pairs.
  3490. //
  3491. // The following is the current set of training parameters:
  3492. //
  3493. // sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending
  3494. // on the input data, the size of the model might affect its performance.
  3495. //
  3496. // The value is an integer that ranges from 100000 to 2147483648. The default
  3497. // value is 33554432.
  3498. //
  3499. // sgd.maxPasses - The number of times that the training process traverses
  3500. // the observations to build the MLModel. The value is an integer that ranges
  3501. // from 1 to 10000. The default value is 10.
  3502. //
  3503. // sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling
  3504. // data improves a model's ability to find the optimal solution for a variety
  3505. // of data types. The valid values are auto and none. The default value is none.
  3506. // We strongly recommend that you shuffle your data.
  3507. //
  3508. // sgd.l1RegularizationAmount - The coefficient regularization L1 norm. It
  3509. // controls overfitting the data by penalizing large coefficients. This tends
  3510. // to drive coefficients to zero, resulting in a sparse feature set. If you
  3511. // use this parameter, start by specifying a small value, such as 1.0E-08.
  3512. //
  3513. // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to
  3514. // not use L1 normalization. This parameter can't be used when L2 is specified.
  3515. // Use this parameter sparingly.
  3516. //
  3517. // sgd.l2RegularizationAmount - The coefficient regularization L2 norm. It
  3518. // controls overfitting the data by penalizing large coefficients. This tends
  3519. // to drive coefficients to small, nonzero values. If you use this parameter,
  3520. // start by specifying a small value, such as 1.0E-08.
  3521. //
  3522. // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to
  3523. // not use L2 normalization. This parameter can't be used when L1 is specified.
  3524. // Use this parameter sparingly.
  3525. TrainingParameters map[string]*string `type:"map"`
  3526. }
  3527. // String returns the string representation
  3528. func (s GetMLModelOutput) String() string {
  3529. return awsutil.Prettify(s)
  3530. }
  3531. // GoString returns the string representation
  3532. func (s GetMLModelOutput) GoString() string {
  3533. return s.String()
  3534. }
  3535. // Represents the output of a GetMLModel operation.
  3536. //
  3537. // The content consists of the detailed metadata and the current status of
  3538. // the MLModel.
  3539. type MLModel struct {
  3540. _ struct{} `type:"structure"`
  3541. // The algorithm used to train the MLModel. The following algorithm is supported:
  3542. //
  3543. // SGD -- Stochastic gradient descent. The goal of SGD is to minimize the
  3544. // gradient of the loss function.
  3545. Algorithm *string `type:"string" enum:"Algorithm"`
  3546. // Long integer type that is a 64-bit signed number.
  3547. ComputeTime *int64 `type:"long"`
  3548. // The time that the MLModel was created. The time is expressed in epoch time.
  3549. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3550. // The AWS user account from which the MLModel was created. The account type
  3551. // can be either an AWS root account or an AWS Identity and Access Management
  3552. // (IAM) user account.
  3553. CreatedByIamUser *string `type:"string"`
  3554. // The current endpoint of the MLModel.
  3555. EndpointInfo *RealtimeEndpointInfo `type:"structure"`
  3556. // A timestamp represented in epoch time.
  3557. FinishedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3558. // The location of the data file or directory in Amazon Simple Storage Service
  3559. // (Amazon S3).
  3560. InputDataLocationS3 *string `type:"string"`
  3561. // The time of the most recent edit to the MLModel. The time is expressed in
  3562. // epoch time.
  3563. LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3564. // The ID assigned to the MLModel at creation.
  3565. MLModelId *string `min:"1" type:"string"`
  3566. // Identifies the MLModel category. The following are the available types:
  3567. //
  3568. // REGRESSION - Produces a numeric result. For example, "What price should
  3569. // a house be listed at?" BINARY - Produces one of two possible results. For
  3570. // example, "Is this a child-friendly web site?". MULTICLASS - Produces one
  3571. // of several possible results. For example, "Is this a HIGH-, LOW-, or MEDIUM-risk
  3572. // trade?".
  3573. MLModelType *string `type:"string" enum:"MLModelType"`
  3574. // A description of the most recent details about accessing the MLModel.
  3575. Message *string `type:"string"`
  3576. // A user-supplied name or description of the MLModel.
  3577. Name *string `type:"string"`
  3578. ScoreThreshold *float64 `type:"float"`
  3579. // The time of the most recent edit to the ScoreThreshold. The time is expressed
  3580. // in epoch time.
  3581. ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3582. // Long integer type that is a 64-bit signed number.
  3583. SizeInBytes *int64 `type:"long"`
  3584. // A timestamp represented in epoch time.
  3585. StartedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  3586. // The current status of an MLModel. This element can have one of the following
  3587. // values:
  3588. //
  3589. // PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create
  3590. // an MLModel. INPROGRESS - The creation process is underway. FAILED - The
  3591. // request to create an MLModel didn't run to completion. The model isn't usable.
  3592. // COMPLETED - The creation process completed successfully. DELETED - The
  3593. // MLModel is marked as deleted. It isn't usable.
  3594. Status *string `type:"string" enum:"EntityStatus"`
  3595. // The ID of the training DataSource. The CreateMLModel operation uses the TrainingDataSourceId.
  3596. TrainingDataSourceId *string `min:"1" type:"string"`
  3597. // A list of the training parameters in the MLModel. The list is implemented
  3598. // as a map of key-value pairs.
  3599. //
  3600. // The following is the current set of training parameters:
  3601. //
  3602. // sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending
  3603. // on the input data, the size of the model might affect its performance.
  3604. //
  3605. // The value is an integer that ranges from 100000 to 2147483648. The default
  3606. // value is 33554432.
  3607. //
  3608. // sgd.maxPasses - The number of times that the training process traverses
  3609. // the observations to build the MLModel. The value is an integer that ranges
  3610. // from 1 to 10000. The default value is 10.
  3611. //
  3612. // sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling
  3613. // the data improves a model's ability to find the optimal solution for a variety
  3614. // of data types. The valid values are auto and none. The default value is none.
  3615. //
  3616. // sgd.l1RegularizationAmount - The coefficient regularization L1 norm, which
  3617. // controls overfitting the data by penalizing large coefficients. This parameter
  3618. // tends to drive coefficients to zero, resulting in sparse feature set. If
  3619. // you use this parameter, start by specifying a small value, such as 1.0E-08.
  3620. //
  3621. // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to
  3622. // not use L1 normalization. This parameter can't be used when L2 is specified.
  3623. // Use this parameter sparingly.
  3624. //
  3625. // sgd.l2RegularizationAmount - The coefficient regularization L2 norm, which
  3626. // controls overfitting the data by penalizing large coefficients. This tends
  3627. // to drive coefficients to small, nonzero values. If you use this parameter,
  3628. // start by specifying a small value, such as 1.0E-08.
  3629. //
  3630. // The value is a double that ranges from 0 to MAX_DOUBLE. The default is to
  3631. // not use L2 normalization. This parameter can't be used when L1 is specified.
  3632. // Use this parameter sparingly.
  3633. TrainingParameters map[string]*string `type:"map"`
  3634. }
  3635. // String returns the string representation
  3636. func (s MLModel) String() string {
  3637. return awsutil.Prettify(s)
  3638. }
  3639. // GoString returns the string representation
  3640. func (s MLModel) GoString() string {
  3641. return s.String()
  3642. }
  3643. // Measurements of how well the MLModel performed on known observations. One
  3644. // of the following metrics is returned, based on the type of the MLModel:
  3645. //
  3646. // BinaryAUC: The binary MLModel uses the Area Under the Curve (AUC) technique
  3647. // to measure performance.
  3648. //
  3649. // RegressionRMSE: The regression MLModel uses the Root Mean Square Error
  3650. // (RMSE) technique to measure performance. RMSE measures the difference between
  3651. // predicted and actual values for a single variable.
  3652. //
  3653. // MulticlassAvgFScore: The multiclass MLModel uses the F1 score technique
  3654. // to measure performance.
  3655. //
  3656. // For more information about performance metrics, please see the Amazon
  3657. // Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg).
  3658. type PerformanceMetrics struct {
  3659. _ struct{} `type:"structure"`
  3660. Properties map[string]*string `type:"map"`
  3661. }
  3662. // String returns the string representation
  3663. func (s PerformanceMetrics) String() string {
  3664. return awsutil.Prettify(s)
  3665. }
  3666. // GoString returns the string representation
  3667. func (s PerformanceMetrics) GoString() string {
  3668. return s.String()
  3669. }
  3670. type PredictInput struct {
  3671. _ struct{} `type:"structure"`
  3672. // A unique identifier of the MLModel.
  3673. MLModelId *string `min:"1" type:"string" required:"true"`
  3674. PredictEndpoint *string `type:"string" required:"true"`
  3675. // A map of variable name-value pairs that represent an observation.
  3676. Record map[string]*string `type:"map" required:"true"`
  3677. }
  3678. // String returns the string representation
  3679. func (s PredictInput) String() string {
  3680. return awsutil.Prettify(s)
  3681. }
  3682. // GoString returns the string representation
  3683. func (s PredictInput) GoString() string {
  3684. return s.String()
  3685. }
  3686. // Validate inspects the fields of the type to determine if they are valid.
  3687. func (s *PredictInput) Validate() error {
  3688. invalidParams := request.ErrInvalidParams{Context: "PredictInput"}
  3689. if s.MLModelId == nil {
  3690. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  3691. }
  3692. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  3693. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  3694. }
  3695. if s.PredictEndpoint == nil {
  3696. invalidParams.Add(request.NewErrParamRequired("PredictEndpoint"))
  3697. }
  3698. if s.Record == nil {
  3699. invalidParams.Add(request.NewErrParamRequired("Record"))
  3700. }
  3701. if invalidParams.Len() > 0 {
  3702. return invalidParams
  3703. }
  3704. return nil
  3705. }
  3706. type PredictOutput struct {
  3707. _ struct{} `type:"structure"`
  3708. // The output from a Predict operation:
  3709. //
  3710. // Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE
  3711. // - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD
  3712. //
  3713. // PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request.
  3714. //
  3715. // PredictedScores - Contains the raw classification score corresponding
  3716. // to each label.
  3717. //
  3718. // PredictedValue - Present for a REGRESSION MLModel request.
  3719. Prediction *Prediction `type:"structure"`
  3720. }
  3721. // String returns the string representation
  3722. func (s PredictOutput) String() string {
  3723. return awsutil.Prettify(s)
  3724. }
  3725. // GoString returns the string representation
  3726. func (s PredictOutput) GoString() string {
  3727. return s.String()
  3728. }
  3729. // The output from a Predict operation:
  3730. //
  3731. // Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE
  3732. // - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD
  3733. //
  3734. // PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request.
  3735. //
  3736. // PredictedScores - Contains the raw classification score corresponding
  3737. // to each label.
  3738. //
  3739. // PredictedValue - Present for a REGRESSION MLModel request.
  3740. type Prediction struct {
  3741. _ struct{} `type:"structure"`
  3742. // Provides any additional details regarding the prediction.
  3743. Details map[string]*string `locationName:"details" type:"map"`
  3744. // The prediction label for either a BINARY or MULTICLASS MLModel.
  3745. PredictedLabel *string `locationName:"predictedLabel" min:"1" type:"string"`
  3746. // Provides the raw classification score corresponding to each label.
  3747. PredictedScores map[string]*float64 `locationName:"predictedScores" type:"map"`
  3748. // The prediction value for REGRESSION MLModel.
  3749. PredictedValue *float64 `locationName:"predictedValue" type:"float"`
  3750. }
  3751. // String returns the string representation
  3752. func (s Prediction) String() string {
  3753. return awsutil.Prettify(s)
  3754. }
  3755. // GoString returns the string representation
  3756. func (s Prediction) GoString() string {
  3757. return s.String()
  3758. }
  3759. // The data specification of an Amazon Relational Database Service (Amazon RDS)
  3760. // DataSource.
  3761. type RDSDataSpec struct {
  3762. _ struct{} `type:"structure"`
  3763. // A JSON string that represents the splitting and rearrangement processing
  3764. // to be applied to a DataSource. If the DataRearrangement parameter is not
  3765. // provided, all of the input data is used to create the Datasource.
  3766. //
  3767. // There are multiple parameters that control what data is used to create a
  3768. // datasource:
  3769. //
  3770. // percentBegin
  3771. //
  3772. // Use percentBegin to indicate the beginning of the range of the data used
  3773. // to create the Datasource. If you do not include percentBegin and percentEnd,
  3774. // Amazon ML includes all of the data when creating the datasource.
  3775. //
  3776. // percentEnd
  3777. //
  3778. // Use percentEnd to indicate the end of the range of the data used to create
  3779. // the Datasource. If you do not include percentBegin and percentEnd, Amazon
  3780. // ML includes all of the data when creating the datasource.
  3781. //
  3782. // complement
  3783. //
  3784. // The complement parameter instructs Amazon ML to use the data that is not
  3785. // included in the range of percentBegin to percentEnd to create a datasource.
  3786. // The complement parameter is useful if you need to create complementary datasources
  3787. // for training and evaluation. To create a complementary datasource, use the
  3788. // same values for percentBegin and percentEnd, along with the complement parameter.
  3789. //
  3790. // For example, the following two datasources do not share any data, and can
  3791. // be used to train and evaluate a model. The first datasource has 25 percent
  3792. // of the data, and the second one has 75 percent of the data.
  3793. //
  3794. // Datasource for evaluation: {"splitting":{"percentBegin":0, "percentEnd":25}}
  3795. //
  3796. // Datasource for training: {"splitting":{"percentBegin":0, "percentEnd":25,
  3797. // "complement":"true"}}
  3798. //
  3799. // strategy
  3800. //
  3801. // To change how Amazon ML splits the data for a datasource, use the strategy
  3802. // parameter.
  3803. //
  3804. // The default value for the strategy parameter is sequential, meaning that
  3805. // Amazon ML takes all of the data records between the percentBegin and percentEnd
  3806. // parameters for the datasource, in the order that the records appear in the
  3807. // input data.
  3808. //
  3809. // The following two DataRearrangement lines are examples of sequentially ordered
  3810. // training and evaluation datasources:
  3811. //
  3812. // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100,
  3813. // "strategy":"sequential"}}
  3814. //
  3815. // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100,
  3816. // "strategy":"sequential", "complement":"true"}}
  3817. //
  3818. // To randomly split the input data into the proportions indicated by the percentBegin
  3819. // and percentEnd parameters, set the strategy parameter to random and provide
  3820. // a string that is used as the seed value for the random data splitting (for
  3821. // example, you can use the S3 path to your data as the random seed string).
  3822. // If you choose the random split strategy, Amazon ML assigns each row of data
  3823. // a pseudo-random number between 0 and 100, and then selects the rows that
  3824. // have an assigned number between percentBegin and percentEnd. Pseudo-random
  3825. // numbers are assigned using both the input seed string value and the byte
  3826. // offset as a seed, so changing the data results in a different split. Any
  3827. // existing ordering is preserved. The random splitting strategy ensures that
  3828. // variables in the training and evaluation data are distributed similarly.
  3829. // It is useful in the cases where the input data may have an implicit sort
  3830. // order, which would otherwise result in training and evaluation datasources
  3831. // containing non-similar data records.
  3832. //
  3833. // The following two DataRearrangement lines are examples of non-sequentially
  3834. // ordered training and evaluation datasources:
  3835. //
  3836. // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100,
  3837. // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}}
  3838. //
  3839. // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100,
  3840. // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}}
  3841. DataRearrangement *string `type:"string"`
  3842. // A JSON string that represents the schema for an Amazon RDS DataSource. The
  3843. // DataSchema defines the structure of the observation data in the data file(s)
  3844. // referenced in the DataSource.
  3845. //
  3846. // A DataSchema is not required if you specify a DataSchemaUri
  3847. //
  3848. // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames
  3849. // have an array of key-value pairs for their value. Use the following format
  3850. // to define your DataSchema.
  3851. //
  3852. // { "version": "1.0",
  3853. //
  3854. // "recordAnnotationFieldName": "F1",
  3855. //
  3856. // "recordWeightFieldName": "F2",
  3857. //
  3858. // "targetFieldName": "F3",
  3859. //
  3860. // "dataFormat": "CSV",
  3861. //
  3862. // "dataFileContainsHeader": true,
  3863. //
  3864. // "attributes": [
  3865. //
  3866. // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType":
  3867. // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName":
  3868. // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL"
  3869. // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType":
  3870. // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE"
  3871. // } ],
  3872. //
  3873. // "excludedVariableNames": [ "F6" ] }
  3874. DataSchema *string `type:"string"`
  3875. // The Amazon S3 location of the DataSchema.
  3876. DataSchemaUri *string `type:"string"`
  3877. // The AWS Identity and Access Management (IAM) credentials that are used connect
  3878. // to the Amazon RDS database.
  3879. DatabaseCredentials *RDSDatabaseCredentials `type:"structure" required:"true"`
  3880. // Describes the DatabaseName and InstanceIdentifier of an Amazon RDS database.
  3881. DatabaseInformation *RDSDatabase `type:"structure" required:"true"`
  3882. // The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute
  3883. // Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS
  3884. // to an Amazon S3 task. For more information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html)
  3885. // for data pipelines.
  3886. ResourceRole *string `min:"1" type:"string" required:"true"`
  3887. // The Amazon S3 location for staging Amazon RDS data. The data retrieved from
  3888. // Amazon RDS using SelectSqlQuery is stored in this location.
  3889. S3StagingLocation *string `type:"string" required:"true"`
  3890. // The security group IDs to be used to access a VPC-based RDS DB instance.
  3891. // Ensure that there are appropriate ingress rules set up to allow access to
  3892. // the RDS DB instance. This attribute is used by Data Pipeline to carry out
  3893. // the copy operation from Amazon RDS to an Amazon S3 task.
  3894. SecurityGroupIds []*string `type:"list" required:"true"`
  3895. // The query that is used to retrieve the observation data for the DataSource.
  3896. SelectSqlQuery *string `min:"1" type:"string" required:"true"`
  3897. // The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to
  3898. // monitor the progress of the copy task from Amazon RDS to Amazon S3. For more
  3899. // information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html)
  3900. // for data pipelines.
  3901. ServiceRole *string `min:"1" type:"string" required:"true"`
  3902. // The subnet ID to be used to access a VPC-based RDS DB instance. This attribute
  3903. // is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon
  3904. // S3.
  3905. SubnetId *string `min:"1" type:"string" required:"true"`
  3906. }
  3907. // String returns the string representation
  3908. func (s RDSDataSpec) String() string {
  3909. return awsutil.Prettify(s)
  3910. }
  3911. // GoString returns the string representation
  3912. func (s RDSDataSpec) GoString() string {
  3913. return s.String()
  3914. }
  3915. // Validate inspects the fields of the type to determine if they are valid.
  3916. func (s *RDSDataSpec) Validate() error {
  3917. invalidParams := request.ErrInvalidParams{Context: "RDSDataSpec"}
  3918. if s.DatabaseCredentials == nil {
  3919. invalidParams.Add(request.NewErrParamRequired("DatabaseCredentials"))
  3920. }
  3921. if s.DatabaseInformation == nil {
  3922. invalidParams.Add(request.NewErrParamRequired("DatabaseInformation"))
  3923. }
  3924. if s.ResourceRole == nil {
  3925. invalidParams.Add(request.NewErrParamRequired("ResourceRole"))
  3926. }
  3927. if s.ResourceRole != nil && len(*s.ResourceRole) < 1 {
  3928. invalidParams.Add(request.NewErrParamMinLen("ResourceRole", 1))
  3929. }
  3930. if s.S3StagingLocation == nil {
  3931. invalidParams.Add(request.NewErrParamRequired("S3StagingLocation"))
  3932. }
  3933. if s.SecurityGroupIds == nil {
  3934. invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
  3935. }
  3936. if s.SelectSqlQuery == nil {
  3937. invalidParams.Add(request.NewErrParamRequired("SelectSqlQuery"))
  3938. }
  3939. if s.SelectSqlQuery != nil && len(*s.SelectSqlQuery) < 1 {
  3940. invalidParams.Add(request.NewErrParamMinLen("SelectSqlQuery", 1))
  3941. }
  3942. if s.ServiceRole == nil {
  3943. invalidParams.Add(request.NewErrParamRequired("ServiceRole"))
  3944. }
  3945. if s.ServiceRole != nil && len(*s.ServiceRole) < 1 {
  3946. invalidParams.Add(request.NewErrParamMinLen("ServiceRole", 1))
  3947. }
  3948. if s.SubnetId == nil {
  3949. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  3950. }
  3951. if s.SubnetId != nil && len(*s.SubnetId) < 1 {
  3952. invalidParams.Add(request.NewErrParamMinLen("SubnetId", 1))
  3953. }
  3954. if s.DatabaseCredentials != nil {
  3955. if err := s.DatabaseCredentials.Validate(); err != nil {
  3956. invalidParams.AddNested("DatabaseCredentials", err.(request.ErrInvalidParams))
  3957. }
  3958. }
  3959. if s.DatabaseInformation != nil {
  3960. if err := s.DatabaseInformation.Validate(); err != nil {
  3961. invalidParams.AddNested("DatabaseInformation", err.(request.ErrInvalidParams))
  3962. }
  3963. }
  3964. if invalidParams.Len() > 0 {
  3965. return invalidParams
  3966. }
  3967. return nil
  3968. }
  3969. // The database details of an Amazon RDS database.
  3970. type RDSDatabase struct {
  3971. _ struct{} `type:"structure"`
  3972. // The name of a database hosted on an RDS DB instance.
  3973. DatabaseName *string `min:"1" type:"string" required:"true"`
  3974. // The ID of an RDS DB instance.
  3975. InstanceIdentifier *string `min:"1" type:"string" required:"true"`
  3976. }
  3977. // String returns the string representation
  3978. func (s RDSDatabase) String() string {
  3979. return awsutil.Prettify(s)
  3980. }
  3981. // GoString returns the string representation
  3982. func (s RDSDatabase) GoString() string {
  3983. return s.String()
  3984. }
  3985. // Validate inspects the fields of the type to determine if they are valid.
  3986. func (s *RDSDatabase) Validate() error {
  3987. invalidParams := request.ErrInvalidParams{Context: "RDSDatabase"}
  3988. if s.DatabaseName == nil {
  3989. invalidParams.Add(request.NewErrParamRequired("DatabaseName"))
  3990. }
  3991. if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
  3992. invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1))
  3993. }
  3994. if s.InstanceIdentifier == nil {
  3995. invalidParams.Add(request.NewErrParamRequired("InstanceIdentifier"))
  3996. }
  3997. if s.InstanceIdentifier != nil && len(*s.InstanceIdentifier) < 1 {
  3998. invalidParams.Add(request.NewErrParamMinLen("InstanceIdentifier", 1))
  3999. }
  4000. if invalidParams.Len() > 0 {
  4001. return invalidParams
  4002. }
  4003. return nil
  4004. }
  4005. // The database credentials to connect to a database on an RDS DB instance.
  4006. type RDSDatabaseCredentials struct {
  4007. _ struct{} `type:"structure"`
  4008. // The password to be used by Amazon ML to connect to a database on an RDS DB
  4009. // instance. The password should have sufficient permissions to execute the
  4010. // RDSSelectQuery query.
  4011. Password *string `min:"8" type:"string" required:"true"`
  4012. // The username to be used by Amazon ML to connect to database on an Amazon
  4013. // RDS instance. The username should have sufficient permissions to execute
  4014. // an RDSSelectSqlQuery query.
  4015. Username *string `min:"1" type:"string" required:"true"`
  4016. }
  4017. // String returns the string representation
  4018. func (s RDSDatabaseCredentials) String() string {
  4019. return awsutil.Prettify(s)
  4020. }
  4021. // GoString returns the string representation
  4022. func (s RDSDatabaseCredentials) GoString() string {
  4023. return s.String()
  4024. }
  4025. // Validate inspects the fields of the type to determine if they are valid.
  4026. func (s *RDSDatabaseCredentials) Validate() error {
  4027. invalidParams := request.ErrInvalidParams{Context: "RDSDatabaseCredentials"}
  4028. if s.Password == nil {
  4029. invalidParams.Add(request.NewErrParamRequired("Password"))
  4030. }
  4031. if s.Password != nil && len(*s.Password) < 8 {
  4032. invalidParams.Add(request.NewErrParamMinLen("Password", 8))
  4033. }
  4034. if s.Username == nil {
  4035. invalidParams.Add(request.NewErrParamRequired("Username"))
  4036. }
  4037. if s.Username != nil && len(*s.Username) < 1 {
  4038. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  4039. }
  4040. if invalidParams.Len() > 0 {
  4041. return invalidParams
  4042. }
  4043. return nil
  4044. }
  4045. // The datasource details that are specific to Amazon RDS.
  4046. type RDSMetadata struct {
  4047. _ struct{} `type:"structure"`
  4048. // The ID of the Data Pipeline instance that is used to carry to copy data from
  4049. // Amazon RDS to Amazon S3. You can use the ID to find details about the instance
  4050. // in the Data Pipeline console.
  4051. DataPipelineId *string `min:"1" type:"string"`
  4052. // The database details required to connect to an Amazon RDS.
  4053. Database *RDSDatabase `type:"structure"`
  4054. // The username to be used by Amazon ML to connect to database on an Amazon
  4055. // RDS instance. The username should have sufficient permissions to execute
  4056. // an RDSSelectSqlQuery query.
  4057. DatabaseUserName *string `min:"1" type:"string"`
  4058. // The role (DataPipelineDefaultResourceRole) assumed by an Amazon EC2 instance
  4059. // to carry out the copy task from Amazon RDS to Amazon S3. For more information,
  4060. // see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html)
  4061. // for data pipelines.
  4062. ResourceRole *string `min:"1" type:"string"`
  4063. // The SQL query that is supplied during CreateDataSourceFromRDS. Returns only
  4064. // if Verbose is true in GetDataSourceInput.
  4065. SelectSqlQuery *string `min:"1" type:"string"`
  4066. // The role (DataPipelineDefaultRole) assumed by the Data Pipeline service to
  4067. // monitor the progress of the copy task from Amazon RDS to Amazon S3. For more
  4068. // information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html)
  4069. // for data pipelines.
  4070. ServiceRole *string `min:"1" type:"string"`
  4071. }
  4072. // String returns the string representation
  4073. func (s RDSMetadata) String() string {
  4074. return awsutil.Prettify(s)
  4075. }
  4076. // GoString returns the string representation
  4077. func (s RDSMetadata) GoString() string {
  4078. return s.String()
  4079. }
  4080. // Describes the real-time endpoint information for an MLModel.
  4081. type RealtimeEndpointInfo struct {
  4082. _ struct{} `type:"structure"`
  4083. // The time that the request to create the real-time endpoint for the MLModel
  4084. // was received. The time is expressed in epoch time.
  4085. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"`
  4086. // The current status of the real-time endpoint for the MLModel. This element
  4087. // can have one of the following values:
  4088. //
  4089. // NONE - Endpoint does not exist or was previously deleted. READY - Endpoint
  4090. // is ready to be used for real-time predictions. UPDATING - Updating/creating
  4091. // the endpoint.
  4092. EndpointStatus *string `type:"string" enum:"RealtimeEndpointStatus"`
  4093. // The URI that specifies where to send real-time prediction requests for the
  4094. // MLModel.
  4095. //
  4096. // Note The application must wait until the real-time endpoint is ready before
  4097. // using this URI.
  4098. EndpointUrl *string `type:"string"`
  4099. // The maximum processing rate for the real-time endpoint for MLModel, measured
  4100. // in incoming requests per second.
  4101. PeakRequestsPerSecond *int64 `type:"integer"`
  4102. }
  4103. // String returns the string representation
  4104. func (s RealtimeEndpointInfo) String() string {
  4105. return awsutil.Prettify(s)
  4106. }
  4107. // GoString returns the string representation
  4108. func (s RealtimeEndpointInfo) GoString() string {
  4109. return s.String()
  4110. }
  4111. // Describes the data specification of an Amazon Redshift DataSource.
  4112. type RedshiftDataSpec struct {
  4113. _ struct{} `type:"structure"`
  4114. // A JSON string that represents the splitting and rearrangement processing
  4115. // to be applied to a DataSource. If the DataRearrangement parameter is not
  4116. // provided, all of the input data is used to create the Datasource.
  4117. //
  4118. // There are multiple parameters that control what data is used to create a
  4119. // datasource:
  4120. //
  4121. // percentBegin
  4122. //
  4123. // Use percentBegin to indicate the beginning of the range of the data used
  4124. // to create the Datasource. If you do not include percentBegin and percentEnd,
  4125. // Amazon ML includes all of the data when creating the datasource.
  4126. //
  4127. // percentEnd
  4128. //
  4129. // Use percentEnd to indicate the end of the range of the data used to create
  4130. // the Datasource. If you do not include percentBegin and percentEnd, Amazon
  4131. // ML includes all of the data when creating the datasource.
  4132. //
  4133. // complement
  4134. //
  4135. // The complement parameter instructs Amazon ML to use the data that is not
  4136. // included in the range of percentBegin to percentEnd to create a datasource.
  4137. // The complement parameter is useful if you need to create complementary datasources
  4138. // for training and evaluation. To create a complementary datasource, use the
  4139. // same values for percentBegin and percentEnd, along with the complement parameter.
  4140. //
  4141. // For example, the following two datasources do not share any data, and can
  4142. // be used to train and evaluate a model. The first datasource has 25 percent
  4143. // of the data, and the second one has 75 percent of the data.
  4144. //
  4145. // Datasource for evaluation: {"splitting":{"percentBegin":0, "percentEnd":25}}
  4146. //
  4147. // Datasource for training: {"splitting":{"percentBegin":0, "percentEnd":25,
  4148. // "complement":"true"}}
  4149. //
  4150. // strategy
  4151. //
  4152. // To change how Amazon ML splits the data for a datasource, use the strategy
  4153. // parameter.
  4154. //
  4155. // The default value for the strategy parameter is sequential, meaning that
  4156. // Amazon ML takes all of the data records between the percentBegin and percentEnd
  4157. // parameters for the datasource, in the order that the records appear in the
  4158. // input data.
  4159. //
  4160. // The following two DataRearrangement lines are examples of sequentially ordered
  4161. // training and evaluation datasources:
  4162. //
  4163. // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100,
  4164. // "strategy":"sequential"}}
  4165. //
  4166. // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100,
  4167. // "strategy":"sequential", "complement":"true"}}
  4168. //
  4169. // To randomly split the input data into the proportions indicated by the percentBegin
  4170. // and percentEnd parameters, set the strategy parameter to random and provide
  4171. // a string that is used as the seed value for the random data splitting (for
  4172. // example, you can use the S3 path to your data as the random seed string).
  4173. // If you choose the random split strategy, Amazon ML assigns each row of data
  4174. // a pseudo-random number between 0 and 100, and then selects the rows that
  4175. // have an assigned number between percentBegin and percentEnd. Pseudo-random
  4176. // numbers are assigned using both the input seed string value and the byte
  4177. // offset as a seed, so changing the data results in a different split. Any
  4178. // existing ordering is preserved. The random splitting strategy ensures that
  4179. // variables in the training and evaluation data are distributed similarly.
  4180. // It is useful in the cases where the input data may have an implicit sort
  4181. // order, which would otherwise result in training and evaluation datasources
  4182. // containing non-similar data records.
  4183. //
  4184. // The following two DataRearrangement lines are examples of non-sequentially
  4185. // ordered training and evaluation datasources:
  4186. //
  4187. // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100,
  4188. // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}}
  4189. //
  4190. // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100,
  4191. // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}}
  4192. DataRearrangement *string `type:"string"`
  4193. // A JSON string that represents the schema for an Amazon Redshift DataSource.
  4194. // The DataSchema defines the structure of the observation data in the data
  4195. // file(s) referenced in the DataSource.
  4196. //
  4197. // A DataSchema is not required if you specify a DataSchemaUri.
  4198. //
  4199. // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames
  4200. // have an array of key-value pairs for their value. Use the following format
  4201. // to define your DataSchema.
  4202. //
  4203. // { "version": "1.0",
  4204. //
  4205. // "recordAnnotationFieldName": "F1",
  4206. //
  4207. // "recordWeightFieldName": "F2",
  4208. //
  4209. // "targetFieldName": "F3",
  4210. //
  4211. // "dataFormat": "CSV",
  4212. //
  4213. // "dataFileContainsHeader": true,
  4214. //
  4215. // "attributes": [
  4216. //
  4217. // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType":
  4218. // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName":
  4219. // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL"
  4220. // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType":
  4221. // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE"
  4222. // } ],
  4223. //
  4224. // "excludedVariableNames": [ "F6" ] }
  4225. DataSchema *string `type:"string"`
  4226. // Describes the schema location for an Amazon Redshift DataSource.
  4227. DataSchemaUri *string `type:"string"`
  4228. // Describes AWS Identity and Access Management (IAM) credentials that are used
  4229. // connect to the Amazon Redshift database.
  4230. DatabaseCredentials *RedshiftDatabaseCredentials `type:"structure" required:"true"`
  4231. // Describes the DatabaseName and ClusterIdentifier for an Amazon Redshift DataSource.
  4232. DatabaseInformation *RedshiftDatabase `type:"structure" required:"true"`
  4233. // Describes an Amazon S3 location to store the result set of the SelectSqlQuery
  4234. // query.
  4235. S3StagingLocation *string `type:"string" required:"true"`
  4236. // Describes the SQL Query to execute on an Amazon Redshift database for an
  4237. // Amazon Redshift DataSource.
  4238. SelectSqlQuery *string `min:"1" type:"string" required:"true"`
  4239. }
  4240. // String returns the string representation
  4241. func (s RedshiftDataSpec) String() string {
  4242. return awsutil.Prettify(s)
  4243. }
  4244. // GoString returns the string representation
  4245. func (s RedshiftDataSpec) GoString() string {
  4246. return s.String()
  4247. }
  4248. // Validate inspects the fields of the type to determine if they are valid.
  4249. func (s *RedshiftDataSpec) Validate() error {
  4250. invalidParams := request.ErrInvalidParams{Context: "RedshiftDataSpec"}
  4251. if s.DatabaseCredentials == nil {
  4252. invalidParams.Add(request.NewErrParamRequired("DatabaseCredentials"))
  4253. }
  4254. if s.DatabaseInformation == nil {
  4255. invalidParams.Add(request.NewErrParamRequired("DatabaseInformation"))
  4256. }
  4257. if s.S3StagingLocation == nil {
  4258. invalidParams.Add(request.NewErrParamRequired("S3StagingLocation"))
  4259. }
  4260. if s.SelectSqlQuery == nil {
  4261. invalidParams.Add(request.NewErrParamRequired("SelectSqlQuery"))
  4262. }
  4263. if s.SelectSqlQuery != nil && len(*s.SelectSqlQuery) < 1 {
  4264. invalidParams.Add(request.NewErrParamMinLen("SelectSqlQuery", 1))
  4265. }
  4266. if s.DatabaseCredentials != nil {
  4267. if err := s.DatabaseCredentials.Validate(); err != nil {
  4268. invalidParams.AddNested("DatabaseCredentials", err.(request.ErrInvalidParams))
  4269. }
  4270. }
  4271. if s.DatabaseInformation != nil {
  4272. if err := s.DatabaseInformation.Validate(); err != nil {
  4273. invalidParams.AddNested("DatabaseInformation", err.(request.ErrInvalidParams))
  4274. }
  4275. }
  4276. if invalidParams.Len() > 0 {
  4277. return invalidParams
  4278. }
  4279. return nil
  4280. }
  4281. // Describes the database details required to connect to an Amazon Redshift
  4282. // database.
  4283. type RedshiftDatabase struct {
  4284. _ struct{} `type:"structure"`
  4285. // The ID of an Amazon Redshift cluster.
  4286. ClusterIdentifier *string `min:"1" type:"string" required:"true"`
  4287. // The name of a database hosted on an Amazon Redshift cluster.
  4288. DatabaseName *string `min:"1" type:"string" required:"true"`
  4289. }
  4290. // String returns the string representation
  4291. func (s RedshiftDatabase) String() string {
  4292. return awsutil.Prettify(s)
  4293. }
  4294. // GoString returns the string representation
  4295. func (s RedshiftDatabase) GoString() string {
  4296. return s.String()
  4297. }
  4298. // Validate inspects the fields of the type to determine if they are valid.
  4299. func (s *RedshiftDatabase) Validate() error {
  4300. invalidParams := request.ErrInvalidParams{Context: "RedshiftDatabase"}
  4301. if s.ClusterIdentifier == nil {
  4302. invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
  4303. }
  4304. if s.ClusterIdentifier != nil && len(*s.ClusterIdentifier) < 1 {
  4305. invalidParams.Add(request.NewErrParamMinLen("ClusterIdentifier", 1))
  4306. }
  4307. if s.DatabaseName == nil {
  4308. invalidParams.Add(request.NewErrParamRequired("DatabaseName"))
  4309. }
  4310. if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
  4311. invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1))
  4312. }
  4313. if invalidParams.Len() > 0 {
  4314. return invalidParams
  4315. }
  4316. return nil
  4317. }
  4318. // Describes the database credentials for connecting to a database on an Amazon
  4319. // Redshift cluster.
  4320. type RedshiftDatabaseCredentials struct {
  4321. _ struct{} `type:"structure"`
  4322. // A password to be used by Amazon ML to connect to a database on an Amazon
  4323. // Redshift cluster. The password should have sufficient permissions to execute
  4324. // a RedshiftSelectSqlQuery query. The password should be valid for an Amazon
  4325. // Redshift USER (http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html).
  4326. Password *string `min:"8" type:"string" required:"true"`
  4327. // A username to be used by Amazon Machine Learning (Amazon ML)to connect to
  4328. // a database on an Amazon Redshift cluster. The username should have sufficient
  4329. // permissions to execute the RedshiftSelectSqlQuery query. The username should
  4330. // be valid for an Amazon Redshift USER (http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html).
  4331. Username *string `min:"1" type:"string" required:"true"`
  4332. }
  4333. // String returns the string representation
  4334. func (s RedshiftDatabaseCredentials) String() string {
  4335. return awsutil.Prettify(s)
  4336. }
  4337. // GoString returns the string representation
  4338. func (s RedshiftDatabaseCredentials) GoString() string {
  4339. return s.String()
  4340. }
  4341. // Validate inspects the fields of the type to determine if they are valid.
  4342. func (s *RedshiftDatabaseCredentials) Validate() error {
  4343. invalidParams := request.ErrInvalidParams{Context: "RedshiftDatabaseCredentials"}
  4344. if s.Password == nil {
  4345. invalidParams.Add(request.NewErrParamRequired("Password"))
  4346. }
  4347. if s.Password != nil && len(*s.Password) < 8 {
  4348. invalidParams.Add(request.NewErrParamMinLen("Password", 8))
  4349. }
  4350. if s.Username == nil {
  4351. invalidParams.Add(request.NewErrParamRequired("Username"))
  4352. }
  4353. if s.Username != nil && len(*s.Username) < 1 {
  4354. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  4355. }
  4356. if invalidParams.Len() > 0 {
  4357. return invalidParams
  4358. }
  4359. return nil
  4360. }
  4361. // Describes the DataSource details specific to Amazon Redshift.
  4362. type RedshiftMetadata struct {
  4363. _ struct{} `type:"structure"`
  4364. // A username to be used by Amazon Machine Learning (Amazon ML)to connect to
  4365. // a database on an Amazon Redshift cluster. The username should have sufficient
  4366. // permissions to execute the RedshiftSelectSqlQuery query. The username should
  4367. // be valid for an Amazon Redshift USER (http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html).
  4368. DatabaseUserName *string `min:"1" type:"string"`
  4369. // Describes the database details required to connect to an Amazon Redshift
  4370. // database.
  4371. RedshiftDatabase *RedshiftDatabase `type:"structure"`
  4372. // The SQL query that is specified during CreateDataSourceFromRedshift. Returns
  4373. // only if Verbose is true in GetDataSourceInput.
  4374. SelectSqlQuery *string `min:"1" type:"string"`
  4375. }
  4376. // String returns the string representation
  4377. func (s RedshiftMetadata) String() string {
  4378. return awsutil.Prettify(s)
  4379. }
  4380. // GoString returns the string representation
  4381. func (s RedshiftMetadata) GoString() string {
  4382. return s.String()
  4383. }
  4384. // Describes the data specification of a DataSource.
  4385. type S3DataSpec struct {
  4386. _ struct{} `type:"structure"`
  4387. // The location of the data file(s) used by a DataSource. The URI specifies
  4388. // a data file or an Amazon Simple Storage Service (Amazon S3) directory or
  4389. // bucket containing data files.
  4390. DataLocationS3 *string `type:"string" required:"true"`
  4391. // A JSON string that represents the splitting and rearrangement processing
  4392. // to be applied to a DataSource. If the DataRearrangement parameter is not
  4393. // provided, all of the input data is used to create the Datasource.
  4394. //
  4395. // There are multiple parameters that control what data is used to create a
  4396. // datasource:
  4397. //
  4398. // percentBegin
  4399. //
  4400. // Use percentBegin to indicate the beginning of the range of the data used
  4401. // to create the Datasource. If you do not include percentBegin and percentEnd,
  4402. // Amazon ML includes all of the data when creating the datasource.
  4403. //
  4404. // percentEnd
  4405. //
  4406. // Use percentEnd to indicate the end of the range of the data used to create
  4407. // the Datasource. If you do not include percentBegin and percentEnd, Amazon
  4408. // ML includes all of the data when creating the datasource.
  4409. //
  4410. // complement
  4411. //
  4412. // The complement parameter instructs Amazon ML to use the data that is not
  4413. // included in the range of percentBegin to percentEnd to create a datasource.
  4414. // The complement parameter is useful if you need to create complementary datasources
  4415. // for training and evaluation. To create a complementary datasource, use the
  4416. // same values for percentBegin and percentEnd, along with the complement parameter.
  4417. //
  4418. // For example, the following two datasources do not share any data, and can
  4419. // be used to train and evaluate a model. The first datasource has 25 percent
  4420. // of the data, and the second one has 75 percent of the data.
  4421. //
  4422. // Datasource for evaluation: {"splitting":{"percentBegin":0, "percentEnd":25}}
  4423. //
  4424. // Datasource for training: {"splitting":{"percentBegin":0, "percentEnd":25,
  4425. // "complement":"true"}}
  4426. //
  4427. // strategy
  4428. //
  4429. // To change how Amazon ML splits the data for a datasource, use the strategy
  4430. // parameter.
  4431. //
  4432. // The default value for the strategy parameter is sequential, meaning that
  4433. // Amazon ML takes all of the data records between the percentBegin and percentEnd
  4434. // parameters for the datasource, in the order that the records appear in the
  4435. // input data.
  4436. //
  4437. // The following two DataRearrangement lines are examples of sequentially ordered
  4438. // training and evaluation datasources:
  4439. //
  4440. // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100,
  4441. // "strategy":"sequential"}}
  4442. //
  4443. // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100,
  4444. // "strategy":"sequential", "complement":"true"}}
  4445. //
  4446. // To randomly split the input data into the proportions indicated by the percentBegin
  4447. // and percentEnd parameters, set the strategy parameter to random and provide
  4448. // a string that is used as the seed value for the random data splitting (for
  4449. // example, you can use the S3 path to your data as the random seed string).
  4450. // If you choose the random split strategy, Amazon ML assigns each row of data
  4451. // a pseudo-random number between 0 and 100, and then selects the rows that
  4452. // have an assigned number between percentBegin and percentEnd. Pseudo-random
  4453. // numbers are assigned using both the input seed string value and the byte
  4454. // offset as a seed, so changing the data results in a different split. Any
  4455. // existing ordering is preserved. The random splitting strategy ensures that
  4456. // variables in the training and evaluation data are distributed similarly.
  4457. // It is useful in the cases where the input data may have an implicit sort
  4458. // order, which would otherwise result in training and evaluation datasources
  4459. // containing non-similar data records.
  4460. //
  4461. // The following two DataRearrangement lines are examples of non-sequentially
  4462. // ordered training and evaluation datasources:
  4463. //
  4464. // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100,
  4465. // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}}
  4466. //
  4467. // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100,
  4468. // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}}
  4469. DataRearrangement *string `type:"string"`
  4470. // A JSON string that represents the schema for an Amazon S3 DataSource. The
  4471. // DataSchema defines the structure of the observation data in the data file(s)
  4472. // referenced in the DataSource.
  4473. //
  4474. // You must provide either the DataSchema or the DataSchemaLocationS3.
  4475. //
  4476. // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames
  4477. // have an array of key-value pairs for their value. Use the following format
  4478. // to define your DataSchema.
  4479. //
  4480. // { "version": "1.0",
  4481. //
  4482. // "recordAnnotationFieldName": "F1",
  4483. //
  4484. // "recordWeightFieldName": "F2",
  4485. //
  4486. // "targetFieldName": "F3",
  4487. //
  4488. // "dataFormat": "CSV",
  4489. //
  4490. // "dataFileContainsHeader": true,
  4491. //
  4492. // "attributes": [
  4493. //
  4494. // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType":
  4495. // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName":
  4496. // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL"
  4497. // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType":
  4498. // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE"
  4499. // } ],
  4500. //
  4501. // "excludedVariableNames": [ "F6" ] }
  4502. DataSchema *string `type:"string"`
  4503. // Describes the schema location in Amazon S3. You must provide either the DataSchema
  4504. // or the DataSchemaLocationS3.
  4505. DataSchemaLocationS3 *string `type:"string"`
  4506. }
  4507. // String returns the string representation
  4508. func (s S3DataSpec) String() string {
  4509. return awsutil.Prettify(s)
  4510. }
  4511. // GoString returns the string representation
  4512. func (s S3DataSpec) GoString() string {
  4513. return s.String()
  4514. }
  4515. // Validate inspects the fields of the type to determine if they are valid.
  4516. func (s *S3DataSpec) Validate() error {
  4517. invalidParams := request.ErrInvalidParams{Context: "S3DataSpec"}
  4518. if s.DataLocationS3 == nil {
  4519. invalidParams.Add(request.NewErrParamRequired("DataLocationS3"))
  4520. }
  4521. if invalidParams.Len() > 0 {
  4522. return invalidParams
  4523. }
  4524. return nil
  4525. }
  4526. // A custom key-value pair associated with an ML object, such as an ML model.
  4527. type Tag struct {
  4528. _ struct{} `type:"structure"`
  4529. // A unique identifier for the tag. Valid characters include Unicode letters,
  4530. // digits, white space, _, ., /, =, +, -, %, and @.
  4531. Key *string `min:"1" type:"string"`
  4532. // An optional string, typically used to describe or define the tag. Valid characters
  4533. // include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
  4534. Value *string `type:"string"`
  4535. }
  4536. // String returns the string representation
  4537. func (s Tag) String() string {
  4538. return awsutil.Prettify(s)
  4539. }
  4540. // GoString returns the string representation
  4541. func (s Tag) GoString() string {
  4542. return s.String()
  4543. }
  4544. // Validate inspects the fields of the type to determine if they are valid.
  4545. func (s *Tag) Validate() error {
  4546. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  4547. if s.Key != nil && len(*s.Key) < 1 {
  4548. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  4549. }
  4550. if invalidParams.Len() > 0 {
  4551. return invalidParams
  4552. }
  4553. return nil
  4554. }
  4555. type UpdateBatchPredictionInput struct {
  4556. _ struct{} `type:"structure"`
  4557. // The ID assigned to the BatchPrediction during creation.
  4558. BatchPredictionId *string `min:"1" type:"string" required:"true"`
  4559. // A new user-supplied name or description of the BatchPrediction.
  4560. BatchPredictionName *string `type:"string" required:"true"`
  4561. }
  4562. // String returns the string representation
  4563. func (s UpdateBatchPredictionInput) String() string {
  4564. return awsutil.Prettify(s)
  4565. }
  4566. // GoString returns the string representation
  4567. func (s UpdateBatchPredictionInput) GoString() string {
  4568. return s.String()
  4569. }
  4570. // Validate inspects the fields of the type to determine if they are valid.
  4571. func (s *UpdateBatchPredictionInput) Validate() error {
  4572. invalidParams := request.ErrInvalidParams{Context: "UpdateBatchPredictionInput"}
  4573. if s.BatchPredictionId == nil {
  4574. invalidParams.Add(request.NewErrParamRequired("BatchPredictionId"))
  4575. }
  4576. if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 {
  4577. invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1))
  4578. }
  4579. if s.BatchPredictionName == nil {
  4580. invalidParams.Add(request.NewErrParamRequired("BatchPredictionName"))
  4581. }
  4582. if invalidParams.Len() > 0 {
  4583. return invalidParams
  4584. }
  4585. return nil
  4586. }
  4587. // Represents the output of an UpdateBatchPrediction operation.
  4588. //
  4589. // You can see the updated content by using the GetBatchPrediction operation.
  4590. type UpdateBatchPredictionOutput struct {
  4591. _ struct{} `type:"structure"`
  4592. // The ID assigned to the BatchPrediction during creation. This value should
  4593. // be identical to the value of the BatchPredictionId in the request.
  4594. BatchPredictionId *string `min:"1" type:"string"`
  4595. }
  4596. // String returns the string representation
  4597. func (s UpdateBatchPredictionOutput) String() string {
  4598. return awsutil.Prettify(s)
  4599. }
  4600. // GoString returns the string representation
  4601. func (s UpdateBatchPredictionOutput) GoString() string {
  4602. return s.String()
  4603. }
  4604. type UpdateDataSourceInput struct {
  4605. _ struct{} `type:"structure"`
  4606. // The ID assigned to the DataSource during creation.
  4607. DataSourceId *string `min:"1" type:"string" required:"true"`
  4608. // A new user-supplied name or description of the DataSource that will replace
  4609. // the current description.
  4610. DataSourceName *string `type:"string" required:"true"`
  4611. }
  4612. // String returns the string representation
  4613. func (s UpdateDataSourceInput) String() string {
  4614. return awsutil.Prettify(s)
  4615. }
  4616. // GoString returns the string representation
  4617. func (s UpdateDataSourceInput) GoString() string {
  4618. return s.String()
  4619. }
  4620. // Validate inspects the fields of the type to determine if they are valid.
  4621. func (s *UpdateDataSourceInput) Validate() error {
  4622. invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourceInput"}
  4623. if s.DataSourceId == nil {
  4624. invalidParams.Add(request.NewErrParamRequired("DataSourceId"))
  4625. }
  4626. if s.DataSourceId != nil && len(*s.DataSourceId) < 1 {
  4627. invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1))
  4628. }
  4629. if s.DataSourceName == nil {
  4630. invalidParams.Add(request.NewErrParamRequired("DataSourceName"))
  4631. }
  4632. if invalidParams.Len() > 0 {
  4633. return invalidParams
  4634. }
  4635. return nil
  4636. }
  4637. // Represents the output of an UpdateDataSource operation.
  4638. //
  4639. // You can see the updated content by using the GetBatchPrediction operation.
  4640. type UpdateDataSourceOutput struct {
  4641. _ struct{} `type:"structure"`
  4642. // The ID assigned to the DataSource during creation. This value should be identical
  4643. // to the value of the DataSourceID in the request.
  4644. DataSourceId *string `min:"1" type:"string"`
  4645. }
  4646. // String returns the string representation
  4647. func (s UpdateDataSourceOutput) String() string {
  4648. return awsutil.Prettify(s)
  4649. }
  4650. // GoString returns the string representation
  4651. func (s UpdateDataSourceOutput) GoString() string {
  4652. return s.String()
  4653. }
  4654. type UpdateEvaluationInput struct {
  4655. _ struct{} `type:"structure"`
  4656. // The ID assigned to the Evaluation during creation.
  4657. EvaluationId *string `min:"1" type:"string" required:"true"`
  4658. // A new user-supplied name or description of the Evaluation that will replace
  4659. // the current content.
  4660. EvaluationName *string `type:"string" required:"true"`
  4661. }
  4662. // String returns the string representation
  4663. func (s UpdateEvaluationInput) String() string {
  4664. return awsutil.Prettify(s)
  4665. }
  4666. // GoString returns the string representation
  4667. func (s UpdateEvaluationInput) GoString() string {
  4668. return s.String()
  4669. }
  4670. // Validate inspects the fields of the type to determine if they are valid.
  4671. func (s *UpdateEvaluationInput) Validate() error {
  4672. invalidParams := request.ErrInvalidParams{Context: "UpdateEvaluationInput"}
  4673. if s.EvaluationId == nil {
  4674. invalidParams.Add(request.NewErrParamRequired("EvaluationId"))
  4675. }
  4676. if s.EvaluationId != nil && len(*s.EvaluationId) < 1 {
  4677. invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1))
  4678. }
  4679. if s.EvaluationName == nil {
  4680. invalidParams.Add(request.NewErrParamRequired("EvaluationName"))
  4681. }
  4682. if invalidParams.Len() > 0 {
  4683. return invalidParams
  4684. }
  4685. return nil
  4686. }
  4687. // Represents the output of an UpdateEvaluation operation.
  4688. //
  4689. // You can see the updated content by using the GetEvaluation operation.
  4690. type UpdateEvaluationOutput struct {
  4691. _ struct{} `type:"structure"`
  4692. // The ID assigned to the Evaluation during creation. This value should be identical
  4693. // to the value of the Evaluation in the request.
  4694. EvaluationId *string `min:"1" type:"string"`
  4695. }
  4696. // String returns the string representation
  4697. func (s UpdateEvaluationOutput) String() string {
  4698. return awsutil.Prettify(s)
  4699. }
  4700. // GoString returns the string representation
  4701. func (s UpdateEvaluationOutput) GoString() string {
  4702. return s.String()
  4703. }
  4704. type UpdateMLModelInput struct {
  4705. _ struct{} `type:"structure"`
  4706. // The ID assigned to the MLModel during creation.
  4707. MLModelId *string `min:"1" type:"string" required:"true"`
  4708. // A user-supplied name or description of the MLModel.
  4709. MLModelName *string `type:"string"`
  4710. // The ScoreThreshold used in binary classification MLModel that marks the boundary
  4711. // between a positive prediction and a negative prediction.
  4712. //
  4713. // Output values greater than or equal to the ScoreThreshold receive a positive
  4714. // result from the MLModel, such as true. Output values less than the ScoreThreshold
  4715. // receive a negative response from the MLModel, such as false.
  4716. ScoreThreshold *float64 `type:"float"`
  4717. }
  4718. // String returns the string representation
  4719. func (s UpdateMLModelInput) String() string {
  4720. return awsutil.Prettify(s)
  4721. }
  4722. // GoString returns the string representation
  4723. func (s UpdateMLModelInput) GoString() string {
  4724. return s.String()
  4725. }
  4726. // Validate inspects the fields of the type to determine if they are valid.
  4727. func (s *UpdateMLModelInput) Validate() error {
  4728. invalidParams := request.ErrInvalidParams{Context: "UpdateMLModelInput"}
  4729. if s.MLModelId == nil {
  4730. invalidParams.Add(request.NewErrParamRequired("MLModelId"))
  4731. }
  4732. if s.MLModelId != nil && len(*s.MLModelId) < 1 {
  4733. invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1))
  4734. }
  4735. if invalidParams.Len() > 0 {
  4736. return invalidParams
  4737. }
  4738. return nil
  4739. }
  4740. // Represents the output of an UpdateMLModel operation.
  4741. //
  4742. // You can see the updated content by using the GetMLModel operation.
  4743. type UpdateMLModelOutput struct {
  4744. _ struct{} `type:"structure"`
  4745. // The ID assigned to the MLModel during creation. This value should be identical
  4746. // to the value of the MLModelID in the request.
  4747. MLModelId *string `min:"1" type:"string"`
  4748. }
  4749. // String returns the string representation
  4750. func (s UpdateMLModelOutput) String() string {
  4751. return awsutil.Prettify(s)
  4752. }
  4753. // GoString returns the string representation
  4754. func (s UpdateMLModelOutput) GoString() string {
  4755. return s.String()
  4756. }
  4757. // The function used to train an MLModel. Training choices supported by Amazon
  4758. // ML include the following:
  4759. //
  4760. // SGD - Stochastic Gradient Descent. RandomForest - Random forest of decision
  4761. // trees.
  4762. const (
  4763. // @enum Algorithm
  4764. AlgorithmSgd = "sgd"
  4765. )
  4766. // A list of the variables to use in searching or filtering BatchPrediction.
  4767. //
  4768. // CreatedAt - Sets the search criteria to BatchPrediction creation date.
  4769. // Status - Sets the search criteria to BatchPrediction status. Name - Sets
  4770. // the search criteria to the contents of BatchPrediction Name. IAMUser -
  4771. // Sets the search criteria to the user account that invoked the BatchPrediction
  4772. // creation. MLModelId - Sets the search criteria to the MLModel used in the
  4773. // BatchPrediction. DataSourceId - Sets the search criteria to the DataSource
  4774. // used in the BatchPrediction. DataURI - Sets the search criteria to the data
  4775. // file(s) used in the BatchPrediction. The URL can identify either a file or
  4776. // an Amazon Simple Storage Service (Amazon S3) bucket or directory.
  4777. const (
  4778. // @enum BatchPredictionFilterVariable
  4779. BatchPredictionFilterVariableCreatedAt = "CreatedAt"
  4780. // @enum BatchPredictionFilterVariable
  4781. BatchPredictionFilterVariableLastUpdatedAt = "LastUpdatedAt"
  4782. // @enum BatchPredictionFilterVariable
  4783. BatchPredictionFilterVariableStatus = "Status"
  4784. // @enum BatchPredictionFilterVariable
  4785. BatchPredictionFilterVariableName = "Name"
  4786. // @enum BatchPredictionFilterVariable
  4787. BatchPredictionFilterVariableIamuser = "IAMUser"
  4788. // @enum BatchPredictionFilterVariable
  4789. BatchPredictionFilterVariableMlmodelId = "MLModelId"
  4790. // @enum BatchPredictionFilterVariable
  4791. BatchPredictionFilterVariableDataSourceId = "DataSourceId"
  4792. // @enum BatchPredictionFilterVariable
  4793. BatchPredictionFilterVariableDataUri = "DataURI"
  4794. )
  4795. // A list of the variables to use in searching or filtering DataSource.
  4796. //
  4797. // CreatedAt - Sets the search criteria to DataSource creation date. Status
  4798. // - Sets the search criteria to DataSource status. Name - Sets the search
  4799. // criteria to the contents of DataSource Name. DataUri - Sets the search
  4800. // criteria to the URI of data files used to create the DataSource. The URI
  4801. // can identify either a file or an Amazon Simple Storage Service (Amazon S3)
  4802. // bucket or directory. IAMUser - Sets the search criteria to the user account
  4803. // that invoked the DataSource creation. Note The variable names should match
  4804. // the variable names in the DataSource.
  4805. const (
  4806. // @enum DataSourceFilterVariable
  4807. DataSourceFilterVariableCreatedAt = "CreatedAt"
  4808. // @enum DataSourceFilterVariable
  4809. DataSourceFilterVariableLastUpdatedAt = "LastUpdatedAt"
  4810. // @enum DataSourceFilterVariable
  4811. DataSourceFilterVariableStatus = "Status"
  4812. // @enum DataSourceFilterVariable
  4813. DataSourceFilterVariableName = "Name"
  4814. // @enum DataSourceFilterVariable
  4815. DataSourceFilterVariableDataLocationS3 = "DataLocationS3"
  4816. // @enum DataSourceFilterVariable
  4817. DataSourceFilterVariableIamuser = "IAMUser"
  4818. )
  4819. // Contains the key values of DetailsMap: PredictiveModelType - Indicates the
  4820. // type of the MLModel. Algorithm - Indicates the algorithm that was used for
  4821. // the MLModel.
  4822. const (
  4823. // @enum DetailsAttributes
  4824. DetailsAttributesPredictiveModelType = "PredictiveModelType"
  4825. // @enum DetailsAttributes
  4826. DetailsAttributesAlgorithm = "Algorithm"
  4827. )
  4828. // Object status with the following possible values:
  4829. //
  4830. // PENDING INPROGRESS FAILED COMPLETED DELETED
  4831. const (
  4832. // @enum EntityStatus
  4833. EntityStatusPending = "PENDING"
  4834. // @enum EntityStatus
  4835. EntityStatusInprogress = "INPROGRESS"
  4836. // @enum EntityStatus
  4837. EntityStatusFailed = "FAILED"
  4838. // @enum EntityStatus
  4839. EntityStatusCompleted = "COMPLETED"
  4840. // @enum EntityStatus
  4841. EntityStatusDeleted = "DELETED"
  4842. )
  4843. // A list of the variables to use in searching or filtering Evaluation.
  4844. //
  4845. // CreatedAt - Sets the search criteria to Evaluation creation date. Status
  4846. // - Sets the search criteria to Evaluation status. Name - Sets the search
  4847. // criteria to the contents of Evaluation Name. IAMUser - Sets the search
  4848. // criteria to the user account that invoked an evaluation. MLModelId - Sets
  4849. // the search criteria to the Predictor that was evaluated. DataSourceId -
  4850. // Sets the search criteria to the DataSource used in evaluation. DataUri -
  4851. // Sets the search criteria to the data file(s) used in evaluation. The URL
  4852. // can identify either a file or an Amazon Simple Storage Service (Amazon S3)
  4853. // bucket or directory.
  4854. const (
  4855. // @enum EvaluationFilterVariable
  4856. EvaluationFilterVariableCreatedAt = "CreatedAt"
  4857. // @enum EvaluationFilterVariable
  4858. EvaluationFilterVariableLastUpdatedAt = "LastUpdatedAt"
  4859. // @enum EvaluationFilterVariable
  4860. EvaluationFilterVariableStatus = "Status"
  4861. // @enum EvaluationFilterVariable
  4862. EvaluationFilterVariableName = "Name"
  4863. // @enum EvaluationFilterVariable
  4864. EvaluationFilterVariableIamuser = "IAMUser"
  4865. // @enum EvaluationFilterVariable
  4866. EvaluationFilterVariableMlmodelId = "MLModelId"
  4867. // @enum EvaluationFilterVariable
  4868. EvaluationFilterVariableDataSourceId = "DataSourceId"
  4869. // @enum EvaluationFilterVariable
  4870. EvaluationFilterVariableDataUri = "DataURI"
  4871. )
  4872. const (
  4873. // @enum MLModelFilterVariable
  4874. MLModelFilterVariableCreatedAt = "CreatedAt"
  4875. // @enum MLModelFilterVariable
  4876. MLModelFilterVariableLastUpdatedAt = "LastUpdatedAt"
  4877. // @enum MLModelFilterVariable
  4878. MLModelFilterVariableStatus = "Status"
  4879. // @enum MLModelFilterVariable
  4880. MLModelFilterVariableName = "Name"
  4881. // @enum MLModelFilterVariable
  4882. MLModelFilterVariableIamuser = "IAMUser"
  4883. // @enum MLModelFilterVariable
  4884. MLModelFilterVariableTrainingDataSourceId = "TrainingDataSourceId"
  4885. // @enum MLModelFilterVariable
  4886. MLModelFilterVariableRealtimeEndpointStatus = "RealtimeEndpointStatus"
  4887. // @enum MLModelFilterVariable
  4888. MLModelFilterVariableMlmodelType = "MLModelType"
  4889. // @enum MLModelFilterVariable
  4890. MLModelFilterVariableAlgorithm = "Algorithm"
  4891. // @enum MLModelFilterVariable
  4892. MLModelFilterVariableTrainingDataUri = "TrainingDataURI"
  4893. )
  4894. const (
  4895. // @enum MLModelType
  4896. MLModelTypeRegression = "REGRESSION"
  4897. // @enum MLModelType
  4898. MLModelTypeBinary = "BINARY"
  4899. // @enum MLModelType
  4900. MLModelTypeMulticlass = "MULTICLASS"
  4901. )
  4902. const (
  4903. // @enum RealtimeEndpointStatus
  4904. RealtimeEndpointStatusNone = "NONE"
  4905. // @enum RealtimeEndpointStatus
  4906. RealtimeEndpointStatusReady = "READY"
  4907. // @enum RealtimeEndpointStatus
  4908. RealtimeEndpointStatusUpdating = "UPDATING"
  4909. // @enum RealtimeEndpointStatus
  4910. RealtimeEndpointStatusFailed = "FAILED"
  4911. )
  4912. // The sort order specified in a listing condition. Possible values include
  4913. // the following:
  4914. //
  4915. // asc - Present the information in ascending order (from A-Z). dsc - Present
  4916. // the information in descending order (from Z-A).
  4917. const (
  4918. // @enum SortOrder
  4919. SortOrderAsc = "asc"
  4920. // @enum SortOrder
  4921. SortOrderDsc = "dsc"
  4922. )
  4923. const (
  4924. // @enum TaggableResourceType
  4925. TaggableResourceTypeBatchPrediction = "BatchPrediction"
  4926. // @enum TaggableResourceType
  4927. TaggableResourceTypeDataSource = "DataSource"
  4928. // @enum TaggableResourceType
  4929. TaggableResourceTypeEvaluation = "Evaluation"
  4930. // @enum TaggableResourceType
  4931. TaggableResourceTypeMlmodel = "MLModel"
  4932. )