| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package sagemaker
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opAddTags = "AddTags"
- // AddTagsRequest generates a "aws/request.Request" representing the
- // client's request for the AddTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AddTags for more information on using the AddTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AddTagsRequest method.
- // req, resp := client.AddTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags
- func (c *SageMaker) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
- op := &request.Operation{
- Name: opAddTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsInput{}
- }
- output = &AddTagsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AddTags API operation for Amazon SageMaker Service.
- //
- // Adds or overwrites one or more tags for the specified Amazon SageMaker resource.
- // You can add tags to notebook instances, training jobs, hyperparameter tuning
- // jobs, models, endpoint configurations, and endpoints.
- //
- // Each tag consists of a key and an optional value. Tag keys must be unique
- // per resource. For more information about tags, see For more information,
- // see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/).
- //
- // Tags that you add to a hyperparameter tuning job by calling this API are
- // also added to any training jobs that the hyperparameter tuning job launches
- // after you call this API, but not to training jobs that the hyperparameter
- // tuning job launched before you called this API. To make sure that the tags
- // associated with a hyperparameter tuning job are also added to all training
- // jobs that the hyperparameter tuning job launches, add the tags when you first
- // create the tuning job by specifying them in the Tags parameter of CreateHyperParameterTuningJob
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation AddTags for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags
- func (c *SageMaker) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- return out, req.Send()
- }
- // AddTagsWithContext is the same as AddTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AddTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateAlgorithm = "CreateAlgorithm"
- // CreateAlgorithmRequest generates a "aws/request.Request" representing the
- // client's request for the CreateAlgorithm operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateAlgorithm for more information on using the CreateAlgorithm
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateAlgorithmRequest method.
- // req, resp := client.CreateAlgorithmRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm
- func (c *SageMaker) CreateAlgorithmRequest(input *CreateAlgorithmInput) (req *request.Request, output *CreateAlgorithmOutput) {
- op := &request.Operation{
- Name: opCreateAlgorithm,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAlgorithmInput{}
- }
- output = &CreateAlgorithmOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateAlgorithm API operation for Amazon SageMaker Service.
- //
- // Create a machine learning algorithm that you can use in Amazon SageMaker
- // and list in the AWS Marketplace.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateAlgorithm for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm
- func (c *SageMaker) CreateAlgorithm(input *CreateAlgorithmInput) (*CreateAlgorithmOutput, error) {
- req, out := c.CreateAlgorithmRequest(input)
- return out, req.Send()
- }
- // CreateAlgorithmWithContext is the same as CreateAlgorithm with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateAlgorithm for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateAlgorithmWithContext(ctx aws.Context, input *CreateAlgorithmInput, opts ...request.Option) (*CreateAlgorithmOutput, error) {
- req, out := c.CreateAlgorithmRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateCodeRepository = "CreateCodeRepository"
- // CreateCodeRepositoryRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCodeRepository operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateCodeRepository for more information on using the CreateCodeRepository
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateCodeRepositoryRequest method.
- // req, resp := client.CreateCodeRepositoryRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository
- func (c *SageMaker) CreateCodeRepositoryRequest(input *CreateCodeRepositoryInput) (req *request.Request, output *CreateCodeRepositoryOutput) {
- op := &request.Operation{
- Name: opCreateCodeRepository,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCodeRepositoryInput{}
- }
- output = &CreateCodeRepositoryOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateCodeRepository API operation for Amazon SageMaker Service.
- //
- // Creates a Git repository as a resource in your Amazon SageMaker account.
- // You can associate the repository with notebook instances so that you can
- // use Git source control for the notebooks you create. The Git repository is
- // a resource in your Amazon SageMaker account, so it can be associated with
- // more than one notebook instance, and it persists independently from the lifecycle
- // of any notebook instances it is associated with.
- //
- // The repository can be hosted either in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateCodeRepository for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository
- func (c *SageMaker) CreateCodeRepository(input *CreateCodeRepositoryInput) (*CreateCodeRepositoryOutput, error) {
- req, out := c.CreateCodeRepositoryRequest(input)
- return out, req.Send()
- }
- // CreateCodeRepositoryWithContext is the same as CreateCodeRepository with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateCodeRepository for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateCodeRepositoryWithContext(ctx aws.Context, input *CreateCodeRepositoryInput, opts ...request.Option) (*CreateCodeRepositoryOutput, error) {
- req, out := c.CreateCodeRepositoryRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateCompilationJob = "CreateCompilationJob"
- // CreateCompilationJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCompilationJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateCompilationJob for more information on using the CreateCompilationJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateCompilationJobRequest method.
- // req, resp := client.CreateCompilationJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob
- func (c *SageMaker) CreateCompilationJobRequest(input *CreateCompilationJobInput) (req *request.Request, output *CreateCompilationJobOutput) {
- op := &request.Operation{
- Name: opCreateCompilationJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCompilationJobInput{}
- }
- output = &CreateCompilationJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateCompilationJob API operation for Amazon SageMaker Service.
- //
- // Starts a model compilation job. After the model has been compiled, Amazon
- // SageMaker saves the resulting model artifacts to an Amazon Simple Storage
- // Service (Amazon S3) bucket that you specify.
- //
- // If you choose to host your model using Amazon SageMaker hosting services,
- // you can use the resulting model artifacts as part of the model. You can also
- // use the artifacts with AWS IoT Greengrass. In that case, deploy them as an
- // ML resource.
- //
- // In the request body, you provide the following:
- //
- // * A name for the compilation job
- //
- // * Information about the input model artifacts
- //
- // * The output location for the compiled model and the device (target) that
- // the model runs on
- //
- // * The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker
- // assumes to perform the model compilation job
- //
- // You can also provide a Tag to track the model compilation job's resource
- // use and costs. The response body contains the CompilationJobArn for the compiled
- // job.
- //
- // To stop a model compilation job, use StopCompilationJob. To get information
- // about a particular model compilation job, use DescribeCompilationJob. To
- // get information about multiple model compilation jobs, use ListCompilationJobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateCompilationJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUse "ResourceInUse"
- // Resource being accessed is in use.
- //
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob
- func (c *SageMaker) CreateCompilationJob(input *CreateCompilationJobInput) (*CreateCompilationJobOutput, error) {
- req, out := c.CreateCompilationJobRequest(input)
- return out, req.Send()
- }
- // CreateCompilationJobWithContext is the same as CreateCompilationJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateCompilationJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateCompilationJobWithContext(ctx aws.Context, input *CreateCompilationJobInput, opts ...request.Option) (*CreateCompilationJobOutput, error) {
- req, out := c.CreateCompilationJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateEndpoint = "CreateEndpoint"
- // CreateEndpointRequest generates a "aws/request.Request" representing the
- // client's request for the CreateEndpoint operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateEndpoint for more information on using the CreateEndpoint
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateEndpointRequest method.
- // req, resp := client.CreateEndpointRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint
- func (c *SageMaker) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) {
- op := &request.Operation{
- Name: opCreateEndpoint,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateEndpointInput{}
- }
- output = &CreateEndpointOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateEndpoint API operation for Amazon SageMaker Service.
- //
- // Creates an endpoint using the endpoint configuration specified in the request.
- // Amazon SageMaker uses the endpoint to provision resources and deploy models.
- // You create the endpoint configuration with the CreateEndpointConfig (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html)
- // API.
- //
- // Use this API only for hosting models using Amazon SageMaker hosting services.
- //
- // The endpoint name must be unique within an AWS Region in your AWS account.
- //
- // When it receives the request, Amazon SageMaker creates the endpoint, launches
- // the resources (ML compute instances), and deploys the model(s) on them.
- //
- // When Amazon SageMaker receives the request, it sets the endpoint status to
- // Creating. After it creates the endpoint, it sets the status to InService.
- // Amazon SageMaker can then process incoming requests for inferences. To check
- // the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
- // API.
- //
- // For an example, see Exercise 1: Using the K-Means Algorithm Provided by Amazon
- // SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ex1.html).
- //
- // If any of the models hosted at this endpoint get model data from an Amazon
- // S3 location, Amazon SageMaker uses AWS Security Token Service to download
- // model artifacts from the S3 path you provided. AWS STS is activated in your
- // IAM user account by default. If you previously deactivated AWS STS for a
- // region, you need to reactivate AWS STS for that region. For more information,
- // see Activating and Deactivating AWS STS i an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
- // in the AWS Identity and Access Management User Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateEndpoint for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint
- func (c *SageMaker) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) {
- req, out := c.CreateEndpointRequest(input)
- return out, req.Send()
- }
- // CreateEndpointWithContext is the same as CreateEndpoint with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateEndpoint for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateEndpointWithContext(ctx aws.Context, input *CreateEndpointInput, opts ...request.Option) (*CreateEndpointOutput, error) {
- req, out := c.CreateEndpointRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateEndpointConfig = "CreateEndpointConfig"
- // CreateEndpointConfigRequest generates a "aws/request.Request" representing the
- // client's request for the CreateEndpointConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateEndpointConfig for more information on using the CreateEndpointConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateEndpointConfigRequest method.
- // req, resp := client.CreateEndpointConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig
- func (c *SageMaker) CreateEndpointConfigRequest(input *CreateEndpointConfigInput) (req *request.Request, output *CreateEndpointConfigOutput) {
- op := &request.Operation{
- Name: opCreateEndpointConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateEndpointConfigInput{}
- }
- output = &CreateEndpointConfigOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateEndpointConfig API operation for Amazon SageMaker Service.
- //
- // Creates an endpoint configuration that Amazon SageMaker hosting services
- // uses to deploy models. In the configuration, you identify one or more models,
- // created using the CreateModel API, to deploy and the resources that you want
- // Amazon SageMaker to provision. Then you call the CreateEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html)
- // API.
- //
- // Use this API only if you want to use Amazon SageMaker hosting services to
- // deploy models into production.
- //
- // In the request, you define one or more ProductionVariants, each of which
- // identifies a model. Each ProductionVariant parameter also describes the resources
- // that you want Amazon SageMaker to provision. This includes the number and
- // type of ML compute instances to deploy.
- //
- // If you are hosting multiple models, you also assign a VariantWeight to specify
- // how much traffic you want to allocate to each model. For example, suppose
- // that you want to host two models, A and B, and you assign traffic weight
- // 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds
- // of the traffic to Model A, and one-third to model B.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateEndpointConfig for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig
- func (c *SageMaker) CreateEndpointConfig(input *CreateEndpointConfigInput) (*CreateEndpointConfigOutput, error) {
- req, out := c.CreateEndpointConfigRequest(input)
- return out, req.Send()
- }
- // CreateEndpointConfigWithContext is the same as CreateEndpointConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateEndpointConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateEndpointConfigWithContext(ctx aws.Context, input *CreateEndpointConfigInput, opts ...request.Option) (*CreateEndpointConfigOutput, error) {
- req, out := c.CreateEndpointConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateHyperParameterTuningJob = "CreateHyperParameterTuningJob"
- // CreateHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateHyperParameterTuningJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateHyperParameterTuningJob for more information on using the CreateHyperParameterTuningJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateHyperParameterTuningJobRequest method.
- // req, resp := client.CreateHyperParameterTuningJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob
- func (c *SageMaker) CreateHyperParameterTuningJobRequest(input *CreateHyperParameterTuningJobInput) (req *request.Request, output *CreateHyperParameterTuningJobOutput) {
- op := &request.Operation{
- Name: opCreateHyperParameterTuningJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateHyperParameterTuningJobInput{}
- }
- output = &CreateHyperParameterTuningJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateHyperParameterTuningJob API operation for Amazon SageMaker Service.
- //
- // Starts a hyperparameter tuning job. A hyperparameter tuning job finds the
- // best version of a model by running many training jobs on your dataset using
- // the algorithm you choose and values for hyperparameters within ranges that
- // you specify. It then chooses the hyperparameter values that result in a model
- // that performs the best, as measured by an objective metric that you choose.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateHyperParameterTuningJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUse "ResourceInUse"
- // Resource being accessed is in use.
- //
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob
- func (c *SageMaker) CreateHyperParameterTuningJob(input *CreateHyperParameterTuningJobInput) (*CreateHyperParameterTuningJobOutput, error) {
- req, out := c.CreateHyperParameterTuningJobRequest(input)
- return out, req.Send()
- }
- // CreateHyperParameterTuningJobWithContext is the same as CreateHyperParameterTuningJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateHyperParameterTuningJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateHyperParameterTuningJobWithContext(ctx aws.Context, input *CreateHyperParameterTuningJobInput, opts ...request.Option) (*CreateHyperParameterTuningJobOutput, error) {
- req, out := c.CreateHyperParameterTuningJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateLabelingJob = "CreateLabelingJob"
- // CreateLabelingJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateLabelingJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateLabelingJob for more information on using the CreateLabelingJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateLabelingJobRequest method.
- // req, resp := client.CreateLabelingJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob
- func (c *SageMaker) CreateLabelingJobRequest(input *CreateLabelingJobInput) (req *request.Request, output *CreateLabelingJobOutput) {
- op := &request.Operation{
- Name: opCreateLabelingJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLabelingJobInput{}
- }
- output = &CreateLabelingJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateLabelingJob API operation for Amazon SageMaker Service.
- //
- // Creates a job that uses workers to label the data objects in your input dataset.
- // You can use the labeled data to train machine learning models.
- //
- // You can select your workforce from one of three providers:
- //
- // * A private workforce that you create. It can include employees, contractors,
- // and outside experts. Use a private workforce when want the data to stay
- // within your organization or when a specific set of skills is required.
- //
- // * One or more vendors that you select from the AWS Marketplace. Vendors
- // provide expertise in specific areas.
- //
- // * The Amazon Mechanical Turk workforce. This is the largest workforce,
- // but it should only be used for public data or data that has been stripped
- // of any personally identifiable information.
- //
- // You can also use automated data labeling to reduce the number of data objects
- // that need to be labeled by a human. Automated data labeling uses active learning
- // to determine if a data object can be labeled by machine or if it needs to
- // be sent to a human worker. For more information, see Using Automated Data
- // Labeling (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-automated-labeling.html).
- //
- // The data objects to be labeled are contained in an Amazon S3 bucket. You
- // create a manifest file that describes the location of each object. For more
- // information, see Using Input and Output Data (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-data.html).
- //
- // The output can be used as the manifest file for another labeling job or as
- // training data for your machine learning models.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateLabelingJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUse "ResourceInUse"
- // Resource being accessed is in use.
- //
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob
- func (c *SageMaker) CreateLabelingJob(input *CreateLabelingJobInput) (*CreateLabelingJobOutput, error) {
- req, out := c.CreateLabelingJobRequest(input)
- return out, req.Send()
- }
- // CreateLabelingJobWithContext is the same as CreateLabelingJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateLabelingJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateLabelingJobWithContext(ctx aws.Context, input *CreateLabelingJobInput, opts ...request.Option) (*CreateLabelingJobOutput, error) {
- req, out := c.CreateLabelingJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateModel = "CreateModel"
- // CreateModelRequest generates a "aws/request.Request" representing the
- // client's request for the CreateModel operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateModel for more information on using the CreateModel
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateModelRequest method.
- // req, resp := client.CreateModelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel
- func (c *SageMaker) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *CreateModelOutput) {
- op := &request.Operation{
- Name: opCreateModel,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateModelInput{}
- }
- output = &CreateModelOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateModel API operation for Amazon SageMaker Service.
- //
- // Creates a model in Amazon SageMaker. In the request, you name the model and
- // describe a primary container. For the primary container, you specify the
- // docker image containing inference code, artifacts (from prior training),
- // and custom environment map that the inference code uses when you deploy the
- // model for predictions.
- //
- // Use this API to create a model if you want to use Amazon SageMaker hosting
- // services or run a batch transform job.
- //
- // To host your model, you create an endpoint configuration with the CreateEndpointConfig
- // API, and then create an endpoint with the CreateEndpoint API. Amazon SageMaker
- // then deploys all of the containers that you defined for the model in the
- // hosting environment.
- //
- // To run a batch transform using your model, you start a job with the CreateTransformJob
- // API. Amazon SageMaker uses your model and your dataset to get inferences
- // which are then saved to a specified S3 location.
- //
- // In the CreateModel request, you must define a container with the PrimaryContainer
- // parameter.
- //
- // In the request, you also provide an IAM role that Amazon SageMaker can assume
- // to access model artifacts and docker image for deployment on ML compute hosting
- // instances or for batch transform jobs. In addition, you also use the IAM
- // role to manage permissions the inference code needs. For example, if the
- // inference code access any other AWS resources, you grant necessary permissions
- // via this role.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateModel for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel
- func (c *SageMaker) CreateModel(input *CreateModelInput) (*CreateModelOutput, error) {
- req, out := c.CreateModelRequest(input)
- return out, req.Send()
- }
- // CreateModelWithContext is the same as CreateModel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateModel for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateModelWithContext(ctx aws.Context, input *CreateModelInput, opts ...request.Option) (*CreateModelOutput, error) {
- req, out := c.CreateModelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateModelPackage = "CreateModelPackage"
- // CreateModelPackageRequest generates a "aws/request.Request" representing the
- // client's request for the CreateModelPackage operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateModelPackage for more information on using the CreateModelPackage
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateModelPackageRequest method.
- // req, resp := client.CreateModelPackageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage
- func (c *SageMaker) CreateModelPackageRequest(input *CreateModelPackageInput) (req *request.Request, output *CreateModelPackageOutput) {
- op := &request.Operation{
- Name: opCreateModelPackage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateModelPackageInput{}
- }
- output = &CreateModelPackageOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateModelPackage API operation for Amazon SageMaker Service.
- //
- // Creates a model package that you can use to create Amazon SageMaker models
- // or list on AWS Marketplace. Buyers can subscribe to model packages listed
- // on AWS Marketplace to create models in Amazon SageMaker.
- //
- // To create a model package by specifying a Docker container that contains
- // your inference code and the Amazon S3 location of your model artifacts, provide
- // values for InferenceSpecification. To create a model from an algorithm resource
- // that you created or subscribed to in AWS Marketplace, provide a value for
- // SourceAlgorithmSpecification.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateModelPackage for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage
- func (c *SageMaker) CreateModelPackage(input *CreateModelPackageInput) (*CreateModelPackageOutput, error) {
- req, out := c.CreateModelPackageRequest(input)
- return out, req.Send()
- }
- // CreateModelPackageWithContext is the same as CreateModelPackage with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateModelPackage for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateModelPackageWithContext(ctx aws.Context, input *CreateModelPackageInput, opts ...request.Option) (*CreateModelPackageOutput, error) {
- req, out := c.CreateModelPackageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateNotebookInstance = "CreateNotebookInstance"
- // CreateNotebookInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the CreateNotebookInstance operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateNotebookInstance for more information on using the CreateNotebookInstance
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateNotebookInstanceRequest method.
- // req, resp := client.CreateNotebookInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance
- func (c *SageMaker) CreateNotebookInstanceRequest(input *CreateNotebookInstanceInput) (req *request.Request, output *CreateNotebookInstanceOutput) {
- op := &request.Operation{
- Name: opCreateNotebookInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateNotebookInstanceInput{}
- }
- output = &CreateNotebookInstanceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateNotebookInstance API operation for Amazon SageMaker Service.
- //
- // Creates an Amazon SageMaker notebook instance. A notebook instance is a machine
- // learning (ML) compute instance running on a Jupyter notebook.
- //
- // In a CreateNotebookInstance request, specify the type of ML compute instance
- // that you want to run. Amazon SageMaker launches the instance, installs common
- // libraries that you can use to explore datasets for model training, and attaches
- // an ML storage volume to the notebook instance.
- //
- // Amazon SageMaker also provides a set of example notebooks. Each notebook
- // demonstrates how to use Amazon SageMaker with a specific algorithm or with
- // a machine learning framework.
- //
- // After receiving the request, Amazon SageMaker does the following:
- //
- // Creates a network interface in the Amazon SageMaker VPC.
- //
- // (Option) If you specified SubnetId, Amazon SageMaker creates a network interface
- // in your own VPC, which is inferred from the subnet ID that you provide in
- // the input. When creating this network interface, Amazon SageMaker attaches
- // the security group that you specified in the request to the network interface
- // that it creates in your VPC.
- //
- // Launches an EC2 instance of the type specified in the request in the Amazon
- // SageMaker VPC. If you specified SubnetId of your VPC, Amazon SageMaker specifies
- // both network interfaces when launching this instance. This enables inbound
- // traffic from your own VPC to the notebook instance, assuming that the security
- // groups allow it.
- //
- // After creating the notebook instance, Amazon SageMaker returns its Amazon
- // Resource Name (ARN).
- //
- // After Amazon SageMaker creates the notebook instance, you can connect to
- // the Jupyter server and work in Jupyter notebooks. For example, you can write
- // code to explore a dataset that you can use for model training, train a model,
- // host models by creating Amazon SageMaker endpoints, and validate hosted models.
- //
- // For more information, see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateNotebookInstance for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance
- func (c *SageMaker) CreateNotebookInstance(input *CreateNotebookInstanceInput) (*CreateNotebookInstanceOutput, error) {
- req, out := c.CreateNotebookInstanceRequest(input)
- return out, req.Send()
- }
- // CreateNotebookInstanceWithContext is the same as CreateNotebookInstance with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateNotebookInstance for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateNotebookInstanceWithContext(ctx aws.Context, input *CreateNotebookInstanceInput, opts ...request.Option) (*CreateNotebookInstanceOutput, error) {
- req, out := c.CreateNotebookInstanceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateNotebookInstanceLifecycleConfig = "CreateNotebookInstanceLifecycleConfig"
- // CreateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
- // client's request for the CreateNotebookInstanceLifecycleConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateNotebookInstanceLifecycleConfig for more information on using the CreateNotebookInstanceLifecycleConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateNotebookInstanceLifecycleConfigRequest method.
- // req, resp := client.CreateNotebookInstanceLifecycleConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig
- func (c *SageMaker) CreateNotebookInstanceLifecycleConfigRequest(input *CreateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *CreateNotebookInstanceLifecycleConfigOutput) {
- op := &request.Operation{
- Name: opCreateNotebookInstanceLifecycleConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateNotebookInstanceLifecycleConfigInput{}
- }
- output = &CreateNotebookInstanceLifecycleConfigOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
- //
- // Creates a lifecycle configuration that you can associate with a notebook
- // instance. A lifecycle configuration is a collection of shell scripts that
- // run when you create or start a notebook instance.
- //
- // Each lifecycle configuration script has a limit of 16384 characters.
- //
- // The value of the $PATH environment variable that is available to both scripts
- // is /sbin:bin:/usr/sbin:/usr/bin.
- //
- // View CloudWatch Logs for notebook instance lifecycle configurations in log
- // group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].
- //
- // Lifecycle configuration scripts cannot run for longer than 5 minutes. If
- // a script runs for longer than 5 minutes, it fails and the notebook instance
- // is not created or started.
- //
- // For information about notebook instance lifestyle configurations, see Step
- // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateNotebookInstanceLifecycleConfig for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig
- func (c *SageMaker) CreateNotebookInstanceLifecycleConfig(input *CreateNotebookInstanceLifecycleConfigInput) (*CreateNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input)
- return out, req.Send()
- }
- // CreateNotebookInstanceLifecycleConfigWithContext is the same as CreateNotebookInstanceLifecycleConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateNotebookInstanceLifecycleConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *CreateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*CreateNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreatePresignedNotebookInstanceUrl = "CreatePresignedNotebookInstanceUrl"
- // CreatePresignedNotebookInstanceUrlRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePresignedNotebookInstanceUrl operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreatePresignedNotebookInstanceUrl for more information on using the CreatePresignedNotebookInstanceUrl
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreatePresignedNotebookInstanceUrlRequest method.
- // req, resp := client.CreatePresignedNotebookInstanceUrlRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl
- func (c *SageMaker) CreatePresignedNotebookInstanceUrlRequest(input *CreatePresignedNotebookInstanceUrlInput) (req *request.Request, output *CreatePresignedNotebookInstanceUrlOutput) {
- op := &request.Operation{
- Name: opCreatePresignedNotebookInstanceUrl,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreatePresignedNotebookInstanceUrlInput{}
- }
- output = &CreatePresignedNotebookInstanceUrlOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreatePresignedNotebookInstanceUrl API operation for Amazon SageMaker Service.
- //
- // Returns a URL that you can use to connect to the Jupyter server from a notebook
- // instance. In the Amazon SageMaker console, when you choose Open next to a
- // notebook instance, Amazon SageMaker opens a new tab showing the Jupyter server
- // home page from the notebook instance. The console uses this API to get the
- // URL and show the page.
- //
- // You can restrict access to this API and to the URL that it returns to a list
- // of IP addresses that you specify. To restrict access, attach an IAM policy
- // that denies access to this API unless the call comes from an IP address in
- // the specified list to every AWS Identity and Access Management user, group,
- // or role used to access the notebook instance. Use the NotIpAddress condition
- // operator and the aws:SourceIP condition context key to specify the list of
- // IP addresses that you want to have access to the notebook instance. For more
- // information, see Limit Access to a Notebook Instance by IP Address (http://docs.aws.amazon.com/sagemaker/latest/dg/howitworks-access-ws.html#nbi-ip-filter).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreatePresignedNotebookInstanceUrl for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl
- func (c *SageMaker) CreatePresignedNotebookInstanceUrl(input *CreatePresignedNotebookInstanceUrlInput) (*CreatePresignedNotebookInstanceUrlOutput, error) {
- req, out := c.CreatePresignedNotebookInstanceUrlRequest(input)
- return out, req.Send()
- }
- // CreatePresignedNotebookInstanceUrlWithContext is the same as CreatePresignedNotebookInstanceUrl with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreatePresignedNotebookInstanceUrl for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreatePresignedNotebookInstanceUrlWithContext(ctx aws.Context, input *CreatePresignedNotebookInstanceUrlInput, opts ...request.Option) (*CreatePresignedNotebookInstanceUrlOutput, error) {
- req, out := c.CreatePresignedNotebookInstanceUrlRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateTrainingJob = "CreateTrainingJob"
- // CreateTrainingJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTrainingJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateTrainingJob for more information on using the CreateTrainingJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateTrainingJobRequest method.
- // req, resp := client.CreateTrainingJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob
- func (c *SageMaker) CreateTrainingJobRequest(input *CreateTrainingJobInput) (req *request.Request, output *CreateTrainingJobOutput) {
- op := &request.Operation{
- Name: opCreateTrainingJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateTrainingJobInput{}
- }
- output = &CreateTrainingJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateTrainingJob API operation for Amazon SageMaker Service.
- //
- // Starts a model training job. After training completes, Amazon SageMaker saves
- // the resulting model artifacts to an Amazon S3 location that you specify.
- //
- // If you choose to host your model using Amazon SageMaker hosting services,
- // you can use the resulting model artifacts as part of the model. You can also
- // use the artifacts in a deep learning service other than Amazon SageMaker,
- // provided that you know how to use them for inferences.
- //
- // In the request body, you provide the following:
- //
- // * AlgorithmSpecification - Identifies the training algorithm to use.
- //
- // * HyperParameters - Specify these algorithm-specific parameters to influence
- // the quality of the final model. For a list of hyperparameters for each
- // training algorithm provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
- //
- //
- // * InputDataConfig - Describes the training dataset and the Amazon S3 location
- // where it is stored.
- //
- // * OutputDataConfig - Identifies the Amazon S3 location where you want
- // Amazon SageMaker to save the results of model training.
- //
- // * ResourceConfig - Identifies the resources, ML compute instances, and
- // ML storage volumes to deploy for model training. In distributed training,
- // you specify more than one instance.
- //
- // * RoleARN - The Amazon Resource Number (ARN) that Amazon SageMaker assumes
- // to perform tasks on your behalf during model training. You must grant
- // this role the necessary permissions so that Amazon SageMaker can successfully
- // complete model training.
- //
- // * StoppingCondition - Sets a duration for training. Use this parameter
- // to cap model training costs.
- //
- // For more information about Amazon SageMaker, see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html)
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateTrainingJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUse "ResourceInUse"
- // Resource being accessed is in use.
- //
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob
- func (c *SageMaker) CreateTrainingJob(input *CreateTrainingJobInput) (*CreateTrainingJobOutput, error) {
- req, out := c.CreateTrainingJobRequest(input)
- return out, req.Send()
- }
- // CreateTrainingJobWithContext is the same as CreateTrainingJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateTrainingJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateTrainingJobWithContext(ctx aws.Context, input *CreateTrainingJobInput, opts ...request.Option) (*CreateTrainingJobOutput, error) {
- req, out := c.CreateTrainingJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateTransformJob = "CreateTransformJob"
- // CreateTransformJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTransformJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateTransformJob for more information on using the CreateTransformJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateTransformJobRequest method.
- // req, resp := client.CreateTransformJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob
- func (c *SageMaker) CreateTransformJobRequest(input *CreateTransformJobInput) (req *request.Request, output *CreateTransformJobOutput) {
- op := &request.Operation{
- Name: opCreateTransformJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateTransformJobInput{}
- }
- output = &CreateTransformJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateTransformJob API operation for Amazon SageMaker Service.
- //
- // Starts a transform job. A transform job uses a trained model to get inferences
- // on a dataset and saves these results to an Amazon S3 location that you specify.
- //
- // To perform batch transformations, you create a transform job and use the
- // data that you have readily available.
- //
- // In the request body, you provide the following:
- //
- // * TransformJobName - Identifies the transform job. The name must be unique
- // within an AWS Region in an AWS account.
- //
- // * ModelName - Identifies the model to use. ModelName must be the name
- // of an existing Amazon SageMaker model in the same AWS Region and AWS account.
- // For information on creating a model, see CreateModel.
- //
- // * TransformInput - Describes the dataset to be transformed and the Amazon
- // S3 location where it is stored.
- //
- // * TransformOutput - Identifies the Amazon S3 location where you want Amazon
- // SageMaker to save the results from the transform job.
- //
- // * TransformResources - Identifies the ML compute instances for the transform
- // job.
- //
- // For more information about how batch transformation works Amazon SageMaker,
- // see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateTransformJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUse "ResourceInUse"
- // Resource being accessed is in use.
- //
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob
- func (c *SageMaker) CreateTransformJob(input *CreateTransformJobInput) (*CreateTransformJobOutput, error) {
- req, out := c.CreateTransformJobRequest(input)
- return out, req.Send()
- }
- // CreateTransformJobWithContext is the same as CreateTransformJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateTransformJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateTransformJobWithContext(ctx aws.Context, input *CreateTransformJobInput, opts ...request.Option) (*CreateTransformJobOutput, error) {
- req, out := c.CreateTransformJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateWorkteam = "CreateWorkteam"
- // CreateWorkteamRequest generates a "aws/request.Request" representing the
- // client's request for the CreateWorkteam operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateWorkteam for more information on using the CreateWorkteam
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateWorkteamRequest method.
- // req, resp := client.CreateWorkteamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam
- func (c *SageMaker) CreateWorkteamRequest(input *CreateWorkteamInput) (req *request.Request, output *CreateWorkteamOutput) {
- op := &request.Operation{
- Name: opCreateWorkteam,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateWorkteamInput{}
- }
- output = &CreateWorkteamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateWorkteam API operation for Amazon SageMaker Service.
- //
- // Creates a new work team for labeling your data. A work team is defined by
- // one or more Amazon Cognito user pools. You must first create the user pools
- // before you can create a work team.
- //
- // You cannot create more than 25 work teams in an account and region.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation CreateWorkteam for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUse "ResourceInUse"
- // Resource being accessed is in use.
- //
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam
- func (c *SageMaker) CreateWorkteam(input *CreateWorkteamInput) (*CreateWorkteamOutput, error) {
- req, out := c.CreateWorkteamRequest(input)
- return out, req.Send()
- }
- // CreateWorkteamWithContext is the same as CreateWorkteam with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateWorkteam for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) CreateWorkteamWithContext(ctx aws.Context, input *CreateWorkteamInput, opts ...request.Option) (*CreateWorkteamOutput, error) {
- req, out := c.CreateWorkteamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteAlgorithm = "DeleteAlgorithm"
- // DeleteAlgorithmRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAlgorithm operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteAlgorithm for more information on using the DeleteAlgorithm
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteAlgorithmRequest method.
- // req, resp := client.DeleteAlgorithmRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm
- func (c *SageMaker) DeleteAlgorithmRequest(input *DeleteAlgorithmInput) (req *request.Request, output *DeleteAlgorithmOutput) {
- op := &request.Operation{
- Name: opDeleteAlgorithm,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteAlgorithmInput{}
- }
- output = &DeleteAlgorithmOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteAlgorithm API operation for Amazon SageMaker Service.
- //
- // Removes the specified algorithm from your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteAlgorithm for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm
- func (c *SageMaker) DeleteAlgorithm(input *DeleteAlgorithmInput) (*DeleteAlgorithmOutput, error) {
- req, out := c.DeleteAlgorithmRequest(input)
- return out, req.Send()
- }
- // DeleteAlgorithmWithContext is the same as DeleteAlgorithm with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteAlgorithm for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteAlgorithmWithContext(ctx aws.Context, input *DeleteAlgorithmInput, opts ...request.Option) (*DeleteAlgorithmOutput, error) {
- req, out := c.DeleteAlgorithmRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteCodeRepository = "DeleteCodeRepository"
- // DeleteCodeRepositoryRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCodeRepository operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteCodeRepository for more information on using the DeleteCodeRepository
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteCodeRepositoryRequest method.
- // req, resp := client.DeleteCodeRepositoryRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository
- func (c *SageMaker) DeleteCodeRepositoryRequest(input *DeleteCodeRepositoryInput) (req *request.Request, output *DeleteCodeRepositoryOutput) {
- op := &request.Operation{
- Name: opDeleteCodeRepository,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteCodeRepositoryInput{}
- }
- output = &DeleteCodeRepositoryOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteCodeRepository API operation for Amazon SageMaker Service.
- //
- // Deletes the specified Git repository from your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteCodeRepository for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository
- func (c *SageMaker) DeleteCodeRepository(input *DeleteCodeRepositoryInput) (*DeleteCodeRepositoryOutput, error) {
- req, out := c.DeleteCodeRepositoryRequest(input)
- return out, req.Send()
- }
- // DeleteCodeRepositoryWithContext is the same as DeleteCodeRepository with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteCodeRepository for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteCodeRepositoryWithContext(ctx aws.Context, input *DeleteCodeRepositoryInput, opts ...request.Option) (*DeleteCodeRepositoryOutput, error) {
- req, out := c.DeleteCodeRepositoryRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteEndpoint = "DeleteEndpoint"
- // DeleteEndpointRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteEndpoint operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteEndpoint for more information on using the DeleteEndpoint
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteEndpointRequest method.
- // req, resp := client.DeleteEndpointRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint
- func (c *SageMaker) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) {
- op := &request.Operation{
- Name: opDeleteEndpoint,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteEndpointInput{}
- }
- output = &DeleteEndpointOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteEndpoint API operation for Amazon SageMaker Service.
- //
- // Deletes an endpoint. Amazon SageMaker frees up all of the resources that
- // were deployed when the endpoint was created.
- //
- // Amazon SageMaker retires any custom KMS key grants associated with the endpoint,
- // meaning you don't need to use the RevokeGrant (http://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html)
- // API call.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteEndpoint for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint
- func (c *SageMaker) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) {
- req, out := c.DeleteEndpointRequest(input)
- return out, req.Send()
- }
- // DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteEndpoint for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error) {
- req, out := c.DeleteEndpointRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteEndpointConfig = "DeleteEndpointConfig"
- // DeleteEndpointConfigRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteEndpointConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteEndpointConfig for more information on using the DeleteEndpointConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteEndpointConfigRequest method.
- // req, resp := client.DeleteEndpointConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig
- func (c *SageMaker) DeleteEndpointConfigRequest(input *DeleteEndpointConfigInput) (req *request.Request, output *DeleteEndpointConfigOutput) {
- op := &request.Operation{
- Name: opDeleteEndpointConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteEndpointConfigInput{}
- }
- output = &DeleteEndpointConfigOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteEndpointConfig API operation for Amazon SageMaker Service.
- //
- // Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only
- // the specified configuration. It does not delete endpoints created using the
- // configuration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteEndpointConfig for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig
- func (c *SageMaker) DeleteEndpointConfig(input *DeleteEndpointConfigInput) (*DeleteEndpointConfigOutput, error) {
- req, out := c.DeleteEndpointConfigRequest(input)
- return out, req.Send()
- }
- // DeleteEndpointConfigWithContext is the same as DeleteEndpointConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteEndpointConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteEndpointConfigWithContext(ctx aws.Context, input *DeleteEndpointConfigInput, opts ...request.Option) (*DeleteEndpointConfigOutput, error) {
- req, out := c.DeleteEndpointConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteModel = "DeleteModel"
- // DeleteModelRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteModel operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteModel for more information on using the DeleteModel
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteModelRequest method.
- // req, resp := client.DeleteModelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel
- func (c *SageMaker) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) {
- op := &request.Operation{
- Name: opDeleteModel,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteModelInput{}
- }
- output = &DeleteModelOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteModel API operation for Amazon SageMaker Service.
- //
- // Deletes a model. The DeleteModel API deletes only the model entry that was
- // created in Amazon SageMaker when you called the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html)
- // API. It does not delete model artifacts, inference code, or the IAM role
- // that you specified when creating the model.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteModel for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel
- func (c *SageMaker) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) {
- req, out := c.DeleteModelRequest(input)
- return out, req.Send()
- }
- // DeleteModelWithContext is the same as DeleteModel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteModel for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteModelWithContext(ctx aws.Context, input *DeleteModelInput, opts ...request.Option) (*DeleteModelOutput, error) {
- req, out := c.DeleteModelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteModelPackage = "DeleteModelPackage"
- // DeleteModelPackageRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteModelPackage operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteModelPackage for more information on using the DeleteModelPackage
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteModelPackageRequest method.
- // req, resp := client.DeleteModelPackageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage
- func (c *SageMaker) DeleteModelPackageRequest(input *DeleteModelPackageInput) (req *request.Request, output *DeleteModelPackageOutput) {
- op := &request.Operation{
- Name: opDeleteModelPackage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteModelPackageInput{}
- }
- output = &DeleteModelPackageOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteModelPackage API operation for Amazon SageMaker Service.
- //
- // Deletes a model package.
- //
- // A model package is used to create Amazon SageMaker models or list on AWS
- // Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace
- // to create models in Amazon SageMaker.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteModelPackage for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage
- func (c *SageMaker) DeleteModelPackage(input *DeleteModelPackageInput) (*DeleteModelPackageOutput, error) {
- req, out := c.DeleteModelPackageRequest(input)
- return out, req.Send()
- }
- // DeleteModelPackageWithContext is the same as DeleteModelPackage with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteModelPackage for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteModelPackageWithContext(ctx aws.Context, input *DeleteModelPackageInput, opts ...request.Option) (*DeleteModelPackageOutput, error) {
- req, out := c.DeleteModelPackageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteNotebookInstance = "DeleteNotebookInstance"
- // DeleteNotebookInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteNotebookInstance operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteNotebookInstance for more information on using the DeleteNotebookInstance
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteNotebookInstanceRequest method.
- // req, resp := client.DeleteNotebookInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance
- func (c *SageMaker) DeleteNotebookInstanceRequest(input *DeleteNotebookInstanceInput) (req *request.Request, output *DeleteNotebookInstanceOutput) {
- op := &request.Operation{
- Name: opDeleteNotebookInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteNotebookInstanceInput{}
- }
- output = &DeleteNotebookInstanceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteNotebookInstance API operation for Amazon SageMaker Service.
- //
- // Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook
- // instance, you must call the StopNotebookInstance API.
- //
- // When you delete a notebook instance, you lose all of your data. Amazon SageMaker
- // removes the ML compute instance, and deletes the ML storage volume and the
- // network interface associated with the notebook instance.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteNotebookInstance for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance
- func (c *SageMaker) DeleteNotebookInstance(input *DeleteNotebookInstanceInput) (*DeleteNotebookInstanceOutput, error) {
- req, out := c.DeleteNotebookInstanceRequest(input)
- return out, req.Send()
- }
- // DeleteNotebookInstanceWithContext is the same as DeleteNotebookInstance with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteNotebookInstance for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteNotebookInstanceWithContext(ctx aws.Context, input *DeleteNotebookInstanceInput, opts ...request.Option) (*DeleteNotebookInstanceOutput, error) {
- req, out := c.DeleteNotebookInstanceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteNotebookInstanceLifecycleConfig = "DeleteNotebookInstanceLifecycleConfig"
- // DeleteNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteNotebookInstanceLifecycleConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteNotebookInstanceLifecycleConfig for more information on using the DeleteNotebookInstanceLifecycleConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteNotebookInstanceLifecycleConfigRequest method.
- // req, resp := client.DeleteNotebookInstanceLifecycleConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig
- func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigRequest(input *DeleteNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DeleteNotebookInstanceLifecycleConfigOutput) {
- op := &request.Operation{
- Name: opDeleteNotebookInstanceLifecycleConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteNotebookInstanceLifecycleConfigInput{}
- }
- output = &DeleteNotebookInstanceLifecycleConfigOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
- //
- // Deletes a notebook instance lifecycle configuration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteNotebookInstanceLifecycleConfig for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig
- func (c *SageMaker) DeleteNotebookInstanceLifecycleConfig(input *DeleteNotebookInstanceLifecycleConfigInput) (*DeleteNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input)
- return out, req.Send()
- }
- // DeleteNotebookInstanceLifecycleConfigWithContext is the same as DeleteNotebookInstanceLifecycleConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteNotebookInstanceLifecycleConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DeleteNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DeleteNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteTags = "DeleteTags"
- // DeleteTagsRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteTags for more information on using the DeleteTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteTagsRequest method.
- // req, resp := client.DeleteTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags
- func (c *SageMaker) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
- op := &request.Operation{
- Name: opDeleteTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteTagsInput{}
- }
- output = &DeleteTagsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteTags API operation for Amazon SageMaker Service.
- //
- // Deletes the specified tags from an Amazon SageMaker resource.
- //
- // To list a resource's tags, use the ListTags API.
- //
- // When you call this API to delete tags from a hyperparameter tuning job, the
- // deleted tags are not removed from training jobs that the hyperparameter tuning
- // job launched before you called this API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteTags for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags
- func (c *SageMaker) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
- req, out := c.DeleteTagsRequest(input)
- return out, req.Send()
- }
- // DeleteTagsWithContext is the same as DeleteTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
- req, out := c.DeleteTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteWorkteam = "DeleteWorkteam"
- // DeleteWorkteamRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteWorkteam operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteWorkteam for more information on using the DeleteWorkteam
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteWorkteamRequest method.
- // req, resp := client.DeleteWorkteamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam
- func (c *SageMaker) DeleteWorkteamRequest(input *DeleteWorkteamInput) (req *request.Request, output *DeleteWorkteamOutput) {
- op := &request.Operation{
- Name: opDeleteWorkteam,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteWorkteamInput{}
- }
- output = &DeleteWorkteamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteWorkteam API operation for Amazon SageMaker Service.
- //
- // Deletes an existing work team. This operation can't be undone.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DeleteWorkteam for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam
- func (c *SageMaker) DeleteWorkteam(input *DeleteWorkteamInput) (*DeleteWorkteamOutput, error) {
- req, out := c.DeleteWorkteamRequest(input)
- return out, req.Send()
- }
- // DeleteWorkteamWithContext is the same as DeleteWorkteam with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteWorkteam for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DeleteWorkteamWithContext(ctx aws.Context, input *DeleteWorkteamInput, opts ...request.Option) (*DeleteWorkteamOutput, error) {
- req, out := c.DeleteWorkteamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeAlgorithm = "DescribeAlgorithm"
- // DescribeAlgorithmRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAlgorithm operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeAlgorithm for more information on using the DescribeAlgorithm
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeAlgorithmRequest method.
- // req, resp := client.DescribeAlgorithmRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm
- func (c *SageMaker) DescribeAlgorithmRequest(input *DescribeAlgorithmInput) (req *request.Request, output *DescribeAlgorithmOutput) {
- op := &request.Operation{
- Name: opDescribeAlgorithm,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeAlgorithmInput{}
- }
- output = &DescribeAlgorithmOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeAlgorithm API operation for Amazon SageMaker Service.
- //
- // Returns a description of the specified algorithm that is in your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeAlgorithm for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm
- func (c *SageMaker) DescribeAlgorithm(input *DescribeAlgorithmInput) (*DescribeAlgorithmOutput, error) {
- req, out := c.DescribeAlgorithmRequest(input)
- return out, req.Send()
- }
- // DescribeAlgorithmWithContext is the same as DescribeAlgorithm with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeAlgorithm for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeAlgorithmWithContext(ctx aws.Context, input *DescribeAlgorithmInput, opts ...request.Option) (*DescribeAlgorithmOutput, error) {
- req, out := c.DescribeAlgorithmRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeCodeRepository = "DescribeCodeRepository"
- // DescribeCodeRepositoryRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCodeRepository operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeCodeRepository for more information on using the DescribeCodeRepository
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeCodeRepositoryRequest method.
- // req, resp := client.DescribeCodeRepositoryRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository
- func (c *SageMaker) DescribeCodeRepositoryRequest(input *DescribeCodeRepositoryInput) (req *request.Request, output *DescribeCodeRepositoryOutput) {
- op := &request.Operation{
- Name: opDescribeCodeRepository,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeCodeRepositoryInput{}
- }
- output = &DescribeCodeRepositoryOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeCodeRepository API operation for Amazon SageMaker Service.
- //
- // Gets details about the specified Git repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeCodeRepository for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository
- func (c *SageMaker) DescribeCodeRepository(input *DescribeCodeRepositoryInput) (*DescribeCodeRepositoryOutput, error) {
- req, out := c.DescribeCodeRepositoryRequest(input)
- return out, req.Send()
- }
- // DescribeCodeRepositoryWithContext is the same as DescribeCodeRepository with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeCodeRepository for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeCodeRepositoryWithContext(ctx aws.Context, input *DescribeCodeRepositoryInput, opts ...request.Option) (*DescribeCodeRepositoryOutput, error) {
- req, out := c.DescribeCodeRepositoryRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeCompilationJob = "DescribeCompilationJob"
- // DescribeCompilationJobRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCompilationJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeCompilationJob for more information on using the DescribeCompilationJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeCompilationJobRequest method.
- // req, resp := client.DescribeCompilationJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob
- func (c *SageMaker) DescribeCompilationJobRequest(input *DescribeCompilationJobInput) (req *request.Request, output *DescribeCompilationJobOutput) {
- op := &request.Operation{
- Name: opDescribeCompilationJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeCompilationJobInput{}
- }
- output = &DescribeCompilationJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeCompilationJob API operation for Amazon SageMaker Service.
- //
- // Returns information about a model compilation job.
- //
- // To create a model compilation job, use CreateCompilationJob. To get information
- // about multiple model compilation jobs, use ListCompilationJobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeCompilationJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob
- func (c *SageMaker) DescribeCompilationJob(input *DescribeCompilationJobInput) (*DescribeCompilationJobOutput, error) {
- req, out := c.DescribeCompilationJobRequest(input)
- return out, req.Send()
- }
- // DescribeCompilationJobWithContext is the same as DescribeCompilationJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeCompilationJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeCompilationJobWithContext(ctx aws.Context, input *DescribeCompilationJobInput, opts ...request.Option) (*DescribeCompilationJobOutput, error) {
- req, out := c.DescribeCompilationJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeEndpoint = "DescribeEndpoint"
- // DescribeEndpointRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEndpoint operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeEndpoint for more information on using the DescribeEndpoint
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeEndpointRequest method.
- // req, resp := client.DescribeEndpointRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint
- func (c *SageMaker) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) {
- op := &request.Operation{
- Name: opDescribeEndpoint,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeEndpointInput{}
- }
- output = &DescribeEndpointOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeEndpoint API operation for Amazon SageMaker Service.
- //
- // Returns the description of an endpoint.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeEndpoint for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint
- func (c *SageMaker) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) {
- req, out := c.DescribeEndpointRequest(input)
- return out, req.Send()
- }
- // DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeEndpoint for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) {
- req, out := c.DescribeEndpointRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeEndpointConfig = "DescribeEndpointConfig"
- // DescribeEndpointConfigRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEndpointConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeEndpointConfig for more information on using the DescribeEndpointConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeEndpointConfigRequest method.
- // req, resp := client.DescribeEndpointConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig
- func (c *SageMaker) DescribeEndpointConfigRequest(input *DescribeEndpointConfigInput) (req *request.Request, output *DescribeEndpointConfigOutput) {
- op := &request.Operation{
- Name: opDescribeEndpointConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeEndpointConfigInput{}
- }
- output = &DescribeEndpointConfigOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeEndpointConfig API operation for Amazon SageMaker Service.
- //
- // Returns the description of an endpoint configuration created using the CreateEndpointConfig
- // API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeEndpointConfig for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig
- func (c *SageMaker) DescribeEndpointConfig(input *DescribeEndpointConfigInput) (*DescribeEndpointConfigOutput, error) {
- req, out := c.DescribeEndpointConfigRequest(input)
- return out, req.Send()
- }
- // DescribeEndpointConfigWithContext is the same as DescribeEndpointConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeEndpointConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeEndpointConfigWithContext(ctx aws.Context, input *DescribeEndpointConfigInput, opts ...request.Option) (*DescribeEndpointConfigOutput, error) {
- req, out := c.DescribeEndpointConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeHyperParameterTuningJob = "DescribeHyperParameterTuningJob"
- // DescribeHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeHyperParameterTuningJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeHyperParameterTuningJob for more information on using the DescribeHyperParameterTuningJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeHyperParameterTuningJobRequest method.
- // req, resp := client.DescribeHyperParameterTuningJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob
- func (c *SageMaker) DescribeHyperParameterTuningJobRequest(input *DescribeHyperParameterTuningJobInput) (req *request.Request, output *DescribeHyperParameterTuningJobOutput) {
- op := &request.Operation{
- Name: opDescribeHyperParameterTuningJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeHyperParameterTuningJobInput{}
- }
- output = &DescribeHyperParameterTuningJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeHyperParameterTuningJob API operation for Amazon SageMaker Service.
- //
- // Gets a description of a hyperparameter tuning job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeHyperParameterTuningJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob
- func (c *SageMaker) DescribeHyperParameterTuningJob(input *DescribeHyperParameterTuningJobInput) (*DescribeHyperParameterTuningJobOutput, error) {
- req, out := c.DescribeHyperParameterTuningJobRequest(input)
- return out, req.Send()
- }
- // DescribeHyperParameterTuningJobWithContext is the same as DescribeHyperParameterTuningJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeHyperParameterTuningJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeHyperParameterTuningJobWithContext(ctx aws.Context, input *DescribeHyperParameterTuningJobInput, opts ...request.Option) (*DescribeHyperParameterTuningJobOutput, error) {
- req, out := c.DescribeHyperParameterTuningJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeLabelingJob = "DescribeLabelingJob"
- // DescribeLabelingJobRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLabelingJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeLabelingJob for more information on using the DescribeLabelingJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeLabelingJobRequest method.
- // req, resp := client.DescribeLabelingJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob
- func (c *SageMaker) DescribeLabelingJobRequest(input *DescribeLabelingJobInput) (req *request.Request, output *DescribeLabelingJobOutput) {
- op := &request.Operation{
- Name: opDescribeLabelingJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLabelingJobInput{}
- }
- output = &DescribeLabelingJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeLabelingJob API operation for Amazon SageMaker Service.
- //
- // Gets information about a labeling job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeLabelingJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob
- func (c *SageMaker) DescribeLabelingJob(input *DescribeLabelingJobInput) (*DescribeLabelingJobOutput, error) {
- req, out := c.DescribeLabelingJobRequest(input)
- return out, req.Send()
- }
- // DescribeLabelingJobWithContext is the same as DescribeLabelingJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeLabelingJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeLabelingJobWithContext(ctx aws.Context, input *DescribeLabelingJobInput, opts ...request.Option) (*DescribeLabelingJobOutput, error) {
- req, out := c.DescribeLabelingJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeModel = "DescribeModel"
- // DescribeModelRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeModel operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeModel for more information on using the DescribeModel
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeModelRequest method.
- // req, resp := client.DescribeModelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel
- func (c *SageMaker) DescribeModelRequest(input *DescribeModelInput) (req *request.Request, output *DescribeModelOutput) {
- op := &request.Operation{
- Name: opDescribeModel,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeModelInput{}
- }
- output = &DescribeModelOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeModel API operation for Amazon SageMaker Service.
- //
- // Describes a model that you created using the CreateModel API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeModel for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel
- func (c *SageMaker) DescribeModel(input *DescribeModelInput) (*DescribeModelOutput, error) {
- req, out := c.DescribeModelRequest(input)
- return out, req.Send()
- }
- // DescribeModelWithContext is the same as DescribeModel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeModel for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeModelWithContext(ctx aws.Context, input *DescribeModelInput, opts ...request.Option) (*DescribeModelOutput, error) {
- req, out := c.DescribeModelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeModelPackage = "DescribeModelPackage"
- // DescribeModelPackageRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeModelPackage operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeModelPackage for more information on using the DescribeModelPackage
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeModelPackageRequest method.
- // req, resp := client.DescribeModelPackageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage
- func (c *SageMaker) DescribeModelPackageRequest(input *DescribeModelPackageInput) (req *request.Request, output *DescribeModelPackageOutput) {
- op := &request.Operation{
- Name: opDescribeModelPackage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeModelPackageInput{}
- }
- output = &DescribeModelPackageOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeModelPackage API operation for Amazon SageMaker Service.
- //
- // Returns a description of the specified model package, which is used to create
- // Amazon SageMaker models or list them on AWS Marketplace.
- //
- // To create models in Amazon SageMaker, buyers can subscribe to model packages
- // listed on AWS Marketplace.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeModelPackage for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage
- func (c *SageMaker) DescribeModelPackage(input *DescribeModelPackageInput) (*DescribeModelPackageOutput, error) {
- req, out := c.DescribeModelPackageRequest(input)
- return out, req.Send()
- }
- // DescribeModelPackageWithContext is the same as DescribeModelPackage with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeModelPackage for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeModelPackageWithContext(ctx aws.Context, input *DescribeModelPackageInput, opts ...request.Option) (*DescribeModelPackageOutput, error) {
- req, out := c.DescribeModelPackageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeNotebookInstance = "DescribeNotebookInstance"
- // DescribeNotebookInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeNotebookInstance operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeNotebookInstance for more information on using the DescribeNotebookInstance
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeNotebookInstanceRequest method.
- // req, resp := client.DescribeNotebookInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance
- func (c *SageMaker) DescribeNotebookInstanceRequest(input *DescribeNotebookInstanceInput) (req *request.Request, output *DescribeNotebookInstanceOutput) {
- op := &request.Operation{
- Name: opDescribeNotebookInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeNotebookInstanceInput{}
- }
- output = &DescribeNotebookInstanceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeNotebookInstance API operation for Amazon SageMaker Service.
- //
- // Returns information about a notebook instance.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeNotebookInstance for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance
- func (c *SageMaker) DescribeNotebookInstance(input *DescribeNotebookInstanceInput) (*DescribeNotebookInstanceOutput, error) {
- req, out := c.DescribeNotebookInstanceRequest(input)
- return out, req.Send()
- }
- // DescribeNotebookInstanceWithContext is the same as DescribeNotebookInstance with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeNotebookInstance for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeNotebookInstanceWithContext(ctx aws.Context, input *DescribeNotebookInstanceInput, opts ...request.Option) (*DescribeNotebookInstanceOutput, error) {
- req, out := c.DescribeNotebookInstanceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeNotebookInstanceLifecycleConfig = "DescribeNotebookInstanceLifecycleConfig"
- // DescribeNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeNotebookInstanceLifecycleConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeNotebookInstanceLifecycleConfig for more information on using the DescribeNotebookInstanceLifecycleConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeNotebookInstanceLifecycleConfigRequest method.
- // req, resp := client.DescribeNotebookInstanceLifecycleConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig
- func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigRequest(input *DescribeNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DescribeNotebookInstanceLifecycleConfigOutput) {
- op := &request.Operation{
- Name: opDescribeNotebookInstanceLifecycleConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeNotebookInstanceLifecycleConfigInput{}
- }
- output = &DescribeNotebookInstanceLifecycleConfigOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
- //
- // Returns a description of a notebook instance lifecycle configuration.
- //
- // For information about notebook instance lifestyle configurations, see Step
- // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeNotebookInstanceLifecycleConfig for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig
- func (c *SageMaker) DescribeNotebookInstanceLifecycleConfig(input *DescribeNotebookInstanceLifecycleConfigInput) (*DescribeNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input)
- return out, req.Send()
- }
- // DescribeNotebookInstanceLifecycleConfigWithContext is the same as DescribeNotebookInstanceLifecycleConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeNotebookInstanceLifecycleConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DescribeNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DescribeNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeSubscribedWorkteam = "DescribeSubscribedWorkteam"
- // DescribeSubscribedWorkteamRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSubscribedWorkteam operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeSubscribedWorkteam for more information on using the DescribeSubscribedWorkteam
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeSubscribedWorkteamRequest method.
- // req, resp := client.DescribeSubscribedWorkteamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam
- func (c *SageMaker) DescribeSubscribedWorkteamRequest(input *DescribeSubscribedWorkteamInput) (req *request.Request, output *DescribeSubscribedWorkteamOutput) {
- op := &request.Operation{
- Name: opDescribeSubscribedWorkteam,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeSubscribedWorkteamInput{}
- }
- output = &DescribeSubscribedWorkteamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeSubscribedWorkteam API operation for Amazon SageMaker Service.
- //
- // Gets information about a work team provided by a vendor. It returns details
- // about the subscription with a vendor in the AWS Marketplace.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeSubscribedWorkteam for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam
- func (c *SageMaker) DescribeSubscribedWorkteam(input *DescribeSubscribedWorkteamInput) (*DescribeSubscribedWorkteamOutput, error) {
- req, out := c.DescribeSubscribedWorkteamRequest(input)
- return out, req.Send()
- }
- // DescribeSubscribedWorkteamWithContext is the same as DescribeSubscribedWorkteam with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeSubscribedWorkteam for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeSubscribedWorkteamWithContext(ctx aws.Context, input *DescribeSubscribedWorkteamInput, opts ...request.Option) (*DescribeSubscribedWorkteamOutput, error) {
- req, out := c.DescribeSubscribedWorkteamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeTrainingJob = "DescribeTrainingJob"
- // DescribeTrainingJobRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTrainingJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTrainingJob for more information on using the DescribeTrainingJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTrainingJobRequest method.
- // req, resp := client.DescribeTrainingJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob
- func (c *SageMaker) DescribeTrainingJobRequest(input *DescribeTrainingJobInput) (req *request.Request, output *DescribeTrainingJobOutput) {
- op := &request.Operation{
- Name: opDescribeTrainingJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTrainingJobInput{}
- }
- output = &DescribeTrainingJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTrainingJob API operation for Amazon SageMaker Service.
- //
- // Returns information about a training job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeTrainingJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob
- func (c *SageMaker) DescribeTrainingJob(input *DescribeTrainingJobInput) (*DescribeTrainingJobOutput, error) {
- req, out := c.DescribeTrainingJobRequest(input)
- return out, req.Send()
- }
- // DescribeTrainingJobWithContext is the same as DescribeTrainingJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTrainingJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeTrainingJobWithContext(ctx aws.Context, input *DescribeTrainingJobInput, opts ...request.Option) (*DescribeTrainingJobOutput, error) {
- req, out := c.DescribeTrainingJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeTransformJob = "DescribeTransformJob"
- // DescribeTransformJobRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTransformJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTransformJob for more information on using the DescribeTransformJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTransformJobRequest method.
- // req, resp := client.DescribeTransformJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob
- func (c *SageMaker) DescribeTransformJobRequest(input *DescribeTransformJobInput) (req *request.Request, output *DescribeTransformJobOutput) {
- op := &request.Operation{
- Name: opDescribeTransformJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTransformJobInput{}
- }
- output = &DescribeTransformJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTransformJob API operation for Amazon SageMaker Service.
- //
- // Returns information about a transform job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeTransformJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob
- func (c *SageMaker) DescribeTransformJob(input *DescribeTransformJobInput) (*DescribeTransformJobOutput, error) {
- req, out := c.DescribeTransformJobRequest(input)
- return out, req.Send()
- }
- // DescribeTransformJobWithContext is the same as DescribeTransformJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTransformJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeTransformJobWithContext(ctx aws.Context, input *DescribeTransformJobInput, opts ...request.Option) (*DescribeTransformJobOutput, error) {
- req, out := c.DescribeTransformJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeWorkteam = "DescribeWorkteam"
- // DescribeWorkteamRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeWorkteam operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeWorkteam for more information on using the DescribeWorkteam
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeWorkteamRequest method.
- // req, resp := client.DescribeWorkteamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam
- func (c *SageMaker) DescribeWorkteamRequest(input *DescribeWorkteamInput) (req *request.Request, output *DescribeWorkteamOutput) {
- op := &request.Operation{
- Name: opDescribeWorkteam,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeWorkteamInput{}
- }
- output = &DescribeWorkteamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeWorkteam API operation for Amazon SageMaker Service.
- //
- // Gets information about a specific work team. You can see information such
- // as the create date, the last updated date, membership information, and the
- // work team's Amazon Resource Name (ARN).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation DescribeWorkteam for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam
- func (c *SageMaker) DescribeWorkteam(input *DescribeWorkteamInput) (*DescribeWorkteamOutput, error) {
- req, out := c.DescribeWorkteamRequest(input)
- return out, req.Send()
- }
- // DescribeWorkteamWithContext is the same as DescribeWorkteam with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeWorkteam for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) DescribeWorkteamWithContext(ctx aws.Context, input *DescribeWorkteamInput, opts ...request.Option) (*DescribeWorkteamOutput, error) {
- req, out := c.DescribeWorkteamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetSearchSuggestions = "GetSearchSuggestions"
- // GetSearchSuggestionsRequest generates a "aws/request.Request" representing the
- // client's request for the GetSearchSuggestions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetSearchSuggestions for more information on using the GetSearchSuggestions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetSearchSuggestionsRequest method.
- // req, resp := client.GetSearchSuggestionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions
- func (c *SageMaker) GetSearchSuggestionsRequest(input *GetSearchSuggestionsInput) (req *request.Request, output *GetSearchSuggestionsOutput) {
- op := &request.Operation{
- Name: opGetSearchSuggestions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetSearchSuggestionsInput{}
- }
- output = &GetSearchSuggestionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetSearchSuggestions API operation for Amazon SageMaker Service.
- //
- // An auto-complete API for the search functionality in the Amazon SageMaker
- // console. It returns suggestions of possible matches for the property name
- // to use in Search queries. Provides suggestions for HyperParameters, Tags,
- // and Metrics.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation GetSearchSuggestions for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions
- func (c *SageMaker) GetSearchSuggestions(input *GetSearchSuggestionsInput) (*GetSearchSuggestionsOutput, error) {
- req, out := c.GetSearchSuggestionsRequest(input)
- return out, req.Send()
- }
- // GetSearchSuggestionsWithContext is the same as GetSearchSuggestions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetSearchSuggestions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) GetSearchSuggestionsWithContext(ctx aws.Context, input *GetSearchSuggestionsInput, opts ...request.Option) (*GetSearchSuggestionsOutput, error) {
- req, out := c.GetSearchSuggestionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAlgorithms = "ListAlgorithms"
- // ListAlgorithmsRequest generates a "aws/request.Request" representing the
- // client's request for the ListAlgorithms operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListAlgorithms for more information on using the ListAlgorithms
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListAlgorithmsRequest method.
- // req, resp := client.ListAlgorithmsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms
- func (c *SageMaker) ListAlgorithmsRequest(input *ListAlgorithmsInput) (req *request.Request, output *ListAlgorithmsOutput) {
- op := &request.Operation{
- Name: opListAlgorithms,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListAlgorithmsInput{}
- }
- output = &ListAlgorithmsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListAlgorithms API operation for Amazon SageMaker Service.
- //
- // Lists the machine learning algorithms that have been created.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListAlgorithms for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms
- func (c *SageMaker) ListAlgorithms(input *ListAlgorithmsInput) (*ListAlgorithmsOutput, error) {
- req, out := c.ListAlgorithmsRequest(input)
- return out, req.Send()
- }
- // ListAlgorithmsWithContext is the same as ListAlgorithms with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAlgorithms for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListAlgorithmsWithContext(ctx aws.Context, input *ListAlgorithmsInput, opts ...request.Option) (*ListAlgorithmsOutput, error) {
- req, out := c.ListAlgorithmsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListCodeRepositories = "ListCodeRepositories"
- // ListCodeRepositoriesRequest generates a "aws/request.Request" representing the
- // client's request for the ListCodeRepositories operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListCodeRepositories for more information on using the ListCodeRepositories
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListCodeRepositoriesRequest method.
- // req, resp := client.ListCodeRepositoriesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories
- func (c *SageMaker) ListCodeRepositoriesRequest(input *ListCodeRepositoriesInput) (req *request.Request, output *ListCodeRepositoriesOutput) {
- op := &request.Operation{
- Name: opListCodeRepositories,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListCodeRepositoriesInput{}
- }
- output = &ListCodeRepositoriesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListCodeRepositories API operation for Amazon SageMaker Service.
- //
- // Gets a list of the Git repositories in your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListCodeRepositories for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories
- func (c *SageMaker) ListCodeRepositories(input *ListCodeRepositoriesInput) (*ListCodeRepositoriesOutput, error) {
- req, out := c.ListCodeRepositoriesRequest(input)
- return out, req.Send()
- }
- // ListCodeRepositoriesWithContext is the same as ListCodeRepositories with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListCodeRepositories for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListCodeRepositoriesWithContext(ctx aws.Context, input *ListCodeRepositoriesInput, opts ...request.Option) (*ListCodeRepositoriesOutput, error) {
- req, out := c.ListCodeRepositoriesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListCompilationJobs = "ListCompilationJobs"
- // ListCompilationJobsRequest generates a "aws/request.Request" representing the
- // client's request for the ListCompilationJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListCompilationJobs for more information on using the ListCompilationJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListCompilationJobsRequest method.
- // req, resp := client.ListCompilationJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs
- func (c *SageMaker) ListCompilationJobsRequest(input *ListCompilationJobsInput) (req *request.Request, output *ListCompilationJobsOutput) {
- op := &request.Operation{
- Name: opListCompilationJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListCompilationJobsInput{}
- }
- output = &ListCompilationJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListCompilationJobs API operation for Amazon SageMaker Service.
- //
- // Lists model compilation jobs that satisfy various filters.
- //
- // To create a model compilation job, use CreateCompilationJob. To get information
- // about a particular model compilation job you have created, use DescribeCompilationJob.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListCompilationJobs for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs
- func (c *SageMaker) ListCompilationJobs(input *ListCompilationJobsInput) (*ListCompilationJobsOutput, error) {
- req, out := c.ListCompilationJobsRequest(input)
- return out, req.Send()
- }
- // ListCompilationJobsWithContext is the same as ListCompilationJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListCompilationJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListCompilationJobsWithContext(ctx aws.Context, input *ListCompilationJobsInput, opts ...request.Option) (*ListCompilationJobsOutput, error) {
- req, out := c.ListCompilationJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListCompilationJobsPages iterates over the pages of a ListCompilationJobs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListCompilationJobs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListCompilationJobs operation.
- // pageNum := 0
- // err := client.ListCompilationJobsPages(params,
- // func(page *ListCompilationJobsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListCompilationJobsPages(input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool) error {
- return c.ListCompilationJobsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListCompilationJobsPagesWithContext same as ListCompilationJobsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListCompilationJobsPagesWithContext(ctx aws.Context, input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListCompilationJobsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListCompilationJobsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListCompilationJobsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListEndpointConfigs = "ListEndpointConfigs"
- // ListEndpointConfigsRequest generates a "aws/request.Request" representing the
- // client's request for the ListEndpointConfigs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListEndpointConfigs for more information on using the ListEndpointConfigs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListEndpointConfigsRequest method.
- // req, resp := client.ListEndpointConfigsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs
- func (c *SageMaker) ListEndpointConfigsRequest(input *ListEndpointConfigsInput) (req *request.Request, output *ListEndpointConfigsOutput) {
- op := &request.Operation{
- Name: opListEndpointConfigs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListEndpointConfigsInput{}
- }
- output = &ListEndpointConfigsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListEndpointConfigs API operation for Amazon SageMaker Service.
- //
- // Lists endpoint configurations.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListEndpointConfigs for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs
- func (c *SageMaker) ListEndpointConfigs(input *ListEndpointConfigsInput) (*ListEndpointConfigsOutput, error) {
- req, out := c.ListEndpointConfigsRequest(input)
- return out, req.Send()
- }
- // ListEndpointConfigsWithContext is the same as ListEndpointConfigs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListEndpointConfigs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListEndpointConfigsWithContext(ctx aws.Context, input *ListEndpointConfigsInput, opts ...request.Option) (*ListEndpointConfigsOutput, error) {
- req, out := c.ListEndpointConfigsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListEndpointConfigsPages iterates over the pages of a ListEndpointConfigs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListEndpointConfigs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListEndpointConfigs operation.
- // pageNum := 0
- // err := client.ListEndpointConfigsPages(params,
- // func(page *ListEndpointConfigsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListEndpointConfigsPages(input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool) error {
- return c.ListEndpointConfigsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListEndpointConfigsPagesWithContext same as ListEndpointConfigsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListEndpointConfigsPagesWithContext(ctx aws.Context, input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListEndpointConfigsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListEndpointConfigsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListEndpointConfigsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListEndpoints = "ListEndpoints"
- // ListEndpointsRequest generates a "aws/request.Request" representing the
- // client's request for the ListEndpoints operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListEndpoints for more information on using the ListEndpoints
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListEndpointsRequest method.
- // req, resp := client.ListEndpointsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints
- func (c *SageMaker) ListEndpointsRequest(input *ListEndpointsInput) (req *request.Request, output *ListEndpointsOutput) {
- op := &request.Operation{
- Name: opListEndpoints,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListEndpointsInput{}
- }
- output = &ListEndpointsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListEndpoints API operation for Amazon SageMaker Service.
- //
- // Lists endpoints.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListEndpoints for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints
- func (c *SageMaker) ListEndpoints(input *ListEndpointsInput) (*ListEndpointsOutput, error) {
- req, out := c.ListEndpointsRequest(input)
- return out, req.Send()
- }
- // ListEndpointsWithContext is the same as ListEndpoints with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListEndpoints for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListEndpointsWithContext(ctx aws.Context, input *ListEndpointsInput, opts ...request.Option) (*ListEndpointsOutput, error) {
- req, out := c.ListEndpointsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListEndpointsPages iterates over the pages of a ListEndpoints operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListEndpoints method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListEndpoints operation.
- // pageNum := 0
- // err := client.ListEndpointsPages(params,
- // func(page *ListEndpointsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListEndpointsPages(input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool) error {
- return c.ListEndpointsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListEndpointsPagesWithContext same as ListEndpointsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListEndpointsPagesWithContext(ctx aws.Context, input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListEndpointsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListEndpointsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListEndpointsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListHyperParameterTuningJobs = "ListHyperParameterTuningJobs"
- // ListHyperParameterTuningJobsRequest generates a "aws/request.Request" representing the
- // client's request for the ListHyperParameterTuningJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListHyperParameterTuningJobs for more information on using the ListHyperParameterTuningJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListHyperParameterTuningJobsRequest method.
- // req, resp := client.ListHyperParameterTuningJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs
- func (c *SageMaker) ListHyperParameterTuningJobsRequest(input *ListHyperParameterTuningJobsInput) (req *request.Request, output *ListHyperParameterTuningJobsOutput) {
- op := &request.Operation{
- Name: opListHyperParameterTuningJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListHyperParameterTuningJobsInput{}
- }
- output = &ListHyperParameterTuningJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListHyperParameterTuningJobs API operation for Amazon SageMaker Service.
- //
- // Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter
- // tuning jobs launched in your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListHyperParameterTuningJobs for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs
- func (c *SageMaker) ListHyperParameterTuningJobs(input *ListHyperParameterTuningJobsInput) (*ListHyperParameterTuningJobsOutput, error) {
- req, out := c.ListHyperParameterTuningJobsRequest(input)
- return out, req.Send()
- }
- // ListHyperParameterTuningJobsWithContext is the same as ListHyperParameterTuningJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListHyperParameterTuningJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListHyperParameterTuningJobsWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, opts ...request.Option) (*ListHyperParameterTuningJobsOutput, error) {
- req, out := c.ListHyperParameterTuningJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListHyperParameterTuningJobsPages iterates over the pages of a ListHyperParameterTuningJobs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListHyperParameterTuningJobs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListHyperParameterTuningJobs operation.
- // pageNum := 0
- // err := client.ListHyperParameterTuningJobsPages(params,
- // func(page *ListHyperParameterTuningJobsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListHyperParameterTuningJobsPages(input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool) error {
- return c.ListHyperParameterTuningJobsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListHyperParameterTuningJobsPagesWithContext same as ListHyperParameterTuningJobsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListHyperParameterTuningJobsPagesWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListHyperParameterTuningJobsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListHyperParameterTuningJobsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListHyperParameterTuningJobsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListLabelingJobs = "ListLabelingJobs"
- // ListLabelingJobsRequest generates a "aws/request.Request" representing the
- // client's request for the ListLabelingJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListLabelingJobs for more information on using the ListLabelingJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListLabelingJobsRequest method.
- // req, resp := client.ListLabelingJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs
- func (c *SageMaker) ListLabelingJobsRequest(input *ListLabelingJobsInput) (req *request.Request, output *ListLabelingJobsOutput) {
- op := &request.Operation{
- Name: opListLabelingJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListLabelingJobsInput{}
- }
- output = &ListLabelingJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListLabelingJobs API operation for Amazon SageMaker Service.
- //
- // Gets a list of labeling jobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListLabelingJobs for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs
- func (c *SageMaker) ListLabelingJobs(input *ListLabelingJobsInput) (*ListLabelingJobsOutput, error) {
- req, out := c.ListLabelingJobsRequest(input)
- return out, req.Send()
- }
- // ListLabelingJobsWithContext is the same as ListLabelingJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListLabelingJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListLabelingJobsWithContext(ctx aws.Context, input *ListLabelingJobsInput, opts ...request.Option) (*ListLabelingJobsOutput, error) {
- req, out := c.ListLabelingJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListLabelingJobsPages iterates over the pages of a ListLabelingJobs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListLabelingJobs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListLabelingJobs operation.
- // pageNum := 0
- // err := client.ListLabelingJobsPages(params,
- // func(page *ListLabelingJobsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListLabelingJobsPages(input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool) error {
- return c.ListLabelingJobsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListLabelingJobsPagesWithContext same as ListLabelingJobsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListLabelingJobsPagesWithContext(ctx aws.Context, input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListLabelingJobsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListLabelingJobsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListLabelingJobsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListLabelingJobsForWorkteam = "ListLabelingJobsForWorkteam"
- // ListLabelingJobsForWorkteamRequest generates a "aws/request.Request" representing the
- // client's request for the ListLabelingJobsForWorkteam operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListLabelingJobsForWorkteam for more information on using the ListLabelingJobsForWorkteam
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListLabelingJobsForWorkteamRequest method.
- // req, resp := client.ListLabelingJobsForWorkteamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam
- func (c *SageMaker) ListLabelingJobsForWorkteamRequest(input *ListLabelingJobsForWorkteamInput) (req *request.Request, output *ListLabelingJobsForWorkteamOutput) {
- op := &request.Operation{
- Name: opListLabelingJobsForWorkteam,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListLabelingJobsForWorkteamInput{}
- }
- output = &ListLabelingJobsForWorkteamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListLabelingJobsForWorkteam API operation for Amazon SageMaker Service.
- //
- // Gets a list of labeling jobs assigned to a specified work team.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListLabelingJobsForWorkteam for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam
- func (c *SageMaker) ListLabelingJobsForWorkteam(input *ListLabelingJobsForWorkteamInput) (*ListLabelingJobsForWorkteamOutput, error) {
- req, out := c.ListLabelingJobsForWorkteamRequest(input)
- return out, req.Send()
- }
- // ListLabelingJobsForWorkteamWithContext is the same as ListLabelingJobsForWorkteam with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListLabelingJobsForWorkteam for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListLabelingJobsForWorkteamWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, opts ...request.Option) (*ListLabelingJobsForWorkteamOutput, error) {
- req, out := c.ListLabelingJobsForWorkteamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListLabelingJobsForWorkteamPages iterates over the pages of a ListLabelingJobsForWorkteam operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListLabelingJobsForWorkteam method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListLabelingJobsForWorkteam operation.
- // pageNum := 0
- // err := client.ListLabelingJobsForWorkteamPages(params,
- // func(page *ListLabelingJobsForWorkteamOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListLabelingJobsForWorkteamPages(input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool) error {
- return c.ListLabelingJobsForWorkteamPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListLabelingJobsForWorkteamPagesWithContext same as ListLabelingJobsForWorkteamPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListLabelingJobsForWorkteamPagesWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListLabelingJobsForWorkteamInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListLabelingJobsForWorkteamRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListLabelingJobsForWorkteamOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListModelPackages = "ListModelPackages"
- // ListModelPackagesRequest generates a "aws/request.Request" representing the
- // client's request for the ListModelPackages operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListModelPackages for more information on using the ListModelPackages
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListModelPackagesRequest method.
- // req, resp := client.ListModelPackagesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages
- func (c *SageMaker) ListModelPackagesRequest(input *ListModelPackagesInput) (req *request.Request, output *ListModelPackagesOutput) {
- op := &request.Operation{
- Name: opListModelPackages,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListModelPackagesInput{}
- }
- output = &ListModelPackagesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListModelPackages API operation for Amazon SageMaker Service.
- //
- // Lists the model packages that have been created.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListModelPackages for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages
- func (c *SageMaker) ListModelPackages(input *ListModelPackagesInput) (*ListModelPackagesOutput, error) {
- req, out := c.ListModelPackagesRequest(input)
- return out, req.Send()
- }
- // ListModelPackagesWithContext is the same as ListModelPackages with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListModelPackages for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListModelPackagesWithContext(ctx aws.Context, input *ListModelPackagesInput, opts ...request.Option) (*ListModelPackagesOutput, error) {
- req, out := c.ListModelPackagesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListModels = "ListModels"
- // ListModelsRequest generates a "aws/request.Request" representing the
- // client's request for the ListModels operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListModels for more information on using the ListModels
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListModelsRequest method.
- // req, resp := client.ListModelsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels
- func (c *SageMaker) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) {
- op := &request.Operation{
- Name: opListModels,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListModelsInput{}
- }
- output = &ListModelsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListModels API operation for Amazon SageMaker Service.
- //
- // Lists models created with the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html)
- // API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListModels for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels
- func (c *SageMaker) ListModels(input *ListModelsInput) (*ListModelsOutput, error) {
- req, out := c.ListModelsRequest(input)
- return out, req.Send()
- }
- // ListModelsWithContext is the same as ListModels with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListModels for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) {
- req, out := c.ListModelsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListModelsPages iterates over the pages of a ListModels operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListModels method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListModels operation.
- // pageNum := 0
- // err := client.ListModelsPages(params,
- // func(page *ListModelsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error {
- return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListModelsPagesWithContext same as ListModelsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListModelsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListModelsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListModelsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListNotebookInstanceLifecycleConfigs = "ListNotebookInstanceLifecycleConfigs"
- // ListNotebookInstanceLifecycleConfigsRequest generates a "aws/request.Request" representing the
- // client's request for the ListNotebookInstanceLifecycleConfigs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListNotebookInstanceLifecycleConfigs for more information on using the ListNotebookInstanceLifecycleConfigs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListNotebookInstanceLifecycleConfigsRequest method.
- // req, resp := client.ListNotebookInstanceLifecycleConfigsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs
- func (c *SageMaker) ListNotebookInstanceLifecycleConfigsRequest(input *ListNotebookInstanceLifecycleConfigsInput) (req *request.Request, output *ListNotebookInstanceLifecycleConfigsOutput) {
- op := &request.Operation{
- Name: opListNotebookInstanceLifecycleConfigs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListNotebookInstanceLifecycleConfigsInput{}
- }
- output = &ListNotebookInstanceLifecycleConfigsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListNotebookInstanceLifecycleConfigs API operation for Amazon SageMaker Service.
- //
- // Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig
- // API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListNotebookInstanceLifecycleConfigs for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs
- func (c *SageMaker) ListNotebookInstanceLifecycleConfigs(input *ListNotebookInstanceLifecycleConfigsInput) (*ListNotebookInstanceLifecycleConfigsOutput, error) {
- req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input)
- return out, req.Send()
- }
- // ListNotebookInstanceLifecycleConfigsWithContext is the same as ListNotebookInstanceLifecycleConfigs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListNotebookInstanceLifecycleConfigs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListNotebookInstanceLifecycleConfigsWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, opts ...request.Option) (*ListNotebookInstanceLifecycleConfigsOutput, error) {
- req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListNotebookInstanceLifecycleConfigsPages iterates over the pages of a ListNotebookInstanceLifecycleConfigs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListNotebookInstanceLifecycleConfigs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListNotebookInstanceLifecycleConfigs operation.
- // pageNum := 0
- // err := client.ListNotebookInstanceLifecycleConfigsPages(params,
- // func(page *ListNotebookInstanceLifecycleConfigsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPages(input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool) error {
- return c.ListNotebookInstanceLifecycleConfigsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListNotebookInstanceLifecycleConfigsPagesWithContext same as ListNotebookInstanceLifecycleConfigsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPagesWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListNotebookInstanceLifecycleConfigsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListNotebookInstanceLifecycleConfigsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListNotebookInstanceLifecycleConfigsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListNotebookInstances = "ListNotebookInstances"
- // ListNotebookInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the ListNotebookInstances operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListNotebookInstances for more information on using the ListNotebookInstances
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListNotebookInstancesRequest method.
- // req, resp := client.ListNotebookInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances
- func (c *SageMaker) ListNotebookInstancesRequest(input *ListNotebookInstancesInput) (req *request.Request, output *ListNotebookInstancesOutput) {
- op := &request.Operation{
- Name: opListNotebookInstances,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListNotebookInstancesInput{}
- }
- output = &ListNotebookInstancesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListNotebookInstances API operation for Amazon SageMaker Service.
- //
- // Returns a list of the Amazon SageMaker notebook instances in the requester's
- // account in an AWS Region.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListNotebookInstances for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances
- func (c *SageMaker) ListNotebookInstances(input *ListNotebookInstancesInput) (*ListNotebookInstancesOutput, error) {
- req, out := c.ListNotebookInstancesRequest(input)
- return out, req.Send()
- }
- // ListNotebookInstancesWithContext is the same as ListNotebookInstances with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListNotebookInstances for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListNotebookInstancesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, opts ...request.Option) (*ListNotebookInstancesOutput, error) {
- req, out := c.ListNotebookInstancesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListNotebookInstancesPages iterates over the pages of a ListNotebookInstances operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListNotebookInstances method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListNotebookInstances operation.
- // pageNum := 0
- // err := client.ListNotebookInstancesPages(params,
- // func(page *ListNotebookInstancesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListNotebookInstancesPages(input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool) error {
- return c.ListNotebookInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListNotebookInstancesPagesWithContext same as ListNotebookInstancesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListNotebookInstancesPagesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListNotebookInstancesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListNotebookInstancesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListNotebookInstancesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListSubscribedWorkteams = "ListSubscribedWorkteams"
- // ListSubscribedWorkteamsRequest generates a "aws/request.Request" representing the
- // client's request for the ListSubscribedWorkteams operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListSubscribedWorkteams for more information on using the ListSubscribedWorkteams
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListSubscribedWorkteamsRequest method.
- // req, resp := client.ListSubscribedWorkteamsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams
- func (c *SageMaker) ListSubscribedWorkteamsRequest(input *ListSubscribedWorkteamsInput) (req *request.Request, output *ListSubscribedWorkteamsOutput) {
- op := &request.Operation{
- Name: opListSubscribedWorkteams,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListSubscribedWorkteamsInput{}
- }
- output = &ListSubscribedWorkteamsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListSubscribedWorkteams API operation for Amazon SageMaker Service.
- //
- // Gets a list of the work teams that you are subscribed to in the AWS Marketplace.
- // The list may be empty if no work team satisfies the filter specified in the
- // NameContains parameter.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListSubscribedWorkteams for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams
- func (c *SageMaker) ListSubscribedWorkteams(input *ListSubscribedWorkteamsInput) (*ListSubscribedWorkteamsOutput, error) {
- req, out := c.ListSubscribedWorkteamsRequest(input)
- return out, req.Send()
- }
- // ListSubscribedWorkteamsWithContext is the same as ListSubscribedWorkteams with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListSubscribedWorkteams for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListSubscribedWorkteamsWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, opts ...request.Option) (*ListSubscribedWorkteamsOutput, error) {
- req, out := c.ListSubscribedWorkteamsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListSubscribedWorkteamsPages iterates over the pages of a ListSubscribedWorkteams operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListSubscribedWorkteams method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListSubscribedWorkteams operation.
- // pageNum := 0
- // err := client.ListSubscribedWorkteamsPages(params,
- // func(page *ListSubscribedWorkteamsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListSubscribedWorkteamsPages(input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool) error {
- return c.ListSubscribedWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListSubscribedWorkteamsPagesWithContext same as ListSubscribedWorkteamsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListSubscribedWorkteamsPagesWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListSubscribedWorkteamsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListSubscribedWorkteamsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListSubscribedWorkteamsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListTags = "ListTags"
- // ListTagsRequest generates a "aws/request.Request" representing the
- // client's request for the ListTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListTags for more information on using the ListTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListTagsRequest method.
- // req, resp := client.ListTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags
- func (c *SageMaker) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
- op := &request.Operation{
- Name: opListTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListTagsInput{}
- }
- output = &ListTagsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTags API operation for Amazon SageMaker Service.
- //
- // Returns the tags for the specified Amazon SageMaker resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListTags for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags
- func (c *SageMaker) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
- req, out := c.ListTagsRequest(input)
- return out, req.Send()
- }
- // ListTagsWithContext is the same as ListTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) {
- req, out := c.ListTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListTagsPages iterates over the pages of a ListTags operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListTags method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListTags operation.
- // pageNum := 0
- // err := client.ListTagsPages(params,
- // func(page *ListTagsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error {
- return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListTagsPagesWithContext same as ListTagsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListTagsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListTagsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListTrainingJobs = "ListTrainingJobs"
- // ListTrainingJobsRequest generates a "aws/request.Request" representing the
- // client's request for the ListTrainingJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListTrainingJobs for more information on using the ListTrainingJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListTrainingJobsRequest method.
- // req, resp := client.ListTrainingJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs
- func (c *SageMaker) ListTrainingJobsRequest(input *ListTrainingJobsInput) (req *request.Request, output *ListTrainingJobsOutput) {
- op := &request.Operation{
- Name: opListTrainingJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListTrainingJobsInput{}
- }
- output = &ListTrainingJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTrainingJobs API operation for Amazon SageMaker Service.
- //
- // Lists training jobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListTrainingJobs for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs
- func (c *SageMaker) ListTrainingJobs(input *ListTrainingJobsInput) (*ListTrainingJobsOutput, error) {
- req, out := c.ListTrainingJobsRequest(input)
- return out, req.Send()
- }
- // ListTrainingJobsWithContext is the same as ListTrainingJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTrainingJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTrainingJobsWithContext(ctx aws.Context, input *ListTrainingJobsInput, opts ...request.Option) (*ListTrainingJobsOutput, error) {
- req, out := c.ListTrainingJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListTrainingJobsPages iterates over the pages of a ListTrainingJobs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListTrainingJobs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListTrainingJobs operation.
- // pageNum := 0
- // err := client.ListTrainingJobsPages(params,
- // func(page *ListTrainingJobsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListTrainingJobsPages(input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool) error {
- return c.ListTrainingJobsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListTrainingJobsPagesWithContext same as ListTrainingJobsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTrainingJobsPagesWithContext(ctx aws.Context, input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListTrainingJobsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListTrainingJobsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListTrainingJobsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListTrainingJobsForHyperParameterTuningJob = "ListTrainingJobsForHyperParameterTuningJob"
- // ListTrainingJobsForHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
- // client's request for the ListTrainingJobsForHyperParameterTuningJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListTrainingJobsForHyperParameterTuningJob for more information on using the ListTrainingJobsForHyperParameterTuningJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListTrainingJobsForHyperParameterTuningJobRequest method.
- // req, resp := client.ListTrainingJobsForHyperParameterTuningJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob
- func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobRequest(input *ListTrainingJobsForHyperParameterTuningJobInput) (req *request.Request, output *ListTrainingJobsForHyperParameterTuningJobOutput) {
- op := &request.Operation{
- Name: opListTrainingJobsForHyperParameterTuningJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListTrainingJobsForHyperParameterTuningJobInput{}
- }
- output = &ListTrainingJobsForHyperParameterTuningJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTrainingJobsForHyperParameterTuningJob API operation for Amazon SageMaker Service.
- //
- // Gets a list of TrainingJobSummary objects that describe the training jobs
- // that a hyperparameter tuning job launched.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListTrainingJobsForHyperParameterTuningJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob
- func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJob(input *ListTrainingJobsForHyperParameterTuningJobInput) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) {
- req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input)
- return out, req.Send()
- }
- // ListTrainingJobsForHyperParameterTuningJobWithContext is the same as ListTrainingJobsForHyperParameterTuningJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTrainingJobsForHyperParameterTuningJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, opts ...request.Option) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) {
- req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListTrainingJobsForHyperParameterTuningJobPages iterates over the pages of a ListTrainingJobsForHyperParameterTuningJob operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListTrainingJobsForHyperParameterTuningJob method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListTrainingJobsForHyperParameterTuningJob operation.
- // pageNum := 0
- // err := client.ListTrainingJobsForHyperParameterTuningJobPages(params,
- // func(page *ListTrainingJobsForHyperParameterTuningJobOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPages(input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool) error {
- return c.ListTrainingJobsForHyperParameterTuningJobPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListTrainingJobsForHyperParameterTuningJobPagesWithContext same as ListTrainingJobsForHyperParameterTuningJobPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListTrainingJobsForHyperParameterTuningJobInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListTrainingJobsForHyperParameterTuningJobRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListTrainingJobsForHyperParameterTuningJobOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListTransformJobs = "ListTransformJobs"
- // ListTransformJobsRequest generates a "aws/request.Request" representing the
- // client's request for the ListTransformJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListTransformJobs for more information on using the ListTransformJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListTransformJobsRequest method.
- // req, resp := client.ListTransformJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs
- func (c *SageMaker) ListTransformJobsRequest(input *ListTransformJobsInput) (req *request.Request, output *ListTransformJobsOutput) {
- op := &request.Operation{
- Name: opListTransformJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListTransformJobsInput{}
- }
- output = &ListTransformJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTransformJobs API operation for Amazon SageMaker Service.
- //
- // Lists transform jobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListTransformJobs for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs
- func (c *SageMaker) ListTransformJobs(input *ListTransformJobsInput) (*ListTransformJobsOutput, error) {
- req, out := c.ListTransformJobsRequest(input)
- return out, req.Send()
- }
- // ListTransformJobsWithContext is the same as ListTransformJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTransformJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTransformJobsWithContext(ctx aws.Context, input *ListTransformJobsInput, opts ...request.Option) (*ListTransformJobsOutput, error) {
- req, out := c.ListTransformJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListTransformJobsPages iterates over the pages of a ListTransformJobs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListTransformJobs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListTransformJobs operation.
- // pageNum := 0
- // err := client.ListTransformJobsPages(params,
- // func(page *ListTransformJobsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListTransformJobsPages(input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool) error {
- return c.ListTransformJobsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListTransformJobsPagesWithContext same as ListTransformJobsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListTransformJobsPagesWithContext(ctx aws.Context, input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListTransformJobsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListTransformJobsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListTransformJobsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListWorkteams = "ListWorkteams"
- // ListWorkteamsRequest generates a "aws/request.Request" representing the
- // client's request for the ListWorkteams operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListWorkteams for more information on using the ListWorkteams
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListWorkteamsRequest method.
- // req, resp := client.ListWorkteamsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams
- func (c *SageMaker) ListWorkteamsRequest(input *ListWorkteamsInput) (req *request.Request, output *ListWorkteamsOutput) {
- op := &request.Operation{
- Name: opListWorkteams,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListWorkteamsInput{}
- }
- output = &ListWorkteamsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListWorkteams API operation for Amazon SageMaker Service.
- //
- // Gets a list of work teams that you have defined in a region. The list may
- // be empty if no work team satisfies the filter specified in the NameContains
- // parameter.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation ListWorkteams for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams
- func (c *SageMaker) ListWorkteams(input *ListWorkteamsInput) (*ListWorkteamsOutput, error) {
- req, out := c.ListWorkteamsRequest(input)
- return out, req.Send()
- }
- // ListWorkteamsWithContext is the same as ListWorkteams with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListWorkteams for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListWorkteamsWithContext(ctx aws.Context, input *ListWorkteamsInput, opts ...request.Option) (*ListWorkteamsOutput, error) {
- req, out := c.ListWorkteamsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListWorkteamsPages iterates over the pages of a ListWorkteams operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListWorkteams method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListWorkteams operation.
- // pageNum := 0
- // err := client.ListWorkteamsPages(params,
- // func(page *ListWorkteamsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) ListWorkteamsPages(input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool) error {
- return c.ListWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListWorkteamsPagesWithContext same as ListWorkteamsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) ListWorkteamsPagesWithContext(ctx aws.Context, input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListWorkteamsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListWorkteamsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListWorkteamsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opRenderUiTemplate = "RenderUiTemplate"
- // RenderUiTemplateRequest generates a "aws/request.Request" representing the
- // client's request for the RenderUiTemplate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RenderUiTemplate for more information on using the RenderUiTemplate
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RenderUiTemplateRequest method.
- // req, resp := client.RenderUiTemplateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate
- func (c *SageMaker) RenderUiTemplateRequest(input *RenderUiTemplateInput) (req *request.Request, output *RenderUiTemplateOutput) {
- op := &request.Operation{
- Name: opRenderUiTemplate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RenderUiTemplateInput{}
- }
- output = &RenderUiTemplateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RenderUiTemplate API operation for Amazon SageMaker Service.
- //
- // Renders the UI template so that you can preview the worker's experience.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation RenderUiTemplate for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate
- func (c *SageMaker) RenderUiTemplate(input *RenderUiTemplateInput) (*RenderUiTemplateOutput, error) {
- req, out := c.RenderUiTemplateRequest(input)
- return out, req.Send()
- }
- // RenderUiTemplateWithContext is the same as RenderUiTemplate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RenderUiTemplate for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) RenderUiTemplateWithContext(ctx aws.Context, input *RenderUiTemplateInput, opts ...request.Option) (*RenderUiTemplateOutput, error) {
- req, out := c.RenderUiTemplateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSearch = "Search"
- // SearchRequest generates a "aws/request.Request" representing the
- // client's request for the Search operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See Search for more information on using the Search
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SearchRequest method.
- // req, resp := client.SearchRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search
- func (c *SageMaker) SearchRequest(input *SearchInput) (req *request.Request, output *SearchOutput) {
- op := &request.Operation{
- Name: opSearch,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &SearchInput{}
- }
- output = &SearchOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // Search API operation for Amazon SageMaker Service.
- //
- // Finds Amazon SageMaker resources that match a search query. Matching resource
- // objects are returned as a list of SearchResult objects in the response. You
- // can sort the search results by any resource property in a ascending or descending
- // order.
- //
- // You can query against the following value types: numerical, text, Booleans,
- // and timestamps.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation Search for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search
- func (c *SageMaker) Search(input *SearchInput) (*SearchOutput, error) {
- req, out := c.SearchRequest(input)
- return out, req.Send()
- }
- // SearchWithContext is the same as Search with the addition of
- // the ability to pass a context and additional request options.
- //
- // See Search for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) SearchWithContext(ctx aws.Context, input *SearchInput, opts ...request.Option) (*SearchOutput, error) {
- req, out := c.SearchRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // SearchPages iterates over the pages of a Search operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See Search method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a Search operation.
- // pageNum := 0
- // err := client.SearchPages(params,
- // func(page *SearchOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SageMaker) SearchPages(input *SearchInput, fn func(*SearchOutput, bool) bool) error {
- return c.SearchPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // SearchPagesWithContext same as SearchPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) SearchPagesWithContext(ctx aws.Context, input *SearchInput, fn func(*SearchOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *SearchInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.SearchRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*SearchOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opStartNotebookInstance = "StartNotebookInstance"
- // StartNotebookInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the StartNotebookInstance operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartNotebookInstance for more information on using the StartNotebookInstance
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartNotebookInstanceRequest method.
- // req, resp := client.StartNotebookInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance
- func (c *SageMaker) StartNotebookInstanceRequest(input *StartNotebookInstanceInput) (req *request.Request, output *StartNotebookInstanceOutput) {
- op := &request.Operation{
- Name: opStartNotebookInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartNotebookInstanceInput{}
- }
- output = &StartNotebookInstanceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StartNotebookInstance API operation for Amazon SageMaker Service.
- //
- // Launches an ML compute instance with the latest version of the libraries
- // and attaches your ML storage volume. After configuring the notebook instance,
- // Amazon SageMaker sets the notebook instance status to InService. A notebook
- // instance's status must be InService before you can connect to your Jupyter
- // notebook.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation StartNotebookInstance for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance
- func (c *SageMaker) StartNotebookInstance(input *StartNotebookInstanceInput) (*StartNotebookInstanceOutput, error) {
- req, out := c.StartNotebookInstanceRequest(input)
- return out, req.Send()
- }
- // StartNotebookInstanceWithContext is the same as StartNotebookInstance with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartNotebookInstance for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) StartNotebookInstanceWithContext(ctx aws.Context, input *StartNotebookInstanceInput, opts ...request.Option) (*StartNotebookInstanceOutput, error) {
- req, out := c.StartNotebookInstanceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopCompilationJob = "StopCompilationJob"
- // StopCompilationJobRequest generates a "aws/request.Request" representing the
- // client's request for the StopCompilationJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopCompilationJob for more information on using the StopCompilationJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopCompilationJobRequest method.
- // req, resp := client.StopCompilationJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob
- func (c *SageMaker) StopCompilationJobRequest(input *StopCompilationJobInput) (req *request.Request, output *StopCompilationJobOutput) {
- op := &request.Operation{
- Name: opStopCompilationJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopCompilationJobInput{}
- }
- output = &StopCompilationJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopCompilationJob API operation for Amazon SageMaker Service.
- //
- // Stops a model compilation job.
- //
- // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This
- // gracefully shuts the job down. If the job hasn't stopped, it sends the SIGKILL
- // signal.
- //
- // When it receives a StopCompilationJob request, Amazon SageMaker changes the
- // CompilationJobSummary$CompilationJobStatus of the job to Stopping. After
- // Amazon SageMaker stops the job, it sets the CompilationJobSummary$CompilationJobStatus
- // to Stopped.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation StopCompilationJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob
- func (c *SageMaker) StopCompilationJob(input *StopCompilationJobInput) (*StopCompilationJobOutput, error) {
- req, out := c.StopCompilationJobRequest(input)
- return out, req.Send()
- }
- // StopCompilationJobWithContext is the same as StopCompilationJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopCompilationJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) StopCompilationJobWithContext(ctx aws.Context, input *StopCompilationJobInput, opts ...request.Option) (*StopCompilationJobOutput, error) {
- req, out := c.StopCompilationJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopHyperParameterTuningJob = "StopHyperParameterTuningJob"
- // StopHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
- // client's request for the StopHyperParameterTuningJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopHyperParameterTuningJob for more information on using the StopHyperParameterTuningJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopHyperParameterTuningJobRequest method.
- // req, resp := client.StopHyperParameterTuningJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob
- func (c *SageMaker) StopHyperParameterTuningJobRequest(input *StopHyperParameterTuningJobInput) (req *request.Request, output *StopHyperParameterTuningJobOutput) {
- op := &request.Operation{
- Name: opStopHyperParameterTuningJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopHyperParameterTuningJobInput{}
- }
- output = &StopHyperParameterTuningJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopHyperParameterTuningJob API operation for Amazon SageMaker Service.
- //
- // Stops a running hyperparameter tuning job and all running training jobs that
- // the tuning job launched.
- //
- // All model artifacts output from the training jobs are stored in Amazon Simple
- // Storage Service (Amazon S3). All data that the training jobs write to Amazon
- // CloudWatch Logs are still available in CloudWatch. After the tuning job moves
- // to the Stopped state, it releases all reserved resources for the tuning job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation StopHyperParameterTuningJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob
- func (c *SageMaker) StopHyperParameterTuningJob(input *StopHyperParameterTuningJobInput) (*StopHyperParameterTuningJobOutput, error) {
- req, out := c.StopHyperParameterTuningJobRequest(input)
- return out, req.Send()
- }
- // StopHyperParameterTuningJobWithContext is the same as StopHyperParameterTuningJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopHyperParameterTuningJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) StopHyperParameterTuningJobWithContext(ctx aws.Context, input *StopHyperParameterTuningJobInput, opts ...request.Option) (*StopHyperParameterTuningJobOutput, error) {
- req, out := c.StopHyperParameterTuningJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopLabelingJob = "StopLabelingJob"
- // StopLabelingJobRequest generates a "aws/request.Request" representing the
- // client's request for the StopLabelingJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopLabelingJob for more information on using the StopLabelingJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopLabelingJobRequest method.
- // req, resp := client.StopLabelingJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob
- func (c *SageMaker) StopLabelingJobRequest(input *StopLabelingJobInput) (req *request.Request, output *StopLabelingJobOutput) {
- op := &request.Operation{
- Name: opStopLabelingJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopLabelingJobInput{}
- }
- output = &StopLabelingJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopLabelingJob API operation for Amazon SageMaker Service.
- //
- // Stops a running labeling job. A job that is stopped cannot be restarted.
- // Any results obtained before the job is stopped are placed in the Amazon S3
- // output bucket.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation StopLabelingJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob
- func (c *SageMaker) StopLabelingJob(input *StopLabelingJobInput) (*StopLabelingJobOutput, error) {
- req, out := c.StopLabelingJobRequest(input)
- return out, req.Send()
- }
- // StopLabelingJobWithContext is the same as StopLabelingJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopLabelingJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) StopLabelingJobWithContext(ctx aws.Context, input *StopLabelingJobInput, opts ...request.Option) (*StopLabelingJobOutput, error) {
- req, out := c.StopLabelingJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopNotebookInstance = "StopNotebookInstance"
- // StopNotebookInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the StopNotebookInstance operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopNotebookInstance for more information on using the StopNotebookInstance
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopNotebookInstanceRequest method.
- // req, resp := client.StopNotebookInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance
- func (c *SageMaker) StopNotebookInstanceRequest(input *StopNotebookInstanceInput) (req *request.Request, output *StopNotebookInstanceOutput) {
- op := &request.Operation{
- Name: opStopNotebookInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopNotebookInstanceInput{}
- }
- output = &StopNotebookInstanceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopNotebookInstance API operation for Amazon SageMaker Service.
- //
- // Terminates the ML compute instance. Before terminating the instance, Amazon
- // SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves
- // the ML storage volume.
- //
- // To access data on the ML storage volume for a notebook instance that has
- // been terminated, call the StartNotebookInstance API. StartNotebookInstance
- // launches another ML compute instance, configures it, and attaches the preserved
- // ML storage volume so you can continue your work.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation StopNotebookInstance for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance
- func (c *SageMaker) StopNotebookInstance(input *StopNotebookInstanceInput) (*StopNotebookInstanceOutput, error) {
- req, out := c.StopNotebookInstanceRequest(input)
- return out, req.Send()
- }
- // StopNotebookInstanceWithContext is the same as StopNotebookInstance with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopNotebookInstance for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) StopNotebookInstanceWithContext(ctx aws.Context, input *StopNotebookInstanceInput, opts ...request.Option) (*StopNotebookInstanceOutput, error) {
- req, out := c.StopNotebookInstanceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopTrainingJob = "StopTrainingJob"
- // StopTrainingJobRequest generates a "aws/request.Request" representing the
- // client's request for the StopTrainingJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopTrainingJob for more information on using the StopTrainingJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopTrainingJobRequest method.
- // req, resp := client.StopTrainingJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob
- func (c *SageMaker) StopTrainingJobRequest(input *StopTrainingJobInput) (req *request.Request, output *StopTrainingJobOutput) {
- op := &request.Operation{
- Name: opStopTrainingJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopTrainingJobInput{}
- }
- output = &StopTrainingJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopTrainingJob API operation for Amazon SageMaker Service.
- //
- // Stops a training job. To stop a job, Amazon SageMaker sends the algorithm
- // the SIGTERM signal, which delays job termination for 120 seconds. Algorithms
- // might use this 120-second window to save the model artifacts, so the results
- // of the training is not lost.
- //
- // Training algorithms provided by Amazon SageMaker save the intermediate results
- // of a model training job. This intermediate data is a valid model artifact.
- // You can use the model artifacts that are saved when Amazon SageMaker stops
- // a training job to create a model.
- //
- // When it receives a StopTrainingJob request, Amazon SageMaker changes the
- // status of the job to Stopping. After Amazon SageMaker stops the job, it sets
- // the status to Stopped.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation StopTrainingJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob
- func (c *SageMaker) StopTrainingJob(input *StopTrainingJobInput) (*StopTrainingJobOutput, error) {
- req, out := c.StopTrainingJobRequest(input)
- return out, req.Send()
- }
- // StopTrainingJobWithContext is the same as StopTrainingJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopTrainingJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) StopTrainingJobWithContext(ctx aws.Context, input *StopTrainingJobInput, opts ...request.Option) (*StopTrainingJobOutput, error) {
- req, out := c.StopTrainingJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopTransformJob = "StopTransformJob"
- // StopTransformJobRequest generates a "aws/request.Request" representing the
- // client's request for the StopTransformJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopTransformJob for more information on using the StopTransformJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopTransformJobRequest method.
- // req, resp := client.StopTransformJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob
- func (c *SageMaker) StopTransformJobRequest(input *StopTransformJobInput) (req *request.Request, output *StopTransformJobOutput) {
- op := &request.Operation{
- Name: opStopTransformJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopTransformJobInput{}
- }
- output = &StopTransformJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopTransformJob API operation for Amazon SageMaker Service.
- //
- // Stops a transform job.
- //
- // When Amazon SageMaker receives a StopTransformJob request, the status of
- // the job changes to Stopping. After Amazon SageMaker stops the job, the status
- // is set to Stopped. When you stop a transform job before it is completed,
- // Amazon SageMaker doesn't store the job's output in Amazon S3.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation StopTransformJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFound "ResourceNotFound"
- // Resource being access is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob
- func (c *SageMaker) StopTransformJob(input *StopTransformJobInput) (*StopTransformJobOutput, error) {
- req, out := c.StopTransformJobRequest(input)
- return out, req.Send()
- }
- // StopTransformJobWithContext is the same as StopTransformJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopTransformJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) StopTransformJobWithContext(ctx aws.Context, input *StopTransformJobInput, opts ...request.Option) (*StopTransformJobOutput, error) {
- req, out := c.StopTransformJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateCodeRepository = "UpdateCodeRepository"
- // UpdateCodeRepositoryRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateCodeRepository operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateCodeRepository for more information on using the UpdateCodeRepository
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateCodeRepositoryRequest method.
- // req, resp := client.UpdateCodeRepositoryRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository
- func (c *SageMaker) UpdateCodeRepositoryRequest(input *UpdateCodeRepositoryInput) (req *request.Request, output *UpdateCodeRepositoryOutput) {
- op := &request.Operation{
- Name: opUpdateCodeRepository,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateCodeRepositoryInput{}
- }
- output = &UpdateCodeRepositoryOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateCodeRepository API operation for Amazon SageMaker Service.
- //
- // Updates the specified Git repository with the specified values.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation UpdateCodeRepository for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository
- func (c *SageMaker) UpdateCodeRepository(input *UpdateCodeRepositoryInput) (*UpdateCodeRepositoryOutput, error) {
- req, out := c.UpdateCodeRepositoryRequest(input)
- return out, req.Send()
- }
- // UpdateCodeRepositoryWithContext is the same as UpdateCodeRepository with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateCodeRepository for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) UpdateCodeRepositoryWithContext(ctx aws.Context, input *UpdateCodeRepositoryInput, opts ...request.Option) (*UpdateCodeRepositoryOutput, error) {
- req, out := c.UpdateCodeRepositoryRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateEndpoint = "UpdateEndpoint"
- // UpdateEndpointRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateEndpoint operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateEndpoint for more information on using the UpdateEndpoint
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateEndpointRequest method.
- // req, resp := client.UpdateEndpointRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint
- func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) {
- op := &request.Operation{
- Name: opUpdateEndpoint,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateEndpointInput{}
- }
- output = &UpdateEndpointOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateEndpoint API operation for Amazon SageMaker Service.
- //
- // Deploys the new EndpointConfig specified in the request, switches to using
- // newly created endpoint, and then deletes resources provisioned for the endpoint
- // using the previous EndpointConfig (there is no availability loss).
- //
- // When Amazon SageMaker receives the request, it sets the endpoint status to
- // Updating. After updating the endpoint, it sets the status to InService. To
- // check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
- // API.
- //
- // You cannot update an endpoint with the current EndpointConfig. To update
- // an endpoint, you must create a new EndpointConfig.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation UpdateEndpoint for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint
- func (c *SageMaker) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) {
- req, out := c.UpdateEndpointRequest(input)
- return out, req.Send()
- }
- // UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateEndpoint for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) {
- req, out := c.UpdateEndpointRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateEndpointWeightsAndCapacities = "UpdateEndpointWeightsAndCapacities"
- // UpdateEndpointWeightsAndCapacitiesRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateEndpointWeightsAndCapacities operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateEndpointWeightsAndCapacities for more information on using the UpdateEndpointWeightsAndCapacities
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateEndpointWeightsAndCapacitiesRequest method.
- // req, resp := client.UpdateEndpointWeightsAndCapacitiesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities
- func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpointWeightsAndCapacitiesInput) (req *request.Request, output *UpdateEndpointWeightsAndCapacitiesOutput) {
- op := &request.Operation{
- Name: opUpdateEndpointWeightsAndCapacities,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateEndpointWeightsAndCapacitiesInput{}
- }
- output = &UpdateEndpointWeightsAndCapacitiesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateEndpointWeightsAndCapacities API operation for Amazon SageMaker Service.
- //
- // Updates variant weight of one or more variants associated with an existing
- // endpoint, or capacity of one variant associated with an existing endpoint.
- // When it receives the request, Amazon SageMaker sets the endpoint status to
- // Updating. After updating the endpoint, it sets the status to InService. To
- // check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
- // API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation UpdateEndpointWeightsAndCapacities for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities
- func (c *SageMaker) UpdateEndpointWeightsAndCapacities(input *UpdateEndpointWeightsAndCapacitiesInput) (*UpdateEndpointWeightsAndCapacitiesOutput, error) {
- req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input)
- return out, req.Send()
- }
- // UpdateEndpointWeightsAndCapacitiesWithContext is the same as UpdateEndpointWeightsAndCapacities with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateEndpointWeightsAndCapacities for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesWithContext(ctx aws.Context, input *UpdateEndpointWeightsAndCapacitiesInput, opts ...request.Option) (*UpdateEndpointWeightsAndCapacitiesOutput, error) {
- req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateNotebookInstance = "UpdateNotebookInstance"
- // UpdateNotebookInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateNotebookInstance operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateNotebookInstance for more information on using the UpdateNotebookInstance
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateNotebookInstanceRequest method.
- // req, resp := client.UpdateNotebookInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance
- func (c *SageMaker) UpdateNotebookInstanceRequest(input *UpdateNotebookInstanceInput) (req *request.Request, output *UpdateNotebookInstanceOutput) {
- op := &request.Operation{
- Name: opUpdateNotebookInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateNotebookInstanceInput{}
- }
- output = &UpdateNotebookInstanceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateNotebookInstance API operation for Amazon SageMaker Service.
- //
- // Updates a notebook instance. NotebookInstance updates include upgrading or
- // downgrading the ML compute instance used for your notebook instance to accommodate
- // changes in your workload requirements. You can also update the VPC security
- // groups.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation UpdateNotebookInstance for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance
- func (c *SageMaker) UpdateNotebookInstance(input *UpdateNotebookInstanceInput) (*UpdateNotebookInstanceOutput, error) {
- req, out := c.UpdateNotebookInstanceRequest(input)
- return out, req.Send()
- }
- // UpdateNotebookInstanceWithContext is the same as UpdateNotebookInstance with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateNotebookInstance for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) UpdateNotebookInstanceWithContext(ctx aws.Context, input *UpdateNotebookInstanceInput, opts ...request.Option) (*UpdateNotebookInstanceOutput, error) {
- req, out := c.UpdateNotebookInstanceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateNotebookInstanceLifecycleConfig = "UpdateNotebookInstanceLifecycleConfig"
- // UpdateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateNotebookInstanceLifecycleConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateNotebookInstanceLifecycleConfig for more information on using the UpdateNotebookInstanceLifecycleConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateNotebookInstanceLifecycleConfigRequest method.
- // req, resp := client.UpdateNotebookInstanceLifecycleConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig
- func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigRequest(input *UpdateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *UpdateNotebookInstanceLifecycleConfigOutput) {
- op := &request.Operation{
- Name: opUpdateNotebookInstanceLifecycleConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateNotebookInstanceLifecycleConfigInput{}
- }
- output = &UpdateNotebookInstanceLifecycleConfigOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
- //
- // Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig
- // API.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation UpdateNotebookInstanceLifecycleConfig for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig
- func (c *SageMaker) UpdateNotebookInstanceLifecycleConfig(input *UpdateNotebookInstanceLifecycleConfigInput) (*UpdateNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input)
- return out, req.Send()
- }
- // UpdateNotebookInstanceLifecycleConfigWithContext is the same as UpdateNotebookInstanceLifecycleConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateNotebookInstanceLifecycleConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *UpdateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*UpdateNotebookInstanceLifecycleConfigOutput, error) {
- req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateWorkteam = "UpdateWorkteam"
- // UpdateWorkteamRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateWorkteam operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateWorkteam for more information on using the UpdateWorkteam
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateWorkteamRequest method.
- // req, resp := client.UpdateWorkteamRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam
- func (c *SageMaker) UpdateWorkteamRequest(input *UpdateWorkteamInput) (req *request.Request, output *UpdateWorkteamOutput) {
- op := &request.Operation{
- Name: opUpdateWorkteam,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateWorkteamInput{}
- }
- output = &UpdateWorkteamOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateWorkteam API operation for Amazon SageMaker Service.
- //
- // Updates an existing work team with new member definitions or description.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon SageMaker Service's
- // API operation UpdateWorkteam for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
- // You have exceeded an Amazon SageMaker resource limit. For example, you might
- // have too many training jobs created.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam
- func (c *SageMaker) UpdateWorkteam(input *UpdateWorkteamInput) (*UpdateWorkteamOutput, error) {
- req, out := c.UpdateWorkteamRequest(input)
- return out, req.Send()
- }
- // UpdateWorkteamWithContext is the same as UpdateWorkteam with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateWorkteam for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SageMaker) UpdateWorkteamWithContext(ctx aws.Context, input *UpdateWorkteamInput, opts ...request.Option) (*UpdateWorkteamOutput, error) {
- req, out := c.UpdateWorkteamRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- type AddTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource that you want to tag.
- //
- // ResourceArn is a required field
- ResourceArn *string `type:"string" required:"true"`
- // An array of Tag objects. Each tag is a key-value pair. Only the key parameter
- // is required. If you don't specify a value, Amazon SageMaker sets the value
- // to an empty string.
- //
- // Tags is a required field
- Tags []*Tag `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *AddTagsInput) SetResourceArn(v string) *AddTagsInput {
- s.ResourceArn = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
- s.Tags = v
- return s
- }
- type AddTagsOutput struct {
- _ struct{} `type:"structure"`
- // A list of tags associated with the Amazon SageMaker resource.
- Tags []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s AddTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsOutput) GoString() string {
- return s.String()
- }
- // SetTags sets the Tags field's value.
- func (s *AddTagsOutput) SetTags(v []*Tag) *AddTagsOutput {
- s.Tags = v
- return s
- }
- // Specifies the training algorithm to use in a CreateTrainingJob (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html)
- // request.
- //
- // For more information about algorithms provided by Amazon SageMaker, see Algorithms
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). For information
- // about using your own algorithms, see Using Your Own Algorithms with Amazon
- // SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html).
- type AlgorithmSpecification struct {
- _ struct{} `type:"structure"`
- // The name of the algorithm resource to use for the training job. This must
- // be an algorithm resource that you created or subscribe to on AWS Marketplace.
- // If you specify a value for this parameter, you can't specify a value for
- // TrainingImage.
- AlgorithmName *string `min:"1" type:"string"`
- // A list of metric definition objects. Each object specifies the metric name
- // and regular expressions used to parse algorithm logs. Amazon SageMaker publishes
- // each metric to Amazon CloudWatch.
- MetricDefinitions []*MetricDefinition `type:"list"`
- // The registry path of the Docker image that contains the training algorithm.
- // For information about docker registry paths for built-in algorithms, see
- // Algorithms Provided by Amazon SageMaker: Common Parameters (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html).
- TrainingImage *string `type:"string"`
- // The input mode that the algorithm supports. For the input modes that Amazon
- // SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
- // If an algorithm supports the File input mode, Amazon SageMaker downloads
- // the training data from S3 to the provisioned ML storage Volume, and mounts
- // the directory to docker volume for training container. If an algorithm supports
- // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the
- // container.
- //
- // In File mode, make sure you provision ML storage volume with sufficient capacity
- // to accommodate the data download from S3. In addition to the training data,
- // the ML storage volume also stores the output model. The algorithm container
- // use ML storage volume to also store intermediate information, if any.
- //
- // For distributed algorithms using File mode, training data is distributed
- // uniformly, and your training duration is predictable if the input data objects
- // size is approximately same. Amazon SageMaker does not split the files any
- // further for model training. If the object sizes are skewed, training won't
- // be optimal as the data distribution is also skewed where one host in a training
- // cluster is overloaded, thus becoming bottleneck in training.
- //
- // TrainingInputMode is a required field
- TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"`
- }
- // String returns the string representation
- func (s AlgorithmSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlgorithmSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AlgorithmSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AlgorithmSpecification"}
- if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
- }
- if s.TrainingInputMode == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingInputMode"))
- }
- if s.MetricDefinitions != nil {
- for i, v := range s.MetricDefinitions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *AlgorithmSpecification) SetAlgorithmName(v string) *AlgorithmSpecification {
- s.AlgorithmName = &v
- return s
- }
- // SetMetricDefinitions sets the MetricDefinitions field's value.
- func (s *AlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *AlgorithmSpecification {
- s.MetricDefinitions = v
- return s
- }
- // SetTrainingImage sets the TrainingImage field's value.
- func (s *AlgorithmSpecification) SetTrainingImage(v string) *AlgorithmSpecification {
- s.TrainingImage = &v
- return s
- }
- // SetTrainingInputMode sets the TrainingInputMode field's value.
- func (s *AlgorithmSpecification) SetTrainingInputMode(v string) *AlgorithmSpecification {
- s.TrainingInputMode = &v
- return s
- }
- // Specifies the validation and image scan statuses of the algorithm.
- type AlgorithmStatusDetails struct {
- _ struct{} `type:"structure"`
- // The status of the scan of the algorithm's Docker image container.
- ImageScanStatuses []*AlgorithmStatusItem `type:"list"`
- // The status of algorithm validation.
- ValidationStatuses []*AlgorithmStatusItem `type:"list"`
- }
- // String returns the string representation
- func (s AlgorithmStatusDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlgorithmStatusDetails) GoString() string {
- return s.String()
- }
- // SetImageScanStatuses sets the ImageScanStatuses field's value.
- func (s *AlgorithmStatusDetails) SetImageScanStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails {
- s.ImageScanStatuses = v
- return s
- }
- // SetValidationStatuses sets the ValidationStatuses field's value.
- func (s *AlgorithmStatusDetails) SetValidationStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails {
- s.ValidationStatuses = v
- return s
- }
- // Represents the overall status of an algorithm.
- type AlgorithmStatusItem struct {
- _ struct{} `type:"structure"`
- // if the overall status is Failed, the reason for the failure.
- FailureReason *string `type:"string"`
- // The name of the algorithm for which the overall status is being reported.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The current status.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"DetailedAlgorithmStatus"`
- }
- // String returns the string representation
- func (s AlgorithmStatusItem) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlgorithmStatusItem) GoString() string {
- return s.String()
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *AlgorithmStatusItem) SetFailureReason(v string) *AlgorithmStatusItem {
- s.FailureReason = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *AlgorithmStatusItem) SetName(v string) *AlgorithmStatusItem {
- s.Name = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *AlgorithmStatusItem) SetStatus(v string) *AlgorithmStatusItem {
- s.Status = &v
- return s
- }
- // Provides summary information about an algorithm.
- type AlgorithmSummary struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the algorithm.
- //
- // AlgorithmArn is a required field
- AlgorithmArn *string `min:"1" type:"string" required:"true"`
- // A brief description of the algorithm.
- AlgorithmDescription *string `type:"string"`
- // The name of the algorithm that is described by the summary.
- //
- // AlgorithmName is a required field
- AlgorithmName *string `min:"1" type:"string" required:"true"`
- // The overall status of the algorithm.
- //
- // AlgorithmStatus is a required field
- AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"`
- // A timestamp that shows when the algorithm was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- }
- // String returns the string representation
- func (s AlgorithmSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlgorithmSummary) GoString() string {
- return s.String()
- }
- // SetAlgorithmArn sets the AlgorithmArn field's value.
- func (s *AlgorithmSummary) SetAlgorithmArn(v string) *AlgorithmSummary {
- s.AlgorithmArn = &v
- return s
- }
- // SetAlgorithmDescription sets the AlgorithmDescription field's value.
- func (s *AlgorithmSummary) SetAlgorithmDescription(v string) *AlgorithmSummary {
- s.AlgorithmDescription = &v
- return s
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *AlgorithmSummary) SetAlgorithmName(v string) *AlgorithmSummary {
- s.AlgorithmName = &v
- return s
- }
- // SetAlgorithmStatus sets the AlgorithmStatus field's value.
- func (s *AlgorithmSummary) SetAlgorithmStatus(v string) *AlgorithmSummary {
- s.AlgorithmStatus = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *AlgorithmSummary) SetCreationTime(v time.Time) *AlgorithmSummary {
- s.CreationTime = &v
- return s
- }
- // Defines a training job and a batch transform job that Amazon SageMaker runs
- // to validate your algorithm.
- //
- // The data provided in the validation profile is made available to your buyers
- // on AWS Marketplace.
- type AlgorithmValidationProfile struct {
- _ struct{} `type:"structure"`
- // The name of the profile for the algorithm. The name must have 1 to 63 characters.
- // Valid characters are a-z, A-Z, 0-9, and - (hyphen).
- //
- // ProfileName is a required field
- ProfileName *string `min:"1" type:"string" required:"true"`
- // The TrainingJobDefinition object that describes the training job that Amazon
- // SageMaker runs to validate your algorithm.
- //
- // TrainingJobDefinition is a required field
- TrainingJobDefinition *TrainingJobDefinition `type:"structure" required:"true"`
- // The TransformJobDefinition object that describes the transform job that Amazon
- // SageMaker runs to validate your algorithm.
- TransformJobDefinition *TransformJobDefinition `type:"structure"`
- }
- // String returns the string representation
- func (s AlgorithmValidationProfile) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlgorithmValidationProfile) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AlgorithmValidationProfile) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationProfile"}
- if s.ProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("ProfileName"))
- }
- if s.ProfileName != nil && len(*s.ProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1))
- }
- if s.TrainingJobDefinition == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition"))
- }
- if s.TrainingJobDefinition != nil {
- if err := s.TrainingJobDefinition.Validate(); err != nil {
- invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams))
- }
- }
- if s.TransformJobDefinition != nil {
- if err := s.TransformJobDefinition.Validate(); err != nil {
- invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetProfileName sets the ProfileName field's value.
- func (s *AlgorithmValidationProfile) SetProfileName(v string) *AlgorithmValidationProfile {
- s.ProfileName = &v
- return s
- }
- // SetTrainingJobDefinition sets the TrainingJobDefinition field's value.
- func (s *AlgorithmValidationProfile) SetTrainingJobDefinition(v *TrainingJobDefinition) *AlgorithmValidationProfile {
- s.TrainingJobDefinition = v
- return s
- }
- // SetTransformJobDefinition sets the TransformJobDefinition field's value.
- func (s *AlgorithmValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *AlgorithmValidationProfile {
- s.TransformJobDefinition = v
- return s
- }
- // Specifies configurations for one or more training jobs that Amazon SageMaker
- // runs to test the algorithm.
- type AlgorithmValidationSpecification struct {
- _ struct{} `type:"structure"`
- // An array of AlgorithmValidationProfile objects, each of which specifies a
- // training job and batch transform job that Amazon SageMaker runs to validate
- // your algorithm.
- //
- // ValidationProfiles is a required field
- ValidationProfiles []*AlgorithmValidationProfile `min:"1" type:"list" required:"true"`
- // The IAM roles that Amazon SageMaker uses to run the training jobs.
- //
- // ValidationRole is a required field
- ValidationRole *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AlgorithmValidationSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlgorithmValidationSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AlgorithmValidationSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationSpecification"}
- if s.ValidationProfiles == nil {
- invalidParams.Add(request.NewErrParamRequired("ValidationProfiles"))
- }
- if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1))
- }
- if s.ValidationRole == nil {
- invalidParams.Add(request.NewErrParamRequired("ValidationRole"))
- }
- if s.ValidationRole != nil && len(*s.ValidationRole) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20))
- }
- if s.ValidationProfiles != nil {
- for i, v := range s.ValidationProfiles {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetValidationProfiles sets the ValidationProfiles field's value.
- func (s *AlgorithmValidationSpecification) SetValidationProfiles(v []*AlgorithmValidationProfile) *AlgorithmValidationSpecification {
- s.ValidationProfiles = v
- return s
- }
- // SetValidationRole sets the ValidationRole field's value.
- func (s *AlgorithmValidationSpecification) SetValidationRole(v string) *AlgorithmValidationSpecification {
- s.ValidationRole = &v
- return s
- }
- // Configures how labels are consolidated across human workers.
- type AnnotationConsolidationConfig struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of a Lambda function implements the logic
- // for annotation consolidation.
- //
- // For the built-in bounding box, image classification, semantic segmentation,
- // and text classification task types, Amazon SageMaker Ground Truth provides
- // the following Lambda functions:
- //
- // * Bounding box - Finds the most similar boxes from different workers based
- // on the Jaccard index of the boxes.
- //
- // arn:aws:lambda:us-east-1:432418664414:function:ACS-BoundingBox
- //
- // arn:aws:lambda:us-east-2:266458841044:function:ACS-BoundingBox
- //
- // arn:aws:lambda:us-west-2:081040173940:function:ACS-BoundingBox
- //
- // arn:aws:lambda:eu-west-1:568282634449:function:ACS-BoundingBox
- //
- // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-BoundingBox
- //
- // * Image classification - Uses a variant of the Expectation Maximization
- // approach to estimate the true class of an image based on annotations from
- // individual workers.
- //
- // arn:aws:lambda:us-east-1:432418664414:function:ACS-ImageMultiClass
- //
- // arn:aws:lambda:us-east-2:266458841044:function:ACS-ImageMultiClass
- //
- // arn:aws:lambda:us-west-2:081040173940:function:ACS-ImageMultiClass
- //
- // arn:aws:lambda:eu-west-1:568282634449:function:ACS-ImageMultiClass
- //
- // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-ImageMultiClass
- //
- // * Semantic segmentation - Treats each pixel in an image as a multi-class
- // classification and treats pixel annotations from workers as "votes" for
- // the correct label.
- //
- // arn:aws:lambda:us-east-1:432418664414:function:ACS-SemanticSegmentation
- //
- // arn:aws:lambda:us-east-2:266458841044:function:ACS-SemanticSegmentation
- //
- // arn:aws:lambda:us-west-2:081040173940:function:ACS-SemanticSegmentation
- //
- // arn:aws:lambda:eu-west-1:568282634449:function:ACS-SemanticSegmentation
- //
- // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-SemanticSegmentation
- //
- // * Text classification - Uses a variant of the Expectation Maximization
- // approach to estimate the true class of text based on annotations from
- // individual workers.
- //
- // arn:aws:lambda:us-east-1:432418664414:function:ACS-TextMultiClass
- //
- // arn:aws:lambda:us-east-2:266458841044:function:ACS-TextMultiClass
- //
- // arn:aws:lambda:us-west-2:081040173940:function:ACS-TextMultiClass
- //
- // arn:aws:lambda:eu-west-1:568282634449:function:ACS-TextMultiClass
- //
- // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-TextMultiClass
- //
- // For more information, see Annotation Consolidation (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html).
- //
- // AnnotationConsolidationLambdaArn is a required field
- AnnotationConsolidationLambdaArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AnnotationConsolidationConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AnnotationConsolidationConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AnnotationConsolidationConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AnnotationConsolidationConfig"}
- if s.AnnotationConsolidationLambdaArn == nil {
- invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationLambdaArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value.
- func (s *AnnotationConsolidationConfig) SetAnnotationConsolidationLambdaArn(v string) *AnnotationConsolidationConfig {
- s.AnnotationConsolidationLambdaArn = &v
- return s
- }
- // A list of categorical hyperparameters to tune.
- type CategoricalParameterRange struct {
- _ struct{} `type:"structure"`
- // The name of the categorical hyperparameter to tune.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // A list of the categories for the hyperparameter.
- //
- // Values is a required field
- Values []*string `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s CategoricalParameterRange) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CategoricalParameterRange) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CategoricalParameterRange) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRange"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Values == nil {
- invalidParams.Add(request.NewErrParamRequired("Values"))
- }
- if s.Values != nil && len(s.Values) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Values", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *CategoricalParameterRange) SetName(v string) *CategoricalParameterRange {
- s.Name = &v
- return s
- }
- // SetValues sets the Values field's value.
- func (s *CategoricalParameterRange) SetValues(v []*string) *CategoricalParameterRange {
- s.Values = v
- return s
- }
- // Defines the possible values for a categorical hyperparameter.
- type CategoricalParameterRangeSpecification struct {
- _ struct{} `type:"structure"`
- // The allowed categories for the hyperparameter.
- //
- // Values is a required field
- Values []*string `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s CategoricalParameterRangeSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CategoricalParameterRangeSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CategoricalParameterRangeSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRangeSpecification"}
- if s.Values == nil {
- invalidParams.Add(request.NewErrParamRequired("Values"))
- }
- if s.Values != nil && len(s.Values) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Values", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetValues sets the Values field's value.
- func (s *CategoricalParameterRangeSpecification) SetValues(v []*string) *CategoricalParameterRangeSpecification {
- s.Values = v
- return s
- }
- // A channel is a named input source that training algorithms can consume.
- type Channel struct {
- _ struct{} `type:"structure"`
- // The name of the channel.
- //
- // ChannelName is a required field
- ChannelName *string `min:"1" type:"string" required:"true"`
- // If training data is compressed, the compression type. The default value is
- // None. CompressionType is used only in Pipe input mode. In File mode, leave
- // this field unset or set it to None.
- CompressionType *string `type:"string" enum:"CompressionType"`
- // The MIME type of the data.
- ContentType *string `type:"string"`
- // The location of the channel data.
- //
- // DataSource is a required field
- DataSource *DataSource `type:"structure" required:"true"`
- // (Optional) The input mode to use for the data channel in a training job.
- // If you don't set a value for InputMode, Amazon SageMaker uses the value set
- // for TrainingInputMode. Use this parameter to override the TrainingInputMode
- // setting in a AlgorithmSpecification request when you have a channel that
- // needs a different input mode from the training job's general setting. To
- // download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned
- // ML storage volume, and mount the directory to a Docker volume, use File input
- // mode. To stream data directly from Amazon S3 to the container, choose Pipe
- // input mode.
- //
- // To use a model for incremental training, choose File input model.
- InputMode *string `type:"string" enum:"TrainingInputMode"`
- // Specify RecordIO as the value when input data is in raw format but the training
- // algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps
- // each individual S3 object in a RecordIO record. If the input data is already
- // in RecordIO format, you don't need to set this attribute. For more information,
- // see Create a Dataset Using RecordIO (https://mxnet.incubator.apache.org/architecture/note_data_loading.html#data-format)
- RecordWrapperType *string `type:"string" enum:"RecordWrapper"`
- // A configuration for a shuffle option for input data in a channel. If you
- // use S3Prefix for S3DataType, this shuffles the results of the S3 key prefix
- // matches. If you use ManifestFile, the order of the S3 object references in
- // the ManifestFile is shuffled. If you use AugmentedManifestFile, the order
- // of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling
- // order is determined using the Seed value.
- //
- // For Pipe input mode, shuffling is done at the start of every epoch. With
- // large datasets this ensures that the order of the training data is different
- // for each epoch, it helps reduce bias and possible overfitting. In a multi-node
- // training job when ShuffleConfig is combined with S3DataDistributionType of
- // ShardedByS3Key, the data is shuffled across nodes so that the content sent
- // to a particular node on the first epoch might be sent to a different node
- // on the second epoch.
- ShuffleConfig *ShuffleConfig `type:"structure"`
- }
- // String returns the string representation
- func (s Channel) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Channel) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Channel) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Channel"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if s.DataSource == nil {
- invalidParams.Add(request.NewErrParamRequired("DataSource"))
- }
- if s.DataSource != nil {
- if err := s.DataSource.Validate(); err != nil {
- invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams))
- }
- }
- if s.ShuffleConfig != nil {
- if err := s.ShuffleConfig.Validate(); err != nil {
- invalidParams.AddNested("ShuffleConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *Channel) SetChannelName(v string) *Channel {
- s.ChannelName = &v
- return s
- }
- // SetCompressionType sets the CompressionType field's value.
- func (s *Channel) SetCompressionType(v string) *Channel {
- s.CompressionType = &v
- return s
- }
- // SetContentType sets the ContentType field's value.
- func (s *Channel) SetContentType(v string) *Channel {
- s.ContentType = &v
- return s
- }
- // SetDataSource sets the DataSource field's value.
- func (s *Channel) SetDataSource(v *DataSource) *Channel {
- s.DataSource = v
- return s
- }
- // SetInputMode sets the InputMode field's value.
- func (s *Channel) SetInputMode(v string) *Channel {
- s.InputMode = &v
- return s
- }
- // SetRecordWrapperType sets the RecordWrapperType field's value.
- func (s *Channel) SetRecordWrapperType(v string) *Channel {
- s.RecordWrapperType = &v
- return s
- }
- // SetShuffleConfig sets the ShuffleConfig field's value.
- func (s *Channel) SetShuffleConfig(v *ShuffleConfig) *Channel {
- s.ShuffleConfig = v
- return s
- }
- // Defines a named input source, called a channel, to be used by an algorithm.
- type ChannelSpecification struct {
- _ struct{} `type:"structure"`
- // A brief description of the channel.
- Description *string `type:"string"`
- // Indicates whether the channel is required by the algorithm.
- IsRequired *bool `type:"boolean"`
- // The name of the channel.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The allowed compression types, if data compression is used.
- SupportedCompressionTypes []*string `type:"list"`
- // The supported MIME types for the data.
- //
- // SupportedContentTypes is a required field
- SupportedContentTypes []*string `type:"list" required:"true"`
- // The allowed input mode, either FILE or PIPE.
- //
- // In FILE mode, Amazon SageMaker copies the data from the input source onto
- // the local Amazon Elastic Block Store (Amazon EBS) volumes before starting
- // your training algorithm. This is the most commonly used input mode.
- //
- // In PIPE mode, Amazon SageMaker streams input data from the source directly
- // to your algorithm without using the EBS volume.
- //
- // SupportedInputModes is a required field
- SupportedInputModes []*string `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ChannelSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChannelSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ChannelSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ChannelSpecification"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.SupportedContentTypes == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes"))
- }
- if s.SupportedInputModes == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportedInputModes"))
- }
- if s.SupportedInputModes != nil && len(s.SupportedInputModes) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SupportedInputModes", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *ChannelSpecification) SetDescription(v string) *ChannelSpecification {
- s.Description = &v
- return s
- }
- // SetIsRequired sets the IsRequired field's value.
- func (s *ChannelSpecification) SetIsRequired(v bool) *ChannelSpecification {
- s.IsRequired = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ChannelSpecification) SetName(v string) *ChannelSpecification {
- s.Name = &v
- return s
- }
- // SetSupportedCompressionTypes sets the SupportedCompressionTypes field's value.
- func (s *ChannelSpecification) SetSupportedCompressionTypes(v []*string) *ChannelSpecification {
- s.SupportedCompressionTypes = v
- return s
- }
- // SetSupportedContentTypes sets the SupportedContentTypes field's value.
- func (s *ChannelSpecification) SetSupportedContentTypes(v []*string) *ChannelSpecification {
- s.SupportedContentTypes = v
- return s
- }
- // SetSupportedInputModes sets the SupportedInputModes field's value.
- func (s *ChannelSpecification) SetSupportedInputModes(v []*string) *ChannelSpecification {
- s.SupportedInputModes = v
- return s
- }
- // Specifies summary information about a Git repository.
- type CodeRepositorySummary struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the Git repository.
- //
- // CodeRepositoryArn is a required field
- CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
- // The name of the Git repository.
- //
- // CodeRepositoryName is a required field
- CodeRepositoryName *string `min:"1" type:"string" required:"true"`
- // The date and time that the Git repository was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // Configuration details for the Git repository, including the URL where it
- // is located and the ARN of the AWS Secrets Manager secret that contains the
- // credentials used to access the repository.
- GitConfig *GitConfig `type:"structure"`
- // The date and time that the Git repository was last modified.
- //
- // LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" required:"true"`
- }
- // String returns the string representation
- func (s CodeRepositorySummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CodeRepositorySummary) GoString() string {
- return s.String()
- }
- // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
- func (s *CodeRepositorySummary) SetCodeRepositoryArn(v string) *CodeRepositorySummary {
- s.CodeRepositoryArn = &v
- return s
- }
- // SetCodeRepositoryName sets the CodeRepositoryName field's value.
- func (s *CodeRepositorySummary) SetCodeRepositoryName(v string) *CodeRepositorySummary {
- s.CodeRepositoryName = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *CodeRepositorySummary) SetCreationTime(v time.Time) *CodeRepositorySummary {
- s.CreationTime = &v
- return s
- }
- // SetGitConfig sets the GitConfig field's value.
- func (s *CodeRepositorySummary) SetGitConfig(v *GitConfig) *CodeRepositorySummary {
- s.GitConfig = v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *CodeRepositorySummary) SetLastModifiedTime(v time.Time) *CodeRepositorySummary {
- s.LastModifiedTime = &v
- return s
- }
- // Identifies a Amazon Cognito user group. A user group can be used in on or
- // more work teams.
- type CognitoMemberDefinition struct {
- _ struct{} `type:"structure"`
- // An identifier for an application client. You must create the app client ID
- // using Amazon Cognito.
- //
- // ClientId is a required field
- ClientId *string `min:"1" type:"string" required:"true"`
- // An identifier for a user group.
- //
- // UserGroup is a required field
- UserGroup *string `min:"1" type:"string" required:"true"`
- // An identifier for a user pool. The user pool must be in the same region as
- // the service that you are calling.
- //
- // UserPool is a required field
- UserPool *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CognitoMemberDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CognitoMemberDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CognitoMemberDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CognitoMemberDefinition"}
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientId != nil && len(*s.ClientId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
- }
- if s.UserGroup == nil {
- invalidParams.Add(request.NewErrParamRequired("UserGroup"))
- }
- if s.UserGroup != nil && len(*s.UserGroup) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserGroup", 1))
- }
- if s.UserPool == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPool"))
- }
- if s.UserPool != nil && len(*s.UserPool) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserPool", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientId sets the ClientId field's value.
- func (s *CognitoMemberDefinition) SetClientId(v string) *CognitoMemberDefinition {
- s.ClientId = &v
- return s
- }
- // SetUserGroup sets the UserGroup field's value.
- func (s *CognitoMemberDefinition) SetUserGroup(v string) *CognitoMemberDefinition {
- s.UserGroup = &v
- return s
- }
- // SetUserPool sets the UserPool field's value.
- func (s *CognitoMemberDefinition) SetUserPool(v string) *CognitoMemberDefinition {
- s.UserPool = &v
- return s
- }
- // A summary of a model compilation job.
- type CompilationJobSummary struct {
- _ struct{} `type:"structure"`
- // The time when the model compilation job completed.
- CompilationEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the model compilation job.
- //
- // CompilationJobArn is a required field
- CompilationJobArn *string `type:"string" required:"true"`
- // The name of the model compilation job that you want a summary for.
- //
- // CompilationJobName is a required field
- CompilationJobName *string `min:"1" type:"string" required:"true"`
- // The status of the model compilation job.
- //
- // CompilationJobStatus is a required field
- CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"`
- // The time when the model compilation job started.
- CompilationStartTime *time.Time `type:"timestamp"`
- // The type of device that the model will run on after compilation has completed.
- //
- // CompilationTargetDevice is a required field
- CompilationTargetDevice *string `type:"string" required:"true" enum:"TargetDevice"`
- // The time when the model compilation job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The time when the model compilation job was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s CompilationJobSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CompilationJobSummary) GoString() string {
- return s.String()
- }
- // SetCompilationEndTime sets the CompilationEndTime field's value.
- func (s *CompilationJobSummary) SetCompilationEndTime(v time.Time) *CompilationJobSummary {
- s.CompilationEndTime = &v
- return s
- }
- // SetCompilationJobArn sets the CompilationJobArn field's value.
- func (s *CompilationJobSummary) SetCompilationJobArn(v string) *CompilationJobSummary {
- s.CompilationJobArn = &v
- return s
- }
- // SetCompilationJobName sets the CompilationJobName field's value.
- func (s *CompilationJobSummary) SetCompilationJobName(v string) *CompilationJobSummary {
- s.CompilationJobName = &v
- return s
- }
- // SetCompilationJobStatus sets the CompilationJobStatus field's value.
- func (s *CompilationJobSummary) SetCompilationJobStatus(v string) *CompilationJobSummary {
- s.CompilationJobStatus = &v
- return s
- }
- // SetCompilationStartTime sets the CompilationStartTime field's value.
- func (s *CompilationJobSummary) SetCompilationStartTime(v time.Time) *CompilationJobSummary {
- s.CompilationStartTime = &v
- return s
- }
- // SetCompilationTargetDevice sets the CompilationTargetDevice field's value.
- func (s *CompilationJobSummary) SetCompilationTargetDevice(v string) *CompilationJobSummary {
- s.CompilationTargetDevice = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *CompilationJobSummary) SetCreationTime(v time.Time) *CompilationJobSummary {
- s.CreationTime = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *CompilationJobSummary) SetLastModifiedTime(v time.Time) *CompilationJobSummary {
- s.LastModifiedTime = &v
- return s
- }
- // Describes the container, as part of model definition.
- type ContainerDefinition struct {
- _ struct{} `type:"structure"`
- // The DNS host name for the container after Amazon SageMaker deploys it.
- ContainerHostname *string `type:"string"`
- // The environment variables to set in the Docker container. Each key and value
- // in the Environment string to string map can have length of up to 1024. We
- // support up to 16 entries in the map.
- Environment map[string]*string `type:"map"`
- // The Amazon EC2 Container Registry (Amazon ECR) path where inference code
- // is stored. If you are using your own custom algorithm instead of an algorithm
- // provided by Amazon SageMaker, the inference code must meet Amazon SageMaker
- // requirements. Amazon SageMaker supports both registry/repository[:tag] and
- // registry/repository[@digest] image path formats. For more information, see
- // Using Your Own Algorithms with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html)
- Image *string `type:"string"`
- // The S3 path where the model artifacts, which result from model training,
- // are stored. This path must point to a single gzip compressed tar archive
- // (.tar.gz suffix).
- //
- // If you provide a value for this parameter, Amazon SageMaker uses AWS Security
- // Token Service to download model artifacts from the S3 path you provide. AWS
- // STS is activated in your IAM user account by default. If you previously deactivated
- // AWS STS for a region, you need to reactivate AWS STS for that region. For
- // more information, see Activating and Deactivating AWS STS in an AWS Region
- // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
- // in the AWS Identity and Access Management User Guide.
- ModelDataUrl *string `type:"string"`
- // The name of the model package to use to create the model.
- ModelPackageName *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ContainerDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ContainerDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ContainerDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ContainerDefinition"}
- if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContainerHostname sets the ContainerHostname field's value.
- func (s *ContainerDefinition) SetContainerHostname(v string) *ContainerDefinition {
- s.ContainerHostname = &v
- return s
- }
- // SetEnvironment sets the Environment field's value.
- func (s *ContainerDefinition) SetEnvironment(v map[string]*string) *ContainerDefinition {
- s.Environment = v
- return s
- }
- // SetImage sets the Image field's value.
- func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition {
- s.Image = &v
- return s
- }
- // SetModelDataUrl sets the ModelDataUrl field's value.
- func (s *ContainerDefinition) SetModelDataUrl(v string) *ContainerDefinition {
- s.ModelDataUrl = &v
- return s
- }
- // SetModelPackageName sets the ModelPackageName field's value.
- func (s *ContainerDefinition) SetModelPackageName(v string) *ContainerDefinition {
- s.ModelPackageName = &v
- return s
- }
- // A list of continuous hyperparameters to tune.
- type ContinuousParameterRange struct {
- _ struct{} `type:"structure"`
- // The maximum value for the hyperparameter. The tuning job uses floating-point
- // values between MinValue value and this value for tuning.
- //
- // MaxValue is a required field
- MaxValue *string `type:"string" required:"true"`
- // The minimum value for the hyperparameter. The tuning job uses floating-point
- // values between this value and MaxValuefor tuning.
- //
- // MinValue is a required field
- MinValue *string `type:"string" required:"true"`
- // The name of the continuous hyperparameter to tune.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ContinuousParameterRange) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ContinuousParameterRange) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ContinuousParameterRange) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRange"}
- if s.MaxValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MaxValue"))
- }
- if s.MinValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MinValue"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxValue sets the MaxValue field's value.
- func (s *ContinuousParameterRange) SetMaxValue(v string) *ContinuousParameterRange {
- s.MaxValue = &v
- return s
- }
- // SetMinValue sets the MinValue field's value.
- func (s *ContinuousParameterRange) SetMinValue(v string) *ContinuousParameterRange {
- s.MinValue = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ContinuousParameterRange) SetName(v string) *ContinuousParameterRange {
- s.Name = &v
- return s
- }
- // Defines the possible values for a continuous hyperparameter.
- type ContinuousParameterRangeSpecification struct {
- _ struct{} `type:"structure"`
- // The maximum floating-point value allowed.
- //
- // MaxValue is a required field
- MaxValue *string `type:"string" required:"true"`
- // The minimum floating-point value allowed.
- //
- // MinValue is a required field
- MinValue *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ContinuousParameterRangeSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ContinuousParameterRangeSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ContinuousParameterRangeSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRangeSpecification"}
- if s.MaxValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MaxValue"))
- }
- if s.MinValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MinValue"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxValue sets the MaxValue field's value.
- func (s *ContinuousParameterRangeSpecification) SetMaxValue(v string) *ContinuousParameterRangeSpecification {
- s.MaxValue = &v
- return s
- }
- // SetMinValue sets the MinValue field's value.
- func (s *ContinuousParameterRangeSpecification) SetMinValue(v string) *ContinuousParameterRangeSpecification {
- s.MinValue = &v
- return s
- }
- type CreateAlgorithmInput struct {
- _ struct{} `type:"structure"`
- // A description of the algorithm.
- AlgorithmDescription *string `type:"string"`
- // The name of the algorithm.
- //
- // AlgorithmName is a required field
- AlgorithmName *string `min:"1" type:"string" required:"true"`
- // Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- CertifyForMarketplace *bool `type:"boolean"`
- // Specifies details about inference jobs that the algorithm runs, including
- // the following:
- //
- // * The Amazon ECR paths of containers that contain the inference code and
- // model artifacts.
- //
- // * The instance types that the algorithm supports for transform jobs and
- // real-time endpoints used for inference.
- //
- // * The input and output content formats that the algorithm supports for
- // inference.
- InferenceSpecification *InferenceSpecification `type:"structure"`
- // Specifies details about training jobs run by this algorithm, including the
- // following:
- //
- // * The Amazon ECR path of the container and the version digest of the algorithm.
- //
- // * The hyperparameters that the algorithm supports.
- //
- // * The instance types that the algorithm supports for training.
- //
- // * Whether the algorithm supports distributed training.
- //
- // * The metrics that the algorithm emits to Amazon CloudWatch.
- //
- // * Which metrics that the algorithm emits can be used as the objective
- // metric for hyperparameter tuning jobs.
- //
- // * The input channels that the algorithm supports for training data. For
- // example, an algorithm might support train, validation, and test channels.
- //
- // TrainingSpecification is a required field
- TrainingSpecification *TrainingSpecification `type:"structure" required:"true"`
- // Specifies configurations for one or more training jobs and that Amazon SageMaker
- // runs to test the algorithm's training code and, optionally, one or more batch
- // transform jobs that Amazon SageMaker runs to test the algorithm's inference
- // code.
- ValidationSpecification *AlgorithmValidationSpecification `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAlgorithmInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAlgorithmInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateAlgorithmInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAlgorithmInput"}
- if s.AlgorithmName == nil {
- invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
- }
- if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
- }
- if s.TrainingSpecification == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingSpecification"))
- }
- if s.InferenceSpecification != nil {
- if err := s.InferenceSpecification.Validate(); err != nil {
- invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.TrainingSpecification != nil {
- if err := s.TrainingSpecification.Validate(); err != nil {
- invalidParams.AddNested("TrainingSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.ValidationSpecification != nil {
- if err := s.ValidationSpecification.Validate(); err != nil {
- invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmDescription sets the AlgorithmDescription field's value.
- func (s *CreateAlgorithmInput) SetAlgorithmDescription(v string) *CreateAlgorithmInput {
- s.AlgorithmDescription = &v
- return s
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *CreateAlgorithmInput) SetAlgorithmName(v string) *CreateAlgorithmInput {
- s.AlgorithmName = &v
- return s
- }
- // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
- func (s *CreateAlgorithmInput) SetCertifyForMarketplace(v bool) *CreateAlgorithmInput {
- s.CertifyForMarketplace = &v
- return s
- }
- // SetInferenceSpecification sets the InferenceSpecification field's value.
- func (s *CreateAlgorithmInput) SetInferenceSpecification(v *InferenceSpecification) *CreateAlgorithmInput {
- s.InferenceSpecification = v
- return s
- }
- // SetTrainingSpecification sets the TrainingSpecification field's value.
- func (s *CreateAlgorithmInput) SetTrainingSpecification(v *TrainingSpecification) *CreateAlgorithmInput {
- s.TrainingSpecification = v
- return s
- }
- // SetValidationSpecification sets the ValidationSpecification field's value.
- func (s *CreateAlgorithmInput) SetValidationSpecification(v *AlgorithmValidationSpecification) *CreateAlgorithmInput {
- s.ValidationSpecification = v
- return s
- }
- type CreateAlgorithmOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the new algorithm.
- //
- // AlgorithmArn is a required field
- AlgorithmArn *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateAlgorithmOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAlgorithmOutput) GoString() string {
- return s.String()
- }
- // SetAlgorithmArn sets the AlgorithmArn field's value.
- func (s *CreateAlgorithmOutput) SetAlgorithmArn(v string) *CreateAlgorithmOutput {
- s.AlgorithmArn = &v
- return s
- }
- type CreateCodeRepositoryInput struct {
- _ struct{} `type:"structure"`
- // The name of the Git repository. The name must have 1 to 63 characters. Valid
- // characters are a-z, A-Z, 0-9, and - (hyphen).
- //
- // CodeRepositoryName is a required field
- CodeRepositoryName *string `min:"1" type:"string" required:"true"`
- // Specifies details about the repository, including the URL where the repository
- // is located, the default branch, and credentials to use to access the repository.
- //
- // GitConfig is a required field
- GitConfig *GitConfig `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateCodeRepositoryInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCodeRepositoryInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCodeRepositoryInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCodeRepositoryInput"}
- if s.CodeRepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
- }
- if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
- }
- if s.GitConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("GitConfig"))
- }
- if s.GitConfig != nil {
- if err := s.GitConfig.Validate(); err != nil {
- invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCodeRepositoryName sets the CodeRepositoryName field's value.
- func (s *CreateCodeRepositoryInput) SetCodeRepositoryName(v string) *CreateCodeRepositoryInput {
- s.CodeRepositoryName = &v
- return s
- }
- // SetGitConfig sets the GitConfig field's value.
- func (s *CreateCodeRepositoryInput) SetGitConfig(v *GitConfig) *CreateCodeRepositoryInput {
- s.GitConfig = v
- return s
- }
- type CreateCodeRepositoryOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the new repository.
- //
- // CodeRepositoryArn is a required field
- CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateCodeRepositoryOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCodeRepositoryOutput) GoString() string {
- return s.String()
- }
- // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
- func (s *CreateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *CreateCodeRepositoryOutput {
- s.CodeRepositoryArn = &v
- return s
- }
- type CreateCompilationJobInput struct {
- _ struct{} `type:"structure"`
- // A name for the model compilation job. The name must be unique within the
- // AWS Region and within your AWS account.
- //
- // CompilationJobName is a required field
- CompilationJobName *string `min:"1" type:"string" required:"true"`
- // Provides information about the location of input model artifacts, the name
- // and shape of the expected data inputs, and the framework in which the model
- // was trained.
- //
- // InputConfig is a required field
- InputConfig *InputConfig `type:"structure" required:"true"`
- // Provides information about the output location for the compiled model and
- // the target device the model runs on.
- //
- // OutputConfig is a required field
- OutputConfig *OutputConfig `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) of an IIAMAM role that enables Amazon SageMaker
- // to perform tasks on your behalf.
- //
- // During model compilation, Amazon SageMaker needs your permission to:
- //
- // * Read input data from an S3 bucket
- //
- // * Write model artifacts to an S3 bucket
- //
- // * Write logs to Amazon CloudWatch Logs
- //
- // * Publish metrics to Amazon CloudWatch
- //
- // You grant permissions for all of these tasks to an IAM role. To pass this
- // role to Amazon SageMaker, the caller of this API must have the iam:PassRole
- // permission. For more information, see Amazon SageMaker Roles. (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html)
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // The duration allowed for model compilation.
- //
- // StoppingCondition is a required field
- StoppingCondition *StoppingCondition `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateCompilationJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCompilationJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCompilationJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCompilationJobInput"}
- if s.CompilationJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("CompilationJobName"))
- }
- if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1))
- }
- if s.InputConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("InputConfig"))
- }
- if s.OutputConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputConfig"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.StoppingCondition == nil {
- invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
- }
- if s.InputConfig != nil {
- if err := s.InputConfig.Validate(); err != nil {
- invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.OutputConfig != nil {
- if err := s.OutputConfig.Validate(); err != nil {
- invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.StoppingCondition != nil {
- if err := s.StoppingCondition.Validate(); err != nil {
- invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCompilationJobName sets the CompilationJobName field's value.
- func (s *CreateCompilationJobInput) SetCompilationJobName(v string) *CreateCompilationJobInput {
- s.CompilationJobName = &v
- return s
- }
- // SetInputConfig sets the InputConfig field's value.
- func (s *CreateCompilationJobInput) SetInputConfig(v *InputConfig) *CreateCompilationJobInput {
- s.InputConfig = v
- return s
- }
- // SetOutputConfig sets the OutputConfig field's value.
- func (s *CreateCompilationJobInput) SetOutputConfig(v *OutputConfig) *CreateCompilationJobInput {
- s.OutputConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CreateCompilationJobInput) SetRoleArn(v string) *CreateCompilationJobInput {
- s.RoleArn = &v
- return s
- }
- // SetStoppingCondition sets the StoppingCondition field's value.
- func (s *CreateCompilationJobInput) SetStoppingCondition(v *StoppingCondition) *CreateCompilationJobInput {
- s.StoppingCondition = v
- return s
- }
- type CreateCompilationJobOutput struct {
- _ struct{} `type:"structure"`
- // If the action is successful, the service sends back an HTTP 200 response.
- // Amazon SageMaker returns the following data in JSON format:
- //
- // * CompilationJobArn: The Amazon Resource Name (ARN) of the compiled job.
- //
- // CompilationJobArn is a required field
- CompilationJobArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateCompilationJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCompilationJobOutput) GoString() string {
- return s.String()
- }
- // SetCompilationJobArn sets the CompilationJobArn field's value.
- func (s *CreateCompilationJobOutput) SetCompilationJobArn(v string) *CreateCompilationJobOutput {
- s.CompilationJobArn = &v
- return s
- }
- type CreateEndpointConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the endpoint configuration. You specify this name in a CreateEndpoint
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html)
- // request.
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon
- // SageMaker uses to encrypt data on the storage volume attached to the ML compute
- // instance that hosts the endpoint.
- KmsKeyId *string `type:"string"`
- // An array of ProductionVariant objects, one for each model that you want to
- // host at this endpoint.
- //
- // ProductionVariants is a required field
- ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"`
- // An array of key-value pairs. For more information, see Using Cost Allocation
- // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
- // in the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s CreateEndpointConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateEndpointConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateEndpointConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateEndpointConfigInput"}
- if s.EndpointConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
- }
- if s.ProductionVariants == nil {
- invalidParams.Add(request.NewErrParamRequired("ProductionVariants"))
- }
- if s.ProductionVariants != nil && len(s.ProductionVariants) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ProductionVariants", 1))
- }
- if s.ProductionVariants != nil {
- for i, v := range s.ProductionVariants {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductionVariants", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *CreateEndpointConfigInput) SetEndpointConfigName(v string) *CreateEndpointConfigInput {
- s.EndpointConfigName = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *CreateEndpointConfigInput) SetKmsKeyId(v string) *CreateEndpointConfigInput {
- s.KmsKeyId = &v
- return s
- }
- // SetProductionVariants sets the ProductionVariants field's value.
- func (s *CreateEndpointConfigInput) SetProductionVariants(v []*ProductionVariant) *CreateEndpointConfigInput {
- s.ProductionVariants = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateEndpointConfigInput) SetTags(v []*Tag) *CreateEndpointConfigInput {
- s.Tags = v
- return s
- }
- type CreateEndpointConfigOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the endpoint configuration.
- //
- // EndpointConfigArn is a required field
- EndpointConfigArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateEndpointConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateEndpointConfigOutput) GoString() string {
- return s.String()
- }
- // SetEndpointConfigArn sets the EndpointConfigArn field's value.
- func (s *CreateEndpointConfigOutput) SetEndpointConfigArn(v string) *CreateEndpointConfigOutput {
- s.EndpointConfigArn = &v
- return s
- }
- type CreateEndpointInput struct {
- _ struct{} `type:"structure"`
- // The name of an endpoint configuration. For more information, see CreateEndpointConfig
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html).
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- // The name of the endpoint. The name must be unique within an AWS Region in
- // your AWS account.
- //
- // EndpointName is a required field
- EndpointName *string `type:"string" required:"true"`
- // An array of key-value pairs. For more information, see Using Cost Allocation
- // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)in
- // the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s CreateEndpointInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateEndpointInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateEndpointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"}
- if s.EndpointConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
- }
- if s.EndpointName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointName"))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *CreateEndpointInput) SetEndpointConfigName(v string) *CreateEndpointInput {
- s.EndpointConfigName = &v
- return s
- }
- // SetEndpointName sets the EndpointName field's value.
- func (s *CreateEndpointInput) SetEndpointName(v string) *CreateEndpointInput {
- s.EndpointName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput {
- s.Tags = v
- return s
- }
- type CreateEndpointOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the endpoint.
- //
- // EndpointArn is a required field
- EndpointArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateEndpointOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateEndpointOutput) GoString() string {
- return s.String()
- }
- // SetEndpointArn sets the EndpointArn field's value.
- func (s *CreateEndpointOutput) SetEndpointArn(v string) *CreateEndpointOutput {
- s.EndpointArn = &v
- return s
- }
- type CreateHyperParameterTuningJobInput struct {
- _ struct{} `type:"structure"`
- // The HyperParameterTuningJobConfig object that describes the tuning job, including
- // the search strategy, the objective metric used to evaluate training jobs,
- // ranges of parameters to search, and resource limits for the tuning job. For
- // more information, see automatic-model-tuning
- //
- // HyperParameterTuningJobConfig is a required field
- HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"`
- // The name of the tuning job. This name is the prefix for the names of all
- // training jobs that this tuning job launches. The name must be unique within
- // the same AWS account and AWS Region. The name must have { } to { } characters.
- // Valid characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name
- // is not case sensitive.
- //
- // HyperParameterTuningJobName is a required field
- HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
- // An array of key-value pairs. You can use tags to categorize your AWS resources
- // in different ways, for example, by purpose, owner, or environment. For more
- // information, see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/).
- //
- // Tags that you specify for the tuning job are also added to all training jobs
- // that the tuning job launches.
- Tags []*Tag `type:"list"`
- // The HyperParameterTrainingJobDefinition object that describes the training
- // jobs that this tuning job launches, including static hyperparameters, input
- // data configuration, output data configuration, resource configuration, and
- // stopping condition.
- //
- // TrainingJobDefinition is a required field
- TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"`
- // Specifies the configuration for starting the hyperparameter tuning job using
- // one or more previous tuning jobs as a starting point. The results of previous
- // tuning jobs are used to inform which combinations of hyperparameters to search
- // over in the new tuning job.
- //
- // All training jobs launched by the new hyperparameter tuning job are evaluated
- // by using the objective metric. If you specify IDENTICAL_DATA_AND_ALGORITHM
- // as the WarmStartType value for the warm start configuration, the training
- // job that performs the best in the new tuning job is compared to the best
- // training jobs from the parent tuning jobs. From these, the training job that
- // performs the best as measured by the objective metric is returned as the
- // overall best training job.
- //
- // All training jobs launched by parent hyperparameter tuning jobs and the new
- // hyperparameter tuning jobs count against the limit of training jobs for the
- // tuning job.
- WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"`
- }
- // String returns the string representation
- func (s CreateHyperParameterTuningJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHyperParameterTuningJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateHyperParameterTuningJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateHyperParameterTuningJobInput"}
- if s.HyperParameterTuningJobConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobConfig"))
- }
- if s.HyperParameterTuningJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
- }
- if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
- }
- if s.TrainingJobDefinition == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition"))
- }
- if s.HyperParameterTuningJobConfig != nil {
- if err := s.HyperParameterTuningJobConfig.Validate(); err != nil {
- invalidParams.AddNested("HyperParameterTuningJobConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.TrainingJobDefinition != nil {
- if err := s.TrainingJobDefinition.Validate(); err != nil {
- invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams))
- }
- }
- if s.WarmStartConfig != nil {
- if err := s.WarmStartConfig.Validate(); err != nil {
- invalidParams.AddNested("WarmStartConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value.
- func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *CreateHyperParameterTuningJobInput {
- s.HyperParameterTuningJobConfig = v
- return s
- }
- // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
- func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *CreateHyperParameterTuningJobInput {
- s.HyperParameterTuningJobName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateHyperParameterTuningJobInput) SetTags(v []*Tag) *CreateHyperParameterTuningJobInput {
- s.Tags = v
- return s
- }
- // SetTrainingJobDefinition sets the TrainingJobDefinition field's value.
- func (s *CreateHyperParameterTuningJobInput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *CreateHyperParameterTuningJobInput {
- s.TrainingJobDefinition = v
- return s
- }
- // SetWarmStartConfig sets the WarmStartConfig field's value.
- func (s *CreateHyperParameterTuningJobInput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *CreateHyperParameterTuningJobInput {
- s.WarmStartConfig = v
- return s
- }
- type CreateHyperParameterTuningJobOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the tuning job. Amazon SageMaker assigns
- // an ARN to a hyperparameter tuning job when you create it.
- //
- // HyperParameterTuningJobArn is a required field
- HyperParameterTuningJobArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateHyperParameterTuningJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHyperParameterTuningJobOutput) GoString() string {
- return s.String()
- }
- // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value.
- func (s *CreateHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *CreateHyperParameterTuningJobOutput {
- s.HyperParameterTuningJobArn = &v
- return s
- }
- type CreateLabelingJobInput struct {
- _ struct{} `type:"structure"`
- // Configures the information required for human workers to complete a labeling
- // task.
- //
- // HumanTaskConfig is a required field
- HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"`
- // Input data for the labeling job, such as the Amazon S3 location of the data
- // objects and the location of the manifest file that describes the data objects.
- //
- // InputConfig is a required field
- InputConfig *LabelingJobInputConfig `type:"structure" required:"true"`
- // The attribute name to use for the label in the output manifest file. This
- // is the key for the key/value pair formed with the label that a worker assigns
- // to the object. The name can't end with "-metadata". If you are running a
- // semantic segmentation labeling job, the attribute name must end with "-ref".
- // If you are running any other kind of labeling job, the attribute name must
- // not end with "-ref".
- //
- // LabelAttributeName is a required field
- LabelAttributeName *string `min:"1" type:"string" required:"true"`
- // The S3 URL of the file that defines the categories used to label the data
- // objects.
- //
- // The file is a JSON structure in the following format:
- //
- // {
- //
- // "document-version": "2018-11-28"
- //
- // "labels": [
- //
- // {
- //
- // "label": "label 1"
- //
- // },
- //
- // {
- //
- // "label": "label 2"
- //
- // },
- //
- // ...
- //
- // {
- //
- // "label": "label n"
- //
- // }
- //
- // ]
- //
- // }
- LabelCategoryConfigS3Uri *string `type:"string"`
- // Configures the information required to perform automated data labeling.
- LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"`
- // The name of the labeling job. This name is used to identify the job in a
- // list of labeling jobs.
- //
- // LabelingJobName is a required field
- LabelingJobName *string `min:"1" type:"string" required:"true"`
- // The location of the output data and the AWS Key Management Service key ID
- // for the key used to encrypt the output data, if any.
- //
- // OutputConfig is a required field
- OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"`
- // The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform
- // tasks on your behalf during data labeling. You must grant this role the necessary
- // permissions so that Amazon SageMaker can successfully complete data labeling.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // A set of conditions for stopping the labeling job. If any of the conditions
- // are met, the job is automatically stopped. You can use these conditions to
- // control the cost of data labeling.
- StoppingConditions *LabelingJobStoppingConditions `type:"structure"`
- // An array of key/value pairs. For more information, see Using Cost Allocation
- // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
- // in the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s CreateLabelingJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLabelingJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateLabelingJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLabelingJobInput"}
- if s.HumanTaskConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("HumanTaskConfig"))
- }
- if s.InputConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("InputConfig"))
- }
- if s.LabelAttributeName == nil {
- invalidParams.Add(request.NewErrParamRequired("LabelAttributeName"))
- }
- if s.LabelAttributeName != nil && len(*s.LabelAttributeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LabelAttributeName", 1))
- }
- if s.LabelingJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("LabelingJobName"))
- }
- if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1))
- }
- if s.OutputConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputConfig"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.HumanTaskConfig != nil {
- if err := s.HumanTaskConfig.Validate(); err != nil {
- invalidParams.AddNested("HumanTaskConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.InputConfig != nil {
- if err := s.InputConfig.Validate(); err != nil {
- invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.LabelingJobAlgorithmsConfig != nil {
- if err := s.LabelingJobAlgorithmsConfig.Validate(); err != nil {
- invalidParams.AddNested("LabelingJobAlgorithmsConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.OutputConfig != nil {
- if err := s.OutputConfig.Validate(); err != nil {
- invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.StoppingConditions != nil {
- if err := s.StoppingConditions.Validate(); err != nil {
- invalidParams.AddNested("StoppingConditions", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHumanTaskConfig sets the HumanTaskConfig field's value.
- func (s *CreateLabelingJobInput) SetHumanTaskConfig(v *HumanTaskConfig) *CreateLabelingJobInput {
- s.HumanTaskConfig = v
- return s
- }
- // SetInputConfig sets the InputConfig field's value.
- func (s *CreateLabelingJobInput) SetInputConfig(v *LabelingJobInputConfig) *CreateLabelingJobInput {
- s.InputConfig = v
- return s
- }
- // SetLabelAttributeName sets the LabelAttributeName field's value.
- func (s *CreateLabelingJobInput) SetLabelAttributeName(v string) *CreateLabelingJobInput {
- s.LabelAttributeName = &v
- return s
- }
- // SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value.
- func (s *CreateLabelingJobInput) SetLabelCategoryConfigS3Uri(v string) *CreateLabelingJobInput {
- s.LabelCategoryConfigS3Uri = &v
- return s
- }
- // SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value.
- func (s *CreateLabelingJobInput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *CreateLabelingJobInput {
- s.LabelingJobAlgorithmsConfig = v
- return s
- }
- // SetLabelingJobName sets the LabelingJobName field's value.
- func (s *CreateLabelingJobInput) SetLabelingJobName(v string) *CreateLabelingJobInput {
- s.LabelingJobName = &v
- return s
- }
- // SetOutputConfig sets the OutputConfig field's value.
- func (s *CreateLabelingJobInput) SetOutputConfig(v *LabelingJobOutputConfig) *CreateLabelingJobInput {
- s.OutputConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CreateLabelingJobInput) SetRoleArn(v string) *CreateLabelingJobInput {
- s.RoleArn = &v
- return s
- }
- // SetStoppingConditions sets the StoppingConditions field's value.
- func (s *CreateLabelingJobInput) SetStoppingConditions(v *LabelingJobStoppingConditions) *CreateLabelingJobInput {
- s.StoppingConditions = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateLabelingJobInput) SetTags(v []*Tag) *CreateLabelingJobInput {
- s.Tags = v
- return s
- }
- type CreateLabelingJobOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the labeling job. You use this ARN to identify
- // the labeling job.
- //
- // LabelingJobArn is a required field
- LabelingJobArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateLabelingJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLabelingJobOutput) GoString() string {
- return s.String()
- }
- // SetLabelingJobArn sets the LabelingJobArn field's value.
- func (s *CreateLabelingJobOutput) SetLabelingJobArn(v string) *CreateLabelingJobOutput {
- s.LabelingJobArn = &v
- return s
- }
- type CreateModelInput struct {
- _ struct{} `type:"structure"`
- // Specifies the containers in the inference pipeline.
- Containers []*ContainerDefinition `type:"list"`
- // Isolates the model container. No inbound or outbound network calls can be
- // made to or from the model container.
- //
- // The Semantic Segmentation built-in algorithm does not support network isolation.
- EnableNetworkIsolation *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can
- // assume to access model artifacts and docker image for deployment on ML compute
- // instances or for batch transform jobs. Deploying on ML compute instances
- // is part of model hosting. For more information, see Amazon SageMaker Roles
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
- //
- // To be able to pass this role to Amazon SageMaker, the caller of this API
- // must have the iam:PassRole permission.
- //
- // ExecutionRoleArn is a required field
- ExecutionRoleArn *string `min:"20" type:"string" required:"true"`
- // The name of the new model.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- // The location of the primary docker image containing inference code, associated
- // artifacts, and custom environment map that the inference code uses when the
- // model is deployed for predictions.
- PrimaryContainer *ContainerDefinition `type:"structure"`
- // An array of key-value pairs. For more information, see Using Cost Allocation
- // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
- // in the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- // A VpcConfig object that specifies the VPC that you want your model to connect
- // to. Control access to and from your model container by configuring the VPC.
- // VpcConfig is used in hosting services and in batch transform. For more information,
- // see Protect Endpoints by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html)
- // and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private
- // Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html).
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s CreateModelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateModelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateModelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"}
- if s.ExecutionRoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn"))
- }
- if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20))
- }
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if s.Containers != nil {
- for i, v := range s.Containers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.PrimaryContainer != nil {
- if err := s.PrimaryContainer.Validate(); err != nil {
- invalidParams.AddNested("PrimaryContainer", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.VpcConfig != nil {
- if err := s.VpcConfig.Validate(); err != nil {
- invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContainers sets the Containers field's value.
- func (s *CreateModelInput) SetContainers(v []*ContainerDefinition) *CreateModelInput {
- s.Containers = v
- return s
- }
- // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
- func (s *CreateModelInput) SetEnableNetworkIsolation(v bool) *CreateModelInput {
- s.EnableNetworkIsolation = &v
- return s
- }
- // SetExecutionRoleArn sets the ExecutionRoleArn field's value.
- func (s *CreateModelInput) SetExecutionRoleArn(v string) *CreateModelInput {
- s.ExecutionRoleArn = &v
- return s
- }
- // SetModelName sets the ModelName field's value.
- func (s *CreateModelInput) SetModelName(v string) *CreateModelInput {
- s.ModelName = &v
- return s
- }
- // SetPrimaryContainer sets the PrimaryContainer field's value.
- func (s *CreateModelInput) SetPrimaryContainer(v *ContainerDefinition) *CreateModelInput {
- s.PrimaryContainer = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput {
- s.Tags = v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *CreateModelInput) SetVpcConfig(v *VpcConfig) *CreateModelInput {
- s.VpcConfig = v
- return s
- }
- type CreateModelOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the model created in Amazon SageMaker.
- //
- // ModelArn is a required field
- ModelArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateModelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateModelOutput) GoString() string {
- return s.String()
- }
- // SetModelArn sets the ModelArn field's value.
- func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput {
- s.ModelArn = &v
- return s
- }
- type CreateModelPackageInput struct {
- _ struct{} `type:"structure"`
- // Whether to certify the model package for listing on AWS Marketplace.
- CertifyForMarketplace *bool `type:"boolean"`
- // Specifies details about inference jobs that can be run with models based
- // on this model package, including the following:
- //
- // * The Amazon ECR paths of containers that contain the inference code and
- // model artifacts.
- //
- // * The instance types that the model package supports for transform jobs
- // and real-time endpoints used for inference.
- //
- // * The input and output content formats that the model package supports
- // for inference.
- InferenceSpecification *InferenceSpecification `type:"structure"`
- // A description of the model package.
- ModelPackageDescription *string `type:"string"`
- // The name of the model package. The name must have 1 to 63 characters. Valid
- // characters are a-z, A-Z, 0-9, and - (hyphen).
- //
- // ModelPackageName is a required field
- ModelPackageName *string `min:"1" type:"string" required:"true"`
- // Details about the algorithm that was used to create the model package.
- SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"`
- // Specifies configurations for one or more transform jobs that Amazon SageMaker
- // runs to test the model package.
- ValidationSpecification *ModelPackageValidationSpecification `type:"structure"`
- }
- // String returns the string representation
- func (s CreateModelPackageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateModelPackageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateModelPackageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateModelPackageInput"}
- if s.ModelPackageName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelPackageName"))
- }
- if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
- }
- if s.InferenceSpecification != nil {
- if err := s.InferenceSpecification.Validate(); err != nil {
- invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.SourceAlgorithmSpecification != nil {
- if err := s.SourceAlgorithmSpecification.Validate(); err != nil {
- invalidParams.AddNested("SourceAlgorithmSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.ValidationSpecification != nil {
- if err := s.ValidationSpecification.Validate(); err != nil {
- invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
- func (s *CreateModelPackageInput) SetCertifyForMarketplace(v bool) *CreateModelPackageInput {
- s.CertifyForMarketplace = &v
- return s
- }
- // SetInferenceSpecification sets the InferenceSpecification field's value.
- func (s *CreateModelPackageInput) SetInferenceSpecification(v *InferenceSpecification) *CreateModelPackageInput {
- s.InferenceSpecification = v
- return s
- }
- // SetModelPackageDescription sets the ModelPackageDescription field's value.
- func (s *CreateModelPackageInput) SetModelPackageDescription(v string) *CreateModelPackageInput {
- s.ModelPackageDescription = &v
- return s
- }
- // SetModelPackageName sets the ModelPackageName field's value.
- func (s *CreateModelPackageInput) SetModelPackageName(v string) *CreateModelPackageInput {
- s.ModelPackageName = &v
- return s
- }
- // SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value.
- func (s *CreateModelPackageInput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *CreateModelPackageInput {
- s.SourceAlgorithmSpecification = v
- return s
- }
- // SetValidationSpecification sets the ValidationSpecification field's value.
- func (s *CreateModelPackageInput) SetValidationSpecification(v *ModelPackageValidationSpecification) *CreateModelPackageInput {
- s.ValidationSpecification = v
- return s
- }
- type CreateModelPackageOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the new model package.
- //
- // ModelPackageArn is a required field
- ModelPackageArn *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateModelPackageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateModelPackageOutput) GoString() string {
- return s.String()
- }
- // SetModelPackageArn sets the ModelPackageArn field's value.
- func (s *CreateModelPackageOutput) SetModelPackageArn(v string) *CreateModelPackageOutput {
- s.ModelPackageArn = &v
- return s
- }
- type CreateNotebookInstanceInput struct {
- _ struct{} `type:"structure"`
- // A list of Elastic Inference (EI) instance types to associate with this notebook
- // instance. Currently, only one instance type can be associated with a notebook
- // instance. For more information, see Using Elastic Inference in Amazon SageMaker
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
- AcceleratorTypes []*string `type:"list"`
- // An array of up to three Git repositories to associate with the notebook instance.
- // These can be either the names of Git repositories stored as resources in
- // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository. These repositories are cloned at the same
- // level as the default repository of your notebook instance. For more information,
- // see Associating Git Repositories with Amazon SageMaker Notebook Instances
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- AdditionalCodeRepositories []*string `type:"list"`
- // A Git repository to associate with the notebook instance as its default code
- // repository. This can be either the name of a Git repository stored as a resource
- // in your account, or the URL of a Git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository. When you open a notebook instance, it opens
- // in the directory that contains this repository. For more information, see
- // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- DefaultCodeRepository *string `min:"1" type:"string"`
- // Sets whether Amazon SageMaker provides internet access to the notebook instance.
- // If you set this to Disabled this notebook instance will be able to access
- // resources only in your VPC, and will not be able to connect to Amazon SageMaker
- // training and endpoint services unless your configure a NAT Gateway in your
- // VPC.
- //
- // For more information, see Notebook Instances Are Internet-Enabled by Default
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access).
- // You can set the value of this parameter to Disabled only if you set a value
- // for the SubnetId parameter.
- DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"`
- // The type of ML compute instance to launch for the notebook instance.
- //
- // InstanceType is a required field
- InstanceType *string `type:"string" required:"true" enum:"InstanceType"`
- // If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data
- // at rest on the ML storage volume that is attached to your notebook instance.
- // The KMS key you provide must be enabled. For information, see Enabling and
- // Disabling Keys (http://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html)
- // in the AWS Key Management Service Developer Guide.
- KmsKeyId *string `type:"string"`
- // The name of a lifecycle configuration to associate with the notebook instance.
- // For information about lifestyle configurations, see Step 2.1: (Optional)
- // Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
- LifecycleConfigName *string `type:"string"`
- // The name of the new notebook instance.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- // When you send any requests to AWS resources from the notebook instance, Amazon
- // SageMaker assumes this role to perform tasks on your behalf. You must grant
- // this role necessary permissions so Amazon SageMaker can perform these tasks.
- // The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com)
- // permissions to assume this role. For more information, see Amazon SageMaker
- // Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
- //
- // To be able to pass this role to Amazon SageMaker, the caller of this API
- // must have the iam:PassRole permission.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups
- // must be for the same VPC as specified in the subnet.
- SecurityGroupIds []*string `type:"list"`
- // The ID of the subnet in a VPC to which you would like to have a connectivity
- // from your ML compute instance.
- SubnetId *string `type:"string"`
- // A list of tags to associate with the notebook instance. You can add tags
- // later by using the CreateTags API.
- Tags []*Tag `type:"list"`
- // The size, in GB, of the ML storage volume to attach to the notebook instance.
- // The default value is 5 GB.
- VolumeSizeInGB *int64 `min:"5" type:"integer"`
- }
- // String returns the string representation
- func (s CreateNotebookInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateNotebookInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateNotebookInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceInput"}
- if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1))
- }
- if s.InstanceType == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceType"))
- }
- if s.NotebookInstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 {
- invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAcceleratorTypes sets the AcceleratorTypes field's value.
- func (s *CreateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *CreateNotebookInstanceInput {
- s.AcceleratorTypes = v
- return s
- }
- // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
- func (s *CreateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *CreateNotebookInstanceInput {
- s.AdditionalCodeRepositories = v
- return s
- }
- // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
- func (s *CreateNotebookInstanceInput) SetDefaultCodeRepository(v string) *CreateNotebookInstanceInput {
- s.DefaultCodeRepository = &v
- return s
- }
- // SetDirectInternetAccess sets the DirectInternetAccess field's value.
- func (s *CreateNotebookInstanceInput) SetDirectInternetAccess(v string) *CreateNotebookInstanceInput {
- s.DirectInternetAccess = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *CreateNotebookInstanceInput) SetInstanceType(v string) *CreateNotebookInstanceInput {
- s.InstanceType = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *CreateNotebookInstanceInput) SetKmsKeyId(v string) *CreateNotebookInstanceInput {
- s.KmsKeyId = &v
- return s
- }
- // SetLifecycleConfigName sets the LifecycleConfigName field's value.
- func (s *CreateNotebookInstanceInput) SetLifecycleConfigName(v string) *CreateNotebookInstanceInput {
- s.LifecycleConfigName = &v
- return s
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *CreateNotebookInstanceInput) SetNotebookInstanceName(v string) *CreateNotebookInstanceInput {
- s.NotebookInstanceName = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CreateNotebookInstanceInput) SetRoleArn(v string) *CreateNotebookInstanceInput {
- s.RoleArn = &v
- return s
- }
- // SetSecurityGroupIds sets the SecurityGroupIds field's value.
- func (s *CreateNotebookInstanceInput) SetSecurityGroupIds(v []*string) *CreateNotebookInstanceInput {
- s.SecurityGroupIds = v
- return s
- }
- // SetSubnetId sets the SubnetId field's value.
- func (s *CreateNotebookInstanceInput) SetSubnetId(v string) *CreateNotebookInstanceInput {
- s.SubnetId = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateNotebookInstanceInput) SetTags(v []*Tag) *CreateNotebookInstanceInput {
- s.Tags = v
- return s
- }
- // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
- func (s *CreateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *CreateNotebookInstanceInput {
- s.VolumeSizeInGB = &v
- return s
- }
- type CreateNotebookInstanceLifecycleConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the lifecycle configuration.
- //
- // NotebookInstanceLifecycleConfigName is a required field
- NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
- // A shell script that runs only once, when you create a notebook instance.
- // The shell script must be a base64-encoded string.
- OnCreate []*NotebookInstanceLifecycleHook `type:"list"`
- // A shell script that runs every time you start a notebook instance, including
- // when you create the notebook instance. The shell script must be a base64-encoded
- // string.
- OnStart []*NotebookInstanceLifecycleHook `type:"list"`
- }
- // String returns the string representation
- func (s CreateNotebookInstanceLifecycleConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateNotebookInstanceLifecycleConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateNotebookInstanceLifecycleConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceLifecycleConfigInput"}
- if s.NotebookInstanceLifecycleConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
- }
- if s.OnCreate != nil {
- for i, v := range s.OnCreate {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OnStart != nil {
- for i, v := range s.OnStart {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *CreateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *CreateNotebookInstanceLifecycleConfigInput {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- // SetOnCreate sets the OnCreate field's value.
- func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput {
- s.OnCreate = v
- return s
- }
- // SetOnStart sets the OnStart field's value.
- func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput {
- s.OnStart = v
- return s
- }
- type CreateNotebookInstanceLifecycleConfigOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the lifecycle configuration.
- NotebookInstanceLifecycleConfigArn *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateNotebookInstanceLifecycleConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateNotebookInstanceLifecycleConfigOutput) GoString() string {
- return s.String()
- }
- // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value.
- func (s *CreateNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *CreateNotebookInstanceLifecycleConfigOutput {
- s.NotebookInstanceLifecycleConfigArn = &v
- return s
- }
- type CreateNotebookInstanceOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the notebook instance.
- NotebookInstanceArn *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateNotebookInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateNotebookInstanceOutput) GoString() string {
- return s.String()
- }
- // SetNotebookInstanceArn sets the NotebookInstanceArn field's value.
- func (s *CreateNotebookInstanceOutput) SetNotebookInstanceArn(v string) *CreateNotebookInstanceOutput {
- s.NotebookInstanceArn = &v
- return s
- }
- type CreatePresignedNotebookInstanceUrlInput struct {
- _ struct{} `type:"structure"`
- // The name of the notebook instance.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- // The duration of the session, in seconds. The default is 12 hours.
- SessionExpirationDurationInSeconds *int64 `min:"1800" type:"integer"`
- }
- // String returns the string representation
- func (s CreatePresignedNotebookInstanceUrlInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePresignedNotebookInstanceUrlInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePresignedNotebookInstanceUrlInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePresignedNotebookInstanceUrlInput"}
- if s.NotebookInstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
- }
- if s.SessionExpirationDurationInSeconds != nil && *s.SessionExpirationDurationInSeconds < 1800 {
- invalidParams.Add(request.NewErrParamMinValue("SessionExpirationDurationInSeconds", 1800))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *CreatePresignedNotebookInstanceUrlInput) SetNotebookInstanceName(v string) *CreatePresignedNotebookInstanceUrlInput {
- s.NotebookInstanceName = &v
- return s
- }
- // SetSessionExpirationDurationInSeconds sets the SessionExpirationDurationInSeconds field's value.
- func (s *CreatePresignedNotebookInstanceUrlInput) SetSessionExpirationDurationInSeconds(v int64) *CreatePresignedNotebookInstanceUrlInput {
- s.SessionExpirationDurationInSeconds = &v
- return s
- }
- type CreatePresignedNotebookInstanceUrlOutput struct {
- _ struct{} `type:"structure"`
- // A JSON object that contains the URL string.
- AuthorizedUrl *string `type:"string"`
- }
- // String returns the string representation
- func (s CreatePresignedNotebookInstanceUrlOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePresignedNotebookInstanceUrlOutput) GoString() string {
- return s.String()
- }
- // SetAuthorizedUrl sets the AuthorizedUrl field's value.
- func (s *CreatePresignedNotebookInstanceUrlOutput) SetAuthorizedUrl(v string) *CreatePresignedNotebookInstanceUrlOutput {
- s.AuthorizedUrl = &v
- return s
- }
- type CreateTrainingJobInput struct {
- _ struct{} `type:"structure"`
- // The registry path of the Docker image that contains the training algorithm
- // and algorithm-specific metadata, including the input mode. For more information
- // about algorithms provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
- // For information about providing your own algorithms, see Using Your Own Algorithms
- // with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html).
- //
- // AlgorithmSpecification is a required field
- AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"`
- // To encrypt all communications between ML compute instances in distributed
- // training, choose True,. Encryption provides greater security for distributed
- // training, but training can take longer because of additional communications
- // between ML compute instances.
- EnableInterContainerTrafficEncryption *bool `type:"boolean"`
- // Isolates the training container. No inbound or outbound network calls can
- // be made, except for calls between peers within a training cluster for distributed
- // training. If you enable network isolation for training jobs that are configured
- // to use a VPC, Amazon SageMaker downloads and uploads customer data and model
- // artifacts through the specified VPC, but the training container does not
- // have network access.
- //
- // The Semantic Segmentation built-in algorithm does not support network isolation.
- EnableNetworkIsolation *bool `type:"boolean"`
- // Algorithm-specific parameters that influence the quality of the model. You
- // set hyperparameters before you start the learning process. For a list of
- // hyperparameters for each training algorithm provided by Amazon SageMaker,
- // see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
- //
- // You can specify a maximum of 100 hyperparameters. Each hyperparameter is
- // a key-value pair. Each key and value is limited to 256 characters, as specified
- // by the Length Constraint.
- HyperParameters map[string]*string `type:"map"`
- // An array of Channel objects. Each channel is a named input source. InputDataConfig
- // describes the input data and its location.
- //
- // Algorithms can accept input data from one or more channels. For example,
- // an algorithm might have two channels of input data, training_data and validation_data.
- // The configuration for each channel provides the S3 location where the input
- // data is stored. It also provides information about the stored data: the MIME
- // type, compression method, and whether the data is wrapped in RecordIO format.
- //
- // Depending on the input mode that the algorithm supports, Amazon SageMaker
- // either copies input data files from an S3 bucket to a local directory in
- // the Docker container, or makes it available as input streams.
- InputDataConfig []*Channel `min:"1" type:"list"`
- // Specifies the path to the S3 bucket where you want to store model artifacts.
- // Amazon SageMaker creates subfolders for the artifacts.
- //
- // OutputDataConfig is a required field
- OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
- // The resources, including the ML compute instances and ML storage volumes,
- // to use for model training.
- //
- // ML storage volumes store model artifacts and incremental states. Training
- // algorithms might also use ML storage volumes for scratch space. If you want
- // Amazon SageMaker to use the ML storage volume to store the training data,
- // choose File as the TrainingInputMode in the algorithm specification. For
- // distributed training algorithms, specify an instance count greater than 1.
- //
- // ResourceConfig is a required field
- ResourceConfig *ResourceConfig `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume
- // to perform tasks on your behalf.
- //
- // During model training, Amazon SageMaker needs your permission to read input
- // data from an S3 bucket, download a Docker image that contains training code,
- // write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs,
- // and publish metrics to Amazon CloudWatch. You grant permissions for all of
- // these tasks to an IAM role. For more information, see Amazon SageMaker Roles
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
- //
- // To be able to pass this role to Amazon SageMaker, the caller of this API
- // must have the iam:PassRole permission.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // Sets a duration for training. Use this parameter to cap model training costs.
- // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which
- // delays job termination for 120 seconds. Algorithms might use this 120-second
- // window to save the model artifacts.
- //
- // When Amazon SageMaker terminates a job because the stopping condition has
- // been met, training algorithms provided by Amazon SageMaker save the intermediate
- // results of the job. This intermediate data is a valid model artifact. You
- // can use it to create a model using the CreateModel API.
- //
- // StoppingCondition is a required field
- StoppingCondition *StoppingCondition `type:"structure" required:"true"`
- // An array of key-value pairs. For more information, see Using Cost Allocation
- // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
- // in the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- // The name of the training job. The name must be unique within an AWS Region
- // in an AWS account.
- //
- // TrainingJobName is a required field
- TrainingJobName *string `min:"1" type:"string" required:"true"`
- // A VpcConfig object that specifies the VPC that you want your training job
- // to connect to. Control access to and from your training container by configuring
- // the VPC. For more information, see Protect Training Jobs by Using an Amazon
- // Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s CreateTrainingJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrainingJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTrainingJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTrainingJobInput"}
- if s.AlgorithmSpecification == nil {
- invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification"))
- }
- if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1))
- }
- if s.OutputDataConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
- }
- if s.ResourceConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.StoppingCondition == nil {
- invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
- }
- if s.TrainingJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingJobName"))
- }
- if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1))
- }
- if s.AlgorithmSpecification != nil {
- if err := s.AlgorithmSpecification.Validate(); err != nil {
- invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.InputDataConfig != nil {
- for i, v := range s.InputDataConfig {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OutputDataConfig != nil {
- if err := s.OutputDataConfig.Validate(); err != nil {
- invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.ResourceConfig != nil {
- if err := s.ResourceConfig.Validate(); err != nil {
- invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.StoppingCondition != nil {
- if err := s.StoppingCondition.Validate(); err != nil {
- invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.VpcConfig != nil {
- if err := s.VpcConfig.Validate(); err != nil {
- invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
- func (s *CreateTrainingJobInput) SetAlgorithmSpecification(v *AlgorithmSpecification) *CreateTrainingJobInput {
- s.AlgorithmSpecification = v
- return s
- }
- // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value.
- func (s *CreateTrainingJobInput) SetEnableInterContainerTrafficEncryption(v bool) *CreateTrainingJobInput {
- s.EnableInterContainerTrafficEncryption = &v
- return s
- }
- // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
- func (s *CreateTrainingJobInput) SetEnableNetworkIsolation(v bool) *CreateTrainingJobInput {
- s.EnableNetworkIsolation = &v
- return s
- }
- // SetHyperParameters sets the HyperParameters field's value.
- func (s *CreateTrainingJobInput) SetHyperParameters(v map[string]*string) *CreateTrainingJobInput {
- s.HyperParameters = v
- return s
- }
- // SetInputDataConfig sets the InputDataConfig field's value.
- func (s *CreateTrainingJobInput) SetInputDataConfig(v []*Channel) *CreateTrainingJobInput {
- s.InputDataConfig = v
- return s
- }
- // SetOutputDataConfig sets the OutputDataConfig field's value.
- func (s *CreateTrainingJobInput) SetOutputDataConfig(v *OutputDataConfig) *CreateTrainingJobInput {
- s.OutputDataConfig = v
- return s
- }
- // SetResourceConfig sets the ResourceConfig field's value.
- func (s *CreateTrainingJobInput) SetResourceConfig(v *ResourceConfig) *CreateTrainingJobInput {
- s.ResourceConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *CreateTrainingJobInput) SetRoleArn(v string) *CreateTrainingJobInput {
- s.RoleArn = &v
- return s
- }
- // SetStoppingCondition sets the StoppingCondition field's value.
- func (s *CreateTrainingJobInput) SetStoppingCondition(v *StoppingCondition) *CreateTrainingJobInput {
- s.StoppingCondition = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateTrainingJobInput) SetTags(v []*Tag) *CreateTrainingJobInput {
- s.Tags = v
- return s
- }
- // SetTrainingJobName sets the TrainingJobName field's value.
- func (s *CreateTrainingJobInput) SetTrainingJobName(v string) *CreateTrainingJobInput {
- s.TrainingJobName = &v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *CreateTrainingJobInput) SetVpcConfig(v *VpcConfig) *CreateTrainingJobInput {
- s.VpcConfig = v
- return s
- }
- type CreateTrainingJobOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the training job.
- //
- // TrainingJobArn is a required field
- TrainingJobArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateTrainingJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrainingJobOutput) GoString() string {
- return s.String()
- }
- // SetTrainingJobArn sets the TrainingJobArn field's value.
- func (s *CreateTrainingJobOutput) SetTrainingJobArn(v string) *CreateTrainingJobOutput {
- s.TrainingJobArn = &v
- return s
- }
- type CreateTransformJobInput struct {
- _ struct{} `type:"structure"`
- // Determines the number of records to include in a mini-batch. If you want
- // to include only one record in a mini-batch, specify SingleRecord.. If you
- // want mini-batches to contain a maximum of the number of records specified
- // in the MaxPayloadInMB parameter, specify MultiRecord.
- //
- // If you set SplitType to Line and BatchStrategy to MultiRecord, a batch transform
- // automatically splits your input data into the specified payload size. There's
- // no need to split the dataset into smaller files or to use larger payload
- // sizes unless the records in your dataset are very large.
- BatchStrategy *string `type:"string" enum:"BatchStrategy"`
- // The environment variables to set in the Docker container. We support up to
- // 16 key and values entries in the map.
- Environment map[string]*string `type:"map"`
- // The maximum number of parallel requests that can be sent to an algorithm
- // container on an instance. This is good for algorithms that implement multiple
- // workers on larger instances . The default value is 1. To allow Amazon SageMaker
- // to determine the appropriate number for MaxConcurrentTransforms, do not set
- // the value in the API.
- MaxConcurrentTransforms *int64 `type:"integer"`
- // The maximum payload size allowed, in MB. A payload is the data portion of
- // a record (without metadata). The value in MaxPayloadInMB must be greater
- // or equal to the size of a single record. You can approximate the size of
- // a record by dividing the size of your dataset by the number of records. Then
- // multiply this value by the number of records you want in a mini-batch. We
- // recommend to enter a slightly larger value than this to ensure the records
- // fit within the maximum payload size. The default value is 6 MB.
- //
- // For cases where the payload might be arbitrarily large and is transmitted
- // using HTTP chunked encoding, set the value to 0. This feature only works
- // in supported algorithms. Currently, Amazon SageMaker built-in algorithms
- // do not support this feature.
- MaxPayloadInMB *int64 `type:"integer"`
- // The name of the model that you want to use for the transform job. ModelName
- // must be the name of an existing Amazon SageMaker model within an AWS Region
- // in an AWS account.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- // (Optional) An array of key-value pairs. For more information, see Using Cost
- // Allocation Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
- // in the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- // Describes the input source and the way the transform job consumes it.
- //
- // TransformInput is a required field
- TransformInput *TransformInput `type:"structure" required:"true"`
- // The name of the transform job. The name must be unique within an AWS Region
- // in an AWS account.
- //
- // TransformJobName is a required field
- TransformJobName *string `min:"1" type:"string" required:"true"`
- // Describes the results of the transform job.
- //
- // TransformOutput is a required field
- TransformOutput *TransformOutput `type:"structure" required:"true"`
- // Describes the resources, including ML instance types and ML instance count,
- // to use for the transform job.
- //
- // TransformResources is a required field
- TransformResources *TransformResources `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateTransformJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTransformJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTransformJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTransformJobInput"}
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if s.TransformInput == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformInput"))
- }
- if s.TransformJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformJobName"))
- }
- if s.TransformJobName != nil && len(*s.TransformJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1))
- }
- if s.TransformOutput == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformOutput"))
- }
- if s.TransformResources == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformResources"))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.TransformInput != nil {
- if err := s.TransformInput.Validate(); err != nil {
- invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams))
- }
- }
- if s.TransformOutput != nil {
- if err := s.TransformOutput.Validate(); err != nil {
- invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams))
- }
- }
- if s.TransformResources != nil {
- if err := s.TransformResources.Validate(); err != nil {
- invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBatchStrategy sets the BatchStrategy field's value.
- func (s *CreateTransformJobInput) SetBatchStrategy(v string) *CreateTransformJobInput {
- s.BatchStrategy = &v
- return s
- }
- // SetEnvironment sets the Environment field's value.
- func (s *CreateTransformJobInput) SetEnvironment(v map[string]*string) *CreateTransformJobInput {
- s.Environment = v
- return s
- }
- // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value.
- func (s *CreateTransformJobInput) SetMaxConcurrentTransforms(v int64) *CreateTransformJobInput {
- s.MaxConcurrentTransforms = &v
- return s
- }
- // SetMaxPayloadInMB sets the MaxPayloadInMB field's value.
- func (s *CreateTransformJobInput) SetMaxPayloadInMB(v int64) *CreateTransformJobInput {
- s.MaxPayloadInMB = &v
- return s
- }
- // SetModelName sets the ModelName field's value.
- func (s *CreateTransformJobInput) SetModelName(v string) *CreateTransformJobInput {
- s.ModelName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateTransformJobInput) SetTags(v []*Tag) *CreateTransformJobInput {
- s.Tags = v
- return s
- }
- // SetTransformInput sets the TransformInput field's value.
- func (s *CreateTransformJobInput) SetTransformInput(v *TransformInput) *CreateTransformJobInput {
- s.TransformInput = v
- return s
- }
- // SetTransformJobName sets the TransformJobName field's value.
- func (s *CreateTransformJobInput) SetTransformJobName(v string) *CreateTransformJobInput {
- s.TransformJobName = &v
- return s
- }
- // SetTransformOutput sets the TransformOutput field's value.
- func (s *CreateTransformJobInput) SetTransformOutput(v *TransformOutput) *CreateTransformJobInput {
- s.TransformOutput = v
- return s
- }
- // SetTransformResources sets the TransformResources field's value.
- func (s *CreateTransformJobInput) SetTransformResources(v *TransformResources) *CreateTransformJobInput {
- s.TransformResources = v
- return s
- }
- type CreateTransformJobOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the transform job.
- //
- // TransformJobArn is a required field
- TransformJobArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateTransformJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTransformJobOutput) GoString() string {
- return s.String()
- }
- // SetTransformJobArn sets the TransformJobArn field's value.
- func (s *CreateTransformJobOutput) SetTransformJobArn(v string) *CreateTransformJobOutput {
- s.TransformJobArn = &v
- return s
- }
- type CreateWorkteamInput struct {
- _ struct{} `type:"structure"`
- // A description of the work team.
- //
- // Description is a required field
- Description *string `min:"1" type:"string" required:"true"`
- // A list of MemberDefinition objects that contains objects that identify the
- // Amazon Cognito user pool that makes up the work team. For more information,
- // see Amazon Cognito User Pools (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html).
- //
- // All of the CognitoMemberDefinition objects that make up the member definition
- // must have the same ClientId and UserPool values.
- //
- // MemberDefinitions is a required field
- MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"`
- Tags []*Tag `type:"list"`
- // The name of the work team. Use this name to identify the work team.
- //
- // WorkteamName is a required field
- WorkteamName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateWorkteamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateWorkteamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateWorkteamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateWorkteamInput"}
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
- }
- if s.Description != nil && len(*s.Description) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Description", 1))
- }
- if s.MemberDefinitions == nil {
- invalidParams.Add(request.NewErrParamRequired("MemberDefinitions"))
- }
- if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1))
- }
- if s.WorkteamName == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
- }
- if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
- }
- if s.MemberDefinitions != nil {
- for i, v := range s.MemberDefinitions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *CreateWorkteamInput) SetDescription(v string) *CreateWorkteamInput {
- s.Description = &v
- return s
- }
- // SetMemberDefinitions sets the MemberDefinitions field's value.
- func (s *CreateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *CreateWorkteamInput {
- s.MemberDefinitions = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateWorkteamInput) SetTags(v []*Tag) *CreateWorkteamInput {
- s.Tags = v
- return s
- }
- // SetWorkteamName sets the WorkteamName field's value.
- func (s *CreateWorkteamInput) SetWorkteamName(v string) *CreateWorkteamInput {
- s.WorkteamName = &v
- return s
- }
- type CreateWorkteamOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the work team. You can use this ARN to
- // identify the work team.
- WorkteamArn *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateWorkteamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateWorkteamOutput) GoString() string {
- return s.String()
- }
- // SetWorkteamArn sets the WorkteamArn field's value.
- func (s *CreateWorkteamOutput) SetWorkteamArn(v string) *CreateWorkteamOutput {
- s.WorkteamArn = &v
- return s
- }
- // Describes the location of the channel data.
- type DataSource struct {
- _ struct{} `type:"structure"`
- // The S3 location of the data source that is associated with a channel.
- //
- // S3DataSource is a required field
- S3DataSource *S3DataSource `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DataSource"}
- if s.S3DataSource == nil {
- invalidParams.Add(request.NewErrParamRequired("S3DataSource"))
- }
- if s.S3DataSource != nil {
- if err := s.S3DataSource.Validate(); err != nil {
- invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetS3DataSource sets the S3DataSource field's value.
- func (s *DataSource) SetS3DataSource(v *S3DataSource) *DataSource {
- s.S3DataSource = v
- return s
- }
- type DeleteAlgorithmInput struct {
- _ struct{} `type:"structure"`
- // The name of the algorithm to delete.
- //
- // AlgorithmName is a required field
- AlgorithmName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteAlgorithmInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAlgorithmInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteAlgorithmInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAlgorithmInput"}
- if s.AlgorithmName == nil {
- invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
- }
- if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *DeleteAlgorithmInput) SetAlgorithmName(v string) *DeleteAlgorithmInput {
- s.AlgorithmName = &v
- return s
- }
- type DeleteAlgorithmOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAlgorithmOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAlgorithmOutput) GoString() string {
- return s.String()
- }
- type DeleteCodeRepositoryInput struct {
- _ struct{} `type:"structure"`
- // The name of the Git repository to delete.
- //
- // CodeRepositoryName is a required field
- CodeRepositoryName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteCodeRepositoryInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCodeRepositoryInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteCodeRepositoryInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCodeRepositoryInput"}
- if s.CodeRepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
- }
- if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCodeRepositoryName sets the CodeRepositoryName field's value.
- func (s *DeleteCodeRepositoryInput) SetCodeRepositoryName(v string) *DeleteCodeRepositoryInput {
- s.CodeRepositoryName = &v
- return s
- }
- type DeleteCodeRepositoryOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteCodeRepositoryOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCodeRepositoryOutput) GoString() string {
- return s.String()
- }
- type DeleteEndpointConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the endpoint configuration that you want to delete.
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteEndpointConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteEndpointConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteEndpointConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointConfigInput"}
- if s.EndpointConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *DeleteEndpointConfigInput) SetEndpointConfigName(v string) *DeleteEndpointConfigInput {
- s.EndpointConfigName = &v
- return s
- }
- type DeleteEndpointConfigOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteEndpointConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteEndpointConfigOutput) GoString() string {
- return s.String()
- }
- type DeleteEndpointInput struct {
- _ struct{} `type:"structure"`
- // The name of the endpoint that you want to delete.
- //
- // EndpointName is a required field
- EndpointName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteEndpointInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteEndpointInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteEndpointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"}
- if s.EndpointName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpointName sets the EndpointName field's value.
- func (s *DeleteEndpointInput) SetEndpointName(v string) *DeleteEndpointInput {
- s.EndpointName = &v
- return s
- }
- type DeleteEndpointOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteEndpointOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteEndpointOutput) GoString() string {
- return s.String()
- }
- type DeleteModelInput struct {
- _ struct{} `type:"structure"`
- // The name of the model to delete.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteModelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteModelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteModelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"}
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetModelName sets the ModelName field's value.
- func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput {
- s.ModelName = &v
- return s
- }
- type DeleteModelOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteModelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteModelOutput) GoString() string {
- return s.String()
- }
- type DeleteModelPackageInput struct {
- _ struct{} `type:"structure"`
- // The name of the model package. The name must have 1 to 63 characters. Valid
- // characters are a-z, A-Z, 0-9, and - (hyphen).
- //
- // ModelPackageName is a required field
- ModelPackageName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteModelPackageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteModelPackageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteModelPackageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteModelPackageInput"}
- if s.ModelPackageName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelPackageName"))
- }
- if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetModelPackageName sets the ModelPackageName field's value.
- func (s *DeleteModelPackageInput) SetModelPackageName(v string) *DeleteModelPackageInput {
- s.ModelPackageName = &v
- return s
- }
- type DeleteModelPackageOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteModelPackageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteModelPackageOutput) GoString() string {
- return s.String()
- }
- type DeleteNotebookInstanceInput struct {
- _ struct{} `type:"structure"`
- // The name of the Amazon SageMaker notebook instance to delete.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteNotebookInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteNotebookInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteNotebookInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceInput"}
- if s.NotebookInstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *DeleteNotebookInstanceInput) SetNotebookInstanceName(v string) *DeleteNotebookInstanceInput {
- s.NotebookInstanceName = &v
- return s
- }
- type DeleteNotebookInstanceLifecycleConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the lifecycle configuration to delete.
- //
- // NotebookInstanceLifecycleConfigName is a required field
- NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteNotebookInstanceLifecycleConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteNotebookInstanceLifecycleConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteNotebookInstanceLifecycleConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceLifecycleConfigInput"}
- if s.NotebookInstanceLifecycleConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *DeleteNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DeleteNotebookInstanceLifecycleConfigInput {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- type DeleteNotebookInstanceLifecycleConfigOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteNotebookInstanceLifecycleConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteNotebookInstanceLifecycleConfigOutput) GoString() string {
- return s.String()
- }
- type DeleteNotebookInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteNotebookInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteNotebookInstanceOutput) GoString() string {
- return s.String()
- }
- type DeleteTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource whose tags you want to delete.
- //
- // ResourceArn is a required field
- ResourceArn *string `type:"string" required:"true"`
- // An array or one or more tag keys to delete.
- //
- // TagKeys is a required field
- TagKeys []*string `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if s.TagKeys != nil && len(s.TagKeys) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *DeleteTagsInput) SetResourceArn(v string) *DeleteTagsInput {
- s.ResourceArn = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput {
- s.TagKeys = v
- return s
- }
- type DeleteTagsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTagsOutput) GoString() string {
- return s.String()
- }
- type DeleteWorkteamInput struct {
- _ struct{} `type:"structure"`
- // The name of the work team to delete.
- //
- // WorkteamName is a required field
- WorkteamName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteWorkteamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteWorkteamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteWorkteamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteWorkteamInput"}
- if s.WorkteamName == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
- }
- if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetWorkteamName sets the WorkteamName field's value.
- func (s *DeleteWorkteamInput) SetWorkteamName(v string) *DeleteWorkteamInput {
- s.WorkteamName = &v
- return s
- }
- type DeleteWorkteamOutput struct {
- _ struct{} `type:"structure"`
- // Returns true if the work team was successfully deleted; otherwise, returns
- // false.
- //
- // Success is a required field
- Success *bool `type:"boolean" required:"true"`
- }
- // String returns the string representation
- func (s DeleteWorkteamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteWorkteamOutput) GoString() string {
- return s.String()
- }
- // SetSuccess sets the Success field's value.
- func (s *DeleteWorkteamOutput) SetSuccess(v bool) *DeleteWorkteamOutput {
- s.Success = &v
- return s
- }
- // Gets the Amazon EC2 Container Registry path of the docker image of the model
- // that is hosted in this ProductionVariant.
- //
- // If you used the registry/repository[:tag] form to specify the image path
- // of the primary container when you created the model hosted in this ProductionVariant,
- // the path resolves to a path of the form registry/repository[@digest]. A digest
- // is a hash value that identifies a specific version of an image. For information
- // about Amazon ECR paths, see Pulling an Image (http://docs.aws.amazon.com//AmazonECR/latest/userguide/docker-pull-ecr-image.html)
- // in the Amazon ECR User Guide.
- type DeployedImage struct {
- _ struct{} `type:"structure"`
- // The date and time when the image path for the model resolved to the ResolvedImage
- ResolutionTime *time.Time `type:"timestamp"`
- // The specific digest path of the image hosted in this ProductionVariant.
- ResolvedImage *string `type:"string"`
- // The image path you specified when you created the model.
- SpecifiedImage *string `type:"string"`
- }
- // String returns the string representation
- func (s DeployedImage) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeployedImage) GoString() string {
- return s.String()
- }
- // SetResolutionTime sets the ResolutionTime field's value.
- func (s *DeployedImage) SetResolutionTime(v time.Time) *DeployedImage {
- s.ResolutionTime = &v
- return s
- }
- // SetResolvedImage sets the ResolvedImage field's value.
- func (s *DeployedImage) SetResolvedImage(v string) *DeployedImage {
- s.ResolvedImage = &v
- return s
- }
- // SetSpecifiedImage sets the SpecifiedImage field's value.
- func (s *DeployedImage) SetSpecifiedImage(v string) *DeployedImage {
- s.SpecifiedImage = &v
- return s
- }
- type DescribeAlgorithmInput struct {
- _ struct{} `type:"structure"`
- // The name of the algorithm to describe.
- //
- // AlgorithmName is a required field
- AlgorithmName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAlgorithmInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAlgorithmInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAlgorithmInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAlgorithmInput"}
- if s.AlgorithmName == nil {
- invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
- }
- if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *DescribeAlgorithmInput) SetAlgorithmName(v string) *DescribeAlgorithmInput {
- s.AlgorithmName = &v
- return s
- }
- type DescribeAlgorithmOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the algorithm.
- //
- // AlgorithmArn is a required field
- AlgorithmArn *string `min:"1" type:"string" required:"true"`
- // A brief summary about the algorithm.
- AlgorithmDescription *string `type:"string"`
- // The name of the algorithm being described.
- //
- // AlgorithmName is a required field
- AlgorithmName *string `min:"1" type:"string" required:"true"`
- // The current status of the algorithm.
- //
- // AlgorithmStatus is a required field
- AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"`
- // Details about the current status of the algorithm.
- //
- // AlgorithmStatusDetails is a required field
- AlgorithmStatusDetails *AlgorithmStatusDetails `type:"structure" required:"true"`
- // Whether the algorithm is certified to be listed in AWS Marketplace.
- CertifyForMarketplace *bool `type:"boolean"`
- // A timestamp specifying when the algorithm was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // Details about inference jobs that the algorithm runs.
- InferenceSpecification *InferenceSpecification `type:"structure"`
- // The product identifier of the algorithm.
- ProductId *string `type:"string"`
- // Details about training jobs run by this algorithm.
- //
- // TrainingSpecification is a required field
- TrainingSpecification *TrainingSpecification `type:"structure" required:"true"`
- // Details about configurations for one or more training jobs that Amazon SageMaker
- // runs to test the algorithm.
- ValidationSpecification *AlgorithmValidationSpecification `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeAlgorithmOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAlgorithmOutput) GoString() string {
- return s.String()
- }
- // SetAlgorithmArn sets the AlgorithmArn field's value.
- func (s *DescribeAlgorithmOutput) SetAlgorithmArn(v string) *DescribeAlgorithmOutput {
- s.AlgorithmArn = &v
- return s
- }
- // SetAlgorithmDescription sets the AlgorithmDescription field's value.
- func (s *DescribeAlgorithmOutput) SetAlgorithmDescription(v string) *DescribeAlgorithmOutput {
- s.AlgorithmDescription = &v
- return s
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *DescribeAlgorithmOutput) SetAlgorithmName(v string) *DescribeAlgorithmOutput {
- s.AlgorithmName = &v
- return s
- }
- // SetAlgorithmStatus sets the AlgorithmStatus field's value.
- func (s *DescribeAlgorithmOutput) SetAlgorithmStatus(v string) *DescribeAlgorithmOutput {
- s.AlgorithmStatus = &v
- return s
- }
- // SetAlgorithmStatusDetails sets the AlgorithmStatusDetails field's value.
- func (s *DescribeAlgorithmOutput) SetAlgorithmStatusDetails(v *AlgorithmStatusDetails) *DescribeAlgorithmOutput {
- s.AlgorithmStatusDetails = v
- return s
- }
- // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
- func (s *DescribeAlgorithmOutput) SetCertifyForMarketplace(v bool) *DescribeAlgorithmOutput {
- s.CertifyForMarketplace = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeAlgorithmOutput) SetCreationTime(v time.Time) *DescribeAlgorithmOutput {
- s.CreationTime = &v
- return s
- }
- // SetInferenceSpecification sets the InferenceSpecification field's value.
- func (s *DescribeAlgorithmOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeAlgorithmOutput {
- s.InferenceSpecification = v
- return s
- }
- // SetProductId sets the ProductId field's value.
- func (s *DescribeAlgorithmOutput) SetProductId(v string) *DescribeAlgorithmOutput {
- s.ProductId = &v
- return s
- }
- // SetTrainingSpecification sets the TrainingSpecification field's value.
- func (s *DescribeAlgorithmOutput) SetTrainingSpecification(v *TrainingSpecification) *DescribeAlgorithmOutput {
- s.TrainingSpecification = v
- return s
- }
- // SetValidationSpecification sets the ValidationSpecification field's value.
- func (s *DescribeAlgorithmOutput) SetValidationSpecification(v *AlgorithmValidationSpecification) *DescribeAlgorithmOutput {
- s.ValidationSpecification = v
- return s
- }
- type DescribeCodeRepositoryInput struct {
- _ struct{} `type:"structure"`
- // The name of the Git repository to describe.
- //
- // CodeRepositoryName is a required field
- CodeRepositoryName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCodeRepositoryInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCodeRepositoryInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCodeRepositoryInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCodeRepositoryInput"}
- if s.CodeRepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
- }
- if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCodeRepositoryName sets the CodeRepositoryName field's value.
- func (s *DescribeCodeRepositoryInput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryInput {
- s.CodeRepositoryName = &v
- return s
- }
- type DescribeCodeRepositoryOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the Git repository.
- //
- // CodeRepositoryArn is a required field
- CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
- // The name of the Git repository.
- //
- // CodeRepositoryName is a required field
- CodeRepositoryName *string `min:"1" type:"string" required:"true"`
- // The date and time that the repository was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // Configuration details about the repository, including the URL where the repository
- // is located, the default branch, and the Amazon Resource Name (ARN) of the
- // AWS Secrets Manager secret that contains the credentials used to access the
- // repository.
- GitConfig *GitConfig `type:"structure"`
- // The date and time that the repository was last changed.
- //
- // LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCodeRepositoryOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCodeRepositoryOutput) GoString() string {
- return s.String()
- }
- // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
- func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryArn(v string) *DescribeCodeRepositoryOutput {
- s.CodeRepositoryArn = &v
- return s
- }
- // SetCodeRepositoryName sets the CodeRepositoryName field's value.
- func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryOutput {
- s.CodeRepositoryName = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeCodeRepositoryOutput) SetCreationTime(v time.Time) *DescribeCodeRepositoryOutput {
- s.CreationTime = &v
- return s
- }
- // SetGitConfig sets the GitConfig field's value.
- func (s *DescribeCodeRepositoryOutput) SetGitConfig(v *GitConfig) *DescribeCodeRepositoryOutput {
- s.GitConfig = v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeCodeRepositoryOutput) SetLastModifiedTime(v time.Time) *DescribeCodeRepositoryOutput {
- s.LastModifiedTime = &v
- return s
- }
- type DescribeCompilationJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the model compilation job that you want information about.
- //
- // CompilationJobName is a required field
- CompilationJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCompilationJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCompilationJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCompilationJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCompilationJobInput"}
- if s.CompilationJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("CompilationJobName"))
- }
- if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCompilationJobName sets the CompilationJobName field's value.
- func (s *DescribeCompilationJobInput) SetCompilationJobName(v string) *DescribeCompilationJobInput {
- s.CompilationJobName = &v
- return s
- }
- type DescribeCompilationJobOutput struct {
- _ struct{} `type:"structure"`
- // The time when the model compilation job on a compilation job instance ended.
- // For a successful or stopped job, this is when the job's model artifacts have
- // finished uploading. For a failed job, this is when Amazon SageMaker detected
- // that the job failed.
- CompilationEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes
- // to perform the model compilation job.
- //
- // CompilationJobArn is a required field
- CompilationJobArn *string `type:"string" required:"true"`
- // The name of the model compilation job.
- //
- // CompilationJobName is a required field
- CompilationJobName *string `min:"1" type:"string" required:"true"`
- // The status of the model compilation job.
- //
- // CompilationJobStatus is a required field
- CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"`
- // The time when the model compilation job started the CompilationJob instances.
- //
- // You are billed for the time between this timestamp and the timestamp in the
- // DescribeCompilationJobResponse$CompilationEndTime field. In Amazon CloudWatch
- // Logs, the start time might be later than this time. That's because it takes
- // time to download the compilation job, which depends on the size of the compilation
- // job container.
- CompilationStartTime *time.Time `type:"timestamp"`
- // The time that the model compilation job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // If a model compilation job failed, the reason it failed.
- //
- // FailureReason is a required field
- FailureReason *string `type:"string" required:"true"`
- // Information about the location in Amazon S3 of the input model artifacts,
- // the name and shape of the expected data inputs, and the framework in which
- // the model was trained.
- //
- // InputConfig is a required field
- InputConfig *InputConfig `type:"structure" required:"true"`
- // The time that the status of the model compilation job was last modified.
- //
- // LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" required:"true"`
- // Information about the location in Amazon S3 that has been configured for
- // storing the model artifacts used in the compilation job.
- //
- // ModelArtifacts is a required field
- ModelArtifacts *ModelArtifacts `type:"structure" required:"true"`
- // Information about the output location for the compiled model and the target
- // device that the model runs on.
- //
- // OutputConfig is a required field
- OutputConfig *OutputConfig `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) of the model compilation job.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // The duration allowed for model compilation.
- //
- // StoppingCondition is a required field
- StoppingCondition *StoppingCondition `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCompilationJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCompilationJobOutput) GoString() string {
- return s.String()
- }
- // SetCompilationEndTime sets the CompilationEndTime field's value.
- func (s *DescribeCompilationJobOutput) SetCompilationEndTime(v time.Time) *DescribeCompilationJobOutput {
- s.CompilationEndTime = &v
- return s
- }
- // SetCompilationJobArn sets the CompilationJobArn field's value.
- func (s *DescribeCompilationJobOutput) SetCompilationJobArn(v string) *DescribeCompilationJobOutput {
- s.CompilationJobArn = &v
- return s
- }
- // SetCompilationJobName sets the CompilationJobName field's value.
- func (s *DescribeCompilationJobOutput) SetCompilationJobName(v string) *DescribeCompilationJobOutput {
- s.CompilationJobName = &v
- return s
- }
- // SetCompilationJobStatus sets the CompilationJobStatus field's value.
- func (s *DescribeCompilationJobOutput) SetCompilationJobStatus(v string) *DescribeCompilationJobOutput {
- s.CompilationJobStatus = &v
- return s
- }
- // SetCompilationStartTime sets the CompilationStartTime field's value.
- func (s *DescribeCompilationJobOutput) SetCompilationStartTime(v time.Time) *DescribeCompilationJobOutput {
- s.CompilationStartTime = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeCompilationJobOutput) SetCreationTime(v time.Time) *DescribeCompilationJobOutput {
- s.CreationTime = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *DescribeCompilationJobOutput) SetFailureReason(v string) *DescribeCompilationJobOutput {
- s.FailureReason = &v
- return s
- }
- // SetInputConfig sets the InputConfig field's value.
- func (s *DescribeCompilationJobOutput) SetInputConfig(v *InputConfig) *DescribeCompilationJobOutput {
- s.InputConfig = v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeCompilationJobOutput) SetLastModifiedTime(v time.Time) *DescribeCompilationJobOutput {
- s.LastModifiedTime = &v
- return s
- }
- // SetModelArtifacts sets the ModelArtifacts field's value.
- func (s *DescribeCompilationJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeCompilationJobOutput {
- s.ModelArtifacts = v
- return s
- }
- // SetOutputConfig sets the OutputConfig field's value.
- func (s *DescribeCompilationJobOutput) SetOutputConfig(v *OutputConfig) *DescribeCompilationJobOutput {
- s.OutputConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DescribeCompilationJobOutput) SetRoleArn(v string) *DescribeCompilationJobOutput {
- s.RoleArn = &v
- return s
- }
- // SetStoppingCondition sets the StoppingCondition field's value.
- func (s *DescribeCompilationJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeCompilationJobOutput {
- s.StoppingCondition = v
- return s
- }
- type DescribeEndpointConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the endpoint configuration.
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeEndpointConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEndpointConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeEndpointConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointConfigInput"}
- if s.EndpointConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *DescribeEndpointConfigInput) SetEndpointConfigName(v string) *DescribeEndpointConfigInput {
- s.EndpointConfigName = &v
- return s
- }
- type DescribeEndpointConfigOutput struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the endpoint configuration was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The Amazon Resource Name (ARN) of the endpoint configuration.
- //
- // EndpointConfigArn is a required field
- EndpointConfigArn *string `min:"20" type:"string" required:"true"`
- // Name of the Amazon SageMaker endpoint configuration.
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the
- // ML storage volume attached to the instance.
- KmsKeyId *string `type:"string"`
- // An array of ProductionVariant objects, one for each model that you want to
- // host at this endpoint.
- //
- // ProductionVariants is a required field
- ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeEndpointConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEndpointConfigOutput) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeEndpointConfigOutput) SetCreationTime(v time.Time) *DescribeEndpointConfigOutput {
- s.CreationTime = &v
- return s
- }
- // SetEndpointConfigArn sets the EndpointConfigArn field's value.
- func (s *DescribeEndpointConfigOutput) SetEndpointConfigArn(v string) *DescribeEndpointConfigOutput {
- s.EndpointConfigArn = &v
- return s
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *DescribeEndpointConfigOutput) SetEndpointConfigName(v string) *DescribeEndpointConfigOutput {
- s.EndpointConfigName = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *DescribeEndpointConfigOutput) SetKmsKeyId(v string) *DescribeEndpointConfigOutput {
- s.KmsKeyId = &v
- return s
- }
- // SetProductionVariants sets the ProductionVariants field's value.
- func (s *DescribeEndpointConfigOutput) SetProductionVariants(v []*ProductionVariant) *DescribeEndpointConfigOutput {
- s.ProductionVariants = v
- return s
- }
- type DescribeEndpointInput struct {
- _ struct{} `type:"structure"`
- // The name of the endpoint.
- //
- // EndpointName is a required field
- EndpointName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeEndpointInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEndpointInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeEndpointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointInput"}
- if s.EndpointName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpointName sets the EndpointName field's value.
- func (s *DescribeEndpointInput) SetEndpointName(v string) *DescribeEndpointInput {
- s.EndpointName = &v
- return s
- }
- type DescribeEndpointOutput struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the endpoint was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The Amazon Resource Name (ARN) of the endpoint.
- //
- // EndpointArn is a required field
- EndpointArn *string `min:"20" type:"string" required:"true"`
- // The name of the endpoint configuration associated with this endpoint.
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- // Name of the endpoint.
- //
- // EndpointName is a required field
- EndpointName *string `type:"string" required:"true"`
- // The status of the endpoint.
- //
- // * OutOfService: Endpoint is not available to take incoming requests.
- //
- // * Creating: CreateEndpoint is executing.
- //
- // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
- //
- // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated
- // or deleted or re-scaled until it has completed. This maintenance operation
- // does not change any customer-specified values such as VPC config, KMS
- // encryption, model, instance type, or instance count.
- //
- // * RollingBack: Endpoint fails to scale up or down or change its variant
- // weight and is in the process of rolling back to its previous configuration.
- // Once the rollback completes, endpoint returns to an InService status.
- // This transitional status only applies to an endpoint that has autoscaling
- // enabled and is undergoing variant weight or capacity changes as part of
- // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities
- // operation is called explicitly.
- //
- // * InService: Endpoint is available to process incoming requests.
- //
- // * Deleting: DeleteEndpoint is executing.
- //
- // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason
- // for information about the failure. DeleteEndpoint is the only operation
- // that can be performed on a failed endpoint.
- //
- // EndpointStatus is a required field
- EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"`
- // If the status of the endpoint is Failed, the reason why it failed.
- FailureReason *string `type:"string"`
- // A timestamp that shows when the endpoint was last modified.
- //
- // LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" required:"true"`
- // An array of ProductionVariantSummary objects, one for each model hosted behind
- // this endpoint.
- ProductionVariants []*ProductionVariantSummary `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s DescribeEndpointOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEndpointOutput) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeEndpointOutput) SetCreationTime(v time.Time) *DescribeEndpointOutput {
- s.CreationTime = &v
- return s
- }
- // SetEndpointArn sets the EndpointArn field's value.
- func (s *DescribeEndpointOutput) SetEndpointArn(v string) *DescribeEndpointOutput {
- s.EndpointArn = &v
- return s
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *DescribeEndpointOutput) SetEndpointConfigName(v string) *DescribeEndpointOutput {
- s.EndpointConfigName = &v
- return s
- }
- // SetEndpointName sets the EndpointName field's value.
- func (s *DescribeEndpointOutput) SetEndpointName(v string) *DescribeEndpointOutput {
- s.EndpointName = &v
- return s
- }
- // SetEndpointStatus sets the EndpointStatus field's value.
- func (s *DescribeEndpointOutput) SetEndpointStatus(v string) *DescribeEndpointOutput {
- s.EndpointStatus = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *DescribeEndpointOutput) SetFailureReason(v string) *DescribeEndpointOutput {
- s.FailureReason = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeEndpointOutput) SetLastModifiedTime(v time.Time) *DescribeEndpointOutput {
- s.LastModifiedTime = &v
- return s
- }
- // SetProductionVariants sets the ProductionVariants field's value.
- func (s *DescribeEndpointOutput) SetProductionVariants(v []*ProductionVariantSummary) *DescribeEndpointOutput {
- s.ProductionVariants = v
- return s
- }
- type DescribeHyperParameterTuningJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the tuning job to describe.
- //
- // HyperParameterTuningJobName is a required field
- HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeHyperParameterTuningJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHyperParameterTuningJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeHyperParameterTuningJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeHyperParameterTuningJobInput"}
- if s.HyperParameterTuningJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
- }
- if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
- func (s *DescribeHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobInput {
- s.HyperParameterTuningJobName = &v
- return s
- }
- type DescribeHyperParameterTuningJobOutput struct {
- _ struct{} `type:"structure"`
- // A TrainingJobSummary object that describes the training job that completed
- // with the best current HyperParameterTuningJobObjective.
- BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"`
- // The date and time that the tuning job started.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // If the tuning job failed, the reason it failed.
- FailureReason *string `type:"string"`
- // The date and time that the tuning job ended.
- HyperParameterTuningEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the tuning job.
- //
- // HyperParameterTuningJobArn is a required field
- HyperParameterTuningJobArn *string `type:"string" required:"true"`
- // The HyperParameterTuningJobConfig object that specifies the configuration
- // of the tuning job.
- //
- // HyperParameterTuningJobConfig is a required field
- HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"`
- // The name of the tuning job.
- //
- // HyperParameterTuningJobName is a required field
- HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
- // The status of the tuning job: InProgress, Completed, Failed, Stopping, or
- // Stopped.
- //
- // HyperParameterTuningJobStatus is a required field
- HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"`
- // The date and time that the status of the tuning job was modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // The ObjectiveStatusCounters object that specifies the number of training
- // jobs, categorized by the status of their final objective metric, that this
- // tuning job launched.
- //
- // ObjectiveStatusCounters is a required field
- ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"`
- // If the hyperparameter tuning job is an warm start tuning job with a WarmStartType
- // of IDENTICAL_DATA_AND_ALGORITHM, this is the TrainingJobSummary for the training
- // job with the best objective metric value of all training jobs launched by
- // this tuning job and all parent jobs specified for the warm start tuning job.
- OverallBestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"`
- // The HyperParameterTrainingJobDefinition object that specifies the definition
- // of the training jobs that this tuning job launches.
- //
- // TrainingJobDefinition is a required field
- TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"`
- // The TrainingJobStatusCounters object that specifies the number of training
- // jobs, categorized by status, that this tuning job launched.
- //
- // TrainingJobStatusCounters is a required field
- TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"`
- // The configuration for starting the hyperparameter parameter tuning job using
- // one or more previous tuning jobs as a starting point. The results of previous
- // tuning jobs are used to inform which combinations of hyperparameters to search
- // over in the new tuning job.
- WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeHyperParameterTuningJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHyperParameterTuningJobOutput) GoString() string {
- return s.String()
- }
- // SetBestTrainingJob sets the BestTrainingJob field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput {
- s.BestTrainingJob = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetCreationTime(v time.Time) *DescribeHyperParameterTuningJobOutput {
- s.CreationTime = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetFailureReason(v string) *DescribeHyperParameterTuningJobOutput {
- s.FailureReason = &v
- return s
- }
- // SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningEndTime(v time.Time) *DescribeHyperParameterTuningJobOutput {
- s.HyperParameterTuningEndTime = &v
- return s
- }
- // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *DescribeHyperParameterTuningJobOutput {
- s.HyperParameterTuningJobArn = &v
- return s
- }
- // SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *DescribeHyperParameterTuningJobOutput {
- s.HyperParameterTuningJobConfig = v
- return s
- }
- // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobOutput {
- s.HyperParameterTuningJobName = &v
- return s
- }
- // SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobStatus(v string) *DescribeHyperParameterTuningJobOutput {
- s.HyperParameterTuningJobStatus = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetLastModifiedTime(v time.Time) *DescribeHyperParameterTuningJobOutput {
- s.LastModifiedTime = &v
- return s
- }
- // SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *DescribeHyperParameterTuningJobOutput {
- s.ObjectiveStatusCounters = v
- return s
- }
- // SetOverallBestTrainingJob sets the OverallBestTrainingJob field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetOverallBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput {
- s.OverallBestTrainingJob = v
- return s
- }
- // SetTrainingJobDefinition sets the TrainingJobDefinition field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *DescribeHyperParameterTuningJobOutput {
- s.TrainingJobDefinition = v
- return s
- }
- // SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *DescribeHyperParameterTuningJobOutput {
- s.TrainingJobStatusCounters = v
- return s
- }
- // SetWarmStartConfig sets the WarmStartConfig field's value.
- func (s *DescribeHyperParameterTuningJobOutput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *DescribeHyperParameterTuningJobOutput {
- s.WarmStartConfig = v
- return s
- }
- type DescribeLabelingJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the labeling job to return information for.
- //
- // LabelingJobName is a required field
- LabelingJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeLabelingJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLabelingJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeLabelingJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeLabelingJobInput"}
- if s.LabelingJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("LabelingJobName"))
- }
- if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLabelingJobName sets the LabelingJobName field's value.
- func (s *DescribeLabelingJobInput) SetLabelingJobName(v string) *DescribeLabelingJobInput {
- s.LabelingJobName = &v
- return s
- }
- type DescribeLabelingJobOutput struct {
- _ struct{} `type:"structure"`
- // The date and time that the labeling job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // If the job failed, the reason that it failed.
- FailureReason *string `type:"string"`
- // Configuration information required for human workers to complete a labeling
- // task.
- //
- // HumanTaskConfig is a required field
- HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"`
- // Input configuration information for the labeling job, such as the Amazon
- // S3 location of the data objects and the location of the manifest file that
- // describes the data objects.
- //
- // InputConfig is a required field
- InputConfig *LabelingJobInputConfig `type:"structure" required:"true"`
- // A unique identifier for work done as part of a labeling job.
- //
- // JobReferenceCode is a required field
- JobReferenceCode *string `min:"1" type:"string" required:"true"`
- // The attribute used as the label in the output manifest file.
- LabelAttributeName *string `min:"1" type:"string"`
- // The S3 location of the JSON file that defines the categories used to label
- // data objects.
- //
- // The file is a JSON structure in the following format:
- //
- // {
- //
- // "document-version": "2018-11-28"
- //
- // "labels": [
- //
- // {
- //
- // "label": "label 1"
- //
- // },
- //
- // {
- //
- // "label": "label 2"
- //
- // },
- //
- // ...
- //
- // {
- //
- // "label": "label n"
- //
- // }
- //
- // ]
- //
- // }
- LabelCategoryConfigS3Uri *string `type:"string"`
- // Provides a breakdown of the number of data objects labeled by humans, the
- // number of objects labeled by machine, the number of objects than couldn't
- // be labeled, and the total number of objects labeled.
- //
- // LabelCounters is a required field
- LabelCounters *LabelCounters `type:"structure" required:"true"`
- // Configuration information for automated data labeling.
- LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"`
- // The Amazon Resource Name (ARN) of the labeling job.
- //
- // LabelingJobArn is a required field
- LabelingJobArn *string `type:"string" required:"true"`
- // The name assigned to the labeling job when it was created.
- //
- // LabelingJobName is a required field
- LabelingJobName *string `min:"1" type:"string" required:"true"`
- // The location of the output produced by the labeling job.
- LabelingJobOutput *LabelingJobOutput `type:"structure"`
- // The processing status of the labeling job.
- //
- // LabelingJobStatus is a required field
- LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"`
- // The date and time that the labeling job was last updated.
- //
- // LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" required:"true"`
- // The location of the job's output data and the AWS Key Management Service
- // key ID for the key used to encrypt the output data, if any.
- //
- // OutputConfig is a required field
- OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks
- // on your behalf during data labeling.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // A set of conditions for stopping a labeling job. If any of the conditions
- // are met, the job is automatically stopped.
- StoppingConditions *LabelingJobStoppingConditions `type:"structure"`
- // An array of key/value pairs. For more information, see Using Cost Allocation
- // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
- // in the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s DescribeLabelingJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLabelingJobOutput) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeLabelingJobOutput) SetCreationTime(v time.Time) *DescribeLabelingJobOutput {
- s.CreationTime = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *DescribeLabelingJobOutput) SetFailureReason(v string) *DescribeLabelingJobOutput {
- s.FailureReason = &v
- return s
- }
- // SetHumanTaskConfig sets the HumanTaskConfig field's value.
- func (s *DescribeLabelingJobOutput) SetHumanTaskConfig(v *HumanTaskConfig) *DescribeLabelingJobOutput {
- s.HumanTaskConfig = v
- return s
- }
- // SetInputConfig sets the InputConfig field's value.
- func (s *DescribeLabelingJobOutput) SetInputConfig(v *LabelingJobInputConfig) *DescribeLabelingJobOutput {
- s.InputConfig = v
- return s
- }
- // SetJobReferenceCode sets the JobReferenceCode field's value.
- func (s *DescribeLabelingJobOutput) SetJobReferenceCode(v string) *DescribeLabelingJobOutput {
- s.JobReferenceCode = &v
- return s
- }
- // SetLabelAttributeName sets the LabelAttributeName field's value.
- func (s *DescribeLabelingJobOutput) SetLabelAttributeName(v string) *DescribeLabelingJobOutput {
- s.LabelAttributeName = &v
- return s
- }
- // SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value.
- func (s *DescribeLabelingJobOutput) SetLabelCategoryConfigS3Uri(v string) *DescribeLabelingJobOutput {
- s.LabelCategoryConfigS3Uri = &v
- return s
- }
- // SetLabelCounters sets the LabelCounters field's value.
- func (s *DescribeLabelingJobOutput) SetLabelCounters(v *LabelCounters) *DescribeLabelingJobOutput {
- s.LabelCounters = v
- return s
- }
- // SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value.
- func (s *DescribeLabelingJobOutput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *DescribeLabelingJobOutput {
- s.LabelingJobAlgorithmsConfig = v
- return s
- }
- // SetLabelingJobArn sets the LabelingJobArn field's value.
- func (s *DescribeLabelingJobOutput) SetLabelingJobArn(v string) *DescribeLabelingJobOutput {
- s.LabelingJobArn = &v
- return s
- }
- // SetLabelingJobName sets the LabelingJobName field's value.
- func (s *DescribeLabelingJobOutput) SetLabelingJobName(v string) *DescribeLabelingJobOutput {
- s.LabelingJobName = &v
- return s
- }
- // SetLabelingJobOutput sets the LabelingJobOutput field's value.
- func (s *DescribeLabelingJobOutput) SetLabelingJobOutput(v *LabelingJobOutput) *DescribeLabelingJobOutput {
- s.LabelingJobOutput = v
- return s
- }
- // SetLabelingJobStatus sets the LabelingJobStatus field's value.
- func (s *DescribeLabelingJobOutput) SetLabelingJobStatus(v string) *DescribeLabelingJobOutput {
- s.LabelingJobStatus = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeLabelingJobOutput) SetLastModifiedTime(v time.Time) *DescribeLabelingJobOutput {
- s.LastModifiedTime = &v
- return s
- }
- // SetOutputConfig sets the OutputConfig field's value.
- func (s *DescribeLabelingJobOutput) SetOutputConfig(v *LabelingJobOutputConfig) *DescribeLabelingJobOutput {
- s.OutputConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DescribeLabelingJobOutput) SetRoleArn(v string) *DescribeLabelingJobOutput {
- s.RoleArn = &v
- return s
- }
- // SetStoppingConditions sets the StoppingConditions field's value.
- func (s *DescribeLabelingJobOutput) SetStoppingConditions(v *LabelingJobStoppingConditions) *DescribeLabelingJobOutput {
- s.StoppingConditions = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *DescribeLabelingJobOutput) SetTags(v []*Tag) *DescribeLabelingJobOutput {
- s.Tags = v
- return s
- }
- type DescribeModelInput struct {
- _ struct{} `type:"structure"`
- // The name of the model.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeModelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeModelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeModelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"}
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetModelName sets the ModelName field's value.
- func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput {
- s.ModelName = &v
- return s
- }
- type DescribeModelOutput struct {
- _ struct{} `type:"structure"`
- // The containers in the inference pipeline.
- Containers []*ContainerDefinition `type:"list"`
- // A timestamp that shows when the model was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // If True, no inbound or outbound network calls can be made to or from the
- // model container.
- //
- // The Semantic Segmentation built-in algorithm does not support network isolation.
- EnableNetworkIsolation *bool `type:"boolean"`
- // The Amazon Resource Name (ARN) of the IAM role that you specified for the
- // model.
- //
- // ExecutionRoleArn is a required field
- ExecutionRoleArn *string `min:"20" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the model.
- //
- // ModelArn is a required field
- ModelArn *string `min:"20" type:"string" required:"true"`
- // Name of the Amazon SageMaker model.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- // The location of the primary inference code, associated artifacts, and custom
- // environment map that the inference code uses when it is deployed in production.
- PrimaryContainer *ContainerDefinition `type:"structure"`
- // A VpcConfig object that specifies the VPC that this model has access to.
- // For more information, see Protect Endpoints by Using an Amazon Virtual Private
- // Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html)
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeModelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeModelOutput) GoString() string {
- return s.String()
- }
- // SetContainers sets the Containers field's value.
- func (s *DescribeModelOutput) SetContainers(v []*ContainerDefinition) *DescribeModelOutput {
- s.Containers = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeModelOutput) SetCreationTime(v time.Time) *DescribeModelOutput {
- s.CreationTime = &v
- return s
- }
- // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
- func (s *DescribeModelOutput) SetEnableNetworkIsolation(v bool) *DescribeModelOutput {
- s.EnableNetworkIsolation = &v
- return s
- }
- // SetExecutionRoleArn sets the ExecutionRoleArn field's value.
- func (s *DescribeModelOutput) SetExecutionRoleArn(v string) *DescribeModelOutput {
- s.ExecutionRoleArn = &v
- return s
- }
- // SetModelArn sets the ModelArn field's value.
- func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput {
- s.ModelArn = &v
- return s
- }
- // SetModelName sets the ModelName field's value.
- func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput {
- s.ModelName = &v
- return s
- }
- // SetPrimaryContainer sets the PrimaryContainer field's value.
- func (s *DescribeModelOutput) SetPrimaryContainer(v *ContainerDefinition) *DescribeModelOutput {
- s.PrimaryContainer = v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *DescribeModelOutput) SetVpcConfig(v *VpcConfig) *DescribeModelOutput {
- s.VpcConfig = v
- return s
- }
- type DescribeModelPackageInput struct {
- _ struct{} `type:"structure"`
- // The name of the model package to describe.
- //
- // ModelPackageName is a required field
- ModelPackageName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeModelPackageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeModelPackageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeModelPackageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeModelPackageInput"}
- if s.ModelPackageName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelPackageName"))
- }
- if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetModelPackageName sets the ModelPackageName field's value.
- func (s *DescribeModelPackageInput) SetModelPackageName(v string) *DescribeModelPackageInput {
- s.ModelPackageName = &v
- return s
- }
- type DescribeModelPackageOutput struct {
- _ struct{} `type:"structure"`
- // Whether the model package is certified for listing on AWS Marketplace.
- CertifyForMarketplace *bool `type:"boolean"`
- // A timestamp specifying when the model package was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // Details about inference jobs that can be run with models based on this model
- // package.
- InferenceSpecification *InferenceSpecification `type:"structure"`
- // The Amazon Resource Name (ARN) of the model package.
- //
- // ModelPackageArn is a required field
- ModelPackageArn *string `min:"1" type:"string" required:"true"`
- // A brief summary of the model package.
- ModelPackageDescription *string `type:"string"`
- // The name of the model package being described.
- //
- // ModelPackageName is a required field
- ModelPackageName *string `min:"1" type:"string" required:"true"`
- // The current status of the model package.
- //
- // ModelPackageStatus is a required field
- ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"`
- // Details about the current status of the model package.
- //
- // ModelPackageStatusDetails is a required field
- ModelPackageStatusDetails *ModelPackageStatusDetails `type:"structure" required:"true"`
- // Details about the algorithm that was used to create the model package.
- SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"`
- // Configurations for one or more transform jobs that Amazon SageMaker runs
- // to test the model package.
- ValidationSpecification *ModelPackageValidationSpecification `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeModelPackageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeModelPackageOutput) GoString() string {
- return s.String()
- }
- // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
- func (s *DescribeModelPackageOutput) SetCertifyForMarketplace(v bool) *DescribeModelPackageOutput {
- s.CertifyForMarketplace = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeModelPackageOutput) SetCreationTime(v time.Time) *DescribeModelPackageOutput {
- s.CreationTime = &v
- return s
- }
- // SetInferenceSpecification sets the InferenceSpecification field's value.
- func (s *DescribeModelPackageOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeModelPackageOutput {
- s.InferenceSpecification = v
- return s
- }
- // SetModelPackageArn sets the ModelPackageArn field's value.
- func (s *DescribeModelPackageOutput) SetModelPackageArn(v string) *DescribeModelPackageOutput {
- s.ModelPackageArn = &v
- return s
- }
- // SetModelPackageDescription sets the ModelPackageDescription field's value.
- func (s *DescribeModelPackageOutput) SetModelPackageDescription(v string) *DescribeModelPackageOutput {
- s.ModelPackageDescription = &v
- return s
- }
- // SetModelPackageName sets the ModelPackageName field's value.
- func (s *DescribeModelPackageOutput) SetModelPackageName(v string) *DescribeModelPackageOutput {
- s.ModelPackageName = &v
- return s
- }
- // SetModelPackageStatus sets the ModelPackageStatus field's value.
- func (s *DescribeModelPackageOutput) SetModelPackageStatus(v string) *DescribeModelPackageOutput {
- s.ModelPackageStatus = &v
- return s
- }
- // SetModelPackageStatusDetails sets the ModelPackageStatusDetails field's value.
- func (s *DescribeModelPackageOutput) SetModelPackageStatusDetails(v *ModelPackageStatusDetails) *DescribeModelPackageOutput {
- s.ModelPackageStatusDetails = v
- return s
- }
- // SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value.
- func (s *DescribeModelPackageOutput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *DescribeModelPackageOutput {
- s.SourceAlgorithmSpecification = v
- return s
- }
- // SetValidationSpecification sets the ValidationSpecification field's value.
- func (s *DescribeModelPackageOutput) SetValidationSpecification(v *ModelPackageValidationSpecification) *DescribeModelPackageOutput {
- s.ValidationSpecification = v
- return s
- }
- type DescribeNotebookInstanceInput struct {
- _ struct{} `type:"structure"`
- // The name of the notebook instance that you want information about.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeNotebookInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeNotebookInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeNotebookInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceInput"}
- if s.NotebookInstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *DescribeNotebookInstanceInput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceInput {
- s.NotebookInstanceName = &v
- return s
- }
- type DescribeNotebookInstanceLifecycleConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the lifecycle configuration to describe.
- //
- // NotebookInstanceLifecycleConfigName is a required field
- NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeNotebookInstanceLifecycleConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeNotebookInstanceLifecycleConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeNotebookInstanceLifecycleConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceLifecycleConfigInput"}
- if s.NotebookInstanceLifecycleConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *DescribeNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigInput {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- type DescribeNotebookInstanceLifecycleConfigOutput struct {
- _ struct{} `type:"structure"`
- // A timestamp that tells when the lifecycle configuration was created.
- CreationTime *time.Time `type:"timestamp"`
- // A timestamp that tells when the lifecycle configuration was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the lifecycle configuration.
- NotebookInstanceLifecycleConfigArn *string `type:"string"`
- // The name of the lifecycle configuration.
- NotebookInstanceLifecycleConfigName *string `type:"string"`
- // The shell script that runs only once, when you create a notebook instance.
- OnCreate []*NotebookInstanceLifecycleHook `type:"list"`
- // The shell script that runs every time you start a notebook instance, including
- // when you create the notebook instance.
- OnStart []*NotebookInstanceLifecycleHook `type:"list"`
- }
- // String returns the string representation
- func (s DescribeNotebookInstanceLifecycleConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeNotebookInstanceLifecycleConfigOutput) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput {
- s.CreationTime = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput {
- s.LastModifiedTime = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value.
- func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *DescribeNotebookInstanceLifecycleConfigOutput {
- s.NotebookInstanceLifecycleConfigArn = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigOutput {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- // SetOnCreate sets the OnCreate field's value.
- func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput {
- s.OnCreate = v
- return s
- }
- // SetOnStart sets the OnStart field's value.
- func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnStart(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput {
- s.OnStart = v
- return s
- }
- type DescribeNotebookInstanceOutput struct {
- _ struct{} `type:"structure"`
- // A list of the Elastic Inference (EI) instance types associated with this
- // notebook instance. Currently only one EI instance type can be associated
- // with a notebook instance. For more information, see Using Elastic Inference
- // in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
- AcceleratorTypes []*string `type:"list"`
- // An array of up to three Git repositories associated with the notebook instance.
- // These can be either the names of Git repositories stored as resources in
- // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository. These repositories are cloned at the same
- // level as the default repository of your notebook instance. For more information,
- // see Associating Git Repositories with Amazon SageMaker Notebook Instances
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- AdditionalCodeRepositories []*string `type:"list"`
- // A timestamp. Use this parameter to return the time when the notebook instance
- // was created
- CreationTime *time.Time `type:"timestamp"`
- // The Git repository associated with the notebook instance as its default code
- // repository. This can be either the name of a Git repository stored as a resource
- // in your account, or the URL of a Git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository. When you open a notebook instance, it opens
- // in the directory that contains this repository. For more information, see
- // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- DefaultCodeRepository *string `min:"1" type:"string"`
- // Describes whether Amazon SageMaker provides internet access to the notebook
- // instance. If this value is set to Disabled, he notebook instance does not
- // have internet access, and cannot connect to Amazon SageMaker training and
- // endpoint services.
- //
- // For more information, see Notebook Instances Are Internet-Enabled by Default
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access).
- DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"`
- // If status is Failed, the reason it failed.
- FailureReason *string `type:"string"`
- // The type of ML compute instance running on the notebook instance.
- InstanceType *string `type:"string" enum:"InstanceType"`
- // The AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it
- // on the ML storage volume attached to the instance.
- KmsKeyId *string `type:"string"`
- // A timestamp. Use this parameter to retrieve the time when the notebook instance
- // was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // The network interface IDs that Amazon SageMaker created at the time of creating
- // the instance.
- NetworkInterfaceId *string `type:"string"`
- // The Amazon Resource Name (ARN) of the notebook instance.
- NotebookInstanceArn *string `type:"string"`
- // Returns the name of a notebook instance lifecycle configuration.
- //
- // For information about notebook instance lifestyle configurations, see Step
- // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html)
- NotebookInstanceLifecycleConfigName *string `type:"string"`
- // The name of the Amazon SageMaker notebook instance.
- NotebookInstanceName *string `type:"string"`
- // The status of the notebook instance.
- NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"`
- // The Amazon Resource Name (ARN) of the IAM role associated with the instance.
- RoleArn *string `min:"20" type:"string"`
- // The IDs of the VPC security groups.
- SecurityGroups []*string `type:"list"`
- // The ID of the VPC subnet.
- SubnetId *string `type:"string"`
- // The URL that you use to connect to the Jupyter notebook that is running in
- // your notebook instance.
- Url *string `type:"string"`
- // The size, in GB, of the ML storage volume attached to the notebook instance.
- VolumeSizeInGB *int64 `min:"5" type:"integer"`
- }
- // String returns the string representation
- func (s DescribeNotebookInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeNotebookInstanceOutput) GoString() string {
- return s.String()
- }
- // SetAcceleratorTypes sets the AcceleratorTypes field's value.
- func (s *DescribeNotebookInstanceOutput) SetAcceleratorTypes(v []*string) *DescribeNotebookInstanceOutput {
- s.AcceleratorTypes = v
- return s
- }
- // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
- func (s *DescribeNotebookInstanceOutput) SetAdditionalCodeRepositories(v []*string) *DescribeNotebookInstanceOutput {
- s.AdditionalCodeRepositories = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeNotebookInstanceOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceOutput {
- s.CreationTime = &v
- return s
- }
- // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
- func (s *DescribeNotebookInstanceOutput) SetDefaultCodeRepository(v string) *DescribeNotebookInstanceOutput {
- s.DefaultCodeRepository = &v
- return s
- }
- // SetDirectInternetAccess sets the DirectInternetAccess field's value.
- func (s *DescribeNotebookInstanceOutput) SetDirectInternetAccess(v string) *DescribeNotebookInstanceOutput {
- s.DirectInternetAccess = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *DescribeNotebookInstanceOutput) SetFailureReason(v string) *DescribeNotebookInstanceOutput {
- s.FailureReason = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *DescribeNotebookInstanceOutput) SetInstanceType(v string) *DescribeNotebookInstanceOutput {
- s.InstanceType = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *DescribeNotebookInstanceOutput) SetKmsKeyId(v string) *DescribeNotebookInstanceOutput {
- s.KmsKeyId = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeNotebookInstanceOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceOutput {
- s.LastModifiedTime = &v
- return s
- }
- // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
- func (s *DescribeNotebookInstanceOutput) SetNetworkInterfaceId(v string) *DescribeNotebookInstanceOutput {
- s.NetworkInterfaceId = &v
- return s
- }
- // SetNotebookInstanceArn sets the NotebookInstanceArn field's value.
- func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceArn(v string) *DescribeNotebookInstanceOutput {
- s.NotebookInstanceArn = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceOutput {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceOutput {
- s.NotebookInstanceName = &v
- return s
- }
- // SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value.
- func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceStatus(v string) *DescribeNotebookInstanceOutput {
- s.NotebookInstanceStatus = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DescribeNotebookInstanceOutput) SetRoleArn(v string) *DescribeNotebookInstanceOutput {
- s.RoleArn = &v
- return s
- }
- // SetSecurityGroups sets the SecurityGroups field's value.
- func (s *DescribeNotebookInstanceOutput) SetSecurityGroups(v []*string) *DescribeNotebookInstanceOutput {
- s.SecurityGroups = v
- return s
- }
- // SetSubnetId sets the SubnetId field's value.
- func (s *DescribeNotebookInstanceOutput) SetSubnetId(v string) *DescribeNotebookInstanceOutput {
- s.SubnetId = &v
- return s
- }
- // SetUrl sets the Url field's value.
- func (s *DescribeNotebookInstanceOutput) SetUrl(v string) *DescribeNotebookInstanceOutput {
- s.Url = &v
- return s
- }
- // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
- func (s *DescribeNotebookInstanceOutput) SetVolumeSizeInGB(v int64) *DescribeNotebookInstanceOutput {
- s.VolumeSizeInGB = &v
- return s
- }
- type DescribeSubscribedWorkteamInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the subscribed work team to describe.
- //
- // WorkteamArn is a required field
- WorkteamArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeSubscribedWorkteamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSubscribedWorkteamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeSubscribedWorkteamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeSubscribedWorkteamInput"}
- if s.WorkteamArn == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkteamArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetWorkteamArn sets the WorkteamArn field's value.
- func (s *DescribeSubscribedWorkteamInput) SetWorkteamArn(v string) *DescribeSubscribedWorkteamInput {
- s.WorkteamArn = &v
- return s
- }
- type DescribeSubscribedWorkteamOutput struct {
- _ struct{} `type:"structure"`
- // A Workteam instance that contains information about the work team.
- //
- // SubscribedWorkteam is a required field
- SubscribedWorkteam *SubscribedWorkteam `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DescribeSubscribedWorkteamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSubscribedWorkteamOutput) GoString() string {
- return s.String()
- }
- // SetSubscribedWorkteam sets the SubscribedWorkteam field's value.
- func (s *DescribeSubscribedWorkteamOutput) SetSubscribedWorkteam(v *SubscribedWorkteam) *DescribeSubscribedWorkteamOutput {
- s.SubscribedWorkteam = v
- return s
- }
- type DescribeTrainingJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the training job.
- //
- // TrainingJobName is a required field
- TrainingJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeTrainingJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTrainingJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTrainingJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTrainingJobInput"}
- if s.TrainingJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingJobName"))
- }
- if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTrainingJobName sets the TrainingJobName field's value.
- func (s *DescribeTrainingJobInput) SetTrainingJobName(v string) *DescribeTrainingJobInput {
- s.TrainingJobName = &v
- return s
- }
- type DescribeTrainingJobOutput struct {
- _ struct{} `type:"structure"`
- // Information about the algorithm used for training, and algorithm metadata.
- //
- // AlgorithmSpecification is a required field
- AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"`
- // A timestamp that indicates when the training job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // To encrypt all communications between ML compute instances in distributed
- // training, specify True. Encryption provides greater security for distributed
- // training, but training take longer because of the additional communications
- // between ML compute instances.
- EnableInterContainerTrafficEncryption *bool `type:"boolean"`
- // If you want to allow inbound or outbound network calls, except for calls
- // between peers within a training cluster for distributed training, choose
- // True. If you enable network isolation for training jobs that are configured
- // to use a VPC, Amazon SageMaker downloads and uploads customer data and model
- // artifacts through the specified VPC, but the training container does not
- // have network access.
- //
- // The Semantic Segmentation built-in algorithm does not support network isolation.
- EnableNetworkIsolation *bool `type:"boolean"`
- // If the training job failed, the reason it failed.
- FailureReason *string `type:"string"`
- // A collection of MetricData objects that specify the names, values, and dates
- // and times that the training algorithm emitted to Amazon CloudWatch.
- FinalMetricDataList []*MetricData `type:"list"`
- // Algorithm-specific parameters.
- HyperParameters map[string]*string `type:"map"`
- // An array of Channel objects that describes each data input channel.
- InputDataConfig []*Channel `min:"1" type:"list"`
- // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling
- // job that created the transform or training job.
- LabelingJobArn *string `type:"string"`
- // A timestamp that indicates when the status of the training job was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // Information about the Amazon S3 location that is configured for storing model
- // artifacts.
- //
- // ModelArtifacts is a required field
- ModelArtifacts *ModelArtifacts `type:"structure" required:"true"`
- // The S3 path where model artifacts that you configured when creating the job
- // are stored. Amazon SageMaker creates subfolders for model artifacts.
- OutputDataConfig *OutputDataConfig `type:"structure"`
- // Resources, including ML compute instances and ML storage volumes, that are
- // configured for model training.
- //
- // ResourceConfig is a required field
- ResourceConfig *ResourceConfig `type:"structure" required:"true"`
- // The AWS Identity and Access Management (IAM) role configured for the training
- // job.
- RoleArn *string `min:"20" type:"string"`
- // Provides detailed information about the state of the training job. For detailed
- // information on the secondary status of the training job, see StatusMessage
- // under SecondaryStatusTransition.
- //
- // Amazon SageMaker provides primary statuses and secondary statuses that apply
- // to each of them:
- //
- // InProgressStarting - Starting the training job.
- //
- // Downloading - An optional stage for algorithms that support File training
- // input mode. It indicates that data is being downloaded to the ML storage
- // volumes.
- //
- // Training - Training is in progress.
- //
- // Uploading - Training is complete and the model artifacts are being uploaded
- // to the S3 location.
- //
- // CompletedCompleted - The training job has completed.
- //
- // FailedFailed - The training job has failed. The reason for the failure is
- // returned in the FailureReason field of DescribeTrainingJobResponse.
- //
- // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum
- // allowed runtime.
- //
- // Stopped - The training job has stopped.
- //
- // StoppingStopping - Stopping the training job.
- //
- // Valid values for SecondaryStatus are subject to change.
- //
- // We no longer support the following secondary statuses:
- //
- // * LaunchingMLInstances
- //
- // * PreparingTrainingStack
- //
- // * DownloadingTrainingImage
- //
- // SecondaryStatus is a required field
- SecondaryStatus *string `type:"string" required:"true" enum:"SecondaryStatus"`
- // A history of all of the secondary statuses that the training job has transitioned
- // through.
- SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"`
- // The condition under which to stop the training job.
- //
- // StoppingCondition is a required field
- StoppingCondition *StoppingCondition `type:"structure" required:"true"`
- // Indicates the time when the training job ends on training instances. You
- // are billed for the time interval between the value of TrainingStartTime and
- // this time. For successful jobs and stopped jobs, this is the time after model
- // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
- // detects a job failure.
- TrainingEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the training job.
- //
- // TrainingJobArn is a required field
- TrainingJobArn *string `type:"string" required:"true"`
- // Name of the model training job.
- //
- // TrainingJobName is a required field
- TrainingJobName *string `min:"1" type:"string" required:"true"`
- // The status of the training job.
- //
- // Amazon SageMaker provides the following training job statuses:
- //
- // * InProgress - The training is in progress.
- //
- // * Completed - The training job has completed.
- //
- // * Failed - The training job has failed. To see the reason for the failure,
- // see the FailureReason field in the response to a DescribeTrainingJobResponse
- // call.
- //
- // * Stopping - The training job is stopping.
- //
- // * Stopped - The training job has stopped.
- //
- // For more detailed information, see SecondaryStatus.
- //
- // TrainingJobStatus is a required field
- TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"`
- // Indicates the time when the training job starts on training instances. You
- // are billed for the time interval between this time and the value of TrainingEndTime.
- // The start time in CloudWatch Logs might be later than this time. The difference
- // is due to the time it takes to download the training data and to the size
- // of the training container.
- TrainingStartTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job
- // if the training job was launched by a hyperparameter tuning job.
- TuningJobArn *string `type:"string"`
- // A VpcConfig object that specifies the VPC that this training job has access
- // to. For more information, see Protect Training Jobs by Using an Amazon Virtual
- // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeTrainingJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTrainingJobOutput) GoString() string {
- return s.String()
- }
- // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
- func (s *DescribeTrainingJobOutput) SetAlgorithmSpecification(v *AlgorithmSpecification) *DescribeTrainingJobOutput {
- s.AlgorithmSpecification = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeTrainingJobOutput) SetCreationTime(v time.Time) *DescribeTrainingJobOutput {
- s.CreationTime = &v
- return s
- }
- // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value.
- func (s *DescribeTrainingJobOutput) SetEnableInterContainerTrafficEncryption(v bool) *DescribeTrainingJobOutput {
- s.EnableInterContainerTrafficEncryption = &v
- return s
- }
- // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
- func (s *DescribeTrainingJobOutput) SetEnableNetworkIsolation(v bool) *DescribeTrainingJobOutput {
- s.EnableNetworkIsolation = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *DescribeTrainingJobOutput) SetFailureReason(v string) *DescribeTrainingJobOutput {
- s.FailureReason = &v
- return s
- }
- // SetFinalMetricDataList sets the FinalMetricDataList field's value.
- func (s *DescribeTrainingJobOutput) SetFinalMetricDataList(v []*MetricData) *DescribeTrainingJobOutput {
- s.FinalMetricDataList = v
- return s
- }
- // SetHyperParameters sets the HyperParameters field's value.
- func (s *DescribeTrainingJobOutput) SetHyperParameters(v map[string]*string) *DescribeTrainingJobOutput {
- s.HyperParameters = v
- return s
- }
- // SetInputDataConfig sets the InputDataConfig field's value.
- func (s *DescribeTrainingJobOutput) SetInputDataConfig(v []*Channel) *DescribeTrainingJobOutput {
- s.InputDataConfig = v
- return s
- }
- // SetLabelingJobArn sets the LabelingJobArn field's value.
- func (s *DescribeTrainingJobOutput) SetLabelingJobArn(v string) *DescribeTrainingJobOutput {
- s.LabelingJobArn = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *DescribeTrainingJobOutput) SetLastModifiedTime(v time.Time) *DescribeTrainingJobOutput {
- s.LastModifiedTime = &v
- return s
- }
- // SetModelArtifacts sets the ModelArtifacts field's value.
- func (s *DescribeTrainingJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeTrainingJobOutput {
- s.ModelArtifacts = v
- return s
- }
- // SetOutputDataConfig sets the OutputDataConfig field's value.
- func (s *DescribeTrainingJobOutput) SetOutputDataConfig(v *OutputDataConfig) *DescribeTrainingJobOutput {
- s.OutputDataConfig = v
- return s
- }
- // SetResourceConfig sets the ResourceConfig field's value.
- func (s *DescribeTrainingJobOutput) SetResourceConfig(v *ResourceConfig) *DescribeTrainingJobOutput {
- s.ResourceConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DescribeTrainingJobOutput) SetRoleArn(v string) *DescribeTrainingJobOutput {
- s.RoleArn = &v
- return s
- }
- // SetSecondaryStatus sets the SecondaryStatus field's value.
- func (s *DescribeTrainingJobOutput) SetSecondaryStatus(v string) *DescribeTrainingJobOutput {
- s.SecondaryStatus = &v
- return s
- }
- // SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value.
- func (s *DescribeTrainingJobOutput) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *DescribeTrainingJobOutput {
- s.SecondaryStatusTransitions = v
- return s
- }
- // SetStoppingCondition sets the StoppingCondition field's value.
- func (s *DescribeTrainingJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeTrainingJobOutput {
- s.StoppingCondition = v
- return s
- }
- // SetTrainingEndTime sets the TrainingEndTime field's value.
- func (s *DescribeTrainingJobOutput) SetTrainingEndTime(v time.Time) *DescribeTrainingJobOutput {
- s.TrainingEndTime = &v
- return s
- }
- // SetTrainingJobArn sets the TrainingJobArn field's value.
- func (s *DescribeTrainingJobOutput) SetTrainingJobArn(v string) *DescribeTrainingJobOutput {
- s.TrainingJobArn = &v
- return s
- }
- // SetTrainingJobName sets the TrainingJobName field's value.
- func (s *DescribeTrainingJobOutput) SetTrainingJobName(v string) *DescribeTrainingJobOutput {
- s.TrainingJobName = &v
- return s
- }
- // SetTrainingJobStatus sets the TrainingJobStatus field's value.
- func (s *DescribeTrainingJobOutput) SetTrainingJobStatus(v string) *DescribeTrainingJobOutput {
- s.TrainingJobStatus = &v
- return s
- }
- // SetTrainingStartTime sets the TrainingStartTime field's value.
- func (s *DescribeTrainingJobOutput) SetTrainingStartTime(v time.Time) *DescribeTrainingJobOutput {
- s.TrainingStartTime = &v
- return s
- }
- // SetTuningJobArn sets the TuningJobArn field's value.
- func (s *DescribeTrainingJobOutput) SetTuningJobArn(v string) *DescribeTrainingJobOutput {
- s.TuningJobArn = &v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *DescribeTrainingJobOutput) SetVpcConfig(v *VpcConfig) *DescribeTrainingJobOutput {
- s.VpcConfig = v
- return s
- }
- type DescribeTransformJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the transform job that you want to view details of.
- //
- // TransformJobName is a required field
- TransformJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeTransformJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTransformJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTransformJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTransformJobInput"}
- if s.TransformJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformJobName"))
- }
- if s.TransformJobName != nil && len(*s.TransformJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTransformJobName sets the TransformJobName field's value.
- func (s *DescribeTransformJobInput) SetTransformJobName(v string) *DescribeTransformJobInput {
- s.TransformJobName = &v
- return s
- }
- type DescribeTransformJobOutput struct {
- _ struct{} `type:"structure"`
- // If you want to include only one record in a batch, specify SingleRecord..
- // If you want batches to contain a maximum of the number of records specified
- // in the MaxPayloadInMB parameter, specify MultiRecord.S
- BatchStrategy *string `type:"string" enum:"BatchStrategy"`
- // A timestamp that shows when the transform Job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- Environment map[string]*string `type:"map"`
- // If the transform job failed, the reason that it failed.
- FailureReason *string `type:"string"`
- // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling
- // job that created the transform or training job.
- LabelingJobArn *string `type:"string"`
- // The maximum number of parallel requests on each instance node that can be
- // launched in a transform job. The default value is 1.
- MaxConcurrentTransforms *int64 `type:"integer"`
- // The maximum payload size, in MB, used in the transform job.
- MaxPayloadInMB *int64 `type:"integer"`
- // The name of the model used in the transform job.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- // Indicates when the transform job has been completed, or has stopped or failed.
- // You are billed for the time interval between this time and the value of TransformStartTime.
- TransformEndTime *time.Time `type:"timestamp"`
- // Describes the dataset to be transformed and the Amazon S3 location where
- // it is stored.
- //
- // TransformInput is a required field
- TransformInput *TransformInput `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) of the transform job.
- //
- // TransformJobArn is a required field
- TransformJobArn *string `type:"string" required:"true"`
- // The name of the transform job.
- //
- // TransformJobName is a required field
- TransformJobName *string `min:"1" type:"string" required:"true"`
- // The status of the transform job. If the transform job failed, the reason
- // is returned in the FailureReason field.
- //
- // TransformJobStatus is a required field
- TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"`
- // Identifies the Amazon S3 location where you want Amazon SageMaker to save
- // the results from the transform job.
- TransformOutput *TransformOutput `type:"structure"`
- // Describes the resources, including ML instance types and ML instance count,
- // to use for the transform job.
- //
- // TransformResources is a required field
- TransformResources *TransformResources `type:"structure" required:"true"`
- // Indicates when the transform job starts on ML instances. You are billed for
- // the time interval between this time and the value of TransformEndTime.
- TransformStartTime *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s DescribeTransformJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTransformJobOutput) GoString() string {
- return s.String()
- }
- // SetBatchStrategy sets the BatchStrategy field's value.
- func (s *DescribeTransformJobOutput) SetBatchStrategy(v string) *DescribeTransformJobOutput {
- s.BatchStrategy = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DescribeTransformJobOutput) SetCreationTime(v time.Time) *DescribeTransformJobOutput {
- s.CreationTime = &v
- return s
- }
- // SetEnvironment sets the Environment field's value.
- func (s *DescribeTransformJobOutput) SetEnvironment(v map[string]*string) *DescribeTransformJobOutput {
- s.Environment = v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *DescribeTransformJobOutput) SetFailureReason(v string) *DescribeTransformJobOutput {
- s.FailureReason = &v
- return s
- }
- // SetLabelingJobArn sets the LabelingJobArn field's value.
- func (s *DescribeTransformJobOutput) SetLabelingJobArn(v string) *DescribeTransformJobOutput {
- s.LabelingJobArn = &v
- return s
- }
- // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value.
- func (s *DescribeTransformJobOutput) SetMaxConcurrentTransforms(v int64) *DescribeTransformJobOutput {
- s.MaxConcurrentTransforms = &v
- return s
- }
- // SetMaxPayloadInMB sets the MaxPayloadInMB field's value.
- func (s *DescribeTransformJobOutput) SetMaxPayloadInMB(v int64) *DescribeTransformJobOutput {
- s.MaxPayloadInMB = &v
- return s
- }
- // SetModelName sets the ModelName field's value.
- func (s *DescribeTransformJobOutput) SetModelName(v string) *DescribeTransformJobOutput {
- s.ModelName = &v
- return s
- }
- // SetTransformEndTime sets the TransformEndTime field's value.
- func (s *DescribeTransformJobOutput) SetTransformEndTime(v time.Time) *DescribeTransformJobOutput {
- s.TransformEndTime = &v
- return s
- }
- // SetTransformInput sets the TransformInput field's value.
- func (s *DescribeTransformJobOutput) SetTransformInput(v *TransformInput) *DescribeTransformJobOutput {
- s.TransformInput = v
- return s
- }
- // SetTransformJobArn sets the TransformJobArn field's value.
- func (s *DescribeTransformJobOutput) SetTransformJobArn(v string) *DescribeTransformJobOutput {
- s.TransformJobArn = &v
- return s
- }
- // SetTransformJobName sets the TransformJobName field's value.
- func (s *DescribeTransformJobOutput) SetTransformJobName(v string) *DescribeTransformJobOutput {
- s.TransformJobName = &v
- return s
- }
- // SetTransformJobStatus sets the TransformJobStatus field's value.
- func (s *DescribeTransformJobOutput) SetTransformJobStatus(v string) *DescribeTransformJobOutput {
- s.TransformJobStatus = &v
- return s
- }
- // SetTransformOutput sets the TransformOutput field's value.
- func (s *DescribeTransformJobOutput) SetTransformOutput(v *TransformOutput) *DescribeTransformJobOutput {
- s.TransformOutput = v
- return s
- }
- // SetTransformResources sets the TransformResources field's value.
- func (s *DescribeTransformJobOutput) SetTransformResources(v *TransformResources) *DescribeTransformJobOutput {
- s.TransformResources = v
- return s
- }
- // SetTransformStartTime sets the TransformStartTime field's value.
- func (s *DescribeTransformJobOutput) SetTransformStartTime(v time.Time) *DescribeTransformJobOutput {
- s.TransformStartTime = &v
- return s
- }
- type DescribeWorkteamInput struct {
- _ struct{} `type:"structure"`
- // The name of the work team to return a description of.
- //
- // WorkteamName is a required field
- WorkteamName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeWorkteamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeWorkteamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeWorkteamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeWorkteamInput"}
- if s.WorkteamName == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
- }
- if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetWorkteamName sets the WorkteamName field's value.
- func (s *DescribeWorkteamInput) SetWorkteamName(v string) *DescribeWorkteamInput {
- s.WorkteamName = &v
- return s
- }
- type DescribeWorkteamOutput struct {
- _ struct{} `type:"structure"`
- // A Workteam instance that contains information about the work team.
- //
- // Workteam is a required field
- Workteam *Workteam `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DescribeWorkteamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeWorkteamOutput) GoString() string {
- return s.String()
- }
- // SetWorkteam sets the Workteam field's value.
- func (s *DescribeWorkteamOutput) SetWorkteam(v *Workteam) *DescribeWorkteamOutput {
- s.Workteam = v
- return s
- }
- // Specifies weight and capacity values for a production variant.
- type DesiredWeightAndCapacity struct {
- _ struct{} `type:"structure"`
- // The variant's capacity.
- DesiredInstanceCount *int64 `min:"1" type:"integer"`
- // The variant's weight.
- DesiredWeight *float64 `type:"float"`
- // The name of the variant to update.
- //
- // VariantName is a required field
- VariantName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DesiredWeightAndCapacity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DesiredWeightAndCapacity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DesiredWeightAndCapacity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DesiredWeightAndCapacity"}
- if s.DesiredInstanceCount != nil && *s.DesiredInstanceCount < 1 {
- invalidParams.Add(request.NewErrParamMinValue("DesiredInstanceCount", 1))
- }
- if s.VariantName == nil {
- invalidParams.Add(request.NewErrParamRequired("VariantName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDesiredInstanceCount sets the DesiredInstanceCount field's value.
- func (s *DesiredWeightAndCapacity) SetDesiredInstanceCount(v int64) *DesiredWeightAndCapacity {
- s.DesiredInstanceCount = &v
- return s
- }
- // SetDesiredWeight sets the DesiredWeight field's value.
- func (s *DesiredWeightAndCapacity) SetDesiredWeight(v float64) *DesiredWeightAndCapacity {
- s.DesiredWeight = &v
- return s
- }
- // SetVariantName sets the VariantName field's value.
- func (s *DesiredWeightAndCapacity) SetVariantName(v string) *DesiredWeightAndCapacity {
- s.VariantName = &v
- return s
- }
- // Provides summary information for an endpoint configuration.
- type EndpointConfigSummary struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the endpoint configuration was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The Amazon Resource Name (ARN) of the endpoint configuration.
- //
- // EndpointConfigArn is a required field
- EndpointConfigArn *string `min:"20" type:"string" required:"true"`
- // The name of the endpoint configuration.
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s EndpointConfigSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EndpointConfigSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *EndpointConfigSummary) SetCreationTime(v time.Time) *EndpointConfigSummary {
- s.CreationTime = &v
- return s
- }
- // SetEndpointConfigArn sets the EndpointConfigArn field's value.
- func (s *EndpointConfigSummary) SetEndpointConfigArn(v string) *EndpointConfigSummary {
- s.EndpointConfigArn = &v
- return s
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *EndpointConfigSummary) SetEndpointConfigName(v string) *EndpointConfigSummary {
- s.EndpointConfigName = &v
- return s
- }
- // Provides summary information for an endpoint.
- type EndpointSummary struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the endpoint was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The Amazon Resource Name (ARN) of the endpoint.
- //
- // EndpointArn is a required field
- EndpointArn *string `min:"20" type:"string" required:"true"`
- // The name of the endpoint.
- //
- // EndpointName is a required field
- EndpointName *string `type:"string" required:"true"`
- // The status of the endpoint.
- //
- // * OutOfService: Endpoint is not available to take incoming requests.
- //
- // * Creating: CreateEndpoint is executing.
- //
- // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
- //
- // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated
- // or deleted or re-scaled until it has completed. This mainenance operation
- // does not change any customer-specified values such as VPC config, KMS
- // encryption, model, instance type, or instance count.
- //
- // * RollingBack: Endpoint fails to scale up or down or change its variant
- // weight and is in the process of rolling back to its previous configuration.
- // Once the rollback completes, endpoint returns to an InService status.
- // This transitional status only applies to an endpoint that has autoscaling
- // enabled and is undergoing variant weight or capacity changes as part of
- // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities
- // operation is called explicitly.
- //
- // * InService: Endpoint is available to process incoming requests.
- //
- // * Deleting: DeleteEndpoint is executing.
- //
- // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason
- // for information about the failure. DeleteEndpoint is the only operation
- // that can be performed on a failed endpoint.
- //
- // To get a list of endpoints with a specified status, use the ListEndpointsInput$StatusEquals
- // filter.
- //
- // EndpointStatus is a required field
- EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"`
- // A timestamp that shows when the endpoint was last modified.
- //
- // LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" required:"true"`
- }
- // String returns the string representation
- func (s EndpointSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EndpointSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *EndpointSummary) SetCreationTime(v time.Time) *EndpointSummary {
- s.CreationTime = &v
- return s
- }
- // SetEndpointArn sets the EndpointArn field's value.
- func (s *EndpointSummary) SetEndpointArn(v string) *EndpointSummary {
- s.EndpointArn = &v
- return s
- }
- // SetEndpointName sets the EndpointName field's value.
- func (s *EndpointSummary) SetEndpointName(v string) *EndpointSummary {
- s.EndpointName = &v
- return s
- }
- // SetEndpointStatus sets the EndpointStatus field's value.
- func (s *EndpointSummary) SetEndpointStatus(v string) *EndpointSummary {
- s.EndpointStatus = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *EndpointSummary) SetLastModifiedTime(v time.Time) *EndpointSummary {
- s.LastModifiedTime = &v
- return s
- }
- // A conditional statement for a search expression that includes a Boolean operator,
- // a resource property, and a value.
- //
- // If you don't specify an Operator and a Value, the filter searches for only
- // the specified property. For example, defining a Filter for the FailureReason
- // for the TrainingJobResource searches for training job objects that have a
- // value in the FailureReason field.
- //
- // If you specify a Value, but not an Operator, Amazon SageMaker uses the equals
- // operator as the default.
- //
- // In search, there are several property types:
- //
- // MetricsTo define a metric filter, enter a value using the form "Metrics.<name>",
- // where <name> is a metric name. For example, the following filter searches
- // for training jobs with an "accuracy" metric greater than "0.9":
- //
- // {
- //
- // "Name": "Metrics.accuracy",
- //
- // "Operator": "GREATER_THAN",
- //
- // "Value": "0.9"
- //
- // }
- //
- // HyperParametersTo define a hyperparameter filter, enter a value with the
- // form "HyperParameters.<name>". Decimal hyperparameter values are treated
- // as a decimal in a comparison if the specified Value is also a decimal value.
- // If the specified Value is an integer, the decimal hyperparameter values are
- // treated as integers. For example, the following filter is satisfied by training
- // jobs with a "learning_rate" hyperparameter that is less than "0.5":
- //
- // {
- //
- // "Name": "HyperParameters.learning_rate",
- //
- // "Operator": "LESS_THAN",
- //
- // "Value": "0.5"
- //
- // }
- //
- // TagsTo define a tag filter, enter a value with the form "Tags.<key>".
- type Filter struct {
- _ struct{} `type:"structure"`
- // A property name. For example, TrainingJobName. For the list of valid property
- // names returned in a search result for each supported resource, see TrainingJob
- // properties. You must specify a valid property name for the resource.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // A Boolean binary operator that is used to evaluate the filter. The operator
- // field contains one of the following values:
- //
- // EqualsThe specified resource in Name equals the specified Value.
- //
- // NotEqualsThe specified resource in Name does not equal the specified Value.
- //
- // GreaterThanThe specified resource in Name is greater than the specified Value.
- // Not supported for text-based properties.
- //
- // GreaterThanOrEqualToThe specified resource in Name is greater than or equal
- // to the specified Value. Not supported for text-based properties.
- //
- // LessThanThe specified resource in Name is less than the specified Value.
- // Not supported for text-based properties.
- //
- // LessThanOrEqualToThe specified resource in Name is less than or equal to
- // the specified Value. Not supported for text-based properties.
- //
- // ContainsOnly supported for text-based properties. The word-list of the property
- // contains the specified Value.
- //
- // If you have specified a filter Value, the default is Equals.
- Operator *string `type:"string" enum:"Operator"`
- // A value used with Resource and Operator to determine if objects satisfy the
- // filter's condition. For numerical properties, Value must be an integer or
- // floating-point decimal. For timestamp properties, Value must be an ISO 8601
- // date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS.
- Value *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s Filter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Filter) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Filter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Filter"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Value != nil && len(*s.Value) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Value", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *Filter) SetName(v string) *Filter {
- s.Name = &v
- return s
- }
- // SetOperator sets the Operator field's value.
- func (s *Filter) SetOperator(v string) *Filter {
- s.Operator = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Filter) SetValue(v string) *Filter {
- s.Value = &v
- return s
- }
- // Shows the final value for the objective metric for a training job that was
- // launched by a hyperparameter tuning job. You define the objective metric
- // in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig.
- type FinalHyperParameterTuningJobObjectiveMetric struct {
- _ struct{} `type:"structure"`
- // The name of the objective metric.
- //
- // MetricName is a required field
- MetricName *string `min:"1" type:"string" required:"true"`
- // Whether to minimize or maximize the objective metric. Valid values are Minimize
- // and Maximize.
- Type *string `type:"string" enum:"HyperParameterTuningJobObjectiveType"`
- // The value of the objective metric.
- //
- // Value is a required field
- Value *float64 `type:"float" required:"true"`
- }
- // String returns the string representation
- func (s FinalHyperParameterTuningJobObjectiveMetric) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FinalHyperParameterTuningJobObjectiveMetric) GoString() string {
- return s.String()
- }
- // SetMetricName sets the MetricName field's value.
- func (s *FinalHyperParameterTuningJobObjectiveMetric) SetMetricName(v string) *FinalHyperParameterTuningJobObjectiveMetric {
- s.MetricName = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *FinalHyperParameterTuningJobObjectiveMetric) SetType(v string) *FinalHyperParameterTuningJobObjectiveMetric {
- s.Type = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *FinalHyperParameterTuningJobObjectiveMetric) SetValue(v float64) *FinalHyperParameterTuningJobObjectiveMetric {
- s.Value = &v
- return s
- }
- type GetSearchSuggestionsInput struct {
- _ struct{} `type:"structure"`
- // The name of the Amazon SageMaker resource to Search for. The only valid Resource
- // value is TrainingJob.
- //
- // Resource is a required field
- Resource *string `type:"string" required:"true" enum:"ResourceType"`
- // Limits the property names that are included in the response.
- SuggestionQuery *SuggestionQuery `type:"structure"`
- }
- // String returns the string representation
- func (s GetSearchSuggestionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetSearchSuggestionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetSearchSuggestionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetSearchSuggestionsInput"}
- if s.Resource == nil {
- invalidParams.Add(request.NewErrParamRequired("Resource"))
- }
- if s.SuggestionQuery != nil {
- if err := s.SuggestionQuery.Validate(); err != nil {
- invalidParams.AddNested("SuggestionQuery", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResource sets the Resource field's value.
- func (s *GetSearchSuggestionsInput) SetResource(v string) *GetSearchSuggestionsInput {
- s.Resource = &v
- return s
- }
- // SetSuggestionQuery sets the SuggestionQuery field's value.
- func (s *GetSearchSuggestionsInput) SetSuggestionQuery(v *SuggestionQuery) *GetSearchSuggestionsInput {
- s.SuggestionQuery = v
- return s
- }
- type GetSearchSuggestionsOutput struct {
- _ struct{} `type:"structure"`
- // A list of property names for a Resource that match a SuggestionQuery.
- PropertyNameSuggestions []*PropertyNameSuggestion `type:"list"`
- }
- // String returns the string representation
- func (s GetSearchSuggestionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetSearchSuggestionsOutput) GoString() string {
- return s.String()
- }
- // SetPropertyNameSuggestions sets the PropertyNameSuggestions field's value.
- func (s *GetSearchSuggestionsOutput) SetPropertyNameSuggestions(v []*PropertyNameSuggestion) *GetSearchSuggestionsOutput {
- s.PropertyNameSuggestions = v
- return s
- }
- // Specifies configuration details for a Git repository in your AWS account.
- type GitConfig struct {
- _ struct{} `type:"structure"`
- // The default branch for the Git repository.
- Branch *string `min:"1" type:"string"`
- // The URL where the Git repository is located.
- //
- // RepositoryUrl is a required field
- RepositoryUrl *string `type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains
- // the credentials used to access the git repository. The secret must have a
- // staging label of AWSCURRENT and must be in the following format:
- //
- // {"username": UserName, "password": Password}
- SecretArn *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GitConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GitConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GitConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GitConfig"}
- if s.Branch != nil && len(*s.Branch) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Branch", 1))
- }
- if s.RepositoryUrl == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryUrl"))
- }
- if s.SecretArn != nil && len(*s.SecretArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBranch sets the Branch field's value.
- func (s *GitConfig) SetBranch(v string) *GitConfig {
- s.Branch = &v
- return s
- }
- // SetRepositoryUrl sets the RepositoryUrl field's value.
- func (s *GitConfig) SetRepositoryUrl(v string) *GitConfig {
- s.RepositoryUrl = &v
- return s
- }
- // SetSecretArn sets the SecretArn field's value.
- func (s *GitConfig) SetSecretArn(v string) *GitConfig {
- s.SecretArn = &v
- return s
- }
- // Specifies configuration details for a Git repository when the repository
- // is updated.
- type GitConfigForUpdate struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains
- // the credentials used to access the git repository. The secret must have a
- // staging label of AWSCURRENT and must be in the following format:
- //
- // {"username": UserName, "password": Password}
- SecretArn *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GitConfigForUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GitConfigForUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GitConfigForUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GitConfigForUpdate"}
- if s.SecretArn != nil && len(*s.SecretArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSecretArn sets the SecretArn field's value.
- func (s *GitConfigForUpdate) SetSecretArn(v string) *GitConfigForUpdate {
- s.SecretArn = &v
- return s
- }
- // Information required for human workers to complete a labeling task.
- type HumanTaskConfig struct {
- _ struct{} `type:"structure"`
- // Configures how labels are consolidated across human workers.
- //
- // AnnotationConsolidationConfig is a required field
- AnnotationConsolidationConfig *AnnotationConsolidationConfig `type:"structure" required:"true"`
- // Defines the maximum number of data objects that can be labeled by human workers
- // at the same time. Each object may have more than one worker at one time.
- MaxConcurrentTaskCount *int64 `min:"1" type:"integer"`
- // The number of human workers that will label an object.
- //
- // NumberOfHumanWorkersPerDataObject is a required field
- NumberOfHumanWorkersPerDataObject *int64 `min:"1" type:"integer" required:"true"`
- // The Amazon Resource Name (ARN) of a Lambda function that is run before a
- // data object is sent to a human worker. Use this function to provide input
- // to a custom labeling job.
- //
- // For the built-in bounding box, image classification, semantic segmentation,
- // and text classification task types, Amazon SageMaker Ground Truth provides
- // the following Lambda functions:
- //
- // US East (Northern Virginia) (us-east-1):
- //
- // * arn:aws:lambda:us-east-1:432418664414:function:PRE-BoundingBox
- //
- // * arn:aws:lambda:us-east-1:432418664414:function:PRE-ImageMultiClass
- //
- // * arn:aws:lambda:us-east-1:432418664414:function:PRE-SemanticSegmentation
- //
- // * arn:aws:lambda:us-east-1:432418664414:function:PRE-TextMultiClass
- //
- // US East (Ohio) (us-east-2):
- //
- // * arn:aws:lambda:us-east-2:266458841044:function:PRE-BoundingBox
- //
- // * arn:aws:lambda:us-east-2:266458841044:function:PRE-ImageMultiClass
- //
- // * arn:aws:lambda:us-east-2:266458841044:function:PRE-SemanticSegmentation
- //
- // * arn:aws:lambda:us-east-2:266458841044:function:PRE-TextMultiClass
- //
- // US West (Oregon) (us-west-2):
- //
- // * arn:aws:lambda:us-west-2:081040173940:function:PRE-BoundingBox
- //
- // * arn:aws:lambda:us-west-2:081040173940:function:PRE-ImageMultiClass
- //
- // * arn:aws:lambda:us-west-2:081040173940:function:PRE-SemanticSegmentation
- //
- // * arn:aws:lambda:us-west-2:081040173940:function:PRE-TextMultiClass
- //
- // EU (Ireland) (eu-west-1):
- //
- // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-BoundingBox
- //
- // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-ImageMultiClass
- //
- // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-SemanticSegmentation
- //
- // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-TextMultiClass
- //
- // Asia Pacific (Tokyo (ap-northeast-1):
- //
- // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-BoundingBox
- //
- // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-ImageMultiClass
- //
- // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-SemanticSegmentation
- //
- // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-TextMultiClass
- //
- // PreHumanTaskLambdaArn is a required field
- PreHumanTaskLambdaArn *string `type:"string" required:"true"`
- // The price that you pay for each task performed by a public worker.
- PublicWorkforceTaskPrice *PublicWorkforceTaskPrice `type:"structure"`
- // The length of time that a task remains available for labelling by human workers.
- TaskAvailabilityLifetimeInSeconds *int64 `min:"1" type:"integer"`
- // A description of the task for your human workers.
- //
- // TaskDescription is a required field
- TaskDescription *string `min:"1" type:"string" required:"true"`
- // Keywords used to describe the task so that workers on Amazon Mechanical Turk
- // can discover the task.
- TaskKeywords []*string `min:"1" type:"list"`
- // The amount of time that a worker has to complete a task.
- //
- // TaskTimeLimitInSeconds is a required field
- TaskTimeLimitInSeconds *int64 `min:"1" type:"integer" required:"true"`
- // A title for the task for your human workers.
- //
- // TaskTitle is a required field
- TaskTitle *string `min:"1" type:"string" required:"true"`
- // Information about the user interface that workers use to complete the labeling
- // task.
- //
- // UiConfig is a required field
- UiConfig *UiConfig `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) of the work team assigned to complete the
- // tasks.
- //
- // WorkteamArn is a required field
- WorkteamArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s HumanTaskConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HumanTaskConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HumanTaskConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HumanTaskConfig"}
- if s.AnnotationConsolidationConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationConfig"))
- }
- if s.MaxConcurrentTaskCount != nil && *s.MaxConcurrentTaskCount < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxConcurrentTaskCount", 1))
- }
- if s.NumberOfHumanWorkersPerDataObject == nil {
- invalidParams.Add(request.NewErrParamRequired("NumberOfHumanWorkersPerDataObject"))
- }
- if s.NumberOfHumanWorkersPerDataObject != nil && *s.NumberOfHumanWorkersPerDataObject < 1 {
- invalidParams.Add(request.NewErrParamMinValue("NumberOfHumanWorkersPerDataObject", 1))
- }
- if s.PreHumanTaskLambdaArn == nil {
- invalidParams.Add(request.NewErrParamRequired("PreHumanTaskLambdaArn"))
- }
- if s.TaskAvailabilityLifetimeInSeconds != nil && *s.TaskAvailabilityLifetimeInSeconds < 1 {
- invalidParams.Add(request.NewErrParamMinValue("TaskAvailabilityLifetimeInSeconds", 1))
- }
- if s.TaskDescription == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskDescription"))
- }
- if s.TaskDescription != nil && len(*s.TaskDescription) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskDescription", 1))
- }
- if s.TaskKeywords != nil && len(s.TaskKeywords) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskKeywords", 1))
- }
- if s.TaskTimeLimitInSeconds == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskTimeLimitInSeconds"))
- }
- if s.TaskTimeLimitInSeconds != nil && *s.TaskTimeLimitInSeconds < 1 {
- invalidParams.Add(request.NewErrParamMinValue("TaskTimeLimitInSeconds", 1))
- }
- if s.TaskTitle == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskTitle"))
- }
- if s.TaskTitle != nil && len(*s.TaskTitle) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskTitle", 1))
- }
- if s.UiConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("UiConfig"))
- }
- if s.WorkteamArn == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkteamArn"))
- }
- if s.AnnotationConsolidationConfig != nil {
- if err := s.AnnotationConsolidationConfig.Validate(); err != nil {
- invalidParams.AddNested("AnnotationConsolidationConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.UiConfig != nil {
- if err := s.UiConfig.Validate(); err != nil {
- invalidParams.AddNested("UiConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAnnotationConsolidationConfig sets the AnnotationConsolidationConfig field's value.
- func (s *HumanTaskConfig) SetAnnotationConsolidationConfig(v *AnnotationConsolidationConfig) *HumanTaskConfig {
- s.AnnotationConsolidationConfig = v
- return s
- }
- // SetMaxConcurrentTaskCount sets the MaxConcurrentTaskCount field's value.
- func (s *HumanTaskConfig) SetMaxConcurrentTaskCount(v int64) *HumanTaskConfig {
- s.MaxConcurrentTaskCount = &v
- return s
- }
- // SetNumberOfHumanWorkersPerDataObject sets the NumberOfHumanWorkersPerDataObject field's value.
- func (s *HumanTaskConfig) SetNumberOfHumanWorkersPerDataObject(v int64) *HumanTaskConfig {
- s.NumberOfHumanWorkersPerDataObject = &v
- return s
- }
- // SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value.
- func (s *HumanTaskConfig) SetPreHumanTaskLambdaArn(v string) *HumanTaskConfig {
- s.PreHumanTaskLambdaArn = &v
- return s
- }
- // SetPublicWorkforceTaskPrice sets the PublicWorkforceTaskPrice field's value.
- func (s *HumanTaskConfig) SetPublicWorkforceTaskPrice(v *PublicWorkforceTaskPrice) *HumanTaskConfig {
- s.PublicWorkforceTaskPrice = v
- return s
- }
- // SetTaskAvailabilityLifetimeInSeconds sets the TaskAvailabilityLifetimeInSeconds field's value.
- func (s *HumanTaskConfig) SetTaskAvailabilityLifetimeInSeconds(v int64) *HumanTaskConfig {
- s.TaskAvailabilityLifetimeInSeconds = &v
- return s
- }
- // SetTaskDescription sets the TaskDescription field's value.
- func (s *HumanTaskConfig) SetTaskDescription(v string) *HumanTaskConfig {
- s.TaskDescription = &v
- return s
- }
- // SetTaskKeywords sets the TaskKeywords field's value.
- func (s *HumanTaskConfig) SetTaskKeywords(v []*string) *HumanTaskConfig {
- s.TaskKeywords = v
- return s
- }
- // SetTaskTimeLimitInSeconds sets the TaskTimeLimitInSeconds field's value.
- func (s *HumanTaskConfig) SetTaskTimeLimitInSeconds(v int64) *HumanTaskConfig {
- s.TaskTimeLimitInSeconds = &v
- return s
- }
- // SetTaskTitle sets the TaskTitle field's value.
- func (s *HumanTaskConfig) SetTaskTitle(v string) *HumanTaskConfig {
- s.TaskTitle = &v
- return s
- }
- // SetUiConfig sets the UiConfig field's value.
- func (s *HumanTaskConfig) SetUiConfig(v *UiConfig) *HumanTaskConfig {
- s.UiConfig = v
- return s
- }
- // SetWorkteamArn sets the WorkteamArn field's value.
- func (s *HumanTaskConfig) SetWorkteamArn(v string) *HumanTaskConfig {
- s.WorkteamArn = &v
- return s
- }
- // Specifies which training algorithm to use for training jobs that a hyperparameter
- // tuning job launches and the metrics to monitor.
- type HyperParameterAlgorithmSpecification struct {
- _ struct{} `type:"structure"`
- // The name of the resource algorithm to use for the hyperparameter tuning job.
- // If you specify a value for this parameter, do not specify a value for TrainingImage.
- AlgorithmName *string `min:"1" type:"string"`
- // An array of MetricDefinition objects that specify the metrics that the algorithm
- // emits.
- MetricDefinitions []*MetricDefinition `type:"list"`
- // The registry path of the Docker image that contains the training algorithm.
- // For information about Docker registry paths for built-in algorithms, see
- // Algorithms Provided by Amazon SageMaker: Common Parameters (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html).
- TrainingImage *string `type:"string"`
- // The input mode that the algorithm supports: File or Pipe. In File input mode,
- // Amazon SageMaker downloads the training data from Amazon S3 to the storage
- // volume that is attached to the training instance and mounts the directory
- // to the Docker volume for the training container. In Pipe input mode, Amazon
- // SageMaker streams data directly from Amazon S3 to the container.
- //
- // If you specify File mode, make sure that you provision the storage volume
- // that is attached to the training instance with enough capacity to accommodate
- // the training data downloaded from Amazon S3, the model artifacts, and intermediate
- // information.
- //
- // For more information about input modes, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html)
- //
- // TrainingInputMode is a required field
- TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"`
- }
- // String returns the string representation
- func (s HyperParameterAlgorithmSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterAlgorithmSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HyperParameterAlgorithmSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HyperParameterAlgorithmSpecification"}
- if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
- }
- if s.TrainingInputMode == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingInputMode"))
- }
- if s.MetricDefinitions != nil {
- for i, v := range s.MetricDefinitions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *HyperParameterAlgorithmSpecification) SetAlgorithmName(v string) *HyperParameterAlgorithmSpecification {
- s.AlgorithmName = &v
- return s
- }
- // SetMetricDefinitions sets the MetricDefinitions field's value.
- func (s *HyperParameterAlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *HyperParameterAlgorithmSpecification {
- s.MetricDefinitions = v
- return s
- }
- // SetTrainingImage sets the TrainingImage field's value.
- func (s *HyperParameterAlgorithmSpecification) SetTrainingImage(v string) *HyperParameterAlgorithmSpecification {
- s.TrainingImage = &v
- return s
- }
- // SetTrainingInputMode sets the TrainingInputMode field's value.
- func (s *HyperParameterAlgorithmSpecification) SetTrainingInputMode(v string) *HyperParameterAlgorithmSpecification {
- s.TrainingInputMode = &v
- return s
- }
- // Defines a hyperparameter to be used by an algorithm.
- type HyperParameterSpecification struct {
- _ struct{} `type:"structure"`
- // The default value for this hyperparameter. If a default value is specified,
- // a hyperparameter cannot be required.
- DefaultValue *string `type:"string"`
- // A brief description of the hyperparameter.
- Description *string `type:"string"`
- // Indicates whether this hyperparameter is required.
- IsRequired *bool `type:"boolean"`
- // Indicates whether this hyperparameter is tunable in a hyperparameter tuning
- // job.
- IsTunable *bool `type:"boolean"`
- // The name of this hyperparameter. The name must be unique.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The allowed range for this hyperparameter.
- Range *ParameterRange `type:"structure"`
- // The type of this hyperparameter. The valid types are Integer, Continuous,
- // Categorical, and FreeText.
- //
- // Type is a required field
- Type *string `type:"string" required:"true" enum:"ParameterType"`
- }
- // String returns the string representation
- func (s HyperParameterSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HyperParameterSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HyperParameterSpecification"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.Range != nil {
- if err := s.Range.Validate(); err != nil {
- invalidParams.AddNested("Range", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDefaultValue sets the DefaultValue field's value.
- func (s *HyperParameterSpecification) SetDefaultValue(v string) *HyperParameterSpecification {
- s.DefaultValue = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *HyperParameterSpecification) SetDescription(v string) *HyperParameterSpecification {
- s.Description = &v
- return s
- }
- // SetIsRequired sets the IsRequired field's value.
- func (s *HyperParameterSpecification) SetIsRequired(v bool) *HyperParameterSpecification {
- s.IsRequired = &v
- return s
- }
- // SetIsTunable sets the IsTunable field's value.
- func (s *HyperParameterSpecification) SetIsTunable(v bool) *HyperParameterSpecification {
- s.IsTunable = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *HyperParameterSpecification) SetName(v string) *HyperParameterSpecification {
- s.Name = &v
- return s
- }
- // SetRange sets the Range field's value.
- func (s *HyperParameterSpecification) SetRange(v *ParameterRange) *HyperParameterSpecification {
- s.Range = v
- return s
- }
- // SetType sets the Type field's value.
- func (s *HyperParameterSpecification) SetType(v string) *HyperParameterSpecification {
- s.Type = &v
- return s
- }
- // Defines the training jobs launched by a hyperparameter tuning job.
- type HyperParameterTrainingJobDefinition struct {
- _ struct{} `type:"structure"`
- // The HyperParameterAlgorithmSpecification object that specifies the resource
- // algorithm to use for the training jobs that the tuning job launches.
- //
- // AlgorithmSpecification is a required field
- AlgorithmSpecification *HyperParameterAlgorithmSpecification `type:"structure" required:"true"`
- // To encrypt all communications between ML compute instances in distributed
- // training, specify True. Encryption provides greater security for distributed
- // training, but training take longer because of the additional communications
- // between ML compute instances.
- EnableInterContainerTrafficEncryption *bool `type:"boolean"`
- // Isolates the training container. No inbound or outbound network calls can
- // be made, except for calls between peers within a training cluster for distributed
- // training. If network isolation is used for training jobs that are configured
- // to use a VPC, Amazon SageMaker downloads and uploads customer data and model
- // artifacts through the specified VPC, but the training container does not
- // have network access.
- //
- // The Semantic Segmentation built-in algorithm does not support network isolation.
- EnableNetworkIsolation *bool `type:"boolean"`
- // An array of Channel objects that specify the input for the training jobs
- // that the tuning job launches.
- InputDataConfig []*Channel `min:"1" type:"list"`
- // Specifies the path to the Amazon S3 bucket where you store model artifacts
- // from the training jobs that the tuning job launches.
- //
- // OutputDataConfig is a required field
- OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
- // The resources, including the compute instances and storage volumes, to use
- // for the training jobs that the tuning job launches.
- //
- // Storage volumes store model artifacts and incremental states. Training algorithms
- // might also use storage volumes for scratch space. If you want Amazon SageMaker
- // to use the storage volume to store the training data, choose File as the
- // TrainingInputMode in the algorithm specification. For distributed training
- // algorithms, specify an instance count greater than 1.
- //
- // ResourceConfig is a required field
- ResourceConfig *ResourceConfig `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) of the IAM role associated with the training
- // jobs that the tuning job launches.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // Specifies the values of hyperparameters that do not change for the tuning
- // job.
- StaticHyperParameters map[string]*string `type:"map"`
- // Sets a maximum duration for the training jobs that the tuning job launches.
- // Use this parameter to limit model training costs.
- //
- // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This
- // delays job termination for 120 seconds. Algorithms might use this 120-second
- // window to save the model artifacts.
- //
- // When Amazon SageMaker terminates a job because the stopping condition has
- // been met, training algorithms provided by Amazon SageMaker save the intermediate
- // results of the job.
- //
- // StoppingCondition is a required field
- StoppingCondition *StoppingCondition `type:"structure" required:"true"`
- // The VpcConfig object that specifies the VPC that you want the training jobs
- // that this hyperparameter tuning job launches to connect to. Control access
- // to and from your training container by configuring the VPC. For more information,
- // see Protect Training Jobs by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s HyperParameterTrainingJobDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterTrainingJobDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HyperParameterTrainingJobDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HyperParameterTrainingJobDefinition"}
- if s.AlgorithmSpecification == nil {
- invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification"))
- }
- if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1))
- }
- if s.OutputDataConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
- }
- if s.ResourceConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.StoppingCondition == nil {
- invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
- }
- if s.AlgorithmSpecification != nil {
- if err := s.AlgorithmSpecification.Validate(); err != nil {
- invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.InputDataConfig != nil {
- for i, v := range s.InputDataConfig {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OutputDataConfig != nil {
- if err := s.OutputDataConfig.Validate(); err != nil {
- invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.ResourceConfig != nil {
- if err := s.ResourceConfig.Validate(); err != nil {
- invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.StoppingCondition != nil {
- if err := s.StoppingCondition.Validate(); err != nil {
- invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
- }
- }
- if s.VpcConfig != nil {
- if err := s.VpcConfig.Validate(); err != nil {
- invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
- func (s *HyperParameterTrainingJobDefinition) SetAlgorithmSpecification(v *HyperParameterAlgorithmSpecification) *HyperParameterTrainingJobDefinition {
- s.AlgorithmSpecification = v
- return s
- }
- // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value.
- func (s *HyperParameterTrainingJobDefinition) SetEnableInterContainerTrafficEncryption(v bool) *HyperParameterTrainingJobDefinition {
- s.EnableInterContainerTrafficEncryption = &v
- return s
- }
- // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
- func (s *HyperParameterTrainingJobDefinition) SetEnableNetworkIsolation(v bool) *HyperParameterTrainingJobDefinition {
- s.EnableNetworkIsolation = &v
- return s
- }
- // SetInputDataConfig sets the InputDataConfig field's value.
- func (s *HyperParameterTrainingJobDefinition) SetInputDataConfig(v []*Channel) *HyperParameterTrainingJobDefinition {
- s.InputDataConfig = v
- return s
- }
- // SetOutputDataConfig sets the OutputDataConfig field's value.
- func (s *HyperParameterTrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *HyperParameterTrainingJobDefinition {
- s.OutputDataConfig = v
- return s
- }
- // SetResourceConfig sets the ResourceConfig field's value.
- func (s *HyperParameterTrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *HyperParameterTrainingJobDefinition {
- s.ResourceConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *HyperParameterTrainingJobDefinition) SetRoleArn(v string) *HyperParameterTrainingJobDefinition {
- s.RoleArn = &v
- return s
- }
- // SetStaticHyperParameters sets the StaticHyperParameters field's value.
- func (s *HyperParameterTrainingJobDefinition) SetStaticHyperParameters(v map[string]*string) *HyperParameterTrainingJobDefinition {
- s.StaticHyperParameters = v
- return s
- }
- // SetStoppingCondition sets the StoppingCondition field's value.
- func (s *HyperParameterTrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *HyperParameterTrainingJobDefinition {
- s.StoppingCondition = v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *HyperParameterTrainingJobDefinition) SetVpcConfig(v *VpcConfig) *HyperParameterTrainingJobDefinition {
- s.VpcConfig = v
- return s
- }
- // Specifies summary information about a training job.
- type HyperParameterTrainingJobSummary struct {
- _ struct{} `type:"structure"`
- // The date and time that the training job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The reason that the training job failed.
- FailureReason *string `type:"string"`
- // The FinalHyperParameterTuningJobObjectiveMetric object that specifies the
- // value of the objective metric of the tuning job that launched this training
- // job.
- FinalHyperParameterTuningJobObjectiveMetric *FinalHyperParameterTuningJobObjectiveMetric `type:"structure"`
- // The status of the objective metric for the training job:
- //
- // * Succeeded: The final objective metric for the training job was evaluated
- // by the hyperparameter tuning job and used in the hyperparameter tuning
- // process.
- //
- // * Pending: The training job is in progress and evaluation of its final
- // objective metric is pending.
- //
- // * Failed: The final objective metric for the training job was not evaluated,
- // and was not used in the hyperparameter tuning process. This typically
- // occurs when the training job failed or did not emit an objective metric.
- ObjectiveStatus *string `type:"string" enum:"ObjectiveStatus"`
- // Specifies the time when the training job ends on training instances. You
- // are billed for the time interval between the value of TrainingStartTime and
- // this time. For successful jobs and stopped jobs, this is the time after model
- // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
- // detects a job failure.
- TrainingEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the training job.
- //
- // TrainingJobArn is a required field
- TrainingJobArn *string `type:"string" required:"true"`
- // The name of the training job.
- //
- // TrainingJobName is a required field
- TrainingJobName *string `min:"1" type:"string" required:"true"`
- // The status of the training job.
- //
- // TrainingJobStatus is a required field
- TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"`
- // The date and time that the training job started.
- TrainingStartTime *time.Time `type:"timestamp"`
- // A list of the hyperparameters for which you specified ranges to search.
- //
- // TunedHyperParameters is a required field
- TunedHyperParameters map[string]*string `type:"map" required:"true"`
- // The HyperParameter tuning job that launched the training job.
- TuningJobName *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s HyperParameterTrainingJobSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterTrainingJobSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *HyperParameterTrainingJobSummary) SetCreationTime(v time.Time) *HyperParameterTrainingJobSummary {
- s.CreationTime = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *HyperParameterTrainingJobSummary) SetFailureReason(v string) *HyperParameterTrainingJobSummary {
- s.FailureReason = &v
- return s
- }
- // SetFinalHyperParameterTuningJobObjectiveMetric sets the FinalHyperParameterTuningJobObjectiveMetric field's value.
- func (s *HyperParameterTrainingJobSummary) SetFinalHyperParameterTuningJobObjectiveMetric(v *FinalHyperParameterTuningJobObjectiveMetric) *HyperParameterTrainingJobSummary {
- s.FinalHyperParameterTuningJobObjectiveMetric = v
- return s
- }
- // SetObjectiveStatus sets the ObjectiveStatus field's value.
- func (s *HyperParameterTrainingJobSummary) SetObjectiveStatus(v string) *HyperParameterTrainingJobSummary {
- s.ObjectiveStatus = &v
- return s
- }
- // SetTrainingEndTime sets the TrainingEndTime field's value.
- func (s *HyperParameterTrainingJobSummary) SetTrainingEndTime(v time.Time) *HyperParameterTrainingJobSummary {
- s.TrainingEndTime = &v
- return s
- }
- // SetTrainingJobArn sets the TrainingJobArn field's value.
- func (s *HyperParameterTrainingJobSummary) SetTrainingJobArn(v string) *HyperParameterTrainingJobSummary {
- s.TrainingJobArn = &v
- return s
- }
- // SetTrainingJobName sets the TrainingJobName field's value.
- func (s *HyperParameterTrainingJobSummary) SetTrainingJobName(v string) *HyperParameterTrainingJobSummary {
- s.TrainingJobName = &v
- return s
- }
- // SetTrainingJobStatus sets the TrainingJobStatus field's value.
- func (s *HyperParameterTrainingJobSummary) SetTrainingJobStatus(v string) *HyperParameterTrainingJobSummary {
- s.TrainingJobStatus = &v
- return s
- }
- // SetTrainingStartTime sets the TrainingStartTime field's value.
- func (s *HyperParameterTrainingJobSummary) SetTrainingStartTime(v time.Time) *HyperParameterTrainingJobSummary {
- s.TrainingStartTime = &v
- return s
- }
- // SetTunedHyperParameters sets the TunedHyperParameters field's value.
- func (s *HyperParameterTrainingJobSummary) SetTunedHyperParameters(v map[string]*string) *HyperParameterTrainingJobSummary {
- s.TunedHyperParameters = v
- return s
- }
- // SetTuningJobName sets the TuningJobName field's value.
- func (s *HyperParameterTrainingJobSummary) SetTuningJobName(v string) *HyperParameterTrainingJobSummary {
- s.TuningJobName = &v
- return s
- }
- // Configures a hyperparameter tuning job.
- type HyperParameterTuningJobConfig struct {
- _ struct{} `type:"structure"`
- // The HyperParameterTuningJobObjective object that specifies the objective
- // metric for this tuning job.
- //
- // HyperParameterTuningJobObjective is a required field
- HyperParameterTuningJobObjective *HyperParameterTuningJobObjective `type:"structure" required:"true"`
- // The ParameterRanges object that specifies the ranges of hyperparameters that
- // this tuning job searches.
- //
- // ParameterRanges is a required field
- ParameterRanges *ParameterRanges `type:"structure" required:"true"`
- // The ResourceLimits object that specifies the maximum number of training jobs
- // and parallel training jobs for this tuning job.
- //
- // ResourceLimits is a required field
- ResourceLimits *ResourceLimits `type:"structure" required:"true"`
- // Specifies the search strategy for hyperparameters. Currently, the only valid
- // value is Bayesian.
- //
- // Strategy is a required field
- Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"`
- // Specifies whether to use early stopping for training jobs launched by the
- // hyperparameter tuning job. This can be one of the following values (the default
- // value is OFF):
- //
- // OFFTraining jobs launched by the hyperparameter tuning job do not use early
- // stopping.
- //
- // AUTOAmazon SageMaker stops training jobs launched by the hyperparameter tuning
- // job when they are unlikely to perform better than previously completed training
- // jobs. For more information, see Stop Training Jobs Early (http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html).
- TrainingJobEarlyStoppingType *string `type:"string" enum:"TrainingJobEarlyStoppingType"`
- }
- // String returns the string representation
- func (s HyperParameterTuningJobConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterTuningJobConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HyperParameterTuningJobConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobConfig"}
- if s.HyperParameterTuningJobObjective == nil {
- invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobObjective"))
- }
- if s.ParameterRanges == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterRanges"))
- }
- if s.ResourceLimits == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceLimits"))
- }
- if s.Strategy == nil {
- invalidParams.Add(request.NewErrParamRequired("Strategy"))
- }
- if s.HyperParameterTuningJobObjective != nil {
- if err := s.HyperParameterTuningJobObjective.Validate(); err != nil {
- invalidParams.AddNested("HyperParameterTuningJobObjective", err.(request.ErrInvalidParams))
- }
- }
- if s.ParameterRanges != nil {
- if err := s.ParameterRanges.Validate(); err != nil {
- invalidParams.AddNested("ParameterRanges", err.(request.ErrInvalidParams))
- }
- }
- if s.ResourceLimits != nil {
- if err := s.ResourceLimits.Validate(); err != nil {
- invalidParams.AddNested("ResourceLimits", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHyperParameterTuningJobObjective sets the HyperParameterTuningJobObjective field's value.
- func (s *HyperParameterTuningJobConfig) SetHyperParameterTuningJobObjective(v *HyperParameterTuningJobObjective) *HyperParameterTuningJobConfig {
- s.HyperParameterTuningJobObjective = v
- return s
- }
- // SetParameterRanges sets the ParameterRanges field's value.
- func (s *HyperParameterTuningJobConfig) SetParameterRanges(v *ParameterRanges) *HyperParameterTuningJobConfig {
- s.ParameterRanges = v
- return s
- }
- // SetResourceLimits sets the ResourceLimits field's value.
- func (s *HyperParameterTuningJobConfig) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobConfig {
- s.ResourceLimits = v
- return s
- }
- // SetStrategy sets the Strategy field's value.
- func (s *HyperParameterTuningJobConfig) SetStrategy(v string) *HyperParameterTuningJobConfig {
- s.Strategy = &v
- return s
- }
- // SetTrainingJobEarlyStoppingType sets the TrainingJobEarlyStoppingType field's value.
- func (s *HyperParameterTuningJobConfig) SetTrainingJobEarlyStoppingType(v string) *HyperParameterTuningJobConfig {
- s.TrainingJobEarlyStoppingType = &v
- return s
- }
- // Defines the objective metric for a hyperparameter tuning job. Hyperparameter
- // tuning uses the value of this metric to evaluate the training jobs it launches,
- // and returns the training job that results in either the highest or lowest
- // value for this metric, depending on the value you specify for the Type parameter.
- type HyperParameterTuningJobObjective struct {
- _ struct{} `type:"structure"`
- // The name of the metric to use for the objective metric.
- //
- // MetricName is a required field
- MetricName *string `min:"1" type:"string" required:"true"`
- // Whether to minimize or maximize the objective metric.
- //
- // Type is a required field
- Type *string `type:"string" required:"true" enum:"HyperParameterTuningJobObjectiveType"`
- }
- // String returns the string representation
- func (s HyperParameterTuningJobObjective) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterTuningJobObjective) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HyperParameterTuningJobObjective) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobObjective"}
- if s.MetricName == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricName"))
- }
- if s.MetricName != nil && len(*s.MetricName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("MetricName", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMetricName sets the MetricName field's value.
- func (s *HyperParameterTuningJobObjective) SetMetricName(v string) *HyperParameterTuningJobObjective {
- s.MetricName = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *HyperParameterTuningJobObjective) SetType(v string) *HyperParameterTuningJobObjective {
- s.Type = &v
- return s
- }
- // Provides summary information about a hyperparameter tuning job.
- type HyperParameterTuningJobSummary struct {
- _ struct{} `type:"structure"`
- // The date and time that the tuning job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The date and time that the tuning job ended.
- HyperParameterTuningEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the tuning job.
- //
- // HyperParameterTuningJobArn is a required field
- HyperParameterTuningJobArn *string `type:"string" required:"true"`
- // The name of the tuning job.
- //
- // HyperParameterTuningJobName is a required field
- HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
- // The status of the tuning job.
- //
- // HyperParameterTuningJobStatus is a required field
- HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"`
- // The date and time that the tuning job was modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // The ObjectiveStatusCounters object that specifies the numbers of training
- // jobs, categorized by objective metric status, that this tuning job launched.
- //
- // ObjectiveStatusCounters is a required field
- ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"`
- // The ResourceLimits object that specifies the maximum number of training jobs
- // and parallel training jobs allowed for this tuning job.
- ResourceLimits *ResourceLimits `type:"structure"`
- // Specifies the search strategy hyperparameter tuning uses to choose which
- // hyperparameters to use for each iteration. Currently, the only valid value
- // is Bayesian.
- //
- // Strategy is a required field
- Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"`
- // The TrainingJobStatusCounters object that specifies the numbers of training
- // jobs, categorized by status, that this tuning job launched.
- //
- // TrainingJobStatusCounters is a required field
- TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s HyperParameterTuningJobSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterTuningJobSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *HyperParameterTuningJobSummary) SetCreationTime(v time.Time) *HyperParameterTuningJobSummary {
- s.CreationTime = &v
- return s
- }
- // SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value.
- func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningEndTime(v time.Time) *HyperParameterTuningJobSummary {
- s.HyperParameterTuningEndTime = &v
- return s
- }
- // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value.
- func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobArn(v string) *HyperParameterTuningJobSummary {
- s.HyperParameterTuningJobArn = &v
- return s
- }
- // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
- func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobName(v string) *HyperParameterTuningJobSummary {
- s.HyperParameterTuningJobName = &v
- return s
- }
- // SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value.
- func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobStatus(v string) *HyperParameterTuningJobSummary {
- s.HyperParameterTuningJobStatus = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *HyperParameterTuningJobSummary) SetLastModifiedTime(v time.Time) *HyperParameterTuningJobSummary {
- s.LastModifiedTime = &v
- return s
- }
- // SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value.
- func (s *HyperParameterTuningJobSummary) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *HyperParameterTuningJobSummary {
- s.ObjectiveStatusCounters = v
- return s
- }
- // SetResourceLimits sets the ResourceLimits field's value.
- func (s *HyperParameterTuningJobSummary) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobSummary {
- s.ResourceLimits = v
- return s
- }
- // SetStrategy sets the Strategy field's value.
- func (s *HyperParameterTuningJobSummary) SetStrategy(v string) *HyperParameterTuningJobSummary {
- s.Strategy = &v
- return s
- }
- // SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value.
- func (s *HyperParameterTuningJobSummary) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *HyperParameterTuningJobSummary {
- s.TrainingJobStatusCounters = v
- return s
- }
- // Specifies the configuration for a hyperparameter tuning job that uses one
- // or more previous hyperparameter tuning jobs as a starting point. The results
- // of previous tuning jobs are used to inform which combinations of hyperparameters
- // to search over in the new tuning job.
- //
- // All training jobs launched by the new hyperparameter tuning job are evaluated
- // by using the objective metric, and the training job that performs the best
- // is compared to the best training jobs from the parent tuning jobs. From these,
- // the training job that performs the best as measured by the objective metric
- // is returned as the overall best training job.
- //
- // All training jobs launched by parent hyperparameter tuning jobs and the new
- // hyperparameter tuning jobs count against the limit of training jobs for the
- // tuning job.
- type HyperParameterTuningJobWarmStartConfig struct {
- _ struct{} `type:"structure"`
- // An array of hyperparameter tuning jobs that are used as the starting point
- // for the new hyperparameter tuning job. For more information about warm starting
- // a hyperparameter tuning job, see Using a Previous Hyperparameter Tuning Job
- // as a Starting Point (http://docs.aws.amazon.com/automatic-model-tuning-incremental).
- //
- // Hyperparameter tuning jobs created before October 1, 2018 cannot be used
- // as parent jobs for warm start tuning jobs.
- //
- // ParentHyperParameterTuningJobs is a required field
- ParentHyperParameterTuningJobs []*ParentHyperParameterTuningJob `min:"1" type:"list" required:"true"`
- // Specifies one of the following:
- //
- // IDENTICAL_DATA_AND_ALGORITHMThe new hyperparameter tuning job uses the same
- // input data and training image as the parent tuning jobs. You can change the
- // hyperparameter ranges to search and the maximum number of training jobs that
- // the hyperparameter tuning job launches. You cannot use a new version of the
- // training algorithm, unless the changes in the new version do not affect the
- // algorithm itself. For example, changes that improve logging or adding support
- // for a different data format are allowed. You can also change hyperparameters
- // from tunable to static, and from static to tunable, but the total number
- // of static plus tunable hyperparameters must remain the same as it is in all
- // parent jobs. The objective metric for the new tuning job must be the same
- // as for all parent jobs.
- //
- // TRANSFER_LEARNINGThe new hyperparameter tuning job can include input data,
- // hyperparameter ranges, maximum number of concurrent training jobs, and maximum
- // number of training jobs that are different than those of its parent hyperparameter
- // tuning jobs. The training image can also be a different version from the
- // version used in the parent hyperparameter tuning job. You can also change
- // hyperparameters from tunable to static, and from static to tunable, but the
- // total number of static plus tunable hyperparameters must remain the same
- // as it is in all parent jobs. The objective metric for the new tuning job
- // must be the same as for all parent jobs.
- //
- // WarmStartType is a required field
- WarmStartType *string `type:"string" required:"true" enum:"HyperParameterTuningJobWarmStartType"`
- }
- // String returns the string representation
- func (s HyperParameterTuningJobWarmStartConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HyperParameterTuningJobWarmStartConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HyperParameterTuningJobWarmStartConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobWarmStartConfig"}
- if s.ParentHyperParameterTuningJobs == nil {
- invalidParams.Add(request.NewErrParamRequired("ParentHyperParameterTuningJobs"))
- }
- if s.ParentHyperParameterTuningJobs != nil && len(s.ParentHyperParameterTuningJobs) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ParentHyperParameterTuningJobs", 1))
- }
- if s.WarmStartType == nil {
- invalidParams.Add(request.NewErrParamRequired("WarmStartType"))
- }
- if s.ParentHyperParameterTuningJobs != nil {
- for i, v := range s.ParentHyperParameterTuningJobs {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParentHyperParameterTuningJobs", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParentHyperParameterTuningJobs sets the ParentHyperParameterTuningJobs field's value.
- func (s *HyperParameterTuningJobWarmStartConfig) SetParentHyperParameterTuningJobs(v []*ParentHyperParameterTuningJob) *HyperParameterTuningJobWarmStartConfig {
- s.ParentHyperParameterTuningJobs = v
- return s
- }
- // SetWarmStartType sets the WarmStartType field's value.
- func (s *HyperParameterTuningJobWarmStartConfig) SetWarmStartType(v string) *HyperParameterTuningJobWarmStartConfig {
- s.WarmStartType = &v
- return s
- }
- // Defines how to perform inference generation after a training job is run.
- type InferenceSpecification struct {
- _ struct{} `type:"structure"`
- // The Amazon ECR registry path of the Docker image that contains the inference
- // code.
- //
- // Containers is a required field
- Containers []*ModelPackageContainerDefinition `min:"1" type:"list" required:"true"`
- // The supported MIME types for the input data.
- //
- // SupportedContentTypes is a required field
- SupportedContentTypes []*string `type:"list" required:"true"`
- // A list of the instance types that are used to generate inferences in real-time.
- //
- // SupportedRealtimeInferenceInstanceTypes is a required field
- SupportedRealtimeInferenceInstanceTypes []*string `type:"list" required:"true"`
- // The supported MIME types for the output data.
- //
- // SupportedResponseMIMETypes is a required field
- SupportedResponseMIMETypes []*string `type:"list" required:"true"`
- // A list of the instance types on which a transformation job can be run or
- // on which an endpoint can be deployed.
- //
- // SupportedTransformInstanceTypes is a required field
- SupportedTransformInstanceTypes []*string `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s InferenceSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InferenceSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InferenceSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InferenceSpecification"}
- if s.Containers == nil {
- invalidParams.Add(request.NewErrParamRequired("Containers"))
- }
- if s.Containers != nil && len(s.Containers) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Containers", 1))
- }
- if s.SupportedContentTypes == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes"))
- }
- if s.SupportedRealtimeInferenceInstanceTypes == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportedRealtimeInferenceInstanceTypes"))
- }
- if s.SupportedResponseMIMETypes == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportedResponseMIMETypes"))
- }
- if s.SupportedTransformInstanceTypes == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportedTransformInstanceTypes"))
- }
- if s.SupportedTransformInstanceTypes != nil && len(s.SupportedTransformInstanceTypes) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SupportedTransformInstanceTypes", 1))
- }
- if s.Containers != nil {
- for i, v := range s.Containers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContainers sets the Containers field's value.
- func (s *InferenceSpecification) SetContainers(v []*ModelPackageContainerDefinition) *InferenceSpecification {
- s.Containers = v
- return s
- }
- // SetSupportedContentTypes sets the SupportedContentTypes field's value.
- func (s *InferenceSpecification) SetSupportedContentTypes(v []*string) *InferenceSpecification {
- s.SupportedContentTypes = v
- return s
- }
- // SetSupportedRealtimeInferenceInstanceTypes sets the SupportedRealtimeInferenceInstanceTypes field's value.
- func (s *InferenceSpecification) SetSupportedRealtimeInferenceInstanceTypes(v []*string) *InferenceSpecification {
- s.SupportedRealtimeInferenceInstanceTypes = v
- return s
- }
- // SetSupportedResponseMIMETypes sets the SupportedResponseMIMETypes field's value.
- func (s *InferenceSpecification) SetSupportedResponseMIMETypes(v []*string) *InferenceSpecification {
- s.SupportedResponseMIMETypes = v
- return s
- }
- // SetSupportedTransformInstanceTypes sets the SupportedTransformInstanceTypes field's value.
- func (s *InferenceSpecification) SetSupportedTransformInstanceTypes(v []*string) *InferenceSpecification {
- s.SupportedTransformInstanceTypes = v
- return s
- }
- // Contains information about the location of input model artifacts, the name
- // and shape of the expected data inputs, and the framework in which the model
- // was trained.
- type InputConfig struct {
- _ struct{} `type:"structure"`
- // Specifies the name and shape of the expected data inputs for your trained
- // model with a JSON dictionary form. The data inputs are InputConfig$Framework
- // specific.
- //
- // * TensorFlow: You must specify the name and shape (NHWC format) of the
- // expected data inputs using a dictionary format for your trained model.
- // The dictionary formats required for the console and CLI are different.
- //
- // Examples for one input:
- //
- // If using the console, {"input":[1,1024,1024,3]}
- //
- // If using the CLI, {\"input\":[1,1024,1024,3]}
- //
- // Examples for two inputs:
- //
- // If using the console, {"data1": [1,28,28,1], "data2":[1,28,28,1]}
- //
- // If using the CLI, {\"data1\": [1,28,28,1], \"data2\":[1,28,28,1]}
- //
- // * MXNET/ONNX: You must specify the name and shape (NCHW format) of the
- // expected data inputs in order using a dictionary format for your trained
- // model. The dictionary formats required for the console and CLI are different.
- //
- // Examples for one input:
- //
- // If using the console, {"data":[1,3,1024,1024]}
- //
- // If using the CLI, {\"data\":[1,3,1024,1024]}
- //
- // Examples for two inputs:
- //
- // If using the console, {"var1": [1,1,28,28], "var2":[1,1,28,28]}
- //
- // If using the CLI, {\"var1\": [1,1,28,28], \"var2\":[1,1,28,28]}
- //
- // * PyTorch: You can either specify the name and shape (NCHW format) of
- // expected data inputs in order using a dictionary format for your trained
- // model or you can specify the shape only using a list format. The dictionary
- // formats required for the console and CLI are different. The list formats
- // for the console and CLI are the same.
- //
- // Examples for one input in dictionary format:
- //
- // If using the console, {"input0":[1,3,224,224]}
- //
- // If using the CLI, {\"input0\":[1,3,224,224]}
- //
- // Example for one input in list format: [[1,3,224,224]]
- //
- // Examples for two inputs in dictionary format:
- //
- // If using the console, {"input0":[1,3,224,224], "input1":[1,3,224,224]}
- //
- // If using the CLI, {\"input0\":[1,3,224,224], \"input1\":[1,3,224,224]}
- //
- // Example for two inputs in list format: [[1,3,224,224], [1,3,224,224]]
- //
- // * XGBOOST: input data name and shape are not needed.
- //
- // DataInputConfig is a required field
- DataInputConfig *string `min:"1" type:"string" required:"true"`
- // Identifies the framework in which the model was trained. For example: TENSORFLOW.
- //
- // Framework is a required field
- Framework *string `type:"string" required:"true" enum:"Framework"`
- // The S3 path where the model artifacts, which result from model training,
- // are stored. This path must point to a single gzip compressed tar archive
- // (.tar.gz suffix).
- //
- // S3Uri is a required field
- S3Uri *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s InputConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputConfig"}
- if s.DataInputConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("DataInputConfig"))
- }
- if s.DataInputConfig != nil && len(*s.DataInputConfig) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DataInputConfig", 1))
- }
- if s.Framework == nil {
- invalidParams.Add(request.NewErrParamRequired("Framework"))
- }
- if s.S3Uri == nil {
- invalidParams.Add(request.NewErrParamRequired("S3Uri"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDataInputConfig sets the DataInputConfig field's value.
- func (s *InputConfig) SetDataInputConfig(v string) *InputConfig {
- s.DataInputConfig = &v
- return s
- }
- // SetFramework sets the Framework field's value.
- func (s *InputConfig) SetFramework(v string) *InputConfig {
- s.Framework = &v
- return s
- }
- // SetS3Uri sets the S3Uri field's value.
- func (s *InputConfig) SetS3Uri(v string) *InputConfig {
- s.S3Uri = &v
- return s
- }
- // For a hyperparameter of the integer type, specifies the range that a hyperparameter
- // tuning job searches.
- type IntegerParameterRange struct {
- _ struct{} `type:"structure"`
- // The maximum value of the hyperparameter to search.
- //
- // MaxValue is a required field
- MaxValue *string `type:"string" required:"true"`
- // The minimum value of the hyperparameter to search.
- //
- // MinValue is a required field
- MinValue *string `type:"string" required:"true"`
- // The name of the hyperparameter to search.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s IntegerParameterRange) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IntegerParameterRange) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IntegerParameterRange) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRange"}
- if s.MaxValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MaxValue"))
- }
- if s.MinValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MinValue"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxValue sets the MaxValue field's value.
- func (s *IntegerParameterRange) SetMaxValue(v string) *IntegerParameterRange {
- s.MaxValue = &v
- return s
- }
- // SetMinValue sets the MinValue field's value.
- func (s *IntegerParameterRange) SetMinValue(v string) *IntegerParameterRange {
- s.MinValue = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *IntegerParameterRange) SetName(v string) *IntegerParameterRange {
- s.Name = &v
- return s
- }
- // Defines the possible values for an integer hyperparameter.
- type IntegerParameterRangeSpecification struct {
- _ struct{} `type:"structure"`
- // The maximum integer value allowed.
- //
- // MaxValue is a required field
- MaxValue *string `type:"string" required:"true"`
- // The minimum integer value allowed.
- //
- // MinValue is a required field
- MinValue *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s IntegerParameterRangeSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IntegerParameterRangeSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IntegerParameterRangeSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRangeSpecification"}
- if s.MaxValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MaxValue"))
- }
- if s.MinValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MinValue"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxValue sets the MaxValue field's value.
- func (s *IntegerParameterRangeSpecification) SetMaxValue(v string) *IntegerParameterRangeSpecification {
- s.MaxValue = &v
- return s
- }
- // SetMinValue sets the MinValue field's value.
- func (s *IntegerParameterRangeSpecification) SetMinValue(v string) *IntegerParameterRangeSpecification {
- s.MinValue = &v
- return s
- }
- // Provides a breakdown of the number of objects labeled.
- type LabelCounters struct {
- _ struct{} `type:"structure"`
- // The total number of objects that could not be labeled due to an error.
- FailedNonRetryableError *int64 `type:"integer"`
- // The total number of objects labeled by a human worker.
- HumanLabeled *int64 `type:"integer"`
- // The total number of objects labeled by automated data labeling.
- MachineLabeled *int64 `type:"integer"`
- // The total number of objects labeled.
- TotalLabeled *int64 `type:"integer"`
- // The total number of objects not yet labeled.
- Unlabeled *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s LabelCounters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelCounters) GoString() string {
- return s.String()
- }
- // SetFailedNonRetryableError sets the FailedNonRetryableError field's value.
- func (s *LabelCounters) SetFailedNonRetryableError(v int64) *LabelCounters {
- s.FailedNonRetryableError = &v
- return s
- }
- // SetHumanLabeled sets the HumanLabeled field's value.
- func (s *LabelCounters) SetHumanLabeled(v int64) *LabelCounters {
- s.HumanLabeled = &v
- return s
- }
- // SetMachineLabeled sets the MachineLabeled field's value.
- func (s *LabelCounters) SetMachineLabeled(v int64) *LabelCounters {
- s.MachineLabeled = &v
- return s
- }
- // SetTotalLabeled sets the TotalLabeled field's value.
- func (s *LabelCounters) SetTotalLabeled(v int64) *LabelCounters {
- s.TotalLabeled = &v
- return s
- }
- // SetUnlabeled sets the Unlabeled field's value.
- func (s *LabelCounters) SetUnlabeled(v int64) *LabelCounters {
- s.Unlabeled = &v
- return s
- }
- // Provides counts for human-labeled tasks in the labeling job.
- type LabelCountersForWorkteam struct {
- _ struct{} `type:"structure"`
- // The total number of data objects labeled by a human worker.
- HumanLabeled *int64 `type:"integer"`
- // The total number of data objects that need to be labeled by a human worker.
- PendingHuman *int64 `type:"integer"`
- // The total number of tasks in the labeling job.
- Total *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s LabelCountersForWorkteam) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelCountersForWorkteam) GoString() string {
- return s.String()
- }
- // SetHumanLabeled sets the HumanLabeled field's value.
- func (s *LabelCountersForWorkteam) SetHumanLabeled(v int64) *LabelCountersForWorkteam {
- s.HumanLabeled = &v
- return s
- }
- // SetPendingHuman sets the PendingHuman field's value.
- func (s *LabelCountersForWorkteam) SetPendingHuman(v int64) *LabelCountersForWorkteam {
- s.PendingHuman = &v
- return s
- }
- // SetTotal sets the Total field's value.
- func (s *LabelCountersForWorkteam) SetTotal(v int64) *LabelCountersForWorkteam {
- s.Total = &v
- return s
- }
- // Provides configuration information for auto-labeling of your data objects.
- // A LabelingJobAlgorithmsConfig object must be supplied in order to use auto-labeling.
- type LabelingJobAlgorithmsConfig struct {
- _ struct{} `type:"structure"`
- // At the end of an auto-label job Amazon SageMaker Ground Truth sends the Amazon
- // Resource Nam (ARN) of the final model used for auto-labeling. You can use
- // this model as the starting point for subsequent similar jobs by providing
- // the ARN of the model here.
- InitialActiveLearningModelArn *string `min:"20" type:"string"`
- // Specifies the Amazon Resource Name (ARN) of the algorithm used for auto-labeling.
- // You must select one of the following ARNs:
- //
- // * Image classification
- //
- // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/image-classification
- //
- // * Text classification
- //
- // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/text-classification
- //
- // * Object detection
- //
- // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/object-detection
- //
- // LabelingJobAlgorithmSpecificationArn is a required field
- LabelingJobAlgorithmSpecificationArn *string `type:"string" required:"true"`
- // Provides configuration information for a labeling job.
- LabelingJobResourceConfig *LabelingJobResourceConfig `type:"structure"`
- }
- // String returns the string representation
- func (s LabelingJobAlgorithmsConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobAlgorithmsConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LabelingJobAlgorithmsConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LabelingJobAlgorithmsConfig"}
- if s.InitialActiveLearningModelArn != nil && len(*s.InitialActiveLearningModelArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("InitialActiveLearningModelArn", 20))
- }
- if s.LabelingJobAlgorithmSpecificationArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LabelingJobAlgorithmSpecificationArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetInitialActiveLearningModelArn sets the InitialActiveLearningModelArn field's value.
- func (s *LabelingJobAlgorithmsConfig) SetInitialActiveLearningModelArn(v string) *LabelingJobAlgorithmsConfig {
- s.InitialActiveLearningModelArn = &v
- return s
- }
- // SetLabelingJobAlgorithmSpecificationArn sets the LabelingJobAlgorithmSpecificationArn field's value.
- func (s *LabelingJobAlgorithmsConfig) SetLabelingJobAlgorithmSpecificationArn(v string) *LabelingJobAlgorithmsConfig {
- s.LabelingJobAlgorithmSpecificationArn = &v
- return s
- }
- // SetLabelingJobResourceConfig sets the LabelingJobResourceConfig field's value.
- func (s *LabelingJobAlgorithmsConfig) SetLabelingJobResourceConfig(v *LabelingJobResourceConfig) *LabelingJobAlgorithmsConfig {
- s.LabelingJobResourceConfig = v
- return s
- }
- // Attributes of the data specified by the customer. Use these to describe the
- // data to be labeled.
- type LabelingJobDataAttributes struct {
- _ struct{} `type:"structure"`
- // Declares that your content is free of personally identifiable information
- // or adult content. Amazon SageMaker may restrict the Amazon Mechanical Turk
- // workers that can view your task based on this information.
- ContentClassifiers []*string `type:"list"`
- }
- // String returns the string representation
- func (s LabelingJobDataAttributes) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobDataAttributes) GoString() string {
- return s.String()
- }
- // SetContentClassifiers sets the ContentClassifiers field's value.
- func (s *LabelingJobDataAttributes) SetContentClassifiers(v []*string) *LabelingJobDataAttributes {
- s.ContentClassifiers = v
- return s
- }
- // Provides information about the location of input data.
- type LabelingJobDataSource struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 location of the input data objects.
- //
- // S3DataSource is a required field
- S3DataSource *LabelingJobS3DataSource `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s LabelingJobDataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobDataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LabelingJobDataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LabelingJobDataSource"}
- if s.S3DataSource == nil {
- invalidParams.Add(request.NewErrParamRequired("S3DataSource"))
- }
- if s.S3DataSource != nil {
- if err := s.S3DataSource.Validate(); err != nil {
- invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetS3DataSource sets the S3DataSource field's value.
- func (s *LabelingJobDataSource) SetS3DataSource(v *LabelingJobS3DataSource) *LabelingJobDataSource {
- s.S3DataSource = v
- return s
- }
- // Provides summary information for a work team.
- type LabelingJobForWorkteamSummary struct {
- _ struct{} `type:"structure"`
- // The date and time that the labeling job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // A unique identifier for a labeling job. You can use this to refer to a specific
- // labeling job.
- //
- // JobReferenceCode is a required field
- JobReferenceCode *string `min:"1" type:"string" required:"true"`
- // Provides information about the progress of a labeling job.
- LabelCounters *LabelCountersForWorkteam `type:"structure"`
- // The name of the labeling job that the work team is assigned to.
- LabelingJobName *string `min:"1" type:"string"`
- // WorkRequesterAccountId is a required field
- WorkRequesterAccountId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LabelingJobForWorkteamSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobForWorkteamSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *LabelingJobForWorkteamSummary) SetCreationTime(v time.Time) *LabelingJobForWorkteamSummary {
- s.CreationTime = &v
- return s
- }
- // SetJobReferenceCode sets the JobReferenceCode field's value.
- func (s *LabelingJobForWorkteamSummary) SetJobReferenceCode(v string) *LabelingJobForWorkteamSummary {
- s.JobReferenceCode = &v
- return s
- }
- // SetLabelCounters sets the LabelCounters field's value.
- func (s *LabelingJobForWorkteamSummary) SetLabelCounters(v *LabelCountersForWorkteam) *LabelingJobForWorkteamSummary {
- s.LabelCounters = v
- return s
- }
- // SetLabelingJobName sets the LabelingJobName field's value.
- func (s *LabelingJobForWorkteamSummary) SetLabelingJobName(v string) *LabelingJobForWorkteamSummary {
- s.LabelingJobName = &v
- return s
- }
- // SetWorkRequesterAccountId sets the WorkRequesterAccountId field's value.
- func (s *LabelingJobForWorkteamSummary) SetWorkRequesterAccountId(v string) *LabelingJobForWorkteamSummary {
- s.WorkRequesterAccountId = &v
- return s
- }
- // Input configuration information for a labeling job.
- type LabelingJobInputConfig struct {
- _ struct{} `type:"structure"`
- // Attributes of the data specified by the customer.
- DataAttributes *LabelingJobDataAttributes `type:"structure"`
- // The location of the input data.
- //
- // DataSource is a required field
- DataSource *LabelingJobDataSource `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s LabelingJobInputConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobInputConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LabelingJobInputConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LabelingJobInputConfig"}
- if s.DataSource == nil {
- invalidParams.Add(request.NewErrParamRequired("DataSource"))
- }
- if s.DataSource != nil {
- if err := s.DataSource.Validate(); err != nil {
- invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDataAttributes sets the DataAttributes field's value.
- func (s *LabelingJobInputConfig) SetDataAttributes(v *LabelingJobDataAttributes) *LabelingJobInputConfig {
- s.DataAttributes = v
- return s
- }
- // SetDataSource sets the DataSource field's value.
- func (s *LabelingJobInputConfig) SetDataSource(v *LabelingJobDataSource) *LabelingJobInputConfig {
- s.DataSource = v
- return s
- }
- // Specifies the location of the output produced by the labeling job.
- type LabelingJobOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) for the most recent Amazon SageMaker model
- // trained as part of automated data labeling.
- FinalActiveLearningModelArn *string `min:"20" type:"string"`
- // The Amazon S3 bucket location of the manifest file for labeled data.
- //
- // OutputDatasetS3Uri is a required field
- OutputDatasetS3Uri *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LabelingJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobOutput) GoString() string {
- return s.String()
- }
- // SetFinalActiveLearningModelArn sets the FinalActiveLearningModelArn field's value.
- func (s *LabelingJobOutput) SetFinalActiveLearningModelArn(v string) *LabelingJobOutput {
- s.FinalActiveLearningModelArn = &v
- return s
- }
- // SetOutputDatasetS3Uri sets the OutputDatasetS3Uri field's value.
- func (s *LabelingJobOutput) SetOutputDatasetS3Uri(v string) *LabelingJobOutput {
- s.OutputDatasetS3Uri = &v
- return s
- }
- // Output configuration information for a labeling job.
- type LabelingJobOutputConfig struct {
- _ struct{} `type:"structure"`
- // The AWS Key Management Service ID of the key used to encrypt the output data,
- // if any.
- KmsKeyId *string `type:"string"`
- // The Amazon S3 location to write output data.
- //
- // S3OutputPath is a required field
- S3OutputPath *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LabelingJobOutputConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobOutputConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LabelingJobOutputConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LabelingJobOutputConfig"}
- if s.S3OutputPath == nil {
- invalidParams.Add(request.NewErrParamRequired("S3OutputPath"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *LabelingJobOutputConfig) SetKmsKeyId(v string) *LabelingJobOutputConfig {
- s.KmsKeyId = &v
- return s
- }
- // SetS3OutputPath sets the S3OutputPath field's value.
- func (s *LabelingJobOutputConfig) SetS3OutputPath(v string) *LabelingJobOutputConfig {
- s.S3OutputPath = &v
- return s
- }
- // Provides configuration information for labeling jobs.
- type LabelingJobResourceConfig struct {
- _ struct{} `type:"structure"`
- // The AWS Key Management Service key ID for the key used to encrypt the output
- // data, if any.
- VolumeKmsKeyId *string `type:"string"`
- }
- // String returns the string representation
- func (s LabelingJobResourceConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobResourceConfig) GoString() string {
- return s.String()
- }
- // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value.
- func (s *LabelingJobResourceConfig) SetVolumeKmsKeyId(v string) *LabelingJobResourceConfig {
- s.VolumeKmsKeyId = &v
- return s
- }
- // The Amazon S3 location of the input data objects.
- type LabelingJobS3DataSource struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 location of the manifest file that describes the input data
- // objects.
- //
- // ManifestS3Uri is a required field
- ManifestS3Uri *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LabelingJobS3DataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobS3DataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LabelingJobS3DataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LabelingJobS3DataSource"}
- if s.ManifestS3Uri == nil {
- invalidParams.Add(request.NewErrParamRequired("ManifestS3Uri"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetManifestS3Uri sets the ManifestS3Uri field's value.
- func (s *LabelingJobS3DataSource) SetManifestS3Uri(v string) *LabelingJobS3DataSource {
- s.ManifestS3Uri = &v
- return s
- }
- // A set of conditions for stopping a labeling job. If any of the conditions
- // are met, the job is automatically stopped. You can use these conditions to
- // control the cost of data labeling.
- type LabelingJobStoppingConditions struct {
- _ struct{} `type:"structure"`
- // The maximum number of objects that can be labeled by human workers.
- MaxHumanLabeledObjectCount *int64 `min:"1" type:"integer"`
- // The maximum number of input data objects that should be labeled.
- MaxPercentageOfInputDatasetLabeled *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s LabelingJobStoppingConditions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobStoppingConditions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LabelingJobStoppingConditions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LabelingJobStoppingConditions"}
- if s.MaxHumanLabeledObjectCount != nil && *s.MaxHumanLabeledObjectCount < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxHumanLabeledObjectCount", 1))
- }
- if s.MaxPercentageOfInputDatasetLabeled != nil && *s.MaxPercentageOfInputDatasetLabeled < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxPercentageOfInputDatasetLabeled", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxHumanLabeledObjectCount sets the MaxHumanLabeledObjectCount field's value.
- func (s *LabelingJobStoppingConditions) SetMaxHumanLabeledObjectCount(v int64) *LabelingJobStoppingConditions {
- s.MaxHumanLabeledObjectCount = &v
- return s
- }
- // SetMaxPercentageOfInputDatasetLabeled sets the MaxPercentageOfInputDatasetLabeled field's value.
- func (s *LabelingJobStoppingConditions) SetMaxPercentageOfInputDatasetLabeled(v int64) *LabelingJobStoppingConditions {
- s.MaxPercentageOfInputDatasetLabeled = &v
- return s
- }
- // Provides summary information about a labeling job.
- type LabelingJobSummary struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the Lambda function used to consolidate
- // the annotations from individual workers into a label for a data object. For
- // more information, see Annotation Consolidation (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html).
- AnnotationConsolidationLambdaArn *string `type:"string"`
- // The date and time that the job was created (timestamp).
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // If the LabelingJobStatus field is Failed, this field contains a description
- // of the error.
- FailureReason *string `type:"string"`
- // Input configuration for the labeling job.
- InputConfig *LabelingJobInputConfig `type:"structure"`
- // Counts showing the progress of the labeling job.
- //
- // LabelCounters is a required field
- LabelCounters *LabelCounters `type:"structure" required:"true"`
- // The Amazon Resource Name (ARN) assigned to the labeling job when it was created.
- //
- // LabelingJobArn is a required field
- LabelingJobArn *string `type:"string" required:"true"`
- // The name of the labeling job.
- //
- // LabelingJobName is a required field
- LabelingJobName *string `min:"1" type:"string" required:"true"`
- // The location of the output produced by the labeling job.
- LabelingJobOutput *LabelingJobOutput `type:"structure"`
- // The current status of the labeling job.
- //
- // LabelingJobStatus is a required field
- LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"`
- // The date and time that the job was last modified (timestamp).
- //
- // LastModifiedTime is a required field
- LastModifiedTime *time.Time `type:"timestamp" required:"true"`
- // The Amazon Resource Name (ARN) of a Lambda function. The function is run
- // before each data object is sent to a worker.
- //
- // PreHumanTaskLambdaArn is a required field
- PreHumanTaskLambdaArn *string `type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the work team assigned to the job.
- //
- // WorkteamArn is a required field
- WorkteamArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LabelingJobSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LabelingJobSummary) GoString() string {
- return s.String()
- }
- // SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value.
- func (s *LabelingJobSummary) SetAnnotationConsolidationLambdaArn(v string) *LabelingJobSummary {
- s.AnnotationConsolidationLambdaArn = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *LabelingJobSummary) SetCreationTime(v time.Time) *LabelingJobSummary {
- s.CreationTime = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *LabelingJobSummary) SetFailureReason(v string) *LabelingJobSummary {
- s.FailureReason = &v
- return s
- }
- // SetInputConfig sets the InputConfig field's value.
- func (s *LabelingJobSummary) SetInputConfig(v *LabelingJobInputConfig) *LabelingJobSummary {
- s.InputConfig = v
- return s
- }
- // SetLabelCounters sets the LabelCounters field's value.
- func (s *LabelingJobSummary) SetLabelCounters(v *LabelCounters) *LabelingJobSummary {
- s.LabelCounters = v
- return s
- }
- // SetLabelingJobArn sets the LabelingJobArn field's value.
- func (s *LabelingJobSummary) SetLabelingJobArn(v string) *LabelingJobSummary {
- s.LabelingJobArn = &v
- return s
- }
- // SetLabelingJobName sets the LabelingJobName field's value.
- func (s *LabelingJobSummary) SetLabelingJobName(v string) *LabelingJobSummary {
- s.LabelingJobName = &v
- return s
- }
- // SetLabelingJobOutput sets the LabelingJobOutput field's value.
- func (s *LabelingJobSummary) SetLabelingJobOutput(v *LabelingJobOutput) *LabelingJobSummary {
- s.LabelingJobOutput = v
- return s
- }
- // SetLabelingJobStatus sets the LabelingJobStatus field's value.
- func (s *LabelingJobSummary) SetLabelingJobStatus(v string) *LabelingJobSummary {
- s.LabelingJobStatus = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *LabelingJobSummary) SetLastModifiedTime(v time.Time) *LabelingJobSummary {
- s.LastModifiedTime = &v
- return s
- }
- // SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value.
- func (s *LabelingJobSummary) SetPreHumanTaskLambdaArn(v string) *LabelingJobSummary {
- s.PreHumanTaskLambdaArn = &v
- return s
- }
- // SetWorkteamArn sets the WorkteamArn field's value.
- func (s *LabelingJobSummary) SetWorkteamArn(v string) *LabelingJobSummary {
- s.WorkteamArn = &v
- return s
- }
- type ListAlgorithmsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only algorithms created after the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only algorithms created before the specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of algorithms to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the algorithm name. This filter returns only algorithms whose
- // name contains the specified string.
- NameContains *string `type:"string"`
- // If the response to a previous ListAlgorithms request was truncated, the response
- // includes a NextToken. To retrieve the next set of algorithms, use the token
- // in the next request.
- NextToken *string `type:"string"`
- // The parameter by which to sort the results. The default is CreationTime.
- SortBy *string `type:"string" enum:"AlgorithmSortBy"`
- // The sort order for the results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- }
- // String returns the string representation
- func (s ListAlgorithmsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAlgorithmsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAlgorithmsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAlgorithmsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListAlgorithmsInput) SetCreationTimeAfter(v time.Time) *ListAlgorithmsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListAlgorithmsInput) SetCreationTimeBefore(v time.Time) *ListAlgorithmsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListAlgorithmsInput) SetMaxResults(v int64) *ListAlgorithmsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListAlgorithmsInput) SetNameContains(v string) *ListAlgorithmsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAlgorithmsInput) SetNextToken(v string) *ListAlgorithmsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListAlgorithmsInput) SetSortBy(v string) *ListAlgorithmsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListAlgorithmsInput) SetSortOrder(v string) *ListAlgorithmsInput {
- s.SortOrder = &v
- return s
- }
- type ListAlgorithmsOutput struct {
- _ struct{} `type:"structure"`
- // >An array of AlgorithmSummary objects, each of which lists an algorithm.
- //
- // AlgorithmSummaryList is a required field
- AlgorithmSummaryList []*AlgorithmSummary `type:"list" required:"true"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of algorithms, use it in the subsequent request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListAlgorithmsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAlgorithmsOutput) GoString() string {
- return s.String()
- }
- // SetAlgorithmSummaryList sets the AlgorithmSummaryList field's value.
- func (s *ListAlgorithmsOutput) SetAlgorithmSummaryList(v []*AlgorithmSummary) *ListAlgorithmsOutput {
- s.AlgorithmSummaryList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAlgorithmsOutput) SetNextToken(v string) *ListAlgorithmsOutput {
- s.NextToken = &v
- return s
- }
- type ListCodeRepositoriesInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only Git repositories that were created after the specified
- // time.
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only Git repositories that were created before the
- // specified time.
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns only Git repositories that were last modified after
- // the specified time.
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only Git repositories that were last modified before
- // the specified time.
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of Git repositories to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the Git repositories name. This filter returns only repositories
- // whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the result of a ListCodeRepositoriesOutput request was truncated, the
- // response includes a NextToken. To get the next set of Git repositories, use
- // the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is Name.
- SortBy *string `type:"string" enum:"CodeRepositorySortBy"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"CodeRepositorySortOrder"`
- }
- // String returns the string representation
- func (s ListCodeRepositoriesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCodeRepositoriesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCodeRepositoriesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCodeRepositoriesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListCodeRepositoriesInput) SetCreationTimeAfter(v time.Time) *ListCodeRepositoriesInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListCodeRepositoriesInput) SetCreationTimeBefore(v time.Time) *ListCodeRepositoriesInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListCodeRepositoriesInput) SetLastModifiedTimeAfter(v time.Time) *ListCodeRepositoriesInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListCodeRepositoriesInput) SetLastModifiedTimeBefore(v time.Time) *ListCodeRepositoriesInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListCodeRepositoriesInput) SetMaxResults(v int64) *ListCodeRepositoriesInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListCodeRepositoriesInput) SetNameContains(v string) *ListCodeRepositoriesInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListCodeRepositoriesInput) SetNextToken(v string) *ListCodeRepositoriesInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListCodeRepositoriesInput) SetSortBy(v string) *ListCodeRepositoriesInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListCodeRepositoriesInput) SetSortOrder(v string) *ListCodeRepositoriesInput {
- s.SortOrder = &v
- return s
- }
- type ListCodeRepositoriesOutput struct {
- _ struct{} `type:"structure"`
- // Gets a list of summaries of the Git repositories. Each summary specifies
- // the following values for the repository:
- //
- // * Name
- //
- // * Amazon Resource Name (ARN)
- //
- // * Creation time
- //
- // * Last modified time
- //
- // * Configuration information, including the URL location of the repository
- // and the ARN of the AWS Secrets Manager secret that contains the credentials
- // used to access the repository.
- //
- // CodeRepositorySummaryList is a required field
- CodeRepositorySummaryList []*CodeRepositorySummary `type:"list" required:"true"`
- // If the result of a ListCodeRepositoriesOutput request was truncated, the
- // response includes a NextToken. To get the next set of Git repositories, use
- // the token in the next request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListCodeRepositoriesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCodeRepositoriesOutput) GoString() string {
- return s.String()
- }
- // SetCodeRepositorySummaryList sets the CodeRepositorySummaryList field's value.
- func (s *ListCodeRepositoriesOutput) SetCodeRepositorySummaryList(v []*CodeRepositorySummary) *ListCodeRepositoriesOutput {
- s.CodeRepositorySummaryList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListCodeRepositoriesOutput) SetNextToken(v string) *ListCodeRepositoriesOutput {
- s.NextToken = &v
- return s
- }
- type ListCompilationJobsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns the model compilation jobs that were created after
- // a specified time.
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns the model compilation jobs that were created before
- // a specified time.
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns the model compilation jobs that were modified after
- // a specified time.
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns the model compilation jobs that were modified before
- // a specified time.
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of model compilation jobs to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A filter that returns the model compilation jobs whose name contains a specified
- // string.
- NameContains *string `type:"string"`
- // If the result of the previous ListCompilationJobs request was truncated,
- // the response includes a NextToken. To retrieve the next set of model compilation
- // jobs, use the token in the next request.
- NextToken *string `type:"string"`
- // The field by which to sort results. The default is CreationTime.
- SortBy *string `type:"string" enum:"ListCompilationJobsSortBy"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- // A filter that retrieves model compilation jobs with a specific DescribeCompilationJobResponse$CompilationJobStatus
- // status.
- StatusEquals *string `type:"string" enum:"CompilationJobStatus"`
- }
- // String returns the string representation
- func (s ListCompilationJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCompilationJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCompilationJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCompilationJobsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListCompilationJobsInput) SetCreationTimeAfter(v time.Time) *ListCompilationJobsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListCompilationJobsInput) SetCreationTimeBefore(v time.Time) *ListCompilationJobsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListCompilationJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListCompilationJobsInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListCompilationJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListCompilationJobsInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListCompilationJobsInput) SetMaxResults(v int64) *ListCompilationJobsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListCompilationJobsInput) SetNameContains(v string) *ListCompilationJobsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListCompilationJobsInput) SetNextToken(v string) *ListCompilationJobsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListCompilationJobsInput) SetSortBy(v string) *ListCompilationJobsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListCompilationJobsInput) SetSortOrder(v string) *ListCompilationJobsInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListCompilationJobsInput) SetStatusEquals(v string) *ListCompilationJobsInput {
- s.StatusEquals = &v
- return s
- }
- type ListCompilationJobsOutput struct {
- _ struct{} `type:"structure"`
- // An array of CompilationJobSummary objects, each describing a model compilation
- // job.
- //
- // CompilationJobSummaries is a required field
- CompilationJobSummaries []*CompilationJobSummary `type:"list" required:"true"`
- // If the response is truncated, Amazon SageMaker returns this NextToken. To
- // retrieve the next set of model compilation jobs, use this token in the next
- // request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListCompilationJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCompilationJobsOutput) GoString() string {
- return s.String()
- }
- // SetCompilationJobSummaries sets the CompilationJobSummaries field's value.
- func (s *ListCompilationJobsOutput) SetCompilationJobSummaries(v []*CompilationJobSummary) *ListCompilationJobsOutput {
- s.CompilationJobSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListCompilationJobsOutput) SetNextToken(v string) *ListCompilationJobsOutput {
- s.NextToken = &v
- return s
- }
- type ListEndpointConfigsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only endpoint configurations created after the specified
- // time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only endpoint configurations created before the specified
- // time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of training jobs to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the endpoint configuration name. This filter returns only endpoint
- // configurations whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the result of the previous ListEndpointConfig request was truncated, the
- // response includes a NextToken. To retrieve the next set of endpoint configurations,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is CreationTime.
- SortBy *string `type:"string" enum:"EndpointConfigSortKey"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"OrderKey"`
- }
- // String returns the string representation
- func (s ListEndpointConfigsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListEndpointConfigsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListEndpointConfigsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListEndpointConfigsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListEndpointConfigsInput) SetCreationTimeAfter(v time.Time) *ListEndpointConfigsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListEndpointConfigsInput) SetCreationTimeBefore(v time.Time) *ListEndpointConfigsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListEndpointConfigsInput) SetMaxResults(v int64) *ListEndpointConfigsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListEndpointConfigsInput) SetNameContains(v string) *ListEndpointConfigsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListEndpointConfigsInput) SetNextToken(v string) *ListEndpointConfigsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListEndpointConfigsInput) SetSortBy(v string) *ListEndpointConfigsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListEndpointConfigsInput) SetSortOrder(v string) *ListEndpointConfigsInput {
- s.SortOrder = &v
- return s
- }
- type ListEndpointConfigsOutput struct {
- _ struct{} `type:"structure"`
- // An array of endpoint configurations.
- //
- // EndpointConfigs is a required field
- EndpointConfigs []*EndpointConfigSummary `type:"list" required:"true"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of endpoint configurations, use it in the subsequent request
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListEndpointConfigsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListEndpointConfigsOutput) GoString() string {
- return s.String()
- }
- // SetEndpointConfigs sets the EndpointConfigs field's value.
- func (s *ListEndpointConfigsOutput) SetEndpointConfigs(v []*EndpointConfigSummary) *ListEndpointConfigsOutput {
- s.EndpointConfigs = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListEndpointConfigsOutput) SetNextToken(v string) *ListEndpointConfigsOutput {
- s.NextToken = &v
- return s
- }
- type ListEndpointsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only endpoints that were created after the specified
- // time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only endpoints that were created before the specified
- // time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns only endpoints that were modified after the specified
- // timestamp.
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only endpoints that were modified before the specified
- // timestamp.
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of endpoints to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in endpoint names. This filter returns only endpoints whose name
- // contains the specified string.
- NameContains *string `type:"string"`
- // If the result of a ListEndpoints request was truncated, the response includes
- // a NextToken. To retrieve the next set of endpoints, use the token in the
- // next request.
- NextToken *string `type:"string"`
- // Sorts the list of results. The default is CreationTime.
- SortBy *string `type:"string" enum:"EndpointSortKey"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"OrderKey"`
- // A filter that returns only endpoints with the specified status.
- StatusEquals *string `type:"string" enum:"EndpointStatus"`
- }
- // String returns the string representation
- func (s ListEndpointsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListEndpointsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListEndpointsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListEndpointsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListEndpointsInput) SetCreationTimeAfter(v time.Time) *ListEndpointsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListEndpointsInput) SetCreationTimeBefore(v time.Time) *ListEndpointsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListEndpointsInput) SetLastModifiedTimeAfter(v time.Time) *ListEndpointsInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListEndpointsInput) SetLastModifiedTimeBefore(v time.Time) *ListEndpointsInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListEndpointsInput) SetMaxResults(v int64) *ListEndpointsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListEndpointsInput) SetNameContains(v string) *ListEndpointsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListEndpointsInput) SetNextToken(v string) *ListEndpointsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListEndpointsInput) SetSortBy(v string) *ListEndpointsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListEndpointsInput) SetSortOrder(v string) *ListEndpointsInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListEndpointsInput) SetStatusEquals(v string) *ListEndpointsInput {
- s.StatusEquals = &v
- return s
- }
- type ListEndpointsOutput struct {
- _ struct{} `type:"structure"`
- // An array or endpoint objects.
- //
- // Endpoints is a required field
- Endpoints []*EndpointSummary `type:"list" required:"true"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of training jobs, use it in the subsequent request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListEndpointsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListEndpointsOutput) GoString() string {
- return s.String()
- }
- // SetEndpoints sets the Endpoints field's value.
- func (s *ListEndpointsOutput) SetEndpoints(v []*EndpointSummary) *ListEndpointsOutput {
- s.Endpoints = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListEndpointsOutput) SetNextToken(v string) *ListEndpointsOutput {
- s.NextToken = &v
- return s
- }
- type ListHyperParameterTuningJobsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only tuning jobs that were created after the specified
- // time.
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only tuning jobs that were created before the specified
- // time.
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns only tuning jobs that were modified after the specified
- // time.
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only tuning jobs that were modified before the specified
- // time.
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of tuning jobs to return. The default value is 10.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the tuning job name. This filter returns only tuning jobs whose
- // name contains the specified string.
- NameContains *string `type:"string"`
- // If the result of the previous ListHyperParameterTuningJobs request was truncated,
- // the response includes a NextToken. To retrieve the next set of tuning jobs,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is Name.
- SortBy *string `type:"string" enum:"HyperParameterTuningJobSortByOptions"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- // A filter that returns only tuning jobs with the specified status.
- StatusEquals *string `type:"string" enum:"HyperParameterTuningJobStatus"`
- }
- // String returns the string representation
- func (s ListHyperParameterTuningJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHyperParameterTuningJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListHyperParameterTuningJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListHyperParameterTuningJobsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListHyperParameterTuningJobsInput) SetCreationTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListHyperParameterTuningJobsInput) SetCreationTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListHyperParameterTuningJobsInput) SetMaxResults(v int64) *ListHyperParameterTuningJobsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListHyperParameterTuningJobsInput) SetNameContains(v string) *ListHyperParameterTuningJobsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListHyperParameterTuningJobsInput) SetNextToken(v string) *ListHyperParameterTuningJobsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListHyperParameterTuningJobsInput) SetSortBy(v string) *ListHyperParameterTuningJobsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListHyperParameterTuningJobsInput) SetSortOrder(v string) *ListHyperParameterTuningJobsInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListHyperParameterTuningJobsInput) SetStatusEquals(v string) *ListHyperParameterTuningJobsInput {
- s.StatusEquals = &v
- return s
- }
- type ListHyperParameterTuningJobsOutput struct {
- _ struct{} `type:"structure"`
- // A list of HyperParameterTuningJobSummary objects that describe the tuning
- // jobs that the ListHyperParameterTuningJobs request returned.
- //
- // HyperParameterTuningJobSummaries is a required field
- HyperParameterTuningJobSummaries []*HyperParameterTuningJobSummary `type:"list" required:"true"`
- // If the result of this ListHyperParameterTuningJobs request was truncated,
- // the response includes a NextToken. To retrieve the next set of tuning jobs,
- // use the token in the next request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHyperParameterTuningJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHyperParameterTuningJobsOutput) GoString() string {
- return s.String()
- }
- // SetHyperParameterTuningJobSummaries sets the HyperParameterTuningJobSummaries field's value.
- func (s *ListHyperParameterTuningJobsOutput) SetHyperParameterTuningJobSummaries(v []*HyperParameterTuningJobSummary) *ListHyperParameterTuningJobsOutput {
- s.HyperParameterTuningJobSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListHyperParameterTuningJobsOutput) SetNextToken(v string) *ListHyperParameterTuningJobsOutput {
- s.NextToken = &v
- return s
- }
- type ListLabelingJobsForWorkteamInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only labeling jobs created after the specified time
- // (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only labeling jobs created before the specified time
- // (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter the limits jobs to only the ones whose job reference code contains
- // the specified string.
- JobReferenceCodeContains *string `min:"1" type:"string"`
- // The maximum number of labeling jobs to return in each page of the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // If the result of the previous ListLabelingJobsForWorkteam request was truncated,
- // the response includes a NextToken. To retrieve the next set of labeling jobs,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is CreationTime.
- SortBy *string `type:"string" enum:"ListLabelingJobsForWorkteamSortByOptions"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- // The Amazon Resource Name (ARN) of the work team for which you want to see
- // labeling jobs for.
- //
- // WorkteamArn is a required field
- WorkteamArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListLabelingJobsForWorkteamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLabelingJobsForWorkteamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListLabelingJobsForWorkteamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsForWorkteamInput"}
- if s.JobReferenceCodeContains != nil && len(*s.JobReferenceCodeContains) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobReferenceCodeContains", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.WorkteamArn == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkteamArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsForWorkteamInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsForWorkteamInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetJobReferenceCodeContains sets the JobReferenceCodeContains field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetJobReferenceCodeContains(v string) *ListLabelingJobsForWorkteamInput {
- s.JobReferenceCodeContains = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetMaxResults(v int64) *ListLabelingJobsForWorkteamInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetNextToken(v string) *ListLabelingJobsForWorkteamInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetSortBy(v string) *ListLabelingJobsForWorkteamInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetSortOrder(v string) *ListLabelingJobsForWorkteamInput {
- s.SortOrder = &v
- return s
- }
- // SetWorkteamArn sets the WorkteamArn field's value.
- func (s *ListLabelingJobsForWorkteamInput) SetWorkteamArn(v string) *ListLabelingJobsForWorkteamInput {
- s.WorkteamArn = &v
- return s
- }
- type ListLabelingJobsForWorkteamOutput struct {
- _ struct{} `type:"structure"`
- // An array of LabelingJobSummary objects, each describing a labeling job.
- //
- // LabelingJobSummaryList is a required field
- LabelingJobSummaryList []*LabelingJobForWorkteamSummary `type:"list" required:"true"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of labeling jobs, use it in the subsequent request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListLabelingJobsForWorkteamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLabelingJobsForWorkteamOutput) GoString() string {
- return s.String()
- }
- // SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value.
- func (s *ListLabelingJobsForWorkteamOutput) SetLabelingJobSummaryList(v []*LabelingJobForWorkteamSummary) *ListLabelingJobsForWorkteamOutput {
- s.LabelingJobSummaryList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListLabelingJobsForWorkteamOutput) SetNextToken(v string) *ListLabelingJobsForWorkteamOutput {
- s.NextToken = &v
- return s
- }
- type ListLabelingJobsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only labeling jobs created after the specified time
- // (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only labeling jobs created before the specified time
- // (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns only labeling jobs modified after the specified time
- // (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only labeling jobs modified before the specified time
- // (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of labeling jobs to return in each page of the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the labeling job name. This filter returns only labeling jobs
- // whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the result of the previous ListLabelingJobs request was truncated, the
- // response includes a NextToken. To retrieve the next set of labeling jobs,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is CreationTime.
- SortBy *string `type:"string" enum:"SortBy"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- // A filter that retrieves only labeling jobs with a specific status.
- StatusEquals *string `type:"string" enum:"LabelingJobStatus"`
- }
- // String returns the string representation
- func (s ListLabelingJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLabelingJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListLabelingJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListLabelingJobsInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListLabelingJobsInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListLabelingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListLabelingJobsInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListLabelingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListLabelingJobsInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListLabelingJobsInput) SetMaxResults(v int64) *ListLabelingJobsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListLabelingJobsInput) SetNameContains(v string) *ListLabelingJobsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListLabelingJobsInput) SetNextToken(v string) *ListLabelingJobsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListLabelingJobsInput) SetSortBy(v string) *ListLabelingJobsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListLabelingJobsInput) SetSortOrder(v string) *ListLabelingJobsInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListLabelingJobsInput) SetStatusEquals(v string) *ListLabelingJobsInput {
- s.StatusEquals = &v
- return s
- }
- type ListLabelingJobsOutput struct {
- _ struct{} `type:"structure"`
- // An array of LabelingJobSummary objects, each describing a labeling job.
- LabelingJobSummaryList []*LabelingJobSummary `type:"list"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of labeling jobs, use it in the subsequent request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListLabelingJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLabelingJobsOutput) GoString() string {
- return s.String()
- }
- // SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value.
- func (s *ListLabelingJobsOutput) SetLabelingJobSummaryList(v []*LabelingJobSummary) *ListLabelingJobsOutput {
- s.LabelingJobSummaryList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListLabelingJobsOutput) SetNextToken(v string) *ListLabelingJobsOutput {
- s.NextToken = &v
- return s
- }
- type ListModelPackagesInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only model packages created after the specified time
- // (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only model packages created before the specified time
- // (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of model packages to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the model package name. This filter returns only model packages
- // whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the response to a previous ListModelPackages request was truncated, the
- // response includes a NextToken. To retrieve the next set of model packages,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // The parameter by which to sort the results. The default is CreationTime.
- SortBy *string `type:"string" enum:"ModelPackageSortBy"`
- // The sort order for the results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- }
- // String returns the string representation
- func (s ListModelPackagesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListModelPackagesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListModelPackagesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListModelPackagesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListModelPackagesInput) SetCreationTimeAfter(v time.Time) *ListModelPackagesInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListModelPackagesInput) SetCreationTimeBefore(v time.Time) *ListModelPackagesInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListModelPackagesInput) SetMaxResults(v int64) *ListModelPackagesInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListModelPackagesInput) SetNameContains(v string) *ListModelPackagesInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListModelPackagesInput) SetNextToken(v string) *ListModelPackagesInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListModelPackagesInput) SetSortBy(v string) *ListModelPackagesInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListModelPackagesInput) SetSortOrder(v string) *ListModelPackagesInput {
- s.SortOrder = &v
- return s
- }
- type ListModelPackagesOutput struct {
- _ struct{} `type:"structure"`
- // An array of ModelPackageSummary objects, each of which lists a model package.
- //
- // ModelPackageSummaryList is a required field
- ModelPackageSummaryList []*ModelPackageSummary `type:"list" required:"true"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of model packages, use it in the subsequent request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListModelPackagesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListModelPackagesOutput) GoString() string {
- return s.String()
- }
- // SetModelPackageSummaryList sets the ModelPackageSummaryList field's value.
- func (s *ListModelPackagesOutput) SetModelPackageSummaryList(v []*ModelPackageSummary) *ListModelPackagesOutput {
- s.ModelPackageSummaryList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListModelPackagesOutput) SetNextToken(v string) *ListModelPackagesOutput {
- s.NextToken = &v
- return s
- }
- type ListModelsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only models created after the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only models created before the specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of models to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the training job name. This filter returns only models in the
- // training job whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the response to a previous ListModels request was truncated, the response
- // includes a NextToken. To retrieve the next set of models, use the token in
- // the next request.
- NextToken *string `type:"string"`
- // Sorts the list of results. The default is CreationTime.
- SortBy *string `type:"string" enum:"ModelSortKey"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"OrderKey"`
- }
- // String returns the string representation
- func (s ListModelsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListModelsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListModelsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListModelsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListModelsInput) SetCreationTimeAfter(v time.Time) *ListModelsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListModelsInput) SetCreationTimeBefore(v time.Time) *ListModelsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListModelsInput) SetMaxResults(v int64) *ListModelsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListModelsInput) SetNameContains(v string) *ListModelsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListModelsInput) SetNextToken(v string) *ListModelsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListModelsInput) SetSortBy(v string) *ListModelsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListModelsInput) SetSortOrder(v string) *ListModelsInput {
- s.SortOrder = &v
- return s
- }
- type ListModelsOutput struct {
- _ struct{} `type:"structure"`
- // An array of ModelSummary objects, each of which lists a model.
- //
- // Models is a required field
- Models []*ModelSummary `type:"list" required:"true"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of models, use it in the subsequent request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListModelsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListModelsOutput) GoString() string {
- return s.String()
- }
- // SetModels sets the Models field's value.
- func (s *ListModelsOutput) SetModels(v []*ModelSummary) *ListModelsOutput {
- s.Models = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListModelsOutput) SetNextToken(v string) *ListModelsOutput {
- s.NextToken = &v
- return s
- }
- type ListNotebookInstanceLifecycleConfigsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only lifecycle configurations that were created after
- // the specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only lifecycle configurations that were created before
- // the specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns only lifecycle configurations that were modified after
- // the specified time (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only lifecycle configurations that were modified before
- // the specified time (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of lifecycle configurations to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the lifecycle configuration name. This filter returns only lifecycle
- // configurations whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the result of a ListNotebookInstanceLifecycleConfigs request was truncated,
- // the response includes a NextToken. To get the next set of lifecycle configurations,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // Sorts the list of results. The default is CreationTime.
- SortBy *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortKey"`
- // The sort order for results.
- SortOrder *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortOrder"`
- }
- // String returns the string representation
- func (s ListNotebookInstanceLifecycleConfigsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListNotebookInstanceLifecycleConfigsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListNotebookInstanceLifecycleConfigsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstanceLifecycleConfigsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetMaxResults(v int64) *ListNotebookInstanceLifecycleConfigsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetNameContains(v string) *ListNotebookInstanceLifecycleConfigsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortBy(v string) *ListNotebookInstanceLifecycleConfigsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortOrder(v string) *ListNotebookInstanceLifecycleConfigsInput {
- s.SortOrder = &v
- return s
- }
- type ListNotebookInstanceLifecycleConfigsOutput struct {
- _ struct{} `type:"structure"`
- // If the response is truncated, Amazon SageMaker returns this token. To get
- // the next set of lifecycle configurations, use it in the next request.
- NextToken *string `type:"string"`
- // An array of NotebookInstanceLifecycleConfiguration objects, each listing
- // a lifecycle configuration.
- NotebookInstanceLifecycleConfigs []*NotebookInstanceLifecycleConfigSummary `type:"list"`
- }
- // String returns the string representation
- func (s ListNotebookInstanceLifecycleConfigsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListNotebookInstanceLifecycleConfigsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsOutput {
- s.NextToken = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigs sets the NotebookInstanceLifecycleConfigs field's value.
- func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNotebookInstanceLifecycleConfigs(v []*NotebookInstanceLifecycleConfigSummary) *ListNotebookInstanceLifecycleConfigsOutput {
- s.NotebookInstanceLifecycleConfigs = v
- return s
- }
- type ListNotebookInstancesInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only notebook instances with associated with the specified
- // git repository.
- AdditionalCodeRepositoryEquals *string `min:"1" type:"string"`
- // A filter that returns only notebook instances that were created after the
- // specified time (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only notebook instances that were created before the
- // specified time (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A string in the name or URL of a Git repository associated with this notebook
- // instance. This filter returns only notebook instances associated with a git
- // repository with a name that contains the specified string.
- DefaultCodeRepositoryContains *string `type:"string"`
- // A filter that returns only notebook instances that were modified after the
- // specified time (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only notebook instances that were modified before the
- // specified time (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of notebook instances to return.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the notebook instances' name. This filter returns only notebook
- // instances whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the previous call to the ListNotebookInstances is truncated, the response
- // includes a NextToken. You can use this token in your subsequent ListNotebookInstances
- // request to fetch the next set of notebook instances.
- //
- // You might specify a filter or a sort order in your request. When response
- // is truncated, you must use the same values for the filer and sort order in
- // the next request.
- NextToken *string `type:"string"`
- // A string in the name of a notebook instances lifecycle configuration associated
- // with this notebook instance. This filter returns only notebook instances
- // associated with a lifecycle configuration with a name that contains the specified
- // string.
- NotebookInstanceLifecycleConfigNameContains *string `type:"string"`
- // The field to sort results by. The default is Name.
- SortBy *string `type:"string" enum:"NotebookInstanceSortKey"`
- // The sort order for results.
- SortOrder *string `type:"string" enum:"NotebookInstanceSortOrder"`
- // A filter that returns only notebook instances with the specified status.
- StatusEquals *string `type:"string" enum:"NotebookInstanceStatus"`
- }
- // String returns the string representation
- func (s ListNotebookInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListNotebookInstancesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListNotebookInstancesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstancesInput"}
- if s.AdditionalCodeRepositoryEquals != nil && len(*s.AdditionalCodeRepositoryEquals) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AdditionalCodeRepositoryEquals", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAdditionalCodeRepositoryEquals sets the AdditionalCodeRepositoryEquals field's value.
- func (s *ListNotebookInstancesInput) SetAdditionalCodeRepositoryEquals(v string) *ListNotebookInstancesInput {
- s.AdditionalCodeRepositoryEquals = &v
- return s
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListNotebookInstancesInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstancesInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListNotebookInstancesInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstancesInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetDefaultCodeRepositoryContains sets the DefaultCodeRepositoryContains field's value.
- func (s *ListNotebookInstancesInput) SetDefaultCodeRepositoryContains(v string) *ListNotebookInstancesInput {
- s.DefaultCodeRepositoryContains = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListNotebookInstancesInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstancesInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListNotebookInstancesInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstancesInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListNotebookInstancesInput) SetMaxResults(v int64) *ListNotebookInstancesInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListNotebookInstancesInput) SetNameContains(v string) *ListNotebookInstancesInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListNotebookInstancesInput) SetNextToken(v string) *ListNotebookInstancesInput {
- s.NextToken = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigNameContains sets the NotebookInstanceLifecycleConfigNameContains field's value.
- func (s *ListNotebookInstancesInput) SetNotebookInstanceLifecycleConfigNameContains(v string) *ListNotebookInstancesInput {
- s.NotebookInstanceLifecycleConfigNameContains = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListNotebookInstancesInput) SetSortBy(v string) *ListNotebookInstancesInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListNotebookInstancesInput) SetSortOrder(v string) *ListNotebookInstancesInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListNotebookInstancesInput) SetStatusEquals(v string) *ListNotebookInstancesInput {
- s.StatusEquals = &v
- return s
- }
- type ListNotebookInstancesOutput struct {
- _ struct{} `type:"structure"`
- // If the response to the previous ListNotebookInstances request was truncated,
- // Amazon SageMaker returns this token. To retrieve the next set of notebook
- // instances, use the token in the next request.
- NextToken *string `type:"string"`
- // An array of NotebookInstanceSummary objects, one for each notebook instance.
- NotebookInstances []*NotebookInstanceSummary `type:"list"`
- }
- // String returns the string representation
- func (s ListNotebookInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListNotebookInstancesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListNotebookInstancesOutput) SetNextToken(v string) *ListNotebookInstancesOutput {
- s.NextToken = &v
- return s
- }
- // SetNotebookInstances sets the NotebookInstances field's value.
- func (s *ListNotebookInstancesOutput) SetNotebookInstances(v []*NotebookInstanceSummary) *ListNotebookInstancesOutput {
- s.NotebookInstances = v
- return s
- }
- type ListSubscribedWorkteamsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of work teams to return in each page of the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the work team name. This filter returns only work teams whose
- // name contains the specified string.
- NameContains *string `min:"1" type:"string"`
- // If the result of the previous ListSubscribedWorkteams request was truncated,
- // the response includes a NextToken. To retrieve the next set of labeling jobs,
- // use the token in the next request.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListSubscribedWorkteamsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListSubscribedWorkteamsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListSubscribedWorkteamsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListSubscribedWorkteamsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NameContains != nil && len(*s.NameContains) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListSubscribedWorkteamsInput) SetMaxResults(v int64) *ListSubscribedWorkteamsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListSubscribedWorkteamsInput) SetNameContains(v string) *ListSubscribedWorkteamsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListSubscribedWorkteamsInput) SetNextToken(v string) *ListSubscribedWorkteamsInput {
- s.NextToken = &v
- return s
- }
- type ListSubscribedWorkteamsOutput struct {
- _ struct{} `type:"structure"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of work teams, use it in the subsequent request.
- NextToken *string `type:"string"`
- // An array of Workteam objects, each describing a work team.
- //
- // SubscribedWorkteams is a required field
- SubscribedWorkteams []*SubscribedWorkteam `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListSubscribedWorkteamsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListSubscribedWorkteamsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListSubscribedWorkteamsOutput) SetNextToken(v string) *ListSubscribedWorkteamsOutput {
- s.NextToken = &v
- return s
- }
- // SetSubscribedWorkteams sets the SubscribedWorkteams field's value.
- func (s *ListSubscribedWorkteamsOutput) SetSubscribedWorkteams(v []*SubscribedWorkteam) *ListSubscribedWorkteamsOutput {
- s.SubscribedWorkteams = v
- return s
- }
- type ListTagsInput struct {
- _ struct{} `type:"structure"`
- // Maximum number of tags to return.
- MaxResults *int64 `min:"50" type:"integer"`
- // If the response to the previous ListTags request is truncated, Amazon SageMaker
- // returns this token. To retrieve the next set of tags, use it in the subsequent
- // request.
- NextToken *string `type:"string"`
- // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.
- //
- // ResourceArn is a required field
- ResourceArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"}
- if s.MaxResults != nil && *s.MaxResults < 50 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50))
- }
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput {
- s.NextToken = &v
- return s
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *ListTagsInput) SetResourceArn(v string) *ListTagsInput {
- s.ResourceArn = &v
- return s
- }
- type ListTagsOutput struct {
- _ struct{} `type:"structure"`
- // If response is truncated, Amazon SageMaker includes a token in the response.
- // You can use this token in your subsequent request to fetch next set of tokens.
- NextToken *string `type:"string"`
- // An array of Tag objects, each with a tag key and a value.
- Tags []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s ListTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput {
- s.NextToken = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput {
- s.Tags = v
- return s
- }
- type ListTrainingJobsForHyperParameterTuningJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the tuning job whose training jobs you want to list.
- //
- // HyperParameterTuningJobName is a required field
- HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
- // The maximum number of training jobs to return. The default value is 10.
- MaxResults *int64 `min:"1" type:"integer"`
- // If the result of the previous ListTrainingJobsForHyperParameterTuningJob
- // request was truncated, the response includes a NextToken. To retrieve the
- // next set of training jobs, use the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is Name.
- //
- // If the value of this field is FinalObjectiveMetricValue, any training jobs
- // that did not return an objective metric are not listed.
- SortBy *string `type:"string" enum:"TrainingJobSortByOptions"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- // A filter that returns only training jobs with the specified status.
- StatusEquals *string `type:"string" enum:"TrainingJobStatus"`
- }
- // String returns the string representation
- func (s ListTrainingJobsForHyperParameterTuningJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrainingJobsForHyperParameterTuningJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTrainingJobsForHyperParameterTuningJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsForHyperParameterTuningJobInput"}
- if s.HyperParameterTuningJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
- }
- if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
- s.HyperParameterTuningJobName = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetMaxResults(v int64) *ListTrainingJobsForHyperParameterTuningJobInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortBy(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortOrder(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetStatusEquals(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
- s.StatusEquals = &v
- return s
- }
- type ListTrainingJobsForHyperParameterTuningJobOutput struct {
- _ struct{} `type:"structure"`
- // If the result of this ListTrainingJobsForHyperParameterTuningJob request
- // was truncated, the response includes a NextToken. To retrieve the next set
- // of training jobs, use the token in the next request.
- NextToken *string `type:"string"`
- // A list of TrainingJobSummary objects that describe the training jobs that
- // the ListTrainingJobsForHyperParameterTuningJob request returned.
- //
- // TrainingJobSummaries is a required field
- TrainingJobSummaries []*HyperParameterTrainingJobSummary `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTrainingJobsForHyperParameterTuningJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrainingJobsForHyperParameterTuningJobOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobOutput {
- s.NextToken = &v
- return s
- }
- // SetTrainingJobSummaries sets the TrainingJobSummaries field's value.
- func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetTrainingJobSummaries(v []*HyperParameterTrainingJobSummary) *ListTrainingJobsForHyperParameterTuningJobOutput {
- s.TrainingJobSummaries = v
- return s
- }
- type ListTrainingJobsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only training jobs created after the specified time
- // (timestamp).
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only training jobs created before the specified time
- // (timestamp).
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns only training jobs modified after the specified time
- // (timestamp).
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only training jobs modified before the specified time
- // (timestamp).
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of training jobs to return in the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the training job name. This filter returns only training jobs
- // whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the result of the previous ListTrainingJobs request was truncated, the
- // response includes a NextToken. To retrieve the next set of training jobs,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is CreationTime.
- SortBy *string `type:"string" enum:"SortBy"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- // A filter that retrieves only training jobs with a specific status.
- StatusEquals *string `type:"string" enum:"TrainingJobStatus"`
- }
- // String returns the string representation
- func (s ListTrainingJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrainingJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTrainingJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListTrainingJobsInput) SetCreationTimeAfter(v time.Time) *ListTrainingJobsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListTrainingJobsInput) SetCreationTimeBefore(v time.Time) *ListTrainingJobsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListTrainingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTrainingJobsInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListTrainingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTrainingJobsInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListTrainingJobsInput) SetMaxResults(v int64) *ListTrainingJobsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListTrainingJobsInput) SetNameContains(v string) *ListTrainingJobsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTrainingJobsInput) SetNextToken(v string) *ListTrainingJobsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListTrainingJobsInput) SetSortBy(v string) *ListTrainingJobsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListTrainingJobsInput) SetSortOrder(v string) *ListTrainingJobsInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListTrainingJobsInput) SetStatusEquals(v string) *ListTrainingJobsInput {
- s.StatusEquals = &v
- return s
- }
- type ListTrainingJobsOutput struct {
- _ struct{} `type:"structure"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of training jobs, use it in the subsequent request.
- NextToken *string `type:"string"`
- // An array of TrainingJobSummary objects, each listing a training job.
- //
- // TrainingJobSummaries is a required field
- TrainingJobSummaries []*TrainingJobSummary `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTrainingJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrainingJobsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTrainingJobsOutput) SetNextToken(v string) *ListTrainingJobsOutput {
- s.NextToken = &v
- return s
- }
- // SetTrainingJobSummaries sets the TrainingJobSummaries field's value.
- func (s *ListTrainingJobsOutput) SetTrainingJobSummaries(v []*TrainingJobSummary) *ListTrainingJobsOutput {
- s.TrainingJobSummaries = v
- return s
- }
- type ListTransformJobsInput struct {
- _ struct{} `type:"structure"`
- // A filter that returns only transform jobs created after the specified time.
- CreationTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only transform jobs created before the specified time.
- CreationTimeBefore *time.Time `type:"timestamp"`
- // A filter that returns only transform jobs modified after the specified time.
- LastModifiedTimeAfter *time.Time `type:"timestamp"`
- // A filter that returns only transform jobs modified before the specified time.
- LastModifiedTimeBefore *time.Time `type:"timestamp"`
- // The maximum number of transform jobs to return in the response. The default
- // value is 10.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the transform job name. This filter returns only transform jobs
- // whose name contains the specified string.
- NameContains *string `type:"string"`
- // If the result of the previous ListTransformJobs request was truncated, the
- // response includes a NextToken. To retrieve the next set of transform jobs,
- // use the token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is CreationTime.
- SortBy *string `type:"string" enum:"SortBy"`
- // The sort order for results. The default is Descending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- // A filter that retrieves only transform jobs with a specific status.
- StatusEquals *string `type:"string" enum:"TransformJobStatus"`
- }
- // String returns the string representation
- func (s ListTransformJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTransformJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTransformJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTransformJobsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreationTimeAfter sets the CreationTimeAfter field's value.
- func (s *ListTransformJobsInput) SetCreationTimeAfter(v time.Time) *ListTransformJobsInput {
- s.CreationTimeAfter = &v
- return s
- }
- // SetCreationTimeBefore sets the CreationTimeBefore field's value.
- func (s *ListTransformJobsInput) SetCreationTimeBefore(v time.Time) *ListTransformJobsInput {
- s.CreationTimeBefore = &v
- return s
- }
- // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
- func (s *ListTransformJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTransformJobsInput {
- s.LastModifiedTimeAfter = &v
- return s
- }
- // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
- func (s *ListTransformJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTransformJobsInput {
- s.LastModifiedTimeBefore = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListTransformJobsInput) SetMaxResults(v int64) *ListTransformJobsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListTransformJobsInput) SetNameContains(v string) *ListTransformJobsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTransformJobsInput) SetNextToken(v string) *ListTransformJobsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListTransformJobsInput) SetSortBy(v string) *ListTransformJobsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListTransformJobsInput) SetSortOrder(v string) *ListTransformJobsInput {
- s.SortOrder = &v
- return s
- }
- // SetStatusEquals sets the StatusEquals field's value.
- func (s *ListTransformJobsInput) SetStatusEquals(v string) *ListTransformJobsInput {
- s.StatusEquals = &v
- return s
- }
- type ListTransformJobsOutput struct {
- _ struct{} `type:"structure"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of transform jobs, use it in the next request.
- NextToken *string `type:"string"`
- // An array of TransformJobSummary objects.
- //
- // TransformJobSummaries is a required field
- TransformJobSummaries []*TransformJobSummary `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTransformJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTransformJobsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTransformJobsOutput) SetNextToken(v string) *ListTransformJobsOutput {
- s.NextToken = &v
- return s
- }
- // SetTransformJobSummaries sets the TransformJobSummaries field's value.
- func (s *ListTransformJobsOutput) SetTransformJobSummaries(v []*TransformJobSummary) *ListTransformJobsOutput {
- s.TransformJobSummaries = v
- return s
- }
- type ListWorkteamsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of work teams to return in each page of the response.
- MaxResults *int64 `min:"1" type:"integer"`
- // A string in the work team's name. This filter returns only work teams whose
- // name contains the specified string.
- NameContains *string `min:"1" type:"string"`
- // If the result of the previous ListWorkteams request was truncated, the response
- // includes a NextToken. To retrieve the next set of labeling jobs, use the
- // token in the next request.
- NextToken *string `type:"string"`
- // The field to sort results by. The default is CreationTime.
- SortBy *string `type:"string" enum:"ListWorkteamsSortByOptions"`
- // The sort order for results. The default is Ascending.
- SortOrder *string `type:"string" enum:"SortOrder"`
- }
- // String returns the string representation
- func (s ListWorkteamsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListWorkteamsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListWorkteamsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListWorkteamsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NameContains != nil && len(*s.NameContains) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListWorkteamsInput) SetMaxResults(v int64) *ListWorkteamsInput {
- s.MaxResults = &v
- return s
- }
- // SetNameContains sets the NameContains field's value.
- func (s *ListWorkteamsInput) SetNameContains(v string) *ListWorkteamsInput {
- s.NameContains = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListWorkteamsInput) SetNextToken(v string) *ListWorkteamsInput {
- s.NextToken = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListWorkteamsInput) SetSortBy(v string) *ListWorkteamsInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *ListWorkteamsInput) SetSortOrder(v string) *ListWorkteamsInput {
- s.SortOrder = &v
- return s
- }
- type ListWorkteamsOutput struct {
- _ struct{} `type:"structure"`
- // If the response is truncated, Amazon SageMaker returns this token. To retrieve
- // the next set of work teams, use it in the subsequent request.
- NextToken *string `type:"string"`
- // An array of Workteam objects, each describing a work team.
- //
- // Workteams is a required field
- Workteams []*Workteam `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListWorkteamsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListWorkteamsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListWorkteamsOutput) SetNextToken(v string) *ListWorkteamsOutput {
- s.NextToken = &v
- return s
- }
- // SetWorkteams sets the Workteams field's value.
- func (s *ListWorkteamsOutput) SetWorkteams(v []*Workteam) *ListWorkteamsOutput {
- s.Workteams = v
- return s
- }
- // Defines the Amazon Cognito user group that is part of a work team.
- type MemberDefinition struct {
- _ struct{} `type:"structure"`
- // The Amazon Cognito user group that is part of the work team.
- CognitoMemberDefinition *CognitoMemberDefinition `type:"structure"`
- }
- // String returns the string representation
- func (s MemberDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MemberDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *MemberDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MemberDefinition"}
- if s.CognitoMemberDefinition != nil {
- if err := s.CognitoMemberDefinition.Validate(); err != nil {
- invalidParams.AddNested("CognitoMemberDefinition", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCognitoMemberDefinition sets the CognitoMemberDefinition field's value.
- func (s *MemberDefinition) SetCognitoMemberDefinition(v *CognitoMemberDefinition) *MemberDefinition {
- s.CognitoMemberDefinition = v
- return s
- }
- // The name, value, and date and time of a metric that was emitted to Amazon
- // CloudWatch.
- type MetricData struct {
- _ struct{} `type:"structure"`
- // The name of the metric.
- MetricName *string `min:"1" type:"string"`
- // The date and time that the algorithm emitted the metric.
- Timestamp *time.Time `type:"timestamp"`
- // The value of the metric.
- Value *float64 `type:"float"`
- }
- // String returns the string representation
- func (s MetricData) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MetricData) GoString() string {
- return s.String()
- }
- // SetMetricName sets the MetricName field's value.
- func (s *MetricData) SetMetricName(v string) *MetricData {
- s.MetricName = &v
- return s
- }
- // SetTimestamp sets the Timestamp field's value.
- func (s *MetricData) SetTimestamp(v time.Time) *MetricData {
- s.Timestamp = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *MetricData) SetValue(v float64) *MetricData {
- s.Value = &v
- return s
- }
- // Specifies a metric that the training algorithm writes to stderr or stdout.
- // Amazon SageMakerhyperparameter tuning captures all defined metrics. You specify
- // one metric that a hyperparameter tuning job uses as its objective metric
- // to choose the best training job.
- type MetricDefinition struct {
- _ struct{} `type:"structure"`
- // The name of the metric.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // A regular expression that searches the output of a training job and gets
- // the value of the metric. For more information about using regular expressions
- // to define metrics, see Defining Objective Metrics (http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html).
- //
- // Regex is a required field
- Regex *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s MetricDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MetricDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *MetricDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MetricDefinition"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Regex == nil {
- invalidParams.Add(request.NewErrParamRequired("Regex"))
- }
- if s.Regex != nil && len(*s.Regex) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Regex", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *MetricDefinition) SetName(v string) *MetricDefinition {
- s.Name = &v
- return s
- }
- // SetRegex sets the Regex field's value.
- func (s *MetricDefinition) SetRegex(v string) *MetricDefinition {
- s.Regex = &v
- return s
- }
- // Provides information about the location that is configured for storing model
- // artifacts.
- type ModelArtifacts struct {
- _ struct{} `type:"structure"`
- // The path of the S3 object that contains the model artifacts. For example,
- // s3://bucket-name/keynameprefix/model.tar.gz.
- //
- // S3ModelArtifacts is a required field
- S3ModelArtifacts *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModelArtifacts) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelArtifacts) GoString() string {
- return s.String()
- }
- // SetS3ModelArtifacts sets the S3ModelArtifacts field's value.
- func (s *ModelArtifacts) SetS3ModelArtifacts(v string) *ModelArtifacts {
- s.S3ModelArtifacts = &v
- return s
- }
- // Describes the Docker container for the model package.
- type ModelPackageContainerDefinition struct {
- _ struct{} `type:"structure"`
- // The DNS host name for the Docker container.
- ContainerHostname *string `type:"string"`
- // The Amazon EC2 Container Registry (Amazon ECR) path where inference code
- // is stored.
- //
- // If you are using your own custom algorithm instead of an algorithm provided
- // by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements.
- // Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest]
- // image path formats. For more information, see Using Your Own Algorithms with
- // Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html).
- //
- // Image is a required field
- Image *string `type:"string" required:"true"`
- // An MD5 hash of the training algorithm that identifies the Docker image used
- // for training.
- ImageDigest *string `type:"string"`
- // The Amazon S3 path where the model artifacts, which result from model training,
- // are stored. This path must point to a single gzip compressed tar archive
- // (.tar.gz suffix).
- ModelDataUrl *string `type:"string"`
- // The AWS Marketplace product ID of the model package.
- ProductId *string `type:"string"`
- }
- // String returns the string representation
- func (s ModelPackageContainerDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelPackageContainerDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModelPackageContainerDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModelPackageContainerDefinition"}
- if s.Image == nil {
- invalidParams.Add(request.NewErrParamRequired("Image"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContainerHostname sets the ContainerHostname field's value.
- func (s *ModelPackageContainerDefinition) SetContainerHostname(v string) *ModelPackageContainerDefinition {
- s.ContainerHostname = &v
- return s
- }
- // SetImage sets the Image field's value.
- func (s *ModelPackageContainerDefinition) SetImage(v string) *ModelPackageContainerDefinition {
- s.Image = &v
- return s
- }
- // SetImageDigest sets the ImageDigest field's value.
- func (s *ModelPackageContainerDefinition) SetImageDigest(v string) *ModelPackageContainerDefinition {
- s.ImageDigest = &v
- return s
- }
- // SetModelDataUrl sets the ModelDataUrl field's value.
- func (s *ModelPackageContainerDefinition) SetModelDataUrl(v string) *ModelPackageContainerDefinition {
- s.ModelDataUrl = &v
- return s
- }
- // SetProductId sets the ProductId field's value.
- func (s *ModelPackageContainerDefinition) SetProductId(v string) *ModelPackageContainerDefinition {
- s.ProductId = &v
- return s
- }
- // Specifies the validation and image scan statuses of the model package.
- type ModelPackageStatusDetails struct {
- _ struct{} `type:"structure"`
- // The status of the scan of the Docker image container for the model package.
- ImageScanStatuses []*ModelPackageStatusItem `type:"list"`
- // The validation status of the model package.
- //
- // ValidationStatuses is a required field
- ValidationStatuses []*ModelPackageStatusItem `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ModelPackageStatusDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelPackageStatusDetails) GoString() string {
- return s.String()
- }
- // SetImageScanStatuses sets the ImageScanStatuses field's value.
- func (s *ModelPackageStatusDetails) SetImageScanStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails {
- s.ImageScanStatuses = v
- return s
- }
- // SetValidationStatuses sets the ValidationStatuses field's value.
- func (s *ModelPackageStatusDetails) SetValidationStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails {
- s.ValidationStatuses = v
- return s
- }
- // Represents the overall status of a model package.
- type ModelPackageStatusItem struct {
- _ struct{} `type:"structure"`
- // if the overall status is Failed, the reason for the failure.
- FailureReason *string `type:"string"`
- // The name of the model package for which the overall status is being reported.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The current status.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"DetailedModelPackageStatus"`
- }
- // String returns the string representation
- func (s ModelPackageStatusItem) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelPackageStatusItem) GoString() string {
- return s.String()
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *ModelPackageStatusItem) SetFailureReason(v string) *ModelPackageStatusItem {
- s.FailureReason = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ModelPackageStatusItem) SetName(v string) *ModelPackageStatusItem {
- s.Name = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ModelPackageStatusItem) SetStatus(v string) *ModelPackageStatusItem {
- s.Status = &v
- return s
- }
- // Provides summary information about a model package.
- type ModelPackageSummary struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the model package was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The Amazon Resource Name (ARN) of the model package.
- //
- // ModelPackageArn is a required field
- ModelPackageArn *string `min:"1" type:"string" required:"true"`
- // A brief description of the model package.
- ModelPackageDescription *string `type:"string"`
- // The name of the model package.
- //
- // ModelPackageName is a required field
- ModelPackageName *string `min:"1" type:"string" required:"true"`
- // The overall status of the model package.
- //
- // ModelPackageStatus is a required field
- ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"`
- }
- // String returns the string representation
- func (s ModelPackageSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelPackageSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *ModelPackageSummary) SetCreationTime(v time.Time) *ModelPackageSummary {
- s.CreationTime = &v
- return s
- }
- // SetModelPackageArn sets the ModelPackageArn field's value.
- func (s *ModelPackageSummary) SetModelPackageArn(v string) *ModelPackageSummary {
- s.ModelPackageArn = &v
- return s
- }
- // SetModelPackageDescription sets the ModelPackageDescription field's value.
- func (s *ModelPackageSummary) SetModelPackageDescription(v string) *ModelPackageSummary {
- s.ModelPackageDescription = &v
- return s
- }
- // SetModelPackageName sets the ModelPackageName field's value.
- func (s *ModelPackageSummary) SetModelPackageName(v string) *ModelPackageSummary {
- s.ModelPackageName = &v
- return s
- }
- // SetModelPackageStatus sets the ModelPackageStatus field's value.
- func (s *ModelPackageSummary) SetModelPackageStatus(v string) *ModelPackageSummary {
- s.ModelPackageStatus = &v
- return s
- }
- // Contains data, such as the inputs and targeted instance types that are used
- // in the process of validating the model package.
- //
- // The data provided in the validation profile is made available to your buyers
- // on AWS Marketplace.
- type ModelPackageValidationProfile struct {
- _ struct{} `type:"structure"`
- // The name of the profile for the model package.
- //
- // ProfileName is a required field
- ProfileName *string `min:"1" type:"string" required:"true"`
- // The TransformJobDefinition object that describes the transform job used for
- // the validation of the model package.
- //
- // TransformJobDefinition is a required field
- TransformJobDefinition *TransformJobDefinition `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s ModelPackageValidationProfile) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelPackageValidationProfile) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModelPackageValidationProfile) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationProfile"}
- if s.ProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("ProfileName"))
- }
- if s.ProfileName != nil && len(*s.ProfileName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1))
- }
- if s.TransformJobDefinition == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformJobDefinition"))
- }
- if s.TransformJobDefinition != nil {
- if err := s.TransformJobDefinition.Validate(); err != nil {
- invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetProfileName sets the ProfileName field's value.
- func (s *ModelPackageValidationProfile) SetProfileName(v string) *ModelPackageValidationProfile {
- s.ProfileName = &v
- return s
- }
- // SetTransformJobDefinition sets the TransformJobDefinition field's value.
- func (s *ModelPackageValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *ModelPackageValidationProfile {
- s.TransformJobDefinition = v
- return s
- }
- // Specifies batch transform jobs that Amazon SageMaker runs to validate your
- // model package.
- type ModelPackageValidationSpecification struct {
- _ struct{} `type:"structure"`
- // An array of ModelPackageValidationProfile objects, each of which specifies
- // a batch transform job that Amazon SageMaker runs to validate your model package.
- //
- // ValidationProfiles is a required field
- ValidationProfiles []*ModelPackageValidationProfile `min:"1" type:"list" required:"true"`
- // The IAM roles to be used for the validation of the model package.
- //
- // ValidationRole is a required field
- ValidationRole *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModelPackageValidationSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelPackageValidationSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModelPackageValidationSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationSpecification"}
- if s.ValidationProfiles == nil {
- invalidParams.Add(request.NewErrParamRequired("ValidationProfiles"))
- }
- if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1))
- }
- if s.ValidationRole == nil {
- invalidParams.Add(request.NewErrParamRequired("ValidationRole"))
- }
- if s.ValidationRole != nil && len(*s.ValidationRole) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20))
- }
- if s.ValidationProfiles != nil {
- for i, v := range s.ValidationProfiles {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetValidationProfiles sets the ValidationProfiles field's value.
- func (s *ModelPackageValidationSpecification) SetValidationProfiles(v []*ModelPackageValidationProfile) *ModelPackageValidationSpecification {
- s.ValidationProfiles = v
- return s
- }
- // SetValidationRole sets the ValidationRole field's value.
- func (s *ModelPackageValidationSpecification) SetValidationRole(v string) *ModelPackageValidationSpecification {
- s.ValidationRole = &v
- return s
- }
- // Provides summary information about a model.
- type ModelSummary struct {
- _ struct{} `type:"structure"`
- // A timestamp that indicates when the model was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // The Amazon Resource Name (ARN) of the model.
- //
- // ModelArn is a required field
- ModelArn *string `min:"20" type:"string" required:"true"`
- // The name of the model that you want a summary for.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModelSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModelSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *ModelSummary) SetCreationTime(v time.Time) *ModelSummary {
- s.CreationTime = &v
- return s
- }
- // SetModelArn sets the ModelArn field's value.
- func (s *ModelSummary) SetModelArn(v string) *ModelSummary {
- s.ModelArn = &v
- return s
- }
- // SetModelName sets the ModelName field's value.
- func (s *ModelSummary) SetModelName(v string) *ModelSummary {
- s.ModelName = &v
- return s
- }
- // Defines a list of NestedFilters objects. To satisfy the conditions specified
- // in the NestedFilters call, a resource must satisfy the conditions of all
- // of the filters.
- //
- // For example, you could define a NestedFilters using the training job's InputDataConfig
- // property to filter on Channel objects.
- //
- // A NestedFilters object contains multiple filters. For example, to find all
- // training jobs whose name contains train and that have cat/data in their S3Uri
- // (specified in InputDataConfig), you need to create a NestedFilters object
- // that specifies the InputDataConfig property with the following Filter objects:
- //
- // * '{Name:"InputDataConfig.ChannelName", "Operator":"EQUALS", "Value":"train"}',
- //
- // * '{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"CONTAINS",
- // "Value":"cat/data"}'
- type NestedFilters struct {
- _ struct{} `type:"structure"`
- // A list of filters. Each filter acts on a property. Filters must contain at
- // least one Filters value. For example, a NestedFilters call might include
- // a filter on the PropertyName parameter of the InputDataConfig property: InputDataConfig.DataSource.S3DataSource.S3Uri.
- //
- // Filters is a required field
- Filters []*Filter `min:"1" type:"list" required:"true"`
- // The name of the property to use in the nested filters. The value must match
- // a listed property name, such as InputDataConfig.
- //
- // NestedPropertyName is a required field
- NestedPropertyName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s NestedFilters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NestedFilters) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *NestedFilters) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "NestedFilters"}
- if s.Filters == nil {
- invalidParams.Add(request.NewErrParamRequired("Filters"))
- }
- if s.Filters != nil && len(s.Filters) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
- }
- if s.NestedPropertyName == nil {
- invalidParams.Add(request.NewErrParamRequired("NestedPropertyName"))
- }
- if s.NestedPropertyName != nil && len(*s.NestedPropertyName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NestedPropertyName", 1))
- }
- if s.Filters != nil {
- for i, v := range s.Filters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFilters sets the Filters field's value.
- func (s *NestedFilters) SetFilters(v []*Filter) *NestedFilters {
- s.Filters = v
- return s
- }
- // SetNestedPropertyName sets the NestedPropertyName field's value.
- func (s *NestedFilters) SetNestedPropertyName(v string) *NestedFilters {
- s.NestedPropertyName = &v
- return s
- }
- // Provides a summary of a notebook instance lifecycle configuration.
- type NotebookInstanceLifecycleConfigSummary struct {
- _ struct{} `type:"structure"`
- // A timestamp that tells when the lifecycle configuration was created.
- CreationTime *time.Time `type:"timestamp"`
- // A timestamp that tells when the lifecycle configuration was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the lifecycle configuration.
- //
- // NotebookInstanceLifecycleConfigArn is a required field
- NotebookInstanceLifecycleConfigArn *string `type:"string" required:"true"`
- // The name of the lifecycle configuration.
- //
- // NotebookInstanceLifecycleConfigName is a required field
- NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s NotebookInstanceLifecycleConfigSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NotebookInstanceLifecycleConfigSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *NotebookInstanceLifecycleConfigSummary) SetCreationTime(v time.Time) *NotebookInstanceLifecycleConfigSummary {
- s.CreationTime = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *NotebookInstanceLifecycleConfigSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceLifecycleConfigSummary {
- s.LastModifiedTime = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value.
- func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigArn(v string) *NotebookInstanceLifecycleConfigSummary {
- s.NotebookInstanceLifecycleConfigArn = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceLifecycleConfigSummary {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- // Contains the notebook instance lifecycle configuration script.
- //
- // Each lifecycle configuration script has a limit of 16384 characters.
- //
- // The value of the $PATH environment variable that is available to both scripts
- // is /sbin:bin:/usr/sbin:/usr/bin.
- //
- // View CloudWatch Logs for notebook instance lifecycle configurations in log
- // group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].
- //
- // Lifecycle configuration scripts cannot run for longer than 5 minutes. If
- // a script runs for longer than 5 minutes, it fails and the notebook instance
- // is not created or started.
- //
- // For information about notebook instance lifestyle configurations, see Step
- // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
- type NotebookInstanceLifecycleHook struct {
- _ struct{} `type:"structure"`
- // A base64-encoded string that contains a shell script for a notebook instance
- // lifecycle configuration.
- Content *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s NotebookInstanceLifecycleHook) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NotebookInstanceLifecycleHook) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *NotebookInstanceLifecycleHook) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "NotebookInstanceLifecycleHook"}
- if s.Content != nil && len(*s.Content) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Content", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContent sets the Content field's value.
- func (s *NotebookInstanceLifecycleHook) SetContent(v string) *NotebookInstanceLifecycleHook {
- s.Content = &v
- return s
- }
- // Provides summary information for an Amazon SageMaker notebook instance.
- type NotebookInstanceSummary struct {
- _ struct{} `type:"structure"`
- // An array of up to three Git repositories associated with the notebook instance.
- // These can be either the names of Git repositories stored as resources in
- // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository. These repositories are cloned at the same
- // level as the default repository of your notebook instance. For more information,
- // see Associating Git Repositories with Amazon SageMaker Notebook Instances
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- AdditionalCodeRepositories []*string `type:"list"`
- // A timestamp that shows when the notebook instance was created.
- CreationTime *time.Time `type:"timestamp"`
- // The Git repository associated with the notebook instance as its default code
- // repository. This can be either the name of a Git repository stored as a resource
- // in your account, or the URL of a Git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository. When you open a notebook instance, it opens
- // in the directory that contains this repository. For more information, see
- // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- DefaultCodeRepository *string `min:"1" type:"string"`
- // The type of ML compute instance that the notebook instance is running on.
- InstanceType *string `type:"string" enum:"InstanceType"`
- // A timestamp that shows when the notebook instance was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the notebook instance.
- //
- // NotebookInstanceArn is a required field
- NotebookInstanceArn *string `type:"string" required:"true"`
- // The name of a notebook instance lifecycle configuration associated with this
- // notebook instance.
- //
- // For information about notebook instance lifestyle configurations, see Step
- // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
- NotebookInstanceLifecycleConfigName *string `type:"string"`
- // The name of the notebook instance that you want a summary for.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- // The status of the notebook instance.
- NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"`
- // The URL that you use to connect to the Jupyter instance running in your notebook
- // instance.
- Url *string `type:"string"`
- }
- // String returns the string representation
- func (s NotebookInstanceSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NotebookInstanceSummary) GoString() string {
- return s.String()
- }
- // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
- func (s *NotebookInstanceSummary) SetAdditionalCodeRepositories(v []*string) *NotebookInstanceSummary {
- s.AdditionalCodeRepositories = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *NotebookInstanceSummary) SetCreationTime(v time.Time) *NotebookInstanceSummary {
- s.CreationTime = &v
- return s
- }
- // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
- func (s *NotebookInstanceSummary) SetDefaultCodeRepository(v string) *NotebookInstanceSummary {
- s.DefaultCodeRepository = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *NotebookInstanceSummary) SetInstanceType(v string) *NotebookInstanceSummary {
- s.InstanceType = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *NotebookInstanceSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceSummary {
- s.LastModifiedTime = &v
- return s
- }
- // SetNotebookInstanceArn sets the NotebookInstanceArn field's value.
- func (s *NotebookInstanceSummary) SetNotebookInstanceArn(v string) *NotebookInstanceSummary {
- s.NotebookInstanceArn = &v
- return s
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *NotebookInstanceSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceSummary {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *NotebookInstanceSummary) SetNotebookInstanceName(v string) *NotebookInstanceSummary {
- s.NotebookInstanceName = &v
- return s
- }
- // SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value.
- func (s *NotebookInstanceSummary) SetNotebookInstanceStatus(v string) *NotebookInstanceSummary {
- s.NotebookInstanceStatus = &v
- return s
- }
- // SetUrl sets the Url field's value.
- func (s *NotebookInstanceSummary) SetUrl(v string) *NotebookInstanceSummary {
- s.Url = &v
- return s
- }
- // Specifies the number of training jobs that this hyperparameter tuning job
- // launched, categorized by the status of their objective metric. The objective
- // metric status shows whether the final objective metric for the training job
- // has been evaluated by the tuning job and used in the hyperparameter tuning
- // process.
- type ObjectiveStatusCounters struct {
- _ struct{} `type:"structure"`
- // The number of training jobs whose final objective metric was not evaluated
- // and used in the hyperparameter tuning process. This typically occurs when
- // the training job failed or did not emit an objective metric.
- Failed *int64 `type:"integer"`
- // The number of training jobs that are in progress and pending evaluation of
- // their final objective metric.
- Pending *int64 `type:"integer"`
- // The number of training jobs whose final objective metric was evaluated by
- // the hyperparameter tuning job and used in the hyperparameter tuning process.
- Succeeded *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s ObjectiveStatusCounters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ObjectiveStatusCounters) GoString() string {
- return s.String()
- }
- // SetFailed sets the Failed field's value.
- func (s *ObjectiveStatusCounters) SetFailed(v int64) *ObjectiveStatusCounters {
- s.Failed = &v
- return s
- }
- // SetPending sets the Pending field's value.
- func (s *ObjectiveStatusCounters) SetPending(v int64) *ObjectiveStatusCounters {
- s.Pending = &v
- return s
- }
- // SetSucceeded sets the Succeeded field's value.
- func (s *ObjectiveStatusCounters) SetSucceeded(v int64) *ObjectiveStatusCounters {
- s.Succeeded = &v
- return s
- }
- // Contains information about the output location for the compiled model and
- // the device (target) that the model runs on.
- type OutputConfig struct {
- _ struct{} `type:"structure"`
- // Identifies the S3 path where you want Amazon SageMaker to store the model
- // artifacts. For example, s3://bucket-name/key-name-prefix.
- //
- // S3OutputLocation is a required field
- S3OutputLocation *string `type:"string" required:"true"`
- // Identifies the device that you want to run your model on after it has been
- // compiled. For example: ml_c5.
- //
- // TargetDevice is a required field
- TargetDevice *string `type:"string" required:"true" enum:"TargetDevice"`
- }
- // String returns the string representation
- func (s OutputConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutputConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OutputConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OutputConfig"}
- if s.S3OutputLocation == nil {
- invalidParams.Add(request.NewErrParamRequired("S3OutputLocation"))
- }
- if s.TargetDevice == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetDevice"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetS3OutputLocation sets the S3OutputLocation field's value.
- func (s *OutputConfig) SetS3OutputLocation(v string) *OutputConfig {
- s.S3OutputLocation = &v
- return s
- }
- // SetTargetDevice sets the TargetDevice field's value.
- func (s *OutputConfig) SetTargetDevice(v string) *OutputConfig {
- s.TargetDevice = &v
- return s
- }
- // Provides information about how to store model training results (model artifacts).
- type OutputDataConfig struct {
- _ struct{} `type:"structure"`
- // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
- // encrypt the model artifacts at rest using Amazon S3 server-side encryption.
- // The KmsKeyId can be any of the following formats:
- //
- // * // KMS Key ID
- //
- // "1234abcd-12ab-34cd-56ef-1234567890ab"
- //
- // * // Amazon Resource Name (ARN) of a KMS Key
- //
- // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
- //
- // * // KMS Key Alias
- //
- // "alias/ExampleAlias"
- //
- // * // Amazon Resource Name (ARN) of a KMS Key Alias
- //
- // "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
- //
- // If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS
- // key for Amazon S3 for your role's account. For more information, see KMS-Managed
- // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html)
- // in the Amazon Simple Storage Service Developer Guide.
- //
- // The KMS key policy must grant permission to the IAM role that you specify
- // in your CreateTramsformJob request. For more information, see Using Key Policies
- // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html)
- // in the AWS Key Management Service Developer Guide.
- KmsKeyId *string `type:"string"`
- // Identifies the S3 path where you want Amazon SageMaker to store the model
- // artifacts. For example, s3://bucket-name/key-name-prefix.
- //
- // S3OutputPath is a required field
- S3OutputPath *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s OutputDataConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutputDataConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OutputDataConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"}
- if s.S3OutputPath == nil {
- invalidParams.Add(request.NewErrParamRequired("S3OutputPath"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig {
- s.KmsKeyId = &v
- return s
- }
- // SetS3OutputPath sets the S3OutputPath field's value.
- func (s *OutputDataConfig) SetS3OutputPath(v string) *OutputDataConfig {
- s.S3OutputPath = &v
- return s
- }
- // Defines the possible values for categorical, continuous, and integer hyperparameters
- // to be used by an algorithm.
- type ParameterRange struct {
- _ struct{} `type:"structure"`
- // A CategoricalParameterRangeSpecification object that defines the possible
- // values for a categorical hyperparameter.
- CategoricalParameterRangeSpecification *CategoricalParameterRangeSpecification `type:"structure"`
- // A ContinuousParameterRangeSpecification object that defines the possible
- // values for a continuous hyperparameter.
- ContinuousParameterRangeSpecification *ContinuousParameterRangeSpecification `type:"structure"`
- // A IntegerParameterRangeSpecification object that defines the possible values
- // for an integer hyperparameter.
- IntegerParameterRangeSpecification *IntegerParameterRangeSpecification `type:"structure"`
- }
- // String returns the string representation
- func (s ParameterRange) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ParameterRange) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ParameterRange) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ParameterRange"}
- if s.CategoricalParameterRangeSpecification != nil {
- if err := s.CategoricalParameterRangeSpecification.Validate(); err != nil {
- invalidParams.AddNested("CategoricalParameterRangeSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.ContinuousParameterRangeSpecification != nil {
- if err := s.ContinuousParameterRangeSpecification.Validate(); err != nil {
- invalidParams.AddNested("ContinuousParameterRangeSpecification", err.(request.ErrInvalidParams))
- }
- }
- if s.IntegerParameterRangeSpecification != nil {
- if err := s.IntegerParameterRangeSpecification.Validate(); err != nil {
- invalidParams.AddNested("IntegerParameterRangeSpecification", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCategoricalParameterRangeSpecification sets the CategoricalParameterRangeSpecification field's value.
- func (s *ParameterRange) SetCategoricalParameterRangeSpecification(v *CategoricalParameterRangeSpecification) *ParameterRange {
- s.CategoricalParameterRangeSpecification = v
- return s
- }
- // SetContinuousParameterRangeSpecification sets the ContinuousParameterRangeSpecification field's value.
- func (s *ParameterRange) SetContinuousParameterRangeSpecification(v *ContinuousParameterRangeSpecification) *ParameterRange {
- s.ContinuousParameterRangeSpecification = v
- return s
- }
- // SetIntegerParameterRangeSpecification sets the IntegerParameterRangeSpecification field's value.
- func (s *ParameterRange) SetIntegerParameterRangeSpecification(v *IntegerParameterRangeSpecification) *ParameterRange {
- s.IntegerParameterRangeSpecification = v
- return s
- }
- // Specifies ranges of integer, continuous, and categorical hyperparameters
- // that a hyperparameter tuning job searches. The hyperparameter tuning job
- // launches training jobs with hyperparameter values within these ranges to
- // find the combination of values that result in the training job with the best
- // performance as measured by the objective metric of the hyperparameter tuning
- // job.
- //
- // You can specify a maximum of 20 hyperparameters that a hyperparameter tuning
- // job can search over. Every possible value of a categorical parameter range
- // counts against this limit.
- type ParameterRanges struct {
- _ struct{} `type:"structure"`
- // The array of CategoricalParameterRange objects that specify ranges of categorical
- // hyperparameters that a hyperparameter tuning job searches.
- CategoricalParameterRanges []*CategoricalParameterRange `type:"list"`
- // The array of ContinuousParameterRange objects that specify ranges of continuous
- // hyperparameters that a hyperparameter tuning job searches.
- ContinuousParameterRanges []*ContinuousParameterRange `type:"list"`
- // The array of IntegerParameterRange objects that specify ranges of integer
- // hyperparameters that a hyperparameter tuning job searches.
- IntegerParameterRanges []*IntegerParameterRange `type:"list"`
- }
- // String returns the string representation
- func (s ParameterRanges) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ParameterRanges) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ParameterRanges) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ParameterRanges"}
- if s.CategoricalParameterRanges != nil {
- for i, v := range s.CategoricalParameterRanges {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CategoricalParameterRanges", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.ContinuousParameterRanges != nil {
- for i, v := range s.ContinuousParameterRanges {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContinuousParameterRanges", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.IntegerParameterRanges != nil {
- for i, v := range s.IntegerParameterRanges {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IntegerParameterRanges", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCategoricalParameterRanges sets the CategoricalParameterRanges field's value.
- func (s *ParameterRanges) SetCategoricalParameterRanges(v []*CategoricalParameterRange) *ParameterRanges {
- s.CategoricalParameterRanges = v
- return s
- }
- // SetContinuousParameterRanges sets the ContinuousParameterRanges field's value.
- func (s *ParameterRanges) SetContinuousParameterRanges(v []*ContinuousParameterRange) *ParameterRanges {
- s.ContinuousParameterRanges = v
- return s
- }
- // SetIntegerParameterRanges sets the IntegerParameterRanges field's value.
- func (s *ParameterRanges) SetIntegerParameterRanges(v []*IntegerParameterRange) *ParameterRanges {
- s.IntegerParameterRanges = v
- return s
- }
- // A previously completed or stopped hyperparameter tuning job to be used as
- // a starting point for a new hyperparameter tuning job.
- type ParentHyperParameterTuningJob struct {
- _ struct{} `type:"structure"`
- // The name of the hyperparameter tuning job to be used as a starting point
- // for a new hyperparameter tuning job.
- HyperParameterTuningJobName *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ParentHyperParameterTuningJob) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ParentHyperParameterTuningJob) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ParentHyperParameterTuningJob) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ParentHyperParameterTuningJob"}
- if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
- func (s *ParentHyperParameterTuningJob) SetHyperParameterTuningJobName(v string) *ParentHyperParameterTuningJob {
- s.HyperParameterTuningJobName = &v
- return s
- }
- // Identifies a model that you want to host and the resources to deploy for
- // hosting it. If you are deploying multiple models, tell Amazon SageMaker how
- // to distribute traffic among the models by specifying variant weights.
- type ProductionVariant struct {
- _ struct{} `type:"structure"`
- // The size of the Elastic Inference (EI) instance to use for the production
- // variant. EI instances provide on-demand GPU computing for inference. For
- // more information, see Using Elastic Inference in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
- // For more information, see Using Elastic Inference in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
- AcceleratorType *string `type:"string" enum:"ProductionVariantAcceleratorType"`
- // Number of instances to launch initially.
- //
- // InitialInstanceCount is a required field
- InitialInstanceCount *int64 `min:"1" type:"integer" required:"true"`
- // Determines initial traffic distribution among all of the models that you
- // specify in the endpoint configuration. The traffic to a production variant
- // is determined by the ratio of the VariantWeight to the sum of all VariantWeight
- // values across all ProductionVariants. If unspecified, it defaults to 1.0.
- InitialVariantWeight *float64 `type:"float"`
- // The ML compute instance type.
- //
- // InstanceType is a required field
- InstanceType *string `type:"string" required:"true" enum:"ProductionVariantInstanceType"`
- // The name of the model that you want to host. This is the name that you specified
- // when creating the model.
- //
- // ModelName is a required field
- ModelName *string `type:"string" required:"true"`
- // The name of the production variant.
- //
- // VariantName is a required field
- VariantName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ProductionVariant) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ProductionVariant) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ProductionVariant) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ProductionVariant"}
- if s.InitialInstanceCount == nil {
- invalidParams.Add(request.NewErrParamRequired("InitialInstanceCount"))
- }
- if s.InitialInstanceCount != nil && *s.InitialInstanceCount < 1 {
- invalidParams.Add(request.NewErrParamMinValue("InitialInstanceCount", 1))
- }
- if s.InstanceType == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceType"))
- }
- if s.ModelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ModelName"))
- }
- if s.VariantName == nil {
- invalidParams.Add(request.NewErrParamRequired("VariantName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAcceleratorType sets the AcceleratorType field's value.
- func (s *ProductionVariant) SetAcceleratorType(v string) *ProductionVariant {
- s.AcceleratorType = &v
- return s
- }
- // SetInitialInstanceCount sets the InitialInstanceCount field's value.
- func (s *ProductionVariant) SetInitialInstanceCount(v int64) *ProductionVariant {
- s.InitialInstanceCount = &v
- return s
- }
- // SetInitialVariantWeight sets the InitialVariantWeight field's value.
- func (s *ProductionVariant) SetInitialVariantWeight(v float64) *ProductionVariant {
- s.InitialVariantWeight = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *ProductionVariant) SetInstanceType(v string) *ProductionVariant {
- s.InstanceType = &v
- return s
- }
- // SetModelName sets the ModelName field's value.
- func (s *ProductionVariant) SetModelName(v string) *ProductionVariant {
- s.ModelName = &v
- return s
- }
- // SetVariantName sets the VariantName field's value.
- func (s *ProductionVariant) SetVariantName(v string) *ProductionVariant {
- s.VariantName = &v
- return s
- }
- // Describes weight and capacities for a production variant associated with
- // an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities
- // API and the endpoint status is Updating, you get different desired and current
- // values.
- type ProductionVariantSummary struct {
- _ struct{} `type:"structure"`
- // The number of instances associated with the variant.
- CurrentInstanceCount *int64 `min:"1" type:"integer"`
- // The weight associated with the variant.
- CurrentWeight *float64 `type:"float"`
- // An array of DeployedImage objects that specify the Amazon EC2 Container Registry
- // paths of the inference images deployed on instances of this ProductionVariant.
- DeployedImages []*DeployedImage `type:"list"`
- // The number of instances requested in the UpdateEndpointWeightsAndCapacities
- // request.
- DesiredInstanceCount *int64 `min:"1" type:"integer"`
- // The requested weight, as specified in the UpdateEndpointWeightsAndCapacities
- // request.
- DesiredWeight *float64 `type:"float"`
- // The name of the variant.
- //
- // VariantName is a required field
- VariantName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ProductionVariantSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ProductionVariantSummary) GoString() string {
- return s.String()
- }
- // SetCurrentInstanceCount sets the CurrentInstanceCount field's value.
- func (s *ProductionVariantSummary) SetCurrentInstanceCount(v int64) *ProductionVariantSummary {
- s.CurrentInstanceCount = &v
- return s
- }
- // SetCurrentWeight sets the CurrentWeight field's value.
- func (s *ProductionVariantSummary) SetCurrentWeight(v float64) *ProductionVariantSummary {
- s.CurrentWeight = &v
- return s
- }
- // SetDeployedImages sets the DeployedImages field's value.
- func (s *ProductionVariantSummary) SetDeployedImages(v []*DeployedImage) *ProductionVariantSummary {
- s.DeployedImages = v
- return s
- }
- // SetDesiredInstanceCount sets the DesiredInstanceCount field's value.
- func (s *ProductionVariantSummary) SetDesiredInstanceCount(v int64) *ProductionVariantSummary {
- s.DesiredInstanceCount = &v
- return s
- }
- // SetDesiredWeight sets the DesiredWeight field's value.
- func (s *ProductionVariantSummary) SetDesiredWeight(v float64) *ProductionVariantSummary {
- s.DesiredWeight = &v
- return s
- }
- // SetVariantName sets the VariantName field's value.
- func (s *ProductionVariantSummary) SetVariantName(v string) *ProductionVariantSummary {
- s.VariantName = &v
- return s
- }
- // A type of SuggestionQuery. A suggestion query for retrieving property names
- // that match the specified hint.
- type PropertyNameQuery struct {
- _ struct{} `type:"structure"`
- // Text that is part of a property's name. The property names of hyperparameter,
- // metric, and tag key names that begin with the specified text in the PropertyNameHint.
- //
- // PropertyNameHint is a required field
- PropertyNameHint *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PropertyNameQuery) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PropertyNameQuery) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PropertyNameQuery) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PropertyNameQuery"}
- if s.PropertyNameHint == nil {
- invalidParams.Add(request.NewErrParamRequired("PropertyNameHint"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPropertyNameHint sets the PropertyNameHint field's value.
- func (s *PropertyNameQuery) SetPropertyNameHint(v string) *PropertyNameQuery {
- s.PropertyNameHint = &v
- return s
- }
- // A property name returned from a GetSearchSuggestions call that specifies
- // a value in the PropertyNameQuery field.
- type PropertyNameSuggestion struct {
- _ struct{} `type:"structure"`
- // A suggested property name based on what you entered in the search textbox
- // in the Amazon SageMaker console.
- PropertyName *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s PropertyNameSuggestion) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PropertyNameSuggestion) GoString() string {
- return s.String()
- }
- // SetPropertyName sets the PropertyName field's value.
- func (s *PropertyNameSuggestion) SetPropertyName(v string) *PropertyNameSuggestion {
- s.PropertyName = &v
- return s
- }
- // Defines the amount of money paid to an Amazon Mechanical Turk worker for
- // each task performed.
- //
- // Use one of the following prices for bounding box tasks. Prices are in US
- // dollars.
- //
- // * 0.036
- //
- // * 0.048
- //
- // * 0.060
- //
- // * 0.072
- //
- // * 0.120
- //
- // * 0.240
- //
- // * 0.360
- //
- // * 0.480
- //
- // * 0.600
- //
- // * 0.720
- //
- // * 0.840
- //
- // * 0.960
- //
- // * 1.080
- //
- // * 1.200
- //
- // Use one of the following prices for image classification, text classification,
- // and custom tasks. Prices are in US dollars.
- //
- // * 0.012
- //
- // * 0.024
- //
- // * 0.036
- //
- // * 0.048
- //
- // * 0.060
- //
- // * 0.072
- //
- // * 0.120
- //
- // * 0.240
- //
- // * 0.360
- //
- // * 0.480
- //
- // * 0.600
- //
- // * 0.720
- //
- // * 0.840
- //
- // * 0.960
- //
- // * 1.080
- //
- // * 1.200
- //
- // Use one of the following prices for semantic segmentation tasks. Prices are
- // in US dollars.
- //
- // * 0.840
- //
- // * 0.960
- //
- // * 1.080
- //
- // * 1.200
- type PublicWorkforceTaskPrice struct {
- _ struct{} `type:"structure"`
- // Defines the amount of money paid to a worker in United States dollars.
- AmountInUsd *USD `type:"structure"`
- }
- // String returns the string representation
- func (s PublicWorkforceTaskPrice) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PublicWorkforceTaskPrice) GoString() string {
- return s.String()
- }
- // SetAmountInUsd sets the AmountInUsd field's value.
- func (s *PublicWorkforceTaskPrice) SetAmountInUsd(v *USD) *PublicWorkforceTaskPrice {
- s.AmountInUsd = v
- return s
- }
- type RenderUiTemplateInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that has access to the S3 objects that are
- // used by the template.
- //
- // RoleArn is a required field
- RoleArn *string `min:"20" type:"string" required:"true"`
- // A RenderableTask object containing a representative task to render.
- //
- // Task is a required field
- Task *RenderableTask `type:"structure" required:"true"`
- // A Template object containing the worker UI template to render.
- //
- // UiTemplate is a required field
- UiTemplate *UiTemplate `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s RenderUiTemplateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RenderUiTemplateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RenderUiTemplateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RenderUiTemplateInput"}
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.Task == nil {
- invalidParams.Add(request.NewErrParamRequired("Task"))
- }
- if s.UiTemplate == nil {
- invalidParams.Add(request.NewErrParamRequired("UiTemplate"))
- }
- if s.Task != nil {
- if err := s.Task.Validate(); err != nil {
- invalidParams.AddNested("Task", err.(request.ErrInvalidParams))
- }
- }
- if s.UiTemplate != nil {
- if err := s.UiTemplate.Validate(); err != nil {
- invalidParams.AddNested("UiTemplate", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *RenderUiTemplateInput) SetRoleArn(v string) *RenderUiTemplateInput {
- s.RoleArn = &v
- return s
- }
- // SetTask sets the Task field's value.
- func (s *RenderUiTemplateInput) SetTask(v *RenderableTask) *RenderUiTemplateInput {
- s.Task = v
- return s
- }
- // SetUiTemplate sets the UiTemplate field's value.
- func (s *RenderUiTemplateInput) SetUiTemplate(v *UiTemplate) *RenderUiTemplateInput {
- s.UiTemplate = v
- return s
- }
- type RenderUiTemplateOutput struct {
- _ struct{} `type:"structure"`
- // A list of one or more RenderingError objects if any were encountered while
- // rendering the template. If there were no errors, the list is empty.
- //
- // Errors is a required field
- Errors []*RenderingError `type:"list" required:"true"`
- // A Liquid template that renders the HTML for the worker UI.
- //
- // RenderedContent is a required field
- RenderedContent *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RenderUiTemplateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RenderUiTemplateOutput) GoString() string {
- return s.String()
- }
- // SetErrors sets the Errors field's value.
- func (s *RenderUiTemplateOutput) SetErrors(v []*RenderingError) *RenderUiTemplateOutput {
- s.Errors = v
- return s
- }
- // SetRenderedContent sets the RenderedContent field's value.
- func (s *RenderUiTemplateOutput) SetRenderedContent(v string) *RenderUiTemplateOutput {
- s.RenderedContent = &v
- return s
- }
- // Contains input values for a task.
- type RenderableTask struct {
- _ struct{} `type:"structure"`
- // A JSON object that contains values for the variables defined in the template.
- // It is made available to the template under the substitution variable task.input.
- // For example, if you define a variable task.input.text in your template, you
- // can supply the variable in the JSON object as "text": "sample text".
- //
- // Input is a required field
- Input *string `min:"2" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RenderableTask) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RenderableTask) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RenderableTask) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RenderableTask"}
- if s.Input == nil {
- invalidParams.Add(request.NewErrParamRequired("Input"))
- }
- if s.Input != nil && len(*s.Input) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("Input", 2))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetInput sets the Input field's value.
- func (s *RenderableTask) SetInput(v string) *RenderableTask {
- s.Input = &v
- return s
- }
- // A description of an error that occurred while rendering the template.
- type RenderingError struct {
- _ struct{} `type:"structure"`
- // A unique identifier for a specific class of errors.
- //
- // Code is a required field
- Code *string `type:"string" required:"true"`
- // A human-readable message describing the error.
- //
- // Message is a required field
- Message *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RenderingError) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RenderingError) GoString() string {
- return s.String()
- }
- // SetCode sets the Code field's value.
- func (s *RenderingError) SetCode(v string) *RenderingError {
- s.Code = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *RenderingError) SetMessage(v string) *RenderingError {
- s.Message = &v
- return s
- }
- // Describes the resources, including ML compute instances and ML storage volumes,
- // to use for model training.
- type ResourceConfig struct {
- _ struct{} `type:"structure"`
- // The number of ML compute instances to use. For distributed training, provide
- // a value greater than 1.
- //
- // InstanceCount is a required field
- InstanceCount *int64 `min:"1" type:"integer" required:"true"`
- // The ML compute instance type.
- //
- // InstanceType is a required field
- InstanceType *string `type:"string" required:"true" enum:"TrainingInstanceType"`
- // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
- // encrypt data on the storage volume attached to the ML compute instance(s)
- // that run the training job. The VolumeKmsKeyId can be any of the following
- // formats:
- //
- // * // KMS Key ID
- //
- // "1234abcd-12ab-34cd-56ef-1234567890ab"
- //
- // * // Amazon Resource Name (ARN) of a KMS Key
- //
- // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
- VolumeKmsKeyId *string `type:"string"`
- // The size of the ML storage volume that you want to provision.
- //
- // ML storage volumes store model artifacts and incremental states. Training
- // algorithms might also use the ML storage volume for scratch space. If you
- // want to store the training data in the ML storage volume, choose File as
- // the TrainingInputMode in the algorithm specification.
- //
- // You must specify sufficient ML storage for your scenario.
- //
- // Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume
- // type.
- //
- // VolumeSizeInGB is a required field
- VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ResourceConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResourceConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResourceConfig"}
- if s.InstanceCount == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
- }
- if s.InstanceCount != nil && *s.InstanceCount < 1 {
- invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1))
- }
- if s.InstanceType == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceType"))
- }
- if s.VolumeSizeInGB == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB"))
- }
- if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 {
- invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetInstanceCount sets the InstanceCount field's value.
- func (s *ResourceConfig) SetInstanceCount(v int64) *ResourceConfig {
- s.InstanceCount = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *ResourceConfig) SetInstanceType(v string) *ResourceConfig {
- s.InstanceType = &v
- return s
- }
- // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value.
- func (s *ResourceConfig) SetVolumeKmsKeyId(v string) *ResourceConfig {
- s.VolumeKmsKeyId = &v
- return s
- }
- // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
- func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig {
- s.VolumeSizeInGB = &v
- return s
- }
- // Specifies the maximum number of training jobs and parallel training jobs
- // that a hyperparameter tuning job can launch.
- type ResourceLimits struct {
- _ struct{} `type:"structure"`
- // The maximum number of training jobs that a hyperparameter tuning job can
- // launch.
- //
- // MaxNumberOfTrainingJobs is a required field
- MaxNumberOfTrainingJobs *int64 `min:"1" type:"integer" required:"true"`
- // The maximum number of concurrent training jobs that a hyperparameter tuning
- // job can launch.
- //
- // MaxParallelTrainingJobs is a required field
- MaxParallelTrainingJobs *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ResourceLimits) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceLimits) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResourceLimits) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResourceLimits"}
- if s.MaxNumberOfTrainingJobs == nil {
- invalidParams.Add(request.NewErrParamRequired("MaxNumberOfTrainingJobs"))
- }
- if s.MaxNumberOfTrainingJobs != nil && *s.MaxNumberOfTrainingJobs < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxNumberOfTrainingJobs", 1))
- }
- if s.MaxParallelTrainingJobs == nil {
- invalidParams.Add(request.NewErrParamRequired("MaxParallelTrainingJobs"))
- }
- if s.MaxParallelTrainingJobs != nil && *s.MaxParallelTrainingJobs < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxParallelTrainingJobs", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxNumberOfTrainingJobs sets the MaxNumberOfTrainingJobs field's value.
- func (s *ResourceLimits) SetMaxNumberOfTrainingJobs(v int64) *ResourceLimits {
- s.MaxNumberOfTrainingJobs = &v
- return s
- }
- // SetMaxParallelTrainingJobs sets the MaxParallelTrainingJobs field's value.
- func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits {
- s.MaxParallelTrainingJobs = &v
- return s
- }
- // Describes the S3 data source.
- type S3DataSource struct {
- _ struct{} `type:"structure"`
- // A list of one or more attribute names to use that are found in a specified
- // augmented manifest file.
- AttributeNames []*string `type:"list"`
- // If you want Amazon SageMaker to replicate the entire dataset on each ML compute
- // instance that is launched for model training, specify FullyReplicated.
- //
- // If you want Amazon SageMaker to replicate a subset of data on each ML compute
- // instance that is launched for model training, specify ShardedByS3Key. If
- // there are n ML compute instances launched for a training job, each instance
- // gets approximately 1/n of the number of S3 objects. In this case, model training
- // on each machine uses only the subset of training data.
- //
- // Don't choose more ML compute instances for training than available S3 objects.
- // If you do, some nodes won't get any data and you will pay for nodes that
- // aren't getting any training data. This applies in both File and Pipe modes.
- // Keep this in mind when developing algorithms.
- //
- // In distributed training, where you use multiple ML compute EC2 instances,
- // you might choose ShardedByS3Key. If the algorithm requires copying training
- // data to the ML storage volume (when TrainingInputMode is set to File), this
- // copies 1/n of the number of objects.
- S3DataDistributionType *string `type:"string" enum:"S3DataDistribution"`
- // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker
- // uses all objects that match the specified key name prefix for model training.
- //
- // If you choose ManifestFile, S3Uri identifies an object that is a manifest
- // file containing a list of object keys that you want Amazon SageMaker to use
- // for model training.
- //
- // If you choose AugmentedManifestFile, S3Uri identifies an object that is an
- // augmented manifest file in JSON lines format. This file contains the data
- // you want to use for model training. AugmentedManifestFile can only be used
- // if the Channel's input mode is Pipe.
- //
- // S3DataType is a required field
- S3DataType *string `type:"string" required:"true" enum:"S3DataType"`
- // Depending on the value specified for the S3DataType, identifies either a
- // key name prefix or a manifest. For example:
- //
- // * A key name prefix might look like this: s3://bucketname/exampleprefix.
- //
- //
- // * A manifest might look like this: s3://bucketname/example.manifest
- //
- // The manifest is an S3 object which is a JSON file with the following format:
- //
- //
- // [
- //
- // {"prefix": "s3://customer_bucket/some/prefix/"},
- //
- // "relative/path/to/custdata-1",
- //
- // "relative/path/custdata-2",
- //
- // ...
- //
- // ]
- //
- // The preceding JSON matches the following s3Uris:
- //
- // s3://customer_bucket/some/prefix/relative/path/to/custdata-1
- //
- // s3://customer_bucket/some/prefix/relative/path/custdata-2
- //
- // ...
- //
- // The complete set of s3uris in this manifest is the input data for the channel
- // for this datasource. The object that each s3uris points to must be readable
- // by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.
- //
- // S3Uri is a required field
- S3Uri *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s S3DataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3DataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *S3DataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3DataSource"}
- if s.S3DataType == nil {
- invalidParams.Add(request.NewErrParamRequired("S3DataType"))
- }
- if s.S3Uri == nil {
- invalidParams.Add(request.NewErrParamRequired("S3Uri"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributeNames sets the AttributeNames field's value.
- func (s *S3DataSource) SetAttributeNames(v []*string) *S3DataSource {
- s.AttributeNames = v
- return s
- }
- // SetS3DataDistributionType sets the S3DataDistributionType field's value.
- func (s *S3DataSource) SetS3DataDistributionType(v string) *S3DataSource {
- s.S3DataDistributionType = &v
- return s
- }
- // SetS3DataType sets the S3DataType field's value.
- func (s *S3DataSource) SetS3DataType(v string) *S3DataSource {
- s.S3DataType = &v
- return s
- }
- // SetS3Uri sets the S3Uri field's value.
- func (s *S3DataSource) SetS3Uri(v string) *S3DataSource {
- s.S3Uri = &v
- return s
- }
- // A multi-expression that searches for the specified resource or resources
- // in a search. All resource objects that satisfy the expression's condition
- // are included in the search results. You must specify at least one subexpression,
- // filter, or nested filter. A SearchExpression can contain up to twenty elements.
- //
- // A SearchExpression contains the following components:
- //
- // * A list of Filter objects. Each filter defines a simple Boolean expression
- // comprised of a resource property name, Boolean operator, and value.
- //
- // * A list of NestedFilter objects. Each nested filter defines a list of
- // Boolean expressions using a list of resource properties. A nested filter
- // is satisfied if a single object in the list satisfies all Boolean expressions.
- //
- // * A list of SearchExpression objects. A search expression object can be
- // nested in a list of search expression objects.
- //
- // * A Boolean operator: And or Or.
- type SearchExpression struct {
- _ struct{} `type:"structure"`
- // A list of filter objects.
- Filters []*Filter `min:"1" type:"list"`
- // A list of nested filter objects.
- NestedFilters []*NestedFilters `min:"1" type:"list"`
- // A Boolean operator used to evaluate the search expression. If you want every
- // conditional statement in all lists to be satisfied for the entire search
- // expression to be true, specify And. If only a single conditional statement
- // needs to be true for the entire search expression to be true, specify Or.
- // The default value is And.
- Operator *string `type:"string" enum:"BooleanOperator"`
- // A list of search expression objects.
- SubExpressions []*SearchExpression `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s SearchExpression) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SearchExpression) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SearchExpression) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SearchExpression"}
- if s.Filters != nil && len(s.Filters) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
- }
- if s.NestedFilters != nil && len(s.NestedFilters) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NestedFilters", 1))
- }
- if s.SubExpressions != nil && len(s.SubExpressions) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SubExpressions", 1))
- }
- if s.Filters != nil {
- for i, v := range s.Filters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.NestedFilters != nil {
- for i, v := range s.NestedFilters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NestedFilters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.SubExpressions != nil {
- for i, v := range s.SubExpressions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubExpressions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFilters sets the Filters field's value.
- func (s *SearchExpression) SetFilters(v []*Filter) *SearchExpression {
- s.Filters = v
- return s
- }
- // SetNestedFilters sets the NestedFilters field's value.
- func (s *SearchExpression) SetNestedFilters(v []*NestedFilters) *SearchExpression {
- s.NestedFilters = v
- return s
- }
- // SetOperator sets the Operator field's value.
- func (s *SearchExpression) SetOperator(v string) *SearchExpression {
- s.Operator = &v
- return s
- }
- // SetSubExpressions sets the SubExpressions field's value.
- func (s *SearchExpression) SetSubExpressions(v []*SearchExpression) *SearchExpression {
- s.SubExpressions = v
- return s
- }
- type SearchInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in a SearchResponse.
- MaxResults *int64 `min:"1" type:"integer"`
- // If more than MaxResults resource objects match the specified SearchExpression,
- // the SearchResponse includes a NextToken. The NextToken can be passed to the
- // next SearchRequest to continue retrieving results for the specified SearchExpression
- // and Sort parameters.
- NextToken *string `type:"string"`
- // The name of the Amazon SageMaker resource to search for. Currently, the only
- // valid Resource value is TrainingJob.
- //
- // Resource is a required field
- Resource *string `type:"string" required:"true" enum:"ResourceType"`
- // A Boolean conditional statement. Resource objects must satisfy this condition
- // to be included in search results. You must provide at least one subexpression,
- // filter, or nested filter. The maximum number of recursive SubExpressions,
- // NestedFilters, and Filters that can be included in a SearchExpression object
- // is 50.
- SearchExpression *SearchExpression `type:"structure"`
- // The name of the resource property used to sort the SearchResults. The default
- // is LastModifiedTime.
- SortBy *string `min:"1" type:"string"`
- // How SearchResults are ordered. Valid values are Ascending or Descending.
- // The default is Descending.
- SortOrder *string `type:"string" enum:"SearchSortOrder"`
- }
- // String returns the string representation
- func (s SearchInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SearchInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SearchInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SearchInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.Resource == nil {
- invalidParams.Add(request.NewErrParamRequired("Resource"))
- }
- if s.SortBy != nil && len(*s.SortBy) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SortBy", 1))
- }
- if s.SearchExpression != nil {
- if err := s.SearchExpression.Validate(); err != nil {
- invalidParams.AddNested("SearchExpression", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *SearchInput) SetMaxResults(v int64) *SearchInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *SearchInput) SetNextToken(v string) *SearchInput {
- s.NextToken = &v
- return s
- }
- // SetResource sets the Resource field's value.
- func (s *SearchInput) SetResource(v string) *SearchInput {
- s.Resource = &v
- return s
- }
- // SetSearchExpression sets the SearchExpression field's value.
- func (s *SearchInput) SetSearchExpression(v *SearchExpression) *SearchInput {
- s.SearchExpression = v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *SearchInput) SetSortBy(v string) *SearchInput {
- s.SortBy = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *SearchInput) SetSortOrder(v string) *SearchInput {
- s.SortOrder = &v
- return s
- }
- type SearchOutput struct {
- _ struct{} `type:"structure"`
- // If the result of the previous Search request was truncated, the response
- // includes a NextToken. To retrieve the next set of results, use the token
- // in the next request.
- NextToken *string `type:"string"`
- // A list of SearchResult objects.
- Results []*SearchRecord `type:"list"`
- }
- // String returns the string representation
- func (s SearchOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SearchOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *SearchOutput) SetNextToken(v string) *SearchOutput {
- s.NextToken = &v
- return s
- }
- // SetResults sets the Results field's value.
- func (s *SearchOutput) SetResults(v []*SearchRecord) *SearchOutput {
- s.Results = v
- return s
- }
- // An individual search result record that contains a single resource object.
- type SearchRecord struct {
- _ struct{} `type:"structure"`
- // A TrainingJob object that is returned as part of a Search request.
- TrainingJob *TrainingJob `type:"structure"`
- }
- // String returns the string representation
- func (s SearchRecord) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SearchRecord) GoString() string {
- return s.String()
- }
- // SetTrainingJob sets the TrainingJob field's value.
- func (s *SearchRecord) SetTrainingJob(v *TrainingJob) *SearchRecord {
- s.TrainingJob = v
- return s
- }
- // An array element of DescribeTrainingJobResponse$SecondaryStatusTransitions.
- // It provides additional details about a status that the training job has transitioned
- // through. A training job can be in one of several states, for example, starting,
- // downloading, training, or uploading. Within each state, there are a number
- // of intermediate states. For example, within the starting state, Amazon SageMaker
- // could be starting the training job or launching the ML instances. These transitional
- // states are referred to as the job's secondary status.
- type SecondaryStatusTransition struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the training job transitioned out of this secondary
- // status state into another secondary status state or when the training job
- // has ended.
- EndTime *time.Time `type:"timestamp"`
- // A timestamp that shows when the training job transitioned to the current
- // secondary status state.
- //
- // StartTime is a required field
- StartTime *time.Time `type:"timestamp" required:"true"`
- // Contains a secondary status information from a training job.
- //
- // Status might be one of the following secondary statuses:
- //
- // InProgressStarting - Starting the training job.
- //
- // Downloading - An optional stage for algorithms that support File training
- // input mode. It indicates that data is being downloaded to the ML storage
- // volumes.
- //
- // Training - Training is in progress.
- //
- // Uploading - Training is complete and the model artifacts are being uploaded
- // to the S3 location.
- //
- // CompletedCompleted - The training job has completed.
- //
- // FailedFailed - The training job has failed. The reason for the failure is
- // returned in the FailureReason field of DescribeTrainingJobResponse.
- //
- // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum
- // allowed runtime.
- //
- // Stopped - The training job has stopped.
- //
- // StoppingStopping - Stopping the training job.
- //
- // We no longer support the following secondary statuses:
- //
- // * LaunchingMLInstances
- //
- // * PreparingTrainingStack
- //
- // * DownloadingTrainingImage
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"SecondaryStatus"`
- // A detailed description of the progress within a secondary status.
- //
- // Amazon SageMaker provides secondary statuses and status messages that apply
- // to each of them:
- //
- // StartingStarting the training job.
- //
- // Launching requested ML instances.
- //
- // Insufficient capacity error from EC2 while launching instances, retrying!
- //
- // Launched instance was unhealthy, replacing it!
- //
- // Preparing the instances for training.
- //
- // TrainingDownloading the training image.
- //
- // Training image download completed. Training in progress.
- //
- // Status messages are subject to change. Therefore, we recommend not including
- // them in code that programmatically initiates actions. For examples, don't
- // use status messages in if statements.
- //
- // To have an overview of your training job's progress, view TrainingJobStatus
- // and SecondaryStatus in DescribeTrainingJobResponse, and StatusMessage together.
- // For example, at the start of a training job, you might see the following:
- //
- // * TrainingJobStatus - InProgress
- //
- // * SecondaryStatus - Training
- //
- // * StatusMessage - Downloading the training image
- StatusMessage *string `type:"string"`
- }
- // String returns the string representation
- func (s SecondaryStatusTransition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SecondaryStatusTransition) GoString() string {
- return s.String()
- }
- // SetEndTime sets the EndTime field's value.
- func (s *SecondaryStatusTransition) SetEndTime(v time.Time) *SecondaryStatusTransition {
- s.EndTime = &v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *SecondaryStatusTransition) SetStartTime(v time.Time) *SecondaryStatusTransition {
- s.StartTime = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *SecondaryStatusTransition) SetStatus(v string) *SecondaryStatusTransition {
- s.Status = &v
- return s
- }
- // SetStatusMessage sets the StatusMessage field's value.
- func (s *SecondaryStatusTransition) SetStatusMessage(v string) *SecondaryStatusTransition {
- s.StatusMessage = &v
- return s
- }
- // A configuration for a shuffle option for input data in a channel. If you
- // use S3Prefix for S3DataType, the results of the S3 key prefix matches are
- // shuffled. If you use ManifestFile, the order of the S3 object references
- // in the ManifestFile is shuffled. If you use AugmentedManifestFile, the order
- // of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling
- // order is determined using the Seed value.
- //
- // For Pipe input mode, shuffling is done at the start of every epoch. With
- // large datasets, this ensures that the order of the training data is different
- // for each epoch, and it helps reduce bias and possible overfitting. In a multi-node
- // training job when ShuffleConfig is combined with S3DataDistributionType of
- // ShardedByS3Key, the data is shuffled across nodes so that the content sent
- // to a particular node on the first epoch might be sent to a different node
- // on the second epoch.
- type ShuffleConfig struct {
- _ struct{} `type:"structure"`
- // Determines the shuffling order in ShuffleConfig value.
- //
- // Seed is a required field
- Seed *int64 `type:"long" required:"true"`
- }
- // String returns the string representation
- func (s ShuffleConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ShuffleConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ShuffleConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ShuffleConfig"}
- if s.Seed == nil {
- invalidParams.Add(request.NewErrParamRequired("Seed"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSeed sets the Seed field's value.
- func (s *ShuffleConfig) SetSeed(v int64) *ShuffleConfig {
- s.Seed = &v
- return s
- }
- // Specifies an algorithm that was used to create the model package. The algorithm
- // must be either an algorithm resource in your Amazon SageMaker account or
- // an algorithm in AWS Marketplace that you are subscribed to.
- type SourceAlgorithm struct {
- _ struct{} `type:"structure"`
- // The name of an algorithm that was used to create the model package. The algorithm
- // must be either an algorithm resource in your Amazon SageMaker account or
- // an algorithm in AWS Marketplace that you are subscribed to.
- //
- // AlgorithmName is a required field
- AlgorithmName *string `min:"1" type:"string" required:"true"`
- // The Amazon S3 path where the model artifacts, which result from model training,
- // are stored. This path must point to a single gzip compressed tar archive
- // (.tar.gz suffix).
- ModelDataUrl *string `type:"string"`
- }
- // String returns the string representation
- func (s SourceAlgorithm) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SourceAlgorithm) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SourceAlgorithm) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithm"}
- if s.AlgorithmName == nil {
- invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
- }
- if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAlgorithmName sets the AlgorithmName field's value.
- func (s *SourceAlgorithm) SetAlgorithmName(v string) *SourceAlgorithm {
- s.AlgorithmName = &v
- return s
- }
- // SetModelDataUrl sets the ModelDataUrl field's value.
- func (s *SourceAlgorithm) SetModelDataUrl(v string) *SourceAlgorithm {
- s.ModelDataUrl = &v
- return s
- }
- // A list of algorithms that were used to create a model package.
- type SourceAlgorithmSpecification struct {
- _ struct{} `type:"structure"`
- // A list of the algorithms that were used to create a model package.
- //
- // SourceAlgorithms is a required field
- SourceAlgorithms []*SourceAlgorithm `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s SourceAlgorithmSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SourceAlgorithmSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SourceAlgorithmSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithmSpecification"}
- if s.SourceAlgorithms == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceAlgorithms"))
- }
- if s.SourceAlgorithms != nil && len(s.SourceAlgorithms) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceAlgorithms", 1))
- }
- if s.SourceAlgorithms != nil {
- for i, v := range s.SourceAlgorithms {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SourceAlgorithms", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSourceAlgorithms sets the SourceAlgorithms field's value.
- func (s *SourceAlgorithmSpecification) SetSourceAlgorithms(v []*SourceAlgorithm) *SourceAlgorithmSpecification {
- s.SourceAlgorithms = v
- return s
- }
- type StartNotebookInstanceInput struct {
- _ struct{} `type:"structure"`
- // The name of the notebook instance to start.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartNotebookInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartNotebookInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartNotebookInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartNotebookInstanceInput"}
- if s.NotebookInstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *StartNotebookInstanceInput) SetNotebookInstanceName(v string) *StartNotebookInstanceInput {
- s.NotebookInstanceName = &v
- return s
- }
- type StartNotebookInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StartNotebookInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartNotebookInstanceOutput) GoString() string {
- return s.String()
- }
- type StopCompilationJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the model compilation job to stop.
- //
- // CompilationJobName is a required field
- CompilationJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopCompilationJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopCompilationJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopCompilationJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopCompilationJobInput"}
- if s.CompilationJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("CompilationJobName"))
- }
- if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCompilationJobName sets the CompilationJobName field's value.
- func (s *StopCompilationJobInput) SetCompilationJobName(v string) *StopCompilationJobInput {
- s.CompilationJobName = &v
- return s
- }
- type StopCompilationJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopCompilationJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopCompilationJobOutput) GoString() string {
- return s.String()
- }
- type StopHyperParameterTuningJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the tuning job to stop.
- //
- // HyperParameterTuningJobName is a required field
- HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopHyperParameterTuningJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopHyperParameterTuningJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopHyperParameterTuningJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopHyperParameterTuningJobInput"}
- if s.HyperParameterTuningJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
- }
- if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
- func (s *StopHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *StopHyperParameterTuningJobInput {
- s.HyperParameterTuningJobName = &v
- return s
- }
- type StopHyperParameterTuningJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopHyperParameterTuningJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopHyperParameterTuningJobOutput) GoString() string {
- return s.String()
- }
- type StopLabelingJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the labeling job to stop.
- //
- // LabelingJobName is a required field
- LabelingJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopLabelingJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopLabelingJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopLabelingJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopLabelingJobInput"}
- if s.LabelingJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("LabelingJobName"))
- }
- if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLabelingJobName sets the LabelingJobName field's value.
- func (s *StopLabelingJobInput) SetLabelingJobName(v string) *StopLabelingJobInput {
- s.LabelingJobName = &v
- return s
- }
- type StopLabelingJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopLabelingJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopLabelingJobOutput) GoString() string {
- return s.String()
- }
- type StopNotebookInstanceInput struct {
- _ struct{} `type:"structure"`
- // The name of the notebook instance to terminate.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopNotebookInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopNotebookInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopNotebookInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopNotebookInstanceInput"}
- if s.NotebookInstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *StopNotebookInstanceInput) SetNotebookInstanceName(v string) *StopNotebookInstanceInput {
- s.NotebookInstanceName = &v
- return s
- }
- type StopNotebookInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopNotebookInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopNotebookInstanceOutput) GoString() string {
- return s.String()
- }
- type StopTrainingJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the training job to stop.
- //
- // TrainingJobName is a required field
- TrainingJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopTrainingJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopTrainingJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopTrainingJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopTrainingJobInput"}
- if s.TrainingJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingJobName"))
- }
- if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTrainingJobName sets the TrainingJobName field's value.
- func (s *StopTrainingJobInput) SetTrainingJobName(v string) *StopTrainingJobInput {
- s.TrainingJobName = &v
- return s
- }
- type StopTrainingJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopTrainingJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopTrainingJobOutput) GoString() string {
- return s.String()
- }
- type StopTransformJobInput struct {
- _ struct{} `type:"structure"`
- // The name of the transform job to stop.
- //
- // TransformJobName is a required field
- TransformJobName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopTransformJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopTransformJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopTransformJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopTransformJobInput"}
- if s.TransformJobName == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformJobName"))
- }
- if s.TransformJobName != nil && len(*s.TransformJobName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTransformJobName sets the TransformJobName field's value.
- func (s *StopTransformJobInput) SetTransformJobName(v string) *StopTransformJobInput {
- s.TransformJobName = &v
- return s
- }
- type StopTransformJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopTransformJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopTransformJobOutput) GoString() string {
- return s.String()
- }
- // Specifies how long model training can run. When model training reaches the
- // limit, Amazon SageMaker ends the training job. Use this API to cap model
- // training cost.
- //
- // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which
- // delays job termination for120 seconds. Algorithms might use this 120-second
- // window to save the model artifacts, so the results of training is not lost.
- //
- // Training algorithms provided by Amazon SageMaker automatically saves the
- // intermediate results of a model training job (it is best effort case, as
- // model might not be ready to save as some stages, for example training just
- // started). This intermediate data is a valid model artifact. You can use it
- // to create a model (CreateModel).
- type StoppingCondition struct {
- _ struct{} `type:"structure"`
- // The maximum length of time, in seconds, that the training job can run. If
- // model training does not complete during this time, Amazon SageMaker ends
- // the job. If value is not specified, default value is 1 day. Maximum value
- // is 28 days.
- MaxRuntimeInSeconds *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s StoppingCondition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StoppingCondition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StoppingCondition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StoppingCondition"}
- if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value.
- func (s *StoppingCondition) SetMaxRuntimeInSeconds(v int64) *StoppingCondition {
- s.MaxRuntimeInSeconds = &v
- return s
- }
- // Describes a work team of a vendor that does the a labelling job.
- type SubscribedWorkteam struct {
- _ struct{} `type:"structure"`
- ListingId *string `type:"string"`
- // The description of the vendor from the Amazon Marketplace.
- MarketplaceDescription *string `min:"1" type:"string"`
- // The title of the service provided by the vendor in the Amazon Marketplace.
- MarketplaceTitle *string `min:"1" type:"string"`
- // The name of the vendor in the Amazon Marketplace.
- SellerName *string `type:"string"`
- // The Amazon Resource Name (ARN) of the vendor that you have subscribed.
- //
- // WorkteamArn is a required field
- WorkteamArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SubscribedWorkteam) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SubscribedWorkteam) GoString() string {
- return s.String()
- }
- // SetListingId sets the ListingId field's value.
- func (s *SubscribedWorkteam) SetListingId(v string) *SubscribedWorkteam {
- s.ListingId = &v
- return s
- }
- // SetMarketplaceDescription sets the MarketplaceDescription field's value.
- func (s *SubscribedWorkteam) SetMarketplaceDescription(v string) *SubscribedWorkteam {
- s.MarketplaceDescription = &v
- return s
- }
- // SetMarketplaceTitle sets the MarketplaceTitle field's value.
- func (s *SubscribedWorkteam) SetMarketplaceTitle(v string) *SubscribedWorkteam {
- s.MarketplaceTitle = &v
- return s
- }
- // SetSellerName sets the SellerName field's value.
- func (s *SubscribedWorkteam) SetSellerName(v string) *SubscribedWorkteam {
- s.SellerName = &v
- return s
- }
- // SetWorkteamArn sets the WorkteamArn field's value.
- func (s *SubscribedWorkteam) SetWorkteamArn(v string) *SubscribedWorkteam {
- s.WorkteamArn = &v
- return s
- }
- // Limits the property names that are included in the response.
- type SuggestionQuery struct {
- _ struct{} `type:"structure"`
- // A type of SuggestionQuery. Defines a property name hint. Only property names
- // that match the specified hint are included in the response.
- PropertyNameQuery *PropertyNameQuery `type:"structure"`
- }
- // String returns the string representation
- func (s SuggestionQuery) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SuggestionQuery) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SuggestionQuery) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SuggestionQuery"}
- if s.PropertyNameQuery != nil {
- if err := s.PropertyNameQuery.Validate(); err != nil {
- invalidParams.AddNested("PropertyNameQuery", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPropertyNameQuery sets the PropertyNameQuery field's value.
- func (s *SuggestionQuery) SetPropertyNameQuery(v *PropertyNameQuery) *SuggestionQuery {
- s.PropertyNameQuery = v
- return s
- }
- // Describes a tag.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The tag key.
- //
- // Key is a required field
- Key *string `min:"1" type:"string" required:"true"`
- // The tag value.
- //
- // Value is a required field
- Value *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKey sets the Key field's value.
- func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
- }
- // Contains information about a training job.
- type TrainingJob struct {
- _ struct{} `type:"structure"`
- // Information about the algorithm used for training, and algorithm metadata.
- AlgorithmSpecification *AlgorithmSpecification `type:"structure"`
- // A timestamp that indicates when the training job was created.
- CreationTime *time.Time `type:"timestamp"`
- // If the TrainingJob was created with network isolation, the value is set to
- // true. If network isolation is enabled, nodes can't communicate beyond the
- // VPC they run in.
- EnableNetworkIsolation *bool `type:"boolean"`
- // If the training job failed, the reason it failed.
- FailureReason *string `type:"string"`
- // A list of final metric values that are set when the training job completes.
- // Used only if the training job was configured to use metrics.
- FinalMetricDataList []*MetricData `type:"list"`
- // Algorithm-specific parameters.
- HyperParameters map[string]*string `type:"map"`
- // An array of Channel objects that describes each data input channel.
- InputDataConfig []*Channel `min:"1" type:"list"`
- // The Amazon Resource Name (ARN) of the labeling job.
- LabelingJobArn *string `type:"string"`
- // A timestamp that indicates when the status of the training job was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // Information about the Amazon S3 location that is configured for storing model
- // artifacts.
- ModelArtifacts *ModelArtifacts `type:"structure"`
- // The S3 path where model artifacts that you configured when creating the job
- // are stored. Amazon SageMaker creates subfolders for model artifacts.
- OutputDataConfig *OutputDataConfig `type:"structure"`
- // Resources, including ML compute instances and ML storage volumes, that are
- // configured for model training.
- ResourceConfig *ResourceConfig `type:"structure"`
- // The AWS Identity and Access Management (IAM) role configured for the training
- // job.
- RoleArn *string `min:"20" type:"string"`
- // Provides detailed information about the state of the training job. For detailed
- // information about the secondary status of the training job, see StatusMessage
- // under SecondaryStatusTransition.
- //
- // Amazon SageMaker provides primary statuses and secondary statuses that apply
- // to each of them:
- //
- // InProgressStarting - Starting the training job.
- //
- // Downloading - An optional stage for algorithms that support File training
- // input mode. It indicates that data is being downloaded to the ML storage
- // volumes.
- //
- // Training - Training is in progress.
- //
- // Uploading - Training is complete and the model artifacts are being uploaded
- // to the S3 location.
- //
- // CompletedCompleted - The training job has completed.
- //
- // FailedFailed - The training job has failed. The reason for the failure is
- // returned in the FailureReason field of DescribeTrainingJobResponse.
- //
- // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum
- // allowed runtime.
- //
- // Stopped - The training job has stopped.
- //
- // StoppingStopping - Stopping the training job.
- //
- // Valid values for SecondaryStatus are subject to change.
- //
- // We no longer support the following secondary statuses:
- //
- // * LaunchingMLInstances
- //
- // * PreparingTrainingStack
- //
- // * DownloadingTrainingImage
- SecondaryStatus *string `type:"string" enum:"SecondaryStatus"`
- // A history of all of the secondary statuses that the training job has transitioned
- // through.
- SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"`
- // The condition under which to stop the training job.
- StoppingCondition *StoppingCondition `type:"structure"`
- // An array of key-value pairs. For more information, see Using Cost Allocation
- // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
- // in the AWS Billing and Cost Management User Guide.
- Tags []*Tag `type:"list"`
- // Indicates the time when the training job ends on training instances. You
- // are billed for the time interval between the value of TrainingStartTime and
- // this time. For successful jobs and stopped jobs, this is the time after model
- // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
- // detects a job failure.
- TrainingEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the training job.
- TrainingJobArn *string `type:"string"`
- // The name of the training job.
- TrainingJobName *string `min:"1" type:"string"`
- // The status of the training job.
- //
- // Training job statuses are:
- //
- // * InProgress - The training is in progress.
- //
- // * Completed - The training job has completed.
- //
- // * Failed - The training job has failed. To see the reason for the failure,
- // see the FailureReason field in the response to a DescribeTrainingJobResponse
- // call.
- //
- // * Stopping - The training job is stopping.
- //
- // * Stopped - The training job has stopped.
- //
- // For more detailed information, see SecondaryStatus.
- TrainingJobStatus *string `type:"string" enum:"TrainingJobStatus"`
- // Indicates the time when the training job starts on training instances. You
- // are billed for the time interval between this time and the value of TrainingEndTime.
- // The start time in CloudWatch Logs might be later than this time. The difference
- // is due to the time it takes to download the training data and to the size
- // of the training container.
- TrainingStartTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job
- // if the training job was launched by a hyperparameter tuning job.
- TuningJobArn *string `type:"string"`
- // A VpcConfig object that specifies the VPC that this training job has access
- // to. For more information, see Protect Training Jobs by Using an Amazon Virtual
- // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s TrainingJob) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrainingJob) GoString() string {
- return s.String()
- }
- // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
- func (s *TrainingJob) SetAlgorithmSpecification(v *AlgorithmSpecification) *TrainingJob {
- s.AlgorithmSpecification = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *TrainingJob) SetCreationTime(v time.Time) *TrainingJob {
- s.CreationTime = &v
- return s
- }
- // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
- func (s *TrainingJob) SetEnableNetworkIsolation(v bool) *TrainingJob {
- s.EnableNetworkIsolation = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *TrainingJob) SetFailureReason(v string) *TrainingJob {
- s.FailureReason = &v
- return s
- }
- // SetFinalMetricDataList sets the FinalMetricDataList field's value.
- func (s *TrainingJob) SetFinalMetricDataList(v []*MetricData) *TrainingJob {
- s.FinalMetricDataList = v
- return s
- }
- // SetHyperParameters sets the HyperParameters field's value.
- func (s *TrainingJob) SetHyperParameters(v map[string]*string) *TrainingJob {
- s.HyperParameters = v
- return s
- }
- // SetInputDataConfig sets the InputDataConfig field's value.
- func (s *TrainingJob) SetInputDataConfig(v []*Channel) *TrainingJob {
- s.InputDataConfig = v
- return s
- }
- // SetLabelingJobArn sets the LabelingJobArn field's value.
- func (s *TrainingJob) SetLabelingJobArn(v string) *TrainingJob {
- s.LabelingJobArn = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *TrainingJob) SetLastModifiedTime(v time.Time) *TrainingJob {
- s.LastModifiedTime = &v
- return s
- }
- // SetModelArtifacts sets the ModelArtifacts field's value.
- func (s *TrainingJob) SetModelArtifacts(v *ModelArtifacts) *TrainingJob {
- s.ModelArtifacts = v
- return s
- }
- // SetOutputDataConfig sets the OutputDataConfig field's value.
- func (s *TrainingJob) SetOutputDataConfig(v *OutputDataConfig) *TrainingJob {
- s.OutputDataConfig = v
- return s
- }
- // SetResourceConfig sets the ResourceConfig field's value.
- func (s *TrainingJob) SetResourceConfig(v *ResourceConfig) *TrainingJob {
- s.ResourceConfig = v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *TrainingJob) SetRoleArn(v string) *TrainingJob {
- s.RoleArn = &v
- return s
- }
- // SetSecondaryStatus sets the SecondaryStatus field's value.
- func (s *TrainingJob) SetSecondaryStatus(v string) *TrainingJob {
- s.SecondaryStatus = &v
- return s
- }
- // SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value.
- func (s *TrainingJob) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *TrainingJob {
- s.SecondaryStatusTransitions = v
- return s
- }
- // SetStoppingCondition sets the StoppingCondition field's value.
- func (s *TrainingJob) SetStoppingCondition(v *StoppingCondition) *TrainingJob {
- s.StoppingCondition = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *TrainingJob) SetTags(v []*Tag) *TrainingJob {
- s.Tags = v
- return s
- }
- // SetTrainingEndTime sets the TrainingEndTime field's value.
- func (s *TrainingJob) SetTrainingEndTime(v time.Time) *TrainingJob {
- s.TrainingEndTime = &v
- return s
- }
- // SetTrainingJobArn sets the TrainingJobArn field's value.
- func (s *TrainingJob) SetTrainingJobArn(v string) *TrainingJob {
- s.TrainingJobArn = &v
- return s
- }
- // SetTrainingJobName sets the TrainingJobName field's value.
- func (s *TrainingJob) SetTrainingJobName(v string) *TrainingJob {
- s.TrainingJobName = &v
- return s
- }
- // SetTrainingJobStatus sets the TrainingJobStatus field's value.
- func (s *TrainingJob) SetTrainingJobStatus(v string) *TrainingJob {
- s.TrainingJobStatus = &v
- return s
- }
- // SetTrainingStartTime sets the TrainingStartTime field's value.
- func (s *TrainingJob) SetTrainingStartTime(v time.Time) *TrainingJob {
- s.TrainingStartTime = &v
- return s
- }
- // SetTuningJobArn sets the TuningJobArn field's value.
- func (s *TrainingJob) SetTuningJobArn(v string) *TrainingJob {
- s.TuningJobArn = &v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *TrainingJob) SetVpcConfig(v *VpcConfig) *TrainingJob {
- s.VpcConfig = v
- return s
- }
- // Defines the input needed to run a training job using the algorithm.
- type TrainingJobDefinition struct {
- _ struct{} `type:"structure"`
- // The hyperparameters used for the training job.
- HyperParameters map[string]*string `type:"map"`
- // An array of Channel objects, each of which specifies an input source.
- //
- // InputDataConfig is a required field
- InputDataConfig []*Channel `min:"1" type:"list" required:"true"`
- // the path to the S3 bucket where you want to store model artifacts. Amazon
- // SageMaker creates subfolders for the artifacts.
- //
- // OutputDataConfig is a required field
- OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
- // The resources, including the ML compute instances and ML storage volumes,
- // to use for model training.
- //
- // ResourceConfig is a required field
- ResourceConfig *ResourceConfig `type:"structure" required:"true"`
- // Sets a duration for training. Use this parameter to cap model training costs.
- //
- // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which
- // delays job termination for 120 seconds. Algorithms might use this 120-second
- // window to save the model artifacts.
- //
- // StoppingCondition is a required field
- StoppingCondition *StoppingCondition `type:"structure" required:"true"`
- // The input mode used by the algorithm for the training job. For the input
- // modes that Amazon SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
- //
- // If an algorithm supports the File input mode, Amazon SageMaker downloads
- // the training data from S3 to the provisioned ML storage Volume, and mounts
- // the directory to docker volume for training container. If an algorithm supports
- // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the
- // container.
- //
- // TrainingInputMode is a required field
- TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"`
- }
- // String returns the string representation
- func (s TrainingJobDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrainingJobDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TrainingJobDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TrainingJobDefinition"}
- if s.InputDataConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
- }
- if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1))
- }
- if s.OutputDataConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
- }
- if s.ResourceConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
- }
- if s.StoppingCondition == nil {
- invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
- }
- if s.TrainingInputMode == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingInputMode"))
- }
- if s.InputDataConfig != nil {
- for i, v := range s.InputDataConfig {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OutputDataConfig != nil {
- if err := s.OutputDataConfig.Validate(); err != nil {
- invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.ResourceConfig != nil {
- if err := s.ResourceConfig.Validate(); err != nil {
- invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.StoppingCondition != nil {
- if err := s.StoppingCondition.Validate(); err != nil {
- invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHyperParameters sets the HyperParameters field's value.
- func (s *TrainingJobDefinition) SetHyperParameters(v map[string]*string) *TrainingJobDefinition {
- s.HyperParameters = v
- return s
- }
- // SetInputDataConfig sets the InputDataConfig field's value.
- func (s *TrainingJobDefinition) SetInputDataConfig(v []*Channel) *TrainingJobDefinition {
- s.InputDataConfig = v
- return s
- }
- // SetOutputDataConfig sets the OutputDataConfig field's value.
- func (s *TrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *TrainingJobDefinition {
- s.OutputDataConfig = v
- return s
- }
- // SetResourceConfig sets the ResourceConfig field's value.
- func (s *TrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *TrainingJobDefinition {
- s.ResourceConfig = v
- return s
- }
- // SetStoppingCondition sets the StoppingCondition field's value.
- func (s *TrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *TrainingJobDefinition {
- s.StoppingCondition = v
- return s
- }
- // SetTrainingInputMode sets the TrainingInputMode field's value.
- func (s *TrainingJobDefinition) SetTrainingInputMode(v string) *TrainingJobDefinition {
- s.TrainingInputMode = &v
- return s
- }
- // The numbers of training jobs launched by a hyperparameter tuning job, categorized
- // by status.
- type TrainingJobStatusCounters struct {
- _ struct{} `type:"structure"`
- // The number of completed training jobs launched by the hyperparameter tuning
- // job.
- Completed *int64 `type:"integer"`
- // The number of in-progress training jobs launched by a hyperparameter tuning
- // job.
- InProgress *int64 `type:"integer"`
- // The number of training jobs that failed and can't be retried. A failed training
- // job can't be retried if it failed because a client error occurred.
- NonRetryableError *int64 `type:"integer"`
- // The number of training jobs that failed, but can be retried. A failed training
- // job can be retried only if it failed because an internal service error occurred.
- RetryableError *int64 `type:"integer"`
- // The number of training jobs launched by a hyperparameter tuning job that
- // were manually stopped.
- Stopped *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s TrainingJobStatusCounters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrainingJobStatusCounters) GoString() string {
- return s.String()
- }
- // SetCompleted sets the Completed field's value.
- func (s *TrainingJobStatusCounters) SetCompleted(v int64) *TrainingJobStatusCounters {
- s.Completed = &v
- return s
- }
- // SetInProgress sets the InProgress field's value.
- func (s *TrainingJobStatusCounters) SetInProgress(v int64) *TrainingJobStatusCounters {
- s.InProgress = &v
- return s
- }
- // SetNonRetryableError sets the NonRetryableError field's value.
- func (s *TrainingJobStatusCounters) SetNonRetryableError(v int64) *TrainingJobStatusCounters {
- s.NonRetryableError = &v
- return s
- }
- // SetRetryableError sets the RetryableError field's value.
- func (s *TrainingJobStatusCounters) SetRetryableError(v int64) *TrainingJobStatusCounters {
- s.RetryableError = &v
- return s
- }
- // SetStopped sets the Stopped field's value.
- func (s *TrainingJobStatusCounters) SetStopped(v int64) *TrainingJobStatusCounters {
- s.Stopped = &v
- return s
- }
- // Provides summary information about a training job.
- type TrainingJobSummary struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the training job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // Timestamp when the training job was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // A timestamp that shows when the training job ended. This field is set only
- // if the training job has one of the terminal statuses (Completed, Failed,
- // or Stopped).
- TrainingEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the training job.
- //
- // TrainingJobArn is a required field
- TrainingJobArn *string `type:"string" required:"true"`
- // The name of the training job that you want a summary for.
- //
- // TrainingJobName is a required field
- TrainingJobName *string `min:"1" type:"string" required:"true"`
- // The status of the training job.
- //
- // TrainingJobStatus is a required field
- TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"`
- }
- // String returns the string representation
- func (s TrainingJobSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrainingJobSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *TrainingJobSummary) SetCreationTime(v time.Time) *TrainingJobSummary {
- s.CreationTime = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *TrainingJobSummary) SetLastModifiedTime(v time.Time) *TrainingJobSummary {
- s.LastModifiedTime = &v
- return s
- }
- // SetTrainingEndTime sets the TrainingEndTime field's value.
- func (s *TrainingJobSummary) SetTrainingEndTime(v time.Time) *TrainingJobSummary {
- s.TrainingEndTime = &v
- return s
- }
- // SetTrainingJobArn sets the TrainingJobArn field's value.
- func (s *TrainingJobSummary) SetTrainingJobArn(v string) *TrainingJobSummary {
- s.TrainingJobArn = &v
- return s
- }
- // SetTrainingJobName sets the TrainingJobName field's value.
- func (s *TrainingJobSummary) SetTrainingJobName(v string) *TrainingJobSummary {
- s.TrainingJobName = &v
- return s
- }
- // SetTrainingJobStatus sets the TrainingJobStatus field's value.
- func (s *TrainingJobSummary) SetTrainingJobStatus(v string) *TrainingJobSummary {
- s.TrainingJobStatus = &v
- return s
- }
- // Defines how the algorithm is used for a training job.
- type TrainingSpecification struct {
- _ struct{} `type:"structure"`
- // A list of MetricDefinition objects, which are used for parsing metrics generated
- // by the algorithm.
- MetricDefinitions []*MetricDefinition `type:"list"`
- // A list of the HyperParameterSpecification objects, that define the supported
- // hyperparameters. This is required if the algorithm supports automatic model
- // tuning.>
- SupportedHyperParameters []*HyperParameterSpecification `type:"list"`
- // A list of the instance types that this algorithm can use for training.
- //
- // SupportedTrainingInstanceTypes is a required field
- SupportedTrainingInstanceTypes []*string `type:"list" required:"true"`
- // A list of the metrics that the algorithm emits that can be used as the objective
- // metric in a hyperparameter tuning job.
- SupportedTuningJobObjectiveMetrics []*HyperParameterTuningJobObjective `type:"list"`
- // Indicates whether the algorithm supports distributed training. If set to
- // false, buyers can’t request more than one instance during training.
- SupportsDistributedTraining *bool `type:"boolean"`
- // A list of ChannelSpecification objects, which specify the input sources to
- // be used by the algorithm.
- //
- // TrainingChannels is a required field
- TrainingChannels []*ChannelSpecification `min:"1" type:"list" required:"true"`
- // The Amazon ECR registry path of the Docker image that contains the training
- // algorithm.
- //
- // TrainingImage is a required field
- TrainingImage *string `type:"string" required:"true"`
- // An MD5 hash of the training algorithm that identifies the Docker image used
- // for training.
- TrainingImageDigest *string `type:"string"`
- }
- // String returns the string representation
- func (s TrainingSpecification) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrainingSpecification) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TrainingSpecification) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TrainingSpecification"}
- if s.SupportedTrainingInstanceTypes == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportedTrainingInstanceTypes"))
- }
- if s.TrainingChannels == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingChannels"))
- }
- if s.TrainingChannels != nil && len(s.TrainingChannels) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TrainingChannels", 1))
- }
- if s.TrainingImage == nil {
- invalidParams.Add(request.NewErrParamRequired("TrainingImage"))
- }
- if s.MetricDefinitions != nil {
- for i, v := range s.MetricDefinitions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.SupportedHyperParameters != nil {
- for i, v := range s.SupportedHyperParameters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedHyperParameters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.SupportedTuningJobObjectiveMetrics != nil {
- for i, v := range s.SupportedTuningJobObjectiveMetrics {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedTuningJobObjectiveMetrics", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.TrainingChannels != nil {
- for i, v := range s.TrainingChannels {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TrainingChannels", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMetricDefinitions sets the MetricDefinitions field's value.
- func (s *TrainingSpecification) SetMetricDefinitions(v []*MetricDefinition) *TrainingSpecification {
- s.MetricDefinitions = v
- return s
- }
- // SetSupportedHyperParameters sets the SupportedHyperParameters field's value.
- func (s *TrainingSpecification) SetSupportedHyperParameters(v []*HyperParameterSpecification) *TrainingSpecification {
- s.SupportedHyperParameters = v
- return s
- }
- // SetSupportedTrainingInstanceTypes sets the SupportedTrainingInstanceTypes field's value.
- func (s *TrainingSpecification) SetSupportedTrainingInstanceTypes(v []*string) *TrainingSpecification {
- s.SupportedTrainingInstanceTypes = v
- return s
- }
- // SetSupportedTuningJobObjectiveMetrics sets the SupportedTuningJobObjectiveMetrics field's value.
- func (s *TrainingSpecification) SetSupportedTuningJobObjectiveMetrics(v []*HyperParameterTuningJobObjective) *TrainingSpecification {
- s.SupportedTuningJobObjectiveMetrics = v
- return s
- }
- // SetSupportsDistributedTraining sets the SupportsDistributedTraining field's value.
- func (s *TrainingSpecification) SetSupportsDistributedTraining(v bool) *TrainingSpecification {
- s.SupportsDistributedTraining = &v
- return s
- }
- // SetTrainingChannels sets the TrainingChannels field's value.
- func (s *TrainingSpecification) SetTrainingChannels(v []*ChannelSpecification) *TrainingSpecification {
- s.TrainingChannels = v
- return s
- }
- // SetTrainingImage sets the TrainingImage field's value.
- func (s *TrainingSpecification) SetTrainingImage(v string) *TrainingSpecification {
- s.TrainingImage = &v
- return s
- }
- // SetTrainingImageDigest sets the TrainingImageDigest field's value.
- func (s *TrainingSpecification) SetTrainingImageDigest(v string) *TrainingSpecification {
- s.TrainingImageDigest = &v
- return s
- }
- // Describes the location of the channel data.
- type TransformDataSource struct {
- _ struct{} `type:"structure"`
- // The S3 location of the data source that is associated with a channel.
- //
- // S3DataSource is a required field
- S3DataSource *TransformS3DataSource `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s TransformDataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransformDataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TransformDataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TransformDataSource"}
- if s.S3DataSource == nil {
- invalidParams.Add(request.NewErrParamRequired("S3DataSource"))
- }
- if s.S3DataSource != nil {
- if err := s.S3DataSource.Validate(); err != nil {
- invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetS3DataSource sets the S3DataSource field's value.
- func (s *TransformDataSource) SetS3DataSource(v *TransformS3DataSource) *TransformDataSource {
- s.S3DataSource = v
- return s
- }
- // Describes the input source of a transform job and the way the transform job
- // consumes it.
- type TransformInput struct {
- _ struct{} `type:"structure"`
- // If your transform data is compressed, specify the compression type. Amazon
- // SageMaker automatically decompresses the data for the transform job accordingly.
- // The default value is None.
- CompressionType *string `type:"string" enum:"CompressionType"`
- // The multipurpose internet mail extension (MIME) type of the data. Amazon
- // SageMaker uses the MIME type with each http call to transfer data to the
- // transform job.
- ContentType *string `type:"string"`
- // Describes the location of the channel data, which is, the S3 location of
- // the input data that the model can consume.
- //
- // DataSource is a required field
- DataSource *TransformDataSource `type:"structure" required:"true"`
- // The method to use to split the transform job's data into smaller batches.
- // If you don't want to split the data, specify None. If you want to split records
- // on a newline character boundary, specify Line. To split records according
- // to the RecordIO format, specify RecordIO. The default value is None.
- //
- // Amazon SageMaker sends the maximum number of records per batch in each request
- // up to the MaxPayloadInMB limit. For more information, see RecordIO data format
- // (http://mxnet.io/architecture/note_data_loading.html#data-format).
- //
- // For information about the RecordIO format, see Data Format (http://mxnet.io/architecture/note_data_loading.html#data-format).
- SplitType *string `type:"string" enum:"SplitType"`
- }
- // String returns the string representation
- func (s TransformInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransformInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TransformInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TransformInput"}
- if s.DataSource == nil {
- invalidParams.Add(request.NewErrParamRequired("DataSource"))
- }
- if s.DataSource != nil {
- if err := s.DataSource.Validate(); err != nil {
- invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCompressionType sets the CompressionType field's value.
- func (s *TransformInput) SetCompressionType(v string) *TransformInput {
- s.CompressionType = &v
- return s
- }
- // SetContentType sets the ContentType field's value.
- func (s *TransformInput) SetContentType(v string) *TransformInput {
- s.ContentType = &v
- return s
- }
- // SetDataSource sets the DataSource field's value.
- func (s *TransformInput) SetDataSource(v *TransformDataSource) *TransformInput {
- s.DataSource = v
- return s
- }
- // SetSplitType sets the SplitType field's value.
- func (s *TransformInput) SetSplitType(v string) *TransformInput {
- s.SplitType = &v
- return s
- }
- // Defines the input needed to run a transform job using the inference specification
- // specified in the algorithm.
- type TransformJobDefinition struct {
- _ struct{} `type:"structure"`
- // A string that determines the number of records included in a single mini-batch.
- //
- // SingleRecord means only one record is used per mini-batch. MultiRecord means
- // a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB
- // limit.
- BatchStrategy *string `type:"string" enum:"BatchStrategy"`
- // The environment variables to set in the Docker container. We support up to
- // 16 key and values entries in the map.
- Environment map[string]*string `type:"map"`
- // The maximum number of parallel requests that can be sent to each instance
- // in a transform job. The default value is 1.
- MaxConcurrentTransforms *int64 `type:"integer"`
- // The maximum payload size allowed, in MB. A payload is the data portion of
- // a record (without metadata).
- MaxPayloadInMB *int64 `type:"integer"`
- // A description of the input source and the way the transform job consumes
- // it.
- //
- // TransformInput is a required field
- TransformInput *TransformInput `type:"structure" required:"true"`
- // Identifies the Amazon S3 location where you want Amazon SageMaker to save
- // the results from the transform job.
- //
- // TransformOutput is a required field
- TransformOutput *TransformOutput `type:"structure" required:"true"`
- // Identifies the ML compute instances for the transform job.
- //
- // TransformResources is a required field
- TransformResources *TransformResources `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s TransformJobDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransformJobDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TransformJobDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TransformJobDefinition"}
- if s.TransformInput == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformInput"))
- }
- if s.TransformOutput == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformOutput"))
- }
- if s.TransformResources == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformResources"))
- }
- if s.TransformInput != nil {
- if err := s.TransformInput.Validate(); err != nil {
- invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams))
- }
- }
- if s.TransformOutput != nil {
- if err := s.TransformOutput.Validate(); err != nil {
- invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams))
- }
- }
- if s.TransformResources != nil {
- if err := s.TransformResources.Validate(); err != nil {
- invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBatchStrategy sets the BatchStrategy field's value.
- func (s *TransformJobDefinition) SetBatchStrategy(v string) *TransformJobDefinition {
- s.BatchStrategy = &v
- return s
- }
- // SetEnvironment sets the Environment field's value.
- func (s *TransformJobDefinition) SetEnvironment(v map[string]*string) *TransformJobDefinition {
- s.Environment = v
- return s
- }
- // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value.
- func (s *TransformJobDefinition) SetMaxConcurrentTransforms(v int64) *TransformJobDefinition {
- s.MaxConcurrentTransforms = &v
- return s
- }
- // SetMaxPayloadInMB sets the MaxPayloadInMB field's value.
- func (s *TransformJobDefinition) SetMaxPayloadInMB(v int64) *TransformJobDefinition {
- s.MaxPayloadInMB = &v
- return s
- }
- // SetTransformInput sets the TransformInput field's value.
- func (s *TransformJobDefinition) SetTransformInput(v *TransformInput) *TransformJobDefinition {
- s.TransformInput = v
- return s
- }
- // SetTransformOutput sets the TransformOutput field's value.
- func (s *TransformJobDefinition) SetTransformOutput(v *TransformOutput) *TransformJobDefinition {
- s.TransformOutput = v
- return s
- }
- // SetTransformResources sets the TransformResources field's value.
- func (s *TransformJobDefinition) SetTransformResources(v *TransformResources) *TransformJobDefinition {
- s.TransformResources = v
- return s
- }
- // Provides a summary of a transform job. Multiple TransformJobSummary objects
- // are returned as a list after in response to a ListTransformJobs call.
- type TransformJobSummary struct {
- _ struct{} `type:"structure"`
- // A timestamp that shows when the transform Job was created.
- //
- // CreationTime is a required field
- CreationTime *time.Time `type:"timestamp" required:"true"`
- // If the transform job failed, the reason it failed.
- FailureReason *string `type:"string"`
- // Indicates when the transform job was last modified.
- LastModifiedTime *time.Time `type:"timestamp"`
- // Indicates when the transform job ends on compute instances. For successful
- // jobs and stopped jobs, this is the exact time recorded after the results
- // are uploaded. For failed jobs, this is when Amazon SageMaker detected that
- // the job failed.
- TransformEndTime *time.Time `type:"timestamp"`
- // The Amazon Resource Name (ARN) of the transform job.
- //
- // TransformJobArn is a required field
- TransformJobArn *string `type:"string" required:"true"`
- // The name of the transform job.
- //
- // TransformJobName is a required field
- TransformJobName *string `min:"1" type:"string" required:"true"`
- // The status of the transform job.
- //
- // TransformJobStatus is a required field
- TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"`
- }
- // String returns the string representation
- func (s TransformJobSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransformJobSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *TransformJobSummary) SetCreationTime(v time.Time) *TransformJobSummary {
- s.CreationTime = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *TransformJobSummary) SetFailureReason(v string) *TransformJobSummary {
- s.FailureReason = &v
- return s
- }
- // SetLastModifiedTime sets the LastModifiedTime field's value.
- func (s *TransformJobSummary) SetLastModifiedTime(v time.Time) *TransformJobSummary {
- s.LastModifiedTime = &v
- return s
- }
- // SetTransformEndTime sets the TransformEndTime field's value.
- func (s *TransformJobSummary) SetTransformEndTime(v time.Time) *TransformJobSummary {
- s.TransformEndTime = &v
- return s
- }
- // SetTransformJobArn sets the TransformJobArn field's value.
- func (s *TransformJobSummary) SetTransformJobArn(v string) *TransformJobSummary {
- s.TransformJobArn = &v
- return s
- }
- // SetTransformJobName sets the TransformJobName field's value.
- func (s *TransformJobSummary) SetTransformJobName(v string) *TransformJobSummary {
- s.TransformJobName = &v
- return s
- }
- // SetTransformJobStatus sets the TransformJobStatus field's value.
- func (s *TransformJobSummary) SetTransformJobStatus(v string) *TransformJobSummary {
- s.TransformJobStatus = &v
- return s
- }
- // Describes the results of a transform job output.
- type TransformOutput struct {
- _ struct{} `type:"structure"`
- // The MIME type used to specify the output data. Amazon SageMaker uses the
- // MIME type with each http call to transfer data from the transform job.
- Accept *string `type:"string"`
- // Defines how to assemble the results of the transform job as a single S3 object.
- // Choose a format that is most convenient to you. To concatenate the results
- // in binary format, specify None. To add a newline character at the end of
- // every transformed record, specify Line.
- AssembleWith *string `type:"string" enum:"AssemblyType"`
- // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
- // encrypt the model artifacts at rest using Amazon S3 server-side encryption.
- // The KmsKeyId can be any of the following formats:
- //
- // * // KMS Key ID
- //
- // "1234abcd-12ab-34cd-56ef-1234567890ab"
- //
- // * // Amazon Resource Name (ARN) of a KMS Key
- //
- // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
- //
- // * // KMS Key Alias
- //
- // "alias/ExampleAlias"
- //
- // * // Amazon Resource Name (ARN) of a KMS Key Alias
- //
- // "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
- //
- // If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS
- // key for Amazon S3 for your role's account. For more information, see KMS-Managed
- // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html)
- // in the Amazon Simple Storage Service Developer Guide.
- //
- // The KMS key policy must grant permission to the IAM role that you specify
- // in your CreateTramsformJob request. For more information, see Using Key Policies
- // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html)
- // in the AWS Key Management Service Developer Guide.
- KmsKeyId *string `type:"string"`
- // The Amazon S3 path where you want Amazon SageMaker to store the results of
- // the transform job. For example, s3://bucket-name/key-name-prefix.
- //
- // For every S3 object used as input for the transform job, the transformed
- // data is stored in a corresponding subfolder in the location under the output
- // prefix. For example, for the input data s3://bucket-name/input-name-prefix/dataset01/data.csv
- // the transformed data is stored at s3://bucket-name/key-name-prefix/dataset01/.
- // This is based on the original name, as a series of .part files (.part0001,
- // part0002, etc.).
- //
- // S3OutputPath is a required field
- S3OutputPath *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s TransformOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransformOutput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TransformOutput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TransformOutput"}
- if s.S3OutputPath == nil {
- invalidParams.Add(request.NewErrParamRequired("S3OutputPath"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccept sets the Accept field's value.
- func (s *TransformOutput) SetAccept(v string) *TransformOutput {
- s.Accept = &v
- return s
- }
- // SetAssembleWith sets the AssembleWith field's value.
- func (s *TransformOutput) SetAssembleWith(v string) *TransformOutput {
- s.AssembleWith = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *TransformOutput) SetKmsKeyId(v string) *TransformOutput {
- s.KmsKeyId = &v
- return s
- }
- // SetS3OutputPath sets the S3OutputPath field's value.
- func (s *TransformOutput) SetS3OutputPath(v string) *TransformOutput {
- s.S3OutputPath = &v
- return s
- }
- // Describes the resources, including ML instance types and ML instance count,
- // to use for transform job.
- type TransformResources struct {
- _ struct{} `type:"structure"`
- // The number of ML compute instances to use in the transform job. For distributed
- // transform, provide a value greater than 1. The default value is 1.
- //
- // InstanceCount is a required field
- InstanceCount *int64 `min:"1" type:"integer" required:"true"`
- // The ML compute instance type for the transform job. For using built-in algorithms
- // to transform moderately sized datasets, ml.m4.xlarge or ml.m5.large should
- // suffice. There is no default value for InstanceType.
- //
- // InstanceType is a required field
- InstanceType *string `type:"string" required:"true" enum:"TransformInstanceType"`
- // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
- // encrypt data on the storage volume attached to the ML compute instance(s)
- // that run the batch transform job. The VolumeKmsKeyId can be any of the following
- // formats:
- //
- // * // KMS Key ID
- //
- // "1234abcd-12ab-34cd-56ef-1234567890ab"
- //
- // * // Amazon Resource Name (ARN) of a KMS Key
- //
- // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
- VolumeKmsKeyId *string `type:"string"`
- }
- // String returns the string representation
- func (s TransformResources) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransformResources) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TransformResources) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TransformResources"}
- if s.InstanceCount == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
- }
- if s.InstanceCount != nil && *s.InstanceCount < 1 {
- invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1))
- }
- if s.InstanceType == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetInstanceCount sets the InstanceCount field's value.
- func (s *TransformResources) SetInstanceCount(v int64) *TransformResources {
- s.InstanceCount = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *TransformResources) SetInstanceType(v string) *TransformResources {
- s.InstanceType = &v
- return s
- }
- // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value.
- func (s *TransformResources) SetVolumeKmsKeyId(v string) *TransformResources {
- s.VolumeKmsKeyId = &v
- return s
- }
- // Describes the S3 data source.
- type TransformS3DataSource struct {
- _ struct{} `type:"structure"`
- // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker
- // uses all objects with the specified key name prefix for batch transform.
- //
- // If you choose ManifestFile, S3Uri identifies an object that is a manifest
- // file containing a list of object keys that you want Amazon SageMaker to use
- // for batch transform.
- //
- // S3DataType is a required field
- S3DataType *string `type:"string" required:"true" enum:"S3DataType"`
- // Depending on the value specified for the S3DataType, identifies either a
- // key name prefix or a manifest. For example:
- //
- // * A key name prefix might look like this: s3://bucketname/exampleprefix.
- //
- //
- // * A manifest might look like this: s3://bucketname/example.manifest
- //
- // The manifest is an S3 object which is a JSON file with the following format:
- //
- //
- // [
- //
- // {"prefix": "s3://customer_bucket/some/prefix/"},
- //
- // "relative/path/to/custdata-1",
- //
- // "relative/path/custdata-2",
- //
- // ...
- //
- // ]
- //
- // The preceding JSON matches the following S3Uris:
- //
- // s3://customer_bucket/some/prefix/relative/path/to/custdata-1
- //
- // s3://customer_bucket/some/prefix/relative/path/custdata-1
- //
- // ...
- //
- // The complete set of S3Uris in this manifest constitutes the input data for
- // the channel for this datasource. The object that each S3Uris points to
- // must be readable by the IAM role that Amazon SageMaker uses to perform
- // tasks on your behalf.
- //
- // S3Uri is a required field
- S3Uri *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s TransformS3DataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransformS3DataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TransformS3DataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TransformS3DataSource"}
- if s.S3DataType == nil {
- invalidParams.Add(request.NewErrParamRequired("S3DataType"))
- }
- if s.S3Uri == nil {
- invalidParams.Add(request.NewErrParamRequired("S3Uri"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetS3DataType sets the S3DataType field's value.
- func (s *TransformS3DataSource) SetS3DataType(v string) *TransformS3DataSource {
- s.S3DataType = &v
- return s
- }
- // SetS3Uri sets the S3Uri field's value.
- func (s *TransformS3DataSource) SetS3Uri(v string) *TransformS3DataSource {
- s.S3Uri = &v
- return s
- }
- // Represents an amount of money in United States dollars/
- type USD struct {
- _ struct{} `type:"structure"`
- // The fractional portion, in cents, of the amount.
- Cents *int64 `type:"integer"`
- // The whole number of dollars in the amount.
- Dollars *int64 `type:"integer"`
- // Fractions of a cent, in tenths.
- TenthFractionsOfACent *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s USD) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s USD) GoString() string {
- return s.String()
- }
- // SetCents sets the Cents field's value.
- func (s *USD) SetCents(v int64) *USD {
- s.Cents = &v
- return s
- }
- // SetDollars sets the Dollars field's value.
- func (s *USD) SetDollars(v int64) *USD {
- s.Dollars = &v
- return s
- }
- // SetTenthFractionsOfACent sets the TenthFractionsOfACent field's value.
- func (s *USD) SetTenthFractionsOfACent(v int64) *USD {
- s.TenthFractionsOfACent = &v
- return s
- }
- // Provided configuration information for the worker UI for a labeling job.
- type UiConfig struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 bucket location of the UI template. For more information about
- // the contents of a UI template, see Creating Your Custom Labeling Task Template
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-custom-templates-step2.html).
- //
- // UiTemplateS3Uri is a required field
- UiTemplateS3Uri *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UiConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UiConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UiConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UiConfig"}
- if s.UiTemplateS3Uri == nil {
- invalidParams.Add(request.NewErrParamRequired("UiTemplateS3Uri"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetUiTemplateS3Uri sets the UiTemplateS3Uri field's value.
- func (s *UiConfig) SetUiTemplateS3Uri(v string) *UiConfig {
- s.UiTemplateS3Uri = &v
- return s
- }
- // The Liquid template for the worker user interface.
- type UiTemplate struct {
- _ struct{} `type:"structure"`
- // The content of the Liquid template for the worker user interface.
- //
- // Content is a required field
- Content *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UiTemplate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UiTemplate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UiTemplate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UiTemplate"}
- if s.Content == nil {
- invalidParams.Add(request.NewErrParamRequired("Content"))
- }
- if s.Content != nil && len(*s.Content) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Content", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContent sets the Content field's value.
- func (s *UiTemplate) SetContent(v string) *UiTemplate {
- s.Content = &v
- return s
- }
- type UpdateCodeRepositoryInput struct {
- _ struct{} `type:"structure"`
- // The name of the Git repository to update.
- //
- // CodeRepositoryName is a required field
- CodeRepositoryName *string `min:"1" type:"string" required:"true"`
- // The configuration of the git repository, including the URL and the Amazon
- // Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials
- // used to access the repository. The secret must have a staging label of AWSCURRENT
- // and must be in the following format:
- //
- // {"username": UserName, "password": Password}
- GitConfig *GitConfigForUpdate `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateCodeRepositoryInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCodeRepositoryInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateCodeRepositoryInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateCodeRepositoryInput"}
- if s.CodeRepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
- }
- if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
- }
- if s.GitConfig != nil {
- if err := s.GitConfig.Validate(); err != nil {
- invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCodeRepositoryName sets the CodeRepositoryName field's value.
- func (s *UpdateCodeRepositoryInput) SetCodeRepositoryName(v string) *UpdateCodeRepositoryInput {
- s.CodeRepositoryName = &v
- return s
- }
- // SetGitConfig sets the GitConfig field's value.
- func (s *UpdateCodeRepositoryInput) SetGitConfig(v *GitConfigForUpdate) *UpdateCodeRepositoryInput {
- s.GitConfig = v
- return s
- }
- type UpdateCodeRepositoryOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the Git repository.
- //
- // CodeRepositoryArn is a required field
- CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateCodeRepositoryOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCodeRepositoryOutput) GoString() string {
- return s.String()
- }
- // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
- func (s *UpdateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *UpdateCodeRepositoryOutput {
- s.CodeRepositoryArn = &v
- return s
- }
- type UpdateEndpointInput struct {
- _ struct{} `type:"structure"`
- // The name of the new endpoint configuration.
- //
- // EndpointConfigName is a required field
- EndpointConfigName *string `type:"string" required:"true"`
- // The name of the endpoint whose configuration you want to update.
- //
- // EndpointName is a required field
- EndpointName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateEndpointInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateEndpointInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateEndpointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointInput"}
- if s.EndpointConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
- }
- if s.EndpointName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndpointConfigName sets the EndpointConfigName field's value.
- func (s *UpdateEndpointInput) SetEndpointConfigName(v string) *UpdateEndpointInput {
- s.EndpointConfigName = &v
- return s
- }
- // SetEndpointName sets the EndpointName field's value.
- func (s *UpdateEndpointInput) SetEndpointName(v string) *UpdateEndpointInput {
- s.EndpointName = &v
- return s
- }
- type UpdateEndpointOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the endpoint.
- //
- // EndpointArn is a required field
- EndpointArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateEndpointOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateEndpointOutput) GoString() string {
- return s.String()
- }
- // SetEndpointArn sets the EndpointArn field's value.
- func (s *UpdateEndpointOutput) SetEndpointArn(v string) *UpdateEndpointOutput {
- s.EndpointArn = &v
- return s
- }
- type UpdateEndpointWeightsAndCapacitiesInput struct {
- _ struct{} `type:"structure"`
- // An object that provides new capacity and weight values for a variant.
- //
- // DesiredWeightsAndCapacities is a required field
- DesiredWeightsAndCapacities []*DesiredWeightAndCapacity `min:"1" type:"list" required:"true"`
- // The name of an existing Amazon SageMaker endpoint.
- //
- // EndpointName is a required field
- EndpointName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateEndpointWeightsAndCapacitiesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateEndpointWeightsAndCapacitiesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateEndpointWeightsAndCapacitiesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointWeightsAndCapacitiesInput"}
- if s.DesiredWeightsAndCapacities == nil {
- invalidParams.Add(request.NewErrParamRequired("DesiredWeightsAndCapacities"))
- }
- if s.DesiredWeightsAndCapacities != nil && len(s.DesiredWeightsAndCapacities) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DesiredWeightsAndCapacities", 1))
- }
- if s.EndpointName == nil {
- invalidParams.Add(request.NewErrParamRequired("EndpointName"))
- }
- if s.DesiredWeightsAndCapacities != nil {
- for i, v := range s.DesiredWeightsAndCapacities {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DesiredWeightsAndCapacities", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDesiredWeightsAndCapacities sets the DesiredWeightsAndCapacities field's value.
- func (s *UpdateEndpointWeightsAndCapacitiesInput) SetDesiredWeightsAndCapacities(v []*DesiredWeightAndCapacity) *UpdateEndpointWeightsAndCapacitiesInput {
- s.DesiredWeightsAndCapacities = v
- return s
- }
- // SetEndpointName sets the EndpointName field's value.
- func (s *UpdateEndpointWeightsAndCapacitiesInput) SetEndpointName(v string) *UpdateEndpointWeightsAndCapacitiesInput {
- s.EndpointName = &v
- return s
- }
- type UpdateEndpointWeightsAndCapacitiesOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the updated endpoint.
- //
- // EndpointArn is a required field
- EndpointArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateEndpointWeightsAndCapacitiesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateEndpointWeightsAndCapacitiesOutput) GoString() string {
- return s.String()
- }
- // SetEndpointArn sets the EndpointArn field's value.
- func (s *UpdateEndpointWeightsAndCapacitiesOutput) SetEndpointArn(v string) *UpdateEndpointWeightsAndCapacitiesOutput {
- s.EndpointArn = &v
- return s
- }
- type UpdateNotebookInstanceInput struct {
- _ struct{} `type:"structure"`
- // A list of the Elastic Inference (EI) instance types to associate with this
- // notebook instance. Currently only one EI instance type can be associated
- // with a notebook instance. For more information, see Using Elastic Inference
- // in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
- AcceleratorTypes []*string `type:"list"`
- // An array of up to three Git repositories to associate with the notebook instance.
- // These can be either the names of Git repositories stored as resources in
- // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
- // or in any other Git repository.. These repositories are cloned at the same
- // level as the default repository of your notebook instance. For more information,
- // see Associating Git Repositories with Amazon SageMaker Notebook Instances
- // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- AdditionalCodeRepositories []*string `type:"list"`
- // The Git repository to associate with the notebook instance as its default
- // code repository. This can be either the name of a Git repository stored as
- // a resource in your account, or the URL of a Git repository in AWS CodeCommit
- // (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or
- // in any other Git repository. When you open a notebook instance, it opens
- // in the directory that contains this repository. For more information, see
- // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
- DefaultCodeRepository *string `min:"1" type:"string"`
- // A list of the Elastic Inference (EI) instance types to remove from this notebook
- // instance.
- DisassociateAcceleratorTypes *bool `type:"boolean"`
- // A list of names or URLs of the default Git repositories to remove from this
- // notebook instance.
- DisassociateAdditionalCodeRepositories *bool `type:"boolean"`
- // The name or URL of the default Git repository to remove from this notebook
- // instance.
- DisassociateDefaultCodeRepository *bool `type:"boolean"`
- // Set to true to remove the notebook instance lifecycle configuration currently
- // associated with the notebook instance.
- DisassociateLifecycleConfig *bool `type:"boolean"`
- // The Amazon ML compute instance type.
- InstanceType *string `type:"string" enum:"InstanceType"`
- // The name of a lifecycle configuration to associate with the notebook instance.
- // For information about lifestyle configurations, see Step 2.1: (Optional)
- // Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
- LifecycleConfigName *string `type:"string"`
- // The name of the notebook instance to update.
- //
- // NotebookInstanceName is a required field
- NotebookInstanceName *string `type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can
- // assume to access the notebook instance. For more information, see Amazon
- // SageMaker Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
- //
- // To be able to pass this role to Amazon SageMaker, the caller of this API
- // must have the iam:PassRole permission.
- RoleArn *string `min:"20" type:"string"`
- // The size, in GB, of the ML storage volume to attach to the notebook instance.
- // The default value is 5 GB.
- VolumeSizeInGB *int64 `min:"5" type:"integer"`
- }
- // String returns the string representation
- func (s UpdateNotebookInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateNotebookInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateNotebookInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceInput"}
- if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1))
- }
- if s.NotebookInstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 {
- invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAcceleratorTypes sets the AcceleratorTypes field's value.
- func (s *UpdateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *UpdateNotebookInstanceInput {
- s.AcceleratorTypes = v
- return s
- }
- // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
- func (s *UpdateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *UpdateNotebookInstanceInput {
- s.AdditionalCodeRepositories = v
- return s
- }
- // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
- func (s *UpdateNotebookInstanceInput) SetDefaultCodeRepository(v string) *UpdateNotebookInstanceInput {
- s.DefaultCodeRepository = &v
- return s
- }
- // SetDisassociateAcceleratorTypes sets the DisassociateAcceleratorTypes field's value.
- func (s *UpdateNotebookInstanceInput) SetDisassociateAcceleratorTypes(v bool) *UpdateNotebookInstanceInput {
- s.DisassociateAcceleratorTypes = &v
- return s
- }
- // SetDisassociateAdditionalCodeRepositories sets the DisassociateAdditionalCodeRepositories field's value.
- func (s *UpdateNotebookInstanceInput) SetDisassociateAdditionalCodeRepositories(v bool) *UpdateNotebookInstanceInput {
- s.DisassociateAdditionalCodeRepositories = &v
- return s
- }
- // SetDisassociateDefaultCodeRepository sets the DisassociateDefaultCodeRepository field's value.
- func (s *UpdateNotebookInstanceInput) SetDisassociateDefaultCodeRepository(v bool) *UpdateNotebookInstanceInput {
- s.DisassociateDefaultCodeRepository = &v
- return s
- }
- // SetDisassociateLifecycleConfig sets the DisassociateLifecycleConfig field's value.
- func (s *UpdateNotebookInstanceInput) SetDisassociateLifecycleConfig(v bool) *UpdateNotebookInstanceInput {
- s.DisassociateLifecycleConfig = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *UpdateNotebookInstanceInput) SetInstanceType(v string) *UpdateNotebookInstanceInput {
- s.InstanceType = &v
- return s
- }
- // SetLifecycleConfigName sets the LifecycleConfigName field's value.
- func (s *UpdateNotebookInstanceInput) SetLifecycleConfigName(v string) *UpdateNotebookInstanceInput {
- s.LifecycleConfigName = &v
- return s
- }
- // SetNotebookInstanceName sets the NotebookInstanceName field's value.
- func (s *UpdateNotebookInstanceInput) SetNotebookInstanceName(v string) *UpdateNotebookInstanceInput {
- s.NotebookInstanceName = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *UpdateNotebookInstanceInput) SetRoleArn(v string) *UpdateNotebookInstanceInput {
- s.RoleArn = &v
- return s
- }
- // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
- func (s *UpdateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *UpdateNotebookInstanceInput {
- s.VolumeSizeInGB = &v
- return s
- }
- type UpdateNotebookInstanceLifecycleConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the lifecycle configuration.
- //
- // NotebookInstanceLifecycleConfigName is a required field
- NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
- // The shell script that runs only once, when you create a notebook instance
- OnCreate []*NotebookInstanceLifecycleHook `type:"list"`
- // The shell script that runs every time you start a notebook instance, including
- // when you create the notebook instance.
- OnStart []*NotebookInstanceLifecycleHook `type:"list"`
- }
- // String returns the string representation
- func (s UpdateNotebookInstanceLifecycleConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateNotebookInstanceLifecycleConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceLifecycleConfigInput"}
- if s.NotebookInstanceLifecycleConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
- }
- if s.OnCreate != nil {
- for i, v := range s.OnCreate {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OnStart != nil {
- for i, v := range s.OnStart {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
- func (s *UpdateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *UpdateNotebookInstanceLifecycleConfigInput {
- s.NotebookInstanceLifecycleConfigName = &v
- return s
- }
- // SetOnCreate sets the OnCreate field's value.
- func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput {
- s.OnCreate = v
- return s
- }
- // SetOnStart sets the OnStart field's value.
- func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput {
- s.OnStart = v
- return s
- }
- type UpdateNotebookInstanceLifecycleConfigOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateNotebookInstanceLifecycleConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateNotebookInstanceLifecycleConfigOutput) GoString() string {
- return s.String()
- }
- type UpdateNotebookInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateNotebookInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateNotebookInstanceOutput) GoString() string {
- return s.String()
- }
- type UpdateWorkteamInput struct {
- _ struct{} `type:"structure"`
- // An updated description for the work team.
- Description *string `min:"1" type:"string"`
- // A list of MemberDefinition objects that contain the updated work team members.
- MemberDefinitions []*MemberDefinition `min:"1" type:"list"`
- // The name of the work team to update.
- //
- // WorkteamName is a required field
- WorkteamName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateWorkteamInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateWorkteamInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateWorkteamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateWorkteamInput"}
- if s.Description != nil && len(*s.Description) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Description", 1))
- }
- if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1))
- }
- if s.WorkteamName == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
- }
- if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
- }
- if s.MemberDefinitions != nil {
- for i, v := range s.MemberDefinitions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateWorkteamInput) SetDescription(v string) *UpdateWorkteamInput {
- s.Description = &v
- return s
- }
- // SetMemberDefinitions sets the MemberDefinitions field's value.
- func (s *UpdateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *UpdateWorkteamInput {
- s.MemberDefinitions = v
- return s
- }
- // SetWorkteamName sets the WorkteamName field's value.
- func (s *UpdateWorkteamInput) SetWorkteamName(v string) *UpdateWorkteamInput {
- s.WorkteamName = &v
- return s
- }
- type UpdateWorkteamOutput struct {
- _ struct{} `type:"structure"`
- // A Workteam object that describes the updated work team.
- //
- // Workteam is a required field
- Workteam *Workteam `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateWorkteamOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateWorkteamOutput) GoString() string {
- return s.String()
- }
- // SetWorkteam sets the Workteam field's value.
- func (s *UpdateWorkteamOutput) SetWorkteam(v *Workteam) *UpdateWorkteamOutput {
- s.Workteam = v
- return s
- }
- // Specifies a VPC that your training jobs and hosted models have access to.
- // Control access to and from your training and model containers by configuring
- // the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual
- // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html)
- // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
- type VpcConfig struct {
- _ struct{} `type:"structure"`
- // The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security
- // groups for the VPC that is specified in the Subnets field.
- //
- // SecurityGroupIds is a required field
- SecurityGroupIds []*string `min:"1" type:"list" required:"true"`
- // The ID of the subnets in the VPC to which you want to connect your training
- // job or model.
- //
- // Subnets is a required field
- Subnets []*string `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s VpcConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VpcConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *VpcConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "VpcConfig"}
- if s.SecurityGroupIds == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
- }
- if s.SecurityGroupIds != nil && len(s.SecurityGroupIds) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecurityGroupIds", 1))
- }
- if s.Subnets == nil {
- invalidParams.Add(request.NewErrParamRequired("Subnets"))
- }
- if s.Subnets != nil && len(s.Subnets) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Subnets", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSecurityGroupIds sets the SecurityGroupIds field's value.
- func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig {
- s.SecurityGroupIds = v
- return s
- }
- // SetSubnets sets the Subnets field's value.
- func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig {
- s.Subnets = v
- return s
- }
- // Provides details about a labeling work team.
- type Workteam struct {
- _ struct{} `type:"structure"`
- // The date and time that the work team was created (timestamp).
- CreateDate *time.Time `type:"timestamp"`
- // A description of the work team.
- //
- // Description is a required field
- Description *string `min:"1" type:"string" required:"true"`
- // The date and time that the work team was last updated (timestamp).
- LastUpdatedDate *time.Time `type:"timestamp"`
- // The Amazon Cognito user groups that make up the work team.
- //
- // MemberDefinitions is a required field
- MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"`
- // The Amazon Marketplace identifier for a vendor's work team.
- ProductListingIds []*string `type:"list"`
- // The URI of the labeling job's user interface. Workers open this URI to start
- // labeling your data objects.
- SubDomain *string `type:"string"`
- // The Amazon Resource Name (ARN) that identifies the work team.
- //
- // WorkteamArn is a required field
- WorkteamArn *string `type:"string" required:"true"`
- // The name of the work team.
- //
- // WorkteamName is a required field
- WorkteamName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Workteam) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Workteam) GoString() string {
- return s.String()
- }
- // SetCreateDate sets the CreateDate field's value.
- func (s *Workteam) SetCreateDate(v time.Time) *Workteam {
- s.CreateDate = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *Workteam) SetDescription(v string) *Workteam {
- s.Description = &v
- return s
- }
- // SetLastUpdatedDate sets the LastUpdatedDate field's value.
- func (s *Workteam) SetLastUpdatedDate(v time.Time) *Workteam {
- s.LastUpdatedDate = &v
- return s
- }
- // SetMemberDefinitions sets the MemberDefinitions field's value.
- func (s *Workteam) SetMemberDefinitions(v []*MemberDefinition) *Workteam {
- s.MemberDefinitions = v
- return s
- }
- // SetProductListingIds sets the ProductListingIds field's value.
- func (s *Workteam) SetProductListingIds(v []*string) *Workteam {
- s.ProductListingIds = v
- return s
- }
- // SetSubDomain sets the SubDomain field's value.
- func (s *Workteam) SetSubDomain(v string) *Workteam {
- s.SubDomain = &v
- return s
- }
- // SetWorkteamArn sets the WorkteamArn field's value.
- func (s *Workteam) SetWorkteamArn(v string) *Workteam {
- s.WorkteamArn = &v
- return s
- }
- // SetWorkteamName sets the WorkteamName field's value.
- func (s *Workteam) SetWorkteamName(v string) *Workteam {
- s.WorkteamName = &v
- return s
- }
- const (
- // AlgorithmSortByName is a AlgorithmSortBy enum value
- AlgorithmSortByName = "Name"
- // AlgorithmSortByCreationTime is a AlgorithmSortBy enum value
- AlgorithmSortByCreationTime = "CreationTime"
- )
- const (
- // AlgorithmStatusPending is a AlgorithmStatus enum value
- AlgorithmStatusPending = "Pending"
- // AlgorithmStatusInProgress is a AlgorithmStatus enum value
- AlgorithmStatusInProgress = "InProgress"
- // AlgorithmStatusCompleted is a AlgorithmStatus enum value
- AlgorithmStatusCompleted = "Completed"
- // AlgorithmStatusFailed is a AlgorithmStatus enum value
- AlgorithmStatusFailed = "Failed"
- // AlgorithmStatusDeleting is a AlgorithmStatus enum value
- AlgorithmStatusDeleting = "Deleting"
- )
- const (
- // AssemblyTypeNone is a AssemblyType enum value
- AssemblyTypeNone = "None"
- // AssemblyTypeLine is a AssemblyType enum value
- AssemblyTypeLine = "Line"
- )
- const (
- // BatchStrategyMultiRecord is a BatchStrategy enum value
- BatchStrategyMultiRecord = "MultiRecord"
- // BatchStrategySingleRecord is a BatchStrategy enum value
- BatchStrategySingleRecord = "SingleRecord"
- )
- const (
- // BooleanOperatorAnd is a BooleanOperator enum value
- BooleanOperatorAnd = "And"
- // BooleanOperatorOr is a BooleanOperator enum value
- BooleanOperatorOr = "Or"
- )
- const (
- // CodeRepositorySortByName is a CodeRepositorySortBy enum value
- CodeRepositorySortByName = "Name"
- // CodeRepositorySortByCreationTime is a CodeRepositorySortBy enum value
- CodeRepositorySortByCreationTime = "CreationTime"
- // CodeRepositorySortByLastModifiedTime is a CodeRepositorySortBy enum value
- CodeRepositorySortByLastModifiedTime = "LastModifiedTime"
- )
- const (
- // CodeRepositorySortOrderAscending is a CodeRepositorySortOrder enum value
- CodeRepositorySortOrderAscending = "Ascending"
- // CodeRepositorySortOrderDescending is a CodeRepositorySortOrder enum value
- CodeRepositorySortOrderDescending = "Descending"
- )
- const (
- // CompilationJobStatusInprogress is a CompilationJobStatus enum value
- CompilationJobStatusInprogress = "INPROGRESS"
- // CompilationJobStatusCompleted is a CompilationJobStatus enum value
- CompilationJobStatusCompleted = "COMPLETED"
- // CompilationJobStatusFailed is a CompilationJobStatus enum value
- CompilationJobStatusFailed = "FAILED"
- // CompilationJobStatusStarting is a CompilationJobStatus enum value
- CompilationJobStatusStarting = "STARTING"
- // CompilationJobStatusStopping is a CompilationJobStatus enum value
- CompilationJobStatusStopping = "STOPPING"
- // CompilationJobStatusStopped is a CompilationJobStatus enum value
- CompilationJobStatusStopped = "STOPPED"
- )
- const (
- // CompressionTypeNone is a CompressionType enum value
- CompressionTypeNone = "None"
- // CompressionTypeGzip is a CompressionType enum value
- CompressionTypeGzip = "Gzip"
- )
- const (
- // ContentClassifierFreeOfPersonallyIdentifiableInformation is a ContentClassifier enum value
- ContentClassifierFreeOfPersonallyIdentifiableInformation = "FreeOfPersonallyIdentifiableInformation"
- // ContentClassifierFreeOfAdultContent is a ContentClassifier enum value
- ContentClassifierFreeOfAdultContent = "FreeOfAdultContent"
- )
- const (
- // DetailedAlgorithmStatusNotStarted is a DetailedAlgorithmStatus enum value
- DetailedAlgorithmStatusNotStarted = "NotStarted"
- // DetailedAlgorithmStatusInProgress is a DetailedAlgorithmStatus enum value
- DetailedAlgorithmStatusInProgress = "InProgress"
- // DetailedAlgorithmStatusCompleted is a DetailedAlgorithmStatus enum value
- DetailedAlgorithmStatusCompleted = "Completed"
- // DetailedAlgorithmStatusFailed is a DetailedAlgorithmStatus enum value
- DetailedAlgorithmStatusFailed = "Failed"
- )
- const (
- // DetailedModelPackageStatusNotStarted is a DetailedModelPackageStatus enum value
- DetailedModelPackageStatusNotStarted = "NotStarted"
- // DetailedModelPackageStatusInProgress is a DetailedModelPackageStatus enum value
- DetailedModelPackageStatusInProgress = "InProgress"
- // DetailedModelPackageStatusCompleted is a DetailedModelPackageStatus enum value
- DetailedModelPackageStatusCompleted = "Completed"
- // DetailedModelPackageStatusFailed is a DetailedModelPackageStatus enum value
- DetailedModelPackageStatusFailed = "Failed"
- )
- const (
- // DirectInternetAccessEnabled is a DirectInternetAccess enum value
- DirectInternetAccessEnabled = "Enabled"
- // DirectInternetAccessDisabled is a DirectInternetAccess enum value
- DirectInternetAccessDisabled = "Disabled"
- )
- const (
- // EndpointConfigSortKeyName is a EndpointConfigSortKey enum value
- EndpointConfigSortKeyName = "Name"
- // EndpointConfigSortKeyCreationTime is a EndpointConfigSortKey enum value
- EndpointConfigSortKeyCreationTime = "CreationTime"
- )
- const (
- // EndpointSortKeyName is a EndpointSortKey enum value
- EndpointSortKeyName = "Name"
- // EndpointSortKeyCreationTime is a EndpointSortKey enum value
- EndpointSortKeyCreationTime = "CreationTime"
- // EndpointSortKeyStatus is a EndpointSortKey enum value
- EndpointSortKeyStatus = "Status"
- )
- const (
- // EndpointStatusOutOfService is a EndpointStatus enum value
- EndpointStatusOutOfService = "OutOfService"
- // EndpointStatusCreating is a EndpointStatus enum value
- EndpointStatusCreating = "Creating"
- // EndpointStatusUpdating is a EndpointStatus enum value
- EndpointStatusUpdating = "Updating"
- // EndpointStatusSystemUpdating is a EndpointStatus enum value
- EndpointStatusSystemUpdating = "SystemUpdating"
- // EndpointStatusRollingBack is a EndpointStatus enum value
- EndpointStatusRollingBack = "RollingBack"
- // EndpointStatusInService is a EndpointStatus enum value
- EndpointStatusInService = "InService"
- // EndpointStatusDeleting is a EndpointStatus enum value
- EndpointStatusDeleting = "Deleting"
- // EndpointStatusFailed is a EndpointStatus enum value
- EndpointStatusFailed = "Failed"
- )
- const (
- // FrameworkTensorflow is a Framework enum value
- FrameworkTensorflow = "TENSORFLOW"
- // FrameworkMxnet is a Framework enum value
- FrameworkMxnet = "MXNET"
- // FrameworkOnnx is a Framework enum value
- FrameworkOnnx = "ONNX"
- // FrameworkPytorch is a Framework enum value
- FrameworkPytorch = "PYTORCH"
- // FrameworkXgboost is a Framework enum value
- FrameworkXgboost = "XGBOOST"
- )
- const (
- // HyperParameterTuningJobObjectiveTypeMaximize is a HyperParameterTuningJobObjectiveType enum value
- HyperParameterTuningJobObjectiveTypeMaximize = "Maximize"
- // HyperParameterTuningJobObjectiveTypeMinimize is a HyperParameterTuningJobObjectiveType enum value
- HyperParameterTuningJobObjectiveTypeMinimize = "Minimize"
- )
- const (
- // HyperParameterTuningJobSortByOptionsName is a HyperParameterTuningJobSortByOptions enum value
- HyperParameterTuningJobSortByOptionsName = "Name"
- // HyperParameterTuningJobSortByOptionsStatus is a HyperParameterTuningJobSortByOptions enum value
- HyperParameterTuningJobSortByOptionsStatus = "Status"
- // HyperParameterTuningJobSortByOptionsCreationTime is a HyperParameterTuningJobSortByOptions enum value
- HyperParameterTuningJobSortByOptionsCreationTime = "CreationTime"
- )
- const (
- // HyperParameterTuningJobStatusCompleted is a HyperParameterTuningJobStatus enum value
- HyperParameterTuningJobStatusCompleted = "Completed"
- // HyperParameterTuningJobStatusInProgress is a HyperParameterTuningJobStatus enum value
- HyperParameterTuningJobStatusInProgress = "InProgress"
- // HyperParameterTuningJobStatusFailed is a HyperParameterTuningJobStatus enum value
- HyperParameterTuningJobStatusFailed = "Failed"
- // HyperParameterTuningJobStatusStopped is a HyperParameterTuningJobStatus enum value
- HyperParameterTuningJobStatusStopped = "Stopped"
- // HyperParameterTuningJobStatusStopping is a HyperParameterTuningJobStatus enum value
- HyperParameterTuningJobStatusStopping = "Stopping"
- )
- // The strategy hyperparameter tuning uses to find the best combination of hyperparameters
- // for your model. Currently, the only supported value is Bayesian.
- const (
- // HyperParameterTuningJobStrategyTypeBayesian is a HyperParameterTuningJobStrategyType enum value
- HyperParameterTuningJobStrategyTypeBayesian = "Bayesian"
- )
- const (
- // HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm is a HyperParameterTuningJobWarmStartType enum value
- HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm = "IdenticalDataAndAlgorithm"
- // HyperParameterTuningJobWarmStartTypeTransferLearning is a HyperParameterTuningJobWarmStartType enum value
- HyperParameterTuningJobWarmStartTypeTransferLearning = "TransferLearning"
- )
- const (
- // InstanceTypeMlT2Medium is a InstanceType enum value
- InstanceTypeMlT2Medium = "ml.t2.medium"
- // InstanceTypeMlT2Large is a InstanceType enum value
- InstanceTypeMlT2Large = "ml.t2.large"
- // InstanceTypeMlT2Xlarge is a InstanceType enum value
- InstanceTypeMlT2Xlarge = "ml.t2.xlarge"
- // InstanceTypeMlT22xlarge is a InstanceType enum value
- InstanceTypeMlT22xlarge = "ml.t2.2xlarge"
- // InstanceTypeMlT3Medium is a InstanceType enum value
- InstanceTypeMlT3Medium = "ml.t3.medium"
- // InstanceTypeMlT3Large is a InstanceType enum value
- InstanceTypeMlT3Large = "ml.t3.large"
- // InstanceTypeMlT3Xlarge is a InstanceType enum value
- InstanceTypeMlT3Xlarge = "ml.t3.xlarge"
- // InstanceTypeMlT32xlarge is a InstanceType enum value
- InstanceTypeMlT32xlarge = "ml.t3.2xlarge"
- // InstanceTypeMlM4Xlarge is a InstanceType enum value
- InstanceTypeMlM4Xlarge = "ml.m4.xlarge"
- // InstanceTypeMlM42xlarge is a InstanceType enum value
- InstanceTypeMlM42xlarge = "ml.m4.2xlarge"
- // InstanceTypeMlM44xlarge is a InstanceType enum value
- InstanceTypeMlM44xlarge = "ml.m4.4xlarge"
- // InstanceTypeMlM410xlarge is a InstanceType enum value
- InstanceTypeMlM410xlarge = "ml.m4.10xlarge"
- // InstanceTypeMlM416xlarge is a InstanceType enum value
- InstanceTypeMlM416xlarge = "ml.m4.16xlarge"
- // InstanceTypeMlM5Xlarge is a InstanceType enum value
- InstanceTypeMlM5Xlarge = "ml.m5.xlarge"
- // InstanceTypeMlM52xlarge is a InstanceType enum value
- InstanceTypeMlM52xlarge = "ml.m5.2xlarge"
- // InstanceTypeMlM54xlarge is a InstanceType enum value
- InstanceTypeMlM54xlarge = "ml.m5.4xlarge"
- // InstanceTypeMlM512xlarge is a InstanceType enum value
- InstanceTypeMlM512xlarge = "ml.m5.12xlarge"
- // InstanceTypeMlM524xlarge is a InstanceType enum value
- InstanceTypeMlM524xlarge = "ml.m5.24xlarge"
- // InstanceTypeMlC4Xlarge is a InstanceType enum value
- InstanceTypeMlC4Xlarge = "ml.c4.xlarge"
- // InstanceTypeMlC42xlarge is a InstanceType enum value
- InstanceTypeMlC42xlarge = "ml.c4.2xlarge"
- // InstanceTypeMlC44xlarge is a InstanceType enum value
- InstanceTypeMlC44xlarge = "ml.c4.4xlarge"
- // InstanceTypeMlC48xlarge is a InstanceType enum value
- InstanceTypeMlC48xlarge = "ml.c4.8xlarge"
- // InstanceTypeMlC5Xlarge is a InstanceType enum value
- InstanceTypeMlC5Xlarge = "ml.c5.xlarge"
- // InstanceTypeMlC52xlarge is a InstanceType enum value
- InstanceTypeMlC52xlarge = "ml.c5.2xlarge"
- // InstanceTypeMlC54xlarge is a InstanceType enum value
- InstanceTypeMlC54xlarge = "ml.c5.4xlarge"
- // InstanceTypeMlC59xlarge is a InstanceType enum value
- InstanceTypeMlC59xlarge = "ml.c5.9xlarge"
- // InstanceTypeMlC518xlarge is a InstanceType enum value
- InstanceTypeMlC518xlarge = "ml.c5.18xlarge"
- // InstanceTypeMlC5dXlarge is a InstanceType enum value
- InstanceTypeMlC5dXlarge = "ml.c5d.xlarge"
- // InstanceTypeMlC5d2xlarge is a InstanceType enum value
- InstanceTypeMlC5d2xlarge = "ml.c5d.2xlarge"
- // InstanceTypeMlC5d4xlarge is a InstanceType enum value
- InstanceTypeMlC5d4xlarge = "ml.c5d.4xlarge"
- // InstanceTypeMlC5d9xlarge is a InstanceType enum value
- InstanceTypeMlC5d9xlarge = "ml.c5d.9xlarge"
- // InstanceTypeMlC5d18xlarge is a InstanceType enum value
- InstanceTypeMlC5d18xlarge = "ml.c5d.18xlarge"
- // InstanceTypeMlP2Xlarge is a InstanceType enum value
- InstanceTypeMlP2Xlarge = "ml.p2.xlarge"
- // InstanceTypeMlP28xlarge is a InstanceType enum value
- InstanceTypeMlP28xlarge = "ml.p2.8xlarge"
- // InstanceTypeMlP216xlarge is a InstanceType enum value
- InstanceTypeMlP216xlarge = "ml.p2.16xlarge"
- // InstanceTypeMlP32xlarge is a InstanceType enum value
- InstanceTypeMlP32xlarge = "ml.p3.2xlarge"
- // InstanceTypeMlP38xlarge is a InstanceType enum value
- InstanceTypeMlP38xlarge = "ml.p3.8xlarge"
- // InstanceTypeMlP316xlarge is a InstanceType enum value
- InstanceTypeMlP316xlarge = "ml.p3.16xlarge"
- )
- const (
- // LabelingJobStatusInProgress is a LabelingJobStatus enum value
- LabelingJobStatusInProgress = "InProgress"
- // LabelingJobStatusCompleted is a LabelingJobStatus enum value
- LabelingJobStatusCompleted = "Completed"
- // LabelingJobStatusFailed is a LabelingJobStatus enum value
- LabelingJobStatusFailed = "Failed"
- // LabelingJobStatusStopping is a LabelingJobStatus enum value
- LabelingJobStatusStopping = "Stopping"
- // LabelingJobStatusStopped is a LabelingJobStatus enum value
- LabelingJobStatusStopped = "Stopped"
- )
- const (
- // ListCompilationJobsSortByName is a ListCompilationJobsSortBy enum value
- ListCompilationJobsSortByName = "Name"
- // ListCompilationJobsSortByCreationTime is a ListCompilationJobsSortBy enum value
- ListCompilationJobsSortByCreationTime = "CreationTime"
- // ListCompilationJobsSortByStatus is a ListCompilationJobsSortBy enum value
- ListCompilationJobsSortByStatus = "Status"
- )
- const (
- // ListLabelingJobsForWorkteamSortByOptionsCreationTime is a ListLabelingJobsForWorkteamSortByOptions enum value
- ListLabelingJobsForWorkteamSortByOptionsCreationTime = "CreationTime"
- )
- const (
- // ListWorkteamsSortByOptionsName is a ListWorkteamsSortByOptions enum value
- ListWorkteamsSortByOptionsName = "Name"
- // ListWorkteamsSortByOptionsCreateDate is a ListWorkteamsSortByOptions enum value
- ListWorkteamsSortByOptionsCreateDate = "CreateDate"
- )
- const (
- // ModelPackageSortByName is a ModelPackageSortBy enum value
- ModelPackageSortByName = "Name"
- // ModelPackageSortByCreationTime is a ModelPackageSortBy enum value
- ModelPackageSortByCreationTime = "CreationTime"
- )
- const (
- // ModelPackageStatusPending is a ModelPackageStatus enum value
- ModelPackageStatusPending = "Pending"
- // ModelPackageStatusInProgress is a ModelPackageStatus enum value
- ModelPackageStatusInProgress = "InProgress"
- // ModelPackageStatusCompleted is a ModelPackageStatus enum value
- ModelPackageStatusCompleted = "Completed"
- // ModelPackageStatusFailed is a ModelPackageStatus enum value
- ModelPackageStatusFailed = "Failed"
- // ModelPackageStatusDeleting is a ModelPackageStatus enum value
- ModelPackageStatusDeleting = "Deleting"
- )
- const (
- // ModelSortKeyName is a ModelSortKey enum value
- ModelSortKeyName = "Name"
- // ModelSortKeyCreationTime is a ModelSortKey enum value
- ModelSortKeyCreationTime = "CreationTime"
- )
- const (
- // NotebookInstanceAcceleratorTypeMlEia1Medium is a NotebookInstanceAcceleratorType enum value
- NotebookInstanceAcceleratorTypeMlEia1Medium = "ml.eia1.medium"
- // NotebookInstanceAcceleratorTypeMlEia1Large is a NotebookInstanceAcceleratorType enum value
- NotebookInstanceAcceleratorTypeMlEia1Large = "ml.eia1.large"
- // NotebookInstanceAcceleratorTypeMlEia1Xlarge is a NotebookInstanceAcceleratorType enum value
- NotebookInstanceAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge"
- )
- const (
- // NotebookInstanceLifecycleConfigSortKeyName is a NotebookInstanceLifecycleConfigSortKey enum value
- NotebookInstanceLifecycleConfigSortKeyName = "Name"
- // NotebookInstanceLifecycleConfigSortKeyCreationTime is a NotebookInstanceLifecycleConfigSortKey enum value
- NotebookInstanceLifecycleConfigSortKeyCreationTime = "CreationTime"
- // NotebookInstanceLifecycleConfigSortKeyLastModifiedTime is a NotebookInstanceLifecycleConfigSortKey enum value
- NotebookInstanceLifecycleConfigSortKeyLastModifiedTime = "LastModifiedTime"
- )
- const (
- // NotebookInstanceLifecycleConfigSortOrderAscending is a NotebookInstanceLifecycleConfigSortOrder enum value
- NotebookInstanceLifecycleConfigSortOrderAscending = "Ascending"
- // NotebookInstanceLifecycleConfigSortOrderDescending is a NotebookInstanceLifecycleConfigSortOrder enum value
- NotebookInstanceLifecycleConfigSortOrderDescending = "Descending"
- )
- const (
- // NotebookInstanceSortKeyName is a NotebookInstanceSortKey enum value
- NotebookInstanceSortKeyName = "Name"
- // NotebookInstanceSortKeyCreationTime is a NotebookInstanceSortKey enum value
- NotebookInstanceSortKeyCreationTime = "CreationTime"
- // NotebookInstanceSortKeyStatus is a NotebookInstanceSortKey enum value
- NotebookInstanceSortKeyStatus = "Status"
- )
- const (
- // NotebookInstanceSortOrderAscending is a NotebookInstanceSortOrder enum value
- NotebookInstanceSortOrderAscending = "Ascending"
- // NotebookInstanceSortOrderDescending is a NotebookInstanceSortOrder enum value
- NotebookInstanceSortOrderDescending = "Descending"
- )
- const (
- // NotebookInstanceStatusPending is a NotebookInstanceStatus enum value
- NotebookInstanceStatusPending = "Pending"
- // NotebookInstanceStatusInService is a NotebookInstanceStatus enum value
- NotebookInstanceStatusInService = "InService"
- // NotebookInstanceStatusStopping is a NotebookInstanceStatus enum value
- NotebookInstanceStatusStopping = "Stopping"
- // NotebookInstanceStatusStopped is a NotebookInstanceStatus enum value
- NotebookInstanceStatusStopped = "Stopped"
- // NotebookInstanceStatusFailed is a NotebookInstanceStatus enum value
- NotebookInstanceStatusFailed = "Failed"
- // NotebookInstanceStatusDeleting is a NotebookInstanceStatus enum value
- NotebookInstanceStatusDeleting = "Deleting"
- // NotebookInstanceStatusUpdating is a NotebookInstanceStatus enum value
- NotebookInstanceStatusUpdating = "Updating"
- )
- const (
- // ObjectiveStatusSucceeded is a ObjectiveStatus enum value
- ObjectiveStatusSucceeded = "Succeeded"
- // ObjectiveStatusPending is a ObjectiveStatus enum value
- ObjectiveStatusPending = "Pending"
- // ObjectiveStatusFailed is a ObjectiveStatus enum value
- ObjectiveStatusFailed = "Failed"
- )
- const (
- // OperatorEquals is a Operator enum value
- OperatorEquals = "Equals"
- // OperatorNotEquals is a Operator enum value
- OperatorNotEquals = "NotEquals"
- // OperatorGreaterThan is a Operator enum value
- OperatorGreaterThan = "GreaterThan"
- // OperatorGreaterThanOrEqualTo is a Operator enum value
- OperatorGreaterThanOrEqualTo = "GreaterThanOrEqualTo"
- // OperatorLessThan is a Operator enum value
- OperatorLessThan = "LessThan"
- // OperatorLessThanOrEqualTo is a Operator enum value
- OperatorLessThanOrEqualTo = "LessThanOrEqualTo"
- // OperatorContains is a Operator enum value
- OperatorContains = "Contains"
- )
- const (
- // OrderKeyAscending is a OrderKey enum value
- OrderKeyAscending = "Ascending"
- // OrderKeyDescending is a OrderKey enum value
- OrderKeyDescending = "Descending"
- )
- const (
- // ParameterTypeInteger is a ParameterType enum value
- ParameterTypeInteger = "Integer"
- // ParameterTypeContinuous is a ParameterType enum value
- ParameterTypeContinuous = "Continuous"
- // ParameterTypeCategorical is a ParameterType enum value
- ParameterTypeCategorical = "Categorical"
- // ParameterTypeFreeText is a ParameterType enum value
- ParameterTypeFreeText = "FreeText"
- )
- const (
- // ProductionVariantAcceleratorTypeMlEia1Medium is a ProductionVariantAcceleratorType enum value
- ProductionVariantAcceleratorTypeMlEia1Medium = "ml.eia1.medium"
- // ProductionVariantAcceleratorTypeMlEia1Large is a ProductionVariantAcceleratorType enum value
- ProductionVariantAcceleratorTypeMlEia1Large = "ml.eia1.large"
- // ProductionVariantAcceleratorTypeMlEia1Xlarge is a ProductionVariantAcceleratorType enum value
- ProductionVariantAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge"
- )
- const (
- // ProductionVariantInstanceTypeMlT2Medium is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlT2Medium = "ml.t2.medium"
- // ProductionVariantInstanceTypeMlT2Large is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlT2Large = "ml.t2.large"
- // ProductionVariantInstanceTypeMlT2Xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlT2Xlarge = "ml.t2.xlarge"
- // ProductionVariantInstanceTypeMlT22xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlT22xlarge = "ml.t2.2xlarge"
- // ProductionVariantInstanceTypeMlM4Xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM4Xlarge = "ml.m4.xlarge"
- // ProductionVariantInstanceTypeMlM42xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM42xlarge = "ml.m4.2xlarge"
- // ProductionVariantInstanceTypeMlM44xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM44xlarge = "ml.m4.4xlarge"
- // ProductionVariantInstanceTypeMlM410xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM410xlarge = "ml.m4.10xlarge"
- // ProductionVariantInstanceTypeMlM416xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM416xlarge = "ml.m4.16xlarge"
- // ProductionVariantInstanceTypeMlM5Large is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM5Large = "ml.m5.large"
- // ProductionVariantInstanceTypeMlM5Xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM5Xlarge = "ml.m5.xlarge"
- // ProductionVariantInstanceTypeMlM52xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM52xlarge = "ml.m5.2xlarge"
- // ProductionVariantInstanceTypeMlM54xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM54xlarge = "ml.m5.4xlarge"
- // ProductionVariantInstanceTypeMlM512xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM512xlarge = "ml.m5.12xlarge"
- // ProductionVariantInstanceTypeMlM524xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlM524xlarge = "ml.m5.24xlarge"
- // ProductionVariantInstanceTypeMlC4Large is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC4Large = "ml.c4.large"
- // ProductionVariantInstanceTypeMlC4Xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC4Xlarge = "ml.c4.xlarge"
- // ProductionVariantInstanceTypeMlC42xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC42xlarge = "ml.c4.2xlarge"
- // ProductionVariantInstanceTypeMlC44xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC44xlarge = "ml.c4.4xlarge"
- // ProductionVariantInstanceTypeMlC48xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC48xlarge = "ml.c4.8xlarge"
- // ProductionVariantInstanceTypeMlP2Xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlP2Xlarge = "ml.p2.xlarge"
- // ProductionVariantInstanceTypeMlP28xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlP28xlarge = "ml.p2.8xlarge"
- // ProductionVariantInstanceTypeMlP216xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlP216xlarge = "ml.p2.16xlarge"
- // ProductionVariantInstanceTypeMlP32xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlP32xlarge = "ml.p3.2xlarge"
- // ProductionVariantInstanceTypeMlP38xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlP38xlarge = "ml.p3.8xlarge"
- // ProductionVariantInstanceTypeMlP316xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlP316xlarge = "ml.p3.16xlarge"
- // ProductionVariantInstanceTypeMlC5Large is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC5Large = "ml.c5.large"
- // ProductionVariantInstanceTypeMlC5Xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC5Xlarge = "ml.c5.xlarge"
- // ProductionVariantInstanceTypeMlC52xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC52xlarge = "ml.c5.2xlarge"
- // ProductionVariantInstanceTypeMlC54xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC54xlarge = "ml.c5.4xlarge"
- // ProductionVariantInstanceTypeMlC59xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC59xlarge = "ml.c5.9xlarge"
- // ProductionVariantInstanceTypeMlC518xlarge is a ProductionVariantInstanceType enum value
- ProductionVariantInstanceTypeMlC518xlarge = "ml.c5.18xlarge"
- )
- const (
- // RecordWrapperNone is a RecordWrapper enum value
- RecordWrapperNone = "None"
- // RecordWrapperRecordIo is a RecordWrapper enum value
- RecordWrapperRecordIo = "RecordIO"
- )
- const (
- // ResourceTypeTrainingJob is a ResourceType enum value
- ResourceTypeTrainingJob = "TrainingJob"
- )
- const (
- // S3DataDistributionFullyReplicated is a S3DataDistribution enum value
- S3DataDistributionFullyReplicated = "FullyReplicated"
- // S3DataDistributionShardedByS3key is a S3DataDistribution enum value
- S3DataDistributionShardedByS3key = "ShardedByS3Key"
- )
- const (
- // S3DataTypeManifestFile is a S3DataType enum value
- S3DataTypeManifestFile = "ManifestFile"
- // S3DataTypeS3prefix is a S3DataType enum value
- S3DataTypeS3prefix = "S3Prefix"
- // S3DataTypeAugmentedManifestFile is a S3DataType enum value
- S3DataTypeAugmentedManifestFile = "AugmentedManifestFile"
- )
- const (
- // SearchSortOrderAscending is a SearchSortOrder enum value
- SearchSortOrderAscending = "Ascending"
- // SearchSortOrderDescending is a SearchSortOrder enum value
- SearchSortOrderDescending = "Descending"
- )
- const (
- // SecondaryStatusStarting is a SecondaryStatus enum value
- SecondaryStatusStarting = "Starting"
- // SecondaryStatusLaunchingMlinstances is a SecondaryStatus enum value
- SecondaryStatusLaunchingMlinstances = "LaunchingMLInstances"
- // SecondaryStatusPreparingTrainingStack is a SecondaryStatus enum value
- SecondaryStatusPreparingTrainingStack = "PreparingTrainingStack"
- // SecondaryStatusDownloading is a SecondaryStatus enum value
- SecondaryStatusDownloading = "Downloading"
- // SecondaryStatusDownloadingTrainingImage is a SecondaryStatus enum value
- SecondaryStatusDownloadingTrainingImage = "DownloadingTrainingImage"
- // SecondaryStatusTraining is a SecondaryStatus enum value
- SecondaryStatusTraining = "Training"
- // SecondaryStatusUploading is a SecondaryStatus enum value
- SecondaryStatusUploading = "Uploading"
- // SecondaryStatusStopping is a SecondaryStatus enum value
- SecondaryStatusStopping = "Stopping"
- // SecondaryStatusStopped is a SecondaryStatus enum value
- SecondaryStatusStopped = "Stopped"
- // SecondaryStatusMaxRuntimeExceeded is a SecondaryStatus enum value
- SecondaryStatusMaxRuntimeExceeded = "MaxRuntimeExceeded"
- // SecondaryStatusCompleted is a SecondaryStatus enum value
- SecondaryStatusCompleted = "Completed"
- // SecondaryStatusFailed is a SecondaryStatus enum value
- SecondaryStatusFailed = "Failed"
- )
- const (
- // SortByName is a SortBy enum value
- SortByName = "Name"
- // SortByCreationTime is a SortBy enum value
- SortByCreationTime = "CreationTime"
- // SortByStatus is a SortBy enum value
- SortByStatus = "Status"
- )
- const (
- // SortOrderAscending is a SortOrder enum value
- SortOrderAscending = "Ascending"
- // SortOrderDescending is a SortOrder enum value
- SortOrderDescending = "Descending"
- )
- const (
- // SplitTypeNone is a SplitType enum value
- SplitTypeNone = "None"
- // SplitTypeLine is a SplitType enum value
- SplitTypeLine = "Line"
- // SplitTypeRecordIo is a SplitType enum value
- SplitTypeRecordIo = "RecordIO"
- // SplitTypeTfrecord is a SplitType enum value
- SplitTypeTfrecord = "TFRecord"
- )
- const (
- // TargetDeviceMlM4 is a TargetDevice enum value
- TargetDeviceMlM4 = "ml_m4"
- // TargetDeviceMlM5 is a TargetDevice enum value
- TargetDeviceMlM5 = "ml_m5"
- // TargetDeviceMlC4 is a TargetDevice enum value
- TargetDeviceMlC4 = "ml_c4"
- // TargetDeviceMlC5 is a TargetDevice enum value
- TargetDeviceMlC5 = "ml_c5"
- // TargetDeviceMlP2 is a TargetDevice enum value
- TargetDeviceMlP2 = "ml_p2"
- // TargetDeviceMlP3 is a TargetDevice enum value
- TargetDeviceMlP3 = "ml_p3"
- // TargetDeviceJetsonTx1 is a TargetDevice enum value
- TargetDeviceJetsonTx1 = "jetson_tx1"
- // TargetDeviceJetsonTx2 is a TargetDevice enum value
- TargetDeviceJetsonTx2 = "jetson_tx2"
- // TargetDeviceRasp3b is a TargetDevice enum value
- TargetDeviceRasp3b = "rasp3b"
- // TargetDeviceDeeplens is a TargetDevice enum value
- TargetDeviceDeeplens = "deeplens"
- )
- const (
- // TrainingInputModePipe is a TrainingInputMode enum value
- TrainingInputModePipe = "Pipe"
- // TrainingInputModeFile is a TrainingInputMode enum value
- TrainingInputModeFile = "File"
- )
- const (
- // TrainingInstanceTypeMlM4Xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM4Xlarge = "ml.m4.xlarge"
- // TrainingInstanceTypeMlM42xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM42xlarge = "ml.m4.2xlarge"
- // TrainingInstanceTypeMlM44xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM44xlarge = "ml.m4.4xlarge"
- // TrainingInstanceTypeMlM410xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM410xlarge = "ml.m4.10xlarge"
- // TrainingInstanceTypeMlM416xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM416xlarge = "ml.m4.16xlarge"
- // TrainingInstanceTypeMlM5Large is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM5Large = "ml.m5.large"
- // TrainingInstanceTypeMlM5Xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM5Xlarge = "ml.m5.xlarge"
- // TrainingInstanceTypeMlM52xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM52xlarge = "ml.m5.2xlarge"
- // TrainingInstanceTypeMlM54xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM54xlarge = "ml.m5.4xlarge"
- // TrainingInstanceTypeMlM512xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM512xlarge = "ml.m5.12xlarge"
- // TrainingInstanceTypeMlM524xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlM524xlarge = "ml.m5.24xlarge"
- // TrainingInstanceTypeMlC4Xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC4Xlarge = "ml.c4.xlarge"
- // TrainingInstanceTypeMlC42xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC42xlarge = "ml.c4.2xlarge"
- // TrainingInstanceTypeMlC44xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC44xlarge = "ml.c4.4xlarge"
- // TrainingInstanceTypeMlC48xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC48xlarge = "ml.c4.8xlarge"
- // TrainingInstanceTypeMlP2Xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlP2Xlarge = "ml.p2.xlarge"
- // TrainingInstanceTypeMlP28xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlP28xlarge = "ml.p2.8xlarge"
- // TrainingInstanceTypeMlP216xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlP216xlarge = "ml.p2.16xlarge"
- // TrainingInstanceTypeMlP32xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlP32xlarge = "ml.p3.2xlarge"
- // TrainingInstanceTypeMlP38xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlP38xlarge = "ml.p3.8xlarge"
- // TrainingInstanceTypeMlP316xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlP316xlarge = "ml.p3.16xlarge"
- // TrainingInstanceTypeMlC5Xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC5Xlarge = "ml.c5.xlarge"
- // TrainingInstanceTypeMlC52xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC52xlarge = "ml.c5.2xlarge"
- // TrainingInstanceTypeMlC54xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC54xlarge = "ml.c5.4xlarge"
- // TrainingInstanceTypeMlC59xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC59xlarge = "ml.c5.9xlarge"
- // TrainingInstanceTypeMlC518xlarge is a TrainingInstanceType enum value
- TrainingInstanceTypeMlC518xlarge = "ml.c5.18xlarge"
- )
- const (
- // TrainingJobEarlyStoppingTypeOff is a TrainingJobEarlyStoppingType enum value
- TrainingJobEarlyStoppingTypeOff = "Off"
- // TrainingJobEarlyStoppingTypeAuto is a TrainingJobEarlyStoppingType enum value
- TrainingJobEarlyStoppingTypeAuto = "Auto"
- )
- const (
- // TrainingJobSortByOptionsName is a TrainingJobSortByOptions enum value
- TrainingJobSortByOptionsName = "Name"
- // TrainingJobSortByOptionsCreationTime is a TrainingJobSortByOptions enum value
- TrainingJobSortByOptionsCreationTime = "CreationTime"
- // TrainingJobSortByOptionsStatus is a TrainingJobSortByOptions enum value
- TrainingJobSortByOptionsStatus = "Status"
- // TrainingJobSortByOptionsFinalObjectiveMetricValue is a TrainingJobSortByOptions enum value
- TrainingJobSortByOptionsFinalObjectiveMetricValue = "FinalObjectiveMetricValue"
- )
- const (
- // TrainingJobStatusInProgress is a TrainingJobStatus enum value
- TrainingJobStatusInProgress = "InProgress"
- // TrainingJobStatusCompleted is a TrainingJobStatus enum value
- TrainingJobStatusCompleted = "Completed"
- // TrainingJobStatusFailed is a TrainingJobStatus enum value
- TrainingJobStatusFailed = "Failed"
- // TrainingJobStatusStopping is a TrainingJobStatus enum value
- TrainingJobStatusStopping = "Stopping"
- // TrainingJobStatusStopped is a TrainingJobStatus enum value
- TrainingJobStatusStopped = "Stopped"
- )
- const (
- // TransformInstanceTypeMlM4Xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM4Xlarge = "ml.m4.xlarge"
- // TransformInstanceTypeMlM42xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM42xlarge = "ml.m4.2xlarge"
- // TransformInstanceTypeMlM44xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM44xlarge = "ml.m4.4xlarge"
- // TransformInstanceTypeMlM410xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM410xlarge = "ml.m4.10xlarge"
- // TransformInstanceTypeMlM416xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM416xlarge = "ml.m4.16xlarge"
- // TransformInstanceTypeMlC4Xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC4Xlarge = "ml.c4.xlarge"
- // TransformInstanceTypeMlC42xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC42xlarge = "ml.c4.2xlarge"
- // TransformInstanceTypeMlC44xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC44xlarge = "ml.c4.4xlarge"
- // TransformInstanceTypeMlC48xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC48xlarge = "ml.c4.8xlarge"
- // TransformInstanceTypeMlP2Xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlP2Xlarge = "ml.p2.xlarge"
- // TransformInstanceTypeMlP28xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlP28xlarge = "ml.p2.8xlarge"
- // TransformInstanceTypeMlP216xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlP216xlarge = "ml.p2.16xlarge"
- // TransformInstanceTypeMlP32xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlP32xlarge = "ml.p3.2xlarge"
- // TransformInstanceTypeMlP38xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlP38xlarge = "ml.p3.8xlarge"
- // TransformInstanceTypeMlP316xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlP316xlarge = "ml.p3.16xlarge"
- // TransformInstanceTypeMlC5Xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC5Xlarge = "ml.c5.xlarge"
- // TransformInstanceTypeMlC52xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC52xlarge = "ml.c5.2xlarge"
- // TransformInstanceTypeMlC54xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC54xlarge = "ml.c5.4xlarge"
- // TransformInstanceTypeMlC59xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC59xlarge = "ml.c5.9xlarge"
- // TransformInstanceTypeMlC518xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlC518xlarge = "ml.c5.18xlarge"
- // TransformInstanceTypeMlM5Large is a TransformInstanceType enum value
- TransformInstanceTypeMlM5Large = "ml.m5.large"
- // TransformInstanceTypeMlM5Xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM5Xlarge = "ml.m5.xlarge"
- // TransformInstanceTypeMlM52xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM52xlarge = "ml.m5.2xlarge"
- // TransformInstanceTypeMlM54xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM54xlarge = "ml.m5.4xlarge"
- // TransformInstanceTypeMlM512xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM512xlarge = "ml.m5.12xlarge"
- // TransformInstanceTypeMlM524xlarge is a TransformInstanceType enum value
- TransformInstanceTypeMlM524xlarge = "ml.m5.24xlarge"
- )
- const (
- // TransformJobStatusInProgress is a TransformJobStatus enum value
- TransformJobStatusInProgress = "InProgress"
- // TransformJobStatusCompleted is a TransformJobStatus enum value
- TransformJobStatusCompleted = "Completed"
- // TransformJobStatusFailed is a TransformJobStatus enum value
- TransformJobStatusFailed = "Failed"
- // TransformJobStatusStopping is a TransformJobStatus enum value
- TransformJobStatusStopping = "Stopping"
- // TransformJobStatusStopped is a TransformJobStatus enum value
- TransformJobStatusStopped = "Stopped"
- )
|