api.go 914 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package sagemaker
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opAddTags = "AddTags"
  13. // AddTagsRequest generates a "aws/request.Request" representing the
  14. // client's request for the AddTags operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AddTags for more information on using the AddTags
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AddTagsRequest method.
  29. // req, resp := client.AddTagsRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags
  37. func (c *SageMaker) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
  38. op := &request.Operation{
  39. Name: opAddTags,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AddTagsInput{}
  45. }
  46. output = &AddTagsOutput{}
  47. req = c.newRequest(op, input, output)
  48. return
  49. }
  50. // AddTags API operation for Amazon SageMaker Service.
  51. //
  52. // Adds or overwrites one or more tags for the specified Amazon SageMaker resource.
  53. // You can add tags to notebook instances, training jobs, hyperparameter tuning
  54. // jobs, models, endpoint configurations, and endpoints.
  55. //
  56. // Each tag consists of a key and an optional value. Tag keys must be unique
  57. // per resource. For more information about tags, see For more information,
  58. // see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/).
  59. //
  60. // Tags that you add to a hyperparameter tuning job by calling this API are
  61. // also added to any training jobs that the hyperparameter tuning job launches
  62. // after you call this API, but not to training jobs that the hyperparameter
  63. // tuning job launched before you called this API. To make sure that the tags
  64. // associated with a hyperparameter tuning job are also added to all training
  65. // jobs that the hyperparameter tuning job launches, add the tags when you first
  66. // create the tuning job by specifying them in the Tags parameter of CreateHyperParameterTuningJob
  67. //
  68. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  69. // with awserr.Error's Code and Message methods to get detailed information about
  70. // the error.
  71. //
  72. // See the AWS API reference guide for Amazon SageMaker Service's
  73. // API operation AddTags for usage and error information.
  74. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags
  75. func (c *SageMaker) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
  76. req, out := c.AddTagsRequest(input)
  77. return out, req.Send()
  78. }
  79. // AddTagsWithContext is the same as AddTags with the addition of
  80. // the ability to pass a context and additional request options.
  81. //
  82. // See AddTags for details on how to use this API operation.
  83. //
  84. // The context must be non-nil and will be used for request cancellation. If
  85. // the context is nil a panic will occur. In the future the SDK may create
  86. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  87. // for more information on using Contexts.
  88. func (c *SageMaker) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) {
  89. req, out := c.AddTagsRequest(input)
  90. req.SetContext(ctx)
  91. req.ApplyOptions(opts...)
  92. return out, req.Send()
  93. }
  94. const opCreateAlgorithm = "CreateAlgorithm"
  95. // CreateAlgorithmRequest generates a "aws/request.Request" representing the
  96. // client's request for the CreateAlgorithm operation. The "output" return
  97. // value will be populated with the request's response once the request completes
  98. // successfully.
  99. //
  100. // Use "Send" method on the returned Request to send the API call to the service.
  101. // the "output" return value is not valid until after Send returns without error.
  102. //
  103. // See CreateAlgorithm for more information on using the CreateAlgorithm
  104. // API call, and error handling.
  105. //
  106. // This method is useful when you want to inject custom logic or configuration
  107. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  108. //
  109. //
  110. // // Example sending a request using the CreateAlgorithmRequest method.
  111. // req, resp := client.CreateAlgorithmRequest(params)
  112. //
  113. // err := req.Send()
  114. // if err == nil { // resp is now filled
  115. // fmt.Println(resp)
  116. // }
  117. //
  118. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm
  119. func (c *SageMaker) CreateAlgorithmRequest(input *CreateAlgorithmInput) (req *request.Request, output *CreateAlgorithmOutput) {
  120. op := &request.Operation{
  121. Name: opCreateAlgorithm,
  122. HTTPMethod: "POST",
  123. HTTPPath: "/",
  124. }
  125. if input == nil {
  126. input = &CreateAlgorithmInput{}
  127. }
  128. output = &CreateAlgorithmOutput{}
  129. req = c.newRequest(op, input, output)
  130. return
  131. }
  132. // CreateAlgorithm API operation for Amazon SageMaker Service.
  133. //
  134. // Create a machine learning algorithm that you can use in Amazon SageMaker
  135. // and list in the AWS Marketplace.
  136. //
  137. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  138. // with awserr.Error's Code and Message methods to get detailed information about
  139. // the error.
  140. //
  141. // See the AWS API reference guide for Amazon SageMaker Service's
  142. // API operation CreateAlgorithm for usage and error information.
  143. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm
  144. func (c *SageMaker) CreateAlgorithm(input *CreateAlgorithmInput) (*CreateAlgorithmOutput, error) {
  145. req, out := c.CreateAlgorithmRequest(input)
  146. return out, req.Send()
  147. }
  148. // CreateAlgorithmWithContext is the same as CreateAlgorithm with the addition of
  149. // the ability to pass a context and additional request options.
  150. //
  151. // See CreateAlgorithm for details on how to use this API operation.
  152. //
  153. // The context must be non-nil and will be used for request cancellation. If
  154. // the context is nil a panic will occur. In the future the SDK may create
  155. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  156. // for more information on using Contexts.
  157. func (c *SageMaker) CreateAlgorithmWithContext(ctx aws.Context, input *CreateAlgorithmInput, opts ...request.Option) (*CreateAlgorithmOutput, error) {
  158. req, out := c.CreateAlgorithmRequest(input)
  159. req.SetContext(ctx)
  160. req.ApplyOptions(opts...)
  161. return out, req.Send()
  162. }
  163. const opCreateCodeRepository = "CreateCodeRepository"
  164. // CreateCodeRepositoryRequest generates a "aws/request.Request" representing the
  165. // client's request for the CreateCodeRepository operation. The "output" return
  166. // value will be populated with the request's response once the request completes
  167. // successfully.
  168. //
  169. // Use "Send" method on the returned Request to send the API call to the service.
  170. // the "output" return value is not valid until after Send returns without error.
  171. //
  172. // See CreateCodeRepository for more information on using the CreateCodeRepository
  173. // API call, and error handling.
  174. //
  175. // This method is useful when you want to inject custom logic or configuration
  176. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  177. //
  178. //
  179. // // Example sending a request using the CreateCodeRepositoryRequest method.
  180. // req, resp := client.CreateCodeRepositoryRequest(params)
  181. //
  182. // err := req.Send()
  183. // if err == nil { // resp is now filled
  184. // fmt.Println(resp)
  185. // }
  186. //
  187. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository
  188. func (c *SageMaker) CreateCodeRepositoryRequest(input *CreateCodeRepositoryInput) (req *request.Request, output *CreateCodeRepositoryOutput) {
  189. op := &request.Operation{
  190. Name: opCreateCodeRepository,
  191. HTTPMethod: "POST",
  192. HTTPPath: "/",
  193. }
  194. if input == nil {
  195. input = &CreateCodeRepositoryInput{}
  196. }
  197. output = &CreateCodeRepositoryOutput{}
  198. req = c.newRequest(op, input, output)
  199. return
  200. }
  201. // CreateCodeRepository API operation for Amazon SageMaker Service.
  202. //
  203. // Creates a Git repository as a resource in your Amazon SageMaker account.
  204. // You can associate the repository with notebook instances so that you can
  205. // use Git source control for the notebooks you create. The Git repository is
  206. // a resource in your Amazon SageMaker account, so it can be associated with
  207. // more than one notebook instance, and it persists independently from the lifecycle
  208. // of any notebook instances it is associated with.
  209. //
  210. // The repository can be hosted either in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  211. // or in any other Git repository.
  212. //
  213. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  214. // with awserr.Error's Code and Message methods to get detailed information about
  215. // the error.
  216. //
  217. // See the AWS API reference guide for Amazon SageMaker Service's
  218. // API operation CreateCodeRepository for usage and error information.
  219. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository
  220. func (c *SageMaker) CreateCodeRepository(input *CreateCodeRepositoryInput) (*CreateCodeRepositoryOutput, error) {
  221. req, out := c.CreateCodeRepositoryRequest(input)
  222. return out, req.Send()
  223. }
  224. // CreateCodeRepositoryWithContext is the same as CreateCodeRepository with the addition of
  225. // the ability to pass a context and additional request options.
  226. //
  227. // See CreateCodeRepository for details on how to use this API operation.
  228. //
  229. // The context must be non-nil and will be used for request cancellation. If
  230. // the context is nil a panic will occur. In the future the SDK may create
  231. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  232. // for more information on using Contexts.
  233. func (c *SageMaker) CreateCodeRepositoryWithContext(ctx aws.Context, input *CreateCodeRepositoryInput, opts ...request.Option) (*CreateCodeRepositoryOutput, error) {
  234. req, out := c.CreateCodeRepositoryRequest(input)
  235. req.SetContext(ctx)
  236. req.ApplyOptions(opts...)
  237. return out, req.Send()
  238. }
  239. const opCreateCompilationJob = "CreateCompilationJob"
  240. // CreateCompilationJobRequest generates a "aws/request.Request" representing the
  241. // client's request for the CreateCompilationJob operation. The "output" return
  242. // value will be populated with the request's response once the request completes
  243. // successfully.
  244. //
  245. // Use "Send" method on the returned Request to send the API call to the service.
  246. // the "output" return value is not valid until after Send returns without error.
  247. //
  248. // See CreateCompilationJob for more information on using the CreateCompilationJob
  249. // API call, and error handling.
  250. //
  251. // This method is useful when you want to inject custom logic or configuration
  252. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  253. //
  254. //
  255. // // Example sending a request using the CreateCompilationJobRequest method.
  256. // req, resp := client.CreateCompilationJobRequest(params)
  257. //
  258. // err := req.Send()
  259. // if err == nil { // resp is now filled
  260. // fmt.Println(resp)
  261. // }
  262. //
  263. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob
  264. func (c *SageMaker) CreateCompilationJobRequest(input *CreateCompilationJobInput) (req *request.Request, output *CreateCompilationJobOutput) {
  265. op := &request.Operation{
  266. Name: opCreateCompilationJob,
  267. HTTPMethod: "POST",
  268. HTTPPath: "/",
  269. }
  270. if input == nil {
  271. input = &CreateCompilationJobInput{}
  272. }
  273. output = &CreateCompilationJobOutput{}
  274. req = c.newRequest(op, input, output)
  275. return
  276. }
  277. // CreateCompilationJob API operation for Amazon SageMaker Service.
  278. //
  279. // Starts a model compilation job. After the model has been compiled, Amazon
  280. // SageMaker saves the resulting model artifacts to an Amazon Simple Storage
  281. // Service (Amazon S3) bucket that you specify.
  282. //
  283. // If you choose to host your model using Amazon SageMaker hosting services,
  284. // you can use the resulting model artifacts as part of the model. You can also
  285. // use the artifacts with AWS IoT Greengrass. In that case, deploy them as an
  286. // ML resource.
  287. //
  288. // In the request body, you provide the following:
  289. //
  290. // * A name for the compilation job
  291. //
  292. // * Information about the input model artifacts
  293. //
  294. // * The output location for the compiled model and the device (target) that
  295. // the model runs on
  296. //
  297. // * The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker
  298. // assumes to perform the model compilation job
  299. //
  300. // You can also provide a Tag to track the model compilation job's resource
  301. // use and costs. The response body contains the CompilationJobArn for the compiled
  302. // job.
  303. //
  304. // To stop a model compilation job, use StopCompilationJob. To get information
  305. // about a particular model compilation job, use DescribeCompilationJob. To
  306. // get information about multiple model compilation jobs, use ListCompilationJobs.
  307. //
  308. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  309. // with awserr.Error's Code and Message methods to get detailed information about
  310. // the error.
  311. //
  312. // See the AWS API reference guide for Amazon SageMaker Service's
  313. // API operation CreateCompilationJob for usage and error information.
  314. //
  315. // Returned Error Codes:
  316. // * ErrCodeResourceInUse "ResourceInUse"
  317. // Resource being accessed is in use.
  318. //
  319. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  320. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  321. // have too many training jobs created.
  322. //
  323. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob
  324. func (c *SageMaker) CreateCompilationJob(input *CreateCompilationJobInput) (*CreateCompilationJobOutput, error) {
  325. req, out := c.CreateCompilationJobRequest(input)
  326. return out, req.Send()
  327. }
  328. // CreateCompilationJobWithContext is the same as CreateCompilationJob with the addition of
  329. // the ability to pass a context and additional request options.
  330. //
  331. // See CreateCompilationJob for details on how to use this API operation.
  332. //
  333. // The context must be non-nil and will be used for request cancellation. If
  334. // the context is nil a panic will occur. In the future the SDK may create
  335. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  336. // for more information on using Contexts.
  337. func (c *SageMaker) CreateCompilationJobWithContext(ctx aws.Context, input *CreateCompilationJobInput, opts ...request.Option) (*CreateCompilationJobOutput, error) {
  338. req, out := c.CreateCompilationJobRequest(input)
  339. req.SetContext(ctx)
  340. req.ApplyOptions(opts...)
  341. return out, req.Send()
  342. }
  343. const opCreateEndpoint = "CreateEndpoint"
  344. // CreateEndpointRequest generates a "aws/request.Request" representing the
  345. // client's request for the CreateEndpoint operation. The "output" return
  346. // value will be populated with the request's response once the request completes
  347. // successfully.
  348. //
  349. // Use "Send" method on the returned Request to send the API call to the service.
  350. // the "output" return value is not valid until after Send returns without error.
  351. //
  352. // See CreateEndpoint for more information on using the CreateEndpoint
  353. // API call, and error handling.
  354. //
  355. // This method is useful when you want to inject custom logic or configuration
  356. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  357. //
  358. //
  359. // // Example sending a request using the CreateEndpointRequest method.
  360. // req, resp := client.CreateEndpointRequest(params)
  361. //
  362. // err := req.Send()
  363. // if err == nil { // resp is now filled
  364. // fmt.Println(resp)
  365. // }
  366. //
  367. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint
  368. func (c *SageMaker) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) {
  369. op := &request.Operation{
  370. Name: opCreateEndpoint,
  371. HTTPMethod: "POST",
  372. HTTPPath: "/",
  373. }
  374. if input == nil {
  375. input = &CreateEndpointInput{}
  376. }
  377. output = &CreateEndpointOutput{}
  378. req = c.newRequest(op, input, output)
  379. return
  380. }
  381. // CreateEndpoint API operation for Amazon SageMaker Service.
  382. //
  383. // Creates an endpoint using the endpoint configuration specified in the request.
  384. // Amazon SageMaker uses the endpoint to provision resources and deploy models.
  385. // You create the endpoint configuration with the CreateEndpointConfig (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html)
  386. // API.
  387. //
  388. // Use this API only for hosting models using Amazon SageMaker hosting services.
  389. //
  390. // The endpoint name must be unique within an AWS Region in your AWS account.
  391. //
  392. // When it receives the request, Amazon SageMaker creates the endpoint, launches
  393. // the resources (ML compute instances), and deploys the model(s) on them.
  394. //
  395. // When Amazon SageMaker receives the request, it sets the endpoint status to
  396. // Creating. After it creates the endpoint, it sets the status to InService.
  397. // Amazon SageMaker can then process incoming requests for inferences. To check
  398. // the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
  399. // API.
  400. //
  401. // For an example, see Exercise 1: Using the K-Means Algorithm Provided by Amazon
  402. // SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ex1.html).
  403. //
  404. // If any of the models hosted at this endpoint get model data from an Amazon
  405. // S3 location, Amazon SageMaker uses AWS Security Token Service to download
  406. // model artifacts from the S3 path you provided. AWS STS is activated in your
  407. // IAM user account by default. If you previously deactivated AWS STS for a
  408. // region, you need to reactivate AWS STS for that region. For more information,
  409. // see Activating and Deactivating AWS STS i an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
  410. // in the AWS Identity and Access Management User Guide.
  411. //
  412. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  413. // with awserr.Error's Code and Message methods to get detailed information about
  414. // the error.
  415. //
  416. // See the AWS API reference guide for Amazon SageMaker Service's
  417. // API operation CreateEndpoint for usage and error information.
  418. //
  419. // Returned Error Codes:
  420. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  421. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  422. // have too many training jobs created.
  423. //
  424. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint
  425. func (c *SageMaker) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) {
  426. req, out := c.CreateEndpointRequest(input)
  427. return out, req.Send()
  428. }
  429. // CreateEndpointWithContext is the same as CreateEndpoint with the addition of
  430. // the ability to pass a context and additional request options.
  431. //
  432. // See CreateEndpoint for details on how to use this API operation.
  433. //
  434. // The context must be non-nil and will be used for request cancellation. If
  435. // the context is nil a panic will occur. In the future the SDK may create
  436. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  437. // for more information on using Contexts.
  438. func (c *SageMaker) CreateEndpointWithContext(ctx aws.Context, input *CreateEndpointInput, opts ...request.Option) (*CreateEndpointOutput, error) {
  439. req, out := c.CreateEndpointRequest(input)
  440. req.SetContext(ctx)
  441. req.ApplyOptions(opts...)
  442. return out, req.Send()
  443. }
  444. const opCreateEndpointConfig = "CreateEndpointConfig"
  445. // CreateEndpointConfigRequest generates a "aws/request.Request" representing the
  446. // client's request for the CreateEndpointConfig operation. The "output" return
  447. // value will be populated with the request's response once the request completes
  448. // successfully.
  449. //
  450. // Use "Send" method on the returned Request to send the API call to the service.
  451. // the "output" return value is not valid until after Send returns without error.
  452. //
  453. // See CreateEndpointConfig for more information on using the CreateEndpointConfig
  454. // API call, and error handling.
  455. //
  456. // This method is useful when you want to inject custom logic or configuration
  457. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  458. //
  459. //
  460. // // Example sending a request using the CreateEndpointConfigRequest method.
  461. // req, resp := client.CreateEndpointConfigRequest(params)
  462. //
  463. // err := req.Send()
  464. // if err == nil { // resp is now filled
  465. // fmt.Println(resp)
  466. // }
  467. //
  468. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig
  469. func (c *SageMaker) CreateEndpointConfigRequest(input *CreateEndpointConfigInput) (req *request.Request, output *CreateEndpointConfigOutput) {
  470. op := &request.Operation{
  471. Name: opCreateEndpointConfig,
  472. HTTPMethod: "POST",
  473. HTTPPath: "/",
  474. }
  475. if input == nil {
  476. input = &CreateEndpointConfigInput{}
  477. }
  478. output = &CreateEndpointConfigOutput{}
  479. req = c.newRequest(op, input, output)
  480. return
  481. }
  482. // CreateEndpointConfig API operation for Amazon SageMaker Service.
  483. //
  484. // Creates an endpoint configuration that Amazon SageMaker hosting services
  485. // uses to deploy models. In the configuration, you identify one or more models,
  486. // created using the CreateModel API, to deploy and the resources that you want
  487. // Amazon SageMaker to provision. Then you call the CreateEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html)
  488. // API.
  489. //
  490. // Use this API only if you want to use Amazon SageMaker hosting services to
  491. // deploy models into production.
  492. //
  493. // In the request, you define one or more ProductionVariants, each of which
  494. // identifies a model. Each ProductionVariant parameter also describes the resources
  495. // that you want Amazon SageMaker to provision. This includes the number and
  496. // type of ML compute instances to deploy.
  497. //
  498. // If you are hosting multiple models, you also assign a VariantWeight to specify
  499. // how much traffic you want to allocate to each model. For example, suppose
  500. // that you want to host two models, A and B, and you assign traffic weight
  501. // 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds
  502. // of the traffic to Model A, and one-third to model B.
  503. //
  504. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  505. // with awserr.Error's Code and Message methods to get detailed information about
  506. // the error.
  507. //
  508. // See the AWS API reference guide for Amazon SageMaker Service's
  509. // API operation CreateEndpointConfig for usage and error information.
  510. //
  511. // Returned Error Codes:
  512. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  513. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  514. // have too many training jobs created.
  515. //
  516. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig
  517. func (c *SageMaker) CreateEndpointConfig(input *CreateEndpointConfigInput) (*CreateEndpointConfigOutput, error) {
  518. req, out := c.CreateEndpointConfigRequest(input)
  519. return out, req.Send()
  520. }
  521. // CreateEndpointConfigWithContext is the same as CreateEndpointConfig with the addition of
  522. // the ability to pass a context and additional request options.
  523. //
  524. // See CreateEndpointConfig for details on how to use this API operation.
  525. //
  526. // The context must be non-nil and will be used for request cancellation. If
  527. // the context is nil a panic will occur. In the future the SDK may create
  528. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  529. // for more information on using Contexts.
  530. func (c *SageMaker) CreateEndpointConfigWithContext(ctx aws.Context, input *CreateEndpointConfigInput, opts ...request.Option) (*CreateEndpointConfigOutput, error) {
  531. req, out := c.CreateEndpointConfigRequest(input)
  532. req.SetContext(ctx)
  533. req.ApplyOptions(opts...)
  534. return out, req.Send()
  535. }
  536. const opCreateHyperParameterTuningJob = "CreateHyperParameterTuningJob"
  537. // CreateHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
  538. // client's request for the CreateHyperParameterTuningJob operation. The "output" return
  539. // value will be populated with the request's response once the request completes
  540. // successfully.
  541. //
  542. // Use "Send" method on the returned Request to send the API call to the service.
  543. // the "output" return value is not valid until after Send returns without error.
  544. //
  545. // See CreateHyperParameterTuningJob for more information on using the CreateHyperParameterTuningJob
  546. // API call, and error handling.
  547. //
  548. // This method is useful when you want to inject custom logic or configuration
  549. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  550. //
  551. //
  552. // // Example sending a request using the CreateHyperParameterTuningJobRequest method.
  553. // req, resp := client.CreateHyperParameterTuningJobRequest(params)
  554. //
  555. // err := req.Send()
  556. // if err == nil { // resp is now filled
  557. // fmt.Println(resp)
  558. // }
  559. //
  560. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob
  561. func (c *SageMaker) CreateHyperParameterTuningJobRequest(input *CreateHyperParameterTuningJobInput) (req *request.Request, output *CreateHyperParameterTuningJobOutput) {
  562. op := &request.Operation{
  563. Name: opCreateHyperParameterTuningJob,
  564. HTTPMethod: "POST",
  565. HTTPPath: "/",
  566. }
  567. if input == nil {
  568. input = &CreateHyperParameterTuningJobInput{}
  569. }
  570. output = &CreateHyperParameterTuningJobOutput{}
  571. req = c.newRequest(op, input, output)
  572. return
  573. }
  574. // CreateHyperParameterTuningJob API operation for Amazon SageMaker Service.
  575. //
  576. // Starts a hyperparameter tuning job. A hyperparameter tuning job finds the
  577. // best version of a model by running many training jobs on your dataset using
  578. // the algorithm you choose and values for hyperparameters within ranges that
  579. // you specify. It then chooses the hyperparameter values that result in a model
  580. // that performs the best, as measured by an objective metric that you choose.
  581. //
  582. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  583. // with awserr.Error's Code and Message methods to get detailed information about
  584. // the error.
  585. //
  586. // See the AWS API reference guide for Amazon SageMaker Service's
  587. // API operation CreateHyperParameterTuningJob for usage and error information.
  588. //
  589. // Returned Error Codes:
  590. // * ErrCodeResourceInUse "ResourceInUse"
  591. // Resource being accessed is in use.
  592. //
  593. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  594. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  595. // have too many training jobs created.
  596. //
  597. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob
  598. func (c *SageMaker) CreateHyperParameterTuningJob(input *CreateHyperParameterTuningJobInput) (*CreateHyperParameterTuningJobOutput, error) {
  599. req, out := c.CreateHyperParameterTuningJobRequest(input)
  600. return out, req.Send()
  601. }
  602. // CreateHyperParameterTuningJobWithContext is the same as CreateHyperParameterTuningJob with the addition of
  603. // the ability to pass a context and additional request options.
  604. //
  605. // See CreateHyperParameterTuningJob for details on how to use this API operation.
  606. //
  607. // The context must be non-nil and will be used for request cancellation. If
  608. // the context is nil a panic will occur. In the future the SDK may create
  609. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  610. // for more information on using Contexts.
  611. func (c *SageMaker) CreateHyperParameterTuningJobWithContext(ctx aws.Context, input *CreateHyperParameterTuningJobInput, opts ...request.Option) (*CreateHyperParameterTuningJobOutput, error) {
  612. req, out := c.CreateHyperParameterTuningJobRequest(input)
  613. req.SetContext(ctx)
  614. req.ApplyOptions(opts...)
  615. return out, req.Send()
  616. }
  617. const opCreateLabelingJob = "CreateLabelingJob"
  618. // CreateLabelingJobRequest generates a "aws/request.Request" representing the
  619. // client's request for the CreateLabelingJob operation. The "output" return
  620. // value will be populated with the request's response once the request completes
  621. // successfully.
  622. //
  623. // Use "Send" method on the returned Request to send the API call to the service.
  624. // the "output" return value is not valid until after Send returns without error.
  625. //
  626. // See CreateLabelingJob for more information on using the CreateLabelingJob
  627. // API call, and error handling.
  628. //
  629. // This method is useful when you want to inject custom logic or configuration
  630. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  631. //
  632. //
  633. // // Example sending a request using the CreateLabelingJobRequest method.
  634. // req, resp := client.CreateLabelingJobRequest(params)
  635. //
  636. // err := req.Send()
  637. // if err == nil { // resp is now filled
  638. // fmt.Println(resp)
  639. // }
  640. //
  641. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob
  642. func (c *SageMaker) CreateLabelingJobRequest(input *CreateLabelingJobInput) (req *request.Request, output *CreateLabelingJobOutput) {
  643. op := &request.Operation{
  644. Name: opCreateLabelingJob,
  645. HTTPMethod: "POST",
  646. HTTPPath: "/",
  647. }
  648. if input == nil {
  649. input = &CreateLabelingJobInput{}
  650. }
  651. output = &CreateLabelingJobOutput{}
  652. req = c.newRequest(op, input, output)
  653. return
  654. }
  655. // CreateLabelingJob API operation for Amazon SageMaker Service.
  656. //
  657. // Creates a job that uses workers to label the data objects in your input dataset.
  658. // You can use the labeled data to train machine learning models.
  659. //
  660. // You can select your workforce from one of three providers:
  661. //
  662. // * A private workforce that you create. It can include employees, contractors,
  663. // and outside experts. Use a private workforce when want the data to stay
  664. // within your organization or when a specific set of skills is required.
  665. //
  666. // * One or more vendors that you select from the AWS Marketplace. Vendors
  667. // provide expertise in specific areas.
  668. //
  669. // * The Amazon Mechanical Turk workforce. This is the largest workforce,
  670. // but it should only be used for public data or data that has been stripped
  671. // of any personally identifiable information.
  672. //
  673. // You can also use automated data labeling to reduce the number of data objects
  674. // that need to be labeled by a human. Automated data labeling uses active learning
  675. // to determine if a data object can be labeled by machine or if it needs to
  676. // be sent to a human worker. For more information, see Using Automated Data
  677. // Labeling (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-automated-labeling.html).
  678. //
  679. // The data objects to be labeled are contained in an Amazon S3 bucket. You
  680. // create a manifest file that describes the location of each object. For more
  681. // information, see Using Input and Output Data (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-data.html).
  682. //
  683. // The output can be used as the manifest file for another labeling job or as
  684. // training data for your machine learning models.
  685. //
  686. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  687. // with awserr.Error's Code and Message methods to get detailed information about
  688. // the error.
  689. //
  690. // See the AWS API reference guide for Amazon SageMaker Service's
  691. // API operation CreateLabelingJob for usage and error information.
  692. //
  693. // Returned Error Codes:
  694. // * ErrCodeResourceInUse "ResourceInUse"
  695. // Resource being accessed is in use.
  696. //
  697. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  698. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  699. // have too many training jobs created.
  700. //
  701. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob
  702. func (c *SageMaker) CreateLabelingJob(input *CreateLabelingJobInput) (*CreateLabelingJobOutput, error) {
  703. req, out := c.CreateLabelingJobRequest(input)
  704. return out, req.Send()
  705. }
  706. // CreateLabelingJobWithContext is the same as CreateLabelingJob with the addition of
  707. // the ability to pass a context and additional request options.
  708. //
  709. // See CreateLabelingJob for details on how to use this API operation.
  710. //
  711. // The context must be non-nil and will be used for request cancellation. If
  712. // the context is nil a panic will occur. In the future the SDK may create
  713. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  714. // for more information on using Contexts.
  715. func (c *SageMaker) CreateLabelingJobWithContext(ctx aws.Context, input *CreateLabelingJobInput, opts ...request.Option) (*CreateLabelingJobOutput, error) {
  716. req, out := c.CreateLabelingJobRequest(input)
  717. req.SetContext(ctx)
  718. req.ApplyOptions(opts...)
  719. return out, req.Send()
  720. }
  721. const opCreateModel = "CreateModel"
  722. // CreateModelRequest generates a "aws/request.Request" representing the
  723. // client's request for the CreateModel operation. The "output" return
  724. // value will be populated with the request's response once the request completes
  725. // successfully.
  726. //
  727. // Use "Send" method on the returned Request to send the API call to the service.
  728. // the "output" return value is not valid until after Send returns without error.
  729. //
  730. // See CreateModel for more information on using the CreateModel
  731. // API call, and error handling.
  732. //
  733. // This method is useful when you want to inject custom logic or configuration
  734. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  735. //
  736. //
  737. // // Example sending a request using the CreateModelRequest method.
  738. // req, resp := client.CreateModelRequest(params)
  739. //
  740. // err := req.Send()
  741. // if err == nil { // resp is now filled
  742. // fmt.Println(resp)
  743. // }
  744. //
  745. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel
  746. func (c *SageMaker) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *CreateModelOutput) {
  747. op := &request.Operation{
  748. Name: opCreateModel,
  749. HTTPMethod: "POST",
  750. HTTPPath: "/",
  751. }
  752. if input == nil {
  753. input = &CreateModelInput{}
  754. }
  755. output = &CreateModelOutput{}
  756. req = c.newRequest(op, input, output)
  757. return
  758. }
  759. // CreateModel API operation for Amazon SageMaker Service.
  760. //
  761. // Creates a model in Amazon SageMaker. In the request, you name the model and
  762. // describe a primary container. For the primary container, you specify the
  763. // docker image containing inference code, artifacts (from prior training),
  764. // and custom environment map that the inference code uses when you deploy the
  765. // model for predictions.
  766. //
  767. // Use this API to create a model if you want to use Amazon SageMaker hosting
  768. // services or run a batch transform job.
  769. //
  770. // To host your model, you create an endpoint configuration with the CreateEndpointConfig
  771. // API, and then create an endpoint with the CreateEndpoint API. Amazon SageMaker
  772. // then deploys all of the containers that you defined for the model in the
  773. // hosting environment.
  774. //
  775. // To run a batch transform using your model, you start a job with the CreateTransformJob
  776. // API. Amazon SageMaker uses your model and your dataset to get inferences
  777. // which are then saved to a specified S3 location.
  778. //
  779. // In the CreateModel request, you must define a container with the PrimaryContainer
  780. // parameter.
  781. //
  782. // In the request, you also provide an IAM role that Amazon SageMaker can assume
  783. // to access model artifacts and docker image for deployment on ML compute hosting
  784. // instances or for batch transform jobs. In addition, you also use the IAM
  785. // role to manage permissions the inference code needs. For example, if the
  786. // inference code access any other AWS resources, you grant necessary permissions
  787. // via this role.
  788. //
  789. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  790. // with awserr.Error's Code and Message methods to get detailed information about
  791. // the error.
  792. //
  793. // See the AWS API reference guide for Amazon SageMaker Service's
  794. // API operation CreateModel for usage and error information.
  795. //
  796. // Returned Error Codes:
  797. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  798. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  799. // have too many training jobs created.
  800. //
  801. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel
  802. func (c *SageMaker) CreateModel(input *CreateModelInput) (*CreateModelOutput, error) {
  803. req, out := c.CreateModelRequest(input)
  804. return out, req.Send()
  805. }
  806. // CreateModelWithContext is the same as CreateModel with the addition of
  807. // the ability to pass a context and additional request options.
  808. //
  809. // See CreateModel for details on how to use this API operation.
  810. //
  811. // The context must be non-nil and will be used for request cancellation. If
  812. // the context is nil a panic will occur. In the future the SDK may create
  813. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  814. // for more information on using Contexts.
  815. func (c *SageMaker) CreateModelWithContext(ctx aws.Context, input *CreateModelInput, opts ...request.Option) (*CreateModelOutput, error) {
  816. req, out := c.CreateModelRequest(input)
  817. req.SetContext(ctx)
  818. req.ApplyOptions(opts...)
  819. return out, req.Send()
  820. }
  821. const opCreateModelPackage = "CreateModelPackage"
  822. // CreateModelPackageRequest generates a "aws/request.Request" representing the
  823. // client's request for the CreateModelPackage operation. The "output" return
  824. // value will be populated with the request's response once the request completes
  825. // successfully.
  826. //
  827. // Use "Send" method on the returned Request to send the API call to the service.
  828. // the "output" return value is not valid until after Send returns without error.
  829. //
  830. // See CreateModelPackage for more information on using the CreateModelPackage
  831. // API call, and error handling.
  832. //
  833. // This method is useful when you want to inject custom logic or configuration
  834. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  835. //
  836. //
  837. // // Example sending a request using the CreateModelPackageRequest method.
  838. // req, resp := client.CreateModelPackageRequest(params)
  839. //
  840. // err := req.Send()
  841. // if err == nil { // resp is now filled
  842. // fmt.Println(resp)
  843. // }
  844. //
  845. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage
  846. func (c *SageMaker) CreateModelPackageRequest(input *CreateModelPackageInput) (req *request.Request, output *CreateModelPackageOutput) {
  847. op := &request.Operation{
  848. Name: opCreateModelPackage,
  849. HTTPMethod: "POST",
  850. HTTPPath: "/",
  851. }
  852. if input == nil {
  853. input = &CreateModelPackageInput{}
  854. }
  855. output = &CreateModelPackageOutput{}
  856. req = c.newRequest(op, input, output)
  857. return
  858. }
  859. // CreateModelPackage API operation for Amazon SageMaker Service.
  860. //
  861. // Creates a model package that you can use to create Amazon SageMaker models
  862. // or list on AWS Marketplace. Buyers can subscribe to model packages listed
  863. // on AWS Marketplace to create models in Amazon SageMaker.
  864. //
  865. // To create a model package by specifying a Docker container that contains
  866. // your inference code and the Amazon S3 location of your model artifacts, provide
  867. // values for InferenceSpecification. To create a model from an algorithm resource
  868. // that you created or subscribed to in AWS Marketplace, provide a value for
  869. // SourceAlgorithmSpecification.
  870. //
  871. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  872. // with awserr.Error's Code and Message methods to get detailed information about
  873. // the error.
  874. //
  875. // See the AWS API reference guide for Amazon SageMaker Service's
  876. // API operation CreateModelPackage for usage and error information.
  877. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage
  878. func (c *SageMaker) CreateModelPackage(input *CreateModelPackageInput) (*CreateModelPackageOutput, error) {
  879. req, out := c.CreateModelPackageRequest(input)
  880. return out, req.Send()
  881. }
  882. // CreateModelPackageWithContext is the same as CreateModelPackage with the addition of
  883. // the ability to pass a context and additional request options.
  884. //
  885. // See CreateModelPackage for details on how to use this API operation.
  886. //
  887. // The context must be non-nil and will be used for request cancellation. If
  888. // the context is nil a panic will occur. In the future the SDK may create
  889. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  890. // for more information on using Contexts.
  891. func (c *SageMaker) CreateModelPackageWithContext(ctx aws.Context, input *CreateModelPackageInput, opts ...request.Option) (*CreateModelPackageOutput, error) {
  892. req, out := c.CreateModelPackageRequest(input)
  893. req.SetContext(ctx)
  894. req.ApplyOptions(opts...)
  895. return out, req.Send()
  896. }
  897. const opCreateNotebookInstance = "CreateNotebookInstance"
  898. // CreateNotebookInstanceRequest generates a "aws/request.Request" representing the
  899. // client's request for the CreateNotebookInstance operation. The "output" return
  900. // value will be populated with the request's response once the request completes
  901. // successfully.
  902. //
  903. // Use "Send" method on the returned Request to send the API call to the service.
  904. // the "output" return value is not valid until after Send returns without error.
  905. //
  906. // See CreateNotebookInstance for more information on using the CreateNotebookInstance
  907. // API call, and error handling.
  908. //
  909. // This method is useful when you want to inject custom logic or configuration
  910. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  911. //
  912. //
  913. // // Example sending a request using the CreateNotebookInstanceRequest method.
  914. // req, resp := client.CreateNotebookInstanceRequest(params)
  915. //
  916. // err := req.Send()
  917. // if err == nil { // resp is now filled
  918. // fmt.Println(resp)
  919. // }
  920. //
  921. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance
  922. func (c *SageMaker) CreateNotebookInstanceRequest(input *CreateNotebookInstanceInput) (req *request.Request, output *CreateNotebookInstanceOutput) {
  923. op := &request.Operation{
  924. Name: opCreateNotebookInstance,
  925. HTTPMethod: "POST",
  926. HTTPPath: "/",
  927. }
  928. if input == nil {
  929. input = &CreateNotebookInstanceInput{}
  930. }
  931. output = &CreateNotebookInstanceOutput{}
  932. req = c.newRequest(op, input, output)
  933. return
  934. }
  935. // CreateNotebookInstance API operation for Amazon SageMaker Service.
  936. //
  937. // Creates an Amazon SageMaker notebook instance. A notebook instance is a machine
  938. // learning (ML) compute instance running on a Jupyter notebook.
  939. //
  940. // In a CreateNotebookInstance request, specify the type of ML compute instance
  941. // that you want to run. Amazon SageMaker launches the instance, installs common
  942. // libraries that you can use to explore datasets for model training, and attaches
  943. // an ML storage volume to the notebook instance.
  944. //
  945. // Amazon SageMaker also provides a set of example notebooks. Each notebook
  946. // demonstrates how to use Amazon SageMaker with a specific algorithm or with
  947. // a machine learning framework.
  948. //
  949. // After receiving the request, Amazon SageMaker does the following:
  950. //
  951. // Creates a network interface in the Amazon SageMaker VPC.
  952. //
  953. // (Option) If you specified SubnetId, Amazon SageMaker creates a network interface
  954. // in your own VPC, which is inferred from the subnet ID that you provide in
  955. // the input. When creating this network interface, Amazon SageMaker attaches
  956. // the security group that you specified in the request to the network interface
  957. // that it creates in your VPC.
  958. //
  959. // Launches an EC2 instance of the type specified in the request in the Amazon
  960. // SageMaker VPC. If you specified SubnetId of your VPC, Amazon SageMaker specifies
  961. // both network interfaces when launching this instance. This enables inbound
  962. // traffic from your own VPC to the notebook instance, assuming that the security
  963. // groups allow it.
  964. //
  965. // After creating the notebook instance, Amazon SageMaker returns its Amazon
  966. // Resource Name (ARN).
  967. //
  968. // After Amazon SageMaker creates the notebook instance, you can connect to
  969. // the Jupyter server and work in Jupyter notebooks. For example, you can write
  970. // code to explore a dataset that you can use for model training, train a model,
  971. // host models by creating Amazon SageMaker endpoints, and validate hosted models.
  972. //
  973. // For more information, see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html).
  974. //
  975. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  976. // with awserr.Error's Code and Message methods to get detailed information about
  977. // the error.
  978. //
  979. // See the AWS API reference guide for Amazon SageMaker Service's
  980. // API operation CreateNotebookInstance for usage and error information.
  981. //
  982. // Returned Error Codes:
  983. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  984. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  985. // have too many training jobs created.
  986. //
  987. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance
  988. func (c *SageMaker) CreateNotebookInstance(input *CreateNotebookInstanceInput) (*CreateNotebookInstanceOutput, error) {
  989. req, out := c.CreateNotebookInstanceRequest(input)
  990. return out, req.Send()
  991. }
  992. // CreateNotebookInstanceWithContext is the same as CreateNotebookInstance with the addition of
  993. // the ability to pass a context and additional request options.
  994. //
  995. // See CreateNotebookInstance for details on how to use this API operation.
  996. //
  997. // The context must be non-nil and will be used for request cancellation. If
  998. // the context is nil a panic will occur. In the future the SDK may create
  999. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1000. // for more information on using Contexts.
  1001. func (c *SageMaker) CreateNotebookInstanceWithContext(ctx aws.Context, input *CreateNotebookInstanceInput, opts ...request.Option) (*CreateNotebookInstanceOutput, error) {
  1002. req, out := c.CreateNotebookInstanceRequest(input)
  1003. req.SetContext(ctx)
  1004. req.ApplyOptions(opts...)
  1005. return out, req.Send()
  1006. }
  1007. const opCreateNotebookInstanceLifecycleConfig = "CreateNotebookInstanceLifecycleConfig"
  1008. // CreateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
  1009. // client's request for the CreateNotebookInstanceLifecycleConfig operation. The "output" return
  1010. // value will be populated with the request's response once the request completes
  1011. // successfully.
  1012. //
  1013. // Use "Send" method on the returned Request to send the API call to the service.
  1014. // the "output" return value is not valid until after Send returns without error.
  1015. //
  1016. // See CreateNotebookInstanceLifecycleConfig for more information on using the CreateNotebookInstanceLifecycleConfig
  1017. // API call, and error handling.
  1018. //
  1019. // This method is useful when you want to inject custom logic or configuration
  1020. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1021. //
  1022. //
  1023. // // Example sending a request using the CreateNotebookInstanceLifecycleConfigRequest method.
  1024. // req, resp := client.CreateNotebookInstanceLifecycleConfigRequest(params)
  1025. //
  1026. // err := req.Send()
  1027. // if err == nil { // resp is now filled
  1028. // fmt.Println(resp)
  1029. // }
  1030. //
  1031. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig
  1032. func (c *SageMaker) CreateNotebookInstanceLifecycleConfigRequest(input *CreateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *CreateNotebookInstanceLifecycleConfigOutput) {
  1033. op := &request.Operation{
  1034. Name: opCreateNotebookInstanceLifecycleConfig,
  1035. HTTPMethod: "POST",
  1036. HTTPPath: "/",
  1037. }
  1038. if input == nil {
  1039. input = &CreateNotebookInstanceLifecycleConfigInput{}
  1040. }
  1041. output = &CreateNotebookInstanceLifecycleConfigOutput{}
  1042. req = c.newRequest(op, input, output)
  1043. return
  1044. }
  1045. // CreateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
  1046. //
  1047. // Creates a lifecycle configuration that you can associate with a notebook
  1048. // instance. A lifecycle configuration is a collection of shell scripts that
  1049. // run when you create or start a notebook instance.
  1050. //
  1051. // Each lifecycle configuration script has a limit of 16384 characters.
  1052. //
  1053. // The value of the $PATH environment variable that is available to both scripts
  1054. // is /sbin:bin:/usr/sbin:/usr/bin.
  1055. //
  1056. // View CloudWatch Logs for notebook instance lifecycle configurations in log
  1057. // group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].
  1058. //
  1059. // Lifecycle configuration scripts cannot run for longer than 5 minutes. If
  1060. // a script runs for longer than 5 minutes, it fails and the notebook instance
  1061. // is not created or started.
  1062. //
  1063. // For information about notebook instance lifestyle configurations, see Step
  1064. // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
  1065. //
  1066. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1067. // with awserr.Error's Code and Message methods to get detailed information about
  1068. // the error.
  1069. //
  1070. // See the AWS API reference guide for Amazon SageMaker Service's
  1071. // API operation CreateNotebookInstanceLifecycleConfig for usage and error information.
  1072. //
  1073. // Returned Error Codes:
  1074. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  1075. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  1076. // have too many training jobs created.
  1077. //
  1078. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig
  1079. func (c *SageMaker) CreateNotebookInstanceLifecycleConfig(input *CreateNotebookInstanceLifecycleConfigInput) (*CreateNotebookInstanceLifecycleConfigOutput, error) {
  1080. req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input)
  1081. return out, req.Send()
  1082. }
  1083. // CreateNotebookInstanceLifecycleConfigWithContext is the same as CreateNotebookInstanceLifecycleConfig with the addition of
  1084. // the ability to pass a context and additional request options.
  1085. //
  1086. // See CreateNotebookInstanceLifecycleConfig for details on how to use this API operation.
  1087. //
  1088. // The context must be non-nil and will be used for request cancellation. If
  1089. // the context is nil a panic will occur. In the future the SDK may create
  1090. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1091. // for more information on using Contexts.
  1092. func (c *SageMaker) CreateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *CreateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*CreateNotebookInstanceLifecycleConfigOutput, error) {
  1093. req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input)
  1094. req.SetContext(ctx)
  1095. req.ApplyOptions(opts...)
  1096. return out, req.Send()
  1097. }
  1098. const opCreatePresignedNotebookInstanceUrl = "CreatePresignedNotebookInstanceUrl"
  1099. // CreatePresignedNotebookInstanceUrlRequest generates a "aws/request.Request" representing the
  1100. // client's request for the CreatePresignedNotebookInstanceUrl operation. The "output" return
  1101. // value will be populated with the request's response once the request completes
  1102. // successfully.
  1103. //
  1104. // Use "Send" method on the returned Request to send the API call to the service.
  1105. // the "output" return value is not valid until after Send returns without error.
  1106. //
  1107. // See CreatePresignedNotebookInstanceUrl for more information on using the CreatePresignedNotebookInstanceUrl
  1108. // API call, and error handling.
  1109. //
  1110. // This method is useful when you want to inject custom logic or configuration
  1111. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1112. //
  1113. //
  1114. // // Example sending a request using the CreatePresignedNotebookInstanceUrlRequest method.
  1115. // req, resp := client.CreatePresignedNotebookInstanceUrlRequest(params)
  1116. //
  1117. // err := req.Send()
  1118. // if err == nil { // resp is now filled
  1119. // fmt.Println(resp)
  1120. // }
  1121. //
  1122. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl
  1123. func (c *SageMaker) CreatePresignedNotebookInstanceUrlRequest(input *CreatePresignedNotebookInstanceUrlInput) (req *request.Request, output *CreatePresignedNotebookInstanceUrlOutput) {
  1124. op := &request.Operation{
  1125. Name: opCreatePresignedNotebookInstanceUrl,
  1126. HTTPMethod: "POST",
  1127. HTTPPath: "/",
  1128. }
  1129. if input == nil {
  1130. input = &CreatePresignedNotebookInstanceUrlInput{}
  1131. }
  1132. output = &CreatePresignedNotebookInstanceUrlOutput{}
  1133. req = c.newRequest(op, input, output)
  1134. return
  1135. }
  1136. // CreatePresignedNotebookInstanceUrl API operation for Amazon SageMaker Service.
  1137. //
  1138. // Returns a URL that you can use to connect to the Jupyter server from a notebook
  1139. // instance. In the Amazon SageMaker console, when you choose Open next to a
  1140. // notebook instance, Amazon SageMaker opens a new tab showing the Jupyter server
  1141. // home page from the notebook instance. The console uses this API to get the
  1142. // URL and show the page.
  1143. //
  1144. // You can restrict access to this API and to the URL that it returns to a list
  1145. // of IP addresses that you specify. To restrict access, attach an IAM policy
  1146. // that denies access to this API unless the call comes from an IP address in
  1147. // the specified list to every AWS Identity and Access Management user, group,
  1148. // or role used to access the notebook instance. Use the NotIpAddress condition
  1149. // operator and the aws:SourceIP condition context key to specify the list of
  1150. // IP addresses that you want to have access to the notebook instance. For more
  1151. // 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).
  1152. //
  1153. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1154. // with awserr.Error's Code and Message methods to get detailed information about
  1155. // the error.
  1156. //
  1157. // See the AWS API reference guide for Amazon SageMaker Service's
  1158. // API operation CreatePresignedNotebookInstanceUrl for usage and error information.
  1159. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl
  1160. func (c *SageMaker) CreatePresignedNotebookInstanceUrl(input *CreatePresignedNotebookInstanceUrlInput) (*CreatePresignedNotebookInstanceUrlOutput, error) {
  1161. req, out := c.CreatePresignedNotebookInstanceUrlRequest(input)
  1162. return out, req.Send()
  1163. }
  1164. // CreatePresignedNotebookInstanceUrlWithContext is the same as CreatePresignedNotebookInstanceUrl with the addition of
  1165. // the ability to pass a context and additional request options.
  1166. //
  1167. // See CreatePresignedNotebookInstanceUrl for details on how to use this API operation.
  1168. //
  1169. // The context must be non-nil and will be used for request cancellation. If
  1170. // the context is nil a panic will occur. In the future the SDK may create
  1171. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1172. // for more information on using Contexts.
  1173. func (c *SageMaker) CreatePresignedNotebookInstanceUrlWithContext(ctx aws.Context, input *CreatePresignedNotebookInstanceUrlInput, opts ...request.Option) (*CreatePresignedNotebookInstanceUrlOutput, error) {
  1174. req, out := c.CreatePresignedNotebookInstanceUrlRequest(input)
  1175. req.SetContext(ctx)
  1176. req.ApplyOptions(opts...)
  1177. return out, req.Send()
  1178. }
  1179. const opCreateTrainingJob = "CreateTrainingJob"
  1180. // CreateTrainingJobRequest generates a "aws/request.Request" representing the
  1181. // client's request for the CreateTrainingJob operation. The "output" return
  1182. // value will be populated with the request's response once the request completes
  1183. // successfully.
  1184. //
  1185. // Use "Send" method on the returned Request to send the API call to the service.
  1186. // the "output" return value is not valid until after Send returns without error.
  1187. //
  1188. // See CreateTrainingJob for more information on using the CreateTrainingJob
  1189. // API call, and error handling.
  1190. //
  1191. // This method is useful when you want to inject custom logic or configuration
  1192. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1193. //
  1194. //
  1195. // // Example sending a request using the CreateTrainingJobRequest method.
  1196. // req, resp := client.CreateTrainingJobRequest(params)
  1197. //
  1198. // err := req.Send()
  1199. // if err == nil { // resp is now filled
  1200. // fmt.Println(resp)
  1201. // }
  1202. //
  1203. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob
  1204. func (c *SageMaker) CreateTrainingJobRequest(input *CreateTrainingJobInput) (req *request.Request, output *CreateTrainingJobOutput) {
  1205. op := &request.Operation{
  1206. Name: opCreateTrainingJob,
  1207. HTTPMethod: "POST",
  1208. HTTPPath: "/",
  1209. }
  1210. if input == nil {
  1211. input = &CreateTrainingJobInput{}
  1212. }
  1213. output = &CreateTrainingJobOutput{}
  1214. req = c.newRequest(op, input, output)
  1215. return
  1216. }
  1217. // CreateTrainingJob API operation for Amazon SageMaker Service.
  1218. //
  1219. // Starts a model training job. After training completes, Amazon SageMaker saves
  1220. // the resulting model artifacts to an Amazon S3 location that you specify.
  1221. //
  1222. // If you choose to host your model using Amazon SageMaker hosting services,
  1223. // you can use the resulting model artifacts as part of the model. You can also
  1224. // use the artifacts in a deep learning service other than Amazon SageMaker,
  1225. // provided that you know how to use them for inferences.
  1226. //
  1227. // In the request body, you provide the following:
  1228. //
  1229. // * AlgorithmSpecification - Identifies the training algorithm to use.
  1230. //
  1231. // * HyperParameters - Specify these algorithm-specific parameters to influence
  1232. // the quality of the final model. For a list of hyperparameters for each
  1233. // training algorithm provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
  1234. //
  1235. //
  1236. // * InputDataConfig - Describes the training dataset and the Amazon S3 location
  1237. // where it is stored.
  1238. //
  1239. // * OutputDataConfig - Identifies the Amazon S3 location where you want
  1240. // Amazon SageMaker to save the results of model training.
  1241. //
  1242. // * ResourceConfig - Identifies the resources, ML compute instances, and
  1243. // ML storage volumes to deploy for model training. In distributed training,
  1244. // you specify more than one instance.
  1245. //
  1246. // * RoleARN - The Amazon Resource Number (ARN) that Amazon SageMaker assumes
  1247. // to perform tasks on your behalf during model training. You must grant
  1248. // this role the necessary permissions so that Amazon SageMaker can successfully
  1249. // complete model training.
  1250. //
  1251. // * StoppingCondition - Sets a duration for training. Use this parameter
  1252. // to cap model training costs.
  1253. //
  1254. // For more information about Amazon SageMaker, see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html)
  1255. //
  1256. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1257. // with awserr.Error's Code and Message methods to get detailed information about
  1258. // the error.
  1259. //
  1260. // See the AWS API reference guide for Amazon SageMaker Service's
  1261. // API operation CreateTrainingJob for usage and error information.
  1262. //
  1263. // Returned Error Codes:
  1264. // * ErrCodeResourceInUse "ResourceInUse"
  1265. // Resource being accessed is in use.
  1266. //
  1267. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  1268. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  1269. // have too many training jobs created.
  1270. //
  1271. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob
  1272. func (c *SageMaker) CreateTrainingJob(input *CreateTrainingJobInput) (*CreateTrainingJobOutput, error) {
  1273. req, out := c.CreateTrainingJobRequest(input)
  1274. return out, req.Send()
  1275. }
  1276. // CreateTrainingJobWithContext is the same as CreateTrainingJob with the addition of
  1277. // the ability to pass a context and additional request options.
  1278. //
  1279. // See CreateTrainingJob for details on how to use this API operation.
  1280. //
  1281. // The context must be non-nil and will be used for request cancellation. If
  1282. // the context is nil a panic will occur. In the future the SDK may create
  1283. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1284. // for more information on using Contexts.
  1285. func (c *SageMaker) CreateTrainingJobWithContext(ctx aws.Context, input *CreateTrainingJobInput, opts ...request.Option) (*CreateTrainingJobOutput, error) {
  1286. req, out := c.CreateTrainingJobRequest(input)
  1287. req.SetContext(ctx)
  1288. req.ApplyOptions(opts...)
  1289. return out, req.Send()
  1290. }
  1291. const opCreateTransformJob = "CreateTransformJob"
  1292. // CreateTransformJobRequest generates a "aws/request.Request" representing the
  1293. // client's request for the CreateTransformJob operation. The "output" return
  1294. // value will be populated with the request's response once the request completes
  1295. // successfully.
  1296. //
  1297. // Use "Send" method on the returned Request to send the API call to the service.
  1298. // the "output" return value is not valid until after Send returns without error.
  1299. //
  1300. // See CreateTransformJob for more information on using the CreateTransformJob
  1301. // API call, and error handling.
  1302. //
  1303. // This method is useful when you want to inject custom logic or configuration
  1304. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1305. //
  1306. //
  1307. // // Example sending a request using the CreateTransformJobRequest method.
  1308. // req, resp := client.CreateTransformJobRequest(params)
  1309. //
  1310. // err := req.Send()
  1311. // if err == nil { // resp is now filled
  1312. // fmt.Println(resp)
  1313. // }
  1314. //
  1315. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob
  1316. func (c *SageMaker) CreateTransformJobRequest(input *CreateTransformJobInput) (req *request.Request, output *CreateTransformJobOutput) {
  1317. op := &request.Operation{
  1318. Name: opCreateTransformJob,
  1319. HTTPMethod: "POST",
  1320. HTTPPath: "/",
  1321. }
  1322. if input == nil {
  1323. input = &CreateTransformJobInput{}
  1324. }
  1325. output = &CreateTransformJobOutput{}
  1326. req = c.newRequest(op, input, output)
  1327. return
  1328. }
  1329. // CreateTransformJob API operation for Amazon SageMaker Service.
  1330. //
  1331. // Starts a transform job. A transform job uses a trained model to get inferences
  1332. // on a dataset and saves these results to an Amazon S3 location that you specify.
  1333. //
  1334. // To perform batch transformations, you create a transform job and use the
  1335. // data that you have readily available.
  1336. //
  1337. // In the request body, you provide the following:
  1338. //
  1339. // * TransformJobName - Identifies the transform job. The name must be unique
  1340. // within an AWS Region in an AWS account.
  1341. //
  1342. // * ModelName - Identifies the model to use. ModelName must be the name
  1343. // of an existing Amazon SageMaker model in the same AWS Region and AWS account.
  1344. // For information on creating a model, see CreateModel.
  1345. //
  1346. // * TransformInput - Describes the dataset to be transformed and the Amazon
  1347. // S3 location where it is stored.
  1348. //
  1349. // * TransformOutput - Identifies the Amazon S3 location where you want Amazon
  1350. // SageMaker to save the results from the transform job.
  1351. //
  1352. // * TransformResources - Identifies the ML compute instances for the transform
  1353. // job.
  1354. //
  1355. // For more information about how batch transformation works Amazon SageMaker,
  1356. // see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html).
  1357. //
  1358. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1359. // with awserr.Error's Code and Message methods to get detailed information about
  1360. // the error.
  1361. //
  1362. // See the AWS API reference guide for Amazon SageMaker Service's
  1363. // API operation CreateTransformJob for usage and error information.
  1364. //
  1365. // Returned Error Codes:
  1366. // * ErrCodeResourceInUse "ResourceInUse"
  1367. // Resource being accessed is in use.
  1368. //
  1369. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  1370. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  1371. // have too many training jobs created.
  1372. //
  1373. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob
  1374. func (c *SageMaker) CreateTransformJob(input *CreateTransformJobInput) (*CreateTransformJobOutput, error) {
  1375. req, out := c.CreateTransformJobRequest(input)
  1376. return out, req.Send()
  1377. }
  1378. // CreateTransformJobWithContext is the same as CreateTransformJob with the addition of
  1379. // the ability to pass a context and additional request options.
  1380. //
  1381. // See CreateTransformJob for details on how to use this API operation.
  1382. //
  1383. // The context must be non-nil and will be used for request cancellation. If
  1384. // the context is nil a panic will occur. In the future the SDK may create
  1385. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1386. // for more information on using Contexts.
  1387. func (c *SageMaker) CreateTransformJobWithContext(ctx aws.Context, input *CreateTransformJobInput, opts ...request.Option) (*CreateTransformJobOutput, error) {
  1388. req, out := c.CreateTransformJobRequest(input)
  1389. req.SetContext(ctx)
  1390. req.ApplyOptions(opts...)
  1391. return out, req.Send()
  1392. }
  1393. const opCreateWorkteam = "CreateWorkteam"
  1394. // CreateWorkteamRequest generates a "aws/request.Request" representing the
  1395. // client's request for the CreateWorkteam operation. The "output" return
  1396. // value will be populated with the request's response once the request completes
  1397. // successfully.
  1398. //
  1399. // Use "Send" method on the returned Request to send the API call to the service.
  1400. // the "output" return value is not valid until after Send returns without error.
  1401. //
  1402. // See CreateWorkteam for more information on using the CreateWorkteam
  1403. // API call, and error handling.
  1404. //
  1405. // This method is useful when you want to inject custom logic or configuration
  1406. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1407. //
  1408. //
  1409. // // Example sending a request using the CreateWorkteamRequest method.
  1410. // req, resp := client.CreateWorkteamRequest(params)
  1411. //
  1412. // err := req.Send()
  1413. // if err == nil { // resp is now filled
  1414. // fmt.Println(resp)
  1415. // }
  1416. //
  1417. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam
  1418. func (c *SageMaker) CreateWorkteamRequest(input *CreateWorkteamInput) (req *request.Request, output *CreateWorkteamOutput) {
  1419. op := &request.Operation{
  1420. Name: opCreateWorkteam,
  1421. HTTPMethod: "POST",
  1422. HTTPPath: "/",
  1423. }
  1424. if input == nil {
  1425. input = &CreateWorkteamInput{}
  1426. }
  1427. output = &CreateWorkteamOutput{}
  1428. req = c.newRequest(op, input, output)
  1429. return
  1430. }
  1431. // CreateWorkteam API operation for Amazon SageMaker Service.
  1432. //
  1433. // Creates a new work team for labeling your data. A work team is defined by
  1434. // one or more Amazon Cognito user pools. You must first create the user pools
  1435. // before you can create a work team.
  1436. //
  1437. // You cannot create more than 25 work teams in an account and region.
  1438. //
  1439. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1440. // with awserr.Error's Code and Message methods to get detailed information about
  1441. // the error.
  1442. //
  1443. // See the AWS API reference guide for Amazon SageMaker Service's
  1444. // API operation CreateWorkteam for usage and error information.
  1445. //
  1446. // Returned Error Codes:
  1447. // * ErrCodeResourceInUse "ResourceInUse"
  1448. // Resource being accessed is in use.
  1449. //
  1450. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  1451. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  1452. // have too many training jobs created.
  1453. //
  1454. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam
  1455. func (c *SageMaker) CreateWorkteam(input *CreateWorkteamInput) (*CreateWorkteamOutput, error) {
  1456. req, out := c.CreateWorkteamRequest(input)
  1457. return out, req.Send()
  1458. }
  1459. // CreateWorkteamWithContext is the same as CreateWorkteam with the addition of
  1460. // the ability to pass a context and additional request options.
  1461. //
  1462. // See CreateWorkteam for details on how to use this API operation.
  1463. //
  1464. // The context must be non-nil and will be used for request cancellation. If
  1465. // the context is nil a panic will occur. In the future the SDK may create
  1466. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1467. // for more information on using Contexts.
  1468. func (c *SageMaker) CreateWorkteamWithContext(ctx aws.Context, input *CreateWorkteamInput, opts ...request.Option) (*CreateWorkteamOutput, error) {
  1469. req, out := c.CreateWorkteamRequest(input)
  1470. req.SetContext(ctx)
  1471. req.ApplyOptions(opts...)
  1472. return out, req.Send()
  1473. }
  1474. const opDeleteAlgorithm = "DeleteAlgorithm"
  1475. // DeleteAlgorithmRequest generates a "aws/request.Request" representing the
  1476. // client's request for the DeleteAlgorithm operation. The "output" return
  1477. // value will be populated with the request's response once the request completes
  1478. // successfully.
  1479. //
  1480. // Use "Send" method on the returned Request to send the API call to the service.
  1481. // the "output" return value is not valid until after Send returns without error.
  1482. //
  1483. // See DeleteAlgorithm for more information on using the DeleteAlgorithm
  1484. // API call, and error handling.
  1485. //
  1486. // This method is useful when you want to inject custom logic or configuration
  1487. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1488. //
  1489. //
  1490. // // Example sending a request using the DeleteAlgorithmRequest method.
  1491. // req, resp := client.DeleteAlgorithmRequest(params)
  1492. //
  1493. // err := req.Send()
  1494. // if err == nil { // resp is now filled
  1495. // fmt.Println(resp)
  1496. // }
  1497. //
  1498. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm
  1499. func (c *SageMaker) DeleteAlgorithmRequest(input *DeleteAlgorithmInput) (req *request.Request, output *DeleteAlgorithmOutput) {
  1500. op := &request.Operation{
  1501. Name: opDeleteAlgorithm,
  1502. HTTPMethod: "POST",
  1503. HTTPPath: "/",
  1504. }
  1505. if input == nil {
  1506. input = &DeleteAlgorithmInput{}
  1507. }
  1508. output = &DeleteAlgorithmOutput{}
  1509. req = c.newRequest(op, input, output)
  1510. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1511. return
  1512. }
  1513. // DeleteAlgorithm API operation for Amazon SageMaker Service.
  1514. //
  1515. // Removes the specified algorithm from your account.
  1516. //
  1517. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1518. // with awserr.Error's Code and Message methods to get detailed information about
  1519. // the error.
  1520. //
  1521. // See the AWS API reference guide for Amazon SageMaker Service's
  1522. // API operation DeleteAlgorithm for usage and error information.
  1523. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm
  1524. func (c *SageMaker) DeleteAlgorithm(input *DeleteAlgorithmInput) (*DeleteAlgorithmOutput, error) {
  1525. req, out := c.DeleteAlgorithmRequest(input)
  1526. return out, req.Send()
  1527. }
  1528. // DeleteAlgorithmWithContext is the same as DeleteAlgorithm with the addition of
  1529. // the ability to pass a context and additional request options.
  1530. //
  1531. // See DeleteAlgorithm for details on how to use this API operation.
  1532. //
  1533. // The context must be non-nil and will be used for request cancellation. If
  1534. // the context is nil a panic will occur. In the future the SDK may create
  1535. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1536. // for more information on using Contexts.
  1537. func (c *SageMaker) DeleteAlgorithmWithContext(ctx aws.Context, input *DeleteAlgorithmInput, opts ...request.Option) (*DeleteAlgorithmOutput, error) {
  1538. req, out := c.DeleteAlgorithmRequest(input)
  1539. req.SetContext(ctx)
  1540. req.ApplyOptions(opts...)
  1541. return out, req.Send()
  1542. }
  1543. const opDeleteCodeRepository = "DeleteCodeRepository"
  1544. // DeleteCodeRepositoryRequest generates a "aws/request.Request" representing the
  1545. // client's request for the DeleteCodeRepository operation. The "output" return
  1546. // value will be populated with the request's response once the request completes
  1547. // successfully.
  1548. //
  1549. // Use "Send" method on the returned Request to send the API call to the service.
  1550. // the "output" return value is not valid until after Send returns without error.
  1551. //
  1552. // See DeleteCodeRepository for more information on using the DeleteCodeRepository
  1553. // API call, and error handling.
  1554. //
  1555. // This method is useful when you want to inject custom logic or configuration
  1556. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1557. //
  1558. //
  1559. // // Example sending a request using the DeleteCodeRepositoryRequest method.
  1560. // req, resp := client.DeleteCodeRepositoryRequest(params)
  1561. //
  1562. // err := req.Send()
  1563. // if err == nil { // resp is now filled
  1564. // fmt.Println(resp)
  1565. // }
  1566. //
  1567. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository
  1568. func (c *SageMaker) DeleteCodeRepositoryRequest(input *DeleteCodeRepositoryInput) (req *request.Request, output *DeleteCodeRepositoryOutput) {
  1569. op := &request.Operation{
  1570. Name: opDeleteCodeRepository,
  1571. HTTPMethod: "POST",
  1572. HTTPPath: "/",
  1573. }
  1574. if input == nil {
  1575. input = &DeleteCodeRepositoryInput{}
  1576. }
  1577. output = &DeleteCodeRepositoryOutput{}
  1578. req = c.newRequest(op, input, output)
  1579. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1580. return
  1581. }
  1582. // DeleteCodeRepository API operation for Amazon SageMaker Service.
  1583. //
  1584. // Deletes the specified Git repository from your account.
  1585. //
  1586. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1587. // with awserr.Error's Code and Message methods to get detailed information about
  1588. // the error.
  1589. //
  1590. // See the AWS API reference guide for Amazon SageMaker Service's
  1591. // API operation DeleteCodeRepository for usage and error information.
  1592. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository
  1593. func (c *SageMaker) DeleteCodeRepository(input *DeleteCodeRepositoryInput) (*DeleteCodeRepositoryOutput, error) {
  1594. req, out := c.DeleteCodeRepositoryRequest(input)
  1595. return out, req.Send()
  1596. }
  1597. // DeleteCodeRepositoryWithContext is the same as DeleteCodeRepository with the addition of
  1598. // the ability to pass a context and additional request options.
  1599. //
  1600. // See DeleteCodeRepository for details on how to use this API operation.
  1601. //
  1602. // The context must be non-nil and will be used for request cancellation. If
  1603. // the context is nil a panic will occur. In the future the SDK may create
  1604. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1605. // for more information on using Contexts.
  1606. func (c *SageMaker) DeleteCodeRepositoryWithContext(ctx aws.Context, input *DeleteCodeRepositoryInput, opts ...request.Option) (*DeleteCodeRepositoryOutput, error) {
  1607. req, out := c.DeleteCodeRepositoryRequest(input)
  1608. req.SetContext(ctx)
  1609. req.ApplyOptions(opts...)
  1610. return out, req.Send()
  1611. }
  1612. const opDeleteEndpoint = "DeleteEndpoint"
  1613. // DeleteEndpointRequest generates a "aws/request.Request" representing the
  1614. // client's request for the DeleteEndpoint operation. The "output" return
  1615. // value will be populated with the request's response once the request completes
  1616. // successfully.
  1617. //
  1618. // Use "Send" method on the returned Request to send the API call to the service.
  1619. // the "output" return value is not valid until after Send returns without error.
  1620. //
  1621. // See DeleteEndpoint for more information on using the DeleteEndpoint
  1622. // API call, and error handling.
  1623. //
  1624. // This method is useful when you want to inject custom logic or configuration
  1625. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1626. //
  1627. //
  1628. // // Example sending a request using the DeleteEndpointRequest method.
  1629. // req, resp := client.DeleteEndpointRequest(params)
  1630. //
  1631. // err := req.Send()
  1632. // if err == nil { // resp is now filled
  1633. // fmt.Println(resp)
  1634. // }
  1635. //
  1636. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint
  1637. func (c *SageMaker) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) {
  1638. op := &request.Operation{
  1639. Name: opDeleteEndpoint,
  1640. HTTPMethod: "POST",
  1641. HTTPPath: "/",
  1642. }
  1643. if input == nil {
  1644. input = &DeleteEndpointInput{}
  1645. }
  1646. output = &DeleteEndpointOutput{}
  1647. req = c.newRequest(op, input, output)
  1648. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1649. return
  1650. }
  1651. // DeleteEndpoint API operation for Amazon SageMaker Service.
  1652. //
  1653. // Deletes an endpoint. Amazon SageMaker frees up all of the resources that
  1654. // were deployed when the endpoint was created.
  1655. //
  1656. // Amazon SageMaker retires any custom KMS key grants associated with the endpoint,
  1657. // meaning you don't need to use the RevokeGrant (http://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html)
  1658. // API call.
  1659. //
  1660. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1661. // with awserr.Error's Code and Message methods to get detailed information about
  1662. // the error.
  1663. //
  1664. // See the AWS API reference guide for Amazon SageMaker Service's
  1665. // API operation DeleteEndpoint for usage and error information.
  1666. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint
  1667. func (c *SageMaker) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) {
  1668. req, out := c.DeleteEndpointRequest(input)
  1669. return out, req.Send()
  1670. }
  1671. // DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of
  1672. // the ability to pass a context and additional request options.
  1673. //
  1674. // See DeleteEndpoint for details on how to use this API operation.
  1675. //
  1676. // The context must be non-nil and will be used for request cancellation. If
  1677. // the context is nil a panic will occur. In the future the SDK may create
  1678. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1679. // for more information on using Contexts.
  1680. func (c *SageMaker) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error) {
  1681. req, out := c.DeleteEndpointRequest(input)
  1682. req.SetContext(ctx)
  1683. req.ApplyOptions(opts...)
  1684. return out, req.Send()
  1685. }
  1686. const opDeleteEndpointConfig = "DeleteEndpointConfig"
  1687. // DeleteEndpointConfigRequest generates a "aws/request.Request" representing the
  1688. // client's request for the DeleteEndpointConfig operation. The "output" return
  1689. // value will be populated with the request's response once the request completes
  1690. // successfully.
  1691. //
  1692. // Use "Send" method on the returned Request to send the API call to the service.
  1693. // the "output" return value is not valid until after Send returns without error.
  1694. //
  1695. // See DeleteEndpointConfig for more information on using the DeleteEndpointConfig
  1696. // API call, and error handling.
  1697. //
  1698. // This method is useful when you want to inject custom logic or configuration
  1699. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1700. //
  1701. //
  1702. // // Example sending a request using the DeleteEndpointConfigRequest method.
  1703. // req, resp := client.DeleteEndpointConfigRequest(params)
  1704. //
  1705. // err := req.Send()
  1706. // if err == nil { // resp is now filled
  1707. // fmt.Println(resp)
  1708. // }
  1709. //
  1710. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig
  1711. func (c *SageMaker) DeleteEndpointConfigRequest(input *DeleteEndpointConfigInput) (req *request.Request, output *DeleteEndpointConfigOutput) {
  1712. op := &request.Operation{
  1713. Name: opDeleteEndpointConfig,
  1714. HTTPMethod: "POST",
  1715. HTTPPath: "/",
  1716. }
  1717. if input == nil {
  1718. input = &DeleteEndpointConfigInput{}
  1719. }
  1720. output = &DeleteEndpointConfigOutput{}
  1721. req = c.newRequest(op, input, output)
  1722. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1723. return
  1724. }
  1725. // DeleteEndpointConfig API operation for Amazon SageMaker Service.
  1726. //
  1727. // Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only
  1728. // the specified configuration. It does not delete endpoints created using the
  1729. // configuration.
  1730. //
  1731. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1732. // with awserr.Error's Code and Message methods to get detailed information about
  1733. // the error.
  1734. //
  1735. // See the AWS API reference guide for Amazon SageMaker Service's
  1736. // API operation DeleteEndpointConfig for usage and error information.
  1737. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig
  1738. func (c *SageMaker) DeleteEndpointConfig(input *DeleteEndpointConfigInput) (*DeleteEndpointConfigOutput, error) {
  1739. req, out := c.DeleteEndpointConfigRequest(input)
  1740. return out, req.Send()
  1741. }
  1742. // DeleteEndpointConfigWithContext is the same as DeleteEndpointConfig with the addition of
  1743. // the ability to pass a context and additional request options.
  1744. //
  1745. // See DeleteEndpointConfig for details on how to use this API operation.
  1746. //
  1747. // The context must be non-nil and will be used for request cancellation. If
  1748. // the context is nil a panic will occur. In the future the SDK may create
  1749. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1750. // for more information on using Contexts.
  1751. func (c *SageMaker) DeleteEndpointConfigWithContext(ctx aws.Context, input *DeleteEndpointConfigInput, opts ...request.Option) (*DeleteEndpointConfigOutput, error) {
  1752. req, out := c.DeleteEndpointConfigRequest(input)
  1753. req.SetContext(ctx)
  1754. req.ApplyOptions(opts...)
  1755. return out, req.Send()
  1756. }
  1757. const opDeleteModel = "DeleteModel"
  1758. // DeleteModelRequest generates a "aws/request.Request" representing the
  1759. // client's request for the DeleteModel operation. The "output" return
  1760. // value will be populated with the request's response once the request completes
  1761. // successfully.
  1762. //
  1763. // Use "Send" method on the returned Request to send the API call to the service.
  1764. // the "output" return value is not valid until after Send returns without error.
  1765. //
  1766. // See DeleteModel for more information on using the DeleteModel
  1767. // API call, and error handling.
  1768. //
  1769. // This method is useful when you want to inject custom logic or configuration
  1770. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1771. //
  1772. //
  1773. // // Example sending a request using the DeleteModelRequest method.
  1774. // req, resp := client.DeleteModelRequest(params)
  1775. //
  1776. // err := req.Send()
  1777. // if err == nil { // resp is now filled
  1778. // fmt.Println(resp)
  1779. // }
  1780. //
  1781. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel
  1782. func (c *SageMaker) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) {
  1783. op := &request.Operation{
  1784. Name: opDeleteModel,
  1785. HTTPMethod: "POST",
  1786. HTTPPath: "/",
  1787. }
  1788. if input == nil {
  1789. input = &DeleteModelInput{}
  1790. }
  1791. output = &DeleteModelOutput{}
  1792. req = c.newRequest(op, input, output)
  1793. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1794. return
  1795. }
  1796. // DeleteModel API operation for Amazon SageMaker Service.
  1797. //
  1798. // Deletes a model. The DeleteModel API deletes only the model entry that was
  1799. // created in Amazon SageMaker when you called the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html)
  1800. // API. It does not delete model artifacts, inference code, or the IAM role
  1801. // that you specified when creating the model.
  1802. //
  1803. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1804. // with awserr.Error's Code and Message methods to get detailed information about
  1805. // the error.
  1806. //
  1807. // See the AWS API reference guide for Amazon SageMaker Service's
  1808. // API operation DeleteModel for usage and error information.
  1809. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel
  1810. func (c *SageMaker) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) {
  1811. req, out := c.DeleteModelRequest(input)
  1812. return out, req.Send()
  1813. }
  1814. // DeleteModelWithContext is the same as DeleteModel with the addition of
  1815. // the ability to pass a context and additional request options.
  1816. //
  1817. // See DeleteModel for details on how to use this API operation.
  1818. //
  1819. // The context must be non-nil and will be used for request cancellation. If
  1820. // the context is nil a panic will occur. In the future the SDK may create
  1821. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1822. // for more information on using Contexts.
  1823. func (c *SageMaker) DeleteModelWithContext(ctx aws.Context, input *DeleteModelInput, opts ...request.Option) (*DeleteModelOutput, error) {
  1824. req, out := c.DeleteModelRequest(input)
  1825. req.SetContext(ctx)
  1826. req.ApplyOptions(opts...)
  1827. return out, req.Send()
  1828. }
  1829. const opDeleteModelPackage = "DeleteModelPackage"
  1830. // DeleteModelPackageRequest generates a "aws/request.Request" representing the
  1831. // client's request for the DeleteModelPackage operation. The "output" return
  1832. // value will be populated with the request's response once the request completes
  1833. // successfully.
  1834. //
  1835. // Use "Send" method on the returned Request to send the API call to the service.
  1836. // the "output" return value is not valid until after Send returns without error.
  1837. //
  1838. // See DeleteModelPackage for more information on using the DeleteModelPackage
  1839. // API call, and error handling.
  1840. //
  1841. // This method is useful when you want to inject custom logic or configuration
  1842. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1843. //
  1844. //
  1845. // // Example sending a request using the DeleteModelPackageRequest method.
  1846. // req, resp := client.DeleteModelPackageRequest(params)
  1847. //
  1848. // err := req.Send()
  1849. // if err == nil { // resp is now filled
  1850. // fmt.Println(resp)
  1851. // }
  1852. //
  1853. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage
  1854. func (c *SageMaker) DeleteModelPackageRequest(input *DeleteModelPackageInput) (req *request.Request, output *DeleteModelPackageOutput) {
  1855. op := &request.Operation{
  1856. Name: opDeleteModelPackage,
  1857. HTTPMethod: "POST",
  1858. HTTPPath: "/",
  1859. }
  1860. if input == nil {
  1861. input = &DeleteModelPackageInput{}
  1862. }
  1863. output = &DeleteModelPackageOutput{}
  1864. req = c.newRequest(op, input, output)
  1865. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1866. return
  1867. }
  1868. // DeleteModelPackage API operation for Amazon SageMaker Service.
  1869. //
  1870. // Deletes a model package.
  1871. //
  1872. // A model package is used to create Amazon SageMaker models or list on AWS
  1873. // Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace
  1874. // to create models in Amazon SageMaker.
  1875. //
  1876. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1877. // with awserr.Error's Code and Message methods to get detailed information about
  1878. // the error.
  1879. //
  1880. // See the AWS API reference guide for Amazon SageMaker Service's
  1881. // API operation DeleteModelPackage for usage and error information.
  1882. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage
  1883. func (c *SageMaker) DeleteModelPackage(input *DeleteModelPackageInput) (*DeleteModelPackageOutput, error) {
  1884. req, out := c.DeleteModelPackageRequest(input)
  1885. return out, req.Send()
  1886. }
  1887. // DeleteModelPackageWithContext is the same as DeleteModelPackage with the addition of
  1888. // the ability to pass a context and additional request options.
  1889. //
  1890. // See DeleteModelPackage for details on how to use this API operation.
  1891. //
  1892. // The context must be non-nil and will be used for request cancellation. If
  1893. // the context is nil a panic will occur. In the future the SDK may create
  1894. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1895. // for more information on using Contexts.
  1896. func (c *SageMaker) DeleteModelPackageWithContext(ctx aws.Context, input *DeleteModelPackageInput, opts ...request.Option) (*DeleteModelPackageOutput, error) {
  1897. req, out := c.DeleteModelPackageRequest(input)
  1898. req.SetContext(ctx)
  1899. req.ApplyOptions(opts...)
  1900. return out, req.Send()
  1901. }
  1902. const opDeleteNotebookInstance = "DeleteNotebookInstance"
  1903. // DeleteNotebookInstanceRequest generates a "aws/request.Request" representing the
  1904. // client's request for the DeleteNotebookInstance operation. The "output" return
  1905. // value will be populated with the request's response once the request completes
  1906. // successfully.
  1907. //
  1908. // Use "Send" method on the returned Request to send the API call to the service.
  1909. // the "output" return value is not valid until after Send returns without error.
  1910. //
  1911. // See DeleteNotebookInstance for more information on using the DeleteNotebookInstance
  1912. // API call, and error handling.
  1913. //
  1914. // This method is useful when you want to inject custom logic or configuration
  1915. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1916. //
  1917. //
  1918. // // Example sending a request using the DeleteNotebookInstanceRequest method.
  1919. // req, resp := client.DeleteNotebookInstanceRequest(params)
  1920. //
  1921. // err := req.Send()
  1922. // if err == nil { // resp is now filled
  1923. // fmt.Println(resp)
  1924. // }
  1925. //
  1926. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance
  1927. func (c *SageMaker) DeleteNotebookInstanceRequest(input *DeleteNotebookInstanceInput) (req *request.Request, output *DeleteNotebookInstanceOutput) {
  1928. op := &request.Operation{
  1929. Name: opDeleteNotebookInstance,
  1930. HTTPMethod: "POST",
  1931. HTTPPath: "/",
  1932. }
  1933. if input == nil {
  1934. input = &DeleteNotebookInstanceInput{}
  1935. }
  1936. output = &DeleteNotebookInstanceOutput{}
  1937. req = c.newRequest(op, input, output)
  1938. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1939. return
  1940. }
  1941. // DeleteNotebookInstance API operation for Amazon SageMaker Service.
  1942. //
  1943. // Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook
  1944. // instance, you must call the StopNotebookInstance API.
  1945. //
  1946. // When you delete a notebook instance, you lose all of your data. Amazon SageMaker
  1947. // removes the ML compute instance, and deletes the ML storage volume and the
  1948. // network interface associated with the notebook instance.
  1949. //
  1950. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1951. // with awserr.Error's Code and Message methods to get detailed information about
  1952. // the error.
  1953. //
  1954. // See the AWS API reference guide for Amazon SageMaker Service's
  1955. // API operation DeleteNotebookInstance for usage and error information.
  1956. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance
  1957. func (c *SageMaker) DeleteNotebookInstance(input *DeleteNotebookInstanceInput) (*DeleteNotebookInstanceOutput, error) {
  1958. req, out := c.DeleteNotebookInstanceRequest(input)
  1959. return out, req.Send()
  1960. }
  1961. // DeleteNotebookInstanceWithContext is the same as DeleteNotebookInstance with the addition of
  1962. // the ability to pass a context and additional request options.
  1963. //
  1964. // See DeleteNotebookInstance for details on how to use this API operation.
  1965. //
  1966. // The context must be non-nil and will be used for request cancellation. If
  1967. // the context is nil a panic will occur. In the future the SDK may create
  1968. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1969. // for more information on using Contexts.
  1970. func (c *SageMaker) DeleteNotebookInstanceWithContext(ctx aws.Context, input *DeleteNotebookInstanceInput, opts ...request.Option) (*DeleteNotebookInstanceOutput, error) {
  1971. req, out := c.DeleteNotebookInstanceRequest(input)
  1972. req.SetContext(ctx)
  1973. req.ApplyOptions(opts...)
  1974. return out, req.Send()
  1975. }
  1976. const opDeleteNotebookInstanceLifecycleConfig = "DeleteNotebookInstanceLifecycleConfig"
  1977. // DeleteNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
  1978. // client's request for the DeleteNotebookInstanceLifecycleConfig operation. The "output" return
  1979. // value will be populated with the request's response once the request completes
  1980. // successfully.
  1981. //
  1982. // Use "Send" method on the returned Request to send the API call to the service.
  1983. // the "output" return value is not valid until after Send returns without error.
  1984. //
  1985. // See DeleteNotebookInstanceLifecycleConfig for more information on using the DeleteNotebookInstanceLifecycleConfig
  1986. // API call, and error handling.
  1987. //
  1988. // This method is useful when you want to inject custom logic or configuration
  1989. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1990. //
  1991. //
  1992. // // Example sending a request using the DeleteNotebookInstanceLifecycleConfigRequest method.
  1993. // req, resp := client.DeleteNotebookInstanceLifecycleConfigRequest(params)
  1994. //
  1995. // err := req.Send()
  1996. // if err == nil { // resp is now filled
  1997. // fmt.Println(resp)
  1998. // }
  1999. //
  2000. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig
  2001. func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigRequest(input *DeleteNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DeleteNotebookInstanceLifecycleConfigOutput) {
  2002. op := &request.Operation{
  2003. Name: opDeleteNotebookInstanceLifecycleConfig,
  2004. HTTPMethod: "POST",
  2005. HTTPPath: "/",
  2006. }
  2007. if input == nil {
  2008. input = &DeleteNotebookInstanceLifecycleConfigInput{}
  2009. }
  2010. output = &DeleteNotebookInstanceLifecycleConfigOutput{}
  2011. req = c.newRequest(op, input, output)
  2012. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2013. return
  2014. }
  2015. // DeleteNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
  2016. //
  2017. // Deletes a notebook instance lifecycle configuration.
  2018. //
  2019. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2020. // with awserr.Error's Code and Message methods to get detailed information about
  2021. // the error.
  2022. //
  2023. // See the AWS API reference guide for Amazon SageMaker Service's
  2024. // API operation DeleteNotebookInstanceLifecycleConfig for usage and error information.
  2025. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig
  2026. func (c *SageMaker) DeleteNotebookInstanceLifecycleConfig(input *DeleteNotebookInstanceLifecycleConfigInput) (*DeleteNotebookInstanceLifecycleConfigOutput, error) {
  2027. req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input)
  2028. return out, req.Send()
  2029. }
  2030. // DeleteNotebookInstanceLifecycleConfigWithContext is the same as DeleteNotebookInstanceLifecycleConfig with the addition of
  2031. // the ability to pass a context and additional request options.
  2032. //
  2033. // See DeleteNotebookInstanceLifecycleConfig for details on how to use this API operation.
  2034. //
  2035. // The context must be non-nil and will be used for request cancellation. If
  2036. // the context is nil a panic will occur. In the future the SDK may create
  2037. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2038. // for more information on using Contexts.
  2039. func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DeleteNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DeleteNotebookInstanceLifecycleConfigOutput, error) {
  2040. req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input)
  2041. req.SetContext(ctx)
  2042. req.ApplyOptions(opts...)
  2043. return out, req.Send()
  2044. }
  2045. const opDeleteTags = "DeleteTags"
  2046. // DeleteTagsRequest generates a "aws/request.Request" representing the
  2047. // client's request for the DeleteTags operation. The "output" return
  2048. // value will be populated with the request's response once the request completes
  2049. // successfully.
  2050. //
  2051. // Use "Send" method on the returned Request to send the API call to the service.
  2052. // the "output" return value is not valid until after Send returns without error.
  2053. //
  2054. // See DeleteTags for more information on using the DeleteTags
  2055. // API call, and error handling.
  2056. //
  2057. // This method is useful when you want to inject custom logic or configuration
  2058. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2059. //
  2060. //
  2061. // // Example sending a request using the DeleteTagsRequest method.
  2062. // req, resp := client.DeleteTagsRequest(params)
  2063. //
  2064. // err := req.Send()
  2065. // if err == nil { // resp is now filled
  2066. // fmt.Println(resp)
  2067. // }
  2068. //
  2069. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags
  2070. func (c *SageMaker) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  2071. op := &request.Operation{
  2072. Name: opDeleteTags,
  2073. HTTPMethod: "POST",
  2074. HTTPPath: "/",
  2075. }
  2076. if input == nil {
  2077. input = &DeleteTagsInput{}
  2078. }
  2079. output = &DeleteTagsOutput{}
  2080. req = c.newRequest(op, input, output)
  2081. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2082. return
  2083. }
  2084. // DeleteTags API operation for Amazon SageMaker Service.
  2085. //
  2086. // Deletes the specified tags from an Amazon SageMaker resource.
  2087. //
  2088. // To list a resource's tags, use the ListTags API.
  2089. //
  2090. // When you call this API to delete tags from a hyperparameter tuning job, the
  2091. // deleted tags are not removed from training jobs that the hyperparameter tuning
  2092. // job launched before you called this API.
  2093. //
  2094. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2095. // with awserr.Error's Code and Message methods to get detailed information about
  2096. // the error.
  2097. //
  2098. // See the AWS API reference guide for Amazon SageMaker Service's
  2099. // API operation DeleteTags for usage and error information.
  2100. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags
  2101. func (c *SageMaker) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  2102. req, out := c.DeleteTagsRequest(input)
  2103. return out, req.Send()
  2104. }
  2105. // DeleteTagsWithContext is the same as DeleteTags with the addition of
  2106. // the ability to pass a context and additional request options.
  2107. //
  2108. // See DeleteTags for details on how to use this API operation.
  2109. //
  2110. // The context must be non-nil and will be used for request cancellation. If
  2111. // the context is nil a panic will occur. In the future the SDK may create
  2112. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2113. // for more information on using Contexts.
  2114. func (c *SageMaker) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
  2115. req, out := c.DeleteTagsRequest(input)
  2116. req.SetContext(ctx)
  2117. req.ApplyOptions(opts...)
  2118. return out, req.Send()
  2119. }
  2120. const opDeleteWorkteam = "DeleteWorkteam"
  2121. // DeleteWorkteamRequest generates a "aws/request.Request" representing the
  2122. // client's request for the DeleteWorkteam operation. The "output" return
  2123. // value will be populated with the request's response once the request completes
  2124. // successfully.
  2125. //
  2126. // Use "Send" method on the returned Request to send the API call to the service.
  2127. // the "output" return value is not valid until after Send returns without error.
  2128. //
  2129. // See DeleteWorkteam for more information on using the DeleteWorkteam
  2130. // API call, and error handling.
  2131. //
  2132. // This method is useful when you want to inject custom logic or configuration
  2133. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2134. //
  2135. //
  2136. // // Example sending a request using the DeleteWorkteamRequest method.
  2137. // req, resp := client.DeleteWorkteamRequest(params)
  2138. //
  2139. // err := req.Send()
  2140. // if err == nil { // resp is now filled
  2141. // fmt.Println(resp)
  2142. // }
  2143. //
  2144. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam
  2145. func (c *SageMaker) DeleteWorkteamRequest(input *DeleteWorkteamInput) (req *request.Request, output *DeleteWorkteamOutput) {
  2146. op := &request.Operation{
  2147. Name: opDeleteWorkteam,
  2148. HTTPMethod: "POST",
  2149. HTTPPath: "/",
  2150. }
  2151. if input == nil {
  2152. input = &DeleteWorkteamInput{}
  2153. }
  2154. output = &DeleteWorkteamOutput{}
  2155. req = c.newRequest(op, input, output)
  2156. return
  2157. }
  2158. // DeleteWorkteam API operation for Amazon SageMaker Service.
  2159. //
  2160. // Deletes an existing work team. This operation can't be undone.
  2161. //
  2162. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2163. // with awserr.Error's Code and Message methods to get detailed information about
  2164. // the error.
  2165. //
  2166. // See the AWS API reference guide for Amazon SageMaker Service's
  2167. // API operation DeleteWorkteam for usage and error information.
  2168. //
  2169. // Returned Error Codes:
  2170. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  2171. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  2172. // have too many training jobs created.
  2173. //
  2174. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam
  2175. func (c *SageMaker) DeleteWorkteam(input *DeleteWorkteamInput) (*DeleteWorkteamOutput, error) {
  2176. req, out := c.DeleteWorkteamRequest(input)
  2177. return out, req.Send()
  2178. }
  2179. // DeleteWorkteamWithContext is the same as DeleteWorkteam with the addition of
  2180. // the ability to pass a context and additional request options.
  2181. //
  2182. // See DeleteWorkteam for details on how to use this API operation.
  2183. //
  2184. // The context must be non-nil and will be used for request cancellation. If
  2185. // the context is nil a panic will occur. In the future the SDK may create
  2186. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2187. // for more information on using Contexts.
  2188. func (c *SageMaker) DeleteWorkteamWithContext(ctx aws.Context, input *DeleteWorkteamInput, opts ...request.Option) (*DeleteWorkteamOutput, error) {
  2189. req, out := c.DeleteWorkteamRequest(input)
  2190. req.SetContext(ctx)
  2191. req.ApplyOptions(opts...)
  2192. return out, req.Send()
  2193. }
  2194. const opDescribeAlgorithm = "DescribeAlgorithm"
  2195. // DescribeAlgorithmRequest generates a "aws/request.Request" representing the
  2196. // client's request for the DescribeAlgorithm operation. The "output" return
  2197. // value will be populated with the request's response once the request completes
  2198. // successfully.
  2199. //
  2200. // Use "Send" method on the returned Request to send the API call to the service.
  2201. // the "output" return value is not valid until after Send returns without error.
  2202. //
  2203. // See DescribeAlgorithm for more information on using the DescribeAlgorithm
  2204. // API call, and error handling.
  2205. //
  2206. // This method is useful when you want to inject custom logic or configuration
  2207. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2208. //
  2209. //
  2210. // // Example sending a request using the DescribeAlgorithmRequest method.
  2211. // req, resp := client.DescribeAlgorithmRequest(params)
  2212. //
  2213. // err := req.Send()
  2214. // if err == nil { // resp is now filled
  2215. // fmt.Println(resp)
  2216. // }
  2217. //
  2218. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm
  2219. func (c *SageMaker) DescribeAlgorithmRequest(input *DescribeAlgorithmInput) (req *request.Request, output *DescribeAlgorithmOutput) {
  2220. op := &request.Operation{
  2221. Name: opDescribeAlgorithm,
  2222. HTTPMethod: "POST",
  2223. HTTPPath: "/",
  2224. }
  2225. if input == nil {
  2226. input = &DescribeAlgorithmInput{}
  2227. }
  2228. output = &DescribeAlgorithmOutput{}
  2229. req = c.newRequest(op, input, output)
  2230. return
  2231. }
  2232. // DescribeAlgorithm API operation for Amazon SageMaker Service.
  2233. //
  2234. // Returns a description of the specified algorithm that is in your account.
  2235. //
  2236. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2237. // with awserr.Error's Code and Message methods to get detailed information about
  2238. // the error.
  2239. //
  2240. // See the AWS API reference guide for Amazon SageMaker Service's
  2241. // API operation DescribeAlgorithm for usage and error information.
  2242. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm
  2243. func (c *SageMaker) DescribeAlgorithm(input *DescribeAlgorithmInput) (*DescribeAlgorithmOutput, error) {
  2244. req, out := c.DescribeAlgorithmRequest(input)
  2245. return out, req.Send()
  2246. }
  2247. // DescribeAlgorithmWithContext is the same as DescribeAlgorithm with the addition of
  2248. // the ability to pass a context and additional request options.
  2249. //
  2250. // See DescribeAlgorithm for details on how to use this API operation.
  2251. //
  2252. // The context must be non-nil and will be used for request cancellation. If
  2253. // the context is nil a panic will occur. In the future the SDK may create
  2254. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2255. // for more information on using Contexts.
  2256. func (c *SageMaker) DescribeAlgorithmWithContext(ctx aws.Context, input *DescribeAlgorithmInput, opts ...request.Option) (*DescribeAlgorithmOutput, error) {
  2257. req, out := c.DescribeAlgorithmRequest(input)
  2258. req.SetContext(ctx)
  2259. req.ApplyOptions(opts...)
  2260. return out, req.Send()
  2261. }
  2262. const opDescribeCodeRepository = "DescribeCodeRepository"
  2263. // DescribeCodeRepositoryRequest generates a "aws/request.Request" representing the
  2264. // client's request for the DescribeCodeRepository operation. The "output" return
  2265. // value will be populated with the request's response once the request completes
  2266. // successfully.
  2267. //
  2268. // Use "Send" method on the returned Request to send the API call to the service.
  2269. // the "output" return value is not valid until after Send returns without error.
  2270. //
  2271. // See DescribeCodeRepository for more information on using the DescribeCodeRepository
  2272. // API call, and error handling.
  2273. //
  2274. // This method is useful when you want to inject custom logic or configuration
  2275. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2276. //
  2277. //
  2278. // // Example sending a request using the DescribeCodeRepositoryRequest method.
  2279. // req, resp := client.DescribeCodeRepositoryRequest(params)
  2280. //
  2281. // err := req.Send()
  2282. // if err == nil { // resp is now filled
  2283. // fmt.Println(resp)
  2284. // }
  2285. //
  2286. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository
  2287. func (c *SageMaker) DescribeCodeRepositoryRequest(input *DescribeCodeRepositoryInput) (req *request.Request, output *DescribeCodeRepositoryOutput) {
  2288. op := &request.Operation{
  2289. Name: opDescribeCodeRepository,
  2290. HTTPMethod: "POST",
  2291. HTTPPath: "/",
  2292. }
  2293. if input == nil {
  2294. input = &DescribeCodeRepositoryInput{}
  2295. }
  2296. output = &DescribeCodeRepositoryOutput{}
  2297. req = c.newRequest(op, input, output)
  2298. return
  2299. }
  2300. // DescribeCodeRepository API operation for Amazon SageMaker Service.
  2301. //
  2302. // Gets details about the specified Git repository.
  2303. //
  2304. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2305. // with awserr.Error's Code and Message methods to get detailed information about
  2306. // the error.
  2307. //
  2308. // See the AWS API reference guide for Amazon SageMaker Service's
  2309. // API operation DescribeCodeRepository for usage and error information.
  2310. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository
  2311. func (c *SageMaker) DescribeCodeRepository(input *DescribeCodeRepositoryInput) (*DescribeCodeRepositoryOutput, error) {
  2312. req, out := c.DescribeCodeRepositoryRequest(input)
  2313. return out, req.Send()
  2314. }
  2315. // DescribeCodeRepositoryWithContext is the same as DescribeCodeRepository with the addition of
  2316. // the ability to pass a context and additional request options.
  2317. //
  2318. // See DescribeCodeRepository for details on how to use this API operation.
  2319. //
  2320. // The context must be non-nil and will be used for request cancellation. If
  2321. // the context is nil a panic will occur. In the future the SDK may create
  2322. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2323. // for more information on using Contexts.
  2324. func (c *SageMaker) DescribeCodeRepositoryWithContext(ctx aws.Context, input *DescribeCodeRepositoryInput, opts ...request.Option) (*DescribeCodeRepositoryOutput, error) {
  2325. req, out := c.DescribeCodeRepositoryRequest(input)
  2326. req.SetContext(ctx)
  2327. req.ApplyOptions(opts...)
  2328. return out, req.Send()
  2329. }
  2330. const opDescribeCompilationJob = "DescribeCompilationJob"
  2331. // DescribeCompilationJobRequest generates a "aws/request.Request" representing the
  2332. // client's request for the DescribeCompilationJob operation. The "output" return
  2333. // value will be populated with the request's response once the request completes
  2334. // successfully.
  2335. //
  2336. // Use "Send" method on the returned Request to send the API call to the service.
  2337. // the "output" return value is not valid until after Send returns without error.
  2338. //
  2339. // See DescribeCompilationJob for more information on using the DescribeCompilationJob
  2340. // API call, and error handling.
  2341. //
  2342. // This method is useful when you want to inject custom logic or configuration
  2343. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2344. //
  2345. //
  2346. // // Example sending a request using the DescribeCompilationJobRequest method.
  2347. // req, resp := client.DescribeCompilationJobRequest(params)
  2348. //
  2349. // err := req.Send()
  2350. // if err == nil { // resp is now filled
  2351. // fmt.Println(resp)
  2352. // }
  2353. //
  2354. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob
  2355. func (c *SageMaker) DescribeCompilationJobRequest(input *DescribeCompilationJobInput) (req *request.Request, output *DescribeCompilationJobOutput) {
  2356. op := &request.Operation{
  2357. Name: opDescribeCompilationJob,
  2358. HTTPMethod: "POST",
  2359. HTTPPath: "/",
  2360. }
  2361. if input == nil {
  2362. input = &DescribeCompilationJobInput{}
  2363. }
  2364. output = &DescribeCompilationJobOutput{}
  2365. req = c.newRequest(op, input, output)
  2366. return
  2367. }
  2368. // DescribeCompilationJob API operation for Amazon SageMaker Service.
  2369. //
  2370. // Returns information about a model compilation job.
  2371. //
  2372. // To create a model compilation job, use CreateCompilationJob. To get information
  2373. // about multiple model compilation jobs, use ListCompilationJobs.
  2374. //
  2375. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2376. // with awserr.Error's Code and Message methods to get detailed information about
  2377. // the error.
  2378. //
  2379. // See the AWS API reference guide for Amazon SageMaker Service's
  2380. // API operation DescribeCompilationJob for usage and error information.
  2381. //
  2382. // Returned Error Codes:
  2383. // * ErrCodeResourceNotFound "ResourceNotFound"
  2384. // Resource being access is not found.
  2385. //
  2386. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob
  2387. func (c *SageMaker) DescribeCompilationJob(input *DescribeCompilationJobInput) (*DescribeCompilationJobOutput, error) {
  2388. req, out := c.DescribeCompilationJobRequest(input)
  2389. return out, req.Send()
  2390. }
  2391. // DescribeCompilationJobWithContext is the same as DescribeCompilationJob with the addition of
  2392. // the ability to pass a context and additional request options.
  2393. //
  2394. // See DescribeCompilationJob for details on how to use this API operation.
  2395. //
  2396. // The context must be non-nil and will be used for request cancellation. If
  2397. // the context is nil a panic will occur. In the future the SDK may create
  2398. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2399. // for more information on using Contexts.
  2400. func (c *SageMaker) DescribeCompilationJobWithContext(ctx aws.Context, input *DescribeCompilationJobInput, opts ...request.Option) (*DescribeCompilationJobOutput, error) {
  2401. req, out := c.DescribeCompilationJobRequest(input)
  2402. req.SetContext(ctx)
  2403. req.ApplyOptions(opts...)
  2404. return out, req.Send()
  2405. }
  2406. const opDescribeEndpoint = "DescribeEndpoint"
  2407. // DescribeEndpointRequest generates a "aws/request.Request" representing the
  2408. // client's request for the DescribeEndpoint operation. The "output" return
  2409. // value will be populated with the request's response once the request completes
  2410. // successfully.
  2411. //
  2412. // Use "Send" method on the returned Request to send the API call to the service.
  2413. // the "output" return value is not valid until after Send returns without error.
  2414. //
  2415. // See DescribeEndpoint for more information on using the DescribeEndpoint
  2416. // API call, and error handling.
  2417. //
  2418. // This method is useful when you want to inject custom logic or configuration
  2419. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2420. //
  2421. //
  2422. // // Example sending a request using the DescribeEndpointRequest method.
  2423. // req, resp := client.DescribeEndpointRequest(params)
  2424. //
  2425. // err := req.Send()
  2426. // if err == nil { // resp is now filled
  2427. // fmt.Println(resp)
  2428. // }
  2429. //
  2430. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint
  2431. func (c *SageMaker) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) {
  2432. op := &request.Operation{
  2433. Name: opDescribeEndpoint,
  2434. HTTPMethod: "POST",
  2435. HTTPPath: "/",
  2436. }
  2437. if input == nil {
  2438. input = &DescribeEndpointInput{}
  2439. }
  2440. output = &DescribeEndpointOutput{}
  2441. req = c.newRequest(op, input, output)
  2442. return
  2443. }
  2444. // DescribeEndpoint API operation for Amazon SageMaker Service.
  2445. //
  2446. // Returns the description of an endpoint.
  2447. //
  2448. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2449. // with awserr.Error's Code and Message methods to get detailed information about
  2450. // the error.
  2451. //
  2452. // See the AWS API reference guide for Amazon SageMaker Service's
  2453. // API operation DescribeEndpoint for usage and error information.
  2454. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint
  2455. func (c *SageMaker) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) {
  2456. req, out := c.DescribeEndpointRequest(input)
  2457. return out, req.Send()
  2458. }
  2459. // DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of
  2460. // the ability to pass a context and additional request options.
  2461. //
  2462. // See DescribeEndpoint for details on how to use this API operation.
  2463. //
  2464. // The context must be non-nil and will be used for request cancellation. If
  2465. // the context is nil a panic will occur. In the future the SDK may create
  2466. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2467. // for more information on using Contexts.
  2468. func (c *SageMaker) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) {
  2469. req, out := c.DescribeEndpointRequest(input)
  2470. req.SetContext(ctx)
  2471. req.ApplyOptions(opts...)
  2472. return out, req.Send()
  2473. }
  2474. const opDescribeEndpointConfig = "DescribeEndpointConfig"
  2475. // DescribeEndpointConfigRequest generates a "aws/request.Request" representing the
  2476. // client's request for the DescribeEndpointConfig operation. The "output" return
  2477. // value will be populated with the request's response once the request completes
  2478. // successfully.
  2479. //
  2480. // Use "Send" method on the returned Request to send the API call to the service.
  2481. // the "output" return value is not valid until after Send returns without error.
  2482. //
  2483. // See DescribeEndpointConfig for more information on using the DescribeEndpointConfig
  2484. // API call, and error handling.
  2485. //
  2486. // This method is useful when you want to inject custom logic or configuration
  2487. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2488. //
  2489. //
  2490. // // Example sending a request using the DescribeEndpointConfigRequest method.
  2491. // req, resp := client.DescribeEndpointConfigRequest(params)
  2492. //
  2493. // err := req.Send()
  2494. // if err == nil { // resp is now filled
  2495. // fmt.Println(resp)
  2496. // }
  2497. //
  2498. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig
  2499. func (c *SageMaker) DescribeEndpointConfigRequest(input *DescribeEndpointConfigInput) (req *request.Request, output *DescribeEndpointConfigOutput) {
  2500. op := &request.Operation{
  2501. Name: opDescribeEndpointConfig,
  2502. HTTPMethod: "POST",
  2503. HTTPPath: "/",
  2504. }
  2505. if input == nil {
  2506. input = &DescribeEndpointConfigInput{}
  2507. }
  2508. output = &DescribeEndpointConfigOutput{}
  2509. req = c.newRequest(op, input, output)
  2510. return
  2511. }
  2512. // DescribeEndpointConfig API operation for Amazon SageMaker Service.
  2513. //
  2514. // Returns the description of an endpoint configuration created using the CreateEndpointConfig
  2515. // API.
  2516. //
  2517. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2518. // with awserr.Error's Code and Message methods to get detailed information about
  2519. // the error.
  2520. //
  2521. // See the AWS API reference guide for Amazon SageMaker Service's
  2522. // API operation DescribeEndpointConfig for usage and error information.
  2523. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig
  2524. func (c *SageMaker) DescribeEndpointConfig(input *DescribeEndpointConfigInput) (*DescribeEndpointConfigOutput, error) {
  2525. req, out := c.DescribeEndpointConfigRequest(input)
  2526. return out, req.Send()
  2527. }
  2528. // DescribeEndpointConfigWithContext is the same as DescribeEndpointConfig with the addition of
  2529. // the ability to pass a context and additional request options.
  2530. //
  2531. // See DescribeEndpointConfig for details on how to use this API operation.
  2532. //
  2533. // The context must be non-nil and will be used for request cancellation. If
  2534. // the context is nil a panic will occur. In the future the SDK may create
  2535. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2536. // for more information on using Contexts.
  2537. func (c *SageMaker) DescribeEndpointConfigWithContext(ctx aws.Context, input *DescribeEndpointConfigInput, opts ...request.Option) (*DescribeEndpointConfigOutput, error) {
  2538. req, out := c.DescribeEndpointConfigRequest(input)
  2539. req.SetContext(ctx)
  2540. req.ApplyOptions(opts...)
  2541. return out, req.Send()
  2542. }
  2543. const opDescribeHyperParameterTuningJob = "DescribeHyperParameterTuningJob"
  2544. // DescribeHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
  2545. // client's request for the DescribeHyperParameterTuningJob operation. The "output" return
  2546. // value will be populated with the request's response once the request completes
  2547. // successfully.
  2548. //
  2549. // Use "Send" method on the returned Request to send the API call to the service.
  2550. // the "output" return value is not valid until after Send returns without error.
  2551. //
  2552. // See DescribeHyperParameterTuningJob for more information on using the DescribeHyperParameterTuningJob
  2553. // API call, and error handling.
  2554. //
  2555. // This method is useful when you want to inject custom logic or configuration
  2556. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2557. //
  2558. //
  2559. // // Example sending a request using the DescribeHyperParameterTuningJobRequest method.
  2560. // req, resp := client.DescribeHyperParameterTuningJobRequest(params)
  2561. //
  2562. // err := req.Send()
  2563. // if err == nil { // resp is now filled
  2564. // fmt.Println(resp)
  2565. // }
  2566. //
  2567. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob
  2568. func (c *SageMaker) DescribeHyperParameterTuningJobRequest(input *DescribeHyperParameterTuningJobInput) (req *request.Request, output *DescribeHyperParameterTuningJobOutput) {
  2569. op := &request.Operation{
  2570. Name: opDescribeHyperParameterTuningJob,
  2571. HTTPMethod: "POST",
  2572. HTTPPath: "/",
  2573. }
  2574. if input == nil {
  2575. input = &DescribeHyperParameterTuningJobInput{}
  2576. }
  2577. output = &DescribeHyperParameterTuningJobOutput{}
  2578. req = c.newRequest(op, input, output)
  2579. return
  2580. }
  2581. // DescribeHyperParameterTuningJob API operation for Amazon SageMaker Service.
  2582. //
  2583. // Gets a description of a hyperparameter tuning job.
  2584. //
  2585. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2586. // with awserr.Error's Code and Message methods to get detailed information about
  2587. // the error.
  2588. //
  2589. // See the AWS API reference guide for Amazon SageMaker Service's
  2590. // API operation DescribeHyperParameterTuningJob for usage and error information.
  2591. //
  2592. // Returned Error Codes:
  2593. // * ErrCodeResourceNotFound "ResourceNotFound"
  2594. // Resource being access is not found.
  2595. //
  2596. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob
  2597. func (c *SageMaker) DescribeHyperParameterTuningJob(input *DescribeHyperParameterTuningJobInput) (*DescribeHyperParameterTuningJobOutput, error) {
  2598. req, out := c.DescribeHyperParameterTuningJobRequest(input)
  2599. return out, req.Send()
  2600. }
  2601. // DescribeHyperParameterTuningJobWithContext is the same as DescribeHyperParameterTuningJob with the addition of
  2602. // the ability to pass a context and additional request options.
  2603. //
  2604. // See DescribeHyperParameterTuningJob for details on how to use this API operation.
  2605. //
  2606. // The context must be non-nil and will be used for request cancellation. If
  2607. // the context is nil a panic will occur. In the future the SDK may create
  2608. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2609. // for more information on using Contexts.
  2610. func (c *SageMaker) DescribeHyperParameterTuningJobWithContext(ctx aws.Context, input *DescribeHyperParameterTuningJobInput, opts ...request.Option) (*DescribeHyperParameterTuningJobOutput, error) {
  2611. req, out := c.DescribeHyperParameterTuningJobRequest(input)
  2612. req.SetContext(ctx)
  2613. req.ApplyOptions(opts...)
  2614. return out, req.Send()
  2615. }
  2616. const opDescribeLabelingJob = "DescribeLabelingJob"
  2617. // DescribeLabelingJobRequest generates a "aws/request.Request" representing the
  2618. // client's request for the DescribeLabelingJob operation. The "output" return
  2619. // value will be populated with the request's response once the request completes
  2620. // successfully.
  2621. //
  2622. // Use "Send" method on the returned Request to send the API call to the service.
  2623. // the "output" return value is not valid until after Send returns without error.
  2624. //
  2625. // See DescribeLabelingJob for more information on using the DescribeLabelingJob
  2626. // API call, and error handling.
  2627. //
  2628. // This method is useful when you want to inject custom logic or configuration
  2629. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2630. //
  2631. //
  2632. // // Example sending a request using the DescribeLabelingJobRequest method.
  2633. // req, resp := client.DescribeLabelingJobRequest(params)
  2634. //
  2635. // err := req.Send()
  2636. // if err == nil { // resp is now filled
  2637. // fmt.Println(resp)
  2638. // }
  2639. //
  2640. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob
  2641. func (c *SageMaker) DescribeLabelingJobRequest(input *DescribeLabelingJobInput) (req *request.Request, output *DescribeLabelingJobOutput) {
  2642. op := &request.Operation{
  2643. Name: opDescribeLabelingJob,
  2644. HTTPMethod: "POST",
  2645. HTTPPath: "/",
  2646. }
  2647. if input == nil {
  2648. input = &DescribeLabelingJobInput{}
  2649. }
  2650. output = &DescribeLabelingJobOutput{}
  2651. req = c.newRequest(op, input, output)
  2652. return
  2653. }
  2654. // DescribeLabelingJob API operation for Amazon SageMaker Service.
  2655. //
  2656. // Gets information about a labeling job.
  2657. //
  2658. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2659. // with awserr.Error's Code and Message methods to get detailed information about
  2660. // the error.
  2661. //
  2662. // See the AWS API reference guide for Amazon SageMaker Service's
  2663. // API operation DescribeLabelingJob for usage and error information.
  2664. //
  2665. // Returned Error Codes:
  2666. // * ErrCodeResourceNotFound "ResourceNotFound"
  2667. // Resource being access is not found.
  2668. //
  2669. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob
  2670. func (c *SageMaker) DescribeLabelingJob(input *DescribeLabelingJobInput) (*DescribeLabelingJobOutput, error) {
  2671. req, out := c.DescribeLabelingJobRequest(input)
  2672. return out, req.Send()
  2673. }
  2674. // DescribeLabelingJobWithContext is the same as DescribeLabelingJob with the addition of
  2675. // the ability to pass a context and additional request options.
  2676. //
  2677. // See DescribeLabelingJob for details on how to use this API operation.
  2678. //
  2679. // The context must be non-nil and will be used for request cancellation. If
  2680. // the context is nil a panic will occur. In the future the SDK may create
  2681. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2682. // for more information on using Contexts.
  2683. func (c *SageMaker) DescribeLabelingJobWithContext(ctx aws.Context, input *DescribeLabelingJobInput, opts ...request.Option) (*DescribeLabelingJobOutput, error) {
  2684. req, out := c.DescribeLabelingJobRequest(input)
  2685. req.SetContext(ctx)
  2686. req.ApplyOptions(opts...)
  2687. return out, req.Send()
  2688. }
  2689. const opDescribeModel = "DescribeModel"
  2690. // DescribeModelRequest generates a "aws/request.Request" representing the
  2691. // client's request for the DescribeModel operation. The "output" return
  2692. // value will be populated with the request's response once the request completes
  2693. // successfully.
  2694. //
  2695. // Use "Send" method on the returned Request to send the API call to the service.
  2696. // the "output" return value is not valid until after Send returns without error.
  2697. //
  2698. // See DescribeModel for more information on using the DescribeModel
  2699. // API call, and error handling.
  2700. //
  2701. // This method is useful when you want to inject custom logic or configuration
  2702. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2703. //
  2704. //
  2705. // // Example sending a request using the DescribeModelRequest method.
  2706. // req, resp := client.DescribeModelRequest(params)
  2707. //
  2708. // err := req.Send()
  2709. // if err == nil { // resp is now filled
  2710. // fmt.Println(resp)
  2711. // }
  2712. //
  2713. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel
  2714. func (c *SageMaker) DescribeModelRequest(input *DescribeModelInput) (req *request.Request, output *DescribeModelOutput) {
  2715. op := &request.Operation{
  2716. Name: opDescribeModel,
  2717. HTTPMethod: "POST",
  2718. HTTPPath: "/",
  2719. }
  2720. if input == nil {
  2721. input = &DescribeModelInput{}
  2722. }
  2723. output = &DescribeModelOutput{}
  2724. req = c.newRequest(op, input, output)
  2725. return
  2726. }
  2727. // DescribeModel API operation for Amazon SageMaker Service.
  2728. //
  2729. // Describes a model that you created using the CreateModel API.
  2730. //
  2731. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2732. // with awserr.Error's Code and Message methods to get detailed information about
  2733. // the error.
  2734. //
  2735. // See the AWS API reference guide for Amazon SageMaker Service's
  2736. // API operation DescribeModel for usage and error information.
  2737. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel
  2738. func (c *SageMaker) DescribeModel(input *DescribeModelInput) (*DescribeModelOutput, error) {
  2739. req, out := c.DescribeModelRequest(input)
  2740. return out, req.Send()
  2741. }
  2742. // DescribeModelWithContext is the same as DescribeModel with the addition of
  2743. // the ability to pass a context and additional request options.
  2744. //
  2745. // See DescribeModel for details on how to use this API operation.
  2746. //
  2747. // The context must be non-nil and will be used for request cancellation. If
  2748. // the context is nil a panic will occur. In the future the SDK may create
  2749. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2750. // for more information on using Contexts.
  2751. func (c *SageMaker) DescribeModelWithContext(ctx aws.Context, input *DescribeModelInput, opts ...request.Option) (*DescribeModelOutput, error) {
  2752. req, out := c.DescribeModelRequest(input)
  2753. req.SetContext(ctx)
  2754. req.ApplyOptions(opts...)
  2755. return out, req.Send()
  2756. }
  2757. const opDescribeModelPackage = "DescribeModelPackage"
  2758. // DescribeModelPackageRequest generates a "aws/request.Request" representing the
  2759. // client's request for the DescribeModelPackage operation. The "output" return
  2760. // value will be populated with the request's response once the request completes
  2761. // successfully.
  2762. //
  2763. // Use "Send" method on the returned Request to send the API call to the service.
  2764. // the "output" return value is not valid until after Send returns without error.
  2765. //
  2766. // See DescribeModelPackage for more information on using the DescribeModelPackage
  2767. // API call, and error handling.
  2768. //
  2769. // This method is useful when you want to inject custom logic or configuration
  2770. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2771. //
  2772. //
  2773. // // Example sending a request using the DescribeModelPackageRequest method.
  2774. // req, resp := client.DescribeModelPackageRequest(params)
  2775. //
  2776. // err := req.Send()
  2777. // if err == nil { // resp is now filled
  2778. // fmt.Println(resp)
  2779. // }
  2780. //
  2781. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage
  2782. func (c *SageMaker) DescribeModelPackageRequest(input *DescribeModelPackageInput) (req *request.Request, output *DescribeModelPackageOutput) {
  2783. op := &request.Operation{
  2784. Name: opDescribeModelPackage,
  2785. HTTPMethod: "POST",
  2786. HTTPPath: "/",
  2787. }
  2788. if input == nil {
  2789. input = &DescribeModelPackageInput{}
  2790. }
  2791. output = &DescribeModelPackageOutput{}
  2792. req = c.newRequest(op, input, output)
  2793. return
  2794. }
  2795. // DescribeModelPackage API operation for Amazon SageMaker Service.
  2796. //
  2797. // Returns a description of the specified model package, which is used to create
  2798. // Amazon SageMaker models or list them on AWS Marketplace.
  2799. //
  2800. // To create models in Amazon SageMaker, buyers can subscribe to model packages
  2801. // listed on AWS Marketplace.
  2802. //
  2803. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2804. // with awserr.Error's Code and Message methods to get detailed information about
  2805. // the error.
  2806. //
  2807. // See the AWS API reference guide for Amazon SageMaker Service's
  2808. // API operation DescribeModelPackage for usage and error information.
  2809. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage
  2810. func (c *SageMaker) DescribeModelPackage(input *DescribeModelPackageInput) (*DescribeModelPackageOutput, error) {
  2811. req, out := c.DescribeModelPackageRequest(input)
  2812. return out, req.Send()
  2813. }
  2814. // DescribeModelPackageWithContext is the same as DescribeModelPackage with the addition of
  2815. // the ability to pass a context and additional request options.
  2816. //
  2817. // See DescribeModelPackage for details on how to use this API operation.
  2818. //
  2819. // The context must be non-nil and will be used for request cancellation. If
  2820. // the context is nil a panic will occur. In the future the SDK may create
  2821. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2822. // for more information on using Contexts.
  2823. func (c *SageMaker) DescribeModelPackageWithContext(ctx aws.Context, input *DescribeModelPackageInput, opts ...request.Option) (*DescribeModelPackageOutput, error) {
  2824. req, out := c.DescribeModelPackageRequest(input)
  2825. req.SetContext(ctx)
  2826. req.ApplyOptions(opts...)
  2827. return out, req.Send()
  2828. }
  2829. const opDescribeNotebookInstance = "DescribeNotebookInstance"
  2830. // DescribeNotebookInstanceRequest generates a "aws/request.Request" representing the
  2831. // client's request for the DescribeNotebookInstance operation. The "output" return
  2832. // value will be populated with the request's response once the request completes
  2833. // successfully.
  2834. //
  2835. // Use "Send" method on the returned Request to send the API call to the service.
  2836. // the "output" return value is not valid until after Send returns without error.
  2837. //
  2838. // See DescribeNotebookInstance for more information on using the DescribeNotebookInstance
  2839. // API call, and error handling.
  2840. //
  2841. // This method is useful when you want to inject custom logic or configuration
  2842. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2843. //
  2844. //
  2845. // // Example sending a request using the DescribeNotebookInstanceRequest method.
  2846. // req, resp := client.DescribeNotebookInstanceRequest(params)
  2847. //
  2848. // err := req.Send()
  2849. // if err == nil { // resp is now filled
  2850. // fmt.Println(resp)
  2851. // }
  2852. //
  2853. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance
  2854. func (c *SageMaker) DescribeNotebookInstanceRequest(input *DescribeNotebookInstanceInput) (req *request.Request, output *DescribeNotebookInstanceOutput) {
  2855. op := &request.Operation{
  2856. Name: opDescribeNotebookInstance,
  2857. HTTPMethod: "POST",
  2858. HTTPPath: "/",
  2859. }
  2860. if input == nil {
  2861. input = &DescribeNotebookInstanceInput{}
  2862. }
  2863. output = &DescribeNotebookInstanceOutput{}
  2864. req = c.newRequest(op, input, output)
  2865. return
  2866. }
  2867. // DescribeNotebookInstance API operation for Amazon SageMaker Service.
  2868. //
  2869. // Returns information about a notebook instance.
  2870. //
  2871. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2872. // with awserr.Error's Code and Message methods to get detailed information about
  2873. // the error.
  2874. //
  2875. // See the AWS API reference guide for Amazon SageMaker Service's
  2876. // API operation DescribeNotebookInstance for usage and error information.
  2877. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance
  2878. func (c *SageMaker) DescribeNotebookInstance(input *DescribeNotebookInstanceInput) (*DescribeNotebookInstanceOutput, error) {
  2879. req, out := c.DescribeNotebookInstanceRequest(input)
  2880. return out, req.Send()
  2881. }
  2882. // DescribeNotebookInstanceWithContext is the same as DescribeNotebookInstance with the addition of
  2883. // the ability to pass a context and additional request options.
  2884. //
  2885. // See DescribeNotebookInstance for details on how to use this API operation.
  2886. //
  2887. // The context must be non-nil and will be used for request cancellation. If
  2888. // the context is nil a panic will occur. In the future the SDK may create
  2889. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2890. // for more information on using Contexts.
  2891. func (c *SageMaker) DescribeNotebookInstanceWithContext(ctx aws.Context, input *DescribeNotebookInstanceInput, opts ...request.Option) (*DescribeNotebookInstanceOutput, error) {
  2892. req, out := c.DescribeNotebookInstanceRequest(input)
  2893. req.SetContext(ctx)
  2894. req.ApplyOptions(opts...)
  2895. return out, req.Send()
  2896. }
  2897. const opDescribeNotebookInstanceLifecycleConfig = "DescribeNotebookInstanceLifecycleConfig"
  2898. // DescribeNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
  2899. // client's request for the DescribeNotebookInstanceLifecycleConfig operation. The "output" return
  2900. // value will be populated with the request's response once the request completes
  2901. // successfully.
  2902. //
  2903. // Use "Send" method on the returned Request to send the API call to the service.
  2904. // the "output" return value is not valid until after Send returns without error.
  2905. //
  2906. // See DescribeNotebookInstanceLifecycleConfig for more information on using the DescribeNotebookInstanceLifecycleConfig
  2907. // API call, and error handling.
  2908. //
  2909. // This method is useful when you want to inject custom logic or configuration
  2910. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2911. //
  2912. //
  2913. // // Example sending a request using the DescribeNotebookInstanceLifecycleConfigRequest method.
  2914. // req, resp := client.DescribeNotebookInstanceLifecycleConfigRequest(params)
  2915. //
  2916. // err := req.Send()
  2917. // if err == nil { // resp is now filled
  2918. // fmt.Println(resp)
  2919. // }
  2920. //
  2921. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig
  2922. func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigRequest(input *DescribeNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DescribeNotebookInstanceLifecycleConfigOutput) {
  2923. op := &request.Operation{
  2924. Name: opDescribeNotebookInstanceLifecycleConfig,
  2925. HTTPMethod: "POST",
  2926. HTTPPath: "/",
  2927. }
  2928. if input == nil {
  2929. input = &DescribeNotebookInstanceLifecycleConfigInput{}
  2930. }
  2931. output = &DescribeNotebookInstanceLifecycleConfigOutput{}
  2932. req = c.newRequest(op, input, output)
  2933. return
  2934. }
  2935. // DescribeNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
  2936. //
  2937. // Returns a description of a notebook instance lifecycle configuration.
  2938. //
  2939. // For information about notebook instance lifestyle configurations, see Step
  2940. // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
  2941. //
  2942. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2943. // with awserr.Error's Code and Message methods to get detailed information about
  2944. // the error.
  2945. //
  2946. // See the AWS API reference guide for Amazon SageMaker Service's
  2947. // API operation DescribeNotebookInstanceLifecycleConfig for usage and error information.
  2948. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig
  2949. func (c *SageMaker) DescribeNotebookInstanceLifecycleConfig(input *DescribeNotebookInstanceLifecycleConfigInput) (*DescribeNotebookInstanceLifecycleConfigOutput, error) {
  2950. req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input)
  2951. return out, req.Send()
  2952. }
  2953. // DescribeNotebookInstanceLifecycleConfigWithContext is the same as DescribeNotebookInstanceLifecycleConfig with the addition of
  2954. // the ability to pass a context and additional request options.
  2955. //
  2956. // See DescribeNotebookInstanceLifecycleConfig for details on how to use this API operation.
  2957. //
  2958. // The context must be non-nil and will be used for request cancellation. If
  2959. // the context is nil a panic will occur. In the future the SDK may create
  2960. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2961. // for more information on using Contexts.
  2962. func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DescribeNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DescribeNotebookInstanceLifecycleConfigOutput, error) {
  2963. req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input)
  2964. req.SetContext(ctx)
  2965. req.ApplyOptions(opts...)
  2966. return out, req.Send()
  2967. }
  2968. const opDescribeSubscribedWorkteam = "DescribeSubscribedWorkteam"
  2969. // DescribeSubscribedWorkteamRequest generates a "aws/request.Request" representing the
  2970. // client's request for the DescribeSubscribedWorkteam operation. The "output" return
  2971. // value will be populated with the request's response once the request completes
  2972. // successfully.
  2973. //
  2974. // Use "Send" method on the returned Request to send the API call to the service.
  2975. // the "output" return value is not valid until after Send returns without error.
  2976. //
  2977. // See DescribeSubscribedWorkteam for more information on using the DescribeSubscribedWorkteam
  2978. // API call, and error handling.
  2979. //
  2980. // This method is useful when you want to inject custom logic or configuration
  2981. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2982. //
  2983. //
  2984. // // Example sending a request using the DescribeSubscribedWorkteamRequest method.
  2985. // req, resp := client.DescribeSubscribedWorkteamRequest(params)
  2986. //
  2987. // err := req.Send()
  2988. // if err == nil { // resp is now filled
  2989. // fmt.Println(resp)
  2990. // }
  2991. //
  2992. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam
  2993. func (c *SageMaker) DescribeSubscribedWorkteamRequest(input *DescribeSubscribedWorkteamInput) (req *request.Request, output *DescribeSubscribedWorkteamOutput) {
  2994. op := &request.Operation{
  2995. Name: opDescribeSubscribedWorkteam,
  2996. HTTPMethod: "POST",
  2997. HTTPPath: "/",
  2998. }
  2999. if input == nil {
  3000. input = &DescribeSubscribedWorkteamInput{}
  3001. }
  3002. output = &DescribeSubscribedWorkteamOutput{}
  3003. req = c.newRequest(op, input, output)
  3004. return
  3005. }
  3006. // DescribeSubscribedWorkteam API operation for Amazon SageMaker Service.
  3007. //
  3008. // Gets information about a work team provided by a vendor. It returns details
  3009. // about the subscription with a vendor in the AWS Marketplace.
  3010. //
  3011. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3012. // with awserr.Error's Code and Message methods to get detailed information about
  3013. // the error.
  3014. //
  3015. // See the AWS API reference guide for Amazon SageMaker Service's
  3016. // API operation DescribeSubscribedWorkteam for usage and error information.
  3017. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam
  3018. func (c *SageMaker) DescribeSubscribedWorkteam(input *DescribeSubscribedWorkteamInput) (*DescribeSubscribedWorkteamOutput, error) {
  3019. req, out := c.DescribeSubscribedWorkteamRequest(input)
  3020. return out, req.Send()
  3021. }
  3022. // DescribeSubscribedWorkteamWithContext is the same as DescribeSubscribedWorkteam with the addition of
  3023. // the ability to pass a context and additional request options.
  3024. //
  3025. // See DescribeSubscribedWorkteam for details on how to use this API operation.
  3026. //
  3027. // The context must be non-nil and will be used for request cancellation. If
  3028. // the context is nil a panic will occur. In the future the SDK may create
  3029. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3030. // for more information on using Contexts.
  3031. func (c *SageMaker) DescribeSubscribedWorkteamWithContext(ctx aws.Context, input *DescribeSubscribedWorkteamInput, opts ...request.Option) (*DescribeSubscribedWorkteamOutput, error) {
  3032. req, out := c.DescribeSubscribedWorkteamRequest(input)
  3033. req.SetContext(ctx)
  3034. req.ApplyOptions(opts...)
  3035. return out, req.Send()
  3036. }
  3037. const opDescribeTrainingJob = "DescribeTrainingJob"
  3038. // DescribeTrainingJobRequest generates a "aws/request.Request" representing the
  3039. // client's request for the DescribeTrainingJob operation. The "output" return
  3040. // value will be populated with the request's response once the request completes
  3041. // successfully.
  3042. //
  3043. // Use "Send" method on the returned Request to send the API call to the service.
  3044. // the "output" return value is not valid until after Send returns without error.
  3045. //
  3046. // See DescribeTrainingJob for more information on using the DescribeTrainingJob
  3047. // API call, and error handling.
  3048. //
  3049. // This method is useful when you want to inject custom logic or configuration
  3050. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3051. //
  3052. //
  3053. // // Example sending a request using the DescribeTrainingJobRequest method.
  3054. // req, resp := client.DescribeTrainingJobRequest(params)
  3055. //
  3056. // err := req.Send()
  3057. // if err == nil { // resp is now filled
  3058. // fmt.Println(resp)
  3059. // }
  3060. //
  3061. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob
  3062. func (c *SageMaker) DescribeTrainingJobRequest(input *DescribeTrainingJobInput) (req *request.Request, output *DescribeTrainingJobOutput) {
  3063. op := &request.Operation{
  3064. Name: opDescribeTrainingJob,
  3065. HTTPMethod: "POST",
  3066. HTTPPath: "/",
  3067. }
  3068. if input == nil {
  3069. input = &DescribeTrainingJobInput{}
  3070. }
  3071. output = &DescribeTrainingJobOutput{}
  3072. req = c.newRequest(op, input, output)
  3073. return
  3074. }
  3075. // DescribeTrainingJob API operation for Amazon SageMaker Service.
  3076. //
  3077. // Returns information about a training job.
  3078. //
  3079. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3080. // with awserr.Error's Code and Message methods to get detailed information about
  3081. // the error.
  3082. //
  3083. // See the AWS API reference guide for Amazon SageMaker Service's
  3084. // API operation DescribeTrainingJob for usage and error information.
  3085. //
  3086. // Returned Error Codes:
  3087. // * ErrCodeResourceNotFound "ResourceNotFound"
  3088. // Resource being access is not found.
  3089. //
  3090. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob
  3091. func (c *SageMaker) DescribeTrainingJob(input *DescribeTrainingJobInput) (*DescribeTrainingJobOutput, error) {
  3092. req, out := c.DescribeTrainingJobRequest(input)
  3093. return out, req.Send()
  3094. }
  3095. // DescribeTrainingJobWithContext is the same as DescribeTrainingJob with the addition of
  3096. // the ability to pass a context and additional request options.
  3097. //
  3098. // See DescribeTrainingJob for details on how to use this API operation.
  3099. //
  3100. // The context must be non-nil and will be used for request cancellation. If
  3101. // the context is nil a panic will occur. In the future the SDK may create
  3102. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3103. // for more information on using Contexts.
  3104. func (c *SageMaker) DescribeTrainingJobWithContext(ctx aws.Context, input *DescribeTrainingJobInput, opts ...request.Option) (*DescribeTrainingJobOutput, error) {
  3105. req, out := c.DescribeTrainingJobRequest(input)
  3106. req.SetContext(ctx)
  3107. req.ApplyOptions(opts...)
  3108. return out, req.Send()
  3109. }
  3110. const opDescribeTransformJob = "DescribeTransformJob"
  3111. // DescribeTransformJobRequest generates a "aws/request.Request" representing the
  3112. // client's request for the DescribeTransformJob operation. The "output" return
  3113. // value will be populated with the request's response once the request completes
  3114. // successfully.
  3115. //
  3116. // Use "Send" method on the returned Request to send the API call to the service.
  3117. // the "output" return value is not valid until after Send returns without error.
  3118. //
  3119. // See DescribeTransformJob for more information on using the DescribeTransformJob
  3120. // API call, and error handling.
  3121. //
  3122. // This method is useful when you want to inject custom logic or configuration
  3123. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3124. //
  3125. //
  3126. // // Example sending a request using the DescribeTransformJobRequest method.
  3127. // req, resp := client.DescribeTransformJobRequest(params)
  3128. //
  3129. // err := req.Send()
  3130. // if err == nil { // resp is now filled
  3131. // fmt.Println(resp)
  3132. // }
  3133. //
  3134. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob
  3135. func (c *SageMaker) DescribeTransformJobRequest(input *DescribeTransformJobInput) (req *request.Request, output *DescribeTransformJobOutput) {
  3136. op := &request.Operation{
  3137. Name: opDescribeTransformJob,
  3138. HTTPMethod: "POST",
  3139. HTTPPath: "/",
  3140. }
  3141. if input == nil {
  3142. input = &DescribeTransformJobInput{}
  3143. }
  3144. output = &DescribeTransformJobOutput{}
  3145. req = c.newRequest(op, input, output)
  3146. return
  3147. }
  3148. // DescribeTransformJob API operation for Amazon SageMaker Service.
  3149. //
  3150. // Returns information about a transform job.
  3151. //
  3152. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3153. // with awserr.Error's Code and Message methods to get detailed information about
  3154. // the error.
  3155. //
  3156. // See the AWS API reference guide for Amazon SageMaker Service's
  3157. // API operation DescribeTransformJob for usage and error information.
  3158. //
  3159. // Returned Error Codes:
  3160. // * ErrCodeResourceNotFound "ResourceNotFound"
  3161. // Resource being access is not found.
  3162. //
  3163. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob
  3164. func (c *SageMaker) DescribeTransformJob(input *DescribeTransformJobInput) (*DescribeTransformJobOutput, error) {
  3165. req, out := c.DescribeTransformJobRequest(input)
  3166. return out, req.Send()
  3167. }
  3168. // DescribeTransformJobWithContext is the same as DescribeTransformJob with the addition of
  3169. // the ability to pass a context and additional request options.
  3170. //
  3171. // See DescribeTransformJob for details on how to use this API operation.
  3172. //
  3173. // The context must be non-nil and will be used for request cancellation. If
  3174. // the context is nil a panic will occur. In the future the SDK may create
  3175. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3176. // for more information on using Contexts.
  3177. func (c *SageMaker) DescribeTransformJobWithContext(ctx aws.Context, input *DescribeTransformJobInput, opts ...request.Option) (*DescribeTransformJobOutput, error) {
  3178. req, out := c.DescribeTransformJobRequest(input)
  3179. req.SetContext(ctx)
  3180. req.ApplyOptions(opts...)
  3181. return out, req.Send()
  3182. }
  3183. const opDescribeWorkteam = "DescribeWorkteam"
  3184. // DescribeWorkteamRequest generates a "aws/request.Request" representing the
  3185. // client's request for the DescribeWorkteam operation. The "output" return
  3186. // value will be populated with the request's response once the request completes
  3187. // successfully.
  3188. //
  3189. // Use "Send" method on the returned Request to send the API call to the service.
  3190. // the "output" return value is not valid until after Send returns without error.
  3191. //
  3192. // See DescribeWorkteam for more information on using the DescribeWorkteam
  3193. // API call, and error handling.
  3194. //
  3195. // This method is useful when you want to inject custom logic or configuration
  3196. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3197. //
  3198. //
  3199. // // Example sending a request using the DescribeWorkteamRequest method.
  3200. // req, resp := client.DescribeWorkteamRequest(params)
  3201. //
  3202. // err := req.Send()
  3203. // if err == nil { // resp is now filled
  3204. // fmt.Println(resp)
  3205. // }
  3206. //
  3207. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam
  3208. func (c *SageMaker) DescribeWorkteamRequest(input *DescribeWorkteamInput) (req *request.Request, output *DescribeWorkteamOutput) {
  3209. op := &request.Operation{
  3210. Name: opDescribeWorkteam,
  3211. HTTPMethod: "POST",
  3212. HTTPPath: "/",
  3213. }
  3214. if input == nil {
  3215. input = &DescribeWorkteamInput{}
  3216. }
  3217. output = &DescribeWorkteamOutput{}
  3218. req = c.newRequest(op, input, output)
  3219. return
  3220. }
  3221. // DescribeWorkteam API operation for Amazon SageMaker Service.
  3222. //
  3223. // Gets information about a specific work team. You can see information such
  3224. // as the create date, the last updated date, membership information, and the
  3225. // work team's Amazon Resource Name (ARN).
  3226. //
  3227. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3228. // with awserr.Error's Code and Message methods to get detailed information about
  3229. // the error.
  3230. //
  3231. // See the AWS API reference guide for Amazon SageMaker Service's
  3232. // API operation DescribeWorkteam for usage and error information.
  3233. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam
  3234. func (c *SageMaker) DescribeWorkteam(input *DescribeWorkteamInput) (*DescribeWorkteamOutput, error) {
  3235. req, out := c.DescribeWorkteamRequest(input)
  3236. return out, req.Send()
  3237. }
  3238. // DescribeWorkteamWithContext is the same as DescribeWorkteam with the addition of
  3239. // the ability to pass a context and additional request options.
  3240. //
  3241. // See DescribeWorkteam for details on how to use this API operation.
  3242. //
  3243. // The context must be non-nil and will be used for request cancellation. If
  3244. // the context is nil a panic will occur. In the future the SDK may create
  3245. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3246. // for more information on using Contexts.
  3247. func (c *SageMaker) DescribeWorkteamWithContext(ctx aws.Context, input *DescribeWorkteamInput, opts ...request.Option) (*DescribeWorkteamOutput, error) {
  3248. req, out := c.DescribeWorkteamRequest(input)
  3249. req.SetContext(ctx)
  3250. req.ApplyOptions(opts...)
  3251. return out, req.Send()
  3252. }
  3253. const opGetSearchSuggestions = "GetSearchSuggestions"
  3254. // GetSearchSuggestionsRequest generates a "aws/request.Request" representing the
  3255. // client's request for the GetSearchSuggestions operation. The "output" return
  3256. // value will be populated with the request's response once the request completes
  3257. // successfully.
  3258. //
  3259. // Use "Send" method on the returned Request to send the API call to the service.
  3260. // the "output" return value is not valid until after Send returns without error.
  3261. //
  3262. // See GetSearchSuggestions for more information on using the GetSearchSuggestions
  3263. // API call, and error handling.
  3264. //
  3265. // This method is useful when you want to inject custom logic or configuration
  3266. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3267. //
  3268. //
  3269. // // Example sending a request using the GetSearchSuggestionsRequest method.
  3270. // req, resp := client.GetSearchSuggestionsRequest(params)
  3271. //
  3272. // err := req.Send()
  3273. // if err == nil { // resp is now filled
  3274. // fmt.Println(resp)
  3275. // }
  3276. //
  3277. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions
  3278. func (c *SageMaker) GetSearchSuggestionsRequest(input *GetSearchSuggestionsInput) (req *request.Request, output *GetSearchSuggestionsOutput) {
  3279. op := &request.Operation{
  3280. Name: opGetSearchSuggestions,
  3281. HTTPMethod: "POST",
  3282. HTTPPath: "/",
  3283. }
  3284. if input == nil {
  3285. input = &GetSearchSuggestionsInput{}
  3286. }
  3287. output = &GetSearchSuggestionsOutput{}
  3288. req = c.newRequest(op, input, output)
  3289. return
  3290. }
  3291. // GetSearchSuggestions API operation for Amazon SageMaker Service.
  3292. //
  3293. // An auto-complete API for the search functionality in the Amazon SageMaker
  3294. // console. It returns suggestions of possible matches for the property name
  3295. // to use in Search queries. Provides suggestions for HyperParameters, Tags,
  3296. // and Metrics.
  3297. //
  3298. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3299. // with awserr.Error's Code and Message methods to get detailed information about
  3300. // the error.
  3301. //
  3302. // See the AWS API reference guide for Amazon SageMaker Service's
  3303. // API operation GetSearchSuggestions for usage and error information.
  3304. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions
  3305. func (c *SageMaker) GetSearchSuggestions(input *GetSearchSuggestionsInput) (*GetSearchSuggestionsOutput, error) {
  3306. req, out := c.GetSearchSuggestionsRequest(input)
  3307. return out, req.Send()
  3308. }
  3309. // GetSearchSuggestionsWithContext is the same as GetSearchSuggestions with the addition of
  3310. // the ability to pass a context and additional request options.
  3311. //
  3312. // See GetSearchSuggestions for details on how to use this API operation.
  3313. //
  3314. // The context must be non-nil and will be used for request cancellation. If
  3315. // the context is nil a panic will occur. In the future the SDK may create
  3316. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3317. // for more information on using Contexts.
  3318. func (c *SageMaker) GetSearchSuggestionsWithContext(ctx aws.Context, input *GetSearchSuggestionsInput, opts ...request.Option) (*GetSearchSuggestionsOutput, error) {
  3319. req, out := c.GetSearchSuggestionsRequest(input)
  3320. req.SetContext(ctx)
  3321. req.ApplyOptions(opts...)
  3322. return out, req.Send()
  3323. }
  3324. const opListAlgorithms = "ListAlgorithms"
  3325. // ListAlgorithmsRequest generates a "aws/request.Request" representing the
  3326. // client's request for the ListAlgorithms operation. The "output" return
  3327. // value will be populated with the request's response once the request completes
  3328. // successfully.
  3329. //
  3330. // Use "Send" method on the returned Request to send the API call to the service.
  3331. // the "output" return value is not valid until after Send returns without error.
  3332. //
  3333. // See ListAlgorithms for more information on using the ListAlgorithms
  3334. // API call, and error handling.
  3335. //
  3336. // This method is useful when you want to inject custom logic or configuration
  3337. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3338. //
  3339. //
  3340. // // Example sending a request using the ListAlgorithmsRequest method.
  3341. // req, resp := client.ListAlgorithmsRequest(params)
  3342. //
  3343. // err := req.Send()
  3344. // if err == nil { // resp is now filled
  3345. // fmt.Println(resp)
  3346. // }
  3347. //
  3348. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms
  3349. func (c *SageMaker) ListAlgorithmsRequest(input *ListAlgorithmsInput) (req *request.Request, output *ListAlgorithmsOutput) {
  3350. op := &request.Operation{
  3351. Name: opListAlgorithms,
  3352. HTTPMethod: "POST",
  3353. HTTPPath: "/",
  3354. }
  3355. if input == nil {
  3356. input = &ListAlgorithmsInput{}
  3357. }
  3358. output = &ListAlgorithmsOutput{}
  3359. req = c.newRequest(op, input, output)
  3360. return
  3361. }
  3362. // ListAlgorithms API operation for Amazon SageMaker Service.
  3363. //
  3364. // Lists the machine learning algorithms that have been created.
  3365. //
  3366. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3367. // with awserr.Error's Code and Message methods to get detailed information about
  3368. // the error.
  3369. //
  3370. // See the AWS API reference guide for Amazon SageMaker Service's
  3371. // API operation ListAlgorithms for usage and error information.
  3372. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms
  3373. func (c *SageMaker) ListAlgorithms(input *ListAlgorithmsInput) (*ListAlgorithmsOutput, error) {
  3374. req, out := c.ListAlgorithmsRequest(input)
  3375. return out, req.Send()
  3376. }
  3377. // ListAlgorithmsWithContext is the same as ListAlgorithms with the addition of
  3378. // the ability to pass a context and additional request options.
  3379. //
  3380. // See ListAlgorithms for details on how to use this API operation.
  3381. //
  3382. // The context must be non-nil and will be used for request cancellation. If
  3383. // the context is nil a panic will occur. In the future the SDK may create
  3384. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3385. // for more information on using Contexts.
  3386. func (c *SageMaker) ListAlgorithmsWithContext(ctx aws.Context, input *ListAlgorithmsInput, opts ...request.Option) (*ListAlgorithmsOutput, error) {
  3387. req, out := c.ListAlgorithmsRequest(input)
  3388. req.SetContext(ctx)
  3389. req.ApplyOptions(opts...)
  3390. return out, req.Send()
  3391. }
  3392. const opListCodeRepositories = "ListCodeRepositories"
  3393. // ListCodeRepositoriesRequest generates a "aws/request.Request" representing the
  3394. // client's request for the ListCodeRepositories operation. The "output" return
  3395. // value will be populated with the request's response once the request completes
  3396. // successfully.
  3397. //
  3398. // Use "Send" method on the returned Request to send the API call to the service.
  3399. // the "output" return value is not valid until after Send returns without error.
  3400. //
  3401. // See ListCodeRepositories for more information on using the ListCodeRepositories
  3402. // API call, and error handling.
  3403. //
  3404. // This method is useful when you want to inject custom logic or configuration
  3405. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3406. //
  3407. //
  3408. // // Example sending a request using the ListCodeRepositoriesRequest method.
  3409. // req, resp := client.ListCodeRepositoriesRequest(params)
  3410. //
  3411. // err := req.Send()
  3412. // if err == nil { // resp is now filled
  3413. // fmt.Println(resp)
  3414. // }
  3415. //
  3416. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories
  3417. func (c *SageMaker) ListCodeRepositoriesRequest(input *ListCodeRepositoriesInput) (req *request.Request, output *ListCodeRepositoriesOutput) {
  3418. op := &request.Operation{
  3419. Name: opListCodeRepositories,
  3420. HTTPMethod: "POST",
  3421. HTTPPath: "/",
  3422. }
  3423. if input == nil {
  3424. input = &ListCodeRepositoriesInput{}
  3425. }
  3426. output = &ListCodeRepositoriesOutput{}
  3427. req = c.newRequest(op, input, output)
  3428. return
  3429. }
  3430. // ListCodeRepositories API operation for Amazon SageMaker Service.
  3431. //
  3432. // Gets a list of the Git repositories in your account.
  3433. //
  3434. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3435. // with awserr.Error's Code and Message methods to get detailed information about
  3436. // the error.
  3437. //
  3438. // See the AWS API reference guide for Amazon SageMaker Service's
  3439. // API operation ListCodeRepositories for usage and error information.
  3440. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories
  3441. func (c *SageMaker) ListCodeRepositories(input *ListCodeRepositoriesInput) (*ListCodeRepositoriesOutput, error) {
  3442. req, out := c.ListCodeRepositoriesRequest(input)
  3443. return out, req.Send()
  3444. }
  3445. // ListCodeRepositoriesWithContext is the same as ListCodeRepositories with the addition of
  3446. // the ability to pass a context and additional request options.
  3447. //
  3448. // See ListCodeRepositories for details on how to use this API operation.
  3449. //
  3450. // The context must be non-nil and will be used for request cancellation. If
  3451. // the context is nil a panic will occur. In the future the SDK may create
  3452. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3453. // for more information on using Contexts.
  3454. func (c *SageMaker) ListCodeRepositoriesWithContext(ctx aws.Context, input *ListCodeRepositoriesInput, opts ...request.Option) (*ListCodeRepositoriesOutput, error) {
  3455. req, out := c.ListCodeRepositoriesRequest(input)
  3456. req.SetContext(ctx)
  3457. req.ApplyOptions(opts...)
  3458. return out, req.Send()
  3459. }
  3460. const opListCompilationJobs = "ListCompilationJobs"
  3461. // ListCompilationJobsRequest generates a "aws/request.Request" representing the
  3462. // client's request for the ListCompilationJobs operation. The "output" return
  3463. // value will be populated with the request's response once the request completes
  3464. // successfully.
  3465. //
  3466. // Use "Send" method on the returned Request to send the API call to the service.
  3467. // the "output" return value is not valid until after Send returns without error.
  3468. //
  3469. // See ListCompilationJobs for more information on using the ListCompilationJobs
  3470. // API call, and error handling.
  3471. //
  3472. // This method is useful when you want to inject custom logic or configuration
  3473. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3474. //
  3475. //
  3476. // // Example sending a request using the ListCompilationJobsRequest method.
  3477. // req, resp := client.ListCompilationJobsRequest(params)
  3478. //
  3479. // err := req.Send()
  3480. // if err == nil { // resp is now filled
  3481. // fmt.Println(resp)
  3482. // }
  3483. //
  3484. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs
  3485. func (c *SageMaker) ListCompilationJobsRequest(input *ListCompilationJobsInput) (req *request.Request, output *ListCompilationJobsOutput) {
  3486. op := &request.Operation{
  3487. Name: opListCompilationJobs,
  3488. HTTPMethod: "POST",
  3489. HTTPPath: "/",
  3490. Paginator: &request.Paginator{
  3491. InputTokens: []string{"NextToken"},
  3492. OutputTokens: []string{"NextToken"},
  3493. LimitToken: "MaxResults",
  3494. TruncationToken: "",
  3495. },
  3496. }
  3497. if input == nil {
  3498. input = &ListCompilationJobsInput{}
  3499. }
  3500. output = &ListCompilationJobsOutput{}
  3501. req = c.newRequest(op, input, output)
  3502. return
  3503. }
  3504. // ListCompilationJobs API operation for Amazon SageMaker Service.
  3505. //
  3506. // Lists model compilation jobs that satisfy various filters.
  3507. //
  3508. // To create a model compilation job, use CreateCompilationJob. To get information
  3509. // about a particular model compilation job you have created, use DescribeCompilationJob.
  3510. //
  3511. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3512. // with awserr.Error's Code and Message methods to get detailed information about
  3513. // the error.
  3514. //
  3515. // See the AWS API reference guide for Amazon SageMaker Service's
  3516. // API operation ListCompilationJobs for usage and error information.
  3517. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs
  3518. func (c *SageMaker) ListCompilationJobs(input *ListCompilationJobsInput) (*ListCompilationJobsOutput, error) {
  3519. req, out := c.ListCompilationJobsRequest(input)
  3520. return out, req.Send()
  3521. }
  3522. // ListCompilationJobsWithContext is the same as ListCompilationJobs with the addition of
  3523. // the ability to pass a context and additional request options.
  3524. //
  3525. // See ListCompilationJobs for details on how to use this API operation.
  3526. //
  3527. // The context must be non-nil and will be used for request cancellation. If
  3528. // the context is nil a panic will occur. In the future the SDK may create
  3529. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3530. // for more information on using Contexts.
  3531. func (c *SageMaker) ListCompilationJobsWithContext(ctx aws.Context, input *ListCompilationJobsInput, opts ...request.Option) (*ListCompilationJobsOutput, error) {
  3532. req, out := c.ListCompilationJobsRequest(input)
  3533. req.SetContext(ctx)
  3534. req.ApplyOptions(opts...)
  3535. return out, req.Send()
  3536. }
  3537. // ListCompilationJobsPages iterates over the pages of a ListCompilationJobs operation,
  3538. // calling the "fn" function with the response data for each page. To stop
  3539. // iterating, return false from the fn function.
  3540. //
  3541. // See ListCompilationJobs method for more information on how to use this operation.
  3542. //
  3543. // Note: This operation can generate multiple requests to a service.
  3544. //
  3545. // // Example iterating over at most 3 pages of a ListCompilationJobs operation.
  3546. // pageNum := 0
  3547. // err := client.ListCompilationJobsPages(params,
  3548. // func(page *ListCompilationJobsOutput, lastPage bool) bool {
  3549. // pageNum++
  3550. // fmt.Println(page)
  3551. // return pageNum <= 3
  3552. // })
  3553. //
  3554. func (c *SageMaker) ListCompilationJobsPages(input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool) error {
  3555. return c.ListCompilationJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  3556. }
  3557. // ListCompilationJobsPagesWithContext same as ListCompilationJobsPages except
  3558. // it takes a Context and allows setting request options on the pages.
  3559. //
  3560. // The context must be non-nil and will be used for request cancellation. If
  3561. // the context is nil a panic will occur. In the future the SDK may create
  3562. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3563. // for more information on using Contexts.
  3564. func (c *SageMaker) ListCompilationJobsPagesWithContext(ctx aws.Context, input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool, opts ...request.Option) error {
  3565. p := request.Pagination{
  3566. NewRequest: func() (*request.Request, error) {
  3567. var inCpy *ListCompilationJobsInput
  3568. if input != nil {
  3569. tmp := *input
  3570. inCpy = &tmp
  3571. }
  3572. req, _ := c.ListCompilationJobsRequest(inCpy)
  3573. req.SetContext(ctx)
  3574. req.ApplyOptions(opts...)
  3575. return req, nil
  3576. },
  3577. }
  3578. cont := true
  3579. for p.Next() && cont {
  3580. cont = fn(p.Page().(*ListCompilationJobsOutput), !p.HasNextPage())
  3581. }
  3582. return p.Err()
  3583. }
  3584. const opListEndpointConfigs = "ListEndpointConfigs"
  3585. // ListEndpointConfigsRequest generates a "aws/request.Request" representing the
  3586. // client's request for the ListEndpointConfigs operation. The "output" return
  3587. // value will be populated with the request's response once the request completes
  3588. // successfully.
  3589. //
  3590. // Use "Send" method on the returned Request to send the API call to the service.
  3591. // the "output" return value is not valid until after Send returns without error.
  3592. //
  3593. // See ListEndpointConfigs for more information on using the ListEndpointConfigs
  3594. // API call, and error handling.
  3595. //
  3596. // This method is useful when you want to inject custom logic or configuration
  3597. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3598. //
  3599. //
  3600. // // Example sending a request using the ListEndpointConfigsRequest method.
  3601. // req, resp := client.ListEndpointConfigsRequest(params)
  3602. //
  3603. // err := req.Send()
  3604. // if err == nil { // resp is now filled
  3605. // fmt.Println(resp)
  3606. // }
  3607. //
  3608. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs
  3609. func (c *SageMaker) ListEndpointConfigsRequest(input *ListEndpointConfigsInput) (req *request.Request, output *ListEndpointConfigsOutput) {
  3610. op := &request.Operation{
  3611. Name: opListEndpointConfigs,
  3612. HTTPMethod: "POST",
  3613. HTTPPath: "/",
  3614. Paginator: &request.Paginator{
  3615. InputTokens: []string{"NextToken"},
  3616. OutputTokens: []string{"NextToken"},
  3617. LimitToken: "MaxResults",
  3618. TruncationToken: "",
  3619. },
  3620. }
  3621. if input == nil {
  3622. input = &ListEndpointConfigsInput{}
  3623. }
  3624. output = &ListEndpointConfigsOutput{}
  3625. req = c.newRequest(op, input, output)
  3626. return
  3627. }
  3628. // ListEndpointConfigs API operation for Amazon SageMaker Service.
  3629. //
  3630. // Lists endpoint configurations.
  3631. //
  3632. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3633. // with awserr.Error's Code and Message methods to get detailed information about
  3634. // the error.
  3635. //
  3636. // See the AWS API reference guide for Amazon SageMaker Service's
  3637. // API operation ListEndpointConfigs for usage and error information.
  3638. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs
  3639. func (c *SageMaker) ListEndpointConfigs(input *ListEndpointConfigsInput) (*ListEndpointConfigsOutput, error) {
  3640. req, out := c.ListEndpointConfigsRequest(input)
  3641. return out, req.Send()
  3642. }
  3643. // ListEndpointConfigsWithContext is the same as ListEndpointConfigs with the addition of
  3644. // the ability to pass a context and additional request options.
  3645. //
  3646. // See ListEndpointConfigs for details on how to use this API operation.
  3647. //
  3648. // The context must be non-nil and will be used for request cancellation. If
  3649. // the context is nil a panic will occur. In the future the SDK may create
  3650. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3651. // for more information on using Contexts.
  3652. func (c *SageMaker) ListEndpointConfigsWithContext(ctx aws.Context, input *ListEndpointConfigsInput, opts ...request.Option) (*ListEndpointConfigsOutput, error) {
  3653. req, out := c.ListEndpointConfigsRequest(input)
  3654. req.SetContext(ctx)
  3655. req.ApplyOptions(opts...)
  3656. return out, req.Send()
  3657. }
  3658. // ListEndpointConfigsPages iterates over the pages of a ListEndpointConfigs operation,
  3659. // calling the "fn" function with the response data for each page. To stop
  3660. // iterating, return false from the fn function.
  3661. //
  3662. // See ListEndpointConfigs method for more information on how to use this operation.
  3663. //
  3664. // Note: This operation can generate multiple requests to a service.
  3665. //
  3666. // // Example iterating over at most 3 pages of a ListEndpointConfigs operation.
  3667. // pageNum := 0
  3668. // err := client.ListEndpointConfigsPages(params,
  3669. // func(page *ListEndpointConfigsOutput, lastPage bool) bool {
  3670. // pageNum++
  3671. // fmt.Println(page)
  3672. // return pageNum <= 3
  3673. // })
  3674. //
  3675. func (c *SageMaker) ListEndpointConfigsPages(input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool) error {
  3676. return c.ListEndpointConfigsPagesWithContext(aws.BackgroundContext(), input, fn)
  3677. }
  3678. // ListEndpointConfigsPagesWithContext same as ListEndpointConfigsPages except
  3679. // it takes a Context and allows setting request options on the pages.
  3680. //
  3681. // The context must be non-nil and will be used for request cancellation. If
  3682. // the context is nil a panic will occur. In the future the SDK may create
  3683. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3684. // for more information on using Contexts.
  3685. func (c *SageMaker) ListEndpointConfigsPagesWithContext(ctx aws.Context, input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool, opts ...request.Option) error {
  3686. p := request.Pagination{
  3687. NewRequest: func() (*request.Request, error) {
  3688. var inCpy *ListEndpointConfigsInput
  3689. if input != nil {
  3690. tmp := *input
  3691. inCpy = &tmp
  3692. }
  3693. req, _ := c.ListEndpointConfigsRequest(inCpy)
  3694. req.SetContext(ctx)
  3695. req.ApplyOptions(opts...)
  3696. return req, nil
  3697. },
  3698. }
  3699. cont := true
  3700. for p.Next() && cont {
  3701. cont = fn(p.Page().(*ListEndpointConfigsOutput), !p.HasNextPage())
  3702. }
  3703. return p.Err()
  3704. }
  3705. const opListEndpoints = "ListEndpoints"
  3706. // ListEndpointsRequest generates a "aws/request.Request" representing the
  3707. // client's request for the ListEndpoints operation. The "output" return
  3708. // value will be populated with the request's response once the request completes
  3709. // successfully.
  3710. //
  3711. // Use "Send" method on the returned Request to send the API call to the service.
  3712. // the "output" return value is not valid until after Send returns without error.
  3713. //
  3714. // See ListEndpoints for more information on using the ListEndpoints
  3715. // API call, and error handling.
  3716. //
  3717. // This method is useful when you want to inject custom logic or configuration
  3718. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3719. //
  3720. //
  3721. // // Example sending a request using the ListEndpointsRequest method.
  3722. // req, resp := client.ListEndpointsRequest(params)
  3723. //
  3724. // err := req.Send()
  3725. // if err == nil { // resp is now filled
  3726. // fmt.Println(resp)
  3727. // }
  3728. //
  3729. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints
  3730. func (c *SageMaker) ListEndpointsRequest(input *ListEndpointsInput) (req *request.Request, output *ListEndpointsOutput) {
  3731. op := &request.Operation{
  3732. Name: opListEndpoints,
  3733. HTTPMethod: "POST",
  3734. HTTPPath: "/",
  3735. Paginator: &request.Paginator{
  3736. InputTokens: []string{"NextToken"},
  3737. OutputTokens: []string{"NextToken"},
  3738. LimitToken: "MaxResults",
  3739. TruncationToken: "",
  3740. },
  3741. }
  3742. if input == nil {
  3743. input = &ListEndpointsInput{}
  3744. }
  3745. output = &ListEndpointsOutput{}
  3746. req = c.newRequest(op, input, output)
  3747. return
  3748. }
  3749. // ListEndpoints API operation for Amazon SageMaker Service.
  3750. //
  3751. // Lists endpoints.
  3752. //
  3753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3754. // with awserr.Error's Code and Message methods to get detailed information about
  3755. // the error.
  3756. //
  3757. // See the AWS API reference guide for Amazon SageMaker Service's
  3758. // API operation ListEndpoints for usage and error information.
  3759. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints
  3760. func (c *SageMaker) ListEndpoints(input *ListEndpointsInput) (*ListEndpointsOutput, error) {
  3761. req, out := c.ListEndpointsRequest(input)
  3762. return out, req.Send()
  3763. }
  3764. // ListEndpointsWithContext is the same as ListEndpoints with the addition of
  3765. // the ability to pass a context and additional request options.
  3766. //
  3767. // See ListEndpoints for details on how to use this API operation.
  3768. //
  3769. // The context must be non-nil and will be used for request cancellation. If
  3770. // the context is nil a panic will occur. In the future the SDK may create
  3771. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3772. // for more information on using Contexts.
  3773. func (c *SageMaker) ListEndpointsWithContext(ctx aws.Context, input *ListEndpointsInput, opts ...request.Option) (*ListEndpointsOutput, error) {
  3774. req, out := c.ListEndpointsRequest(input)
  3775. req.SetContext(ctx)
  3776. req.ApplyOptions(opts...)
  3777. return out, req.Send()
  3778. }
  3779. // ListEndpointsPages iterates over the pages of a ListEndpoints operation,
  3780. // calling the "fn" function with the response data for each page. To stop
  3781. // iterating, return false from the fn function.
  3782. //
  3783. // See ListEndpoints method for more information on how to use this operation.
  3784. //
  3785. // Note: This operation can generate multiple requests to a service.
  3786. //
  3787. // // Example iterating over at most 3 pages of a ListEndpoints operation.
  3788. // pageNum := 0
  3789. // err := client.ListEndpointsPages(params,
  3790. // func(page *ListEndpointsOutput, lastPage bool) bool {
  3791. // pageNum++
  3792. // fmt.Println(page)
  3793. // return pageNum <= 3
  3794. // })
  3795. //
  3796. func (c *SageMaker) ListEndpointsPages(input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool) error {
  3797. return c.ListEndpointsPagesWithContext(aws.BackgroundContext(), input, fn)
  3798. }
  3799. // ListEndpointsPagesWithContext same as ListEndpointsPages except
  3800. // it takes a Context and allows setting request options on the pages.
  3801. //
  3802. // The context must be non-nil and will be used for request cancellation. If
  3803. // the context is nil a panic will occur. In the future the SDK may create
  3804. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3805. // for more information on using Contexts.
  3806. func (c *SageMaker) ListEndpointsPagesWithContext(ctx aws.Context, input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool, opts ...request.Option) error {
  3807. p := request.Pagination{
  3808. NewRequest: func() (*request.Request, error) {
  3809. var inCpy *ListEndpointsInput
  3810. if input != nil {
  3811. tmp := *input
  3812. inCpy = &tmp
  3813. }
  3814. req, _ := c.ListEndpointsRequest(inCpy)
  3815. req.SetContext(ctx)
  3816. req.ApplyOptions(opts...)
  3817. return req, nil
  3818. },
  3819. }
  3820. cont := true
  3821. for p.Next() && cont {
  3822. cont = fn(p.Page().(*ListEndpointsOutput), !p.HasNextPage())
  3823. }
  3824. return p.Err()
  3825. }
  3826. const opListHyperParameterTuningJobs = "ListHyperParameterTuningJobs"
  3827. // ListHyperParameterTuningJobsRequest generates a "aws/request.Request" representing the
  3828. // client's request for the ListHyperParameterTuningJobs operation. The "output" return
  3829. // value will be populated with the request's response once the request completes
  3830. // successfully.
  3831. //
  3832. // Use "Send" method on the returned Request to send the API call to the service.
  3833. // the "output" return value is not valid until after Send returns without error.
  3834. //
  3835. // See ListHyperParameterTuningJobs for more information on using the ListHyperParameterTuningJobs
  3836. // API call, and error handling.
  3837. //
  3838. // This method is useful when you want to inject custom logic or configuration
  3839. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3840. //
  3841. //
  3842. // // Example sending a request using the ListHyperParameterTuningJobsRequest method.
  3843. // req, resp := client.ListHyperParameterTuningJobsRequest(params)
  3844. //
  3845. // err := req.Send()
  3846. // if err == nil { // resp is now filled
  3847. // fmt.Println(resp)
  3848. // }
  3849. //
  3850. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs
  3851. func (c *SageMaker) ListHyperParameterTuningJobsRequest(input *ListHyperParameterTuningJobsInput) (req *request.Request, output *ListHyperParameterTuningJobsOutput) {
  3852. op := &request.Operation{
  3853. Name: opListHyperParameterTuningJobs,
  3854. HTTPMethod: "POST",
  3855. HTTPPath: "/",
  3856. Paginator: &request.Paginator{
  3857. InputTokens: []string{"NextToken"},
  3858. OutputTokens: []string{"NextToken"},
  3859. LimitToken: "MaxResults",
  3860. TruncationToken: "",
  3861. },
  3862. }
  3863. if input == nil {
  3864. input = &ListHyperParameterTuningJobsInput{}
  3865. }
  3866. output = &ListHyperParameterTuningJobsOutput{}
  3867. req = c.newRequest(op, input, output)
  3868. return
  3869. }
  3870. // ListHyperParameterTuningJobs API operation for Amazon SageMaker Service.
  3871. //
  3872. // Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter
  3873. // tuning jobs launched in your account.
  3874. //
  3875. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3876. // with awserr.Error's Code and Message methods to get detailed information about
  3877. // the error.
  3878. //
  3879. // See the AWS API reference guide for Amazon SageMaker Service's
  3880. // API operation ListHyperParameterTuningJobs for usage and error information.
  3881. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs
  3882. func (c *SageMaker) ListHyperParameterTuningJobs(input *ListHyperParameterTuningJobsInput) (*ListHyperParameterTuningJobsOutput, error) {
  3883. req, out := c.ListHyperParameterTuningJobsRequest(input)
  3884. return out, req.Send()
  3885. }
  3886. // ListHyperParameterTuningJobsWithContext is the same as ListHyperParameterTuningJobs with the addition of
  3887. // the ability to pass a context and additional request options.
  3888. //
  3889. // See ListHyperParameterTuningJobs for details on how to use this API operation.
  3890. //
  3891. // The context must be non-nil and will be used for request cancellation. If
  3892. // the context is nil a panic will occur. In the future the SDK may create
  3893. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3894. // for more information on using Contexts.
  3895. func (c *SageMaker) ListHyperParameterTuningJobsWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, opts ...request.Option) (*ListHyperParameterTuningJobsOutput, error) {
  3896. req, out := c.ListHyperParameterTuningJobsRequest(input)
  3897. req.SetContext(ctx)
  3898. req.ApplyOptions(opts...)
  3899. return out, req.Send()
  3900. }
  3901. // ListHyperParameterTuningJobsPages iterates over the pages of a ListHyperParameterTuningJobs operation,
  3902. // calling the "fn" function with the response data for each page. To stop
  3903. // iterating, return false from the fn function.
  3904. //
  3905. // See ListHyperParameterTuningJobs method for more information on how to use this operation.
  3906. //
  3907. // Note: This operation can generate multiple requests to a service.
  3908. //
  3909. // // Example iterating over at most 3 pages of a ListHyperParameterTuningJobs operation.
  3910. // pageNum := 0
  3911. // err := client.ListHyperParameterTuningJobsPages(params,
  3912. // func(page *ListHyperParameterTuningJobsOutput, lastPage bool) bool {
  3913. // pageNum++
  3914. // fmt.Println(page)
  3915. // return pageNum <= 3
  3916. // })
  3917. //
  3918. func (c *SageMaker) ListHyperParameterTuningJobsPages(input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool) error {
  3919. return c.ListHyperParameterTuningJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  3920. }
  3921. // ListHyperParameterTuningJobsPagesWithContext same as ListHyperParameterTuningJobsPages except
  3922. // it takes a Context and allows setting request options on the pages.
  3923. //
  3924. // The context must be non-nil and will be used for request cancellation. If
  3925. // the context is nil a panic will occur. In the future the SDK may create
  3926. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3927. // for more information on using Contexts.
  3928. func (c *SageMaker) ListHyperParameterTuningJobsPagesWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool, opts ...request.Option) error {
  3929. p := request.Pagination{
  3930. NewRequest: func() (*request.Request, error) {
  3931. var inCpy *ListHyperParameterTuningJobsInput
  3932. if input != nil {
  3933. tmp := *input
  3934. inCpy = &tmp
  3935. }
  3936. req, _ := c.ListHyperParameterTuningJobsRequest(inCpy)
  3937. req.SetContext(ctx)
  3938. req.ApplyOptions(opts...)
  3939. return req, nil
  3940. },
  3941. }
  3942. cont := true
  3943. for p.Next() && cont {
  3944. cont = fn(p.Page().(*ListHyperParameterTuningJobsOutput), !p.HasNextPage())
  3945. }
  3946. return p.Err()
  3947. }
  3948. const opListLabelingJobs = "ListLabelingJobs"
  3949. // ListLabelingJobsRequest generates a "aws/request.Request" representing the
  3950. // client's request for the ListLabelingJobs operation. The "output" return
  3951. // value will be populated with the request's response once the request completes
  3952. // successfully.
  3953. //
  3954. // Use "Send" method on the returned Request to send the API call to the service.
  3955. // the "output" return value is not valid until after Send returns without error.
  3956. //
  3957. // See ListLabelingJobs for more information on using the ListLabelingJobs
  3958. // API call, and error handling.
  3959. //
  3960. // This method is useful when you want to inject custom logic or configuration
  3961. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3962. //
  3963. //
  3964. // // Example sending a request using the ListLabelingJobsRequest method.
  3965. // req, resp := client.ListLabelingJobsRequest(params)
  3966. //
  3967. // err := req.Send()
  3968. // if err == nil { // resp is now filled
  3969. // fmt.Println(resp)
  3970. // }
  3971. //
  3972. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs
  3973. func (c *SageMaker) ListLabelingJobsRequest(input *ListLabelingJobsInput) (req *request.Request, output *ListLabelingJobsOutput) {
  3974. op := &request.Operation{
  3975. Name: opListLabelingJobs,
  3976. HTTPMethod: "POST",
  3977. HTTPPath: "/",
  3978. Paginator: &request.Paginator{
  3979. InputTokens: []string{"NextToken"},
  3980. OutputTokens: []string{"NextToken"},
  3981. LimitToken: "MaxResults",
  3982. TruncationToken: "",
  3983. },
  3984. }
  3985. if input == nil {
  3986. input = &ListLabelingJobsInput{}
  3987. }
  3988. output = &ListLabelingJobsOutput{}
  3989. req = c.newRequest(op, input, output)
  3990. return
  3991. }
  3992. // ListLabelingJobs API operation for Amazon SageMaker Service.
  3993. //
  3994. // Gets a list of labeling jobs.
  3995. //
  3996. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3997. // with awserr.Error's Code and Message methods to get detailed information about
  3998. // the error.
  3999. //
  4000. // See the AWS API reference guide for Amazon SageMaker Service's
  4001. // API operation ListLabelingJobs for usage and error information.
  4002. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs
  4003. func (c *SageMaker) ListLabelingJobs(input *ListLabelingJobsInput) (*ListLabelingJobsOutput, error) {
  4004. req, out := c.ListLabelingJobsRequest(input)
  4005. return out, req.Send()
  4006. }
  4007. // ListLabelingJobsWithContext is the same as ListLabelingJobs with the addition of
  4008. // the ability to pass a context and additional request options.
  4009. //
  4010. // See ListLabelingJobs for details on how to use this API operation.
  4011. //
  4012. // The context must be non-nil and will be used for request cancellation. If
  4013. // the context is nil a panic will occur. In the future the SDK may create
  4014. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4015. // for more information on using Contexts.
  4016. func (c *SageMaker) ListLabelingJobsWithContext(ctx aws.Context, input *ListLabelingJobsInput, opts ...request.Option) (*ListLabelingJobsOutput, error) {
  4017. req, out := c.ListLabelingJobsRequest(input)
  4018. req.SetContext(ctx)
  4019. req.ApplyOptions(opts...)
  4020. return out, req.Send()
  4021. }
  4022. // ListLabelingJobsPages iterates over the pages of a ListLabelingJobs operation,
  4023. // calling the "fn" function with the response data for each page. To stop
  4024. // iterating, return false from the fn function.
  4025. //
  4026. // See ListLabelingJobs method for more information on how to use this operation.
  4027. //
  4028. // Note: This operation can generate multiple requests to a service.
  4029. //
  4030. // // Example iterating over at most 3 pages of a ListLabelingJobs operation.
  4031. // pageNum := 0
  4032. // err := client.ListLabelingJobsPages(params,
  4033. // func(page *ListLabelingJobsOutput, lastPage bool) bool {
  4034. // pageNum++
  4035. // fmt.Println(page)
  4036. // return pageNum <= 3
  4037. // })
  4038. //
  4039. func (c *SageMaker) ListLabelingJobsPages(input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool) error {
  4040. return c.ListLabelingJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  4041. }
  4042. // ListLabelingJobsPagesWithContext same as ListLabelingJobsPages except
  4043. // it takes a Context and allows setting request options on the pages.
  4044. //
  4045. // The context must be non-nil and will be used for request cancellation. If
  4046. // the context is nil a panic will occur. In the future the SDK may create
  4047. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4048. // for more information on using Contexts.
  4049. func (c *SageMaker) ListLabelingJobsPagesWithContext(ctx aws.Context, input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool, opts ...request.Option) error {
  4050. p := request.Pagination{
  4051. NewRequest: func() (*request.Request, error) {
  4052. var inCpy *ListLabelingJobsInput
  4053. if input != nil {
  4054. tmp := *input
  4055. inCpy = &tmp
  4056. }
  4057. req, _ := c.ListLabelingJobsRequest(inCpy)
  4058. req.SetContext(ctx)
  4059. req.ApplyOptions(opts...)
  4060. return req, nil
  4061. },
  4062. }
  4063. cont := true
  4064. for p.Next() && cont {
  4065. cont = fn(p.Page().(*ListLabelingJobsOutput), !p.HasNextPage())
  4066. }
  4067. return p.Err()
  4068. }
  4069. const opListLabelingJobsForWorkteam = "ListLabelingJobsForWorkteam"
  4070. // ListLabelingJobsForWorkteamRequest generates a "aws/request.Request" representing the
  4071. // client's request for the ListLabelingJobsForWorkteam operation. The "output" return
  4072. // value will be populated with the request's response once the request completes
  4073. // successfully.
  4074. //
  4075. // Use "Send" method on the returned Request to send the API call to the service.
  4076. // the "output" return value is not valid until after Send returns without error.
  4077. //
  4078. // See ListLabelingJobsForWorkteam for more information on using the ListLabelingJobsForWorkteam
  4079. // API call, and error handling.
  4080. //
  4081. // This method is useful when you want to inject custom logic or configuration
  4082. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4083. //
  4084. //
  4085. // // Example sending a request using the ListLabelingJobsForWorkteamRequest method.
  4086. // req, resp := client.ListLabelingJobsForWorkteamRequest(params)
  4087. //
  4088. // err := req.Send()
  4089. // if err == nil { // resp is now filled
  4090. // fmt.Println(resp)
  4091. // }
  4092. //
  4093. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam
  4094. func (c *SageMaker) ListLabelingJobsForWorkteamRequest(input *ListLabelingJobsForWorkteamInput) (req *request.Request, output *ListLabelingJobsForWorkteamOutput) {
  4095. op := &request.Operation{
  4096. Name: opListLabelingJobsForWorkteam,
  4097. HTTPMethod: "POST",
  4098. HTTPPath: "/",
  4099. Paginator: &request.Paginator{
  4100. InputTokens: []string{"NextToken"},
  4101. OutputTokens: []string{"NextToken"},
  4102. LimitToken: "MaxResults",
  4103. TruncationToken: "",
  4104. },
  4105. }
  4106. if input == nil {
  4107. input = &ListLabelingJobsForWorkteamInput{}
  4108. }
  4109. output = &ListLabelingJobsForWorkteamOutput{}
  4110. req = c.newRequest(op, input, output)
  4111. return
  4112. }
  4113. // ListLabelingJobsForWorkteam API operation for Amazon SageMaker Service.
  4114. //
  4115. // Gets a list of labeling jobs assigned to a specified work team.
  4116. //
  4117. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4118. // with awserr.Error's Code and Message methods to get detailed information about
  4119. // the error.
  4120. //
  4121. // See the AWS API reference guide for Amazon SageMaker Service's
  4122. // API operation ListLabelingJobsForWorkteam for usage and error information.
  4123. //
  4124. // Returned Error Codes:
  4125. // * ErrCodeResourceNotFound "ResourceNotFound"
  4126. // Resource being access is not found.
  4127. //
  4128. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam
  4129. func (c *SageMaker) ListLabelingJobsForWorkteam(input *ListLabelingJobsForWorkteamInput) (*ListLabelingJobsForWorkteamOutput, error) {
  4130. req, out := c.ListLabelingJobsForWorkteamRequest(input)
  4131. return out, req.Send()
  4132. }
  4133. // ListLabelingJobsForWorkteamWithContext is the same as ListLabelingJobsForWorkteam with the addition of
  4134. // the ability to pass a context and additional request options.
  4135. //
  4136. // See ListLabelingJobsForWorkteam for details on how to use this API operation.
  4137. //
  4138. // The context must be non-nil and will be used for request cancellation. If
  4139. // the context is nil a panic will occur. In the future the SDK may create
  4140. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4141. // for more information on using Contexts.
  4142. func (c *SageMaker) ListLabelingJobsForWorkteamWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, opts ...request.Option) (*ListLabelingJobsForWorkteamOutput, error) {
  4143. req, out := c.ListLabelingJobsForWorkteamRequest(input)
  4144. req.SetContext(ctx)
  4145. req.ApplyOptions(opts...)
  4146. return out, req.Send()
  4147. }
  4148. // ListLabelingJobsForWorkteamPages iterates over the pages of a ListLabelingJobsForWorkteam operation,
  4149. // calling the "fn" function with the response data for each page. To stop
  4150. // iterating, return false from the fn function.
  4151. //
  4152. // See ListLabelingJobsForWorkteam method for more information on how to use this operation.
  4153. //
  4154. // Note: This operation can generate multiple requests to a service.
  4155. //
  4156. // // Example iterating over at most 3 pages of a ListLabelingJobsForWorkteam operation.
  4157. // pageNum := 0
  4158. // err := client.ListLabelingJobsForWorkteamPages(params,
  4159. // func(page *ListLabelingJobsForWorkteamOutput, lastPage bool) bool {
  4160. // pageNum++
  4161. // fmt.Println(page)
  4162. // return pageNum <= 3
  4163. // })
  4164. //
  4165. func (c *SageMaker) ListLabelingJobsForWorkteamPages(input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool) error {
  4166. return c.ListLabelingJobsForWorkteamPagesWithContext(aws.BackgroundContext(), input, fn)
  4167. }
  4168. // ListLabelingJobsForWorkteamPagesWithContext same as ListLabelingJobsForWorkteamPages except
  4169. // it takes a Context and allows setting request options on the pages.
  4170. //
  4171. // The context must be non-nil and will be used for request cancellation. If
  4172. // the context is nil a panic will occur. In the future the SDK may create
  4173. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4174. // for more information on using Contexts.
  4175. func (c *SageMaker) ListLabelingJobsForWorkteamPagesWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool, opts ...request.Option) error {
  4176. p := request.Pagination{
  4177. NewRequest: func() (*request.Request, error) {
  4178. var inCpy *ListLabelingJobsForWorkteamInput
  4179. if input != nil {
  4180. tmp := *input
  4181. inCpy = &tmp
  4182. }
  4183. req, _ := c.ListLabelingJobsForWorkteamRequest(inCpy)
  4184. req.SetContext(ctx)
  4185. req.ApplyOptions(opts...)
  4186. return req, nil
  4187. },
  4188. }
  4189. cont := true
  4190. for p.Next() && cont {
  4191. cont = fn(p.Page().(*ListLabelingJobsForWorkteamOutput), !p.HasNextPage())
  4192. }
  4193. return p.Err()
  4194. }
  4195. const opListModelPackages = "ListModelPackages"
  4196. // ListModelPackagesRequest generates a "aws/request.Request" representing the
  4197. // client's request for the ListModelPackages operation. The "output" return
  4198. // value will be populated with the request's response once the request completes
  4199. // successfully.
  4200. //
  4201. // Use "Send" method on the returned Request to send the API call to the service.
  4202. // the "output" return value is not valid until after Send returns without error.
  4203. //
  4204. // See ListModelPackages for more information on using the ListModelPackages
  4205. // API call, and error handling.
  4206. //
  4207. // This method is useful when you want to inject custom logic or configuration
  4208. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4209. //
  4210. //
  4211. // // Example sending a request using the ListModelPackagesRequest method.
  4212. // req, resp := client.ListModelPackagesRequest(params)
  4213. //
  4214. // err := req.Send()
  4215. // if err == nil { // resp is now filled
  4216. // fmt.Println(resp)
  4217. // }
  4218. //
  4219. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages
  4220. func (c *SageMaker) ListModelPackagesRequest(input *ListModelPackagesInput) (req *request.Request, output *ListModelPackagesOutput) {
  4221. op := &request.Operation{
  4222. Name: opListModelPackages,
  4223. HTTPMethod: "POST",
  4224. HTTPPath: "/",
  4225. }
  4226. if input == nil {
  4227. input = &ListModelPackagesInput{}
  4228. }
  4229. output = &ListModelPackagesOutput{}
  4230. req = c.newRequest(op, input, output)
  4231. return
  4232. }
  4233. // ListModelPackages API operation for Amazon SageMaker Service.
  4234. //
  4235. // Lists the model packages that have been created.
  4236. //
  4237. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4238. // with awserr.Error's Code and Message methods to get detailed information about
  4239. // the error.
  4240. //
  4241. // See the AWS API reference guide for Amazon SageMaker Service's
  4242. // API operation ListModelPackages for usage and error information.
  4243. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages
  4244. func (c *SageMaker) ListModelPackages(input *ListModelPackagesInput) (*ListModelPackagesOutput, error) {
  4245. req, out := c.ListModelPackagesRequest(input)
  4246. return out, req.Send()
  4247. }
  4248. // ListModelPackagesWithContext is the same as ListModelPackages with the addition of
  4249. // the ability to pass a context and additional request options.
  4250. //
  4251. // See ListModelPackages for details on how to use this API operation.
  4252. //
  4253. // The context must be non-nil and will be used for request cancellation. If
  4254. // the context is nil a panic will occur. In the future the SDK may create
  4255. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4256. // for more information on using Contexts.
  4257. func (c *SageMaker) ListModelPackagesWithContext(ctx aws.Context, input *ListModelPackagesInput, opts ...request.Option) (*ListModelPackagesOutput, error) {
  4258. req, out := c.ListModelPackagesRequest(input)
  4259. req.SetContext(ctx)
  4260. req.ApplyOptions(opts...)
  4261. return out, req.Send()
  4262. }
  4263. const opListModels = "ListModels"
  4264. // ListModelsRequest generates a "aws/request.Request" representing the
  4265. // client's request for the ListModels operation. The "output" return
  4266. // value will be populated with the request's response once the request completes
  4267. // successfully.
  4268. //
  4269. // Use "Send" method on the returned Request to send the API call to the service.
  4270. // the "output" return value is not valid until after Send returns without error.
  4271. //
  4272. // See ListModels for more information on using the ListModels
  4273. // API call, and error handling.
  4274. //
  4275. // This method is useful when you want to inject custom logic or configuration
  4276. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4277. //
  4278. //
  4279. // // Example sending a request using the ListModelsRequest method.
  4280. // req, resp := client.ListModelsRequest(params)
  4281. //
  4282. // err := req.Send()
  4283. // if err == nil { // resp is now filled
  4284. // fmt.Println(resp)
  4285. // }
  4286. //
  4287. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels
  4288. func (c *SageMaker) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) {
  4289. op := &request.Operation{
  4290. Name: opListModels,
  4291. HTTPMethod: "POST",
  4292. HTTPPath: "/",
  4293. Paginator: &request.Paginator{
  4294. InputTokens: []string{"NextToken"},
  4295. OutputTokens: []string{"NextToken"},
  4296. LimitToken: "MaxResults",
  4297. TruncationToken: "",
  4298. },
  4299. }
  4300. if input == nil {
  4301. input = &ListModelsInput{}
  4302. }
  4303. output = &ListModelsOutput{}
  4304. req = c.newRequest(op, input, output)
  4305. return
  4306. }
  4307. // ListModels API operation for Amazon SageMaker Service.
  4308. //
  4309. // Lists models created with the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html)
  4310. // API.
  4311. //
  4312. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4313. // with awserr.Error's Code and Message methods to get detailed information about
  4314. // the error.
  4315. //
  4316. // See the AWS API reference guide for Amazon SageMaker Service's
  4317. // API operation ListModels for usage and error information.
  4318. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels
  4319. func (c *SageMaker) ListModels(input *ListModelsInput) (*ListModelsOutput, error) {
  4320. req, out := c.ListModelsRequest(input)
  4321. return out, req.Send()
  4322. }
  4323. // ListModelsWithContext is the same as ListModels with the addition of
  4324. // the ability to pass a context and additional request options.
  4325. //
  4326. // See ListModels for details on how to use this API operation.
  4327. //
  4328. // The context must be non-nil and will be used for request cancellation. If
  4329. // the context is nil a panic will occur. In the future the SDK may create
  4330. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4331. // for more information on using Contexts.
  4332. func (c *SageMaker) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) {
  4333. req, out := c.ListModelsRequest(input)
  4334. req.SetContext(ctx)
  4335. req.ApplyOptions(opts...)
  4336. return out, req.Send()
  4337. }
  4338. // ListModelsPages iterates over the pages of a ListModels operation,
  4339. // calling the "fn" function with the response data for each page. To stop
  4340. // iterating, return false from the fn function.
  4341. //
  4342. // See ListModels method for more information on how to use this operation.
  4343. //
  4344. // Note: This operation can generate multiple requests to a service.
  4345. //
  4346. // // Example iterating over at most 3 pages of a ListModels operation.
  4347. // pageNum := 0
  4348. // err := client.ListModelsPages(params,
  4349. // func(page *ListModelsOutput, lastPage bool) bool {
  4350. // pageNum++
  4351. // fmt.Println(page)
  4352. // return pageNum <= 3
  4353. // })
  4354. //
  4355. func (c *SageMaker) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error {
  4356. return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn)
  4357. }
  4358. // ListModelsPagesWithContext same as ListModelsPages except
  4359. // it takes a Context and allows setting request options on the pages.
  4360. //
  4361. // The context must be non-nil and will be used for request cancellation. If
  4362. // the context is nil a panic will occur. In the future the SDK may create
  4363. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4364. // for more information on using Contexts.
  4365. func (c *SageMaker) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error {
  4366. p := request.Pagination{
  4367. NewRequest: func() (*request.Request, error) {
  4368. var inCpy *ListModelsInput
  4369. if input != nil {
  4370. tmp := *input
  4371. inCpy = &tmp
  4372. }
  4373. req, _ := c.ListModelsRequest(inCpy)
  4374. req.SetContext(ctx)
  4375. req.ApplyOptions(opts...)
  4376. return req, nil
  4377. },
  4378. }
  4379. cont := true
  4380. for p.Next() && cont {
  4381. cont = fn(p.Page().(*ListModelsOutput), !p.HasNextPage())
  4382. }
  4383. return p.Err()
  4384. }
  4385. const opListNotebookInstanceLifecycleConfigs = "ListNotebookInstanceLifecycleConfigs"
  4386. // ListNotebookInstanceLifecycleConfigsRequest generates a "aws/request.Request" representing the
  4387. // client's request for the ListNotebookInstanceLifecycleConfigs operation. The "output" return
  4388. // value will be populated with the request's response once the request completes
  4389. // successfully.
  4390. //
  4391. // Use "Send" method on the returned Request to send the API call to the service.
  4392. // the "output" return value is not valid until after Send returns without error.
  4393. //
  4394. // See ListNotebookInstanceLifecycleConfigs for more information on using the ListNotebookInstanceLifecycleConfigs
  4395. // API call, and error handling.
  4396. //
  4397. // This method is useful when you want to inject custom logic or configuration
  4398. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4399. //
  4400. //
  4401. // // Example sending a request using the ListNotebookInstanceLifecycleConfigsRequest method.
  4402. // req, resp := client.ListNotebookInstanceLifecycleConfigsRequest(params)
  4403. //
  4404. // err := req.Send()
  4405. // if err == nil { // resp is now filled
  4406. // fmt.Println(resp)
  4407. // }
  4408. //
  4409. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs
  4410. func (c *SageMaker) ListNotebookInstanceLifecycleConfigsRequest(input *ListNotebookInstanceLifecycleConfigsInput) (req *request.Request, output *ListNotebookInstanceLifecycleConfigsOutput) {
  4411. op := &request.Operation{
  4412. Name: opListNotebookInstanceLifecycleConfigs,
  4413. HTTPMethod: "POST",
  4414. HTTPPath: "/",
  4415. Paginator: &request.Paginator{
  4416. InputTokens: []string{"NextToken"},
  4417. OutputTokens: []string{"NextToken"},
  4418. LimitToken: "MaxResults",
  4419. TruncationToken: "",
  4420. },
  4421. }
  4422. if input == nil {
  4423. input = &ListNotebookInstanceLifecycleConfigsInput{}
  4424. }
  4425. output = &ListNotebookInstanceLifecycleConfigsOutput{}
  4426. req = c.newRequest(op, input, output)
  4427. return
  4428. }
  4429. // ListNotebookInstanceLifecycleConfigs API operation for Amazon SageMaker Service.
  4430. //
  4431. // Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig
  4432. // API.
  4433. //
  4434. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4435. // with awserr.Error's Code and Message methods to get detailed information about
  4436. // the error.
  4437. //
  4438. // See the AWS API reference guide for Amazon SageMaker Service's
  4439. // API operation ListNotebookInstanceLifecycleConfigs for usage and error information.
  4440. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs
  4441. func (c *SageMaker) ListNotebookInstanceLifecycleConfigs(input *ListNotebookInstanceLifecycleConfigsInput) (*ListNotebookInstanceLifecycleConfigsOutput, error) {
  4442. req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input)
  4443. return out, req.Send()
  4444. }
  4445. // ListNotebookInstanceLifecycleConfigsWithContext is the same as ListNotebookInstanceLifecycleConfigs with the addition of
  4446. // the ability to pass a context and additional request options.
  4447. //
  4448. // See ListNotebookInstanceLifecycleConfigs for details on how to use this API operation.
  4449. //
  4450. // The context must be non-nil and will be used for request cancellation. If
  4451. // the context is nil a panic will occur. In the future the SDK may create
  4452. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4453. // for more information on using Contexts.
  4454. func (c *SageMaker) ListNotebookInstanceLifecycleConfigsWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, opts ...request.Option) (*ListNotebookInstanceLifecycleConfigsOutput, error) {
  4455. req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input)
  4456. req.SetContext(ctx)
  4457. req.ApplyOptions(opts...)
  4458. return out, req.Send()
  4459. }
  4460. // ListNotebookInstanceLifecycleConfigsPages iterates over the pages of a ListNotebookInstanceLifecycleConfigs operation,
  4461. // calling the "fn" function with the response data for each page. To stop
  4462. // iterating, return false from the fn function.
  4463. //
  4464. // See ListNotebookInstanceLifecycleConfigs method for more information on how to use this operation.
  4465. //
  4466. // Note: This operation can generate multiple requests to a service.
  4467. //
  4468. // // Example iterating over at most 3 pages of a ListNotebookInstanceLifecycleConfigs operation.
  4469. // pageNum := 0
  4470. // err := client.ListNotebookInstanceLifecycleConfigsPages(params,
  4471. // func(page *ListNotebookInstanceLifecycleConfigsOutput, lastPage bool) bool {
  4472. // pageNum++
  4473. // fmt.Println(page)
  4474. // return pageNum <= 3
  4475. // })
  4476. //
  4477. func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPages(input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool) error {
  4478. return c.ListNotebookInstanceLifecycleConfigsPagesWithContext(aws.BackgroundContext(), input, fn)
  4479. }
  4480. // ListNotebookInstanceLifecycleConfigsPagesWithContext same as ListNotebookInstanceLifecycleConfigsPages except
  4481. // it takes a Context and allows setting request options on the pages.
  4482. //
  4483. // The context must be non-nil and will be used for request cancellation. If
  4484. // the context is nil a panic will occur. In the future the SDK may create
  4485. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4486. // for more information on using Contexts.
  4487. func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPagesWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool, opts ...request.Option) error {
  4488. p := request.Pagination{
  4489. NewRequest: func() (*request.Request, error) {
  4490. var inCpy *ListNotebookInstanceLifecycleConfigsInput
  4491. if input != nil {
  4492. tmp := *input
  4493. inCpy = &tmp
  4494. }
  4495. req, _ := c.ListNotebookInstanceLifecycleConfigsRequest(inCpy)
  4496. req.SetContext(ctx)
  4497. req.ApplyOptions(opts...)
  4498. return req, nil
  4499. },
  4500. }
  4501. cont := true
  4502. for p.Next() && cont {
  4503. cont = fn(p.Page().(*ListNotebookInstanceLifecycleConfigsOutput), !p.HasNextPage())
  4504. }
  4505. return p.Err()
  4506. }
  4507. const opListNotebookInstances = "ListNotebookInstances"
  4508. // ListNotebookInstancesRequest generates a "aws/request.Request" representing the
  4509. // client's request for the ListNotebookInstances operation. The "output" return
  4510. // value will be populated with the request's response once the request completes
  4511. // successfully.
  4512. //
  4513. // Use "Send" method on the returned Request to send the API call to the service.
  4514. // the "output" return value is not valid until after Send returns without error.
  4515. //
  4516. // See ListNotebookInstances for more information on using the ListNotebookInstances
  4517. // API call, and error handling.
  4518. //
  4519. // This method is useful when you want to inject custom logic or configuration
  4520. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4521. //
  4522. //
  4523. // // Example sending a request using the ListNotebookInstancesRequest method.
  4524. // req, resp := client.ListNotebookInstancesRequest(params)
  4525. //
  4526. // err := req.Send()
  4527. // if err == nil { // resp is now filled
  4528. // fmt.Println(resp)
  4529. // }
  4530. //
  4531. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances
  4532. func (c *SageMaker) ListNotebookInstancesRequest(input *ListNotebookInstancesInput) (req *request.Request, output *ListNotebookInstancesOutput) {
  4533. op := &request.Operation{
  4534. Name: opListNotebookInstances,
  4535. HTTPMethod: "POST",
  4536. HTTPPath: "/",
  4537. Paginator: &request.Paginator{
  4538. InputTokens: []string{"NextToken"},
  4539. OutputTokens: []string{"NextToken"},
  4540. LimitToken: "MaxResults",
  4541. TruncationToken: "",
  4542. },
  4543. }
  4544. if input == nil {
  4545. input = &ListNotebookInstancesInput{}
  4546. }
  4547. output = &ListNotebookInstancesOutput{}
  4548. req = c.newRequest(op, input, output)
  4549. return
  4550. }
  4551. // ListNotebookInstances API operation for Amazon SageMaker Service.
  4552. //
  4553. // Returns a list of the Amazon SageMaker notebook instances in the requester's
  4554. // account in an AWS Region.
  4555. //
  4556. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4557. // with awserr.Error's Code and Message methods to get detailed information about
  4558. // the error.
  4559. //
  4560. // See the AWS API reference guide for Amazon SageMaker Service's
  4561. // API operation ListNotebookInstances for usage and error information.
  4562. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances
  4563. func (c *SageMaker) ListNotebookInstances(input *ListNotebookInstancesInput) (*ListNotebookInstancesOutput, error) {
  4564. req, out := c.ListNotebookInstancesRequest(input)
  4565. return out, req.Send()
  4566. }
  4567. // ListNotebookInstancesWithContext is the same as ListNotebookInstances with the addition of
  4568. // the ability to pass a context and additional request options.
  4569. //
  4570. // See ListNotebookInstances for details on how to use this API operation.
  4571. //
  4572. // The context must be non-nil and will be used for request cancellation. If
  4573. // the context is nil a panic will occur. In the future the SDK may create
  4574. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4575. // for more information on using Contexts.
  4576. func (c *SageMaker) ListNotebookInstancesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, opts ...request.Option) (*ListNotebookInstancesOutput, error) {
  4577. req, out := c.ListNotebookInstancesRequest(input)
  4578. req.SetContext(ctx)
  4579. req.ApplyOptions(opts...)
  4580. return out, req.Send()
  4581. }
  4582. // ListNotebookInstancesPages iterates over the pages of a ListNotebookInstances operation,
  4583. // calling the "fn" function with the response data for each page. To stop
  4584. // iterating, return false from the fn function.
  4585. //
  4586. // See ListNotebookInstances method for more information on how to use this operation.
  4587. //
  4588. // Note: This operation can generate multiple requests to a service.
  4589. //
  4590. // // Example iterating over at most 3 pages of a ListNotebookInstances operation.
  4591. // pageNum := 0
  4592. // err := client.ListNotebookInstancesPages(params,
  4593. // func(page *ListNotebookInstancesOutput, lastPage bool) bool {
  4594. // pageNum++
  4595. // fmt.Println(page)
  4596. // return pageNum <= 3
  4597. // })
  4598. //
  4599. func (c *SageMaker) ListNotebookInstancesPages(input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool) error {
  4600. return c.ListNotebookInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  4601. }
  4602. // ListNotebookInstancesPagesWithContext same as ListNotebookInstancesPages except
  4603. // it takes a Context and allows setting request options on the pages.
  4604. //
  4605. // The context must be non-nil and will be used for request cancellation. If
  4606. // the context is nil a panic will occur. In the future the SDK may create
  4607. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4608. // for more information on using Contexts.
  4609. func (c *SageMaker) ListNotebookInstancesPagesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool, opts ...request.Option) error {
  4610. p := request.Pagination{
  4611. NewRequest: func() (*request.Request, error) {
  4612. var inCpy *ListNotebookInstancesInput
  4613. if input != nil {
  4614. tmp := *input
  4615. inCpy = &tmp
  4616. }
  4617. req, _ := c.ListNotebookInstancesRequest(inCpy)
  4618. req.SetContext(ctx)
  4619. req.ApplyOptions(opts...)
  4620. return req, nil
  4621. },
  4622. }
  4623. cont := true
  4624. for p.Next() && cont {
  4625. cont = fn(p.Page().(*ListNotebookInstancesOutput), !p.HasNextPage())
  4626. }
  4627. return p.Err()
  4628. }
  4629. const opListSubscribedWorkteams = "ListSubscribedWorkteams"
  4630. // ListSubscribedWorkteamsRequest generates a "aws/request.Request" representing the
  4631. // client's request for the ListSubscribedWorkteams operation. The "output" return
  4632. // value will be populated with the request's response once the request completes
  4633. // successfully.
  4634. //
  4635. // Use "Send" method on the returned Request to send the API call to the service.
  4636. // the "output" return value is not valid until after Send returns without error.
  4637. //
  4638. // See ListSubscribedWorkteams for more information on using the ListSubscribedWorkteams
  4639. // API call, and error handling.
  4640. //
  4641. // This method is useful when you want to inject custom logic or configuration
  4642. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4643. //
  4644. //
  4645. // // Example sending a request using the ListSubscribedWorkteamsRequest method.
  4646. // req, resp := client.ListSubscribedWorkteamsRequest(params)
  4647. //
  4648. // err := req.Send()
  4649. // if err == nil { // resp is now filled
  4650. // fmt.Println(resp)
  4651. // }
  4652. //
  4653. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams
  4654. func (c *SageMaker) ListSubscribedWorkteamsRequest(input *ListSubscribedWorkteamsInput) (req *request.Request, output *ListSubscribedWorkteamsOutput) {
  4655. op := &request.Operation{
  4656. Name: opListSubscribedWorkteams,
  4657. HTTPMethod: "POST",
  4658. HTTPPath: "/",
  4659. Paginator: &request.Paginator{
  4660. InputTokens: []string{"NextToken"},
  4661. OutputTokens: []string{"NextToken"},
  4662. LimitToken: "MaxResults",
  4663. TruncationToken: "",
  4664. },
  4665. }
  4666. if input == nil {
  4667. input = &ListSubscribedWorkteamsInput{}
  4668. }
  4669. output = &ListSubscribedWorkteamsOutput{}
  4670. req = c.newRequest(op, input, output)
  4671. return
  4672. }
  4673. // ListSubscribedWorkteams API operation for Amazon SageMaker Service.
  4674. //
  4675. // Gets a list of the work teams that you are subscribed to in the AWS Marketplace.
  4676. // The list may be empty if no work team satisfies the filter specified in the
  4677. // NameContains parameter.
  4678. //
  4679. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4680. // with awserr.Error's Code and Message methods to get detailed information about
  4681. // the error.
  4682. //
  4683. // See the AWS API reference guide for Amazon SageMaker Service's
  4684. // API operation ListSubscribedWorkteams for usage and error information.
  4685. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams
  4686. func (c *SageMaker) ListSubscribedWorkteams(input *ListSubscribedWorkteamsInput) (*ListSubscribedWorkteamsOutput, error) {
  4687. req, out := c.ListSubscribedWorkteamsRequest(input)
  4688. return out, req.Send()
  4689. }
  4690. // ListSubscribedWorkteamsWithContext is the same as ListSubscribedWorkteams with the addition of
  4691. // the ability to pass a context and additional request options.
  4692. //
  4693. // See ListSubscribedWorkteams for details on how to use this API operation.
  4694. //
  4695. // The context must be non-nil and will be used for request cancellation. If
  4696. // the context is nil a panic will occur. In the future the SDK may create
  4697. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4698. // for more information on using Contexts.
  4699. func (c *SageMaker) ListSubscribedWorkteamsWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, opts ...request.Option) (*ListSubscribedWorkteamsOutput, error) {
  4700. req, out := c.ListSubscribedWorkteamsRequest(input)
  4701. req.SetContext(ctx)
  4702. req.ApplyOptions(opts...)
  4703. return out, req.Send()
  4704. }
  4705. // ListSubscribedWorkteamsPages iterates over the pages of a ListSubscribedWorkteams operation,
  4706. // calling the "fn" function with the response data for each page. To stop
  4707. // iterating, return false from the fn function.
  4708. //
  4709. // See ListSubscribedWorkteams method for more information on how to use this operation.
  4710. //
  4711. // Note: This operation can generate multiple requests to a service.
  4712. //
  4713. // // Example iterating over at most 3 pages of a ListSubscribedWorkteams operation.
  4714. // pageNum := 0
  4715. // err := client.ListSubscribedWorkteamsPages(params,
  4716. // func(page *ListSubscribedWorkteamsOutput, lastPage bool) bool {
  4717. // pageNum++
  4718. // fmt.Println(page)
  4719. // return pageNum <= 3
  4720. // })
  4721. //
  4722. func (c *SageMaker) ListSubscribedWorkteamsPages(input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool) error {
  4723. return c.ListSubscribedWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn)
  4724. }
  4725. // ListSubscribedWorkteamsPagesWithContext same as ListSubscribedWorkteamsPages except
  4726. // it takes a Context and allows setting request options on the pages.
  4727. //
  4728. // The context must be non-nil and will be used for request cancellation. If
  4729. // the context is nil a panic will occur. In the future the SDK may create
  4730. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4731. // for more information on using Contexts.
  4732. func (c *SageMaker) ListSubscribedWorkteamsPagesWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool, opts ...request.Option) error {
  4733. p := request.Pagination{
  4734. NewRequest: func() (*request.Request, error) {
  4735. var inCpy *ListSubscribedWorkteamsInput
  4736. if input != nil {
  4737. tmp := *input
  4738. inCpy = &tmp
  4739. }
  4740. req, _ := c.ListSubscribedWorkteamsRequest(inCpy)
  4741. req.SetContext(ctx)
  4742. req.ApplyOptions(opts...)
  4743. return req, nil
  4744. },
  4745. }
  4746. cont := true
  4747. for p.Next() && cont {
  4748. cont = fn(p.Page().(*ListSubscribedWorkteamsOutput), !p.HasNextPage())
  4749. }
  4750. return p.Err()
  4751. }
  4752. const opListTags = "ListTags"
  4753. // ListTagsRequest generates a "aws/request.Request" representing the
  4754. // client's request for the ListTags operation. The "output" return
  4755. // value will be populated with the request's response once the request completes
  4756. // successfully.
  4757. //
  4758. // Use "Send" method on the returned Request to send the API call to the service.
  4759. // the "output" return value is not valid until after Send returns without error.
  4760. //
  4761. // See ListTags for more information on using the ListTags
  4762. // API call, and error handling.
  4763. //
  4764. // This method is useful when you want to inject custom logic or configuration
  4765. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4766. //
  4767. //
  4768. // // Example sending a request using the ListTagsRequest method.
  4769. // req, resp := client.ListTagsRequest(params)
  4770. //
  4771. // err := req.Send()
  4772. // if err == nil { // resp is now filled
  4773. // fmt.Println(resp)
  4774. // }
  4775. //
  4776. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags
  4777. func (c *SageMaker) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
  4778. op := &request.Operation{
  4779. Name: opListTags,
  4780. HTTPMethod: "POST",
  4781. HTTPPath: "/",
  4782. Paginator: &request.Paginator{
  4783. InputTokens: []string{"NextToken"},
  4784. OutputTokens: []string{"NextToken"},
  4785. LimitToken: "MaxResults",
  4786. TruncationToken: "",
  4787. },
  4788. }
  4789. if input == nil {
  4790. input = &ListTagsInput{}
  4791. }
  4792. output = &ListTagsOutput{}
  4793. req = c.newRequest(op, input, output)
  4794. return
  4795. }
  4796. // ListTags API operation for Amazon SageMaker Service.
  4797. //
  4798. // Returns the tags for the specified Amazon SageMaker resource.
  4799. //
  4800. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4801. // with awserr.Error's Code and Message methods to get detailed information about
  4802. // the error.
  4803. //
  4804. // See the AWS API reference guide for Amazon SageMaker Service's
  4805. // API operation ListTags for usage and error information.
  4806. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags
  4807. func (c *SageMaker) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
  4808. req, out := c.ListTagsRequest(input)
  4809. return out, req.Send()
  4810. }
  4811. // ListTagsWithContext is the same as ListTags with the addition of
  4812. // the ability to pass a context and additional request options.
  4813. //
  4814. // See ListTags for details on how to use this API operation.
  4815. //
  4816. // The context must be non-nil and will be used for request cancellation. If
  4817. // the context is nil a panic will occur. In the future the SDK may create
  4818. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4819. // for more information on using Contexts.
  4820. func (c *SageMaker) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) {
  4821. req, out := c.ListTagsRequest(input)
  4822. req.SetContext(ctx)
  4823. req.ApplyOptions(opts...)
  4824. return out, req.Send()
  4825. }
  4826. // ListTagsPages iterates over the pages of a ListTags operation,
  4827. // calling the "fn" function with the response data for each page. To stop
  4828. // iterating, return false from the fn function.
  4829. //
  4830. // See ListTags method for more information on how to use this operation.
  4831. //
  4832. // Note: This operation can generate multiple requests to a service.
  4833. //
  4834. // // Example iterating over at most 3 pages of a ListTags operation.
  4835. // pageNum := 0
  4836. // err := client.ListTagsPages(params,
  4837. // func(page *ListTagsOutput, lastPage bool) bool {
  4838. // pageNum++
  4839. // fmt.Println(page)
  4840. // return pageNum <= 3
  4841. // })
  4842. //
  4843. func (c *SageMaker) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error {
  4844. return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn)
  4845. }
  4846. // ListTagsPagesWithContext same as ListTagsPages except
  4847. // it takes a Context and allows setting request options on the pages.
  4848. //
  4849. // The context must be non-nil and will be used for request cancellation. If
  4850. // the context is nil a panic will occur. In the future the SDK may create
  4851. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4852. // for more information on using Contexts.
  4853. func (c *SageMaker) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error {
  4854. p := request.Pagination{
  4855. NewRequest: func() (*request.Request, error) {
  4856. var inCpy *ListTagsInput
  4857. if input != nil {
  4858. tmp := *input
  4859. inCpy = &tmp
  4860. }
  4861. req, _ := c.ListTagsRequest(inCpy)
  4862. req.SetContext(ctx)
  4863. req.ApplyOptions(opts...)
  4864. return req, nil
  4865. },
  4866. }
  4867. cont := true
  4868. for p.Next() && cont {
  4869. cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage())
  4870. }
  4871. return p.Err()
  4872. }
  4873. const opListTrainingJobs = "ListTrainingJobs"
  4874. // ListTrainingJobsRequest generates a "aws/request.Request" representing the
  4875. // client's request for the ListTrainingJobs operation. The "output" return
  4876. // value will be populated with the request's response once the request completes
  4877. // successfully.
  4878. //
  4879. // Use "Send" method on the returned Request to send the API call to the service.
  4880. // the "output" return value is not valid until after Send returns without error.
  4881. //
  4882. // See ListTrainingJobs for more information on using the ListTrainingJobs
  4883. // API call, and error handling.
  4884. //
  4885. // This method is useful when you want to inject custom logic or configuration
  4886. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4887. //
  4888. //
  4889. // // Example sending a request using the ListTrainingJobsRequest method.
  4890. // req, resp := client.ListTrainingJobsRequest(params)
  4891. //
  4892. // err := req.Send()
  4893. // if err == nil { // resp is now filled
  4894. // fmt.Println(resp)
  4895. // }
  4896. //
  4897. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs
  4898. func (c *SageMaker) ListTrainingJobsRequest(input *ListTrainingJobsInput) (req *request.Request, output *ListTrainingJobsOutput) {
  4899. op := &request.Operation{
  4900. Name: opListTrainingJobs,
  4901. HTTPMethod: "POST",
  4902. HTTPPath: "/",
  4903. Paginator: &request.Paginator{
  4904. InputTokens: []string{"NextToken"},
  4905. OutputTokens: []string{"NextToken"},
  4906. LimitToken: "MaxResults",
  4907. TruncationToken: "",
  4908. },
  4909. }
  4910. if input == nil {
  4911. input = &ListTrainingJobsInput{}
  4912. }
  4913. output = &ListTrainingJobsOutput{}
  4914. req = c.newRequest(op, input, output)
  4915. return
  4916. }
  4917. // ListTrainingJobs API operation for Amazon SageMaker Service.
  4918. //
  4919. // Lists training jobs.
  4920. //
  4921. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4922. // with awserr.Error's Code and Message methods to get detailed information about
  4923. // the error.
  4924. //
  4925. // See the AWS API reference guide for Amazon SageMaker Service's
  4926. // API operation ListTrainingJobs for usage and error information.
  4927. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs
  4928. func (c *SageMaker) ListTrainingJobs(input *ListTrainingJobsInput) (*ListTrainingJobsOutput, error) {
  4929. req, out := c.ListTrainingJobsRequest(input)
  4930. return out, req.Send()
  4931. }
  4932. // ListTrainingJobsWithContext is the same as ListTrainingJobs with the addition of
  4933. // the ability to pass a context and additional request options.
  4934. //
  4935. // See ListTrainingJobs for details on how to use this API operation.
  4936. //
  4937. // The context must be non-nil and will be used for request cancellation. If
  4938. // the context is nil a panic will occur. In the future the SDK may create
  4939. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4940. // for more information on using Contexts.
  4941. func (c *SageMaker) ListTrainingJobsWithContext(ctx aws.Context, input *ListTrainingJobsInput, opts ...request.Option) (*ListTrainingJobsOutput, error) {
  4942. req, out := c.ListTrainingJobsRequest(input)
  4943. req.SetContext(ctx)
  4944. req.ApplyOptions(opts...)
  4945. return out, req.Send()
  4946. }
  4947. // ListTrainingJobsPages iterates over the pages of a ListTrainingJobs operation,
  4948. // calling the "fn" function with the response data for each page. To stop
  4949. // iterating, return false from the fn function.
  4950. //
  4951. // See ListTrainingJobs method for more information on how to use this operation.
  4952. //
  4953. // Note: This operation can generate multiple requests to a service.
  4954. //
  4955. // // Example iterating over at most 3 pages of a ListTrainingJobs operation.
  4956. // pageNum := 0
  4957. // err := client.ListTrainingJobsPages(params,
  4958. // func(page *ListTrainingJobsOutput, lastPage bool) bool {
  4959. // pageNum++
  4960. // fmt.Println(page)
  4961. // return pageNum <= 3
  4962. // })
  4963. //
  4964. func (c *SageMaker) ListTrainingJobsPages(input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool) error {
  4965. return c.ListTrainingJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  4966. }
  4967. // ListTrainingJobsPagesWithContext same as ListTrainingJobsPages except
  4968. // it takes a Context and allows setting request options on the pages.
  4969. //
  4970. // The context must be non-nil and will be used for request cancellation. If
  4971. // the context is nil a panic will occur. In the future the SDK may create
  4972. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4973. // for more information on using Contexts.
  4974. func (c *SageMaker) ListTrainingJobsPagesWithContext(ctx aws.Context, input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool, opts ...request.Option) error {
  4975. p := request.Pagination{
  4976. NewRequest: func() (*request.Request, error) {
  4977. var inCpy *ListTrainingJobsInput
  4978. if input != nil {
  4979. tmp := *input
  4980. inCpy = &tmp
  4981. }
  4982. req, _ := c.ListTrainingJobsRequest(inCpy)
  4983. req.SetContext(ctx)
  4984. req.ApplyOptions(opts...)
  4985. return req, nil
  4986. },
  4987. }
  4988. cont := true
  4989. for p.Next() && cont {
  4990. cont = fn(p.Page().(*ListTrainingJobsOutput), !p.HasNextPage())
  4991. }
  4992. return p.Err()
  4993. }
  4994. const opListTrainingJobsForHyperParameterTuningJob = "ListTrainingJobsForHyperParameterTuningJob"
  4995. // ListTrainingJobsForHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
  4996. // client's request for the ListTrainingJobsForHyperParameterTuningJob operation. The "output" return
  4997. // value will be populated with the request's response once the request completes
  4998. // successfully.
  4999. //
  5000. // Use "Send" method on the returned Request to send the API call to the service.
  5001. // the "output" return value is not valid until after Send returns without error.
  5002. //
  5003. // See ListTrainingJobsForHyperParameterTuningJob for more information on using the ListTrainingJobsForHyperParameterTuningJob
  5004. // API call, and error handling.
  5005. //
  5006. // This method is useful when you want to inject custom logic or configuration
  5007. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5008. //
  5009. //
  5010. // // Example sending a request using the ListTrainingJobsForHyperParameterTuningJobRequest method.
  5011. // req, resp := client.ListTrainingJobsForHyperParameterTuningJobRequest(params)
  5012. //
  5013. // err := req.Send()
  5014. // if err == nil { // resp is now filled
  5015. // fmt.Println(resp)
  5016. // }
  5017. //
  5018. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob
  5019. func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobRequest(input *ListTrainingJobsForHyperParameterTuningJobInput) (req *request.Request, output *ListTrainingJobsForHyperParameterTuningJobOutput) {
  5020. op := &request.Operation{
  5021. Name: opListTrainingJobsForHyperParameterTuningJob,
  5022. HTTPMethod: "POST",
  5023. HTTPPath: "/",
  5024. Paginator: &request.Paginator{
  5025. InputTokens: []string{"NextToken"},
  5026. OutputTokens: []string{"NextToken"},
  5027. LimitToken: "MaxResults",
  5028. TruncationToken: "",
  5029. },
  5030. }
  5031. if input == nil {
  5032. input = &ListTrainingJobsForHyperParameterTuningJobInput{}
  5033. }
  5034. output = &ListTrainingJobsForHyperParameterTuningJobOutput{}
  5035. req = c.newRequest(op, input, output)
  5036. return
  5037. }
  5038. // ListTrainingJobsForHyperParameterTuningJob API operation for Amazon SageMaker Service.
  5039. //
  5040. // Gets a list of TrainingJobSummary objects that describe the training jobs
  5041. // that a hyperparameter tuning job launched.
  5042. //
  5043. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5044. // with awserr.Error's Code and Message methods to get detailed information about
  5045. // the error.
  5046. //
  5047. // See the AWS API reference guide for Amazon SageMaker Service's
  5048. // API operation ListTrainingJobsForHyperParameterTuningJob for usage and error information.
  5049. //
  5050. // Returned Error Codes:
  5051. // * ErrCodeResourceNotFound "ResourceNotFound"
  5052. // Resource being access is not found.
  5053. //
  5054. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob
  5055. func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJob(input *ListTrainingJobsForHyperParameterTuningJobInput) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) {
  5056. req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input)
  5057. return out, req.Send()
  5058. }
  5059. // ListTrainingJobsForHyperParameterTuningJobWithContext is the same as ListTrainingJobsForHyperParameterTuningJob with the addition of
  5060. // the ability to pass a context and additional request options.
  5061. //
  5062. // See ListTrainingJobsForHyperParameterTuningJob for details on how to use this API operation.
  5063. //
  5064. // The context must be non-nil and will be used for request cancellation. If
  5065. // the context is nil a panic will occur. In the future the SDK may create
  5066. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5067. // for more information on using Contexts.
  5068. func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, opts ...request.Option) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) {
  5069. req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input)
  5070. req.SetContext(ctx)
  5071. req.ApplyOptions(opts...)
  5072. return out, req.Send()
  5073. }
  5074. // ListTrainingJobsForHyperParameterTuningJobPages iterates over the pages of a ListTrainingJobsForHyperParameterTuningJob operation,
  5075. // calling the "fn" function with the response data for each page. To stop
  5076. // iterating, return false from the fn function.
  5077. //
  5078. // See ListTrainingJobsForHyperParameterTuningJob method for more information on how to use this operation.
  5079. //
  5080. // Note: This operation can generate multiple requests to a service.
  5081. //
  5082. // // Example iterating over at most 3 pages of a ListTrainingJobsForHyperParameterTuningJob operation.
  5083. // pageNum := 0
  5084. // err := client.ListTrainingJobsForHyperParameterTuningJobPages(params,
  5085. // func(page *ListTrainingJobsForHyperParameterTuningJobOutput, lastPage bool) bool {
  5086. // pageNum++
  5087. // fmt.Println(page)
  5088. // return pageNum <= 3
  5089. // })
  5090. //
  5091. func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPages(input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool) error {
  5092. return c.ListTrainingJobsForHyperParameterTuningJobPagesWithContext(aws.BackgroundContext(), input, fn)
  5093. }
  5094. // ListTrainingJobsForHyperParameterTuningJobPagesWithContext same as ListTrainingJobsForHyperParameterTuningJobPages except
  5095. // it takes a Context and allows setting request options on the pages.
  5096. //
  5097. // The context must be non-nil and will be used for request cancellation. If
  5098. // the context is nil a panic will occur. In the future the SDK may create
  5099. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5100. // for more information on using Contexts.
  5101. func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool, opts ...request.Option) error {
  5102. p := request.Pagination{
  5103. NewRequest: func() (*request.Request, error) {
  5104. var inCpy *ListTrainingJobsForHyperParameterTuningJobInput
  5105. if input != nil {
  5106. tmp := *input
  5107. inCpy = &tmp
  5108. }
  5109. req, _ := c.ListTrainingJobsForHyperParameterTuningJobRequest(inCpy)
  5110. req.SetContext(ctx)
  5111. req.ApplyOptions(opts...)
  5112. return req, nil
  5113. },
  5114. }
  5115. cont := true
  5116. for p.Next() && cont {
  5117. cont = fn(p.Page().(*ListTrainingJobsForHyperParameterTuningJobOutput), !p.HasNextPage())
  5118. }
  5119. return p.Err()
  5120. }
  5121. const opListTransformJobs = "ListTransformJobs"
  5122. // ListTransformJobsRequest generates a "aws/request.Request" representing the
  5123. // client's request for the ListTransformJobs operation. The "output" return
  5124. // value will be populated with the request's response once the request completes
  5125. // successfully.
  5126. //
  5127. // Use "Send" method on the returned Request to send the API call to the service.
  5128. // the "output" return value is not valid until after Send returns without error.
  5129. //
  5130. // See ListTransformJobs for more information on using the ListTransformJobs
  5131. // API call, and error handling.
  5132. //
  5133. // This method is useful when you want to inject custom logic or configuration
  5134. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5135. //
  5136. //
  5137. // // Example sending a request using the ListTransformJobsRequest method.
  5138. // req, resp := client.ListTransformJobsRequest(params)
  5139. //
  5140. // err := req.Send()
  5141. // if err == nil { // resp is now filled
  5142. // fmt.Println(resp)
  5143. // }
  5144. //
  5145. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs
  5146. func (c *SageMaker) ListTransformJobsRequest(input *ListTransformJobsInput) (req *request.Request, output *ListTransformJobsOutput) {
  5147. op := &request.Operation{
  5148. Name: opListTransformJobs,
  5149. HTTPMethod: "POST",
  5150. HTTPPath: "/",
  5151. Paginator: &request.Paginator{
  5152. InputTokens: []string{"NextToken"},
  5153. OutputTokens: []string{"NextToken"},
  5154. LimitToken: "MaxResults",
  5155. TruncationToken: "",
  5156. },
  5157. }
  5158. if input == nil {
  5159. input = &ListTransformJobsInput{}
  5160. }
  5161. output = &ListTransformJobsOutput{}
  5162. req = c.newRequest(op, input, output)
  5163. return
  5164. }
  5165. // ListTransformJobs API operation for Amazon SageMaker Service.
  5166. //
  5167. // Lists transform jobs.
  5168. //
  5169. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5170. // with awserr.Error's Code and Message methods to get detailed information about
  5171. // the error.
  5172. //
  5173. // See the AWS API reference guide for Amazon SageMaker Service's
  5174. // API operation ListTransformJobs for usage and error information.
  5175. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs
  5176. func (c *SageMaker) ListTransformJobs(input *ListTransformJobsInput) (*ListTransformJobsOutput, error) {
  5177. req, out := c.ListTransformJobsRequest(input)
  5178. return out, req.Send()
  5179. }
  5180. // ListTransformJobsWithContext is the same as ListTransformJobs with the addition of
  5181. // the ability to pass a context and additional request options.
  5182. //
  5183. // See ListTransformJobs for details on how to use this API operation.
  5184. //
  5185. // The context must be non-nil and will be used for request cancellation. If
  5186. // the context is nil a panic will occur. In the future the SDK may create
  5187. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5188. // for more information on using Contexts.
  5189. func (c *SageMaker) ListTransformJobsWithContext(ctx aws.Context, input *ListTransformJobsInput, opts ...request.Option) (*ListTransformJobsOutput, error) {
  5190. req, out := c.ListTransformJobsRequest(input)
  5191. req.SetContext(ctx)
  5192. req.ApplyOptions(opts...)
  5193. return out, req.Send()
  5194. }
  5195. // ListTransformJobsPages iterates over the pages of a ListTransformJobs operation,
  5196. // calling the "fn" function with the response data for each page. To stop
  5197. // iterating, return false from the fn function.
  5198. //
  5199. // See ListTransformJobs method for more information on how to use this operation.
  5200. //
  5201. // Note: This operation can generate multiple requests to a service.
  5202. //
  5203. // // Example iterating over at most 3 pages of a ListTransformJobs operation.
  5204. // pageNum := 0
  5205. // err := client.ListTransformJobsPages(params,
  5206. // func(page *ListTransformJobsOutput, lastPage bool) bool {
  5207. // pageNum++
  5208. // fmt.Println(page)
  5209. // return pageNum <= 3
  5210. // })
  5211. //
  5212. func (c *SageMaker) ListTransformJobsPages(input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool) error {
  5213. return c.ListTransformJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  5214. }
  5215. // ListTransformJobsPagesWithContext same as ListTransformJobsPages except
  5216. // it takes a Context and allows setting request options on the pages.
  5217. //
  5218. // The context must be non-nil and will be used for request cancellation. If
  5219. // the context is nil a panic will occur. In the future the SDK may create
  5220. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5221. // for more information on using Contexts.
  5222. func (c *SageMaker) ListTransformJobsPagesWithContext(ctx aws.Context, input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool, opts ...request.Option) error {
  5223. p := request.Pagination{
  5224. NewRequest: func() (*request.Request, error) {
  5225. var inCpy *ListTransformJobsInput
  5226. if input != nil {
  5227. tmp := *input
  5228. inCpy = &tmp
  5229. }
  5230. req, _ := c.ListTransformJobsRequest(inCpy)
  5231. req.SetContext(ctx)
  5232. req.ApplyOptions(opts...)
  5233. return req, nil
  5234. },
  5235. }
  5236. cont := true
  5237. for p.Next() && cont {
  5238. cont = fn(p.Page().(*ListTransformJobsOutput), !p.HasNextPage())
  5239. }
  5240. return p.Err()
  5241. }
  5242. const opListWorkteams = "ListWorkteams"
  5243. // ListWorkteamsRequest generates a "aws/request.Request" representing the
  5244. // client's request for the ListWorkteams operation. The "output" return
  5245. // value will be populated with the request's response once the request completes
  5246. // successfully.
  5247. //
  5248. // Use "Send" method on the returned Request to send the API call to the service.
  5249. // the "output" return value is not valid until after Send returns without error.
  5250. //
  5251. // See ListWorkteams for more information on using the ListWorkteams
  5252. // API call, and error handling.
  5253. //
  5254. // This method is useful when you want to inject custom logic or configuration
  5255. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5256. //
  5257. //
  5258. // // Example sending a request using the ListWorkteamsRequest method.
  5259. // req, resp := client.ListWorkteamsRequest(params)
  5260. //
  5261. // err := req.Send()
  5262. // if err == nil { // resp is now filled
  5263. // fmt.Println(resp)
  5264. // }
  5265. //
  5266. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams
  5267. func (c *SageMaker) ListWorkteamsRequest(input *ListWorkteamsInput) (req *request.Request, output *ListWorkteamsOutput) {
  5268. op := &request.Operation{
  5269. Name: opListWorkteams,
  5270. HTTPMethod: "POST",
  5271. HTTPPath: "/",
  5272. Paginator: &request.Paginator{
  5273. InputTokens: []string{"NextToken"},
  5274. OutputTokens: []string{"NextToken"},
  5275. LimitToken: "MaxResults",
  5276. TruncationToken: "",
  5277. },
  5278. }
  5279. if input == nil {
  5280. input = &ListWorkteamsInput{}
  5281. }
  5282. output = &ListWorkteamsOutput{}
  5283. req = c.newRequest(op, input, output)
  5284. return
  5285. }
  5286. // ListWorkteams API operation for Amazon SageMaker Service.
  5287. //
  5288. // Gets a list of work teams that you have defined in a region. The list may
  5289. // be empty if no work team satisfies the filter specified in the NameContains
  5290. // parameter.
  5291. //
  5292. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5293. // with awserr.Error's Code and Message methods to get detailed information about
  5294. // the error.
  5295. //
  5296. // See the AWS API reference guide for Amazon SageMaker Service's
  5297. // API operation ListWorkteams for usage and error information.
  5298. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams
  5299. func (c *SageMaker) ListWorkteams(input *ListWorkteamsInput) (*ListWorkteamsOutput, error) {
  5300. req, out := c.ListWorkteamsRequest(input)
  5301. return out, req.Send()
  5302. }
  5303. // ListWorkteamsWithContext is the same as ListWorkteams with the addition of
  5304. // the ability to pass a context and additional request options.
  5305. //
  5306. // See ListWorkteams for details on how to use this API operation.
  5307. //
  5308. // The context must be non-nil and will be used for request cancellation. If
  5309. // the context is nil a panic will occur. In the future the SDK may create
  5310. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5311. // for more information on using Contexts.
  5312. func (c *SageMaker) ListWorkteamsWithContext(ctx aws.Context, input *ListWorkteamsInput, opts ...request.Option) (*ListWorkteamsOutput, error) {
  5313. req, out := c.ListWorkteamsRequest(input)
  5314. req.SetContext(ctx)
  5315. req.ApplyOptions(opts...)
  5316. return out, req.Send()
  5317. }
  5318. // ListWorkteamsPages iterates over the pages of a ListWorkteams operation,
  5319. // calling the "fn" function with the response data for each page. To stop
  5320. // iterating, return false from the fn function.
  5321. //
  5322. // See ListWorkteams method for more information on how to use this operation.
  5323. //
  5324. // Note: This operation can generate multiple requests to a service.
  5325. //
  5326. // // Example iterating over at most 3 pages of a ListWorkteams operation.
  5327. // pageNum := 0
  5328. // err := client.ListWorkteamsPages(params,
  5329. // func(page *ListWorkteamsOutput, lastPage bool) bool {
  5330. // pageNum++
  5331. // fmt.Println(page)
  5332. // return pageNum <= 3
  5333. // })
  5334. //
  5335. func (c *SageMaker) ListWorkteamsPages(input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool) error {
  5336. return c.ListWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn)
  5337. }
  5338. // ListWorkteamsPagesWithContext same as ListWorkteamsPages except
  5339. // it takes a Context and allows setting request options on the pages.
  5340. //
  5341. // The context must be non-nil and will be used for request cancellation. If
  5342. // the context is nil a panic will occur. In the future the SDK may create
  5343. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5344. // for more information on using Contexts.
  5345. func (c *SageMaker) ListWorkteamsPagesWithContext(ctx aws.Context, input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool, opts ...request.Option) error {
  5346. p := request.Pagination{
  5347. NewRequest: func() (*request.Request, error) {
  5348. var inCpy *ListWorkteamsInput
  5349. if input != nil {
  5350. tmp := *input
  5351. inCpy = &tmp
  5352. }
  5353. req, _ := c.ListWorkteamsRequest(inCpy)
  5354. req.SetContext(ctx)
  5355. req.ApplyOptions(opts...)
  5356. return req, nil
  5357. },
  5358. }
  5359. cont := true
  5360. for p.Next() && cont {
  5361. cont = fn(p.Page().(*ListWorkteamsOutput), !p.HasNextPage())
  5362. }
  5363. return p.Err()
  5364. }
  5365. const opRenderUiTemplate = "RenderUiTemplate"
  5366. // RenderUiTemplateRequest generates a "aws/request.Request" representing the
  5367. // client's request for the RenderUiTemplate operation. The "output" return
  5368. // value will be populated with the request's response once the request completes
  5369. // successfully.
  5370. //
  5371. // Use "Send" method on the returned Request to send the API call to the service.
  5372. // the "output" return value is not valid until after Send returns without error.
  5373. //
  5374. // See RenderUiTemplate for more information on using the RenderUiTemplate
  5375. // API call, and error handling.
  5376. //
  5377. // This method is useful when you want to inject custom logic or configuration
  5378. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5379. //
  5380. //
  5381. // // Example sending a request using the RenderUiTemplateRequest method.
  5382. // req, resp := client.RenderUiTemplateRequest(params)
  5383. //
  5384. // err := req.Send()
  5385. // if err == nil { // resp is now filled
  5386. // fmt.Println(resp)
  5387. // }
  5388. //
  5389. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate
  5390. func (c *SageMaker) RenderUiTemplateRequest(input *RenderUiTemplateInput) (req *request.Request, output *RenderUiTemplateOutput) {
  5391. op := &request.Operation{
  5392. Name: opRenderUiTemplate,
  5393. HTTPMethod: "POST",
  5394. HTTPPath: "/",
  5395. }
  5396. if input == nil {
  5397. input = &RenderUiTemplateInput{}
  5398. }
  5399. output = &RenderUiTemplateOutput{}
  5400. req = c.newRequest(op, input, output)
  5401. return
  5402. }
  5403. // RenderUiTemplate API operation for Amazon SageMaker Service.
  5404. //
  5405. // Renders the UI template so that you can preview the worker's experience.
  5406. //
  5407. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5408. // with awserr.Error's Code and Message methods to get detailed information about
  5409. // the error.
  5410. //
  5411. // See the AWS API reference guide for Amazon SageMaker Service's
  5412. // API operation RenderUiTemplate for usage and error information.
  5413. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate
  5414. func (c *SageMaker) RenderUiTemplate(input *RenderUiTemplateInput) (*RenderUiTemplateOutput, error) {
  5415. req, out := c.RenderUiTemplateRequest(input)
  5416. return out, req.Send()
  5417. }
  5418. // RenderUiTemplateWithContext is the same as RenderUiTemplate with the addition of
  5419. // the ability to pass a context and additional request options.
  5420. //
  5421. // See RenderUiTemplate for details on how to use this API operation.
  5422. //
  5423. // The context must be non-nil and will be used for request cancellation. If
  5424. // the context is nil a panic will occur. In the future the SDK may create
  5425. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5426. // for more information on using Contexts.
  5427. func (c *SageMaker) RenderUiTemplateWithContext(ctx aws.Context, input *RenderUiTemplateInput, opts ...request.Option) (*RenderUiTemplateOutput, error) {
  5428. req, out := c.RenderUiTemplateRequest(input)
  5429. req.SetContext(ctx)
  5430. req.ApplyOptions(opts...)
  5431. return out, req.Send()
  5432. }
  5433. const opSearch = "Search"
  5434. // SearchRequest generates a "aws/request.Request" representing the
  5435. // client's request for the Search operation. The "output" return
  5436. // value will be populated with the request's response once the request completes
  5437. // successfully.
  5438. //
  5439. // Use "Send" method on the returned Request to send the API call to the service.
  5440. // the "output" return value is not valid until after Send returns without error.
  5441. //
  5442. // See Search for more information on using the Search
  5443. // API call, and error handling.
  5444. //
  5445. // This method is useful when you want to inject custom logic or configuration
  5446. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5447. //
  5448. //
  5449. // // Example sending a request using the SearchRequest method.
  5450. // req, resp := client.SearchRequest(params)
  5451. //
  5452. // err := req.Send()
  5453. // if err == nil { // resp is now filled
  5454. // fmt.Println(resp)
  5455. // }
  5456. //
  5457. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search
  5458. func (c *SageMaker) SearchRequest(input *SearchInput) (req *request.Request, output *SearchOutput) {
  5459. op := &request.Operation{
  5460. Name: opSearch,
  5461. HTTPMethod: "POST",
  5462. HTTPPath: "/",
  5463. Paginator: &request.Paginator{
  5464. InputTokens: []string{"NextToken"},
  5465. OutputTokens: []string{"NextToken"},
  5466. LimitToken: "MaxResults",
  5467. TruncationToken: "",
  5468. },
  5469. }
  5470. if input == nil {
  5471. input = &SearchInput{}
  5472. }
  5473. output = &SearchOutput{}
  5474. req = c.newRequest(op, input, output)
  5475. return
  5476. }
  5477. // Search API operation for Amazon SageMaker Service.
  5478. //
  5479. // Finds Amazon SageMaker resources that match a search query. Matching resource
  5480. // objects are returned as a list of SearchResult objects in the response. You
  5481. // can sort the search results by any resource property in a ascending or descending
  5482. // order.
  5483. //
  5484. // You can query against the following value types: numerical, text, Booleans,
  5485. // and timestamps.
  5486. //
  5487. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5488. // with awserr.Error's Code and Message methods to get detailed information about
  5489. // the error.
  5490. //
  5491. // See the AWS API reference guide for Amazon SageMaker Service's
  5492. // API operation Search for usage and error information.
  5493. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search
  5494. func (c *SageMaker) Search(input *SearchInput) (*SearchOutput, error) {
  5495. req, out := c.SearchRequest(input)
  5496. return out, req.Send()
  5497. }
  5498. // SearchWithContext is the same as Search with the addition of
  5499. // the ability to pass a context and additional request options.
  5500. //
  5501. // See Search for details on how to use this API operation.
  5502. //
  5503. // The context must be non-nil and will be used for request cancellation. If
  5504. // the context is nil a panic will occur. In the future the SDK may create
  5505. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5506. // for more information on using Contexts.
  5507. func (c *SageMaker) SearchWithContext(ctx aws.Context, input *SearchInput, opts ...request.Option) (*SearchOutput, error) {
  5508. req, out := c.SearchRequest(input)
  5509. req.SetContext(ctx)
  5510. req.ApplyOptions(opts...)
  5511. return out, req.Send()
  5512. }
  5513. // SearchPages iterates over the pages of a Search operation,
  5514. // calling the "fn" function with the response data for each page. To stop
  5515. // iterating, return false from the fn function.
  5516. //
  5517. // See Search method for more information on how to use this operation.
  5518. //
  5519. // Note: This operation can generate multiple requests to a service.
  5520. //
  5521. // // Example iterating over at most 3 pages of a Search operation.
  5522. // pageNum := 0
  5523. // err := client.SearchPages(params,
  5524. // func(page *SearchOutput, lastPage bool) bool {
  5525. // pageNum++
  5526. // fmt.Println(page)
  5527. // return pageNum <= 3
  5528. // })
  5529. //
  5530. func (c *SageMaker) SearchPages(input *SearchInput, fn func(*SearchOutput, bool) bool) error {
  5531. return c.SearchPagesWithContext(aws.BackgroundContext(), input, fn)
  5532. }
  5533. // SearchPagesWithContext same as SearchPages except
  5534. // it takes a Context and allows setting request options on the pages.
  5535. //
  5536. // The context must be non-nil and will be used for request cancellation. If
  5537. // the context is nil a panic will occur. In the future the SDK may create
  5538. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5539. // for more information on using Contexts.
  5540. func (c *SageMaker) SearchPagesWithContext(ctx aws.Context, input *SearchInput, fn func(*SearchOutput, bool) bool, opts ...request.Option) error {
  5541. p := request.Pagination{
  5542. NewRequest: func() (*request.Request, error) {
  5543. var inCpy *SearchInput
  5544. if input != nil {
  5545. tmp := *input
  5546. inCpy = &tmp
  5547. }
  5548. req, _ := c.SearchRequest(inCpy)
  5549. req.SetContext(ctx)
  5550. req.ApplyOptions(opts...)
  5551. return req, nil
  5552. },
  5553. }
  5554. cont := true
  5555. for p.Next() && cont {
  5556. cont = fn(p.Page().(*SearchOutput), !p.HasNextPage())
  5557. }
  5558. return p.Err()
  5559. }
  5560. const opStartNotebookInstance = "StartNotebookInstance"
  5561. // StartNotebookInstanceRequest generates a "aws/request.Request" representing the
  5562. // client's request for the StartNotebookInstance operation. The "output" return
  5563. // value will be populated with the request's response once the request completes
  5564. // successfully.
  5565. //
  5566. // Use "Send" method on the returned Request to send the API call to the service.
  5567. // the "output" return value is not valid until after Send returns without error.
  5568. //
  5569. // See StartNotebookInstance for more information on using the StartNotebookInstance
  5570. // API call, and error handling.
  5571. //
  5572. // This method is useful when you want to inject custom logic or configuration
  5573. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5574. //
  5575. //
  5576. // // Example sending a request using the StartNotebookInstanceRequest method.
  5577. // req, resp := client.StartNotebookInstanceRequest(params)
  5578. //
  5579. // err := req.Send()
  5580. // if err == nil { // resp is now filled
  5581. // fmt.Println(resp)
  5582. // }
  5583. //
  5584. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance
  5585. func (c *SageMaker) StartNotebookInstanceRequest(input *StartNotebookInstanceInput) (req *request.Request, output *StartNotebookInstanceOutput) {
  5586. op := &request.Operation{
  5587. Name: opStartNotebookInstance,
  5588. HTTPMethod: "POST",
  5589. HTTPPath: "/",
  5590. }
  5591. if input == nil {
  5592. input = &StartNotebookInstanceInput{}
  5593. }
  5594. output = &StartNotebookInstanceOutput{}
  5595. req = c.newRequest(op, input, output)
  5596. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  5597. return
  5598. }
  5599. // StartNotebookInstance API operation for Amazon SageMaker Service.
  5600. //
  5601. // Launches an ML compute instance with the latest version of the libraries
  5602. // and attaches your ML storage volume. After configuring the notebook instance,
  5603. // Amazon SageMaker sets the notebook instance status to InService. A notebook
  5604. // instance's status must be InService before you can connect to your Jupyter
  5605. // notebook.
  5606. //
  5607. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5608. // with awserr.Error's Code and Message methods to get detailed information about
  5609. // the error.
  5610. //
  5611. // See the AWS API reference guide for Amazon SageMaker Service's
  5612. // API operation StartNotebookInstance for usage and error information.
  5613. //
  5614. // Returned Error Codes:
  5615. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  5616. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  5617. // have too many training jobs created.
  5618. //
  5619. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance
  5620. func (c *SageMaker) StartNotebookInstance(input *StartNotebookInstanceInput) (*StartNotebookInstanceOutput, error) {
  5621. req, out := c.StartNotebookInstanceRequest(input)
  5622. return out, req.Send()
  5623. }
  5624. // StartNotebookInstanceWithContext is the same as StartNotebookInstance with the addition of
  5625. // the ability to pass a context and additional request options.
  5626. //
  5627. // See StartNotebookInstance for details on how to use this API operation.
  5628. //
  5629. // The context must be non-nil and will be used for request cancellation. If
  5630. // the context is nil a panic will occur. In the future the SDK may create
  5631. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5632. // for more information on using Contexts.
  5633. func (c *SageMaker) StartNotebookInstanceWithContext(ctx aws.Context, input *StartNotebookInstanceInput, opts ...request.Option) (*StartNotebookInstanceOutput, error) {
  5634. req, out := c.StartNotebookInstanceRequest(input)
  5635. req.SetContext(ctx)
  5636. req.ApplyOptions(opts...)
  5637. return out, req.Send()
  5638. }
  5639. const opStopCompilationJob = "StopCompilationJob"
  5640. // StopCompilationJobRequest generates a "aws/request.Request" representing the
  5641. // client's request for the StopCompilationJob operation. The "output" return
  5642. // value will be populated with the request's response once the request completes
  5643. // successfully.
  5644. //
  5645. // Use "Send" method on the returned Request to send the API call to the service.
  5646. // the "output" return value is not valid until after Send returns without error.
  5647. //
  5648. // See StopCompilationJob for more information on using the StopCompilationJob
  5649. // API call, and error handling.
  5650. //
  5651. // This method is useful when you want to inject custom logic or configuration
  5652. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5653. //
  5654. //
  5655. // // Example sending a request using the StopCompilationJobRequest method.
  5656. // req, resp := client.StopCompilationJobRequest(params)
  5657. //
  5658. // err := req.Send()
  5659. // if err == nil { // resp is now filled
  5660. // fmt.Println(resp)
  5661. // }
  5662. //
  5663. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob
  5664. func (c *SageMaker) StopCompilationJobRequest(input *StopCompilationJobInput) (req *request.Request, output *StopCompilationJobOutput) {
  5665. op := &request.Operation{
  5666. Name: opStopCompilationJob,
  5667. HTTPMethod: "POST",
  5668. HTTPPath: "/",
  5669. }
  5670. if input == nil {
  5671. input = &StopCompilationJobInput{}
  5672. }
  5673. output = &StopCompilationJobOutput{}
  5674. req = c.newRequest(op, input, output)
  5675. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  5676. return
  5677. }
  5678. // StopCompilationJob API operation for Amazon SageMaker Service.
  5679. //
  5680. // Stops a model compilation job.
  5681. //
  5682. // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This
  5683. // gracefully shuts the job down. If the job hasn't stopped, it sends the SIGKILL
  5684. // signal.
  5685. //
  5686. // When it receives a StopCompilationJob request, Amazon SageMaker changes the
  5687. // CompilationJobSummary$CompilationJobStatus of the job to Stopping. After
  5688. // Amazon SageMaker stops the job, it sets the CompilationJobSummary$CompilationJobStatus
  5689. // to Stopped.
  5690. //
  5691. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5692. // with awserr.Error's Code and Message methods to get detailed information about
  5693. // the error.
  5694. //
  5695. // See the AWS API reference guide for Amazon SageMaker Service's
  5696. // API operation StopCompilationJob for usage and error information.
  5697. //
  5698. // Returned Error Codes:
  5699. // * ErrCodeResourceNotFound "ResourceNotFound"
  5700. // Resource being access is not found.
  5701. //
  5702. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob
  5703. func (c *SageMaker) StopCompilationJob(input *StopCompilationJobInput) (*StopCompilationJobOutput, error) {
  5704. req, out := c.StopCompilationJobRequest(input)
  5705. return out, req.Send()
  5706. }
  5707. // StopCompilationJobWithContext is the same as StopCompilationJob with the addition of
  5708. // the ability to pass a context and additional request options.
  5709. //
  5710. // See StopCompilationJob for details on how to use this API operation.
  5711. //
  5712. // The context must be non-nil and will be used for request cancellation. If
  5713. // the context is nil a panic will occur. In the future the SDK may create
  5714. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5715. // for more information on using Contexts.
  5716. func (c *SageMaker) StopCompilationJobWithContext(ctx aws.Context, input *StopCompilationJobInput, opts ...request.Option) (*StopCompilationJobOutput, error) {
  5717. req, out := c.StopCompilationJobRequest(input)
  5718. req.SetContext(ctx)
  5719. req.ApplyOptions(opts...)
  5720. return out, req.Send()
  5721. }
  5722. const opStopHyperParameterTuningJob = "StopHyperParameterTuningJob"
  5723. // StopHyperParameterTuningJobRequest generates a "aws/request.Request" representing the
  5724. // client's request for the StopHyperParameterTuningJob operation. The "output" return
  5725. // value will be populated with the request's response once the request completes
  5726. // successfully.
  5727. //
  5728. // Use "Send" method on the returned Request to send the API call to the service.
  5729. // the "output" return value is not valid until after Send returns without error.
  5730. //
  5731. // See StopHyperParameterTuningJob for more information on using the StopHyperParameterTuningJob
  5732. // API call, and error handling.
  5733. //
  5734. // This method is useful when you want to inject custom logic or configuration
  5735. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5736. //
  5737. //
  5738. // // Example sending a request using the StopHyperParameterTuningJobRequest method.
  5739. // req, resp := client.StopHyperParameterTuningJobRequest(params)
  5740. //
  5741. // err := req.Send()
  5742. // if err == nil { // resp is now filled
  5743. // fmt.Println(resp)
  5744. // }
  5745. //
  5746. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob
  5747. func (c *SageMaker) StopHyperParameterTuningJobRequest(input *StopHyperParameterTuningJobInput) (req *request.Request, output *StopHyperParameterTuningJobOutput) {
  5748. op := &request.Operation{
  5749. Name: opStopHyperParameterTuningJob,
  5750. HTTPMethod: "POST",
  5751. HTTPPath: "/",
  5752. }
  5753. if input == nil {
  5754. input = &StopHyperParameterTuningJobInput{}
  5755. }
  5756. output = &StopHyperParameterTuningJobOutput{}
  5757. req = c.newRequest(op, input, output)
  5758. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  5759. return
  5760. }
  5761. // StopHyperParameterTuningJob API operation for Amazon SageMaker Service.
  5762. //
  5763. // Stops a running hyperparameter tuning job and all running training jobs that
  5764. // the tuning job launched.
  5765. //
  5766. // All model artifacts output from the training jobs are stored in Amazon Simple
  5767. // Storage Service (Amazon S3). All data that the training jobs write to Amazon
  5768. // CloudWatch Logs are still available in CloudWatch. After the tuning job moves
  5769. // to the Stopped state, it releases all reserved resources for the tuning job.
  5770. //
  5771. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5772. // with awserr.Error's Code and Message methods to get detailed information about
  5773. // the error.
  5774. //
  5775. // See the AWS API reference guide for Amazon SageMaker Service's
  5776. // API operation StopHyperParameterTuningJob for usage and error information.
  5777. //
  5778. // Returned Error Codes:
  5779. // * ErrCodeResourceNotFound "ResourceNotFound"
  5780. // Resource being access is not found.
  5781. //
  5782. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob
  5783. func (c *SageMaker) StopHyperParameterTuningJob(input *StopHyperParameterTuningJobInput) (*StopHyperParameterTuningJobOutput, error) {
  5784. req, out := c.StopHyperParameterTuningJobRequest(input)
  5785. return out, req.Send()
  5786. }
  5787. // StopHyperParameterTuningJobWithContext is the same as StopHyperParameterTuningJob with the addition of
  5788. // the ability to pass a context and additional request options.
  5789. //
  5790. // See StopHyperParameterTuningJob for details on how to use this API operation.
  5791. //
  5792. // The context must be non-nil and will be used for request cancellation. If
  5793. // the context is nil a panic will occur. In the future the SDK may create
  5794. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5795. // for more information on using Contexts.
  5796. func (c *SageMaker) StopHyperParameterTuningJobWithContext(ctx aws.Context, input *StopHyperParameterTuningJobInput, opts ...request.Option) (*StopHyperParameterTuningJobOutput, error) {
  5797. req, out := c.StopHyperParameterTuningJobRequest(input)
  5798. req.SetContext(ctx)
  5799. req.ApplyOptions(opts...)
  5800. return out, req.Send()
  5801. }
  5802. const opStopLabelingJob = "StopLabelingJob"
  5803. // StopLabelingJobRequest generates a "aws/request.Request" representing the
  5804. // client's request for the StopLabelingJob operation. The "output" return
  5805. // value will be populated with the request's response once the request completes
  5806. // successfully.
  5807. //
  5808. // Use "Send" method on the returned Request to send the API call to the service.
  5809. // the "output" return value is not valid until after Send returns without error.
  5810. //
  5811. // See StopLabelingJob for more information on using the StopLabelingJob
  5812. // API call, and error handling.
  5813. //
  5814. // This method is useful when you want to inject custom logic or configuration
  5815. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5816. //
  5817. //
  5818. // // Example sending a request using the StopLabelingJobRequest method.
  5819. // req, resp := client.StopLabelingJobRequest(params)
  5820. //
  5821. // err := req.Send()
  5822. // if err == nil { // resp is now filled
  5823. // fmt.Println(resp)
  5824. // }
  5825. //
  5826. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob
  5827. func (c *SageMaker) StopLabelingJobRequest(input *StopLabelingJobInput) (req *request.Request, output *StopLabelingJobOutput) {
  5828. op := &request.Operation{
  5829. Name: opStopLabelingJob,
  5830. HTTPMethod: "POST",
  5831. HTTPPath: "/",
  5832. }
  5833. if input == nil {
  5834. input = &StopLabelingJobInput{}
  5835. }
  5836. output = &StopLabelingJobOutput{}
  5837. req = c.newRequest(op, input, output)
  5838. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  5839. return
  5840. }
  5841. // StopLabelingJob API operation for Amazon SageMaker Service.
  5842. //
  5843. // Stops a running labeling job. A job that is stopped cannot be restarted.
  5844. // Any results obtained before the job is stopped are placed in the Amazon S3
  5845. // output bucket.
  5846. //
  5847. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5848. // with awserr.Error's Code and Message methods to get detailed information about
  5849. // the error.
  5850. //
  5851. // See the AWS API reference guide for Amazon SageMaker Service's
  5852. // API operation StopLabelingJob for usage and error information.
  5853. //
  5854. // Returned Error Codes:
  5855. // * ErrCodeResourceNotFound "ResourceNotFound"
  5856. // Resource being access is not found.
  5857. //
  5858. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob
  5859. func (c *SageMaker) StopLabelingJob(input *StopLabelingJobInput) (*StopLabelingJobOutput, error) {
  5860. req, out := c.StopLabelingJobRequest(input)
  5861. return out, req.Send()
  5862. }
  5863. // StopLabelingJobWithContext is the same as StopLabelingJob with the addition of
  5864. // the ability to pass a context and additional request options.
  5865. //
  5866. // See StopLabelingJob for details on how to use this API operation.
  5867. //
  5868. // The context must be non-nil and will be used for request cancellation. If
  5869. // the context is nil a panic will occur. In the future the SDK may create
  5870. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5871. // for more information on using Contexts.
  5872. func (c *SageMaker) StopLabelingJobWithContext(ctx aws.Context, input *StopLabelingJobInput, opts ...request.Option) (*StopLabelingJobOutput, error) {
  5873. req, out := c.StopLabelingJobRequest(input)
  5874. req.SetContext(ctx)
  5875. req.ApplyOptions(opts...)
  5876. return out, req.Send()
  5877. }
  5878. const opStopNotebookInstance = "StopNotebookInstance"
  5879. // StopNotebookInstanceRequest generates a "aws/request.Request" representing the
  5880. // client's request for the StopNotebookInstance operation. The "output" return
  5881. // value will be populated with the request's response once the request completes
  5882. // successfully.
  5883. //
  5884. // Use "Send" method on the returned Request to send the API call to the service.
  5885. // the "output" return value is not valid until after Send returns without error.
  5886. //
  5887. // See StopNotebookInstance for more information on using the StopNotebookInstance
  5888. // API call, and error handling.
  5889. //
  5890. // This method is useful when you want to inject custom logic or configuration
  5891. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5892. //
  5893. //
  5894. // // Example sending a request using the StopNotebookInstanceRequest method.
  5895. // req, resp := client.StopNotebookInstanceRequest(params)
  5896. //
  5897. // err := req.Send()
  5898. // if err == nil { // resp is now filled
  5899. // fmt.Println(resp)
  5900. // }
  5901. //
  5902. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance
  5903. func (c *SageMaker) StopNotebookInstanceRequest(input *StopNotebookInstanceInput) (req *request.Request, output *StopNotebookInstanceOutput) {
  5904. op := &request.Operation{
  5905. Name: opStopNotebookInstance,
  5906. HTTPMethod: "POST",
  5907. HTTPPath: "/",
  5908. }
  5909. if input == nil {
  5910. input = &StopNotebookInstanceInput{}
  5911. }
  5912. output = &StopNotebookInstanceOutput{}
  5913. req = c.newRequest(op, input, output)
  5914. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  5915. return
  5916. }
  5917. // StopNotebookInstance API operation for Amazon SageMaker Service.
  5918. //
  5919. // Terminates the ML compute instance. Before terminating the instance, Amazon
  5920. // SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves
  5921. // the ML storage volume.
  5922. //
  5923. // To access data on the ML storage volume for a notebook instance that has
  5924. // been terminated, call the StartNotebookInstance API. StartNotebookInstance
  5925. // launches another ML compute instance, configures it, and attaches the preserved
  5926. // ML storage volume so you can continue your work.
  5927. //
  5928. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5929. // with awserr.Error's Code and Message methods to get detailed information about
  5930. // the error.
  5931. //
  5932. // See the AWS API reference guide for Amazon SageMaker Service's
  5933. // API operation StopNotebookInstance for usage and error information.
  5934. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance
  5935. func (c *SageMaker) StopNotebookInstance(input *StopNotebookInstanceInput) (*StopNotebookInstanceOutput, error) {
  5936. req, out := c.StopNotebookInstanceRequest(input)
  5937. return out, req.Send()
  5938. }
  5939. // StopNotebookInstanceWithContext is the same as StopNotebookInstance with the addition of
  5940. // the ability to pass a context and additional request options.
  5941. //
  5942. // See StopNotebookInstance for details on how to use this API operation.
  5943. //
  5944. // The context must be non-nil and will be used for request cancellation. If
  5945. // the context is nil a panic will occur. In the future the SDK may create
  5946. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5947. // for more information on using Contexts.
  5948. func (c *SageMaker) StopNotebookInstanceWithContext(ctx aws.Context, input *StopNotebookInstanceInput, opts ...request.Option) (*StopNotebookInstanceOutput, error) {
  5949. req, out := c.StopNotebookInstanceRequest(input)
  5950. req.SetContext(ctx)
  5951. req.ApplyOptions(opts...)
  5952. return out, req.Send()
  5953. }
  5954. const opStopTrainingJob = "StopTrainingJob"
  5955. // StopTrainingJobRequest generates a "aws/request.Request" representing the
  5956. // client's request for the StopTrainingJob operation. The "output" return
  5957. // value will be populated with the request's response once the request completes
  5958. // successfully.
  5959. //
  5960. // Use "Send" method on the returned Request to send the API call to the service.
  5961. // the "output" return value is not valid until after Send returns without error.
  5962. //
  5963. // See StopTrainingJob for more information on using the StopTrainingJob
  5964. // API call, and error handling.
  5965. //
  5966. // This method is useful when you want to inject custom logic or configuration
  5967. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5968. //
  5969. //
  5970. // // Example sending a request using the StopTrainingJobRequest method.
  5971. // req, resp := client.StopTrainingJobRequest(params)
  5972. //
  5973. // err := req.Send()
  5974. // if err == nil { // resp is now filled
  5975. // fmt.Println(resp)
  5976. // }
  5977. //
  5978. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob
  5979. func (c *SageMaker) StopTrainingJobRequest(input *StopTrainingJobInput) (req *request.Request, output *StopTrainingJobOutput) {
  5980. op := &request.Operation{
  5981. Name: opStopTrainingJob,
  5982. HTTPMethod: "POST",
  5983. HTTPPath: "/",
  5984. }
  5985. if input == nil {
  5986. input = &StopTrainingJobInput{}
  5987. }
  5988. output = &StopTrainingJobOutput{}
  5989. req = c.newRequest(op, input, output)
  5990. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  5991. return
  5992. }
  5993. // StopTrainingJob API operation for Amazon SageMaker Service.
  5994. //
  5995. // Stops a training job. To stop a job, Amazon SageMaker sends the algorithm
  5996. // the SIGTERM signal, which delays job termination for 120 seconds. Algorithms
  5997. // might use this 120-second window to save the model artifacts, so the results
  5998. // of the training is not lost.
  5999. //
  6000. // Training algorithms provided by Amazon SageMaker save the intermediate results
  6001. // of a model training job. This intermediate data is a valid model artifact.
  6002. // You can use the model artifacts that are saved when Amazon SageMaker stops
  6003. // a training job to create a model.
  6004. //
  6005. // When it receives a StopTrainingJob request, Amazon SageMaker changes the
  6006. // status of the job to Stopping. After Amazon SageMaker stops the job, it sets
  6007. // the status to Stopped.
  6008. //
  6009. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6010. // with awserr.Error's Code and Message methods to get detailed information about
  6011. // the error.
  6012. //
  6013. // See the AWS API reference guide for Amazon SageMaker Service's
  6014. // API operation StopTrainingJob for usage and error information.
  6015. //
  6016. // Returned Error Codes:
  6017. // * ErrCodeResourceNotFound "ResourceNotFound"
  6018. // Resource being access is not found.
  6019. //
  6020. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob
  6021. func (c *SageMaker) StopTrainingJob(input *StopTrainingJobInput) (*StopTrainingJobOutput, error) {
  6022. req, out := c.StopTrainingJobRequest(input)
  6023. return out, req.Send()
  6024. }
  6025. // StopTrainingJobWithContext is the same as StopTrainingJob with the addition of
  6026. // the ability to pass a context and additional request options.
  6027. //
  6028. // See StopTrainingJob for details on how to use this API operation.
  6029. //
  6030. // The context must be non-nil and will be used for request cancellation. If
  6031. // the context is nil a panic will occur. In the future the SDK may create
  6032. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6033. // for more information on using Contexts.
  6034. func (c *SageMaker) StopTrainingJobWithContext(ctx aws.Context, input *StopTrainingJobInput, opts ...request.Option) (*StopTrainingJobOutput, error) {
  6035. req, out := c.StopTrainingJobRequest(input)
  6036. req.SetContext(ctx)
  6037. req.ApplyOptions(opts...)
  6038. return out, req.Send()
  6039. }
  6040. const opStopTransformJob = "StopTransformJob"
  6041. // StopTransformJobRequest generates a "aws/request.Request" representing the
  6042. // client's request for the StopTransformJob operation. The "output" return
  6043. // value will be populated with the request's response once the request completes
  6044. // successfully.
  6045. //
  6046. // Use "Send" method on the returned Request to send the API call to the service.
  6047. // the "output" return value is not valid until after Send returns without error.
  6048. //
  6049. // See StopTransformJob for more information on using the StopTransformJob
  6050. // API call, and error handling.
  6051. //
  6052. // This method is useful when you want to inject custom logic or configuration
  6053. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6054. //
  6055. //
  6056. // // Example sending a request using the StopTransformJobRequest method.
  6057. // req, resp := client.StopTransformJobRequest(params)
  6058. //
  6059. // err := req.Send()
  6060. // if err == nil { // resp is now filled
  6061. // fmt.Println(resp)
  6062. // }
  6063. //
  6064. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob
  6065. func (c *SageMaker) StopTransformJobRequest(input *StopTransformJobInput) (req *request.Request, output *StopTransformJobOutput) {
  6066. op := &request.Operation{
  6067. Name: opStopTransformJob,
  6068. HTTPMethod: "POST",
  6069. HTTPPath: "/",
  6070. }
  6071. if input == nil {
  6072. input = &StopTransformJobInput{}
  6073. }
  6074. output = &StopTransformJobOutput{}
  6075. req = c.newRequest(op, input, output)
  6076. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  6077. return
  6078. }
  6079. // StopTransformJob API operation for Amazon SageMaker Service.
  6080. //
  6081. // Stops a transform job.
  6082. //
  6083. // When Amazon SageMaker receives a StopTransformJob request, the status of
  6084. // the job changes to Stopping. After Amazon SageMaker stops the job, the status
  6085. // is set to Stopped. When you stop a transform job before it is completed,
  6086. // Amazon SageMaker doesn't store the job's output in Amazon S3.
  6087. //
  6088. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6089. // with awserr.Error's Code and Message methods to get detailed information about
  6090. // the error.
  6091. //
  6092. // See the AWS API reference guide for Amazon SageMaker Service's
  6093. // API operation StopTransformJob for usage and error information.
  6094. //
  6095. // Returned Error Codes:
  6096. // * ErrCodeResourceNotFound "ResourceNotFound"
  6097. // Resource being access is not found.
  6098. //
  6099. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob
  6100. func (c *SageMaker) StopTransformJob(input *StopTransformJobInput) (*StopTransformJobOutput, error) {
  6101. req, out := c.StopTransformJobRequest(input)
  6102. return out, req.Send()
  6103. }
  6104. // StopTransformJobWithContext is the same as StopTransformJob with the addition of
  6105. // the ability to pass a context and additional request options.
  6106. //
  6107. // See StopTransformJob for details on how to use this API operation.
  6108. //
  6109. // The context must be non-nil and will be used for request cancellation. If
  6110. // the context is nil a panic will occur. In the future the SDK may create
  6111. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6112. // for more information on using Contexts.
  6113. func (c *SageMaker) StopTransformJobWithContext(ctx aws.Context, input *StopTransformJobInput, opts ...request.Option) (*StopTransformJobOutput, error) {
  6114. req, out := c.StopTransformJobRequest(input)
  6115. req.SetContext(ctx)
  6116. req.ApplyOptions(opts...)
  6117. return out, req.Send()
  6118. }
  6119. const opUpdateCodeRepository = "UpdateCodeRepository"
  6120. // UpdateCodeRepositoryRequest generates a "aws/request.Request" representing the
  6121. // client's request for the UpdateCodeRepository operation. The "output" return
  6122. // value will be populated with the request's response once the request completes
  6123. // successfully.
  6124. //
  6125. // Use "Send" method on the returned Request to send the API call to the service.
  6126. // the "output" return value is not valid until after Send returns without error.
  6127. //
  6128. // See UpdateCodeRepository for more information on using the UpdateCodeRepository
  6129. // API call, and error handling.
  6130. //
  6131. // This method is useful when you want to inject custom logic or configuration
  6132. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6133. //
  6134. //
  6135. // // Example sending a request using the UpdateCodeRepositoryRequest method.
  6136. // req, resp := client.UpdateCodeRepositoryRequest(params)
  6137. //
  6138. // err := req.Send()
  6139. // if err == nil { // resp is now filled
  6140. // fmt.Println(resp)
  6141. // }
  6142. //
  6143. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository
  6144. func (c *SageMaker) UpdateCodeRepositoryRequest(input *UpdateCodeRepositoryInput) (req *request.Request, output *UpdateCodeRepositoryOutput) {
  6145. op := &request.Operation{
  6146. Name: opUpdateCodeRepository,
  6147. HTTPMethod: "POST",
  6148. HTTPPath: "/",
  6149. }
  6150. if input == nil {
  6151. input = &UpdateCodeRepositoryInput{}
  6152. }
  6153. output = &UpdateCodeRepositoryOutput{}
  6154. req = c.newRequest(op, input, output)
  6155. return
  6156. }
  6157. // UpdateCodeRepository API operation for Amazon SageMaker Service.
  6158. //
  6159. // Updates the specified Git repository with the specified values.
  6160. //
  6161. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6162. // with awserr.Error's Code and Message methods to get detailed information about
  6163. // the error.
  6164. //
  6165. // See the AWS API reference guide for Amazon SageMaker Service's
  6166. // API operation UpdateCodeRepository for usage and error information.
  6167. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository
  6168. func (c *SageMaker) UpdateCodeRepository(input *UpdateCodeRepositoryInput) (*UpdateCodeRepositoryOutput, error) {
  6169. req, out := c.UpdateCodeRepositoryRequest(input)
  6170. return out, req.Send()
  6171. }
  6172. // UpdateCodeRepositoryWithContext is the same as UpdateCodeRepository with the addition of
  6173. // the ability to pass a context and additional request options.
  6174. //
  6175. // See UpdateCodeRepository for details on how to use this API operation.
  6176. //
  6177. // The context must be non-nil and will be used for request cancellation. If
  6178. // the context is nil a panic will occur. In the future the SDK may create
  6179. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6180. // for more information on using Contexts.
  6181. func (c *SageMaker) UpdateCodeRepositoryWithContext(ctx aws.Context, input *UpdateCodeRepositoryInput, opts ...request.Option) (*UpdateCodeRepositoryOutput, error) {
  6182. req, out := c.UpdateCodeRepositoryRequest(input)
  6183. req.SetContext(ctx)
  6184. req.ApplyOptions(opts...)
  6185. return out, req.Send()
  6186. }
  6187. const opUpdateEndpoint = "UpdateEndpoint"
  6188. // UpdateEndpointRequest generates a "aws/request.Request" representing the
  6189. // client's request for the UpdateEndpoint operation. The "output" return
  6190. // value will be populated with the request's response once the request completes
  6191. // successfully.
  6192. //
  6193. // Use "Send" method on the returned Request to send the API call to the service.
  6194. // the "output" return value is not valid until after Send returns without error.
  6195. //
  6196. // See UpdateEndpoint for more information on using the UpdateEndpoint
  6197. // API call, and error handling.
  6198. //
  6199. // This method is useful when you want to inject custom logic or configuration
  6200. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6201. //
  6202. //
  6203. // // Example sending a request using the UpdateEndpointRequest method.
  6204. // req, resp := client.UpdateEndpointRequest(params)
  6205. //
  6206. // err := req.Send()
  6207. // if err == nil { // resp is now filled
  6208. // fmt.Println(resp)
  6209. // }
  6210. //
  6211. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint
  6212. func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) {
  6213. op := &request.Operation{
  6214. Name: opUpdateEndpoint,
  6215. HTTPMethod: "POST",
  6216. HTTPPath: "/",
  6217. }
  6218. if input == nil {
  6219. input = &UpdateEndpointInput{}
  6220. }
  6221. output = &UpdateEndpointOutput{}
  6222. req = c.newRequest(op, input, output)
  6223. return
  6224. }
  6225. // UpdateEndpoint API operation for Amazon SageMaker Service.
  6226. //
  6227. // Deploys the new EndpointConfig specified in the request, switches to using
  6228. // newly created endpoint, and then deletes resources provisioned for the endpoint
  6229. // using the previous EndpointConfig (there is no availability loss).
  6230. //
  6231. // When Amazon SageMaker receives the request, it sets the endpoint status to
  6232. // Updating. After updating the endpoint, it sets the status to InService. To
  6233. // check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
  6234. // API.
  6235. //
  6236. // You cannot update an endpoint with the current EndpointConfig. To update
  6237. // an endpoint, you must create a new EndpointConfig.
  6238. //
  6239. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6240. // with awserr.Error's Code and Message methods to get detailed information about
  6241. // the error.
  6242. //
  6243. // See the AWS API reference guide for Amazon SageMaker Service's
  6244. // API operation UpdateEndpoint for usage and error information.
  6245. //
  6246. // Returned Error Codes:
  6247. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  6248. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  6249. // have too many training jobs created.
  6250. //
  6251. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint
  6252. func (c *SageMaker) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) {
  6253. req, out := c.UpdateEndpointRequest(input)
  6254. return out, req.Send()
  6255. }
  6256. // UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of
  6257. // the ability to pass a context and additional request options.
  6258. //
  6259. // See UpdateEndpoint for details on how to use this API operation.
  6260. //
  6261. // The context must be non-nil and will be used for request cancellation. If
  6262. // the context is nil a panic will occur. In the future the SDK may create
  6263. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6264. // for more information on using Contexts.
  6265. func (c *SageMaker) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) {
  6266. req, out := c.UpdateEndpointRequest(input)
  6267. req.SetContext(ctx)
  6268. req.ApplyOptions(opts...)
  6269. return out, req.Send()
  6270. }
  6271. const opUpdateEndpointWeightsAndCapacities = "UpdateEndpointWeightsAndCapacities"
  6272. // UpdateEndpointWeightsAndCapacitiesRequest generates a "aws/request.Request" representing the
  6273. // client's request for the UpdateEndpointWeightsAndCapacities operation. The "output" return
  6274. // value will be populated with the request's response once the request completes
  6275. // successfully.
  6276. //
  6277. // Use "Send" method on the returned Request to send the API call to the service.
  6278. // the "output" return value is not valid until after Send returns without error.
  6279. //
  6280. // See UpdateEndpointWeightsAndCapacities for more information on using the UpdateEndpointWeightsAndCapacities
  6281. // API call, and error handling.
  6282. //
  6283. // This method is useful when you want to inject custom logic or configuration
  6284. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6285. //
  6286. //
  6287. // // Example sending a request using the UpdateEndpointWeightsAndCapacitiesRequest method.
  6288. // req, resp := client.UpdateEndpointWeightsAndCapacitiesRequest(params)
  6289. //
  6290. // err := req.Send()
  6291. // if err == nil { // resp is now filled
  6292. // fmt.Println(resp)
  6293. // }
  6294. //
  6295. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities
  6296. func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpointWeightsAndCapacitiesInput) (req *request.Request, output *UpdateEndpointWeightsAndCapacitiesOutput) {
  6297. op := &request.Operation{
  6298. Name: opUpdateEndpointWeightsAndCapacities,
  6299. HTTPMethod: "POST",
  6300. HTTPPath: "/",
  6301. }
  6302. if input == nil {
  6303. input = &UpdateEndpointWeightsAndCapacitiesInput{}
  6304. }
  6305. output = &UpdateEndpointWeightsAndCapacitiesOutput{}
  6306. req = c.newRequest(op, input, output)
  6307. return
  6308. }
  6309. // UpdateEndpointWeightsAndCapacities API operation for Amazon SageMaker Service.
  6310. //
  6311. // Updates variant weight of one or more variants associated with an existing
  6312. // endpoint, or capacity of one variant associated with an existing endpoint.
  6313. // When it receives the request, Amazon SageMaker sets the endpoint status to
  6314. // Updating. After updating the endpoint, it sets the status to InService. To
  6315. // check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html)
  6316. // API.
  6317. //
  6318. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6319. // with awserr.Error's Code and Message methods to get detailed information about
  6320. // the error.
  6321. //
  6322. // See the AWS API reference guide for Amazon SageMaker Service's
  6323. // API operation UpdateEndpointWeightsAndCapacities for usage and error information.
  6324. //
  6325. // Returned Error Codes:
  6326. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  6327. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  6328. // have too many training jobs created.
  6329. //
  6330. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities
  6331. func (c *SageMaker) UpdateEndpointWeightsAndCapacities(input *UpdateEndpointWeightsAndCapacitiesInput) (*UpdateEndpointWeightsAndCapacitiesOutput, error) {
  6332. req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input)
  6333. return out, req.Send()
  6334. }
  6335. // UpdateEndpointWeightsAndCapacitiesWithContext is the same as UpdateEndpointWeightsAndCapacities with the addition of
  6336. // the ability to pass a context and additional request options.
  6337. //
  6338. // See UpdateEndpointWeightsAndCapacities for details on how to use this API operation.
  6339. //
  6340. // The context must be non-nil and will be used for request cancellation. If
  6341. // the context is nil a panic will occur. In the future the SDK may create
  6342. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6343. // for more information on using Contexts.
  6344. func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesWithContext(ctx aws.Context, input *UpdateEndpointWeightsAndCapacitiesInput, opts ...request.Option) (*UpdateEndpointWeightsAndCapacitiesOutput, error) {
  6345. req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input)
  6346. req.SetContext(ctx)
  6347. req.ApplyOptions(opts...)
  6348. return out, req.Send()
  6349. }
  6350. const opUpdateNotebookInstance = "UpdateNotebookInstance"
  6351. // UpdateNotebookInstanceRequest generates a "aws/request.Request" representing the
  6352. // client's request for the UpdateNotebookInstance operation. The "output" return
  6353. // value will be populated with the request's response once the request completes
  6354. // successfully.
  6355. //
  6356. // Use "Send" method on the returned Request to send the API call to the service.
  6357. // the "output" return value is not valid until after Send returns without error.
  6358. //
  6359. // See UpdateNotebookInstance for more information on using the UpdateNotebookInstance
  6360. // API call, and error handling.
  6361. //
  6362. // This method is useful when you want to inject custom logic or configuration
  6363. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6364. //
  6365. //
  6366. // // Example sending a request using the UpdateNotebookInstanceRequest method.
  6367. // req, resp := client.UpdateNotebookInstanceRequest(params)
  6368. //
  6369. // err := req.Send()
  6370. // if err == nil { // resp is now filled
  6371. // fmt.Println(resp)
  6372. // }
  6373. //
  6374. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance
  6375. func (c *SageMaker) UpdateNotebookInstanceRequest(input *UpdateNotebookInstanceInput) (req *request.Request, output *UpdateNotebookInstanceOutput) {
  6376. op := &request.Operation{
  6377. Name: opUpdateNotebookInstance,
  6378. HTTPMethod: "POST",
  6379. HTTPPath: "/",
  6380. }
  6381. if input == nil {
  6382. input = &UpdateNotebookInstanceInput{}
  6383. }
  6384. output = &UpdateNotebookInstanceOutput{}
  6385. req = c.newRequest(op, input, output)
  6386. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  6387. return
  6388. }
  6389. // UpdateNotebookInstance API operation for Amazon SageMaker Service.
  6390. //
  6391. // Updates a notebook instance. NotebookInstance updates include upgrading or
  6392. // downgrading the ML compute instance used for your notebook instance to accommodate
  6393. // changes in your workload requirements. You can also update the VPC security
  6394. // groups.
  6395. //
  6396. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6397. // with awserr.Error's Code and Message methods to get detailed information about
  6398. // the error.
  6399. //
  6400. // See the AWS API reference guide for Amazon SageMaker Service's
  6401. // API operation UpdateNotebookInstance for usage and error information.
  6402. //
  6403. // Returned Error Codes:
  6404. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  6405. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  6406. // have too many training jobs created.
  6407. //
  6408. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance
  6409. func (c *SageMaker) UpdateNotebookInstance(input *UpdateNotebookInstanceInput) (*UpdateNotebookInstanceOutput, error) {
  6410. req, out := c.UpdateNotebookInstanceRequest(input)
  6411. return out, req.Send()
  6412. }
  6413. // UpdateNotebookInstanceWithContext is the same as UpdateNotebookInstance with the addition of
  6414. // the ability to pass a context and additional request options.
  6415. //
  6416. // See UpdateNotebookInstance for details on how to use this API operation.
  6417. //
  6418. // The context must be non-nil and will be used for request cancellation. If
  6419. // the context is nil a panic will occur. In the future the SDK may create
  6420. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6421. // for more information on using Contexts.
  6422. func (c *SageMaker) UpdateNotebookInstanceWithContext(ctx aws.Context, input *UpdateNotebookInstanceInput, opts ...request.Option) (*UpdateNotebookInstanceOutput, error) {
  6423. req, out := c.UpdateNotebookInstanceRequest(input)
  6424. req.SetContext(ctx)
  6425. req.ApplyOptions(opts...)
  6426. return out, req.Send()
  6427. }
  6428. const opUpdateNotebookInstanceLifecycleConfig = "UpdateNotebookInstanceLifecycleConfig"
  6429. // UpdateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the
  6430. // client's request for the UpdateNotebookInstanceLifecycleConfig operation. The "output" return
  6431. // value will be populated with the request's response once the request completes
  6432. // successfully.
  6433. //
  6434. // Use "Send" method on the returned Request to send the API call to the service.
  6435. // the "output" return value is not valid until after Send returns without error.
  6436. //
  6437. // See UpdateNotebookInstanceLifecycleConfig for more information on using the UpdateNotebookInstanceLifecycleConfig
  6438. // API call, and error handling.
  6439. //
  6440. // This method is useful when you want to inject custom logic or configuration
  6441. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6442. //
  6443. //
  6444. // // Example sending a request using the UpdateNotebookInstanceLifecycleConfigRequest method.
  6445. // req, resp := client.UpdateNotebookInstanceLifecycleConfigRequest(params)
  6446. //
  6447. // err := req.Send()
  6448. // if err == nil { // resp is now filled
  6449. // fmt.Println(resp)
  6450. // }
  6451. //
  6452. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig
  6453. func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigRequest(input *UpdateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *UpdateNotebookInstanceLifecycleConfigOutput) {
  6454. op := &request.Operation{
  6455. Name: opUpdateNotebookInstanceLifecycleConfig,
  6456. HTTPMethod: "POST",
  6457. HTTPPath: "/",
  6458. }
  6459. if input == nil {
  6460. input = &UpdateNotebookInstanceLifecycleConfigInput{}
  6461. }
  6462. output = &UpdateNotebookInstanceLifecycleConfigOutput{}
  6463. req = c.newRequest(op, input, output)
  6464. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  6465. return
  6466. }
  6467. // UpdateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service.
  6468. //
  6469. // Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig
  6470. // API.
  6471. //
  6472. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6473. // with awserr.Error's Code and Message methods to get detailed information about
  6474. // the error.
  6475. //
  6476. // See the AWS API reference guide for Amazon SageMaker Service's
  6477. // API operation UpdateNotebookInstanceLifecycleConfig for usage and error information.
  6478. //
  6479. // Returned Error Codes:
  6480. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  6481. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  6482. // have too many training jobs created.
  6483. //
  6484. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig
  6485. func (c *SageMaker) UpdateNotebookInstanceLifecycleConfig(input *UpdateNotebookInstanceLifecycleConfigInput) (*UpdateNotebookInstanceLifecycleConfigOutput, error) {
  6486. req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input)
  6487. return out, req.Send()
  6488. }
  6489. // UpdateNotebookInstanceLifecycleConfigWithContext is the same as UpdateNotebookInstanceLifecycleConfig with the addition of
  6490. // the ability to pass a context and additional request options.
  6491. //
  6492. // See UpdateNotebookInstanceLifecycleConfig for details on how to use this API operation.
  6493. //
  6494. // The context must be non-nil and will be used for request cancellation. If
  6495. // the context is nil a panic will occur. In the future the SDK may create
  6496. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6497. // for more information on using Contexts.
  6498. func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *UpdateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*UpdateNotebookInstanceLifecycleConfigOutput, error) {
  6499. req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input)
  6500. req.SetContext(ctx)
  6501. req.ApplyOptions(opts...)
  6502. return out, req.Send()
  6503. }
  6504. const opUpdateWorkteam = "UpdateWorkteam"
  6505. // UpdateWorkteamRequest generates a "aws/request.Request" representing the
  6506. // client's request for the UpdateWorkteam operation. The "output" return
  6507. // value will be populated with the request's response once the request completes
  6508. // successfully.
  6509. //
  6510. // Use "Send" method on the returned Request to send the API call to the service.
  6511. // the "output" return value is not valid until after Send returns without error.
  6512. //
  6513. // See UpdateWorkteam for more information on using the UpdateWorkteam
  6514. // API call, and error handling.
  6515. //
  6516. // This method is useful when you want to inject custom logic or configuration
  6517. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6518. //
  6519. //
  6520. // // Example sending a request using the UpdateWorkteamRequest method.
  6521. // req, resp := client.UpdateWorkteamRequest(params)
  6522. //
  6523. // err := req.Send()
  6524. // if err == nil { // resp is now filled
  6525. // fmt.Println(resp)
  6526. // }
  6527. //
  6528. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam
  6529. func (c *SageMaker) UpdateWorkteamRequest(input *UpdateWorkteamInput) (req *request.Request, output *UpdateWorkteamOutput) {
  6530. op := &request.Operation{
  6531. Name: opUpdateWorkteam,
  6532. HTTPMethod: "POST",
  6533. HTTPPath: "/",
  6534. }
  6535. if input == nil {
  6536. input = &UpdateWorkteamInput{}
  6537. }
  6538. output = &UpdateWorkteamOutput{}
  6539. req = c.newRequest(op, input, output)
  6540. return
  6541. }
  6542. // UpdateWorkteam API operation for Amazon SageMaker Service.
  6543. //
  6544. // Updates an existing work team with new member definitions or description.
  6545. //
  6546. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6547. // with awserr.Error's Code and Message methods to get detailed information about
  6548. // the error.
  6549. //
  6550. // See the AWS API reference guide for Amazon SageMaker Service's
  6551. // API operation UpdateWorkteam for usage and error information.
  6552. //
  6553. // Returned Error Codes:
  6554. // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded"
  6555. // You have exceeded an Amazon SageMaker resource limit. For example, you might
  6556. // have too many training jobs created.
  6557. //
  6558. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam
  6559. func (c *SageMaker) UpdateWorkteam(input *UpdateWorkteamInput) (*UpdateWorkteamOutput, error) {
  6560. req, out := c.UpdateWorkteamRequest(input)
  6561. return out, req.Send()
  6562. }
  6563. // UpdateWorkteamWithContext is the same as UpdateWorkteam with the addition of
  6564. // the ability to pass a context and additional request options.
  6565. //
  6566. // See UpdateWorkteam for details on how to use this API operation.
  6567. //
  6568. // The context must be non-nil and will be used for request cancellation. If
  6569. // the context is nil a panic will occur. In the future the SDK may create
  6570. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6571. // for more information on using Contexts.
  6572. func (c *SageMaker) UpdateWorkteamWithContext(ctx aws.Context, input *UpdateWorkteamInput, opts ...request.Option) (*UpdateWorkteamOutput, error) {
  6573. req, out := c.UpdateWorkteamRequest(input)
  6574. req.SetContext(ctx)
  6575. req.ApplyOptions(opts...)
  6576. return out, req.Send()
  6577. }
  6578. type AddTagsInput struct {
  6579. _ struct{} `type:"structure"`
  6580. // The Amazon Resource Name (ARN) of the resource that you want to tag.
  6581. //
  6582. // ResourceArn is a required field
  6583. ResourceArn *string `type:"string" required:"true"`
  6584. // An array of Tag objects. Each tag is a key-value pair. Only the key parameter
  6585. // is required. If you don't specify a value, Amazon SageMaker sets the value
  6586. // to an empty string.
  6587. //
  6588. // Tags is a required field
  6589. Tags []*Tag `type:"list" required:"true"`
  6590. }
  6591. // String returns the string representation
  6592. func (s AddTagsInput) String() string {
  6593. return awsutil.Prettify(s)
  6594. }
  6595. // GoString returns the string representation
  6596. func (s AddTagsInput) GoString() string {
  6597. return s.String()
  6598. }
  6599. // Validate inspects the fields of the type to determine if they are valid.
  6600. func (s *AddTagsInput) Validate() error {
  6601. invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
  6602. if s.ResourceArn == nil {
  6603. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  6604. }
  6605. if s.Tags == nil {
  6606. invalidParams.Add(request.NewErrParamRequired("Tags"))
  6607. }
  6608. if s.Tags != nil {
  6609. for i, v := range s.Tags {
  6610. if v == nil {
  6611. continue
  6612. }
  6613. if err := v.Validate(); err != nil {
  6614. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  6615. }
  6616. }
  6617. }
  6618. if invalidParams.Len() > 0 {
  6619. return invalidParams
  6620. }
  6621. return nil
  6622. }
  6623. // SetResourceArn sets the ResourceArn field's value.
  6624. func (s *AddTagsInput) SetResourceArn(v string) *AddTagsInput {
  6625. s.ResourceArn = &v
  6626. return s
  6627. }
  6628. // SetTags sets the Tags field's value.
  6629. func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
  6630. s.Tags = v
  6631. return s
  6632. }
  6633. type AddTagsOutput struct {
  6634. _ struct{} `type:"structure"`
  6635. // A list of tags associated with the Amazon SageMaker resource.
  6636. Tags []*Tag `type:"list"`
  6637. }
  6638. // String returns the string representation
  6639. func (s AddTagsOutput) String() string {
  6640. return awsutil.Prettify(s)
  6641. }
  6642. // GoString returns the string representation
  6643. func (s AddTagsOutput) GoString() string {
  6644. return s.String()
  6645. }
  6646. // SetTags sets the Tags field's value.
  6647. func (s *AddTagsOutput) SetTags(v []*Tag) *AddTagsOutput {
  6648. s.Tags = v
  6649. return s
  6650. }
  6651. // Specifies the training algorithm to use in a CreateTrainingJob (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html)
  6652. // request.
  6653. //
  6654. // For more information about algorithms provided by Amazon SageMaker, see Algorithms
  6655. // (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). For information
  6656. // about using your own algorithms, see Using Your Own Algorithms with Amazon
  6657. // SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html).
  6658. type AlgorithmSpecification struct {
  6659. _ struct{} `type:"structure"`
  6660. // The name of the algorithm resource to use for the training job. This must
  6661. // be an algorithm resource that you created or subscribe to on AWS Marketplace.
  6662. // If you specify a value for this parameter, you can't specify a value for
  6663. // TrainingImage.
  6664. AlgorithmName *string `min:"1" type:"string"`
  6665. // A list of metric definition objects. Each object specifies the metric name
  6666. // and regular expressions used to parse algorithm logs. Amazon SageMaker publishes
  6667. // each metric to Amazon CloudWatch.
  6668. MetricDefinitions []*MetricDefinition `type:"list"`
  6669. // The registry path of the Docker image that contains the training algorithm.
  6670. // For information about docker registry paths for built-in algorithms, see
  6671. // Algorithms Provided by Amazon SageMaker: Common Parameters (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html).
  6672. TrainingImage *string `type:"string"`
  6673. // The input mode that the algorithm supports. For the input modes that Amazon
  6674. // SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
  6675. // If an algorithm supports the File input mode, Amazon SageMaker downloads
  6676. // the training data from S3 to the provisioned ML storage Volume, and mounts
  6677. // the directory to docker volume for training container. If an algorithm supports
  6678. // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the
  6679. // container.
  6680. //
  6681. // In File mode, make sure you provision ML storage volume with sufficient capacity
  6682. // to accommodate the data download from S3. In addition to the training data,
  6683. // the ML storage volume also stores the output model. The algorithm container
  6684. // use ML storage volume to also store intermediate information, if any.
  6685. //
  6686. // For distributed algorithms using File mode, training data is distributed
  6687. // uniformly, and your training duration is predictable if the input data objects
  6688. // size is approximately same. Amazon SageMaker does not split the files any
  6689. // further for model training. If the object sizes are skewed, training won't
  6690. // be optimal as the data distribution is also skewed where one host in a training
  6691. // cluster is overloaded, thus becoming bottleneck in training.
  6692. //
  6693. // TrainingInputMode is a required field
  6694. TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"`
  6695. }
  6696. // String returns the string representation
  6697. func (s AlgorithmSpecification) String() string {
  6698. return awsutil.Prettify(s)
  6699. }
  6700. // GoString returns the string representation
  6701. func (s AlgorithmSpecification) GoString() string {
  6702. return s.String()
  6703. }
  6704. // Validate inspects the fields of the type to determine if they are valid.
  6705. func (s *AlgorithmSpecification) Validate() error {
  6706. invalidParams := request.ErrInvalidParams{Context: "AlgorithmSpecification"}
  6707. if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
  6708. invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
  6709. }
  6710. if s.TrainingInputMode == nil {
  6711. invalidParams.Add(request.NewErrParamRequired("TrainingInputMode"))
  6712. }
  6713. if s.MetricDefinitions != nil {
  6714. for i, v := range s.MetricDefinitions {
  6715. if v == nil {
  6716. continue
  6717. }
  6718. if err := v.Validate(); err != nil {
  6719. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams))
  6720. }
  6721. }
  6722. }
  6723. if invalidParams.Len() > 0 {
  6724. return invalidParams
  6725. }
  6726. return nil
  6727. }
  6728. // SetAlgorithmName sets the AlgorithmName field's value.
  6729. func (s *AlgorithmSpecification) SetAlgorithmName(v string) *AlgorithmSpecification {
  6730. s.AlgorithmName = &v
  6731. return s
  6732. }
  6733. // SetMetricDefinitions sets the MetricDefinitions field's value.
  6734. func (s *AlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *AlgorithmSpecification {
  6735. s.MetricDefinitions = v
  6736. return s
  6737. }
  6738. // SetTrainingImage sets the TrainingImage field's value.
  6739. func (s *AlgorithmSpecification) SetTrainingImage(v string) *AlgorithmSpecification {
  6740. s.TrainingImage = &v
  6741. return s
  6742. }
  6743. // SetTrainingInputMode sets the TrainingInputMode field's value.
  6744. func (s *AlgorithmSpecification) SetTrainingInputMode(v string) *AlgorithmSpecification {
  6745. s.TrainingInputMode = &v
  6746. return s
  6747. }
  6748. // Specifies the validation and image scan statuses of the algorithm.
  6749. type AlgorithmStatusDetails struct {
  6750. _ struct{} `type:"structure"`
  6751. // The status of the scan of the algorithm's Docker image container.
  6752. ImageScanStatuses []*AlgorithmStatusItem `type:"list"`
  6753. // The status of algorithm validation.
  6754. ValidationStatuses []*AlgorithmStatusItem `type:"list"`
  6755. }
  6756. // String returns the string representation
  6757. func (s AlgorithmStatusDetails) String() string {
  6758. return awsutil.Prettify(s)
  6759. }
  6760. // GoString returns the string representation
  6761. func (s AlgorithmStatusDetails) GoString() string {
  6762. return s.String()
  6763. }
  6764. // SetImageScanStatuses sets the ImageScanStatuses field's value.
  6765. func (s *AlgorithmStatusDetails) SetImageScanStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails {
  6766. s.ImageScanStatuses = v
  6767. return s
  6768. }
  6769. // SetValidationStatuses sets the ValidationStatuses field's value.
  6770. func (s *AlgorithmStatusDetails) SetValidationStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails {
  6771. s.ValidationStatuses = v
  6772. return s
  6773. }
  6774. // Represents the overall status of an algorithm.
  6775. type AlgorithmStatusItem struct {
  6776. _ struct{} `type:"structure"`
  6777. // if the overall status is Failed, the reason for the failure.
  6778. FailureReason *string `type:"string"`
  6779. // The name of the algorithm for which the overall status is being reported.
  6780. //
  6781. // Name is a required field
  6782. Name *string `min:"1" type:"string" required:"true"`
  6783. // The current status.
  6784. //
  6785. // Status is a required field
  6786. Status *string `type:"string" required:"true" enum:"DetailedAlgorithmStatus"`
  6787. }
  6788. // String returns the string representation
  6789. func (s AlgorithmStatusItem) String() string {
  6790. return awsutil.Prettify(s)
  6791. }
  6792. // GoString returns the string representation
  6793. func (s AlgorithmStatusItem) GoString() string {
  6794. return s.String()
  6795. }
  6796. // SetFailureReason sets the FailureReason field's value.
  6797. func (s *AlgorithmStatusItem) SetFailureReason(v string) *AlgorithmStatusItem {
  6798. s.FailureReason = &v
  6799. return s
  6800. }
  6801. // SetName sets the Name field's value.
  6802. func (s *AlgorithmStatusItem) SetName(v string) *AlgorithmStatusItem {
  6803. s.Name = &v
  6804. return s
  6805. }
  6806. // SetStatus sets the Status field's value.
  6807. func (s *AlgorithmStatusItem) SetStatus(v string) *AlgorithmStatusItem {
  6808. s.Status = &v
  6809. return s
  6810. }
  6811. // Provides summary information about an algorithm.
  6812. type AlgorithmSummary struct {
  6813. _ struct{} `type:"structure"`
  6814. // The Amazon Resource Name (ARN) of the algorithm.
  6815. //
  6816. // AlgorithmArn is a required field
  6817. AlgorithmArn *string `min:"1" type:"string" required:"true"`
  6818. // A brief description of the algorithm.
  6819. AlgorithmDescription *string `type:"string"`
  6820. // The name of the algorithm that is described by the summary.
  6821. //
  6822. // AlgorithmName is a required field
  6823. AlgorithmName *string `min:"1" type:"string" required:"true"`
  6824. // The overall status of the algorithm.
  6825. //
  6826. // AlgorithmStatus is a required field
  6827. AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"`
  6828. // A timestamp that shows when the algorithm was created.
  6829. //
  6830. // CreationTime is a required field
  6831. CreationTime *time.Time `type:"timestamp" required:"true"`
  6832. }
  6833. // String returns the string representation
  6834. func (s AlgorithmSummary) String() string {
  6835. return awsutil.Prettify(s)
  6836. }
  6837. // GoString returns the string representation
  6838. func (s AlgorithmSummary) GoString() string {
  6839. return s.String()
  6840. }
  6841. // SetAlgorithmArn sets the AlgorithmArn field's value.
  6842. func (s *AlgorithmSummary) SetAlgorithmArn(v string) *AlgorithmSummary {
  6843. s.AlgorithmArn = &v
  6844. return s
  6845. }
  6846. // SetAlgorithmDescription sets the AlgorithmDescription field's value.
  6847. func (s *AlgorithmSummary) SetAlgorithmDescription(v string) *AlgorithmSummary {
  6848. s.AlgorithmDescription = &v
  6849. return s
  6850. }
  6851. // SetAlgorithmName sets the AlgorithmName field's value.
  6852. func (s *AlgorithmSummary) SetAlgorithmName(v string) *AlgorithmSummary {
  6853. s.AlgorithmName = &v
  6854. return s
  6855. }
  6856. // SetAlgorithmStatus sets the AlgorithmStatus field's value.
  6857. func (s *AlgorithmSummary) SetAlgorithmStatus(v string) *AlgorithmSummary {
  6858. s.AlgorithmStatus = &v
  6859. return s
  6860. }
  6861. // SetCreationTime sets the CreationTime field's value.
  6862. func (s *AlgorithmSummary) SetCreationTime(v time.Time) *AlgorithmSummary {
  6863. s.CreationTime = &v
  6864. return s
  6865. }
  6866. // Defines a training job and a batch transform job that Amazon SageMaker runs
  6867. // to validate your algorithm.
  6868. //
  6869. // The data provided in the validation profile is made available to your buyers
  6870. // on AWS Marketplace.
  6871. type AlgorithmValidationProfile struct {
  6872. _ struct{} `type:"structure"`
  6873. // The name of the profile for the algorithm. The name must have 1 to 63 characters.
  6874. // Valid characters are a-z, A-Z, 0-9, and - (hyphen).
  6875. //
  6876. // ProfileName is a required field
  6877. ProfileName *string `min:"1" type:"string" required:"true"`
  6878. // The TrainingJobDefinition object that describes the training job that Amazon
  6879. // SageMaker runs to validate your algorithm.
  6880. //
  6881. // TrainingJobDefinition is a required field
  6882. TrainingJobDefinition *TrainingJobDefinition `type:"structure" required:"true"`
  6883. // The TransformJobDefinition object that describes the transform job that Amazon
  6884. // SageMaker runs to validate your algorithm.
  6885. TransformJobDefinition *TransformJobDefinition `type:"structure"`
  6886. }
  6887. // String returns the string representation
  6888. func (s AlgorithmValidationProfile) String() string {
  6889. return awsutil.Prettify(s)
  6890. }
  6891. // GoString returns the string representation
  6892. func (s AlgorithmValidationProfile) GoString() string {
  6893. return s.String()
  6894. }
  6895. // Validate inspects the fields of the type to determine if they are valid.
  6896. func (s *AlgorithmValidationProfile) Validate() error {
  6897. invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationProfile"}
  6898. if s.ProfileName == nil {
  6899. invalidParams.Add(request.NewErrParamRequired("ProfileName"))
  6900. }
  6901. if s.ProfileName != nil && len(*s.ProfileName) < 1 {
  6902. invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1))
  6903. }
  6904. if s.TrainingJobDefinition == nil {
  6905. invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition"))
  6906. }
  6907. if s.TrainingJobDefinition != nil {
  6908. if err := s.TrainingJobDefinition.Validate(); err != nil {
  6909. invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams))
  6910. }
  6911. }
  6912. if s.TransformJobDefinition != nil {
  6913. if err := s.TransformJobDefinition.Validate(); err != nil {
  6914. invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams))
  6915. }
  6916. }
  6917. if invalidParams.Len() > 0 {
  6918. return invalidParams
  6919. }
  6920. return nil
  6921. }
  6922. // SetProfileName sets the ProfileName field's value.
  6923. func (s *AlgorithmValidationProfile) SetProfileName(v string) *AlgorithmValidationProfile {
  6924. s.ProfileName = &v
  6925. return s
  6926. }
  6927. // SetTrainingJobDefinition sets the TrainingJobDefinition field's value.
  6928. func (s *AlgorithmValidationProfile) SetTrainingJobDefinition(v *TrainingJobDefinition) *AlgorithmValidationProfile {
  6929. s.TrainingJobDefinition = v
  6930. return s
  6931. }
  6932. // SetTransformJobDefinition sets the TransformJobDefinition field's value.
  6933. func (s *AlgorithmValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *AlgorithmValidationProfile {
  6934. s.TransformJobDefinition = v
  6935. return s
  6936. }
  6937. // Specifies configurations for one or more training jobs that Amazon SageMaker
  6938. // runs to test the algorithm.
  6939. type AlgorithmValidationSpecification struct {
  6940. _ struct{} `type:"structure"`
  6941. // An array of AlgorithmValidationProfile objects, each of which specifies a
  6942. // training job and batch transform job that Amazon SageMaker runs to validate
  6943. // your algorithm.
  6944. //
  6945. // ValidationProfiles is a required field
  6946. ValidationProfiles []*AlgorithmValidationProfile `min:"1" type:"list" required:"true"`
  6947. // The IAM roles that Amazon SageMaker uses to run the training jobs.
  6948. //
  6949. // ValidationRole is a required field
  6950. ValidationRole *string `min:"20" type:"string" required:"true"`
  6951. }
  6952. // String returns the string representation
  6953. func (s AlgorithmValidationSpecification) String() string {
  6954. return awsutil.Prettify(s)
  6955. }
  6956. // GoString returns the string representation
  6957. func (s AlgorithmValidationSpecification) GoString() string {
  6958. return s.String()
  6959. }
  6960. // Validate inspects the fields of the type to determine if they are valid.
  6961. func (s *AlgorithmValidationSpecification) Validate() error {
  6962. invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationSpecification"}
  6963. if s.ValidationProfiles == nil {
  6964. invalidParams.Add(request.NewErrParamRequired("ValidationProfiles"))
  6965. }
  6966. if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 {
  6967. invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1))
  6968. }
  6969. if s.ValidationRole == nil {
  6970. invalidParams.Add(request.NewErrParamRequired("ValidationRole"))
  6971. }
  6972. if s.ValidationRole != nil && len(*s.ValidationRole) < 20 {
  6973. invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20))
  6974. }
  6975. if s.ValidationProfiles != nil {
  6976. for i, v := range s.ValidationProfiles {
  6977. if v == nil {
  6978. continue
  6979. }
  6980. if err := v.Validate(); err != nil {
  6981. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams))
  6982. }
  6983. }
  6984. }
  6985. if invalidParams.Len() > 0 {
  6986. return invalidParams
  6987. }
  6988. return nil
  6989. }
  6990. // SetValidationProfiles sets the ValidationProfiles field's value.
  6991. func (s *AlgorithmValidationSpecification) SetValidationProfiles(v []*AlgorithmValidationProfile) *AlgorithmValidationSpecification {
  6992. s.ValidationProfiles = v
  6993. return s
  6994. }
  6995. // SetValidationRole sets the ValidationRole field's value.
  6996. func (s *AlgorithmValidationSpecification) SetValidationRole(v string) *AlgorithmValidationSpecification {
  6997. s.ValidationRole = &v
  6998. return s
  6999. }
  7000. // Configures how labels are consolidated across human workers.
  7001. type AnnotationConsolidationConfig struct {
  7002. _ struct{} `type:"structure"`
  7003. // The Amazon Resource Name (ARN) of a Lambda function implements the logic
  7004. // for annotation consolidation.
  7005. //
  7006. // For the built-in bounding box, image classification, semantic segmentation,
  7007. // and text classification task types, Amazon SageMaker Ground Truth provides
  7008. // the following Lambda functions:
  7009. //
  7010. // * Bounding box - Finds the most similar boxes from different workers based
  7011. // on the Jaccard index of the boxes.
  7012. //
  7013. // arn:aws:lambda:us-east-1:432418664414:function:ACS-BoundingBox
  7014. //
  7015. // arn:aws:lambda:us-east-2:266458841044:function:ACS-BoundingBox
  7016. //
  7017. // arn:aws:lambda:us-west-2:081040173940:function:ACS-BoundingBox
  7018. //
  7019. // arn:aws:lambda:eu-west-1:568282634449:function:ACS-BoundingBox
  7020. //
  7021. // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-BoundingBox
  7022. //
  7023. // * Image classification - Uses a variant of the Expectation Maximization
  7024. // approach to estimate the true class of an image based on annotations from
  7025. // individual workers.
  7026. //
  7027. // arn:aws:lambda:us-east-1:432418664414:function:ACS-ImageMultiClass
  7028. //
  7029. // arn:aws:lambda:us-east-2:266458841044:function:ACS-ImageMultiClass
  7030. //
  7031. // arn:aws:lambda:us-west-2:081040173940:function:ACS-ImageMultiClass
  7032. //
  7033. // arn:aws:lambda:eu-west-1:568282634449:function:ACS-ImageMultiClass
  7034. //
  7035. // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-ImageMultiClass
  7036. //
  7037. // * Semantic segmentation - Treats each pixel in an image as a multi-class
  7038. // classification and treats pixel annotations from workers as "votes" for
  7039. // the correct label.
  7040. //
  7041. // arn:aws:lambda:us-east-1:432418664414:function:ACS-SemanticSegmentation
  7042. //
  7043. // arn:aws:lambda:us-east-2:266458841044:function:ACS-SemanticSegmentation
  7044. //
  7045. // arn:aws:lambda:us-west-2:081040173940:function:ACS-SemanticSegmentation
  7046. //
  7047. // arn:aws:lambda:eu-west-1:568282634449:function:ACS-SemanticSegmentation
  7048. //
  7049. // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-SemanticSegmentation
  7050. //
  7051. // * Text classification - Uses a variant of the Expectation Maximization
  7052. // approach to estimate the true class of text based on annotations from
  7053. // individual workers.
  7054. //
  7055. // arn:aws:lambda:us-east-1:432418664414:function:ACS-TextMultiClass
  7056. //
  7057. // arn:aws:lambda:us-east-2:266458841044:function:ACS-TextMultiClass
  7058. //
  7059. // arn:aws:lambda:us-west-2:081040173940:function:ACS-TextMultiClass
  7060. //
  7061. // arn:aws:lambda:eu-west-1:568282634449:function:ACS-TextMultiClass
  7062. //
  7063. // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-TextMultiClass
  7064. //
  7065. // For more information, see Annotation Consolidation (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html).
  7066. //
  7067. // AnnotationConsolidationLambdaArn is a required field
  7068. AnnotationConsolidationLambdaArn *string `type:"string" required:"true"`
  7069. }
  7070. // String returns the string representation
  7071. func (s AnnotationConsolidationConfig) String() string {
  7072. return awsutil.Prettify(s)
  7073. }
  7074. // GoString returns the string representation
  7075. func (s AnnotationConsolidationConfig) GoString() string {
  7076. return s.String()
  7077. }
  7078. // Validate inspects the fields of the type to determine if they are valid.
  7079. func (s *AnnotationConsolidationConfig) Validate() error {
  7080. invalidParams := request.ErrInvalidParams{Context: "AnnotationConsolidationConfig"}
  7081. if s.AnnotationConsolidationLambdaArn == nil {
  7082. invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationLambdaArn"))
  7083. }
  7084. if invalidParams.Len() > 0 {
  7085. return invalidParams
  7086. }
  7087. return nil
  7088. }
  7089. // SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value.
  7090. func (s *AnnotationConsolidationConfig) SetAnnotationConsolidationLambdaArn(v string) *AnnotationConsolidationConfig {
  7091. s.AnnotationConsolidationLambdaArn = &v
  7092. return s
  7093. }
  7094. // A list of categorical hyperparameters to tune.
  7095. type CategoricalParameterRange struct {
  7096. _ struct{} `type:"structure"`
  7097. // The name of the categorical hyperparameter to tune.
  7098. //
  7099. // Name is a required field
  7100. Name *string `type:"string" required:"true"`
  7101. // A list of the categories for the hyperparameter.
  7102. //
  7103. // Values is a required field
  7104. Values []*string `min:"1" type:"list" required:"true"`
  7105. }
  7106. // String returns the string representation
  7107. func (s CategoricalParameterRange) String() string {
  7108. return awsutil.Prettify(s)
  7109. }
  7110. // GoString returns the string representation
  7111. func (s CategoricalParameterRange) GoString() string {
  7112. return s.String()
  7113. }
  7114. // Validate inspects the fields of the type to determine if they are valid.
  7115. func (s *CategoricalParameterRange) Validate() error {
  7116. invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRange"}
  7117. if s.Name == nil {
  7118. invalidParams.Add(request.NewErrParamRequired("Name"))
  7119. }
  7120. if s.Values == nil {
  7121. invalidParams.Add(request.NewErrParamRequired("Values"))
  7122. }
  7123. if s.Values != nil && len(s.Values) < 1 {
  7124. invalidParams.Add(request.NewErrParamMinLen("Values", 1))
  7125. }
  7126. if invalidParams.Len() > 0 {
  7127. return invalidParams
  7128. }
  7129. return nil
  7130. }
  7131. // SetName sets the Name field's value.
  7132. func (s *CategoricalParameterRange) SetName(v string) *CategoricalParameterRange {
  7133. s.Name = &v
  7134. return s
  7135. }
  7136. // SetValues sets the Values field's value.
  7137. func (s *CategoricalParameterRange) SetValues(v []*string) *CategoricalParameterRange {
  7138. s.Values = v
  7139. return s
  7140. }
  7141. // Defines the possible values for a categorical hyperparameter.
  7142. type CategoricalParameterRangeSpecification struct {
  7143. _ struct{} `type:"structure"`
  7144. // The allowed categories for the hyperparameter.
  7145. //
  7146. // Values is a required field
  7147. Values []*string `min:"1" type:"list" required:"true"`
  7148. }
  7149. // String returns the string representation
  7150. func (s CategoricalParameterRangeSpecification) String() string {
  7151. return awsutil.Prettify(s)
  7152. }
  7153. // GoString returns the string representation
  7154. func (s CategoricalParameterRangeSpecification) GoString() string {
  7155. return s.String()
  7156. }
  7157. // Validate inspects the fields of the type to determine if they are valid.
  7158. func (s *CategoricalParameterRangeSpecification) Validate() error {
  7159. invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRangeSpecification"}
  7160. if s.Values == nil {
  7161. invalidParams.Add(request.NewErrParamRequired("Values"))
  7162. }
  7163. if s.Values != nil && len(s.Values) < 1 {
  7164. invalidParams.Add(request.NewErrParamMinLen("Values", 1))
  7165. }
  7166. if invalidParams.Len() > 0 {
  7167. return invalidParams
  7168. }
  7169. return nil
  7170. }
  7171. // SetValues sets the Values field's value.
  7172. func (s *CategoricalParameterRangeSpecification) SetValues(v []*string) *CategoricalParameterRangeSpecification {
  7173. s.Values = v
  7174. return s
  7175. }
  7176. // A channel is a named input source that training algorithms can consume.
  7177. type Channel struct {
  7178. _ struct{} `type:"structure"`
  7179. // The name of the channel.
  7180. //
  7181. // ChannelName is a required field
  7182. ChannelName *string `min:"1" type:"string" required:"true"`
  7183. // If training data is compressed, the compression type. The default value is
  7184. // None. CompressionType is used only in Pipe input mode. In File mode, leave
  7185. // this field unset or set it to None.
  7186. CompressionType *string `type:"string" enum:"CompressionType"`
  7187. // The MIME type of the data.
  7188. ContentType *string `type:"string"`
  7189. // The location of the channel data.
  7190. //
  7191. // DataSource is a required field
  7192. DataSource *DataSource `type:"structure" required:"true"`
  7193. // (Optional) The input mode to use for the data channel in a training job.
  7194. // If you don't set a value for InputMode, Amazon SageMaker uses the value set
  7195. // for TrainingInputMode. Use this parameter to override the TrainingInputMode
  7196. // setting in a AlgorithmSpecification request when you have a channel that
  7197. // needs a different input mode from the training job's general setting. To
  7198. // download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned
  7199. // ML storage volume, and mount the directory to a Docker volume, use File input
  7200. // mode. To stream data directly from Amazon S3 to the container, choose Pipe
  7201. // input mode.
  7202. //
  7203. // To use a model for incremental training, choose File input model.
  7204. InputMode *string `type:"string" enum:"TrainingInputMode"`
  7205. // Specify RecordIO as the value when input data is in raw format but the training
  7206. // algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps
  7207. // each individual S3 object in a RecordIO record. If the input data is already
  7208. // in RecordIO format, you don't need to set this attribute. For more information,
  7209. // see Create a Dataset Using RecordIO (https://mxnet.incubator.apache.org/architecture/note_data_loading.html#data-format)
  7210. RecordWrapperType *string `type:"string" enum:"RecordWrapper"`
  7211. // A configuration for a shuffle option for input data in a channel. If you
  7212. // use S3Prefix for S3DataType, this shuffles the results of the S3 key prefix
  7213. // matches. If you use ManifestFile, the order of the S3 object references in
  7214. // the ManifestFile is shuffled. If you use AugmentedManifestFile, the order
  7215. // of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling
  7216. // order is determined using the Seed value.
  7217. //
  7218. // For Pipe input mode, shuffling is done at the start of every epoch. With
  7219. // large datasets this ensures that the order of the training data is different
  7220. // for each epoch, it helps reduce bias and possible overfitting. In a multi-node
  7221. // training job when ShuffleConfig is combined with S3DataDistributionType of
  7222. // ShardedByS3Key, the data is shuffled across nodes so that the content sent
  7223. // to a particular node on the first epoch might be sent to a different node
  7224. // on the second epoch.
  7225. ShuffleConfig *ShuffleConfig `type:"structure"`
  7226. }
  7227. // String returns the string representation
  7228. func (s Channel) String() string {
  7229. return awsutil.Prettify(s)
  7230. }
  7231. // GoString returns the string representation
  7232. func (s Channel) GoString() string {
  7233. return s.String()
  7234. }
  7235. // Validate inspects the fields of the type to determine if they are valid.
  7236. func (s *Channel) Validate() error {
  7237. invalidParams := request.ErrInvalidParams{Context: "Channel"}
  7238. if s.ChannelName == nil {
  7239. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  7240. }
  7241. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  7242. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  7243. }
  7244. if s.DataSource == nil {
  7245. invalidParams.Add(request.NewErrParamRequired("DataSource"))
  7246. }
  7247. if s.DataSource != nil {
  7248. if err := s.DataSource.Validate(); err != nil {
  7249. invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams))
  7250. }
  7251. }
  7252. if s.ShuffleConfig != nil {
  7253. if err := s.ShuffleConfig.Validate(); err != nil {
  7254. invalidParams.AddNested("ShuffleConfig", err.(request.ErrInvalidParams))
  7255. }
  7256. }
  7257. if invalidParams.Len() > 0 {
  7258. return invalidParams
  7259. }
  7260. return nil
  7261. }
  7262. // SetChannelName sets the ChannelName field's value.
  7263. func (s *Channel) SetChannelName(v string) *Channel {
  7264. s.ChannelName = &v
  7265. return s
  7266. }
  7267. // SetCompressionType sets the CompressionType field's value.
  7268. func (s *Channel) SetCompressionType(v string) *Channel {
  7269. s.CompressionType = &v
  7270. return s
  7271. }
  7272. // SetContentType sets the ContentType field's value.
  7273. func (s *Channel) SetContentType(v string) *Channel {
  7274. s.ContentType = &v
  7275. return s
  7276. }
  7277. // SetDataSource sets the DataSource field's value.
  7278. func (s *Channel) SetDataSource(v *DataSource) *Channel {
  7279. s.DataSource = v
  7280. return s
  7281. }
  7282. // SetInputMode sets the InputMode field's value.
  7283. func (s *Channel) SetInputMode(v string) *Channel {
  7284. s.InputMode = &v
  7285. return s
  7286. }
  7287. // SetRecordWrapperType sets the RecordWrapperType field's value.
  7288. func (s *Channel) SetRecordWrapperType(v string) *Channel {
  7289. s.RecordWrapperType = &v
  7290. return s
  7291. }
  7292. // SetShuffleConfig sets the ShuffleConfig field's value.
  7293. func (s *Channel) SetShuffleConfig(v *ShuffleConfig) *Channel {
  7294. s.ShuffleConfig = v
  7295. return s
  7296. }
  7297. // Defines a named input source, called a channel, to be used by an algorithm.
  7298. type ChannelSpecification struct {
  7299. _ struct{} `type:"structure"`
  7300. // A brief description of the channel.
  7301. Description *string `type:"string"`
  7302. // Indicates whether the channel is required by the algorithm.
  7303. IsRequired *bool `type:"boolean"`
  7304. // The name of the channel.
  7305. //
  7306. // Name is a required field
  7307. Name *string `min:"1" type:"string" required:"true"`
  7308. // The allowed compression types, if data compression is used.
  7309. SupportedCompressionTypes []*string `type:"list"`
  7310. // The supported MIME types for the data.
  7311. //
  7312. // SupportedContentTypes is a required field
  7313. SupportedContentTypes []*string `type:"list" required:"true"`
  7314. // The allowed input mode, either FILE or PIPE.
  7315. //
  7316. // In FILE mode, Amazon SageMaker copies the data from the input source onto
  7317. // the local Amazon Elastic Block Store (Amazon EBS) volumes before starting
  7318. // your training algorithm. This is the most commonly used input mode.
  7319. //
  7320. // In PIPE mode, Amazon SageMaker streams input data from the source directly
  7321. // to your algorithm without using the EBS volume.
  7322. //
  7323. // SupportedInputModes is a required field
  7324. SupportedInputModes []*string `min:"1" type:"list" required:"true"`
  7325. }
  7326. // String returns the string representation
  7327. func (s ChannelSpecification) String() string {
  7328. return awsutil.Prettify(s)
  7329. }
  7330. // GoString returns the string representation
  7331. func (s ChannelSpecification) GoString() string {
  7332. return s.String()
  7333. }
  7334. // Validate inspects the fields of the type to determine if they are valid.
  7335. func (s *ChannelSpecification) Validate() error {
  7336. invalidParams := request.ErrInvalidParams{Context: "ChannelSpecification"}
  7337. if s.Name == nil {
  7338. invalidParams.Add(request.NewErrParamRequired("Name"))
  7339. }
  7340. if s.Name != nil && len(*s.Name) < 1 {
  7341. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7342. }
  7343. if s.SupportedContentTypes == nil {
  7344. invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes"))
  7345. }
  7346. if s.SupportedInputModes == nil {
  7347. invalidParams.Add(request.NewErrParamRequired("SupportedInputModes"))
  7348. }
  7349. if s.SupportedInputModes != nil && len(s.SupportedInputModes) < 1 {
  7350. invalidParams.Add(request.NewErrParamMinLen("SupportedInputModes", 1))
  7351. }
  7352. if invalidParams.Len() > 0 {
  7353. return invalidParams
  7354. }
  7355. return nil
  7356. }
  7357. // SetDescription sets the Description field's value.
  7358. func (s *ChannelSpecification) SetDescription(v string) *ChannelSpecification {
  7359. s.Description = &v
  7360. return s
  7361. }
  7362. // SetIsRequired sets the IsRequired field's value.
  7363. func (s *ChannelSpecification) SetIsRequired(v bool) *ChannelSpecification {
  7364. s.IsRequired = &v
  7365. return s
  7366. }
  7367. // SetName sets the Name field's value.
  7368. func (s *ChannelSpecification) SetName(v string) *ChannelSpecification {
  7369. s.Name = &v
  7370. return s
  7371. }
  7372. // SetSupportedCompressionTypes sets the SupportedCompressionTypes field's value.
  7373. func (s *ChannelSpecification) SetSupportedCompressionTypes(v []*string) *ChannelSpecification {
  7374. s.SupportedCompressionTypes = v
  7375. return s
  7376. }
  7377. // SetSupportedContentTypes sets the SupportedContentTypes field's value.
  7378. func (s *ChannelSpecification) SetSupportedContentTypes(v []*string) *ChannelSpecification {
  7379. s.SupportedContentTypes = v
  7380. return s
  7381. }
  7382. // SetSupportedInputModes sets the SupportedInputModes field's value.
  7383. func (s *ChannelSpecification) SetSupportedInputModes(v []*string) *ChannelSpecification {
  7384. s.SupportedInputModes = v
  7385. return s
  7386. }
  7387. // Specifies summary information about a Git repository.
  7388. type CodeRepositorySummary struct {
  7389. _ struct{} `type:"structure"`
  7390. // The Amazon Resource Name (ARN) of the Git repository.
  7391. //
  7392. // CodeRepositoryArn is a required field
  7393. CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
  7394. // The name of the Git repository.
  7395. //
  7396. // CodeRepositoryName is a required field
  7397. CodeRepositoryName *string `min:"1" type:"string" required:"true"`
  7398. // The date and time that the Git repository was created.
  7399. //
  7400. // CreationTime is a required field
  7401. CreationTime *time.Time `type:"timestamp" required:"true"`
  7402. // Configuration details for the Git repository, including the URL where it
  7403. // is located and the ARN of the AWS Secrets Manager secret that contains the
  7404. // credentials used to access the repository.
  7405. GitConfig *GitConfig `type:"structure"`
  7406. // The date and time that the Git repository was last modified.
  7407. //
  7408. // LastModifiedTime is a required field
  7409. LastModifiedTime *time.Time `type:"timestamp" required:"true"`
  7410. }
  7411. // String returns the string representation
  7412. func (s CodeRepositorySummary) String() string {
  7413. return awsutil.Prettify(s)
  7414. }
  7415. // GoString returns the string representation
  7416. func (s CodeRepositorySummary) GoString() string {
  7417. return s.String()
  7418. }
  7419. // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
  7420. func (s *CodeRepositorySummary) SetCodeRepositoryArn(v string) *CodeRepositorySummary {
  7421. s.CodeRepositoryArn = &v
  7422. return s
  7423. }
  7424. // SetCodeRepositoryName sets the CodeRepositoryName field's value.
  7425. func (s *CodeRepositorySummary) SetCodeRepositoryName(v string) *CodeRepositorySummary {
  7426. s.CodeRepositoryName = &v
  7427. return s
  7428. }
  7429. // SetCreationTime sets the CreationTime field's value.
  7430. func (s *CodeRepositorySummary) SetCreationTime(v time.Time) *CodeRepositorySummary {
  7431. s.CreationTime = &v
  7432. return s
  7433. }
  7434. // SetGitConfig sets the GitConfig field's value.
  7435. func (s *CodeRepositorySummary) SetGitConfig(v *GitConfig) *CodeRepositorySummary {
  7436. s.GitConfig = v
  7437. return s
  7438. }
  7439. // SetLastModifiedTime sets the LastModifiedTime field's value.
  7440. func (s *CodeRepositorySummary) SetLastModifiedTime(v time.Time) *CodeRepositorySummary {
  7441. s.LastModifiedTime = &v
  7442. return s
  7443. }
  7444. // Identifies a Amazon Cognito user group. A user group can be used in on or
  7445. // more work teams.
  7446. type CognitoMemberDefinition struct {
  7447. _ struct{} `type:"structure"`
  7448. // An identifier for an application client. You must create the app client ID
  7449. // using Amazon Cognito.
  7450. //
  7451. // ClientId is a required field
  7452. ClientId *string `min:"1" type:"string" required:"true"`
  7453. // An identifier for a user group.
  7454. //
  7455. // UserGroup is a required field
  7456. UserGroup *string `min:"1" type:"string" required:"true"`
  7457. // An identifier for a user pool. The user pool must be in the same region as
  7458. // the service that you are calling.
  7459. //
  7460. // UserPool is a required field
  7461. UserPool *string `min:"1" type:"string" required:"true"`
  7462. }
  7463. // String returns the string representation
  7464. func (s CognitoMemberDefinition) String() string {
  7465. return awsutil.Prettify(s)
  7466. }
  7467. // GoString returns the string representation
  7468. func (s CognitoMemberDefinition) GoString() string {
  7469. return s.String()
  7470. }
  7471. // Validate inspects the fields of the type to determine if they are valid.
  7472. func (s *CognitoMemberDefinition) Validate() error {
  7473. invalidParams := request.ErrInvalidParams{Context: "CognitoMemberDefinition"}
  7474. if s.ClientId == nil {
  7475. invalidParams.Add(request.NewErrParamRequired("ClientId"))
  7476. }
  7477. if s.ClientId != nil && len(*s.ClientId) < 1 {
  7478. invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
  7479. }
  7480. if s.UserGroup == nil {
  7481. invalidParams.Add(request.NewErrParamRequired("UserGroup"))
  7482. }
  7483. if s.UserGroup != nil && len(*s.UserGroup) < 1 {
  7484. invalidParams.Add(request.NewErrParamMinLen("UserGroup", 1))
  7485. }
  7486. if s.UserPool == nil {
  7487. invalidParams.Add(request.NewErrParamRequired("UserPool"))
  7488. }
  7489. if s.UserPool != nil && len(*s.UserPool) < 1 {
  7490. invalidParams.Add(request.NewErrParamMinLen("UserPool", 1))
  7491. }
  7492. if invalidParams.Len() > 0 {
  7493. return invalidParams
  7494. }
  7495. return nil
  7496. }
  7497. // SetClientId sets the ClientId field's value.
  7498. func (s *CognitoMemberDefinition) SetClientId(v string) *CognitoMemberDefinition {
  7499. s.ClientId = &v
  7500. return s
  7501. }
  7502. // SetUserGroup sets the UserGroup field's value.
  7503. func (s *CognitoMemberDefinition) SetUserGroup(v string) *CognitoMemberDefinition {
  7504. s.UserGroup = &v
  7505. return s
  7506. }
  7507. // SetUserPool sets the UserPool field's value.
  7508. func (s *CognitoMemberDefinition) SetUserPool(v string) *CognitoMemberDefinition {
  7509. s.UserPool = &v
  7510. return s
  7511. }
  7512. // A summary of a model compilation job.
  7513. type CompilationJobSummary struct {
  7514. _ struct{} `type:"structure"`
  7515. // The time when the model compilation job completed.
  7516. CompilationEndTime *time.Time `type:"timestamp"`
  7517. // The Amazon Resource Name (ARN) of the model compilation job.
  7518. //
  7519. // CompilationJobArn is a required field
  7520. CompilationJobArn *string `type:"string" required:"true"`
  7521. // The name of the model compilation job that you want a summary for.
  7522. //
  7523. // CompilationJobName is a required field
  7524. CompilationJobName *string `min:"1" type:"string" required:"true"`
  7525. // The status of the model compilation job.
  7526. //
  7527. // CompilationJobStatus is a required field
  7528. CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"`
  7529. // The time when the model compilation job started.
  7530. CompilationStartTime *time.Time `type:"timestamp"`
  7531. // The type of device that the model will run on after compilation has completed.
  7532. //
  7533. // CompilationTargetDevice is a required field
  7534. CompilationTargetDevice *string `type:"string" required:"true" enum:"TargetDevice"`
  7535. // The time when the model compilation job was created.
  7536. //
  7537. // CreationTime is a required field
  7538. CreationTime *time.Time `type:"timestamp" required:"true"`
  7539. // The time when the model compilation job was last modified.
  7540. LastModifiedTime *time.Time `type:"timestamp"`
  7541. }
  7542. // String returns the string representation
  7543. func (s CompilationJobSummary) String() string {
  7544. return awsutil.Prettify(s)
  7545. }
  7546. // GoString returns the string representation
  7547. func (s CompilationJobSummary) GoString() string {
  7548. return s.String()
  7549. }
  7550. // SetCompilationEndTime sets the CompilationEndTime field's value.
  7551. func (s *CompilationJobSummary) SetCompilationEndTime(v time.Time) *CompilationJobSummary {
  7552. s.CompilationEndTime = &v
  7553. return s
  7554. }
  7555. // SetCompilationJobArn sets the CompilationJobArn field's value.
  7556. func (s *CompilationJobSummary) SetCompilationJobArn(v string) *CompilationJobSummary {
  7557. s.CompilationJobArn = &v
  7558. return s
  7559. }
  7560. // SetCompilationJobName sets the CompilationJobName field's value.
  7561. func (s *CompilationJobSummary) SetCompilationJobName(v string) *CompilationJobSummary {
  7562. s.CompilationJobName = &v
  7563. return s
  7564. }
  7565. // SetCompilationJobStatus sets the CompilationJobStatus field's value.
  7566. func (s *CompilationJobSummary) SetCompilationJobStatus(v string) *CompilationJobSummary {
  7567. s.CompilationJobStatus = &v
  7568. return s
  7569. }
  7570. // SetCompilationStartTime sets the CompilationStartTime field's value.
  7571. func (s *CompilationJobSummary) SetCompilationStartTime(v time.Time) *CompilationJobSummary {
  7572. s.CompilationStartTime = &v
  7573. return s
  7574. }
  7575. // SetCompilationTargetDevice sets the CompilationTargetDevice field's value.
  7576. func (s *CompilationJobSummary) SetCompilationTargetDevice(v string) *CompilationJobSummary {
  7577. s.CompilationTargetDevice = &v
  7578. return s
  7579. }
  7580. // SetCreationTime sets the CreationTime field's value.
  7581. func (s *CompilationJobSummary) SetCreationTime(v time.Time) *CompilationJobSummary {
  7582. s.CreationTime = &v
  7583. return s
  7584. }
  7585. // SetLastModifiedTime sets the LastModifiedTime field's value.
  7586. func (s *CompilationJobSummary) SetLastModifiedTime(v time.Time) *CompilationJobSummary {
  7587. s.LastModifiedTime = &v
  7588. return s
  7589. }
  7590. // Describes the container, as part of model definition.
  7591. type ContainerDefinition struct {
  7592. _ struct{} `type:"structure"`
  7593. // The DNS host name for the container after Amazon SageMaker deploys it.
  7594. ContainerHostname *string `type:"string"`
  7595. // The environment variables to set in the Docker container. Each key and value
  7596. // in the Environment string to string map can have length of up to 1024. We
  7597. // support up to 16 entries in the map.
  7598. Environment map[string]*string `type:"map"`
  7599. // The Amazon EC2 Container Registry (Amazon ECR) path where inference code
  7600. // is stored. If you are using your own custom algorithm instead of an algorithm
  7601. // provided by Amazon SageMaker, the inference code must meet Amazon SageMaker
  7602. // requirements. Amazon SageMaker supports both registry/repository[:tag] and
  7603. // registry/repository[@digest] image path formats. For more information, see
  7604. // Using Your Own Algorithms with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html)
  7605. Image *string `type:"string"`
  7606. // The S3 path where the model artifacts, which result from model training,
  7607. // are stored. This path must point to a single gzip compressed tar archive
  7608. // (.tar.gz suffix).
  7609. //
  7610. // If you provide a value for this parameter, Amazon SageMaker uses AWS Security
  7611. // Token Service to download model artifacts from the S3 path you provide. AWS
  7612. // STS is activated in your IAM user account by default. If you previously deactivated
  7613. // AWS STS for a region, you need to reactivate AWS STS for that region. For
  7614. // more information, see Activating and Deactivating AWS STS in an AWS Region
  7615. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
  7616. // in the AWS Identity and Access Management User Guide.
  7617. ModelDataUrl *string `type:"string"`
  7618. // The name of the model package to use to create the model.
  7619. ModelPackageName *string `min:"1" type:"string"`
  7620. }
  7621. // String returns the string representation
  7622. func (s ContainerDefinition) String() string {
  7623. return awsutil.Prettify(s)
  7624. }
  7625. // GoString returns the string representation
  7626. func (s ContainerDefinition) GoString() string {
  7627. return s.String()
  7628. }
  7629. // Validate inspects the fields of the type to determine if they are valid.
  7630. func (s *ContainerDefinition) Validate() error {
  7631. invalidParams := request.ErrInvalidParams{Context: "ContainerDefinition"}
  7632. if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
  7633. invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
  7634. }
  7635. if invalidParams.Len() > 0 {
  7636. return invalidParams
  7637. }
  7638. return nil
  7639. }
  7640. // SetContainerHostname sets the ContainerHostname field's value.
  7641. func (s *ContainerDefinition) SetContainerHostname(v string) *ContainerDefinition {
  7642. s.ContainerHostname = &v
  7643. return s
  7644. }
  7645. // SetEnvironment sets the Environment field's value.
  7646. func (s *ContainerDefinition) SetEnvironment(v map[string]*string) *ContainerDefinition {
  7647. s.Environment = v
  7648. return s
  7649. }
  7650. // SetImage sets the Image field's value.
  7651. func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition {
  7652. s.Image = &v
  7653. return s
  7654. }
  7655. // SetModelDataUrl sets the ModelDataUrl field's value.
  7656. func (s *ContainerDefinition) SetModelDataUrl(v string) *ContainerDefinition {
  7657. s.ModelDataUrl = &v
  7658. return s
  7659. }
  7660. // SetModelPackageName sets the ModelPackageName field's value.
  7661. func (s *ContainerDefinition) SetModelPackageName(v string) *ContainerDefinition {
  7662. s.ModelPackageName = &v
  7663. return s
  7664. }
  7665. // A list of continuous hyperparameters to tune.
  7666. type ContinuousParameterRange struct {
  7667. _ struct{} `type:"structure"`
  7668. // The maximum value for the hyperparameter. The tuning job uses floating-point
  7669. // values between MinValue value and this value for tuning.
  7670. //
  7671. // MaxValue is a required field
  7672. MaxValue *string `type:"string" required:"true"`
  7673. // The minimum value for the hyperparameter. The tuning job uses floating-point
  7674. // values between this value and MaxValuefor tuning.
  7675. //
  7676. // MinValue is a required field
  7677. MinValue *string `type:"string" required:"true"`
  7678. // The name of the continuous hyperparameter to tune.
  7679. //
  7680. // Name is a required field
  7681. Name *string `type:"string" required:"true"`
  7682. }
  7683. // String returns the string representation
  7684. func (s ContinuousParameterRange) String() string {
  7685. return awsutil.Prettify(s)
  7686. }
  7687. // GoString returns the string representation
  7688. func (s ContinuousParameterRange) GoString() string {
  7689. return s.String()
  7690. }
  7691. // Validate inspects the fields of the type to determine if they are valid.
  7692. func (s *ContinuousParameterRange) Validate() error {
  7693. invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRange"}
  7694. if s.MaxValue == nil {
  7695. invalidParams.Add(request.NewErrParamRequired("MaxValue"))
  7696. }
  7697. if s.MinValue == nil {
  7698. invalidParams.Add(request.NewErrParamRequired("MinValue"))
  7699. }
  7700. if s.Name == nil {
  7701. invalidParams.Add(request.NewErrParamRequired("Name"))
  7702. }
  7703. if invalidParams.Len() > 0 {
  7704. return invalidParams
  7705. }
  7706. return nil
  7707. }
  7708. // SetMaxValue sets the MaxValue field's value.
  7709. func (s *ContinuousParameterRange) SetMaxValue(v string) *ContinuousParameterRange {
  7710. s.MaxValue = &v
  7711. return s
  7712. }
  7713. // SetMinValue sets the MinValue field's value.
  7714. func (s *ContinuousParameterRange) SetMinValue(v string) *ContinuousParameterRange {
  7715. s.MinValue = &v
  7716. return s
  7717. }
  7718. // SetName sets the Name field's value.
  7719. func (s *ContinuousParameterRange) SetName(v string) *ContinuousParameterRange {
  7720. s.Name = &v
  7721. return s
  7722. }
  7723. // Defines the possible values for a continuous hyperparameter.
  7724. type ContinuousParameterRangeSpecification struct {
  7725. _ struct{} `type:"structure"`
  7726. // The maximum floating-point value allowed.
  7727. //
  7728. // MaxValue is a required field
  7729. MaxValue *string `type:"string" required:"true"`
  7730. // The minimum floating-point value allowed.
  7731. //
  7732. // MinValue is a required field
  7733. MinValue *string `type:"string" required:"true"`
  7734. }
  7735. // String returns the string representation
  7736. func (s ContinuousParameterRangeSpecification) String() string {
  7737. return awsutil.Prettify(s)
  7738. }
  7739. // GoString returns the string representation
  7740. func (s ContinuousParameterRangeSpecification) GoString() string {
  7741. return s.String()
  7742. }
  7743. // Validate inspects the fields of the type to determine if they are valid.
  7744. func (s *ContinuousParameterRangeSpecification) Validate() error {
  7745. invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRangeSpecification"}
  7746. if s.MaxValue == nil {
  7747. invalidParams.Add(request.NewErrParamRequired("MaxValue"))
  7748. }
  7749. if s.MinValue == nil {
  7750. invalidParams.Add(request.NewErrParamRequired("MinValue"))
  7751. }
  7752. if invalidParams.Len() > 0 {
  7753. return invalidParams
  7754. }
  7755. return nil
  7756. }
  7757. // SetMaxValue sets the MaxValue field's value.
  7758. func (s *ContinuousParameterRangeSpecification) SetMaxValue(v string) *ContinuousParameterRangeSpecification {
  7759. s.MaxValue = &v
  7760. return s
  7761. }
  7762. // SetMinValue sets the MinValue field's value.
  7763. func (s *ContinuousParameterRangeSpecification) SetMinValue(v string) *ContinuousParameterRangeSpecification {
  7764. s.MinValue = &v
  7765. return s
  7766. }
  7767. type CreateAlgorithmInput struct {
  7768. _ struct{} `type:"structure"`
  7769. // A description of the algorithm.
  7770. AlgorithmDescription *string `type:"string"`
  7771. // The name of the algorithm.
  7772. //
  7773. // AlgorithmName is a required field
  7774. AlgorithmName *string `min:"1" type:"string" required:"true"`
  7775. // Whether to certify the algorithm so that it can be listed in AWS Marketplace.
  7776. CertifyForMarketplace *bool `type:"boolean"`
  7777. // Specifies details about inference jobs that the algorithm runs, including
  7778. // the following:
  7779. //
  7780. // * The Amazon ECR paths of containers that contain the inference code and
  7781. // model artifacts.
  7782. //
  7783. // * The instance types that the algorithm supports for transform jobs and
  7784. // real-time endpoints used for inference.
  7785. //
  7786. // * The input and output content formats that the algorithm supports for
  7787. // inference.
  7788. InferenceSpecification *InferenceSpecification `type:"structure"`
  7789. // Specifies details about training jobs run by this algorithm, including the
  7790. // following:
  7791. //
  7792. // * The Amazon ECR path of the container and the version digest of the algorithm.
  7793. //
  7794. // * The hyperparameters that the algorithm supports.
  7795. //
  7796. // * The instance types that the algorithm supports for training.
  7797. //
  7798. // * Whether the algorithm supports distributed training.
  7799. //
  7800. // * The metrics that the algorithm emits to Amazon CloudWatch.
  7801. //
  7802. // * Which metrics that the algorithm emits can be used as the objective
  7803. // metric for hyperparameter tuning jobs.
  7804. //
  7805. // * The input channels that the algorithm supports for training data. For
  7806. // example, an algorithm might support train, validation, and test channels.
  7807. //
  7808. // TrainingSpecification is a required field
  7809. TrainingSpecification *TrainingSpecification `type:"structure" required:"true"`
  7810. // Specifies configurations for one or more training jobs and that Amazon SageMaker
  7811. // runs to test the algorithm's training code and, optionally, one or more batch
  7812. // transform jobs that Amazon SageMaker runs to test the algorithm's inference
  7813. // code.
  7814. ValidationSpecification *AlgorithmValidationSpecification `type:"structure"`
  7815. }
  7816. // String returns the string representation
  7817. func (s CreateAlgorithmInput) String() string {
  7818. return awsutil.Prettify(s)
  7819. }
  7820. // GoString returns the string representation
  7821. func (s CreateAlgorithmInput) GoString() string {
  7822. return s.String()
  7823. }
  7824. // Validate inspects the fields of the type to determine if they are valid.
  7825. func (s *CreateAlgorithmInput) Validate() error {
  7826. invalidParams := request.ErrInvalidParams{Context: "CreateAlgorithmInput"}
  7827. if s.AlgorithmName == nil {
  7828. invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
  7829. }
  7830. if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
  7831. invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
  7832. }
  7833. if s.TrainingSpecification == nil {
  7834. invalidParams.Add(request.NewErrParamRequired("TrainingSpecification"))
  7835. }
  7836. if s.InferenceSpecification != nil {
  7837. if err := s.InferenceSpecification.Validate(); err != nil {
  7838. invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams))
  7839. }
  7840. }
  7841. if s.TrainingSpecification != nil {
  7842. if err := s.TrainingSpecification.Validate(); err != nil {
  7843. invalidParams.AddNested("TrainingSpecification", err.(request.ErrInvalidParams))
  7844. }
  7845. }
  7846. if s.ValidationSpecification != nil {
  7847. if err := s.ValidationSpecification.Validate(); err != nil {
  7848. invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams))
  7849. }
  7850. }
  7851. if invalidParams.Len() > 0 {
  7852. return invalidParams
  7853. }
  7854. return nil
  7855. }
  7856. // SetAlgorithmDescription sets the AlgorithmDescription field's value.
  7857. func (s *CreateAlgorithmInput) SetAlgorithmDescription(v string) *CreateAlgorithmInput {
  7858. s.AlgorithmDescription = &v
  7859. return s
  7860. }
  7861. // SetAlgorithmName sets the AlgorithmName field's value.
  7862. func (s *CreateAlgorithmInput) SetAlgorithmName(v string) *CreateAlgorithmInput {
  7863. s.AlgorithmName = &v
  7864. return s
  7865. }
  7866. // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
  7867. func (s *CreateAlgorithmInput) SetCertifyForMarketplace(v bool) *CreateAlgorithmInput {
  7868. s.CertifyForMarketplace = &v
  7869. return s
  7870. }
  7871. // SetInferenceSpecification sets the InferenceSpecification field's value.
  7872. func (s *CreateAlgorithmInput) SetInferenceSpecification(v *InferenceSpecification) *CreateAlgorithmInput {
  7873. s.InferenceSpecification = v
  7874. return s
  7875. }
  7876. // SetTrainingSpecification sets the TrainingSpecification field's value.
  7877. func (s *CreateAlgorithmInput) SetTrainingSpecification(v *TrainingSpecification) *CreateAlgorithmInput {
  7878. s.TrainingSpecification = v
  7879. return s
  7880. }
  7881. // SetValidationSpecification sets the ValidationSpecification field's value.
  7882. func (s *CreateAlgorithmInput) SetValidationSpecification(v *AlgorithmValidationSpecification) *CreateAlgorithmInput {
  7883. s.ValidationSpecification = v
  7884. return s
  7885. }
  7886. type CreateAlgorithmOutput struct {
  7887. _ struct{} `type:"structure"`
  7888. // The Amazon Resource Name (ARN) of the new algorithm.
  7889. //
  7890. // AlgorithmArn is a required field
  7891. AlgorithmArn *string `min:"1" type:"string" required:"true"`
  7892. }
  7893. // String returns the string representation
  7894. func (s CreateAlgorithmOutput) String() string {
  7895. return awsutil.Prettify(s)
  7896. }
  7897. // GoString returns the string representation
  7898. func (s CreateAlgorithmOutput) GoString() string {
  7899. return s.String()
  7900. }
  7901. // SetAlgorithmArn sets the AlgorithmArn field's value.
  7902. func (s *CreateAlgorithmOutput) SetAlgorithmArn(v string) *CreateAlgorithmOutput {
  7903. s.AlgorithmArn = &v
  7904. return s
  7905. }
  7906. type CreateCodeRepositoryInput struct {
  7907. _ struct{} `type:"structure"`
  7908. // The name of the Git repository. The name must have 1 to 63 characters. Valid
  7909. // characters are a-z, A-Z, 0-9, and - (hyphen).
  7910. //
  7911. // CodeRepositoryName is a required field
  7912. CodeRepositoryName *string `min:"1" type:"string" required:"true"`
  7913. // Specifies details about the repository, including the URL where the repository
  7914. // is located, the default branch, and credentials to use to access the repository.
  7915. //
  7916. // GitConfig is a required field
  7917. GitConfig *GitConfig `type:"structure" required:"true"`
  7918. }
  7919. // String returns the string representation
  7920. func (s CreateCodeRepositoryInput) String() string {
  7921. return awsutil.Prettify(s)
  7922. }
  7923. // GoString returns the string representation
  7924. func (s CreateCodeRepositoryInput) GoString() string {
  7925. return s.String()
  7926. }
  7927. // Validate inspects the fields of the type to determine if they are valid.
  7928. func (s *CreateCodeRepositoryInput) Validate() error {
  7929. invalidParams := request.ErrInvalidParams{Context: "CreateCodeRepositoryInput"}
  7930. if s.CodeRepositoryName == nil {
  7931. invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
  7932. }
  7933. if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
  7934. invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
  7935. }
  7936. if s.GitConfig == nil {
  7937. invalidParams.Add(request.NewErrParamRequired("GitConfig"))
  7938. }
  7939. if s.GitConfig != nil {
  7940. if err := s.GitConfig.Validate(); err != nil {
  7941. invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams))
  7942. }
  7943. }
  7944. if invalidParams.Len() > 0 {
  7945. return invalidParams
  7946. }
  7947. return nil
  7948. }
  7949. // SetCodeRepositoryName sets the CodeRepositoryName field's value.
  7950. func (s *CreateCodeRepositoryInput) SetCodeRepositoryName(v string) *CreateCodeRepositoryInput {
  7951. s.CodeRepositoryName = &v
  7952. return s
  7953. }
  7954. // SetGitConfig sets the GitConfig field's value.
  7955. func (s *CreateCodeRepositoryInput) SetGitConfig(v *GitConfig) *CreateCodeRepositoryInput {
  7956. s.GitConfig = v
  7957. return s
  7958. }
  7959. type CreateCodeRepositoryOutput struct {
  7960. _ struct{} `type:"structure"`
  7961. // The Amazon Resource Name (ARN) of the new repository.
  7962. //
  7963. // CodeRepositoryArn is a required field
  7964. CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
  7965. }
  7966. // String returns the string representation
  7967. func (s CreateCodeRepositoryOutput) String() string {
  7968. return awsutil.Prettify(s)
  7969. }
  7970. // GoString returns the string representation
  7971. func (s CreateCodeRepositoryOutput) GoString() string {
  7972. return s.String()
  7973. }
  7974. // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
  7975. func (s *CreateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *CreateCodeRepositoryOutput {
  7976. s.CodeRepositoryArn = &v
  7977. return s
  7978. }
  7979. type CreateCompilationJobInput struct {
  7980. _ struct{} `type:"structure"`
  7981. // A name for the model compilation job. The name must be unique within the
  7982. // AWS Region and within your AWS account.
  7983. //
  7984. // CompilationJobName is a required field
  7985. CompilationJobName *string `min:"1" type:"string" required:"true"`
  7986. // Provides information about the location of input model artifacts, the name
  7987. // and shape of the expected data inputs, and the framework in which the model
  7988. // was trained.
  7989. //
  7990. // InputConfig is a required field
  7991. InputConfig *InputConfig `type:"structure" required:"true"`
  7992. // Provides information about the output location for the compiled model and
  7993. // the target device the model runs on.
  7994. //
  7995. // OutputConfig is a required field
  7996. OutputConfig *OutputConfig `type:"structure" required:"true"`
  7997. // The Amazon Resource Name (ARN) of an IIAMAM role that enables Amazon SageMaker
  7998. // to perform tasks on your behalf.
  7999. //
  8000. // During model compilation, Amazon SageMaker needs your permission to:
  8001. //
  8002. // * Read input data from an S3 bucket
  8003. //
  8004. // * Write model artifacts to an S3 bucket
  8005. //
  8006. // * Write logs to Amazon CloudWatch Logs
  8007. //
  8008. // * Publish metrics to Amazon CloudWatch
  8009. //
  8010. // You grant permissions for all of these tasks to an IAM role. To pass this
  8011. // role to Amazon SageMaker, the caller of this API must have the iam:PassRole
  8012. // permission. For more information, see Amazon SageMaker Roles. (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html)
  8013. //
  8014. // RoleArn is a required field
  8015. RoleArn *string `min:"20" type:"string" required:"true"`
  8016. // The duration allowed for model compilation.
  8017. //
  8018. // StoppingCondition is a required field
  8019. StoppingCondition *StoppingCondition `type:"structure" required:"true"`
  8020. }
  8021. // String returns the string representation
  8022. func (s CreateCompilationJobInput) String() string {
  8023. return awsutil.Prettify(s)
  8024. }
  8025. // GoString returns the string representation
  8026. func (s CreateCompilationJobInput) GoString() string {
  8027. return s.String()
  8028. }
  8029. // Validate inspects the fields of the type to determine if they are valid.
  8030. func (s *CreateCompilationJobInput) Validate() error {
  8031. invalidParams := request.ErrInvalidParams{Context: "CreateCompilationJobInput"}
  8032. if s.CompilationJobName == nil {
  8033. invalidParams.Add(request.NewErrParamRequired("CompilationJobName"))
  8034. }
  8035. if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 {
  8036. invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1))
  8037. }
  8038. if s.InputConfig == nil {
  8039. invalidParams.Add(request.NewErrParamRequired("InputConfig"))
  8040. }
  8041. if s.OutputConfig == nil {
  8042. invalidParams.Add(request.NewErrParamRequired("OutputConfig"))
  8043. }
  8044. if s.RoleArn == nil {
  8045. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  8046. }
  8047. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  8048. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  8049. }
  8050. if s.StoppingCondition == nil {
  8051. invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
  8052. }
  8053. if s.InputConfig != nil {
  8054. if err := s.InputConfig.Validate(); err != nil {
  8055. invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams))
  8056. }
  8057. }
  8058. if s.OutputConfig != nil {
  8059. if err := s.OutputConfig.Validate(); err != nil {
  8060. invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams))
  8061. }
  8062. }
  8063. if s.StoppingCondition != nil {
  8064. if err := s.StoppingCondition.Validate(); err != nil {
  8065. invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
  8066. }
  8067. }
  8068. if invalidParams.Len() > 0 {
  8069. return invalidParams
  8070. }
  8071. return nil
  8072. }
  8073. // SetCompilationJobName sets the CompilationJobName field's value.
  8074. func (s *CreateCompilationJobInput) SetCompilationJobName(v string) *CreateCompilationJobInput {
  8075. s.CompilationJobName = &v
  8076. return s
  8077. }
  8078. // SetInputConfig sets the InputConfig field's value.
  8079. func (s *CreateCompilationJobInput) SetInputConfig(v *InputConfig) *CreateCompilationJobInput {
  8080. s.InputConfig = v
  8081. return s
  8082. }
  8083. // SetOutputConfig sets the OutputConfig field's value.
  8084. func (s *CreateCompilationJobInput) SetOutputConfig(v *OutputConfig) *CreateCompilationJobInput {
  8085. s.OutputConfig = v
  8086. return s
  8087. }
  8088. // SetRoleArn sets the RoleArn field's value.
  8089. func (s *CreateCompilationJobInput) SetRoleArn(v string) *CreateCompilationJobInput {
  8090. s.RoleArn = &v
  8091. return s
  8092. }
  8093. // SetStoppingCondition sets the StoppingCondition field's value.
  8094. func (s *CreateCompilationJobInput) SetStoppingCondition(v *StoppingCondition) *CreateCompilationJobInput {
  8095. s.StoppingCondition = v
  8096. return s
  8097. }
  8098. type CreateCompilationJobOutput struct {
  8099. _ struct{} `type:"structure"`
  8100. // If the action is successful, the service sends back an HTTP 200 response.
  8101. // Amazon SageMaker returns the following data in JSON format:
  8102. //
  8103. // * CompilationJobArn: The Amazon Resource Name (ARN) of the compiled job.
  8104. //
  8105. // CompilationJobArn is a required field
  8106. CompilationJobArn *string `type:"string" required:"true"`
  8107. }
  8108. // String returns the string representation
  8109. func (s CreateCompilationJobOutput) String() string {
  8110. return awsutil.Prettify(s)
  8111. }
  8112. // GoString returns the string representation
  8113. func (s CreateCompilationJobOutput) GoString() string {
  8114. return s.String()
  8115. }
  8116. // SetCompilationJobArn sets the CompilationJobArn field's value.
  8117. func (s *CreateCompilationJobOutput) SetCompilationJobArn(v string) *CreateCompilationJobOutput {
  8118. s.CompilationJobArn = &v
  8119. return s
  8120. }
  8121. type CreateEndpointConfigInput struct {
  8122. _ struct{} `type:"structure"`
  8123. // The name of the endpoint configuration. You specify this name in a CreateEndpoint
  8124. // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html)
  8125. // request.
  8126. //
  8127. // EndpointConfigName is a required field
  8128. EndpointConfigName *string `type:"string" required:"true"`
  8129. // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon
  8130. // SageMaker uses to encrypt data on the storage volume attached to the ML compute
  8131. // instance that hosts the endpoint.
  8132. KmsKeyId *string `type:"string"`
  8133. // An array of ProductionVariant objects, one for each model that you want to
  8134. // host at this endpoint.
  8135. //
  8136. // ProductionVariants is a required field
  8137. ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"`
  8138. // An array of key-value pairs. For more information, see Using Cost Allocation
  8139. // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
  8140. // in the AWS Billing and Cost Management User Guide.
  8141. Tags []*Tag `type:"list"`
  8142. }
  8143. // String returns the string representation
  8144. func (s CreateEndpointConfigInput) String() string {
  8145. return awsutil.Prettify(s)
  8146. }
  8147. // GoString returns the string representation
  8148. func (s CreateEndpointConfigInput) GoString() string {
  8149. return s.String()
  8150. }
  8151. // Validate inspects the fields of the type to determine if they are valid.
  8152. func (s *CreateEndpointConfigInput) Validate() error {
  8153. invalidParams := request.ErrInvalidParams{Context: "CreateEndpointConfigInput"}
  8154. if s.EndpointConfigName == nil {
  8155. invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
  8156. }
  8157. if s.ProductionVariants == nil {
  8158. invalidParams.Add(request.NewErrParamRequired("ProductionVariants"))
  8159. }
  8160. if s.ProductionVariants != nil && len(s.ProductionVariants) < 1 {
  8161. invalidParams.Add(request.NewErrParamMinLen("ProductionVariants", 1))
  8162. }
  8163. if s.ProductionVariants != nil {
  8164. for i, v := range s.ProductionVariants {
  8165. if v == nil {
  8166. continue
  8167. }
  8168. if err := v.Validate(); err != nil {
  8169. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductionVariants", i), err.(request.ErrInvalidParams))
  8170. }
  8171. }
  8172. }
  8173. if s.Tags != nil {
  8174. for i, v := range s.Tags {
  8175. if v == nil {
  8176. continue
  8177. }
  8178. if err := v.Validate(); err != nil {
  8179. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  8180. }
  8181. }
  8182. }
  8183. if invalidParams.Len() > 0 {
  8184. return invalidParams
  8185. }
  8186. return nil
  8187. }
  8188. // SetEndpointConfigName sets the EndpointConfigName field's value.
  8189. func (s *CreateEndpointConfigInput) SetEndpointConfigName(v string) *CreateEndpointConfigInput {
  8190. s.EndpointConfigName = &v
  8191. return s
  8192. }
  8193. // SetKmsKeyId sets the KmsKeyId field's value.
  8194. func (s *CreateEndpointConfigInput) SetKmsKeyId(v string) *CreateEndpointConfigInput {
  8195. s.KmsKeyId = &v
  8196. return s
  8197. }
  8198. // SetProductionVariants sets the ProductionVariants field's value.
  8199. func (s *CreateEndpointConfigInput) SetProductionVariants(v []*ProductionVariant) *CreateEndpointConfigInput {
  8200. s.ProductionVariants = v
  8201. return s
  8202. }
  8203. // SetTags sets the Tags field's value.
  8204. func (s *CreateEndpointConfigInput) SetTags(v []*Tag) *CreateEndpointConfigInput {
  8205. s.Tags = v
  8206. return s
  8207. }
  8208. type CreateEndpointConfigOutput struct {
  8209. _ struct{} `type:"structure"`
  8210. // The Amazon Resource Name (ARN) of the endpoint configuration.
  8211. //
  8212. // EndpointConfigArn is a required field
  8213. EndpointConfigArn *string `min:"20" type:"string" required:"true"`
  8214. }
  8215. // String returns the string representation
  8216. func (s CreateEndpointConfigOutput) String() string {
  8217. return awsutil.Prettify(s)
  8218. }
  8219. // GoString returns the string representation
  8220. func (s CreateEndpointConfigOutput) GoString() string {
  8221. return s.String()
  8222. }
  8223. // SetEndpointConfigArn sets the EndpointConfigArn field's value.
  8224. func (s *CreateEndpointConfigOutput) SetEndpointConfigArn(v string) *CreateEndpointConfigOutput {
  8225. s.EndpointConfigArn = &v
  8226. return s
  8227. }
  8228. type CreateEndpointInput struct {
  8229. _ struct{} `type:"structure"`
  8230. // The name of an endpoint configuration. For more information, see CreateEndpointConfig
  8231. // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html).
  8232. //
  8233. // EndpointConfigName is a required field
  8234. EndpointConfigName *string `type:"string" required:"true"`
  8235. // The name of the endpoint. The name must be unique within an AWS Region in
  8236. // your AWS account.
  8237. //
  8238. // EndpointName is a required field
  8239. EndpointName *string `type:"string" required:"true"`
  8240. // An array of key-value pairs. For more information, see Using Cost Allocation
  8241. // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)in
  8242. // the AWS Billing and Cost Management User Guide.
  8243. Tags []*Tag `type:"list"`
  8244. }
  8245. // String returns the string representation
  8246. func (s CreateEndpointInput) String() string {
  8247. return awsutil.Prettify(s)
  8248. }
  8249. // GoString returns the string representation
  8250. func (s CreateEndpointInput) GoString() string {
  8251. return s.String()
  8252. }
  8253. // Validate inspects the fields of the type to determine if they are valid.
  8254. func (s *CreateEndpointInput) Validate() error {
  8255. invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"}
  8256. if s.EndpointConfigName == nil {
  8257. invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
  8258. }
  8259. if s.EndpointName == nil {
  8260. invalidParams.Add(request.NewErrParamRequired("EndpointName"))
  8261. }
  8262. if s.Tags != nil {
  8263. for i, v := range s.Tags {
  8264. if v == nil {
  8265. continue
  8266. }
  8267. if err := v.Validate(); err != nil {
  8268. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  8269. }
  8270. }
  8271. }
  8272. if invalidParams.Len() > 0 {
  8273. return invalidParams
  8274. }
  8275. return nil
  8276. }
  8277. // SetEndpointConfigName sets the EndpointConfigName field's value.
  8278. func (s *CreateEndpointInput) SetEndpointConfigName(v string) *CreateEndpointInput {
  8279. s.EndpointConfigName = &v
  8280. return s
  8281. }
  8282. // SetEndpointName sets the EndpointName field's value.
  8283. func (s *CreateEndpointInput) SetEndpointName(v string) *CreateEndpointInput {
  8284. s.EndpointName = &v
  8285. return s
  8286. }
  8287. // SetTags sets the Tags field's value.
  8288. func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput {
  8289. s.Tags = v
  8290. return s
  8291. }
  8292. type CreateEndpointOutput struct {
  8293. _ struct{} `type:"structure"`
  8294. // The Amazon Resource Name (ARN) of the endpoint.
  8295. //
  8296. // EndpointArn is a required field
  8297. EndpointArn *string `min:"20" type:"string" required:"true"`
  8298. }
  8299. // String returns the string representation
  8300. func (s CreateEndpointOutput) String() string {
  8301. return awsutil.Prettify(s)
  8302. }
  8303. // GoString returns the string representation
  8304. func (s CreateEndpointOutput) GoString() string {
  8305. return s.String()
  8306. }
  8307. // SetEndpointArn sets the EndpointArn field's value.
  8308. func (s *CreateEndpointOutput) SetEndpointArn(v string) *CreateEndpointOutput {
  8309. s.EndpointArn = &v
  8310. return s
  8311. }
  8312. type CreateHyperParameterTuningJobInput struct {
  8313. _ struct{} `type:"structure"`
  8314. // The HyperParameterTuningJobConfig object that describes the tuning job, including
  8315. // the search strategy, the objective metric used to evaluate training jobs,
  8316. // ranges of parameters to search, and resource limits for the tuning job. For
  8317. // more information, see automatic-model-tuning
  8318. //
  8319. // HyperParameterTuningJobConfig is a required field
  8320. HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"`
  8321. // The name of the tuning job. This name is the prefix for the names of all
  8322. // training jobs that this tuning job launches. The name must be unique within
  8323. // the same AWS account and AWS Region. The name must have { } to { } characters.
  8324. // Valid characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name
  8325. // is not case sensitive.
  8326. //
  8327. // HyperParameterTuningJobName is a required field
  8328. HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
  8329. // An array of key-value pairs. You can use tags to categorize your AWS resources
  8330. // in different ways, for example, by purpose, owner, or environment. For more
  8331. // information, see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/).
  8332. //
  8333. // Tags that you specify for the tuning job are also added to all training jobs
  8334. // that the tuning job launches.
  8335. Tags []*Tag `type:"list"`
  8336. // The HyperParameterTrainingJobDefinition object that describes the training
  8337. // jobs that this tuning job launches, including static hyperparameters, input
  8338. // data configuration, output data configuration, resource configuration, and
  8339. // stopping condition.
  8340. //
  8341. // TrainingJobDefinition is a required field
  8342. TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"`
  8343. // Specifies the configuration for starting the hyperparameter tuning job using
  8344. // one or more previous tuning jobs as a starting point. The results of previous
  8345. // tuning jobs are used to inform which combinations of hyperparameters to search
  8346. // over in the new tuning job.
  8347. //
  8348. // All training jobs launched by the new hyperparameter tuning job are evaluated
  8349. // by using the objective metric. If you specify IDENTICAL_DATA_AND_ALGORITHM
  8350. // as the WarmStartType value for the warm start configuration, the training
  8351. // job that performs the best in the new tuning job is compared to the best
  8352. // training jobs from the parent tuning jobs. From these, the training job that
  8353. // performs the best as measured by the objective metric is returned as the
  8354. // overall best training job.
  8355. //
  8356. // All training jobs launched by parent hyperparameter tuning jobs and the new
  8357. // hyperparameter tuning jobs count against the limit of training jobs for the
  8358. // tuning job.
  8359. WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"`
  8360. }
  8361. // String returns the string representation
  8362. func (s CreateHyperParameterTuningJobInput) String() string {
  8363. return awsutil.Prettify(s)
  8364. }
  8365. // GoString returns the string representation
  8366. func (s CreateHyperParameterTuningJobInput) GoString() string {
  8367. return s.String()
  8368. }
  8369. // Validate inspects the fields of the type to determine if they are valid.
  8370. func (s *CreateHyperParameterTuningJobInput) Validate() error {
  8371. invalidParams := request.ErrInvalidParams{Context: "CreateHyperParameterTuningJobInput"}
  8372. if s.HyperParameterTuningJobConfig == nil {
  8373. invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobConfig"))
  8374. }
  8375. if s.HyperParameterTuningJobName == nil {
  8376. invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
  8377. }
  8378. if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
  8379. invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
  8380. }
  8381. if s.TrainingJobDefinition == nil {
  8382. invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition"))
  8383. }
  8384. if s.HyperParameterTuningJobConfig != nil {
  8385. if err := s.HyperParameterTuningJobConfig.Validate(); err != nil {
  8386. invalidParams.AddNested("HyperParameterTuningJobConfig", err.(request.ErrInvalidParams))
  8387. }
  8388. }
  8389. if s.Tags != nil {
  8390. for i, v := range s.Tags {
  8391. if v == nil {
  8392. continue
  8393. }
  8394. if err := v.Validate(); err != nil {
  8395. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  8396. }
  8397. }
  8398. }
  8399. if s.TrainingJobDefinition != nil {
  8400. if err := s.TrainingJobDefinition.Validate(); err != nil {
  8401. invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams))
  8402. }
  8403. }
  8404. if s.WarmStartConfig != nil {
  8405. if err := s.WarmStartConfig.Validate(); err != nil {
  8406. invalidParams.AddNested("WarmStartConfig", err.(request.ErrInvalidParams))
  8407. }
  8408. }
  8409. if invalidParams.Len() > 0 {
  8410. return invalidParams
  8411. }
  8412. return nil
  8413. }
  8414. // SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value.
  8415. func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *CreateHyperParameterTuningJobInput {
  8416. s.HyperParameterTuningJobConfig = v
  8417. return s
  8418. }
  8419. // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
  8420. func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *CreateHyperParameterTuningJobInput {
  8421. s.HyperParameterTuningJobName = &v
  8422. return s
  8423. }
  8424. // SetTags sets the Tags field's value.
  8425. func (s *CreateHyperParameterTuningJobInput) SetTags(v []*Tag) *CreateHyperParameterTuningJobInput {
  8426. s.Tags = v
  8427. return s
  8428. }
  8429. // SetTrainingJobDefinition sets the TrainingJobDefinition field's value.
  8430. func (s *CreateHyperParameterTuningJobInput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *CreateHyperParameterTuningJobInput {
  8431. s.TrainingJobDefinition = v
  8432. return s
  8433. }
  8434. // SetWarmStartConfig sets the WarmStartConfig field's value.
  8435. func (s *CreateHyperParameterTuningJobInput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *CreateHyperParameterTuningJobInput {
  8436. s.WarmStartConfig = v
  8437. return s
  8438. }
  8439. type CreateHyperParameterTuningJobOutput struct {
  8440. _ struct{} `type:"structure"`
  8441. // The Amazon Resource Name (ARN) of the tuning job. Amazon SageMaker assigns
  8442. // an ARN to a hyperparameter tuning job when you create it.
  8443. //
  8444. // HyperParameterTuningJobArn is a required field
  8445. HyperParameterTuningJobArn *string `type:"string" required:"true"`
  8446. }
  8447. // String returns the string representation
  8448. func (s CreateHyperParameterTuningJobOutput) String() string {
  8449. return awsutil.Prettify(s)
  8450. }
  8451. // GoString returns the string representation
  8452. func (s CreateHyperParameterTuningJobOutput) GoString() string {
  8453. return s.String()
  8454. }
  8455. // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value.
  8456. func (s *CreateHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *CreateHyperParameterTuningJobOutput {
  8457. s.HyperParameterTuningJobArn = &v
  8458. return s
  8459. }
  8460. type CreateLabelingJobInput struct {
  8461. _ struct{} `type:"structure"`
  8462. // Configures the information required for human workers to complete a labeling
  8463. // task.
  8464. //
  8465. // HumanTaskConfig is a required field
  8466. HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"`
  8467. // Input data for the labeling job, such as the Amazon S3 location of the data
  8468. // objects and the location of the manifest file that describes the data objects.
  8469. //
  8470. // InputConfig is a required field
  8471. InputConfig *LabelingJobInputConfig `type:"structure" required:"true"`
  8472. // The attribute name to use for the label in the output manifest file. This
  8473. // is the key for the key/value pair formed with the label that a worker assigns
  8474. // to the object. The name can't end with "-metadata". If you are running a
  8475. // semantic segmentation labeling job, the attribute name must end with "-ref".
  8476. // If you are running any other kind of labeling job, the attribute name must
  8477. // not end with "-ref".
  8478. //
  8479. // LabelAttributeName is a required field
  8480. LabelAttributeName *string `min:"1" type:"string" required:"true"`
  8481. // The S3 URL of the file that defines the categories used to label the data
  8482. // objects.
  8483. //
  8484. // The file is a JSON structure in the following format:
  8485. //
  8486. // {
  8487. //
  8488. // "document-version": "2018-11-28"
  8489. //
  8490. // "labels": [
  8491. //
  8492. // {
  8493. //
  8494. // "label": "label 1"
  8495. //
  8496. // },
  8497. //
  8498. // {
  8499. //
  8500. // "label": "label 2"
  8501. //
  8502. // },
  8503. //
  8504. // ...
  8505. //
  8506. // {
  8507. //
  8508. // "label": "label n"
  8509. //
  8510. // }
  8511. //
  8512. // ]
  8513. //
  8514. // }
  8515. LabelCategoryConfigS3Uri *string `type:"string"`
  8516. // Configures the information required to perform automated data labeling.
  8517. LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"`
  8518. // The name of the labeling job. This name is used to identify the job in a
  8519. // list of labeling jobs.
  8520. //
  8521. // LabelingJobName is a required field
  8522. LabelingJobName *string `min:"1" type:"string" required:"true"`
  8523. // The location of the output data and the AWS Key Management Service key ID
  8524. // for the key used to encrypt the output data, if any.
  8525. //
  8526. // OutputConfig is a required field
  8527. OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"`
  8528. // The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform
  8529. // tasks on your behalf during data labeling. You must grant this role the necessary
  8530. // permissions so that Amazon SageMaker can successfully complete data labeling.
  8531. //
  8532. // RoleArn is a required field
  8533. RoleArn *string `min:"20" type:"string" required:"true"`
  8534. // A set of conditions for stopping the labeling job. If any of the conditions
  8535. // are met, the job is automatically stopped. You can use these conditions to
  8536. // control the cost of data labeling.
  8537. StoppingConditions *LabelingJobStoppingConditions `type:"structure"`
  8538. // An array of key/value pairs. For more information, see Using Cost Allocation
  8539. // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
  8540. // in the AWS Billing and Cost Management User Guide.
  8541. Tags []*Tag `type:"list"`
  8542. }
  8543. // String returns the string representation
  8544. func (s CreateLabelingJobInput) String() string {
  8545. return awsutil.Prettify(s)
  8546. }
  8547. // GoString returns the string representation
  8548. func (s CreateLabelingJobInput) GoString() string {
  8549. return s.String()
  8550. }
  8551. // Validate inspects the fields of the type to determine if they are valid.
  8552. func (s *CreateLabelingJobInput) Validate() error {
  8553. invalidParams := request.ErrInvalidParams{Context: "CreateLabelingJobInput"}
  8554. if s.HumanTaskConfig == nil {
  8555. invalidParams.Add(request.NewErrParamRequired("HumanTaskConfig"))
  8556. }
  8557. if s.InputConfig == nil {
  8558. invalidParams.Add(request.NewErrParamRequired("InputConfig"))
  8559. }
  8560. if s.LabelAttributeName == nil {
  8561. invalidParams.Add(request.NewErrParamRequired("LabelAttributeName"))
  8562. }
  8563. if s.LabelAttributeName != nil && len(*s.LabelAttributeName) < 1 {
  8564. invalidParams.Add(request.NewErrParamMinLen("LabelAttributeName", 1))
  8565. }
  8566. if s.LabelingJobName == nil {
  8567. invalidParams.Add(request.NewErrParamRequired("LabelingJobName"))
  8568. }
  8569. if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 {
  8570. invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1))
  8571. }
  8572. if s.OutputConfig == nil {
  8573. invalidParams.Add(request.NewErrParamRequired("OutputConfig"))
  8574. }
  8575. if s.RoleArn == nil {
  8576. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  8577. }
  8578. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  8579. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  8580. }
  8581. if s.HumanTaskConfig != nil {
  8582. if err := s.HumanTaskConfig.Validate(); err != nil {
  8583. invalidParams.AddNested("HumanTaskConfig", err.(request.ErrInvalidParams))
  8584. }
  8585. }
  8586. if s.InputConfig != nil {
  8587. if err := s.InputConfig.Validate(); err != nil {
  8588. invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams))
  8589. }
  8590. }
  8591. if s.LabelingJobAlgorithmsConfig != nil {
  8592. if err := s.LabelingJobAlgorithmsConfig.Validate(); err != nil {
  8593. invalidParams.AddNested("LabelingJobAlgorithmsConfig", err.(request.ErrInvalidParams))
  8594. }
  8595. }
  8596. if s.OutputConfig != nil {
  8597. if err := s.OutputConfig.Validate(); err != nil {
  8598. invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams))
  8599. }
  8600. }
  8601. if s.StoppingConditions != nil {
  8602. if err := s.StoppingConditions.Validate(); err != nil {
  8603. invalidParams.AddNested("StoppingConditions", err.(request.ErrInvalidParams))
  8604. }
  8605. }
  8606. if s.Tags != nil {
  8607. for i, v := range s.Tags {
  8608. if v == nil {
  8609. continue
  8610. }
  8611. if err := v.Validate(); err != nil {
  8612. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  8613. }
  8614. }
  8615. }
  8616. if invalidParams.Len() > 0 {
  8617. return invalidParams
  8618. }
  8619. return nil
  8620. }
  8621. // SetHumanTaskConfig sets the HumanTaskConfig field's value.
  8622. func (s *CreateLabelingJobInput) SetHumanTaskConfig(v *HumanTaskConfig) *CreateLabelingJobInput {
  8623. s.HumanTaskConfig = v
  8624. return s
  8625. }
  8626. // SetInputConfig sets the InputConfig field's value.
  8627. func (s *CreateLabelingJobInput) SetInputConfig(v *LabelingJobInputConfig) *CreateLabelingJobInput {
  8628. s.InputConfig = v
  8629. return s
  8630. }
  8631. // SetLabelAttributeName sets the LabelAttributeName field's value.
  8632. func (s *CreateLabelingJobInput) SetLabelAttributeName(v string) *CreateLabelingJobInput {
  8633. s.LabelAttributeName = &v
  8634. return s
  8635. }
  8636. // SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value.
  8637. func (s *CreateLabelingJobInput) SetLabelCategoryConfigS3Uri(v string) *CreateLabelingJobInput {
  8638. s.LabelCategoryConfigS3Uri = &v
  8639. return s
  8640. }
  8641. // SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value.
  8642. func (s *CreateLabelingJobInput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *CreateLabelingJobInput {
  8643. s.LabelingJobAlgorithmsConfig = v
  8644. return s
  8645. }
  8646. // SetLabelingJobName sets the LabelingJobName field's value.
  8647. func (s *CreateLabelingJobInput) SetLabelingJobName(v string) *CreateLabelingJobInput {
  8648. s.LabelingJobName = &v
  8649. return s
  8650. }
  8651. // SetOutputConfig sets the OutputConfig field's value.
  8652. func (s *CreateLabelingJobInput) SetOutputConfig(v *LabelingJobOutputConfig) *CreateLabelingJobInput {
  8653. s.OutputConfig = v
  8654. return s
  8655. }
  8656. // SetRoleArn sets the RoleArn field's value.
  8657. func (s *CreateLabelingJobInput) SetRoleArn(v string) *CreateLabelingJobInput {
  8658. s.RoleArn = &v
  8659. return s
  8660. }
  8661. // SetStoppingConditions sets the StoppingConditions field's value.
  8662. func (s *CreateLabelingJobInput) SetStoppingConditions(v *LabelingJobStoppingConditions) *CreateLabelingJobInput {
  8663. s.StoppingConditions = v
  8664. return s
  8665. }
  8666. // SetTags sets the Tags field's value.
  8667. func (s *CreateLabelingJobInput) SetTags(v []*Tag) *CreateLabelingJobInput {
  8668. s.Tags = v
  8669. return s
  8670. }
  8671. type CreateLabelingJobOutput struct {
  8672. _ struct{} `type:"structure"`
  8673. // The Amazon Resource Name (ARN) of the labeling job. You use this ARN to identify
  8674. // the labeling job.
  8675. //
  8676. // LabelingJobArn is a required field
  8677. LabelingJobArn *string `type:"string" required:"true"`
  8678. }
  8679. // String returns the string representation
  8680. func (s CreateLabelingJobOutput) String() string {
  8681. return awsutil.Prettify(s)
  8682. }
  8683. // GoString returns the string representation
  8684. func (s CreateLabelingJobOutput) GoString() string {
  8685. return s.String()
  8686. }
  8687. // SetLabelingJobArn sets the LabelingJobArn field's value.
  8688. func (s *CreateLabelingJobOutput) SetLabelingJobArn(v string) *CreateLabelingJobOutput {
  8689. s.LabelingJobArn = &v
  8690. return s
  8691. }
  8692. type CreateModelInput struct {
  8693. _ struct{} `type:"structure"`
  8694. // Specifies the containers in the inference pipeline.
  8695. Containers []*ContainerDefinition `type:"list"`
  8696. // Isolates the model container. No inbound or outbound network calls can be
  8697. // made to or from the model container.
  8698. //
  8699. // The Semantic Segmentation built-in algorithm does not support network isolation.
  8700. EnableNetworkIsolation *bool `type:"boolean"`
  8701. // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can
  8702. // assume to access model artifacts and docker image for deployment on ML compute
  8703. // instances or for batch transform jobs. Deploying on ML compute instances
  8704. // is part of model hosting. For more information, see Amazon SageMaker Roles
  8705. // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
  8706. //
  8707. // To be able to pass this role to Amazon SageMaker, the caller of this API
  8708. // must have the iam:PassRole permission.
  8709. //
  8710. // ExecutionRoleArn is a required field
  8711. ExecutionRoleArn *string `min:"20" type:"string" required:"true"`
  8712. // The name of the new model.
  8713. //
  8714. // ModelName is a required field
  8715. ModelName *string `type:"string" required:"true"`
  8716. // The location of the primary docker image containing inference code, associated
  8717. // artifacts, and custom environment map that the inference code uses when the
  8718. // model is deployed for predictions.
  8719. PrimaryContainer *ContainerDefinition `type:"structure"`
  8720. // An array of key-value pairs. For more information, see Using Cost Allocation
  8721. // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
  8722. // in the AWS Billing and Cost Management User Guide.
  8723. Tags []*Tag `type:"list"`
  8724. // A VpcConfig object that specifies the VPC that you want your model to connect
  8725. // to. Control access to and from your model container by configuring the VPC.
  8726. // VpcConfig is used in hosting services and in batch transform. For more information,
  8727. // see Protect Endpoints by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html)
  8728. // and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private
  8729. // Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html).
  8730. VpcConfig *VpcConfig `type:"structure"`
  8731. }
  8732. // String returns the string representation
  8733. func (s CreateModelInput) String() string {
  8734. return awsutil.Prettify(s)
  8735. }
  8736. // GoString returns the string representation
  8737. func (s CreateModelInput) GoString() string {
  8738. return s.String()
  8739. }
  8740. // Validate inspects the fields of the type to determine if they are valid.
  8741. func (s *CreateModelInput) Validate() error {
  8742. invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"}
  8743. if s.ExecutionRoleArn == nil {
  8744. invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn"))
  8745. }
  8746. if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 {
  8747. invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20))
  8748. }
  8749. if s.ModelName == nil {
  8750. invalidParams.Add(request.NewErrParamRequired("ModelName"))
  8751. }
  8752. if s.Containers != nil {
  8753. for i, v := range s.Containers {
  8754. if v == nil {
  8755. continue
  8756. }
  8757. if err := v.Validate(); err != nil {
  8758. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams))
  8759. }
  8760. }
  8761. }
  8762. if s.PrimaryContainer != nil {
  8763. if err := s.PrimaryContainer.Validate(); err != nil {
  8764. invalidParams.AddNested("PrimaryContainer", err.(request.ErrInvalidParams))
  8765. }
  8766. }
  8767. if s.Tags != nil {
  8768. for i, v := range s.Tags {
  8769. if v == nil {
  8770. continue
  8771. }
  8772. if err := v.Validate(); err != nil {
  8773. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  8774. }
  8775. }
  8776. }
  8777. if s.VpcConfig != nil {
  8778. if err := s.VpcConfig.Validate(); err != nil {
  8779. invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams))
  8780. }
  8781. }
  8782. if invalidParams.Len() > 0 {
  8783. return invalidParams
  8784. }
  8785. return nil
  8786. }
  8787. // SetContainers sets the Containers field's value.
  8788. func (s *CreateModelInput) SetContainers(v []*ContainerDefinition) *CreateModelInput {
  8789. s.Containers = v
  8790. return s
  8791. }
  8792. // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
  8793. func (s *CreateModelInput) SetEnableNetworkIsolation(v bool) *CreateModelInput {
  8794. s.EnableNetworkIsolation = &v
  8795. return s
  8796. }
  8797. // SetExecutionRoleArn sets the ExecutionRoleArn field's value.
  8798. func (s *CreateModelInput) SetExecutionRoleArn(v string) *CreateModelInput {
  8799. s.ExecutionRoleArn = &v
  8800. return s
  8801. }
  8802. // SetModelName sets the ModelName field's value.
  8803. func (s *CreateModelInput) SetModelName(v string) *CreateModelInput {
  8804. s.ModelName = &v
  8805. return s
  8806. }
  8807. // SetPrimaryContainer sets the PrimaryContainer field's value.
  8808. func (s *CreateModelInput) SetPrimaryContainer(v *ContainerDefinition) *CreateModelInput {
  8809. s.PrimaryContainer = v
  8810. return s
  8811. }
  8812. // SetTags sets the Tags field's value.
  8813. func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput {
  8814. s.Tags = v
  8815. return s
  8816. }
  8817. // SetVpcConfig sets the VpcConfig field's value.
  8818. func (s *CreateModelInput) SetVpcConfig(v *VpcConfig) *CreateModelInput {
  8819. s.VpcConfig = v
  8820. return s
  8821. }
  8822. type CreateModelOutput struct {
  8823. _ struct{} `type:"structure"`
  8824. // The ARN of the model created in Amazon SageMaker.
  8825. //
  8826. // ModelArn is a required field
  8827. ModelArn *string `min:"20" type:"string" required:"true"`
  8828. }
  8829. // String returns the string representation
  8830. func (s CreateModelOutput) String() string {
  8831. return awsutil.Prettify(s)
  8832. }
  8833. // GoString returns the string representation
  8834. func (s CreateModelOutput) GoString() string {
  8835. return s.String()
  8836. }
  8837. // SetModelArn sets the ModelArn field's value.
  8838. func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput {
  8839. s.ModelArn = &v
  8840. return s
  8841. }
  8842. type CreateModelPackageInput struct {
  8843. _ struct{} `type:"structure"`
  8844. // Whether to certify the model package for listing on AWS Marketplace.
  8845. CertifyForMarketplace *bool `type:"boolean"`
  8846. // Specifies details about inference jobs that can be run with models based
  8847. // on this model package, including the following:
  8848. //
  8849. // * The Amazon ECR paths of containers that contain the inference code and
  8850. // model artifacts.
  8851. //
  8852. // * The instance types that the model package supports for transform jobs
  8853. // and real-time endpoints used for inference.
  8854. //
  8855. // * The input and output content formats that the model package supports
  8856. // for inference.
  8857. InferenceSpecification *InferenceSpecification `type:"structure"`
  8858. // A description of the model package.
  8859. ModelPackageDescription *string `type:"string"`
  8860. // The name of the model package. The name must have 1 to 63 characters. Valid
  8861. // characters are a-z, A-Z, 0-9, and - (hyphen).
  8862. //
  8863. // ModelPackageName is a required field
  8864. ModelPackageName *string `min:"1" type:"string" required:"true"`
  8865. // Details about the algorithm that was used to create the model package.
  8866. SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"`
  8867. // Specifies configurations for one or more transform jobs that Amazon SageMaker
  8868. // runs to test the model package.
  8869. ValidationSpecification *ModelPackageValidationSpecification `type:"structure"`
  8870. }
  8871. // String returns the string representation
  8872. func (s CreateModelPackageInput) String() string {
  8873. return awsutil.Prettify(s)
  8874. }
  8875. // GoString returns the string representation
  8876. func (s CreateModelPackageInput) GoString() string {
  8877. return s.String()
  8878. }
  8879. // Validate inspects the fields of the type to determine if they are valid.
  8880. func (s *CreateModelPackageInput) Validate() error {
  8881. invalidParams := request.ErrInvalidParams{Context: "CreateModelPackageInput"}
  8882. if s.ModelPackageName == nil {
  8883. invalidParams.Add(request.NewErrParamRequired("ModelPackageName"))
  8884. }
  8885. if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
  8886. invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
  8887. }
  8888. if s.InferenceSpecification != nil {
  8889. if err := s.InferenceSpecification.Validate(); err != nil {
  8890. invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams))
  8891. }
  8892. }
  8893. if s.SourceAlgorithmSpecification != nil {
  8894. if err := s.SourceAlgorithmSpecification.Validate(); err != nil {
  8895. invalidParams.AddNested("SourceAlgorithmSpecification", err.(request.ErrInvalidParams))
  8896. }
  8897. }
  8898. if s.ValidationSpecification != nil {
  8899. if err := s.ValidationSpecification.Validate(); err != nil {
  8900. invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams))
  8901. }
  8902. }
  8903. if invalidParams.Len() > 0 {
  8904. return invalidParams
  8905. }
  8906. return nil
  8907. }
  8908. // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
  8909. func (s *CreateModelPackageInput) SetCertifyForMarketplace(v bool) *CreateModelPackageInput {
  8910. s.CertifyForMarketplace = &v
  8911. return s
  8912. }
  8913. // SetInferenceSpecification sets the InferenceSpecification field's value.
  8914. func (s *CreateModelPackageInput) SetInferenceSpecification(v *InferenceSpecification) *CreateModelPackageInput {
  8915. s.InferenceSpecification = v
  8916. return s
  8917. }
  8918. // SetModelPackageDescription sets the ModelPackageDescription field's value.
  8919. func (s *CreateModelPackageInput) SetModelPackageDescription(v string) *CreateModelPackageInput {
  8920. s.ModelPackageDescription = &v
  8921. return s
  8922. }
  8923. // SetModelPackageName sets the ModelPackageName field's value.
  8924. func (s *CreateModelPackageInput) SetModelPackageName(v string) *CreateModelPackageInput {
  8925. s.ModelPackageName = &v
  8926. return s
  8927. }
  8928. // SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value.
  8929. func (s *CreateModelPackageInput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *CreateModelPackageInput {
  8930. s.SourceAlgorithmSpecification = v
  8931. return s
  8932. }
  8933. // SetValidationSpecification sets the ValidationSpecification field's value.
  8934. func (s *CreateModelPackageInput) SetValidationSpecification(v *ModelPackageValidationSpecification) *CreateModelPackageInput {
  8935. s.ValidationSpecification = v
  8936. return s
  8937. }
  8938. type CreateModelPackageOutput struct {
  8939. _ struct{} `type:"structure"`
  8940. // The Amazon Resource Name (ARN) of the new model package.
  8941. //
  8942. // ModelPackageArn is a required field
  8943. ModelPackageArn *string `min:"1" type:"string" required:"true"`
  8944. }
  8945. // String returns the string representation
  8946. func (s CreateModelPackageOutput) String() string {
  8947. return awsutil.Prettify(s)
  8948. }
  8949. // GoString returns the string representation
  8950. func (s CreateModelPackageOutput) GoString() string {
  8951. return s.String()
  8952. }
  8953. // SetModelPackageArn sets the ModelPackageArn field's value.
  8954. func (s *CreateModelPackageOutput) SetModelPackageArn(v string) *CreateModelPackageOutput {
  8955. s.ModelPackageArn = &v
  8956. return s
  8957. }
  8958. type CreateNotebookInstanceInput struct {
  8959. _ struct{} `type:"structure"`
  8960. // A list of Elastic Inference (EI) instance types to associate with this notebook
  8961. // instance. Currently, only one instance type can be associated with a notebook
  8962. // instance. For more information, see Using Elastic Inference in Amazon SageMaker
  8963. // (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
  8964. AcceleratorTypes []*string `type:"list"`
  8965. // An array of up to three Git repositories to associate with the notebook instance.
  8966. // These can be either the names of Git repositories stored as resources in
  8967. // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  8968. // or in any other Git repository. These repositories are cloned at the same
  8969. // level as the default repository of your notebook instance. For more information,
  8970. // see Associating Git Repositories with Amazon SageMaker Notebook Instances
  8971. // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  8972. AdditionalCodeRepositories []*string `type:"list"`
  8973. // A Git repository to associate with the notebook instance as its default code
  8974. // repository. This can be either the name of a Git repository stored as a resource
  8975. // in your account, or the URL of a Git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  8976. // or in any other Git repository. When you open a notebook instance, it opens
  8977. // in the directory that contains this repository. For more information, see
  8978. // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  8979. DefaultCodeRepository *string `min:"1" type:"string"`
  8980. // Sets whether Amazon SageMaker provides internet access to the notebook instance.
  8981. // If you set this to Disabled this notebook instance will be able to access
  8982. // resources only in your VPC, and will not be able to connect to Amazon SageMaker
  8983. // training and endpoint services unless your configure a NAT Gateway in your
  8984. // VPC.
  8985. //
  8986. // For more information, see Notebook Instances Are Internet-Enabled by Default
  8987. // (http://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access).
  8988. // You can set the value of this parameter to Disabled only if you set a value
  8989. // for the SubnetId parameter.
  8990. DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"`
  8991. // The type of ML compute instance to launch for the notebook instance.
  8992. //
  8993. // InstanceType is a required field
  8994. InstanceType *string `type:"string" required:"true" enum:"InstanceType"`
  8995. // If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data
  8996. // at rest on the ML storage volume that is attached to your notebook instance.
  8997. // The KMS key you provide must be enabled. For information, see Enabling and
  8998. // Disabling Keys (http://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html)
  8999. // in the AWS Key Management Service Developer Guide.
  9000. KmsKeyId *string `type:"string"`
  9001. // The name of a lifecycle configuration to associate with the notebook instance.
  9002. // For information about lifestyle configurations, see Step 2.1: (Optional)
  9003. // Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
  9004. LifecycleConfigName *string `type:"string"`
  9005. // The name of the new notebook instance.
  9006. //
  9007. // NotebookInstanceName is a required field
  9008. NotebookInstanceName *string `type:"string" required:"true"`
  9009. // When you send any requests to AWS resources from the notebook instance, Amazon
  9010. // SageMaker assumes this role to perform tasks on your behalf. You must grant
  9011. // this role necessary permissions so Amazon SageMaker can perform these tasks.
  9012. // The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com)
  9013. // permissions to assume this role. For more information, see Amazon SageMaker
  9014. // Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
  9015. //
  9016. // To be able to pass this role to Amazon SageMaker, the caller of this API
  9017. // must have the iam:PassRole permission.
  9018. //
  9019. // RoleArn is a required field
  9020. RoleArn *string `min:"20" type:"string" required:"true"`
  9021. // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups
  9022. // must be for the same VPC as specified in the subnet.
  9023. SecurityGroupIds []*string `type:"list"`
  9024. // The ID of the subnet in a VPC to which you would like to have a connectivity
  9025. // from your ML compute instance.
  9026. SubnetId *string `type:"string"`
  9027. // A list of tags to associate with the notebook instance. You can add tags
  9028. // later by using the CreateTags API.
  9029. Tags []*Tag `type:"list"`
  9030. // The size, in GB, of the ML storage volume to attach to the notebook instance.
  9031. // The default value is 5 GB.
  9032. VolumeSizeInGB *int64 `min:"5" type:"integer"`
  9033. }
  9034. // String returns the string representation
  9035. func (s CreateNotebookInstanceInput) String() string {
  9036. return awsutil.Prettify(s)
  9037. }
  9038. // GoString returns the string representation
  9039. func (s CreateNotebookInstanceInput) GoString() string {
  9040. return s.String()
  9041. }
  9042. // Validate inspects the fields of the type to determine if they are valid.
  9043. func (s *CreateNotebookInstanceInput) Validate() error {
  9044. invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceInput"}
  9045. if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 {
  9046. invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1))
  9047. }
  9048. if s.InstanceType == nil {
  9049. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  9050. }
  9051. if s.NotebookInstanceName == nil {
  9052. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
  9053. }
  9054. if s.RoleArn == nil {
  9055. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  9056. }
  9057. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  9058. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  9059. }
  9060. if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 {
  9061. invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5))
  9062. }
  9063. if s.Tags != nil {
  9064. for i, v := range s.Tags {
  9065. if v == nil {
  9066. continue
  9067. }
  9068. if err := v.Validate(); err != nil {
  9069. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  9070. }
  9071. }
  9072. }
  9073. if invalidParams.Len() > 0 {
  9074. return invalidParams
  9075. }
  9076. return nil
  9077. }
  9078. // SetAcceleratorTypes sets the AcceleratorTypes field's value.
  9079. func (s *CreateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *CreateNotebookInstanceInput {
  9080. s.AcceleratorTypes = v
  9081. return s
  9082. }
  9083. // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
  9084. func (s *CreateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *CreateNotebookInstanceInput {
  9085. s.AdditionalCodeRepositories = v
  9086. return s
  9087. }
  9088. // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
  9089. func (s *CreateNotebookInstanceInput) SetDefaultCodeRepository(v string) *CreateNotebookInstanceInput {
  9090. s.DefaultCodeRepository = &v
  9091. return s
  9092. }
  9093. // SetDirectInternetAccess sets the DirectInternetAccess field's value.
  9094. func (s *CreateNotebookInstanceInput) SetDirectInternetAccess(v string) *CreateNotebookInstanceInput {
  9095. s.DirectInternetAccess = &v
  9096. return s
  9097. }
  9098. // SetInstanceType sets the InstanceType field's value.
  9099. func (s *CreateNotebookInstanceInput) SetInstanceType(v string) *CreateNotebookInstanceInput {
  9100. s.InstanceType = &v
  9101. return s
  9102. }
  9103. // SetKmsKeyId sets the KmsKeyId field's value.
  9104. func (s *CreateNotebookInstanceInput) SetKmsKeyId(v string) *CreateNotebookInstanceInput {
  9105. s.KmsKeyId = &v
  9106. return s
  9107. }
  9108. // SetLifecycleConfigName sets the LifecycleConfigName field's value.
  9109. func (s *CreateNotebookInstanceInput) SetLifecycleConfigName(v string) *CreateNotebookInstanceInput {
  9110. s.LifecycleConfigName = &v
  9111. return s
  9112. }
  9113. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  9114. func (s *CreateNotebookInstanceInput) SetNotebookInstanceName(v string) *CreateNotebookInstanceInput {
  9115. s.NotebookInstanceName = &v
  9116. return s
  9117. }
  9118. // SetRoleArn sets the RoleArn field's value.
  9119. func (s *CreateNotebookInstanceInput) SetRoleArn(v string) *CreateNotebookInstanceInput {
  9120. s.RoleArn = &v
  9121. return s
  9122. }
  9123. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  9124. func (s *CreateNotebookInstanceInput) SetSecurityGroupIds(v []*string) *CreateNotebookInstanceInput {
  9125. s.SecurityGroupIds = v
  9126. return s
  9127. }
  9128. // SetSubnetId sets the SubnetId field's value.
  9129. func (s *CreateNotebookInstanceInput) SetSubnetId(v string) *CreateNotebookInstanceInput {
  9130. s.SubnetId = &v
  9131. return s
  9132. }
  9133. // SetTags sets the Tags field's value.
  9134. func (s *CreateNotebookInstanceInput) SetTags(v []*Tag) *CreateNotebookInstanceInput {
  9135. s.Tags = v
  9136. return s
  9137. }
  9138. // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
  9139. func (s *CreateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *CreateNotebookInstanceInput {
  9140. s.VolumeSizeInGB = &v
  9141. return s
  9142. }
  9143. type CreateNotebookInstanceLifecycleConfigInput struct {
  9144. _ struct{} `type:"structure"`
  9145. // The name of the lifecycle configuration.
  9146. //
  9147. // NotebookInstanceLifecycleConfigName is a required field
  9148. NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
  9149. // A shell script that runs only once, when you create a notebook instance.
  9150. // The shell script must be a base64-encoded string.
  9151. OnCreate []*NotebookInstanceLifecycleHook `type:"list"`
  9152. // A shell script that runs every time you start a notebook instance, including
  9153. // when you create the notebook instance. The shell script must be a base64-encoded
  9154. // string.
  9155. OnStart []*NotebookInstanceLifecycleHook `type:"list"`
  9156. }
  9157. // String returns the string representation
  9158. func (s CreateNotebookInstanceLifecycleConfigInput) String() string {
  9159. return awsutil.Prettify(s)
  9160. }
  9161. // GoString returns the string representation
  9162. func (s CreateNotebookInstanceLifecycleConfigInput) GoString() string {
  9163. return s.String()
  9164. }
  9165. // Validate inspects the fields of the type to determine if they are valid.
  9166. func (s *CreateNotebookInstanceLifecycleConfigInput) Validate() error {
  9167. invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceLifecycleConfigInput"}
  9168. if s.NotebookInstanceLifecycleConfigName == nil {
  9169. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
  9170. }
  9171. if s.OnCreate != nil {
  9172. for i, v := range s.OnCreate {
  9173. if v == nil {
  9174. continue
  9175. }
  9176. if err := v.Validate(); err != nil {
  9177. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams))
  9178. }
  9179. }
  9180. }
  9181. if s.OnStart != nil {
  9182. for i, v := range s.OnStart {
  9183. if v == nil {
  9184. continue
  9185. }
  9186. if err := v.Validate(); err != nil {
  9187. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams))
  9188. }
  9189. }
  9190. }
  9191. if invalidParams.Len() > 0 {
  9192. return invalidParams
  9193. }
  9194. return nil
  9195. }
  9196. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  9197. func (s *CreateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *CreateNotebookInstanceLifecycleConfigInput {
  9198. s.NotebookInstanceLifecycleConfigName = &v
  9199. return s
  9200. }
  9201. // SetOnCreate sets the OnCreate field's value.
  9202. func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput {
  9203. s.OnCreate = v
  9204. return s
  9205. }
  9206. // SetOnStart sets the OnStart field's value.
  9207. func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput {
  9208. s.OnStart = v
  9209. return s
  9210. }
  9211. type CreateNotebookInstanceLifecycleConfigOutput struct {
  9212. _ struct{} `type:"structure"`
  9213. // The Amazon Resource Name (ARN) of the lifecycle configuration.
  9214. NotebookInstanceLifecycleConfigArn *string `type:"string"`
  9215. }
  9216. // String returns the string representation
  9217. func (s CreateNotebookInstanceLifecycleConfigOutput) String() string {
  9218. return awsutil.Prettify(s)
  9219. }
  9220. // GoString returns the string representation
  9221. func (s CreateNotebookInstanceLifecycleConfigOutput) GoString() string {
  9222. return s.String()
  9223. }
  9224. // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value.
  9225. func (s *CreateNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *CreateNotebookInstanceLifecycleConfigOutput {
  9226. s.NotebookInstanceLifecycleConfigArn = &v
  9227. return s
  9228. }
  9229. type CreateNotebookInstanceOutput struct {
  9230. _ struct{} `type:"structure"`
  9231. // The Amazon Resource Name (ARN) of the notebook instance.
  9232. NotebookInstanceArn *string `type:"string"`
  9233. }
  9234. // String returns the string representation
  9235. func (s CreateNotebookInstanceOutput) String() string {
  9236. return awsutil.Prettify(s)
  9237. }
  9238. // GoString returns the string representation
  9239. func (s CreateNotebookInstanceOutput) GoString() string {
  9240. return s.String()
  9241. }
  9242. // SetNotebookInstanceArn sets the NotebookInstanceArn field's value.
  9243. func (s *CreateNotebookInstanceOutput) SetNotebookInstanceArn(v string) *CreateNotebookInstanceOutput {
  9244. s.NotebookInstanceArn = &v
  9245. return s
  9246. }
  9247. type CreatePresignedNotebookInstanceUrlInput struct {
  9248. _ struct{} `type:"structure"`
  9249. // The name of the notebook instance.
  9250. //
  9251. // NotebookInstanceName is a required field
  9252. NotebookInstanceName *string `type:"string" required:"true"`
  9253. // The duration of the session, in seconds. The default is 12 hours.
  9254. SessionExpirationDurationInSeconds *int64 `min:"1800" type:"integer"`
  9255. }
  9256. // String returns the string representation
  9257. func (s CreatePresignedNotebookInstanceUrlInput) String() string {
  9258. return awsutil.Prettify(s)
  9259. }
  9260. // GoString returns the string representation
  9261. func (s CreatePresignedNotebookInstanceUrlInput) GoString() string {
  9262. return s.String()
  9263. }
  9264. // Validate inspects the fields of the type to determine if they are valid.
  9265. func (s *CreatePresignedNotebookInstanceUrlInput) Validate() error {
  9266. invalidParams := request.ErrInvalidParams{Context: "CreatePresignedNotebookInstanceUrlInput"}
  9267. if s.NotebookInstanceName == nil {
  9268. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
  9269. }
  9270. if s.SessionExpirationDurationInSeconds != nil && *s.SessionExpirationDurationInSeconds < 1800 {
  9271. invalidParams.Add(request.NewErrParamMinValue("SessionExpirationDurationInSeconds", 1800))
  9272. }
  9273. if invalidParams.Len() > 0 {
  9274. return invalidParams
  9275. }
  9276. return nil
  9277. }
  9278. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  9279. func (s *CreatePresignedNotebookInstanceUrlInput) SetNotebookInstanceName(v string) *CreatePresignedNotebookInstanceUrlInput {
  9280. s.NotebookInstanceName = &v
  9281. return s
  9282. }
  9283. // SetSessionExpirationDurationInSeconds sets the SessionExpirationDurationInSeconds field's value.
  9284. func (s *CreatePresignedNotebookInstanceUrlInput) SetSessionExpirationDurationInSeconds(v int64) *CreatePresignedNotebookInstanceUrlInput {
  9285. s.SessionExpirationDurationInSeconds = &v
  9286. return s
  9287. }
  9288. type CreatePresignedNotebookInstanceUrlOutput struct {
  9289. _ struct{} `type:"structure"`
  9290. // A JSON object that contains the URL string.
  9291. AuthorizedUrl *string `type:"string"`
  9292. }
  9293. // String returns the string representation
  9294. func (s CreatePresignedNotebookInstanceUrlOutput) String() string {
  9295. return awsutil.Prettify(s)
  9296. }
  9297. // GoString returns the string representation
  9298. func (s CreatePresignedNotebookInstanceUrlOutput) GoString() string {
  9299. return s.String()
  9300. }
  9301. // SetAuthorizedUrl sets the AuthorizedUrl field's value.
  9302. func (s *CreatePresignedNotebookInstanceUrlOutput) SetAuthorizedUrl(v string) *CreatePresignedNotebookInstanceUrlOutput {
  9303. s.AuthorizedUrl = &v
  9304. return s
  9305. }
  9306. type CreateTrainingJobInput struct {
  9307. _ struct{} `type:"structure"`
  9308. // The registry path of the Docker image that contains the training algorithm
  9309. // and algorithm-specific metadata, including the input mode. For more information
  9310. // about algorithms provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
  9311. // For information about providing your own algorithms, see Using Your Own Algorithms
  9312. // with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html).
  9313. //
  9314. // AlgorithmSpecification is a required field
  9315. AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"`
  9316. // To encrypt all communications between ML compute instances in distributed
  9317. // training, choose True,. Encryption provides greater security for distributed
  9318. // training, but training can take longer because of additional communications
  9319. // between ML compute instances.
  9320. EnableInterContainerTrafficEncryption *bool `type:"boolean"`
  9321. // Isolates the training container. No inbound or outbound network calls can
  9322. // be made, except for calls between peers within a training cluster for distributed
  9323. // training. If you enable network isolation for training jobs that are configured
  9324. // to use a VPC, Amazon SageMaker downloads and uploads customer data and model
  9325. // artifacts through the specified VPC, but the training container does not
  9326. // have network access.
  9327. //
  9328. // The Semantic Segmentation built-in algorithm does not support network isolation.
  9329. EnableNetworkIsolation *bool `type:"boolean"`
  9330. // Algorithm-specific parameters that influence the quality of the model. You
  9331. // set hyperparameters before you start the learning process. For a list of
  9332. // hyperparameters for each training algorithm provided by Amazon SageMaker,
  9333. // see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
  9334. //
  9335. // You can specify a maximum of 100 hyperparameters. Each hyperparameter is
  9336. // a key-value pair. Each key and value is limited to 256 characters, as specified
  9337. // by the Length Constraint.
  9338. HyperParameters map[string]*string `type:"map"`
  9339. // An array of Channel objects. Each channel is a named input source. InputDataConfig
  9340. // describes the input data and its location.
  9341. //
  9342. // Algorithms can accept input data from one or more channels. For example,
  9343. // an algorithm might have two channels of input data, training_data and validation_data.
  9344. // The configuration for each channel provides the S3 location where the input
  9345. // data is stored. It also provides information about the stored data: the MIME
  9346. // type, compression method, and whether the data is wrapped in RecordIO format.
  9347. //
  9348. // Depending on the input mode that the algorithm supports, Amazon SageMaker
  9349. // either copies input data files from an S3 bucket to a local directory in
  9350. // the Docker container, or makes it available as input streams.
  9351. InputDataConfig []*Channel `min:"1" type:"list"`
  9352. // Specifies the path to the S3 bucket where you want to store model artifacts.
  9353. // Amazon SageMaker creates subfolders for the artifacts.
  9354. //
  9355. // OutputDataConfig is a required field
  9356. OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
  9357. // The resources, including the ML compute instances and ML storage volumes,
  9358. // to use for model training.
  9359. //
  9360. // ML storage volumes store model artifacts and incremental states. Training
  9361. // algorithms might also use ML storage volumes for scratch space. If you want
  9362. // Amazon SageMaker to use the ML storage volume to store the training data,
  9363. // choose File as the TrainingInputMode in the algorithm specification. For
  9364. // distributed training algorithms, specify an instance count greater than 1.
  9365. //
  9366. // ResourceConfig is a required field
  9367. ResourceConfig *ResourceConfig `type:"structure" required:"true"`
  9368. // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume
  9369. // to perform tasks on your behalf.
  9370. //
  9371. // During model training, Amazon SageMaker needs your permission to read input
  9372. // data from an S3 bucket, download a Docker image that contains training code,
  9373. // write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs,
  9374. // and publish metrics to Amazon CloudWatch. You grant permissions for all of
  9375. // these tasks to an IAM role. For more information, see Amazon SageMaker Roles
  9376. // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
  9377. //
  9378. // To be able to pass this role to Amazon SageMaker, the caller of this API
  9379. // must have the iam:PassRole permission.
  9380. //
  9381. // RoleArn is a required field
  9382. RoleArn *string `min:"20" type:"string" required:"true"`
  9383. // Sets a duration for training. Use this parameter to cap model training costs.
  9384. // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which
  9385. // delays job termination for 120 seconds. Algorithms might use this 120-second
  9386. // window to save the model artifacts.
  9387. //
  9388. // When Amazon SageMaker terminates a job because the stopping condition has
  9389. // been met, training algorithms provided by Amazon SageMaker save the intermediate
  9390. // results of the job. This intermediate data is a valid model artifact. You
  9391. // can use it to create a model using the CreateModel API.
  9392. //
  9393. // StoppingCondition is a required field
  9394. StoppingCondition *StoppingCondition `type:"structure" required:"true"`
  9395. // An array of key-value pairs. For more information, see Using Cost Allocation
  9396. // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
  9397. // in the AWS Billing and Cost Management User Guide.
  9398. Tags []*Tag `type:"list"`
  9399. // The name of the training job. The name must be unique within an AWS Region
  9400. // in an AWS account.
  9401. //
  9402. // TrainingJobName is a required field
  9403. TrainingJobName *string `min:"1" type:"string" required:"true"`
  9404. // A VpcConfig object that specifies the VPC that you want your training job
  9405. // to connect to. Control access to and from your training container by configuring
  9406. // the VPC. For more information, see Protect Training Jobs by Using an Amazon
  9407. // Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
  9408. VpcConfig *VpcConfig `type:"structure"`
  9409. }
  9410. // String returns the string representation
  9411. func (s CreateTrainingJobInput) String() string {
  9412. return awsutil.Prettify(s)
  9413. }
  9414. // GoString returns the string representation
  9415. func (s CreateTrainingJobInput) GoString() string {
  9416. return s.String()
  9417. }
  9418. // Validate inspects the fields of the type to determine if they are valid.
  9419. func (s *CreateTrainingJobInput) Validate() error {
  9420. invalidParams := request.ErrInvalidParams{Context: "CreateTrainingJobInput"}
  9421. if s.AlgorithmSpecification == nil {
  9422. invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification"))
  9423. }
  9424. if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 {
  9425. invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1))
  9426. }
  9427. if s.OutputDataConfig == nil {
  9428. invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
  9429. }
  9430. if s.ResourceConfig == nil {
  9431. invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
  9432. }
  9433. if s.RoleArn == nil {
  9434. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  9435. }
  9436. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  9437. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  9438. }
  9439. if s.StoppingCondition == nil {
  9440. invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
  9441. }
  9442. if s.TrainingJobName == nil {
  9443. invalidParams.Add(request.NewErrParamRequired("TrainingJobName"))
  9444. }
  9445. if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 {
  9446. invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1))
  9447. }
  9448. if s.AlgorithmSpecification != nil {
  9449. if err := s.AlgorithmSpecification.Validate(); err != nil {
  9450. invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams))
  9451. }
  9452. }
  9453. if s.InputDataConfig != nil {
  9454. for i, v := range s.InputDataConfig {
  9455. if v == nil {
  9456. continue
  9457. }
  9458. if err := v.Validate(); err != nil {
  9459. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams))
  9460. }
  9461. }
  9462. }
  9463. if s.OutputDataConfig != nil {
  9464. if err := s.OutputDataConfig.Validate(); err != nil {
  9465. invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
  9466. }
  9467. }
  9468. if s.ResourceConfig != nil {
  9469. if err := s.ResourceConfig.Validate(); err != nil {
  9470. invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
  9471. }
  9472. }
  9473. if s.StoppingCondition != nil {
  9474. if err := s.StoppingCondition.Validate(); err != nil {
  9475. invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
  9476. }
  9477. }
  9478. if s.Tags != nil {
  9479. for i, v := range s.Tags {
  9480. if v == nil {
  9481. continue
  9482. }
  9483. if err := v.Validate(); err != nil {
  9484. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  9485. }
  9486. }
  9487. }
  9488. if s.VpcConfig != nil {
  9489. if err := s.VpcConfig.Validate(); err != nil {
  9490. invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams))
  9491. }
  9492. }
  9493. if invalidParams.Len() > 0 {
  9494. return invalidParams
  9495. }
  9496. return nil
  9497. }
  9498. // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
  9499. func (s *CreateTrainingJobInput) SetAlgorithmSpecification(v *AlgorithmSpecification) *CreateTrainingJobInput {
  9500. s.AlgorithmSpecification = v
  9501. return s
  9502. }
  9503. // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value.
  9504. func (s *CreateTrainingJobInput) SetEnableInterContainerTrafficEncryption(v bool) *CreateTrainingJobInput {
  9505. s.EnableInterContainerTrafficEncryption = &v
  9506. return s
  9507. }
  9508. // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
  9509. func (s *CreateTrainingJobInput) SetEnableNetworkIsolation(v bool) *CreateTrainingJobInput {
  9510. s.EnableNetworkIsolation = &v
  9511. return s
  9512. }
  9513. // SetHyperParameters sets the HyperParameters field's value.
  9514. func (s *CreateTrainingJobInput) SetHyperParameters(v map[string]*string) *CreateTrainingJobInput {
  9515. s.HyperParameters = v
  9516. return s
  9517. }
  9518. // SetInputDataConfig sets the InputDataConfig field's value.
  9519. func (s *CreateTrainingJobInput) SetInputDataConfig(v []*Channel) *CreateTrainingJobInput {
  9520. s.InputDataConfig = v
  9521. return s
  9522. }
  9523. // SetOutputDataConfig sets the OutputDataConfig field's value.
  9524. func (s *CreateTrainingJobInput) SetOutputDataConfig(v *OutputDataConfig) *CreateTrainingJobInput {
  9525. s.OutputDataConfig = v
  9526. return s
  9527. }
  9528. // SetResourceConfig sets the ResourceConfig field's value.
  9529. func (s *CreateTrainingJobInput) SetResourceConfig(v *ResourceConfig) *CreateTrainingJobInput {
  9530. s.ResourceConfig = v
  9531. return s
  9532. }
  9533. // SetRoleArn sets the RoleArn field's value.
  9534. func (s *CreateTrainingJobInput) SetRoleArn(v string) *CreateTrainingJobInput {
  9535. s.RoleArn = &v
  9536. return s
  9537. }
  9538. // SetStoppingCondition sets the StoppingCondition field's value.
  9539. func (s *CreateTrainingJobInput) SetStoppingCondition(v *StoppingCondition) *CreateTrainingJobInput {
  9540. s.StoppingCondition = v
  9541. return s
  9542. }
  9543. // SetTags sets the Tags field's value.
  9544. func (s *CreateTrainingJobInput) SetTags(v []*Tag) *CreateTrainingJobInput {
  9545. s.Tags = v
  9546. return s
  9547. }
  9548. // SetTrainingJobName sets the TrainingJobName field's value.
  9549. func (s *CreateTrainingJobInput) SetTrainingJobName(v string) *CreateTrainingJobInput {
  9550. s.TrainingJobName = &v
  9551. return s
  9552. }
  9553. // SetVpcConfig sets the VpcConfig field's value.
  9554. func (s *CreateTrainingJobInput) SetVpcConfig(v *VpcConfig) *CreateTrainingJobInput {
  9555. s.VpcConfig = v
  9556. return s
  9557. }
  9558. type CreateTrainingJobOutput struct {
  9559. _ struct{} `type:"structure"`
  9560. // The Amazon Resource Name (ARN) of the training job.
  9561. //
  9562. // TrainingJobArn is a required field
  9563. TrainingJobArn *string `type:"string" required:"true"`
  9564. }
  9565. // String returns the string representation
  9566. func (s CreateTrainingJobOutput) String() string {
  9567. return awsutil.Prettify(s)
  9568. }
  9569. // GoString returns the string representation
  9570. func (s CreateTrainingJobOutput) GoString() string {
  9571. return s.String()
  9572. }
  9573. // SetTrainingJobArn sets the TrainingJobArn field's value.
  9574. func (s *CreateTrainingJobOutput) SetTrainingJobArn(v string) *CreateTrainingJobOutput {
  9575. s.TrainingJobArn = &v
  9576. return s
  9577. }
  9578. type CreateTransformJobInput struct {
  9579. _ struct{} `type:"structure"`
  9580. // Determines the number of records to include in a mini-batch. If you want
  9581. // to include only one record in a mini-batch, specify SingleRecord.. If you
  9582. // want mini-batches to contain a maximum of the number of records specified
  9583. // in the MaxPayloadInMB parameter, specify MultiRecord.
  9584. //
  9585. // If you set SplitType to Line and BatchStrategy to MultiRecord, a batch transform
  9586. // automatically splits your input data into the specified payload size. There's
  9587. // no need to split the dataset into smaller files or to use larger payload
  9588. // sizes unless the records in your dataset are very large.
  9589. BatchStrategy *string `type:"string" enum:"BatchStrategy"`
  9590. // The environment variables to set in the Docker container. We support up to
  9591. // 16 key and values entries in the map.
  9592. Environment map[string]*string `type:"map"`
  9593. // The maximum number of parallel requests that can be sent to an algorithm
  9594. // container on an instance. This is good for algorithms that implement multiple
  9595. // workers on larger instances . The default value is 1. To allow Amazon SageMaker
  9596. // to determine the appropriate number for MaxConcurrentTransforms, do not set
  9597. // the value in the API.
  9598. MaxConcurrentTransforms *int64 `type:"integer"`
  9599. // The maximum payload size allowed, in MB. A payload is the data portion of
  9600. // a record (without metadata). The value in MaxPayloadInMB must be greater
  9601. // or equal to the size of a single record. You can approximate the size of
  9602. // a record by dividing the size of your dataset by the number of records. Then
  9603. // multiply this value by the number of records you want in a mini-batch. We
  9604. // recommend to enter a slightly larger value than this to ensure the records
  9605. // fit within the maximum payload size. The default value is 6 MB.
  9606. //
  9607. // For cases where the payload might be arbitrarily large and is transmitted
  9608. // using HTTP chunked encoding, set the value to 0. This feature only works
  9609. // in supported algorithms. Currently, Amazon SageMaker built-in algorithms
  9610. // do not support this feature.
  9611. MaxPayloadInMB *int64 `type:"integer"`
  9612. // The name of the model that you want to use for the transform job. ModelName
  9613. // must be the name of an existing Amazon SageMaker model within an AWS Region
  9614. // in an AWS account.
  9615. //
  9616. // ModelName is a required field
  9617. ModelName *string `type:"string" required:"true"`
  9618. // (Optional) An array of key-value pairs. For more information, see Using Cost
  9619. // Allocation Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
  9620. // in the AWS Billing and Cost Management User Guide.
  9621. Tags []*Tag `type:"list"`
  9622. // Describes the input source and the way the transform job consumes it.
  9623. //
  9624. // TransformInput is a required field
  9625. TransformInput *TransformInput `type:"structure" required:"true"`
  9626. // The name of the transform job. The name must be unique within an AWS Region
  9627. // in an AWS account.
  9628. //
  9629. // TransformJobName is a required field
  9630. TransformJobName *string `min:"1" type:"string" required:"true"`
  9631. // Describes the results of the transform job.
  9632. //
  9633. // TransformOutput is a required field
  9634. TransformOutput *TransformOutput `type:"structure" required:"true"`
  9635. // Describes the resources, including ML instance types and ML instance count,
  9636. // to use for the transform job.
  9637. //
  9638. // TransformResources is a required field
  9639. TransformResources *TransformResources `type:"structure" required:"true"`
  9640. }
  9641. // String returns the string representation
  9642. func (s CreateTransformJobInput) String() string {
  9643. return awsutil.Prettify(s)
  9644. }
  9645. // GoString returns the string representation
  9646. func (s CreateTransformJobInput) GoString() string {
  9647. return s.String()
  9648. }
  9649. // Validate inspects the fields of the type to determine if they are valid.
  9650. func (s *CreateTransformJobInput) Validate() error {
  9651. invalidParams := request.ErrInvalidParams{Context: "CreateTransformJobInput"}
  9652. if s.ModelName == nil {
  9653. invalidParams.Add(request.NewErrParamRequired("ModelName"))
  9654. }
  9655. if s.TransformInput == nil {
  9656. invalidParams.Add(request.NewErrParamRequired("TransformInput"))
  9657. }
  9658. if s.TransformJobName == nil {
  9659. invalidParams.Add(request.NewErrParamRequired("TransformJobName"))
  9660. }
  9661. if s.TransformJobName != nil && len(*s.TransformJobName) < 1 {
  9662. invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1))
  9663. }
  9664. if s.TransformOutput == nil {
  9665. invalidParams.Add(request.NewErrParamRequired("TransformOutput"))
  9666. }
  9667. if s.TransformResources == nil {
  9668. invalidParams.Add(request.NewErrParamRequired("TransformResources"))
  9669. }
  9670. if s.Tags != nil {
  9671. for i, v := range s.Tags {
  9672. if v == nil {
  9673. continue
  9674. }
  9675. if err := v.Validate(); err != nil {
  9676. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  9677. }
  9678. }
  9679. }
  9680. if s.TransformInput != nil {
  9681. if err := s.TransformInput.Validate(); err != nil {
  9682. invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams))
  9683. }
  9684. }
  9685. if s.TransformOutput != nil {
  9686. if err := s.TransformOutput.Validate(); err != nil {
  9687. invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams))
  9688. }
  9689. }
  9690. if s.TransformResources != nil {
  9691. if err := s.TransformResources.Validate(); err != nil {
  9692. invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams))
  9693. }
  9694. }
  9695. if invalidParams.Len() > 0 {
  9696. return invalidParams
  9697. }
  9698. return nil
  9699. }
  9700. // SetBatchStrategy sets the BatchStrategy field's value.
  9701. func (s *CreateTransformJobInput) SetBatchStrategy(v string) *CreateTransformJobInput {
  9702. s.BatchStrategy = &v
  9703. return s
  9704. }
  9705. // SetEnvironment sets the Environment field's value.
  9706. func (s *CreateTransformJobInput) SetEnvironment(v map[string]*string) *CreateTransformJobInput {
  9707. s.Environment = v
  9708. return s
  9709. }
  9710. // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value.
  9711. func (s *CreateTransformJobInput) SetMaxConcurrentTransforms(v int64) *CreateTransformJobInput {
  9712. s.MaxConcurrentTransforms = &v
  9713. return s
  9714. }
  9715. // SetMaxPayloadInMB sets the MaxPayloadInMB field's value.
  9716. func (s *CreateTransformJobInput) SetMaxPayloadInMB(v int64) *CreateTransformJobInput {
  9717. s.MaxPayloadInMB = &v
  9718. return s
  9719. }
  9720. // SetModelName sets the ModelName field's value.
  9721. func (s *CreateTransformJobInput) SetModelName(v string) *CreateTransformJobInput {
  9722. s.ModelName = &v
  9723. return s
  9724. }
  9725. // SetTags sets the Tags field's value.
  9726. func (s *CreateTransformJobInput) SetTags(v []*Tag) *CreateTransformJobInput {
  9727. s.Tags = v
  9728. return s
  9729. }
  9730. // SetTransformInput sets the TransformInput field's value.
  9731. func (s *CreateTransformJobInput) SetTransformInput(v *TransformInput) *CreateTransformJobInput {
  9732. s.TransformInput = v
  9733. return s
  9734. }
  9735. // SetTransformJobName sets the TransformJobName field's value.
  9736. func (s *CreateTransformJobInput) SetTransformJobName(v string) *CreateTransformJobInput {
  9737. s.TransformJobName = &v
  9738. return s
  9739. }
  9740. // SetTransformOutput sets the TransformOutput field's value.
  9741. func (s *CreateTransformJobInput) SetTransformOutput(v *TransformOutput) *CreateTransformJobInput {
  9742. s.TransformOutput = v
  9743. return s
  9744. }
  9745. // SetTransformResources sets the TransformResources field's value.
  9746. func (s *CreateTransformJobInput) SetTransformResources(v *TransformResources) *CreateTransformJobInput {
  9747. s.TransformResources = v
  9748. return s
  9749. }
  9750. type CreateTransformJobOutput struct {
  9751. _ struct{} `type:"structure"`
  9752. // The Amazon Resource Name (ARN) of the transform job.
  9753. //
  9754. // TransformJobArn is a required field
  9755. TransformJobArn *string `type:"string" required:"true"`
  9756. }
  9757. // String returns the string representation
  9758. func (s CreateTransformJobOutput) String() string {
  9759. return awsutil.Prettify(s)
  9760. }
  9761. // GoString returns the string representation
  9762. func (s CreateTransformJobOutput) GoString() string {
  9763. return s.String()
  9764. }
  9765. // SetTransformJobArn sets the TransformJobArn field's value.
  9766. func (s *CreateTransformJobOutput) SetTransformJobArn(v string) *CreateTransformJobOutput {
  9767. s.TransformJobArn = &v
  9768. return s
  9769. }
  9770. type CreateWorkteamInput struct {
  9771. _ struct{} `type:"structure"`
  9772. // A description of the work team.
  9773. //
  9774. // Description is a required field
  9775. Description *string `min:"1" type:"string" required:"true"`
  9776. // A list of MemberDefinition objects that contains objects that identify the
  9777. // Amazon Cognito user pool that makes up the work team. For more information,
  9778. // see Amazon Cognito User Pools (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html).
  9779. //
  9780. // All of the CognitoMemberDefinition objects that make up the member definition
  9781. // must have the same ClientId and UserPool values.
  9782. //
  9783. // MemberDefinitions is a required field
  9784. MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"`
  9785. Tags []*Tag `type:"list"`
  9786. // The name of the work team. Use this name to identify the work team.
  9787. //
  9788. // WorkteamName is a required field
  9789. WorkteamName *string `min:"1" type:"string" required:"true"`
  9790. }
  9791. // String returns the string representation
  9792. func (s CreateWorkteamInput) String() string {
  9793. return awsutil.Prettify(s)
  9794. }
  9795. // GoString returns the string representation
  9796. func (s CreateWorkteamInput) GoString() string {
  9797. return s.String()
  9798. }
  9799. // Validate inspects the fields of the type to determine if they are valid.
  9800. func (s *CreateWorkteamInput) Validate() error {
  9801. invalidParams := request.ErrInvalidParams{Context: "CreateWorkteamInput"}
  9802. if s.Description == nil {
  9803. invalidParams.Add(request.NewErrParamRequired("Description"))
  9804. }
  9805. if s.Description != nil && len(*s.Description) < 1 {
  9806. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  9807. }
  9808. if s.MemberDefinitions == nil {
  9809. invalidParams.Add(request.NewErrParamRequired("MemberDefinitions"))
  9810. }
  9811. if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 {
  9812. invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1))
  9813. }
  9814. if s.WorkteamName == nil {
  9815. invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
  9816. }
  9817. if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
  9818. invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
  9819. }
  9820. if s.MemberDefinitions != nil {
  9821. for i, v := range s.MemberDefinitions {
  9822. if v == nil {
  9823. continue
  9824. }
  9825. if err := v.Validate(); err != nil {
  9826. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", i), err.(request.ErrInvalidParams))
  9827. }
  9828. }
  9829. }
  9830. if s.Tags != nil {
  9831. for i, v := range s.Tags {
  9832. if v == nil {
  9833. continue
  9834. }
  9835. if err := v.Validate(); err != nil {
  9836. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  9837. }
  9838. }
  9839. }
  9840. if invalidParams.Len() > 0 {
  9841. return invalidParams
  9842. }
  9843. return nil
  9844. }
  9845. // SetDescription sets the Description field's value.
  9846. func (s *CreateWorkteamInput) SetDescription(v string) *CreateWorkteamInput {
  9847. s.Description = &v
  9848. return s
  9849. }
  9850. // SetMemberDefinitions sets the MemberDefinitions field's value.
  9851. func (s *CreateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *CreateWorkteamInput {
  9852. s.MemberDefinitions = v
  9853. return s
  9854. }
  9855. // SetTags sets the Tags field's value.
  9856. func (s *CreateWorkteamInput) SetTags(v []*Tag) *CreateWorkteamInput {
  9857. s.Tags = v
  9858. return s
  9859. }
  9860. // SetWorkteamName sets the WorkteamName field's value.
  9861. func (s *CreateWorkteamInput) SetWorkteamName(v string) *CreateWorkteamInput {
  9862. s.WorkteamName = &v
  9863. return s
  9864. }
  9865. type CreateWorkteamOutput struct {
  9866. _ struct{} `type:"structure"`
  9867. // The Amazon Resource Name (ARN) of the work team. You can use this ARN to
  9868. // identify the work team.
  9869. WorkteamArn *string `type:"string"`
  9870. }
  9871. // String returns the string representation
  9872. func (s CreateWorkteamOutput) String() string {
  9873. return awsutil.Prettify(s)
  9874. }
  9875. // GoString returns the string representation
  9876. func (s CreateWorkteamOutput) GoString() string {
  9877. return s.String()
  9878. }
  9879. // SetWorkteamArn sets the WorkteamArn field's value.
  9880. func (s *CreateWorkteamOutput) SetWorkteamArn(v string) *CreateWorkteamOutput {
  9881. s.WorkteamArn = &v
  9882. return s
  9883. }
  9884. // Describes the location of the channel data.
  9885. type DataSource struct {
  9886. _ struct{} `type:"structure"`
  9887. // The S3 location of the data source that is associated with a channel.
  9888. //
  9889. // S3DataSource is a required field
  9890. S3DataSource *S3DataSource `type:"structure" required:"true"`
  9891. }
  9892. // String returns the string representation
  9893. func (s DataSource) String() string {
  9894. return awsutil.Prettify(s)
  9895. }
  9896. // GoString returns the string representation
  9897. func (s DataSource) GoString() string {
  9898. return s.String()
  9899. }
  9900. // Validate inspects the fields of the type to determine if they are valid.
  9901. func (s *DataSource) Validate() error {
  9902. invalidParams := request.ErrInvalidParams{Context: "DataSource"}
  9903. if s.S3DataSource == nil {
  9904. invalidParams.Add(request.NewErrParamRequired("S3DataSource"))
  9905. }
  9906. if s.S3DataSource != nil {
  9907. if err := s.S3DataSource.Validate(); err != nil {
  9908. invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams))
  9909. }
  9910. }
  9911. if invalidParams.Len() > 0 {
  9912. return invalidParams
  9913. }
  9914. return nil
  9915. }
  9916. // SetS3DataSource sets the S3DataSource field's value.
  9917. func (s *DataSource) SetS3DataSource(v *S3DataSource) *DataSource {
  9918. s.S3DataSource = v
  9919. return s
  9920. }
  9921. type DeleteAlgorithmInput struct {
  9922. _ struct{} `type:"structure"`
  9923. // The name of the algorithm to delete.
  9924. //
  9925. // AlgorithmName is a required field
  9926. AlgorithmName *string `min:"1" type:"string" required:"true"`
  9927. }
  9928. // String returns the string representation
  9929. func (s DeleteAlgorithmInput) String() string {
  9930. return awsutil.Prettify(s)
  9931. }
  9932. // GoString returns the string representation
  9933. func (s DeleteAlgorithmInput) GoString() string {
  9934. return s.String()
  9935. }
  9936. // Validate inspects the fields of the type to determine if they are valid.
  9937. func (s *DeleteAlgorithmInput) Validate() error {
  9938. invalidParams := request.ErrInvalidParams{Context: "DeleteAlgorithmInput"}
  9939. if s.AlgorithmName == nil {
  9940. invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
  9941. }
  9942. if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
  9943. invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
  9944. }
  9945. if invalidParams.Len() > 0 {
  9946. return invalidParams
  9947. }
  9948. return nil
  9949. }
  9950. // SetAlgorithmName sets the AlgorithmName field's value.
  9951. func (s *DeleteAlgorithmInput) SetAlgorithmName(v string) *DeleteAlgorithmInput {
  9952. s.AlgorithmName = &v
  9953. return s
  9954. }
  9955. type DeleteAlgorithmOutput struct {
  9956. _ struct{} `type:"structure"`
  9957. }
  9958. // String returns the string representation
  9959. func (s DeleteAlgorithmOutput) String() string {
  9960. return awsutil.Prettify(s)
  9961. }
  9962. // GoString returns the string representation
  9963. func (s DeleteAlgorithmOutput) GoString() string {
  9964. return s.String()
  9965. }
  9966. type DeleteCodeRepositoryInput struct {
  9967. _ struct{} `type:"structure"`
  9968. // The name of the Git repository to delete.
  9969. //
  9970. // CodeRepositoryName is a required field
  9971. CodeRepositoryName *string `min:"1" type:"string" required:"true"`
  9972. }
  9973. // String returns the string representation
  9974. func (s DeleteCodeRepositoryInput) String() string {
  9975. return awsutil.Prettify(s)
  9976. }
  9977. // GoString returns the string representation
  9978. func (s DeleteCodeRepositoryInput) GoString() string {
  9979. return s.String()
  9980. }
  9981. // Validate inspects the fields of the type to determine if they are valid.
  9982. func (s *DeleteCodeRepositoryInput) Validate() error {
  9983. invalidParams := request.ErrInvalidParams{Context: "DeleteCodeRepositoryInput"}
  9984. if s.CodeRepositoryName == nil {
  9985. invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
  9986. }
  9987. if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
  9988. invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
  9989. }
  9990. if invalidParams.Len() > 0 {
  9991. return invalidParams
  9992. }
  9993. return nil
  9994. }
  9995. // SetCodeRepositoryName sets the CodeRepositoryName field's value.
  9996. func (s *DeleteCodeRepositoryInput) SetCodeRepositoryName(v string) *DeleteCodeRepositoryInput {
  9997. s.CodeRepositoryName = &v
  9998. return s
  9999. }
  10000. type DeleteCodeRepositoryOutput struct {
  10001. _ struct{} `type:"structure"`
  10002. }
  10003. // String returns the string representation
  10004. func (s DeleteCodeRepositoryOutput) String() string {
  10005. return awsutil.Prettify(s)
  10006. }
  10007. // GoString returns the string representation
  10008. func (s DeleteCodeRepositoryOutput) GoString() string {
  10009. return s.String()
  10010. }
  10011. type DeleteEndpointConfigInput struct {
  10012. _ struct{} `type:"structure"`
  10013. // The name of the endpoint configuration that you want to delete.
  10014. //
  10015. // EndpointConfigName is a required field
  10016. EndpointConfigName *string `type:"string" required:"true"`
  10017. }
  10018. // String returns the string representation
  10019. func (s DeleteEndpointConfigInput) String() string {
  10020. return awsutil.Prettify(s)
  10021. }
  10022. // GoString returns the string representation
  10023. func (s DeleteEndpointConfigInput) GoString() string {
  10024. return s.String()
  10025. }
  10026. // Validate inspects the fields of the type to determine if they are valid.
  10027. func (s *DeleteEndpointConfigInput) Validate() error {
  10028. invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointConfigInput"}
  10029. if s.EndpointConfigName == nil {
  10030. invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
  10031. }
  10032. if invalidParams.Len() > 0 {
  10033. return invalidParams
  10034. }
  10035. return nil
  10036. }
  10037. // SetEndpointConfigName sets the EndpointConfigName field's value.
  10038. func (s *DeleteEndpointConfigInput) SetEndpointConfigName(v string) *DeleteEndpointConfigInput {
  10039. s.EndpointConfigName = &v
  10040. return s
  10041. }
  10042. type DeleteEndpointConfigOutput struct {
  10043. _ struct{} `type:"structure"`
  10044. }
  10045. // String returns the string representation
  10046. func (s DeleteEndpointConfigOutput) String() string {
  10047. return awsutil.Prettify(s)
  10048. }
  10049. // GoString returns the string representation
  10050. func (s DeleteEndpointConfigOutput) GoString() string {
  10051. return s.String()
  10052. }
  10053. type DeleteEndpointInput struct {
  10054. _ struct{} `type:"structure"`
  10055. // The name of the endpoint that you want to delete.
  10056. //
  10057. // EndpointName is a required field
  10058. EndpointName *string `type:"string" required:"true"`
  10059. }
  10060. // String returns the string representation
  10061. func (s DeleteEndpointInput) String() string {
  10062. return awsutil.Prettify(s)
  10063. }
  10064. // GoString returns the string representation
  10065. func (s DeleteEndpointInput) GoString() string {
  10066. return s.String()
  10067. }
  10068. // Validate inspects the fields of the type to determine if they are valid.
  10069. func (s *DeleteEndpointInput) Validate() error {
  10070. invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"}
  10071. if s.EndpointName == nil {
  10072. invalidParams.Add(request.NewErrParamRequired("EndpointName"))
  10073. }
  10074. if invalidParams.Len() > 0 {
  10075. return invalidParams
  10076. }
  10077. return nil
  10078. }
  10079. // SetEndpointName sets the EndpointName field's value.
  10080. func (s *DeleteEndpointInput) SetEndpointName(v string) *DeleteEndpointInput {
  10081. s.EndpointName = &v
  10082. return s
  10083. }
  10084. type DeleteEndpointOutput struct {
  10085. _ struct{} `type:"structure"`
  10086. }
  10087. // String returns the string representation
  10088. func (s DeleteEndpointOutput) String() string {
  10089. return awsutil.Prettify(s)
  10090. }
  10091. // GoString returns the string representation
  10092. func (s DeleteEndpointOutput) GoString() string {
  10093. return s.String()
  10094. }
  10095. type DeleteModelInput struct {
  10096. _ struct{} `type:"structure"`
  10097. // The name of the model to delete.
  10098. //
  10099. // ModelName is a required field
  10100. ModelName *string `type:"string" required:"true"`
  10101. }
  10102. // String returns the string representation
  10103. func (s DeleteModelInput) String() string {
  10104. return awsutil.Prettify(s)
  10105. }
  10106. // GoString returns the string representation
  10107. func (s DeleteModelInput) GoString() string {
  10108. return s.String()
  10109. }
  10110. // Validate inspects the fields of the type to determine if they are valid.
  10111. func (s *DeleteModelInput) Validate() error {
  10112. invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"}
  10113. if s.ModelName == nil {
  10114. invalidParams.Add(request.NewErrParamRequired("ModelName"))
  10115. }
  10116. if invalidParams.Len() > 0 {
  10117. return invalidParams
  10118. }
  10119. return nil
  10120. }
  10121. // SetModelName sets the ModelName field's value.
  10122. func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput {
  10123. s.ModelName = &v
  10124. return s
  10125. }
  10126. type DeleteModelOutput struct {
  10127. _ struct{} `type:"structure"`
  10128. }
  10129. // String returns the string representation
  10130. func (s DeleteModelOutput) String() string {
  10131. return awsutil.Prettify(s)
  10132. }
  10133. // GoString returns the string representation
  10134. func (s DeleteModelOutput) GoString() string {
  10135. return s.String()
  10136. }
  10137. type DeleteModelPackageInput struct {
  10138. _ struct{} `type:"structure"`
  10139. // The name of the model package. The name must have 1 to 63 characters. Valid
  10140. // characters are a-z, A-Z, 0-9, and - (hyphen).
  10141. //
  10142. // ModelPackageName is a required field
  10143. ModelPackageName *string `min:"1" type:"string" required:"true"`
  10144. }
  10145. // String returns the string representation
  10146. func (s DeleteModelPackageInput) String() string {
  10147. return awsutil.Prettify(s)
  10148. }
  10149. // GoString returns the string representation
  10150. func (s DeleteModelPackageInput) GoString() string {
  10151. return s.String()
  10152. }
  10153. // Validate inspects the fields of the type to determine if they are valid.
  10154. func (s *DeleteModelPackageInput) Validate() error {
  10155. invalidParams := request.ErrInvalidParams{Context: "DeleteModelPackageInput"}
  10156. if s.ModelPackageName == nil {
  10157. invalidParams.Add(request.NewErrParamRequired("ModelPackageName"))
  10158. }
  10159. if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
  10160. invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
  10161. }
  10162. if invalidParams.Len() > 0 {
  10163. return invalidParams
  10164. }
  10165. return nil
  10166. }
  10167. // SetModelPackageName sets the ModelPackageName field's value.
  10168. func (s *DeleteModelPackageInput) SetModelPackageName(v string) *DeleteModelPackageInput {
  10169. s.ModelPackageName = &v
  10170. return s
  10171. }
  10172. type DeleteModelPackageOutput struct {
  10173. _ struct{} `type:"structure"`
  10174. }
  10175. // String returns the string representation
  10176. func (s DeleteModelPackageOutput) String() string {
  10177. return awsutil.Prettify(s)
  10178. }
  10179. // GoString returns the string representation
  10180. func (s DeleteModelPackageOutput) GoString() string {
  10181. return s.String()
  10182. }
  10183. type DeleteNotebookInstanceInput struct {
  10184. _ struct{} `type:"structure"`
  10185. // The name of the Amazon SageMaker notebook instance to delete.
  10186. //
  10187. // NotebookInstanceName is a required field
  10188. NotebookInstanceName *string `type:"string" required:"true"`
  10189. }
  10190. // String returns the string representation
  10191. func (s DeleteNotebookInstanceInput) String() string {
  10192. return awsutil.Prettify(s)
  10193. }
  10194. // GoString returns the string representation
  10195. func (s DeleteNotebookInstanceInput) GoString() string {
  10196. return s.String()
  10197. }
  10198. // Validate inspects the fields of the type to determine if they are valid.
  10199. func (s *DeleteNotebookInstanceInput) Validate() error {
  10200. invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceInput"}
  10201. if s.NotebookInstanceName == nil {
  10202. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
  10203. }
  10204. if invalidParams.Len() > 0 {
  10205. return invalidParams
  10206. }
  10207. return nil
  10208. }
  10209. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  10210. func (s *DeleteNotebookInstanceInput) SetNotebookInstanceName(v string) *DeleteNotebookInstanceInput {
  10211. s.NotebookInstanceName = &v
  10212. return s
  10213. }
  10214. type DeleteNotebookInstanceLifecycleConfigInput struct {
  10215. _ struct{} `type:"structure"`
  10216. // The name of the lifecycle configuration to delete.
  10217. //
  10218. // NotebookInstanceLifecycleConfigName is a required field
  10219. NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
  10220. }
  10221. // String returns the string representation
  10222. func (s DeleteNotebookInstanceLifecycleConfigInput) String() string {
  10223. return awsutil.Prettify(s)
  10224. }
  10225. // GoString returns the string representation
  10226. func (s DeleteNotebookInstanceLifecycleConfigInput) GoString() string {
  10227. return s.String()
  10228. }
  10229. // Validate inspects the fields of the type to determine if they are valid.
  10230. func (s *DeleteNotebookInstanceLifecycleConfigInput) Validate() error {
  10231. invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceLifecycleConfigInput"}
  10232. if s.NotebookInstanceLifecycleConfigName == nil {
  10233. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
  10234. }
  10235. if invalidParams.Len() > 0 {
  10236. return invalidParams
  10237. }
  10238. return nil
  10239. }
  10240. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  10241. func (s *DeleteNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DeleteNotebookInstanceLifecycleConfigInput {
  10242. s.NotebookInstanceLifecycleConfigName = &v
  10243. return s
  10244. }
  10245. type DeleteNotebookInstanceLifecycleConfigOutput struct {
  10246. _ struct{} `type:"structure"`
  10247. }
  10248. // String returns the string representation
  10249. func (s DeleteNotebookInstanceLifecycleConfigOutput) String() string {
  10250. return awsutil.Prettify(s)
  10251. }
  10252. // GoString returns the string representation
  10253. func (s DeleteNotebookInstanceLifecycleConfigOutput) GoString() string {
  10254. return s.String()
  10255. }
  10256. type DeleteNotebookInstanceOutput struct {
  10257. _ struct{} `type:"structure"`
  10258. }
  10259. // String returns the string representation
  10260. func (s DeleteNotebookInstanceOutput) String() string {
  10261. return awsutil.Prettify(s)
  10262. }
  10263. // GoString returns the string representation
  10264. func (s DeleteNotebookInstanceOutput) GoString() string {
  10265. return s.String()
  10266. }
  10267. type DeleteTagsInput struct {
  10268. _ struct{} `type:"structure"`
  10269. // The Amazon Resource Name (ARN) of the resource whose tags you want to delete.
  10270. //
  10271. // ResourceArn is a required field
  10272. ResourceArn *string `type:"string" required:"true"`
  10273. // An array or one or more tag keys to delete.
  10274. //
  10275. // TagKeys is a required field
  10276. TagKeys []*string `min:"1" type:"list" required:"true"`
  10277. }
  10278. // String returns the string representation
  10279. func (s DeleteTagsInput) String() string {
  10280. return awsutil.Prettify(s)
  10281. }
  10282. // GoString returns the string representation
  10283. func (s DeleteTagsInput) GoString() string {
  10284. return s.String()
  10285. }
  10286. // Validate inspects the fields of the type to determine if they are valid.
  10287. func (s *DeleteTagsInput) Validate() error {
  10288. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  10289. if s.ResourceArn == nil {
  10290. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  10291. }
  10292. if s.TagKeys == nil {
  10293. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  10294. }
  10295. if s.TagKeys != nil && len(s.TagKeys) < 1 {
  10296. invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
  10297. }
  10298. if invalidParams.Len() > 0 {
  10299. return invalidParams
  10300. }
  10301. return nil
  10302. }
  10303. // SetResourceArn sets the ResourceArn field's value.
  10304. func (s *DeleteTagsInput) SetResourceArn(v string) *DeleteTagsInput {
  10305. s.ResourceArn = &v
  10306. return s
  10307. }
  10308. // SetTagKeys sets the TagKeys field's value.
  10309. func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput {
  10310. s.TagKeys = v
  10311. return s
  10312. }
  10313. type DeleteTagsOutput struct {
  10314. _ struct{} `type:"structure"`
  10315. }
  10316. // String returns the string representation
  10317. func (s DeleteTagsOutput) String() string {
  10318. return awsutil.Prettify(s)
  10319. }
  10320. // GoString returns the string representation
  10321. func (s DeleteTagsOutput) GoString() string {
  10322. return s.String()
  10323. }
  10324. type DeleteWorkteamInput struct {
  10325. _ struct{} `type:"structure"`
  10326. // The name of the work team to delete.
  10327. //
  10328. // WorkteamName is a required field
  10329. WorkteamName *string `min:"1" type:"string" required:"true"`
  10330. }
  10331. // String returns the string representation
  10332. func (s DeleteWorkteamInput) String() string {
  10333. return awsutil.Prettify(s)
  10334. }
  10335. // GoString returns the string representation
  10336. func (s DeleteWorkteamInput) GoString() string {
  10337. return s.String()
  10338. }
  10339. // Validate inspects the fields of the type to determine if they are valid.
  10340. func (s *DeleteWorkteamInput) Validate() error {
  10341. invalidParams := request.ErrInvalidParams{Context: "DeleteWorkteamInput"}
  10342. if s.WorkteamName == nil {
  10343. invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
  10344. }
  10345. if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
  10346. invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
  10347. }
  10348. if invalidParams.Len() > 0 {
  10349. return invalidParams
  10350. }
  10351. return nil
  10352. }
  10353. // SetWorkteamName sets the WorkteamName field's value.
  10354. func (s *DeleteWorkteamInput) SetWorkteamName(v string) *DeleteWorkteamInput {
  10355. s.WorkteamName = &v
  10356. return s
  10357. }
  10358. type DeleteWorkteamOutput struct {
  10359. _ struct{} `type:"structure"`
  10360. // Returns true if the work team was successfully deleted; otherwise, returns
  10361. // false.
  10362. //
  10363. // Success is a required field
  10364. Success *bool `type:"boolean" required:"true"`
  10365. }
  10366. // String returns the string representation
  10367. func (s DeleteWorkteamOutput) String() string {
  10368. return awsutil.Prettify(s)
  10369. }
  10370. // GoString returns the string representation
  10371. func (s DeleteWorkteamOutput) GoString() string {
  10372. return s.String()
  10373. }
  10374. // SetSuccess sets the Success field's value.
  10375. func (s *DeleteWorkteamOutput) SetSuccess(v bool) *DeleteWorkteamOutput {
  10376. s.Success = &v
  10377. return s
  10378. }
  10379. // Gets the Amazon EC2 Container Registry path of the docker image of the model
  10380. // that is hosted in this ProductionVariant.
  10381. //
  10382. // If you used the registry/repository[:tag] form to specify the image path
  10383. // of the primary container when you created the model hosted in this ProductionVariant,
  10384. // the path resolves to a path of the form registry/repository[@digest]. A digest
  10385. // is a hash value that identifies a specific version of an image. For information
  10386. // about Amazon ECR paths, see Pulling an Image (http://docs.aws.amazon.com//AmazonECR/latest/userguide/docker-pull-ecr-image.html)
  10387. // in the Amazon ECR User Guide.
  10388. type DeployedImage struct {
  10389. _ struct{} `type:"structure"`
  10390. // The date and time when the image path for the model resolved to the ResolvedImage
  10391. ResolutionTime *time.Time `type:"timestamp"`
  10392. // The specific digest path of the image hosted in this ProductionVariant.
  10393. ResolvedImage *string `type:"string"`
  10394. // The image path you specified when you created the model.
  10395. SpecifiedImage *string `type:"string"`
  10396. }
  10397. // String returns the string representation
  10398. func (s DeployedImage) String() string {
  10399. return awsutil.Prettify(s)
  10400. }
  10401. // GoString returns the string representation
  10402. func (s DeployedImage) GoString() string {
  10403. return s.String()
  10404. }
  10405. // SetResolutionTime sets the ResolutionTime field's value.
  10406. func (s *DeployedImage) SetResolutionTime(v time.Time) *DeployedImage {
  10407. s.ResolutionTime = &v
  10408. return s
  10409. }
  10410. // SetResolvedImage sets the ResolvedImage field's value.
  10411. func (s *DeployedImage) SetResolvedImage(v string) *DeployedImage {
  10412. s.ResolvedImage = &v
  10413. return s
  10414. }
  10415. // SetSpecifiedImage sets the SpecifiedImage field's value.
  10416. func (s *DeployedImage) SetSpecifiedImage(v string) *DeployedImage {
  10417. s.SpecifiedImage = &v
  10418. return s
  10419. }
  10420. type DescribeAlgorithmInput struct {
  10421. _ struct{} `type:"structure"`
  10422. // The name of the algorithm to describe.
  10423. //
  10424. // AlgorithmName is a required field
  10425. AlgorithmName *string `min:"1" type:"string" required:"true"`
  10426. }
  10427. // String returns the string representation
  10428. func (s DescribeAlgorithmInput) String() string {
  10429. return awsutil.Prettify(s)
  10430. }
  10431. // GoString returns the string representation
  10432. func (s DescribeAlgorithmInput) GoString() string {
  10433. return s.String()
  10434. }
  10435. // Validate inspects the fields of the type to determine if they are valid.
  10436. func (s *DescribeAlgorithmInput) Validate() error {
  10437. invalidParams := request.ErrInvalidParams{Context: "DescribeAlgorithmInput"}
  10438. if s.AlgorithmName == nil {
  10439. invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
  10440. }
  10441. if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
  10442. invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
  10443. }
  10444. if invalidParams.Len() > 0 {
  10445. return invalidParams
  10446. }
  10447. return nil
  10448. }
  10449. // SetAlgorithmName sets the AlgorithmName field's value.
  10450. func (s *DescribeAlgorithmInput) SetAlgorithmName(v string) *DescribeAlgorithmInput {
  10451. s.AlgorithmName = &v
  10452. return s
  10453. }
  10454. type DescribeAlgorithmOutput struct {
  10455. _ struct{} `type:"structure"`
  10456. // The Amazon Resource Name (ARN) of the algorithm.
  10457. //
  10458. // AlgorithmArn is a required field
  10459. AlgorithmArn *string `min:"1" type:"string" required:"true"`
  10460. // A brief summary about the algorithm.
  10461. AlgorithmDescription *string `type:"string"`
  10462. // The name of the algorithm being described.
  10463. //
  10464. // AlgorithmName is a required field
  10465. AlgorithmName *string `min:"1" type:"string" required:"true"`
  10466. // The current status of the algorithm.
  10467. //
  10468. // AlgorithmStatus is a required field
  10469. AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"`
  10470. // Details about the current status of the algorithm.
  10471. //
  10472. // AlgorithmStatusDetails is a required field
  10473. AlgorithmStatusDetails *AlgorithmStatusDetails `type:"structure" required:"true"`
  10474. // Whether the algorithm is certified to be listed in AWS Marketplace.
  10475. CertifyForMarketplace *bool `type:"boolean"`
  10476. // A timestamp specifying when the algorithm was created.
  10477. //
  10478. // CreationTime is a required field
  10479. CreationTime *time.Time `type:"timestamp" required:"true"`
  10480. // Details about inference jobs that the algorithm runs.
  10481. InferenceSpecification *InferenceSpecification `type:"structure"`
  10482. // The product identifier of the algorithm.
  10483. ProductId *string `type:"string"`
  10484. // Details about training jobs run by this algorithm.
  10485. //
  10486. // TrainingSpecification is a required field
  10487. TrainingSpecification *TrainingSpecification `type:"structure" required:"true"`
  10488. // Details about configurations for one or more training jobs that Amazon SageMaker
  10489. // runs to test the algorithm.
  10490. ValidationSpecification *AlgorithmValidationSpecification `type:"structure"`
  10491. }
  10492. // String returns the string representation
  10493. func (s DescribeAlgorithmOutput) String() string {
  10494. return awsutil.Prettify(s)
  10495. }
  10496. // GoString returns the string representation
  10497. func (s DescribeAlgorithmOutput) GoString() string {
  10498. return s.String()
  10499. }
  10500. // SetAlgorithmArn sets the AlgorithmArn field's value.
  10501. func (s *DescribeAlgorithmOutput) SetAlgorithmArn(v string) *DescribeAlgorithmOutput {
  10502. s.AlgorithmArn = &v
  10503. return s
  10504. }
  10505. // SetAlgorithmDescription sets the AlgorithmDescription field's value.
  10506. func (s *DescribeAlgorithmOutput) SetAlgorithmDescription(v string) *DescribeAlgorithmOutput {
  10507. s.AlgorithmDescription = &v
  10508. return s
  10509. }
  10510. // SetAlgorithmName sets the AlgorithmName field's value.
  10511. func (s *DescribeAlgorithmOutput) SetAlgorithmName(v string) *DescribeAlgorithmOutput {
  10512. s.AlgorithmName = &v
  10513. return s
  10514. }
  10515. // SetAlgorithmStatus sets the AlgorithmStatus field's value.
  10516. func (s *DescribeAlgorithmOutput) SetAlgorithmStatus(v string) *DescribeAlgorithmOutput {
  10517. s.AlgorithmStatus = &v
  10518. return s
  10519. }
  10520. // SetAlgorithmStatusDetails sets the AlgorithmStatusDetails field's value.
  10521. func (s *DescribeAlgorithmOutput) SetAlgorithmStatusDetails(v *AlgorithmStatusDetails) *DescribeAlgorithmOutput {
  10522. s.AlgorithmStatusDetails = v
  10523. return s
  10524. }
  10525. // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
  10526. func (s *DescribeAlgorithmOutput) SetCertifyForMarketplace(v bool) *DescribeAlgorithmOutput {
  10527. s.CertifyForMarketplace = &v
  10528. return s
  10529. }
  10530. // SetCreationTime sets the CreationTime field's value.
  10531. func (s *DescribeAlgorithmOutput) SetCreationTime(v time.Time) *DescribeAlgorithmOutput {
  10532. s.CreationTime = &v
  10533. return s
  10534. }
  10535. // SetInferenceSpecification sets the InferenceSpecification field's value.
  10536. func (s *DescribeAlgorithmOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeAlgorithmOutput {
  10537. s.InferenceSpecification = v
  10538. return s
  10539. }
  10540. // SetProductId sets the ProductId field's value.
  10541. func (s *DescribeAlgorithmOutput) SetProductId(v string) *DescribeAlgorithmOutput {
  10542. s.ProductId = &v
  10543. return s
  10544. }
  10545. // SetTrainingSpecification sets the TrainingSpecification field's value.
  10546. func (s *DescribeAlgorithmOutput) SetTrainingSpecification(v *TrainingSpecification) *DescribeAlgorithmOutput {
  10547. s.TrainingSpecification = v
  10548. return s
  10549. }
  10550. // SetValidationSpecification sets the ValidationSpecification field's value.
  10551. func (s *DescribeAlgorithmOutput) SetValidationSpecification(v *AlgorithmValidationSpecification) *DescribeAlgorithmOutput {
  10552. s.ValidationSpecification = v
  10553. return s
  10554. }
  10555. type DescribeCodeRepositoryInput struct {
  10556. _ struct{} `type:"structure"`
  10557. // The name of the Git repository to describe.
  10558. //
  10559. // CodeRepositoryName is a required field
  10560. CodeRepositoryName *string `min:"1" type:"string" required:"true"`
  10561. }
  10562. // String returns the string representation
  10563. func (s DescribeCodeRepositoryInput) String() string {
  10564. return awsutil.Prettify(s)
  10565. }
  10566. // GoString returns the string representation
  10567. func (s DescribeCodeRepositoryInput) GoString() string {
  10568. return s.String()
  10569. }
  10570. // Validate inspects the fields of the type to determine if they are valid.
  10571. func (s *DescribeCodeRepositoryInput) Validate() error {
  10572. invalidParams := request.ErrInvalidParams{Context: "DescribeCodeRepositoryInput"}
  10573. if s.CodeRepositoryName == nil {
  10574. invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
  10575. }
  10576. if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
  10577. invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
  10578. }
  10579. if invalidParams.Len() > 0 {
  10580. return invalidParams
  10581. }
  10582. return nil
  10583. }
  10584. // SetCodeRepositoryName sets the CodeRepositoryName field's value.
  10585. func (s *DescribeCodeRepositoryInput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryInput {
  10586. s.CodeRepositoryName = &v
  10587. return s
  10588. }
  10589. type DescribeCodeRepositoryOutput struct {
  10590. _ struct{} `type:"structure"`
  10591. // The Amazon Resource Name (ARN) of the Git repository.
  10592. //
  10593. // CodeRepositoryArn is a required field
  10594. CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
  10595. // The name of the Git repository.
  10596. //
  10597. // CodeRepositoryName is a required field
  10598. CodeRepositoryName *string `min:"1" type:"string" required:"true"`
  10599. // The date and time that the repository was created.
  10600. //
  10601. // CreationTime is a required field
  10602. CreationTime *time.Time `type:"timestamp" required:"true"`
  10603. // Configuration details about the repository, including the URL where the repository
  10604. // is located, the default branch, and the Amazon Resource Name (ARN) of the
  10605. // AWS Secrets Manager secret that contains the credentials used to access the
  10606. // repository.
  10607. GitConfig *GitConfig `type:"structure"`
  10608. // The date and time that the repository was last changed.
  10609. //
  10610. // LastModifiedTime is a required field
  10611. LastModifiedTime *time.Time `type:"timestamp" required:"true"`
  10612. }
  10613. // String returns the string representation
  10614. func (s DescribeCodeRepositoryOutput) String() string {
  10615. return awsutil.Prettify(s)
  10616. }
  10617. // GoString returns the string representation
  10618. func (s DescribeCodeRepositoryOutput) GoString() string {
  10619. return s.String()
  10620. }
  10621. // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
  10622. func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryArn(v string) *DescribeCodeRepositoryOutput {
  10623. s.CodeRepositoryArn = &v
  10624. return s
  10625. }
  10626. // SetCodeRepositoryName sets the CodeRepositoryName field's value.
  10627. func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryOutput {
  10628. s.CodeRepositoryName = &v
  10629. return s
  10630. }
  10631. // SetCreationTime sets the CreationTime field's value.
  10632. func (s *DescribeCodeRepositoryOutput) SetCreationTime(v time.Time) *DescribeCodeRepositoryOutput {
  10633. s.CreationTime = &v
  10634. return s
  10635. }
  10636. // SetGitConfig sets the GitConfig field's value.
  10637. func (s *DescribeCodeRepositoryOutput) SetGitConfig(v *GitConfig) *DescribeCodeRepositoryOutput {
  10638. s.GitConfig = v
  10639. return s
  10640. }
  10641. // SetLastModifiedTime sets the LastModifiedTime field's value.
  10642. func (s *DescribeCodeRepositoryOutput) SetLastModifiedTime(v time.Time) *DescribeCodeRepositoryOutput {
  10643. s.LastModifiedTime = &v
  10644. return s
  10645. }
  10646. type DescribeCompilationJobInput struct {
  10647. _ struct{} `type:"structure"`
  10648. // The name of the model compilation job that you want information about.
  10649. //
  10650. // CompilationJobName is a required field
  10651. CompilationJobName *string `min:"1" type:"string" required:"true"`
  10652. }
  10653. // String returns the string representation
  10654. func (s DescribeCompilationJobInput) String() string {
  10655. return awsutil.Prettify(s)
  10656. }
  10657. // GoString returns the string representation
  10658. func (s DescribeCompilationJobInput) GoString() string {
  10659. return s.String()
  10660. }
  10661. // Validate inspects the fields of the type to determine if they are valid.
  10662. func (s *DescribeCompilationJobInput) Validate() error {
  10663. invalidParams := request.ErrInvalidParams{Context: "DescribeCompilationJobInput"}
  10664. if s.CompilationJobName == nil {
  10665. invalidParams.Add(request.NewErrParamRequired("CompilationJobName"))
  10666. }
  10667. if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 {
  10668. invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1))
  10669. }
  10670. if invalidParams.Len() > 0 {
  10671. return invalidParams
  10672. }
  10673. return nil
  10674. }
  10675. // SetCompilationJobName sets the CompilationJobName field's value.
  10676. func (s *DescribeCompilationJobInput) SetCompilationJobName(v string) *DescribeCompilationJobInput {
  10677. s.CompilationJobName = &v
  10678. return s
  10679. }
  10680. type DescribeCompilationJobOutput struct {
  10681. _ struct{} `type:"structure"`
  10682. // The time when the model compilation job on a compilation job instance ended.
  10683. // For a successful or stopped job, this is when the job's model artifacts have
  10684. // finished uploading. For a failed job, this is when Amazon SageMaker detected
  10685. // that the job failed.
  10686. CompilationEndTime *time.Time `type:"timestamp"`
  10687. // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes
  10688. // to perform the model compilation job.
  10689. //
  10690. // CompilationJobArn is a required field
  10691. CompilationJobArn *string `type:"string" required:"true"`
  10692. // The name of the model compilation job.
  10693. //
  10694. // CompilationJobName is a required field
  10695. CompilationJobName *string `min:"1" type:"string" required:"true"`
  10696. // The status of the model compilation job.
  10697. //
  10698. // CompilationJobStatus is a required field
  10699. CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"`
  10700. // The time when the model compilation job started the CompilationJob instances.
  10701. //
  10702. // You are billed for the time between this timestamp and the timestamp in the
  10703. // DescribeCompilationJobResponse$CompilationEndTime field. In Amazon CloudWatch
  10704. // Logs, the start time might be later than this time. That's because it takes
  10705. // time to download the compilation job, which depends on the size of the compilation
  10706. // job container.
  10707. CompilationStartTime *time.Time `type:"timestamp"`
  10708. // The time that the model compilation job was created.
  10709. //
  10710. // CreationTime is a required field
  10711. CreationTime *time.Time `type:"timestamp" required:"true"`
  10712. // If a model compilation job failed, the reason it failed.
  10713. //
  10714. // FailureReason is a required field
  10715. FailureReason *string `type:"string" required:"true"`
  10716. // Information about the location in Amazon S3 of the input model artifacts,
  10717. // the name and shape of the expected data inputs, and the framework in which
  10718. // the model was trained.
  10719. //
  10720. // InputConfig is a required field
  10721. InputConfig *InputConfig `type:"structure" required:"true"`
  10722. // The time that the status of the model compilation job was last modified.
  10723. //
  10724. // LastModifiedTime is a required field
  10725. LastModifiedTime *time.Time `type:"timestamp" required:"true"`
  10726. // Information about the location in Amazon S3 that has been configured for
  10727. // storing the model artifacts used in the compilation job.
  10728. //
  10729. // ModelArtifacts is a required field
  10730. ModelArtifacts *ModelArtifacts `type:"structure" required:"true"`
  10731. // Information about the output location for the compiled model and the target
  10732. // device that the model runs on.
  10733. //
  10734. // OutputConfig is a required field
  10735. OutputConfig *OutputConfig `type:"structure" required:"true"`
  10736. // The Amazon Resource Name (ARN) of the model compilation job.
  10737. //
  10738. // RoleArn is a required field
  10739. RoleArn *string `min:"20" type:"string" required:"true"`
  10740. // The duration allowed for model compilation.
  10741. //
  10742. // StoppingCondition is a required field
  10743. StoppingCondition *StoppingCondition `type:"structure" required:"true"`
  10744. }
  10745. // String returns the string representation
  10746. func (s DescribeCompilationJobOutput) String() string {
  10747. return awsutil.Prettify(s)
  10748. }
  10749. // GoString returns the string representation
  10750. func (s DescribeCompilationJobOutput) GoString() string {
  10751. return s.String()
  10752. }
  10753. // SetCompilationEndTime sets the CompilationEndTime field's value.
  10754. func (s *DescribeCompilationJobOutput) SetCompilationEndTime(v time.Time) *DescribeCompilationJobOutput {
  10755. s.CompilationEndTime = &v
  10756. return s
  10757. }
  10758. // SetCompilationJobArn sets the CompilationJobArn field's value.
  10759. func (s *DescribeCompilationJobOutput) SetCompilationJobArn(v string) *DescribeCompilationJobOutput {
  10760. s.CompilationJobArn = &v
  10761. return s
  10762. }
  10763. // SetCompilationJobName sets the CompilationJobName field's value.
  10764. func (s *DescribeCompilationJobOutput) SetCompilationJobName(v string) *DescribeCompilationJobOutput {
  10765. s.CompilationJobName = &v
  10766. return s
  10767. }
  10768. // SetCompilationJobStatus sets the CompilationJobStatus field's value.
  10769. func (s *DescribeCompilationJobOutput) SetCompilationJobStatus(v string) *DescribeCompilationJobOutput {
  10770. s.CompilationJobStatus = &v
  10771. return s
  10772. }
  10773. // SetCompilationStartTime sets the CompilationStartTime field's value.
  10774. func (s *DescribeCompilationJobOutput) SetCompilationStartTime(v time.Time) *DescribeCompilationJobOutput {
  10775. s.CompilationStartTime = &v
  10776. return s
  10777. }
  10778. // SetCreationTime sets the CreationTime field's value.
  10779. func (s *DescribeCompilationJobOutput) SetCreationTime(v time.Time) *DescribeCompilationJobOutput {
  10780. s.CreationTime = &v
  10781. return s
  10782. }
  10783. // SetFailureReason sets the FailureReason field's value.
  10784. func (s *DescribeCompilationJobOutput) SetFailureReason(v string) *DescribeCompilationJobOutput {
  10785. s.FailureReason = &v
  10786. return s
  10787. }
  10788. // SetInputConfig sets the InputConfig field's value.
  10789. func (s *DescribeCompilationJobOutput) SetInputConfig(v *InputConfig) *DescribeCompilationJobOutput {
  10790. s.InputConfig = v
  10791. return s
  10792. }
  10793. // SetLastModifiedTime sets the LastModifiedTime field's value.
  10794. func (s *DescribeCompilationJobOutput) SetLastModifiedTime(v time.Time) *DescribeCompilationJobOutput {
  10795. s.LastModifiedTime = &v
  10796. return s
  10797. }
  10798. // SetModelArtifacts sets the ModelArtifacts field's value.
  10799. func (s *DescribeCompilationJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeCompilationJobOutput {
  10800. s.ModelArtifacts = v
  10801. return s
  10802. }
  10803. // SetOutputConfig sets the OutputConfig field's value.
  10804. func (s *DescribeCompilationJobOutput) SetOutputConfig(v *OutputConfig) *DescribeCompilationJobOutput {
  10805. s.OutputConfig = v
  10806. return s
  10807. }
  10808. // SetRoleArn sets the RoleArn field's value.
  10809. func (s *DescribeCompilationJobOutput) SetRoleArn(v string) *DescribeCompilationJobOutput {
  10810. s.RoleArn = &v
  10811. return s
  10812. }
  10813. // SetStoppingCondition sets the StoppingCondition field's value.
  10814. func (s *DescribeCompilationJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeCompilationJobOutput {
  10815. s.StoppingCondition = v
  10816. return s
  10817. }
  10818. type DescribeEndpointConfigInput struct {
  10819. _ struct{} `type:"structure"`
  10820. // The name of the endpoint configuration.
  10821. //
  10822. // EndpointConfigName is a required field
  10823. EndpointConfigName *string `type:"string" required:"true"`
  10824. }
  10825. // String returns the string representation
  10826. func (s DescribeEndpointConfigInput) String() string {
  10827. return awsutil.Prettify(s)
  10828. }
  10829. // GoString returns the string representation
  10830. func (s DescribeEndpointConfigInput) GoString() string {
  10831. return s.String()
  10832. }
  10833. // Validate inspects the fields of the type to determine if they are valid.
  10834. func (s *DescribeEndpointConfigInput) Validate() error {
  10835. invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointConfigInput"}
  10836. if s.EndpointConfigName == nil {
  10837. invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
  10838. }
  10839. if invalidParams.Len() > 0 {
  10840. return invalidParams
  10841. }
  10842. return nil
  10843. }
  10844. // SetEndpointConfigName sets the EndpointConfigName field's value.
  10845. func (s *DescribeEndpointConfigInput) SetEndpointConfigName(v string) *DescribeEndpointConfigInput {
  10846. s.EndpointConfigName = &v
  10847. return s
  10848. }
  10849. type DescribeEndpointConfigOutput struct {
  10850. _ struct{} `type:"structure"`
  10851. // A timestamp that shows when the endpoint configuration was created.
  10852. //
  10853. // CreationTime is a required field
  10854. CreationTime *time.Time `type:"timestamp" required:"true"`
  10855. // The Amazon Resource Name (ARN) of the endpoint configuration.
  10856. //
  10857. // EndpointConfigArn is a required field
  10858. EndpointConfigArn *string `min:"20" type:"string" required:"true"`
  10859. // Name of the Amazon SageMaker endpoint configuration.
  10860. //
  10861. // EndpointConfigName is a required field
  10862. EndpointConfigName *string `type:"string" required:"true"`
  10863. // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the
  10864. // ML storage volume attached to the instance.
  10865. KmsKeyId *string `type:"string"`
  10866. // An array of ProductionVariant objects, one for each model that you want to
  10867. // host at this endpoint.
  10868. //
  10869. // ProductionVariants is a required field
  10870. ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"`
  10871. }
  10872. // String returns the string representation
  10873. func (s DescribeEndpointConfigOutput) String() string {
  10874. return awsutil.Prettify(s)
  10875. }
  10876. // GoString returns the string representation
  10877. func (s DescribeEndpointConfigOutput) GoString() string {
  10878. return s.String()
  10879. }
  10880. // SetCreationTime sets the CreationTime field's value.
  10881. func (s *DescribeEndpointConfigOutput) SetCreationTime(v time.Time) *DescribeEndpointConfigOutput {
  10882. s.CreationTime = &v
  10883. return s
  10884. }
  10885. // SetEndpointConfigArn sets the EndpointConfigArn field's value.
  10886. func (s *DescribeEndpointConfigOutput) SetEndpointConfigArn(v string) *DescribeEndpointConfigOutput {
  10887. s.EndpointConfigArn = &v
  10888. return s
  10889. }
  10890. // SetEndpointConfigName sets the EndpointConfigName field's value.
  10891. func (s *DescribeEndpointConfigOutput) SetEndpointConfigName(v string) *DescribeEndpointConfigOutput {
  10892. s.EndpointConfigName = &v
  10893. return s
  10894. }
  10895. // SetKmsKeyId sets the KmsKeyId field's value.
  10896. func (s *DescribeEndpointConfigOutput) SetKmsKeyId(v string) *DescribeEndpointConfigOutput {
  10897. s.KmsKeyId = &v
  10898. return s
  10899. }
  10900. // SetProductionVariants sets the ProductionVariants field's value.
  10901. func (s *DescribeEndpointConfigOutput) SetProductionVariants(v []*ProductionVariant) *DescribeEndpointConfigOutput {
  10902. s.ProductionVariants = v
  10903. return s
  10904. }
  10905. type DescribeEndpointInput struct {
  10906. _ struct{} `type:"structure"`
  10907. // The name of the endpoint.
  10908. //
  10909. // EndpointName is a required field
  10910. EndpointName *string `type:"string" required:"true"`
  10911. }
  10912. // String returns the string representation
  10913. func (s DescribeEndpointInput) String() string {
  10914. return awsutil.Prettify(s)
  10915. }
  10916. // GoString returns the string representation
  10917. func (s DescribeEndpointInput) GoString() string {
  10918. return s.String()
  10919. }
  10920. // Validate inspects the fields of the type to determine if they are valid.
  10921. func (s *DescribeEndpointInput) Validate() error {
  10922. invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointInput"}
  10923. if s.EndpointName == nil {
  10924. invalidParams.Add(request.NewErrParamRequired("EndpointName"))
  10925. }
  10926. if invalidParams.Len() > 0 {
  10927. return invalidParams
  10928. }
  10929. return nil
  10930. }
  10931. // SetEndpointName sets the EndpointName field's value.
  10932. func (s *DescribeEndpointInput) SetEndpointName(v string) *DescribeEndpointInput {
  10933. s.EndpointName = &v
  10934. return s
  10935. }
  10936. type DescribeEndpointOutput struct {
  10937. _ struct{} `type:"structure"`
  10938. // A timestamp that shows when the endpoint was created.
  10939. //
  10940. // CreationTime is a required field
  10941. CreationTime *time.Time `type:"timestamp" required:"true"`
  10942. // The Amazon Resource Name (ARN) of the endpoint.
  10943. //
  10944. // EndpointArn is a required field
  10945. EndpointArn *string `min:"20" type:"string" required:"true"`
  10946. // The name of the endpoint configuration associated with this endpoint.
  10947. //
  10948. // EndpointConfigName is a required field
  10949. EndpointConfigName *string `type:"string" required:"true"`
  10950. // Name of the endpoint.
  10951. //
  10952. // EndpointName is a required field
  10953. EndpointName *string `type:"string" required:"true"`
  10954. // The status of the endpoint.
  10955. //
  10956. // * OutOfService: Endpoint is not available to take incoming requests.
  10957. //
  10958. // * Creating: CreateEndpoint is executing.
  10959. //
  10960. // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
  10961. //
  10962. // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated
  10963. // or deleted or re-scaled until it has completed. This maintenance operation
  10964. // does not change any customer-specified values such as VPC config, KMS
  10965. // encryption, model, instance type, or instance count.
  10966. //
  10967. // * RollingBack: Endpoint fails to scale up or down or change its variant
  10968. // weight and is in the process of rolling back to its previous configuration.
  10969. // Once the rollback completes, endpoint returns to an InService status.
  10970. // This transitional status only applies to an endpoint that has autoscaling
  10971. // enabled and is undergoing variant weight or capacity changes as part of
  10972. // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities
  10973. // operation is called explicitly.
  10974. //
  10975. // * InService: Endpoint is available to process incoming requests.
  10976. //
  10977. // * Deleting: DeleteEndpoint is executing.
  10978. //
  10979. // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason
  10980. // for information about the failure. DeleteEndpoint is the only operation
  10981. // that can be performed on a failed endpoint.
  10982. //
  10983. // EndpointStatus is a required field
  10984. EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"`
  10985. // If the status of the endpoint is Failed, the reason why it failed.
  10986. FailureReason *string `type:"string"`
  10987. // A timestamp that shows when the endpoint was last modified.
  10988. //
  10989. // LastModifiedTime is a required field
  10990. LastModifiedTime *time.Time `type:"timestamp" required:"true"`
  10991. // An array of ProductionVariantSummary objects, one for each model hosted behind
  10992. // this endpoint.
  10993. ProductionVariants []*ProductionVariantSummary `min:"1" type:"list"`
  10994. }
  10995. // String returns the string representation
  10996. func (s DescribeEndpointOutput) String() string {
  10997. return awsutil.Prettify(s)
  10998. }
  10999. // GoString returns the string representation
  11000. func (s DescribeEndpointOutput) GoString() string {
  11001. return s.String()
  11002. }
  11003. // SetCreationTime sets the CreationTime field's value.
  11004. func (s *DescribeEndpointOutput) SetCreationTime(v time.Time) *DescribeEndpointOutput {
  11005. s.CreationTime = &v
  11006. return s
  11007. }
  11008. // SetEndpointArn sets the EndpointArn field's value.
  11009. func (s *DescribeEndpointOutput) SetEndpointArn(v string) *DescribeEndpointOutput {
  11010. s.EndpointArn = &v
  11011. return s
  11012. }
  11013. // SetEndpointConfigName sets the EndpointConfigName field's value.
  11014. func (s *DescribeEndpointOutput) SetEndpointConfigName(v string) *DescribeEndpointOutput {
  11015. s.EndpointConfigName = &v
  11016. return s
  11017. }
  11018. // SetEndpointName sets the EndpointName field's value.
  11019. func (s *DescribeEndpointOutput) SetEndpointName(v string) *DescribeEndpointOutput {
  11020. s.EndpointName = &v
  11021. return s
  11022. }
  11023. // SetEndpointStatus sets the EndpointStatus field's value.
  11024. func (s *DescribeEndpointOutput) SetEndpointStatus(v string) *DescribeEndpointOutput {
  11025. s.EndpointStatus = &v
  11026. return s
  11027. }
  11028. // SetFailureReason sets the FailureReason field's value.
  11029. func (s *DescribeEndpointOutput) SetFailureReason(v string) *DescribeEndpointOutput {
  11030. s.FailureReason = &v
  11031. return s
  11032. }
  11033. // SetLastModifiedTime sets the LastModifiedTime field's value.
  11034. func (s *DescribeEndpointOutput) SetLastModifiedTime(v time.Time) *DescribeEndpointOutput {
  11035. s.LastModifiedTime = &v
  11036. return s
  11037. }
  11038. // SetProductionVariants sets the ProductionVariants field's value.
  11039. func (s *DescribeEndpointOutput) SetProductionVariants(v []*ProductionVariantSummary) *DescribeEndpointOutput {
  11040. s.ProductionVariants = v
  11041. return s
  11042. }
  11043. type DescribeHyperParameterTuningJobInput struct {
  11044. _ struct{} `type:"structure"`
  11045. // The name of the tuning job to describe.
  11046. //
  11047. // HyperParameterTuningJobName is a required field
  11048. HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
  11049. }
  11050. // String returns the string representation
  11051. func (s DescribeHyperParameterTuningJobInput) String() string {
  11052. return awsutil.Prettify(s)
  11053. }
  11054. // GoString returns the string representation
  11055. func (s DescribeHyperParameterTuningJobInput) GoString() string {
  11056. return s.String()
  11057. }
  11058. // Validate inspects the fields of the type to determine if they are valid.
  11059. func (s *DescribeHyperParameterTuningJobInput) Validate() error {
  11060. invalidParams := request.ErrInvalidParams{Context: "DescribeHyperParameterTuningJobInput"}
  11061. if s.HyperParameterTuningJobName == nil {
  11062. invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
  11063. }
  11064. if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
  11065. invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
  11066. }
  11067. if invalidParams.Len() > 0 {
  11068. return invalidParams
  11069. }
  11070. return nil
  11071. }
  11072. // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
  11073. func (s *DescribeHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobInput {
  11074. s.HyperParameterTuningJobName = &v
  11075. return s
  11076. }
  11077. type DescribeHyperParameterTuningJobOutput struct {
  11078. _ struct{} `type:"structure"`
  11079. // A TrainingJobSummary object that describes the training job that completed
  11080. // with the best current HyperParameterTuningJobObjective.
  11081. BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"`
  11082. // The date and time that the tuning job started.
  11083. //
  11084. // CreationTime is a required field
  11085. CreationTime *time.Time `type:"timestamp" required:"true"`
  11086. // If the tuning job failed, the reason it failed.
  11087. FailureReason *string `type:"string"`
  11088. // The date and time that the tuning job ended.
  11089. HyperParameterTuningEndTime *time.Time `type:"timestamp"`
  11090. // The Amazon Resource Name (ARN) of the tuning job.
  11091. //
  11092. // HyperParameterTuningJobArn is a required field
  11093. HyperParameterTuningJobArn *string `type:"string" required:"true"`
  11094. // The HyperParameterTuningJobConfig object that specifies the configuration
  11095. // of the tuning job.
  11096. //
  11097. // HyperParameterTuningJobConfig is a required field
  11098. HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"`
  11099. // The name of the tuning job.
  11100. //
  11101. // HyperParameterTuningJobName is a required field
  11102. HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
  11103. // The status of the tuning job: InProgress, Completed, Failed, Stopping, or
  11104. // Stopped.
  11105. //
  11106. // HyperParameterTuningJobStatus is a required field
  11107. HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"`
  11108. // The date and time that the status of the tuning job was modified.
  11109. LastModifiedTime *time.Time `type:"timestamp"`
  11110. // The ObjectiveStatusCounters object that specifies the number of training
  11111. // jobs, categorized by the status of their final objective metric, that this
  11112. // tuning job launched.
  11113. //
  11114. // ObjectiveStatusCounters is a required field
  11115. ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"`
  11116. // If the hyperparameter tuning job is an warm start tuning job with a WarmStartType
  11117. // of IDENTICAL_DATA_AND_ALGORITHM, this is the TrainingJobSummary for the training
  11118. // job with the best objective metric value of all training jobs launched by
  11119. // this tuning job and all parent jobs specified for the warm start tuning job.
  11120. OverallBestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"`
  11121. // The HyperParameterTrainingJobDefinition object that specifies the definition
  11122. // of the training jobs that this tuning job launches.
  11123. //
  11124. // TrainingJobDefinition is a required field
  11125. TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"`
  11126. // The TrainingJobStatusCounters object that specifies the number of training
  11127. // jobs, categorized by status, that this tuning job launched.
  11128. //
  11129. // TrainingJobStatusCounters is a required field
  11130. TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"`
  11131. // The configuration for starting the hyperparameter parameter tuning job using
  11132. // one or more previous tuning jobs as a starting point. The results of previous
  11133. // tuning jobs are used to inform which combinations of hyperparameters to search
  11134. // over in the new tuning job.
  11135. WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"`
  11136. }
  11137. // String returns the string representation
  11138. func (s DescribeHyperParameterTuningJobOutput) String() string {
  11139. return awsutil.Prettify(s)
  11140. }
  11141. // GoString returns the string representation
  11142. func (s DescribeHyperParameterTuningJobOutput) GoString() string {
  11143. return s.String()
  11144. }
  11145. // SetBestTrainingJob sets the BestTrainingJob field's value.
  11146. func (s *DescribeHyperParameterTuningJobOutput) SetBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput {
  11147. s.BestTrainingJob = v
  11148. return s
  11149. }
  11150. // SetCreationTime sets the CreationTime field's value.
  11151. func (s *DescribeHyperParameterTuningJobOutput) SetCreationTime(v time.Time) *DescribeHyperParameterTuningJobOutput {
  11152. s.CreationTime = &v
  11153. return s
  11154. }
  11155. // SetFailureReason sets the FailureReason field's value.
  11156. func (s *DescribeHyperParameterTuningJobOutput) SetFailureReason(v string) *DescribeHyperParameterTuningJobOutput {
  11157. s.FailureReason = &v
  11158. return s
  11159. }
  11160. // SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value.
  11161. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningEndTime(v time.Time) *DescribeHyperParameterTuningJobOutput {
  11162. s.HyperParameterTuningEndTime = &v
  11163. return s
  11164. }
  11165. // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value.
  11166. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *DescribeHyperParameterTuningJobOutput {
  11167. s.HyperParameterTuningJobArn = &v
  11168. return s
  11169. }
  11170. // SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value.
  11171. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *DescribeHyperParameterTuningJobOutput {
  11172. s.HyperParameterTuningJobConfig = v
  11173. return s
  11174. }
  11175. // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
  11176. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobOutput {
  11177. s.HyperParameterTuningJobName = &v
  11178. return s
  11179. }
  11180. // SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value.
  11181. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobStatus(v string) *DescribeHyperParameterTuningJobOutput {
  11182. s.HyperParameterTuningJobStatus = &v
  11183. return s
  11184. }
  11185. // SetLastModifiedTime sets the LastModifiedTime field's value.
  11186. func (s *DescribeHyperParameterTuningJobOutput) SetLastModifiedTime(v time.Time) *DescribeHyperParameterTuningJobOutput {
  11187. s.LastModifiedTime = &v
  11188. return s
  11189. }
  11190. // SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value.
  11191. func (s *DescribeHyperParameterTuningJobOutput) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *DescribeHyperParameterTuningJobOutput {
  11192. s.ObjectiveStatusCounters = v
  11193. return s
  11194. }
  11195. // SetOverallBestTrainingJob sets the OverallBestTrainingJob field's value.
  11196. func (s *DescribeHyperParameterTuningJobOutput) SetOverallBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput {
  11197. s.OverallBestTrainingJob = v
  11198. return s
  11199. }
  11200. // SetTrainingJobDefinition sets the TrainingJobDefinition field's value.
  11201. func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *DescribeHyperParameterTuningJobOutput {
  11202. s.TrainingJobDefinition = v
  11203. return s
  11204. }
  11205. // SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value.
  11206. func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *DescribeHyperParameterTuningJobOutput {
  11207. s.TrainingJobStatusCounters = v
  11208. return s
  11209. }
  11210. // SetWarmStartConfig sets the WarmStartConfig field's value.
  11211. func (s *DescribeHyperParameterTuningJobOutput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *DescribeHyperParameterTuningJobOutput {
  11212. s.WarmStartConfig = v
  11213. return s
  11214. }
  11215. type DescribeLabelingJobInput struct {
  11216. _ struct{} `type:"structure"`
  11217. // The name of the labeling job to return information for.
  11218. //
  11219. // LabelingJobName is a required field
  11220. LabelingJobName *string `min:"1" type:"string" required:"true"`
  11221. }
  11222. // String returns the string representation
  11223. func (s DescribeLabelingJobInput) String() string {
  11224. return awsutil.Prettify(s)
  11225. }
  11226. // GoString returns the string representation
  11227. func (s DescribeLabelingJobInput) GoString() string {
  11228. return s.String()
  11229. }
  11230. // Validate inspects the fields of the type to determine if they are valid.
  11231. func (s *DescribeLabelingJobInput) Validate() error {
  11232. invalidParams := request.ErrInvalidParams{Context: "DescribeLabelingJobInput"}
  11233. if s.LabelingJobName == nil {
  11234. invalidParams.Add(request.NewErrParamRequired("LabelingJobName"))
  11235. }
  11236. if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 {
  11237. invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1))
  11238. }
  11239. if invalidParams.Len() > 0 {
  11240. return invalidParams
  11241. }
  11242. return nil
  11243. }
  11244. // SetLabelingJobName sets the LabelingJobName field's value.
  11245. func (s *DescribeLabelingJobInput) SetLabelingJobName(v string) *DescribeLabelingJobInput {
  11246. s.LabelingJobName = &v
  11247. return s
  11248. }
  11249. type DescribeLabelingJobOutput struct {
  11250. _ struct{} `type:"structure"`
  11251. // The date and time that the labeling job was created.
  11252. //
  11253. // CreationTime is a required field
  11254. CreationTime *time.Time `type:"timestamp" required:"true"`
  11255. // If the job failed, the reason that it failed.
  11256. FailureReason *string `type:"string"`
  11257. // Configuration information required for human workers to complete a labeling
  11258. // task.
  11259. //
  11260. // HumanTaskConfig is a required field
  11261. HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"`
  11262. // Input configuration information for the labeling job, such as the Amazon
  11263. // S3 location of the data objects and the location of the manifest file that
  11264. // describes the data objects.
  11265. //
  11266. // InputConfig is a required field
  11267. InputConfig *LabelingJobInputConfig `type:"structure" required:"true"`
  11268. // A unique identifier for work done as part of a labeling job.
  11269. //
  11270. // JobReferenceCode is a required field
  11271. JobReferenceCode *string `min:"1" type:"string" required:"true"`
  11272. // The attribute used as the label in the output manifest file.
  11273. LabelAttributeName *string `min:"1" type:"string"`
  11274. // The S3 location of the JSON file that defines the categories used to label
  11275. // data objects.
  11276. //
  11277. // The file is a JSON structure in the following format:
  11278. //
  11279. // {
  11280. //
  11281. // "document-version": "2018-11-28"
  11282. //
  11283. // "labels": [
  11284. //
  11285. // {
  11286. //
  11287. // "label": "label 1"
  11288. //
  11289. // },
  11290. //
  11291. // {
  11292. //
  11293. // "label": "label 2"
  11294. //
  11295. // },
  11296. //
  11297. // ...
  11298. //
  11299. // {
  11300. //
  11301. // "label": "label n"
  11302. //
  11303. // }
  11304. //
  11305. // ]
  11306. //
  11307. // }
  11308. LabelCategoryConfigS3Uri *string `type:"string"`
  11309. // Provides a breakdown of the number of data objects labeled by humans, the
  11310. // number of objects labeled by machine, the number of objects than couldn't
  11311. // be labeled, and the total number of objects labeled.
  11312. //
  11313. // LabelCounters is a required field
  11314. LabelCounters *LabelCounters `type:"structure" required:"true"`
  11315. // Configuration information for automated data labeling.
  11316. LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"`
  11317. // The Amazon Resource Name (ARN) of the labeling job.
  11318. //
  11319. // LabelingJobArn is a required field
  11320. LabelingJobArn *string `type:"string" required:"true"`
  11321. // The name assigned to the labeling job when it was created.
  11322. //
  11323. // LabelingJobName is a required field
  11324. LabelingJobName *string `min:"1" type:"string" required:"true"`
  11325. // The location of the output produced by the labeling job.
  11326. LabelingJobOutput *LabelingJobOutput `type:"structure"`
  11327. // The processing status of the labeling job.
  11328. //
  11329. // LabelingJobStatus is a required field
  11330. LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"`
  11331. // The date and time that the labeling job was last updated.
  11332. //
  11333. // LastModifiedTime is a required field
  11334. LastModifiedTime *time.Time `type:"timestamp" required:"true"`
  11335. // The location of the job's output data and the AWS Key Management Service
  11336. // key ID for the key used to encrypt the output data, if any.
  11337. //
  11338. // OutputConfig is a required field
  11339. OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"`
  11340. // The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks
  11341. // on your behalf during data labeling.
  11342. //
  11343. // RoleArn is a required field
  11344. RoleArn *string `min:"20" type:"string" required:"true"`
  11345. // A set of conditions for stopping a labeling job. If any of the conditions
  11346. // are met, the job is automatically stopped.
  11347. StoppingConditions *LabelingJobStoppingConditions `type:"structure"`
  11348. // An array of key/value pairs. For more information, see Using Cost Allocation
  11349. // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
  11350. // in the AWS Billing and Cost Management User Guide.
  11351. Tags []*Tag `type:"list"`
  11352. }
  11353. // String returns the string representation
  11354. func (s DescribeLabelingJobOutput) String() string {
  11355. return awsutil.Prettify(s)
  11356. }
  11357. // GoString returns the string representation
  11358. func (s DescribeLabelingJobOutput) GoString() string {
  11359. return s.String()
  11360. }
  11361. // SetCreationTime sets the CreationTime field's value.
  11362. func (s *DescribeLabelingJobOutput) SetCreationTime(v time.Time) *DescribeLabelingJobOutput {
  11363. s.CreationTime = &v
  11364. return s
  11365. }
  11366. // SetFailureReason sets the FailureReason field's value.
  11367. func (s *DescribeLabelingJobOutput) SetFailureReason(v string) *DescribeLabelingJobOutput {
  11368. s.FailureReason = &v
  11369. return s
  11370. }
  11371. // SetHumanTaskConfig sets the HumanTaskConfig field's value.
  11372. func (s *DescribeLabelingJobOutput) SetHumanTaskConfig(v *HumanTaskConfig) *DescribeLabelingJobOutput {
  11373. s.HumanTaskConfig = v
  11374. return s
  11375. }
  11376. // SetInputConfig sets the InputConfig field's value.
  11377. func (s *DescribeLabelingJobOutput) SetInputConfig(v *LabelingJobInputConfig) *DescribeLabelingJobOutput {
  11378. s.InputConfig = v
  11379. return s
  11380. }
  11381. // SetJobReferenceCode sets the JobReferenceCode field's value.
  11382. func (s *DescribeLabelingJobOutput) SetJobReferenceCode(v string) *DescribeLabelingJobOutput {
  11383. s.JobReferenceCode = &v
  11384. return s
  11385. }
  11386. // SetLabelAttributeName sets the LabelAttributeName field's value.
  11387. func (s *DescribeLabelingJobOutput) SetLabelAttributeName(v string) *DescribeLabelingJobOutput {
  11388. s.LabelAttributeName = &v
  11389. return s
  11390. }
  11391. // SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value.
  11392. func (s *DescribeLabelingJobOutput) SetLabelCategoryConfigS3Uri(v string) *DescribeLabelingJobOutput {
  11393. s.LabelCategoryConfigS3Uri = &v
  11394. return s
  11395. }
  11396. // SetLabelCounters sets the LabelCounters field's value.
  11397. func (s *DescribeLabelingJobOutput) SetLabelCounters(v *LabelCounters) *DescribeLabelingJobOutput {
  11398. s.LabelCounters = v
  11399. return s
  11400. }
  11401. // SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value.
  11402. func (s *DescribeLabelingJobOutput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *DescribeLabelingJobOutput {
  11403. s.LabelingJobAlgorithmsConfig = v
  11404. return s
  11405. }
  11406. // SetLabelingJobArn sets the LabelingJobArn field's value.
  11407. func (s *DescribeLabelingJobOutput) SetLabelingJobArn(v string) *DescribeLabelingJobOutput {
  11408. s.LabelingJobArn = &v
  11409. return s
  11410. }
  11411. // SetLabelingJobName sets the LabelingJobName field's value.
  11412. func (s *DescribeLabelingJobOutput) SetLabelingJobName(v string) *DescribeLabelingJobOutput {
  11413. s.LabelingJobName = &v
  11414. return s
  11415. }
  11416. // SetLabelingJobOutput sets the LabelingJobOutput field's value.
  11417. func (s *DescribeLabelingJobOutput) SetLabelingJobOutput(v *LabelingJobOutput) *DescribeLabelingJobOutput {
  11418. s.LabelingJobOutput = v
  11419. return s
  11420. }
  11421. // SetLabelingJobStatus sets the LabelingJobStatus field's value.
  11422. func (s *DescribeLabelingJobOutput) SetLabelingJobStatus(v string) *DescribeLabelingJobOutput {
  11423. s.LabelingJobStatus = &v
  11424. return s
  11425. }
  11426. // SetLastModifiedTime sets the LastModifiedTime field's value.
  11427. func (s *DescribeLabelingJobOutput) SetLastModifiedTime(v time.Time) *DescribeLabelingJobOutput {
  11428. s.LastModifiedTime = &v
  11429. return s
  11430. }
  11431. // SetOutputConfig sets the OutputConfig field's value.
  11432. func (s *DescribeLabelingJobOutput) SetOutputConfig(v *LabelingJobOutputConfig) *DescribeLabelingJobOutput {
  11433. s.OutputConfig = v
  11434. return s
  11435. }
  11436. // SetRoleArn sets the RoleArn field's value.
  11437. func (s *DescribeLabelingJobOutput) SetRoleArn(v string) *DescribeLabelingJobOutput {
  11438. s.RoleArn = &v
  11439. return s
  11440. }
  11441. // SetStoppingConditions sets the StoppingConditions field's value.
  11442. func (s *DescribeLabelingJobOutput) SetStoppingConditions(v *LabelingJobStoppingConditions) *DescribeLabelingJobOutput {
  11443. s.StoppingConditions = v
  11444. return s
  11445. }
  11446. // SetTags sets the Tags field's value.
  11447. func (s *DescribeLabelingJobOutput) SetTags(v []*Tag) *DescribeLabelingJobOutput {
  11448. s.Tags = v
  11449. return s
  11450. }
  11451. type DescribeModelInput struct {
  11452. _ struct{} `type:"structure"`
  11453. // The name of the model.
  11454. //
  11455. // ModelName is a required field
  11456. ModelName *string `type:"string" required:"true"`
  11457. }
  11458. // String returns the string representation
  11459. func (s DescribeModelInput) String() string {
  11460. return awsutil.Prettify(s)
  11461. }
  11462. // GoString returns the string representation
  11463. func (s DescribeModelInput) GoString() string {
  11464. return s.String()
  11465. }
  11466. // Validate inspects the fields of the type to determine if they are valid.
  11467. func (s *DescribeModelInput) Validate() error {
  11468. invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"}
  11469. if s.ModelName == nil {
  11470. invalidParams.Add(request.NewErrParamRequired("ModelName"))
  11471. }
  11472. if invalidParams.Len() > 0 {
  11473. return invalidParams
  11474. }
  11475. return nil
  11476. }
  11477. // SetModelName sets the ModelName field's value.
  11478. func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput {
  11479. s.ModelName = &v
  11480. return s
  11481. }
  11482. type DescribeModelOutput struct {
  11483. _ struct{} `type:"structure"`
  11484. // The containers in the inference pipeline.
  11485. Containers []*ContainerDefinition `type:"list"`
  11486. // A timestamp that shows when the model was created.
  11487. //
  11488. // CreationTime is a required field
  11489. CreationTime *time.Time `type:"timestamp" required:"true"`
  11490. // If True, no inbound or outbound network calls can be made to or from the
  11491. // model container.
  11492. //
  11493. // The Semantic Segmentation built-in algorithm does not support network isolation.
  11494. EnableNetworkIsolation *bool `type:"boolean"`
  11495. // The Amazon Resource Name (ARN) of the IAM role that you specified for the
  11496. // model.
  11497. //
  11498. // ExecutionRoleArn is a required field
  11499. ExecutionRoleArn *string `min:"20" type:"string" required:"true"`
  11500. // The Amazon Resource Name (ARN) of the model.
  11501. //
  11502. // ModelArn is a required field
  11503. ModelArn *string `min:"20" type:"string" required:"true"`
  11504. // Name of the Amazon SageMaker model.
  11505. //
  11506. // ModelName is a required field
  11507. ModelName *string `type:"string" required:"true"`
  11508. // The location of the primary inference code, associated artifacts, and custom
  11509. // environment map that the inference code uses when it is deployed in production.
  11510. PrimaryContainer *ContainerDefinition `type:"structure"`
  11511. // A VpcConfig object that specifies the VPC that this model has access to.
  11512. // For more information, see Protect Endpoints by Using an Amazon Virtual Private
  11513. // Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html)
  11514. VpcConfig *VpcConfig `type:"structure"`
  11515. }
  11516. // String returns the string representation
  11517. func (s DescribeModelOutput) String() string {
  11518. return awsutil.Prettify(s)
  11519. }
  11520. // GoString returns the string representation
  11521. func (s DescribeModelOutput) GoString() string {
  11522. return s.String()
  11523. }
  11524. // SetContainers sets the Containers field's value.
  11525. func (s *DescribeModelOutput) SetContainers(v []*ContainerDefinition) *DescribeModelOutput {
  11526. s.Containers = v
  11527. return s
  11528. }
  11529. // SetCreationTime sets the CreationTime field's value.
  11530. func (s *DescribeModelOutput) SetCreationTime(v time.Time) *DescribeModelOutput {
  11531. s.CreationTime = &v
  11532. return s
  11533. }
  11534. // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
  11535. func (s *DescribeModelOutput) SetEnableNetworkIsolation(v bool) *DescribeModelOutput {
  11536. s.EnableNetworkIsolation = &v
  11537. return s
  11538. }
  11539. // SetExecutionRoleArn sets the ExecutionRoleArn field's value.
  11540. func (s *DescribeModelOutput) SetExecutionRoleArn(v string) *DescribeModelOutput {
  11541. s.ExecutionRoleArn = &v
  11542. return s
  11543. }
  11544. // SetModelArn sets the ModelArn field's value.
  11545. func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput {
  11546. s.ModelArn = &v
  11547. return s
  11548. }
  11549. // SetModelName sets the ModelName field's value.
  11550. func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput {
  11551. s.ModelName = &v
  11552. return s
  11553. }
  11554. // SetPrimaryContainer sets the PrimaryContainer field's value.
  11555. func (s *DescribeModelOutput) SetPrimaryContainer(v *ContainerDefinition) *DescribeModelOutput {
  11556. s.PrimaryContainer = v
  11557. return s
  11558. }
  11559. // SetVpcConfig sets the VpcConfig field's value.
  11560. func (s *DescribeModelOutput) SetVpcConfig(v *VpcConfig) *DescribeModelOutput {
  11561. s.VpcConfig = v
  11562. return s
  11563. }
  11564. type DescribeModelPackageInput struct {
  11565. _ struct{} `type:"structure"`
  11566. // The name of the model package to describe.
  11567. //
  11568. // ModelPackageName is a required field
  11569. ModelPackageName *string `min:"1" type:"string" required:"true"`
  11570. }
  11571. // String returns the string representation
  11572. func (s DescribeModelPackageInput) String() string {
  11573. return awsutil.Prettify(s)
  11574. }
  11575. // GoString returns the string representation
  11576. func (s DescribeModelPackageInput) GoString() string {
  11577. return s.String()
  11578. }
  11579. // Validate inspects the fields of the type to determine if they are valid.
  11580. func (s *DescribeModelPackageInput) Validate() error {
  11581. invalidParams := request.ErrInvalidParams{Context: "DescribeModelPackageInput"}
  11582. if s.ModelPackageName == nil {
  11583. invalidParams.Add(request.NewErrParamRequired("ModelPackageName"))
  11584. }
  11585. if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 {
  11586. invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1))
  11587. }
  11588. if invalidParams.Len() > 0 {
  11589. return invalidParams
  11590. }
  11591. return nil
  11592. }
  11593. // SetModelPackageName sets the ModelPackageName field's value.
  11594. func (s *DescribeModelPackageInput) SetModelPackageName(v string) *DescribeModelPackageInput {
  11595. s.ModelPackageName = &v
  11596. return s
  11597. }
  11598. type DescribeModelPackageOutput struct {
  11599. _ struct{} `type:"structure"`
  11600. // Whether the model package is certified for listing on AWS Marketplace.
  11601. CertifyForMarketplace *bool `type:"boolean"`
  11602. // A timestamp specifying when the model package was created.
  11603. //
  11604. // CreationTime is a required field
  11605. CreationTime *time.Time `type:"timestamp" required:"true"`
  11606. // Details about inference jobs that can be run with models based on this model
  11607. // package.
  11608. InferenceSpecification *InferenceSpecification `type:"structure"`
  11609. // The Amazon Resource Name (ARN) of the model package.
  11610. //
  11611. // ModelPackageArn is a required field
  11612. ModelPackageArn *string `min:"1" type:"string" required:"true"`
  11613. // A brief summary of the model package.
  11614. ModelPackageDescription *string `type:"string"`
  11615. // The name of the model package being described.
  11616. //
  11617. // ModelPackageName is a required field
  11618. ModelPackageName *string `min:"1" type:"string" required:"true"`
  11619. // The current status of the model package.
  11620. //
  11621. // ModelPackageStatus is a required field
  11622. ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"`
  11623. // Details about the current status of the model package.
  11624. //
  11625. // ModelPackageStatusDetails is a required field
  11626. ModelPackageStatusDetails *ModelPackageStatusDetails `type:"structure" required:"true"`
  11627. // Details about the algorithm that was used to create the model package.
  11628. SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"`
  11629. // Configurations for one or more transform jobs that Amazon SageMaker runs
  11630. // to test the model package.
  11631. ValidationSpecification *ModelPackageValidationSpecification `type:"structure"`
  11632. }
  11633. // String returns the string representation
  11634. func (s DescribeModelPackageOutput) String() string {
  11635. return awsutil.Prettify(s)
  11636. }
  11637. // GoString returns the string representation
  11638. func (s DescribeModelPackageOutput) GoString() string {
  11639. return s.String()
  11640. }
  11641. // SetCertifyForMarketplace sets the CertifyForMarketplace field's value.
  11642. func (s *DescribeModelPackageOutput) SetCertifyForMarketplace(v bool) *DescribeModelPackageOutput {
  11643. s.CertifyForMarketplace = &v
  11644. return s
  11645. }
  11646. // SetCreationTime sets the CreationTime field's value.
  11647. func (s *DescribeModelPackageOutput) SetCreationTime(v time.Time) *DescribeModelPackageOutput {
  11648. s.CreationTime = &v
  11649. return s
  11650. }
  11651. // SetInferenceSpecification sets the InferenceSpecification field's value.
  11652. func (s *DescribeModelPackageOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeModelPackageOutput {
  11653. s.InferenceSpecification = v
  11654. return s
  11655. }
  11656. // SetModelPackageArn sets the ModelPackageArn field's value.
  11657. func (s *DescribeModelPackageOutput) SetModelPackageArn(v string) *DescribeModelPackageOutput {
  11658. s.ModelPackageArn = &v
  11659. return s
  11660. }
  11661. // SetModelPackageDescription sets the ModelPackageDescription field's value.
  11662. func (s *DescribeModelPackageOutput) SetModelPackageDescription(v string) *DescribeModelPackageOutput {
  11663. s.ModelPackageDescription = &v
  11664. return s
  11665. }
  11666. // SetModelPackageName sets the ModelPackageName field's value.
  11667. func (s *DescribeModelPackageOutput) SetModelPackageName(v string) *DescribeModelPackageOutput {
  11668. s.ModelPackageName = &v
  11669. return s
  11670. }
  11671. // SetModelPackageStatus sets the ModelPackageStatus field's value.
  11672. func (s *DescribeModelPackageOutput) SetModelPackageStatus(v string) *DescribeModelPackageOutput {
  11673. s.ModelPackageStatus = &v
  11674. return s
  11675. }
  11676. // SetModelPackageStatusDetails sets the ModelPackageStatusDetails field's value.
  11677. func (s *DescribeModelPackageOutput) SetModelPackageStatusDetails(v *ModelPackageStatusDetails) *DescribeModelPackageOutput {
  11678. s.ModelPackageStatusDetails = v
  11679. return s
  11680. }
  11681. // SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value.
  11682. func (s *DescribeModelPackageOutput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *DescribeModelPackageOutput {
  11683. s.SourceAlgorithmSpecification = v
  11684. return s
  11685. }
  11686. // SetValidationSpecification sets the ValidationSpecification field's value.
  11687. func (s *DescribeModelPackageOutput) SetValidationSpecification(v *ModelPackageValidationSpecification) *DescribeModelPackageOutput {
  11688. s.ValidationSpecification = v
  11689. return s
  11690. }
  11691. type DescribeNotebookInstanceInput struct {
  11692. _ struct{} `type:"structure"`
  11693. // The name of the notebook instance that you want information about.
  11694. //
  11695. // NotebookInstanceName is a required field
  11696. NotebookInstanceName *string `type:"string" required:"true"`
  11697. }
  11698. // String returns the string representation
  11699. func (s DescribeNotebookInstanceInput) String() string {
  11700. return awsutil.Prettify(s)
  11701. }
  11702. // GoString returns the string representation
  11703. func (s DescribeNotebookInstanceInput) GoString() string {
  11704. return s.String()
  11705. }
  11706. // Validate inspects the fields of the type to determine if they are valid.
  11707. func (s *DescribeNotebookInstanceInput) Validate() error {
  11708. invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceInput"}
  11709. if s.NotebookInstanceName == nil {
  11710. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
  11711. }
  11712. if invalidParams.Len() > 0 {
  11713. return invalidParams
  11714. }
  11715. return nil
  11716. }
  11717. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  11718. func (s *DescribeNotebookInstanceInput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceInput {
  11719. s.NotebookInstanceName = &v
  11720. return s
  11721. }
  11722. type DescribeNotebookInstanceLifecycleConfigInput struct {
  11723. _ struct{} `type:"structure"`
  11724. // The name of the lifecycle configuration to describe.
  11725. //
  11726. // NotebookInstanceLifecycleConfigName is a required field
  11727. NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
  11728. }
  11729. // String returns the string representation
  11730. func (s DescribeNotebookInstanceLifecycleConfigInput) String() string {
  11731. return awsutil.Prettify(s)
  11732. }
  11733. // GoString returns the string representation
  11734. func (s DescribeNotebookInstanceLifecycleConfigInput) GoString() string {
  11735. return s.String()
  11736. }
  11737. // Validate inspects the fields of the type to determine if they are valid.
  11738. func (s *DescribeNotebookInstanceLifecycleConfigInput) Validate() error {
  11739. invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceLifecycleConfigInput"}
  11740. if s.NotebookInstanceLifecycleConfigName == nil {
  11741. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
  11742. }
  11743. if invalidParams.Len() > 0 {
  11744. return invalidParams
  11745. }
  11746. return nil
  11747. }
  11748. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  11749. func (s *DescribeNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigInput {
  11750. s.NotebookInstanceLifecycleConfigName = &v
  11751. return s
  11752. }
  11753. type DescribeNotebookInstanceLifecycleConfigOutput struct {
  11754. _ struct{} `type:"structure"`
  11755. // A timestamp that tells when the lifecycle configuration was created.
  11756. CreationTime *time.Time `type:"timestamp"`
  11757. // A timestamp that tells when the lifecycle configuration was last modified.
  11758. LastModifiedTime *time.Time `type:"timestamp"`
  11759. // The Amazon Resource Name (ARN) of the lifecycle configuration.
  11760. NotebookInstanceLifecycleConfigArn *string `type:"string"`
  11761. // The name of the lifecycle configuration.
  11762. NotebookInstanceLifecycleConfigName *string `type:"string"`
  11763. // The shell script that runs only once, when you create a notebook instance.
  11764. OnCreate []*NotebookInstanceLifecycleHook `type:"list"`
  11765. // The shell script that runs every time you start a notebook instance, including
  11766. // when you create the notebook instance.
  11767. OnStart []*NotebookInstanceLifecycleHook `type:"list"`
  11768. }
  11769. // String returns the string representation
  11770. func (s DescribeNotebookInstanceLifecycleConfigOutput) String() string {
  11771. return awsutil.Prettify(s)
  11772. }
  11773. // GoString returns the string representation
  11774. func (s DescribeNotebookInstanceLifecycleConfigOutput) GoString() string {
  11775. return s.String()
  11776. }
  11777. // SetCreationTime sets the CreationTime field's value.
  11778. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput {
  11779. s.CreationTime = &v
  11780. return s
  11781. }
  11782. // SetLastModifiedTime sets the LastModifiedTime field's value.
  11783. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput {
  11784. s.LastModifiedTime = &v
  11785. return s
  11786. }
  11787. // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value.
  11788. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *DescribeNotebookInstanceLifecycleConfigOutput {
  11789. s.NotebookInstanceLifecycleConfigArn = &v
  11790. return s
  11791. }
  11792. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  11793. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigOutput {
  11794. s.NotebookInstanceLifecycleConfigName = &v
  11795. return s
  11796. }
  11797. // SetOnCreate sets the OnCreate field's value.
  11798. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput {
  11799. s.OnCreate = v
  11800. return s
  11801. }
  11802. // SetOnStart sets the OnStart field's value.
  11803. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnStart(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput {
  11804. s.OnStart = v
  11805. return s
  11806. }
  11807. type DescribeNotebookInstanceOutput struct {
  11808. _ struct{} `type:"structure"`
  11809. // A list of the Elastic Inference (EI) instance types associated with this
  11810. // notebook instance. Currently only one EI instance type can be associated
  11811. // with a notebook instance. For more information, see Using Elastic Inference
  11812. // in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
  11813. AcceleratorTypes []*string `type:"list"`
  11814. // An array of up to three Git repositories associated with the notebook instance.
  11815. // These can be either the names of Git repositories stored as resources in
  11816. // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  11817. // or in any other Git repository. These repositories are cloned at the same
  11818. // level as the default repository of your notebook instance. For more information,
  11819. // see Associating Git Repositories with Amazon SageMaker Notebook Instances
  11820. // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  11821. AdditionalCodeRepositories []*string `type:"list"`
  11822. // A timestamp. Use this parameter to return the time when the notebook instance
  11823. // was created
  11824. CreationTime *time.Time `type:"timestamp"`
  11825. // The Git repository associated with the notebook instance as its default code
  11826. // repository. This can be either the name of a Git repository stored as a resource
  11827. // in your account, or the URL of a Git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  11828. // or in any other Git repository. When you open a notebook instance, it opens
  11829. // in the directory that contains this repository. For more information, see
  11830. // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  11831. DefaultCodeRepository *string `min:"1" type:"string"`
  11832. // Describes whether Amazon SageMaker provides internet access to the notebook
  11833. // instance. If this value is set to Disabled, he notebook instance does not
  11834. // have internet access, and cannot connect to Amazon SageMaker training and
  11835. // endpoint services.
  11836. //
  11837. // For more information, see Notebook Instances Are Internet-Enabled by Default
  11838. // (http://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access).
  11839. DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"`
  11840. // If status is Failed, the reason it failed.
  11841. FailureReason *string `type:"string"`
  11842. // The type of ML compute instance running on the notebook instance.
  11843. InstanceType *string `type:"string" enum:"InstanceType"`
  11844. // The AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it
  11845. // on the ML storage volume attached to the instance.
  11846. KmsKeyId *string `type:"string"`
  11847. // A timestamp. Use this parameter to retrieve the time when the notebook instance
  11848. // was last modified.
  11849. LastModifiedTime *time.Time `type:"timestamp"`
  11850. // The network interface IDs that Amazon SageMaker created at the time of creating
  11851. // the instance.
  11852. NetworkInterfaceId *string `type:"string"`
  11853. // The Amazon Resource Name (ARN) of the notebook instance.
  11854. NotebookInstanceArn *string `type:"string"`
  11855. // Returns the name of a notebook instance lifecycle configuration.
  11856. //
  11857. // For information about notebook instance lifestyle configurations, see Step
  11858. // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html)
  11859. NotebookInstanceLifecycleConfigName *string `type:"string"`
  11860. // The name of the Amazon SageMaker notebook instance.
  11861. NotebookInstanceName *string `type:"string"`
  11862. // The status of the notebook instance.
  11863. NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"`
  11864. // The Amazon Resource Name (ARN) of the IAM role associated with the instance.
  11865. RoleArn *string `min:"20" type:"string"`
  11866. // The IDs of the VPC security groups.
  11867. SecurityGroups []*string `type:"list"`
  11868. // The ID of the VPC subnet.
  11869. SubnetId *string `type:"string"`
  11870. // The URL that you use to connect to the Jupyter notebook that is running in
  11871. // your notebook instance.
  11872. Url *string `type:"string"`
  11873. // The size, in GB, of the ML storage volume attached to the notebook instance.
  11874. VolumeSizeInGB *int64 `min:"5" type:"integer"`
  11875. }
  11876. // String returns the string representation
  11877. func (s DescribeNotebookInstanceOutput) String() string {
  11878. return awsutil.Prettify(s)
  11879. }
  11880. // GoString returns the string representation
  11881. func (s DescribeNotebookInstanceOutput) GoString() string {
  11882. return s.String()
  11883. }
  11884. // SetAcceleratorTypes sets the AcceleratorTypes field's value.
  11885. func (s *DescribeNotebookInstanceOutput) SetAcceleratorTypes(v []*string) *DescribeNotebookInstanceOutput {
  11886. s.AcceleratorTypes = v
  11887. return s
  11888. }
  11889. // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
  11890. func (s *DescribeNotebookInstanceOutput) SetAdditionalCodeRepositories(v []*string) *DescribeNotebookInstanceOutput {
  11891. s.AdditionalCodeRepositories = v
  11892. return s
  11893. }
  11894. // SetCreationTime sets the CreationTime field's value.
  11895. func (s *DescribeNotebookInstanceOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceOutput {
  11896. s.CreationTime = &v
  11897. return s
  11898. }
  11899. // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
  11900. func (s *DescribeNotebookInstanceOutput) SetDefaultCodeRepository(v string) *DescribeNotebookInstanceOutput {
  11901. s.DefaultCodeRepository = &v
  11902. return s
  11903. }
  11904. // SetDirectInternetAccess sets the DirectInternetAccess field's value.
  11905. func (s *DescribeNotebookInstanceOutput) SetDirectInternetAccess(v string) *DescribeNotebookInstanceOutput {
  11906. s.DirectInternetAccess = &v
  11907. return s
  11908. }
  11909. // SetFailureReason sets the FailureReason field's value.
  11910. func (s *DescribeNotebookInstanceOutput) SetFailureReason(v string) *DescribeNotebookInstanceOutput {
  11911. s.FailureReason = &v
  11912. return s
  11913. }
  11914. // SetInstanceType sets the InstanceType field's value.
  11915. func (s *DescribeNotebookInstanceOutput) SetInstanceType(v string) *DescribeNotebookInstanceOutput {
  11916. s.InstanceType = &v
  11917. return s
  11918. }
  11919. // SetKmsKeyId sets the KmsKeyId field's value.
  11920. func (s *DescribeNotebookInstanceOutput) SetKmsKeyId(v string) *DescribeNotebookInstanceOutput {
  11921. s.KmsKeyId = &v
  11922. return s
  11923. }
  11924. // SetLastModifiedTime sets the LastModifiedTime field's value.
  11925. func (s *DescribeNotebookInstanceOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceOutput {
  11926. s.LastModifiedTime = &v
  11927. return s
  11928. }
  11929. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  11930. func (s *DescribeNotebookInstanceOutput) SetNetworkInterfaceId(v string) *DescribeNotebookInstanceOutput {
  11931. s.NetworkInterfaceId = &v
  11932. return s
  11933. }
  11934. // SetNotebookInstanceArn sets the NotebookInstanceArn field's value.
  11935. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceArn(v string) *DescribeNotebookInstanceOutput {
  11936. s.NotebookInstanceArn = &v
  11937. return s
  11938. }
  11939. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  11940. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceOutput {
  11941. s.NotebookInstanceLifecycleConfigName = &v
  11942. return s
  11943. }
  11944. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  11945. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceOutput {
  11946. s.NotebookInstanceName = &v
  11947. return s
  11948. }
  11949. // SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value.
  11950. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceStatus(v string) *DescribeNotebookInstanceOutput {
  11951. s.NotebookInstanceStatus = &v
  11952. return s
  11953. }
  11954. // SetRoleArn sets the RoleArn field's value.
  11955. func (s *DescribeNotebookInstanceOutput) SetRoleArn(v string) *DescribeNotebookInstanceOutput {
  11956. s.RoleArn = &v
  11957. return s
  11958. }
  11959. // SetSecurityGroups sets the SecurityGroups field's value.
  11960. func (s *DescribeNotebookInstanceOutput) SetSecurityGroups(v []*string) *DescribeNotebookInstanceOutput {
  11961. s.SecurityGroups = v
  11962. return s
  11963. }
  11964. // SetSubnetId sets the SubnetId field's value.
  11965. func (s *DescribeNotebookInstanceOutput) SetSubnetId(v string) *DescribeNotebookInstanceOutput {
  11966. s.SubnetId = &v
  11967. return s
  11968. }
  11969. // SetUrl sets the Url field's value.
  11970. func (s *DescribeNotebookInstanceOutput) SetUrl(v string) *DescribeNotebookInstanceOutput {
  11971. s.Url = &v
  11972. return s
  11973. }
  11974. // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
  11975. func (s *DescribeNotebookInstanceOutput) SetVolumeSizeInGB(v int64) *DescribeNotebookInstanceOutput {
  11976. s.VolumeSizeInGB = &v
  11977. return s
  11978. }
  11979. type DescribeSubscribedWorkteamInput struct {
  11980. _ struct{} `type:"structure"`
  11981. // The Amazon Resource Name (ARN) of the subscribed work team to describe.
  11982. //
  11983. // WorkteamArn is a required field
  11984. WorkteamArn *string `type:"string" required:"true"`
  11985. }
  11986. // String returns the string representation
  11987. func (s DescribeSubscribedWorkteamInput) String() string {
  11988. return awsutil.Prettify(s)
  11989. }
  11990. // GoString returns the string representation
  11991. func (s DescribeSubscribedWorkteamInput) GoString() string {
  11992. return s.String()
  11993. }
  11994. // Validate inspects the fields of the type to determine if they are valid.
  11995. func (s *DescribeSubscribedWorkteamInput) Validate() error {
  11996. invalidParams := request.ErrInvalidParams{Context: "DescribeSubscribedWorkteamInput"}
  11997. if s.WorkteamArn == nil {
  11998. invalidParams.Add(request.NewErrParamRequired("WorkteamArn"))
  11999. }
  12000. if invalidParams.Len() > 0 {
  12001. return invalidParams
  12002. }
  12003. return nil
  12004. }
  12005. // SetWorkteamArn sets the WorkteamArn field's value.
  12006. func (s *DescribeSubscribedWorkteamInput) SetWorkteamArn(v string) *DescribeSubscribedWorkteamInput {
  12007. s.WorkteamArn = &v
  12008. return s
  12009. }
  12010. type DescribeSubscribedWorkteamOutput struct {
  12011. _ struct{} `type:"structure"`
  12012. // A Workteam instance that contains information about the work team.
  12013. //
  12014. // SubscribedWorkteam is a required field
  12015. SubscribedWorkteam *SubscribedWorkteam `type:"structure" required:"true"`
  12016. }
  12017. // String returns the string representation
  12018. func (s DescribeSubscribedWorkteamOutput) String() string {
  12019. return awsutil.Prettify(s)
  12020. }
  12021. // GoString returns the string representation
  12022. func (s DescribeSubscribedWorkteamOutput) GoString() string {
  12023. return s.String()
  12024. }
  12025. // SetSubscribedWorkteam sets the SubscribedWorkteam field's value.
  12026. func (s *DescribeSubscribedWorkteamOutput) SetSubscribedWorkteam(v *SubscribedWorkteam) *DescribeSubscribedWorkteamOutput {
  12027. s.SubscribedWorkteam = v
  12028. return s
  12029. }
  12030. type DescribeTrainingJobInput struct {
  12031. _ struct{} `type:"structure"`
  12032. // The name of the training job.
  12033. //
  12034. // TrainingJobName is a required field
  12035. TrainingJobName *string `min:"1" type:"string" required:"true"`
  12036. }
  12037. // String returns the string representation
  12038. func (s DescribeTrainingJobInput) String() string {
  12039. return awsutil.Prettify(s)
  12040. }
  12041. // GoString returns the string representation
  12042. func (s DescribeTrainingJobInput) GoString() string {
  12043. return s.String()
  12044. }
  12045. // Validate inspects the fields of the type to determine if they are valid.
  12046. func (s *DescribeTrainingJobInput) Validate() error {
  12047. invalidParams := request.ErrInvalidParams{Context: "DescribeTrainingJobInput"}
  12048. if s.TrainingJobName == nil {
  12049. invalidParams.Add(request.NewErrParamRequired("TrainingJobName"))
  12050. }
  12051. if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 {
  12052. invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1))
  12053. }
  12054. if invalidParams.Len() > 0 {
  12055. return invalidParams
  12056. }
  12057. return nil
  12058. }
  12059. // SetTrainingJobName sets the TrainingJobName field's value.
  12060. func (s *DescribeTrainingJobInput) SetTrainingJobName(v string) *DescribeTrainingJobInput {
  12061. s.TrainingJobName = &v
  12062. return s
  12063. }
  12064. type DescribeTrainingJobOutput struct {
  12065. _ struct{} `type:"structure"`
  12066. // Information about the algorithm used for training, and algorithm metadata.
  12067. //
  12068. // AlgorithmSpecification is a required field
  12069. AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"`
  12070. // A timestamp that indicates when the training job was created.
  12071. //
  12072. // CreationTime is a required field
  12073. CreationTime *time.Time `type:"timestamp" required:"true"`
  12074. // To encrypt all communications between ML compute instances in distributed
  12075. // training, specify True. Encryption provides greater security for distributed
  12076. // training, but training take longer because of the additional communications
  12077. // between ML compute instances.
  12078. EnableInterContainerTrafficEncryption *bool `type:"boolean"`
  12079. // If you want to allow inbound or outbound network calls, except for calls
  12080. // between peers within a training cluster for distributed training, choose
  12081. // True. If you enable network isolation for training jobs that are configured
  12082. // to use a VPC, Amazon SageMaker downloads and uploads customer data and model
  12083. // artifacts through the specified VPC, but the training container does not
  12084. // have network access.
  12085. //
  12086. // The Semantic Segmentation built-in algorithm does not support network isolation.
  12087. EnableNetworkIsolation *bool `type:"boolean"`
  12088. // If the training job failed, the reason it failed.
  12089. FailureReason *string `type:"string"`
  12090. // A collection of MetricData objects that specify the names, values, and dates
  12091. // and times that the training algorithm emitted to Amazon CloudWatch.
  12092. FinalMetricDataList []*MetricData `type:"list"`
  12093. // Algorithm-specific parameters.
  12094. HyperParameters map[string]*string `type:"map"`
  12095. // An array of Channel objects that describes each data input channel.
  12096. InputDataConfig []*Channel `min:"1" type:"list"`
  12097. // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling
  12098. // job that created the transform or training job.
  12099. LabelingJobArn *string `type:"string"`
  12100. // A timestamp that indicates when the status of the training job was last modified.
  12101. LastModifiedTime *time.Time `type:"timestamp"`
  12102. // Information about the Amazon S3 location that is configured for storing model
  12103. // artifacts.
  12104. //
  12105. // ModelArtifacts is a required field
  12106. ModelArtifacts *ModelArtifacts `type:"structure" required:"true"`
  12107. // The S3 path where model artifacts that you configured when creating the job
  12108. // are stored. Amazon SageMaker creates subfolders for model artifacts.
  12109. OutputDataConfig *OutputDataConfig `type:"structure"`
  12110. // Resources, including ML compute instances and ML storage volumes, that are
  12111. // configured for model training.
  12112. //
  12113. // ResourceConfig is a required field
  12114. ResourceConfig *ResourceConfig `type:"structure" required:"true"`
  12115. // The AWS Identity and Access Management (IAM) role configured for the training
  12116. // job.
  12117. RoleArn *string `min:"20" type:"string"`
  12118. // Provides detailed information about the state of the training job. For detailed
  12119. // information on the secondary status of the training job, see StatusMessage
  12120. // under SecondaryStatusTransition.
  12121. //
  12122. // Amazon SageMaker provides primary statuses and secondary statuses that apply
  12123. // to each of them:
  12124. //
  12125. // InProgressStarting - Starting the training job.
  12126. //
  12127. // Downloading - An optional stage for algorithms that support File training
  12128. // input mode. It indicates that data is being downloaded to the ML storage
  12129. // volumes.
  12130. //
  12131. // Training - Training is in progress.
  12132. //
  12133. // Uploading - Training is complete and the model artifacts are being uploaded
  12134. // to the S3 location.
  12135. //
  12136. // CompletedCompleted - The training job has completed.
  12137. //
  12138. // FailedFailed - The training job has failed. The reason for the failure is
  12139. // returned in the FailureReason field of DescribeTrainingJobResponse.
  12140. //
  12141. // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum
  12142. // allowed runtime.
  12143. //
  12144. // Stopped - The training job has stopped.
  12145. //
  12146. // StoppingStopping - Stopping the training job.
  12147. //
  12148. // Valid values for SecondaryStatus are subject to change.
  12149. //
  12150. // We no longer support the following secondary statuses:
  12151. //
  12152. // * LaunchingMLInstances
  12153. //
  12154. // * PreparingTrainingStack
  12155. //
  12156. // * DownloadingTrainingImage
  12157. //
  12158. // SecondaryStatus is a required field
  12159. SecondaryStatus *string `type:"string" required:"true" enum:"SecondaryStatus"`
  12160. // A history of all of the secondary statuses that the training job has transitioned
  12161. // through.
  12162. SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"`
  12163. // The condition under which to stop the training job.
  12164. //
  12165. // StoppingCondition is a required field
  12166. StoppingCondition *StoppingCondition `type:"structure" required:"true"`
  12167. // Indicates the time when the training job ends on training instances. You
  12168. // are billed for the time interval between the value of TrainingStartTime and
  12169. // this time. For successful jobs and stopped jobs, this is the time after model
  12170. // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
  12171. // detects a job failure.
  12172. TrainingEndTime *time.Time `type:"timestamp"`
  12173. // The Amazon Resource Name (ARN) of the training job.
  12174. //
  12175. // TrainingJobArn is a required field
  12176. TrainingJobArn *string `type:"string" required:"true"`
  12177. // Name of the model training job.
  12178. //
  12179. // TrainingJobName is a required field
  12180. TrainingJobName *string `min:"1" type:"string" required:"true"`
  12181. // The status of the training job.
  12182. //
  12183. // Amazon SageMaker provides the following training job statuses:
  12184. //
  12185. // * InProgress - The training is in progress.
  12186. //
  12187. // * Completed - The training job has completed.
  12188. //
  12189. // * Failed - The training job has failed. To see the reason for the failure,
  12190. // see the FailureReason field in the response to a DescribeTrainingJobResponse
  12191. // call.
  12192. //
  12193. // * Stopping - The training job is stopping.
  12194. //
  12195. // * Stopped - The training job has stopped.
  12196. //
  12197. // For more detailed information, see SecondaryStatus.
  12198. //
  12199. // TrainingJobStatus is a required field
  12200. TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"`
  12201. // Indicates the time when the training job starts on training instances. You
  12202. // are billed for the time interval between this time and the value of TrainingEndTime.
  12203. // The start time in CloudWatch Logs might be later than this time. The difference
  12204. // is due to the time it takes to download the training data and to the size
  12205. // of the training container.
  12206. TrainingStartTime *time.Time `type:"timestamp"`
  12207. // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job
  12208. // if the training job was launched by a hyperparameter tuning job.
  12209. TuningJobArn *string `type:"string"`
  12210. // A VpcConfig object that specifies the VPC that this training job has access
  12211. // to. For more information, see Protect Training Jobs by Using an Amazon Virtual
  12212. // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
  12213. VpcConfig *VpcConfig `type:"structure"`
  12214. }
  12215. // String returns the string representation
  12216. func (s DescribeTrainingJobOutput) String() string {
  12217. return awsutil.Prettify(s)
  12218. }
  12219. // GoString returns the string representation
  12220. func (s DescribeTrainingJobOutput) GoString() string {
  12221. return s.String()
  12222. }
  12223. // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
  12224. func (s *DescribeTrainingJobOutput) SetAlgorithmSpecification(v *AlgorithmSpecification) *DescribeTrainingJobOutput {
  12225. s.AlgorithmSpecification = v
  12226. return s
  12227. }
  12228. // SetCreationTime sets the CreationTime field's value.
  12229. func (s *DescribeTrainingJobOutput) SetCreationTime(v time.Time) *DescribeTrainingJobOutput {
  12230. s.CreationTime = &v
  12231. return s
  12232. }
  12233. // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value.
  12234. func (s *DescribeTrainingJobOutput) SetEnableInterContainerTrafficEncryption(v bool) *DescribeTrainingJobOutput {
  12235. s.EnableInterContainerTrafficEncryption = &v
  12236. return s
  12237. }
  12238. // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
  12239. func (s *DescribeTrainingJobOutput) SetEnableNetworkIsolation(v bool) *DescribeTrainingJobOutput {
  12240. s.EnableNetworkIsolation = &v
  12241. return s
  12242. }
  12243. // SetFailureReason sets the FailureReason field's value.
  12244. func (s *DescribeTrainingJobOutput) SetFailureReason(v string) *DescribeTrainingJobOutput {
  12245. s.FailureReason = &v
  12246. return s
  12247. }
  12248. // SetFinalMetricDataList sets the FinalMetricDataList field's value.
  12249. func (s *DescribeTrainingJobOutput) SetFinalMetricDataList(v []*MetricData) *DescribeTrainingJobOutput {
  12250. s.FinalMetricDataList = v
  12251. return s
  12252. }
  12253. // SetHyperParameters sets the HyperParameters field's value.
  12254. func (s *DescribeTrainingJobOutput) SetHyperParameters(v map[string]*string) *DescribeTrainingJobOutput {
  12255. s.HyperParameters = v
  12256. return s
  12257. }
  12258. // SetInputDataConfig sets the InputDataConfig field's value.
  12259. func (s *DescribeTrainingJobOutput) SetInputDataConfig(v []*Channel) *DescribeTrainingJobOutput {
  12260. s.InputDataConfig = v
  12261. return s
  12262. }
  12263. // SetLabelingJobArn sets the LabelingJobArn field's value.
  12264. func (s *DescribeTrainingJobOutput) SetLabelingJobArn(v string) *DescribeTrainingJobOutput {
  12265. s.LabelingJobArn = &v
  12266. return s
  12267. }
  12268. // SetLastModifiedTime sets the LastModifiedTime field's value.
  12269. func (s *DescribeTrainingJobOutput) SetLastModifiedTime(v time.Time) *DescribeTrainingJobOutput {
  12270. s.LastModifiedTime = &v
  12271. return s
  12272. }
  12273. // SetModelArtifacts sets the ModelArtifacts field's value.
  12274. func (s *DescribeTrainingJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeTrainingJobOutput {
  12275. s.ModelArtifacts = v
  12276. return s
  12277. }
  12278. // SetOutputDataConfig sets the OutputDataConfig field's value.
  12279. func (s *DescribeTrainingJobOutput) SetOutputDataConfig(v *OutputDataConfig) *DescribeTrainingJobOutput {
  12280. s.OutputDataConfig = v
  12281. return s
  12282. }
  12283. // SetResourceConfig sets the ResourceConfig field's value.
  12284. func (s *DescribeTrainingJobOutput) SetResourceConfig(v *ResourceConfig) *DescribeTrainingJobOutput {
  12285. s.ResourceConfig = v
  12286. return s
  12287. }
  12288. // SetRoleArn sets the RoleArn field's value.
  12289. func (s *DescribeTrainingJobOutput) SetRoleArn(v string) *DescribeTrainingJobOutput {
  12290. s.RoleArn = &v
  12291. return s
  12292. }
  12293. // SetSecondaryStatus sets the SecondaryStatus field's value.
  12294. func (s *DescribeTrainingJobOutput) SetSecondaryStatus(v string) *DescribeTrainingJobOutput {
  12295. s.SecondaryStatus = &v
  12296. return s
  12297. }
  12298. // SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value.
  12299. func (s *DescribeTrainingJobOutput) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *DescribeTrainingJobOutput {
  12300. s.SecondaryStatusTransitions = v
  12301. return s
  12302. }
  12303. // SetStoppingCondition sets the StoppingCondition field's value.
  12304. func (s *DescribeTrainingJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeTrainingJobOutput {
  12305. s.StoppingCondition = v
  12306. return s
  12307. }
  12308. // SetTrainingEndTime sets the TrainingEndTime field's value.
  12309. func (s *DescribeTrainingJobOutput) SetTrainingEndTime(v time.Time) *DescribeTrainingJobOutput {
  12310. s.TrainingEndTime = &v
  12311. return s
  12312. }
  12313. // SetTrainingJobArn sets the TrainingJobArn field's value.
  12314. func (s *DescribeTrainingJobOutput) SetTrainingJobArn(v string) *DescribeTrainingJobOutput {
  12315. s.TrainingJobArn = &v
  12316. return s
  12317. }
  12318. // SetTrainingJobName sets the TrainingJobName field's value.
  12319. func (s *DescribeTrainingJobOutput) SetTrainingJobName(v string) *DescribeTrainingJobOutput {
  12320. s.TrainingJobName = &v
  12321. return s
  12322. }
  12323. // SetTrainingJobStatus sets the TrainingJobStatus field's value.
  12324. func (s *DescribeTrainingJobOutput) SetTrainingJobStatus(v string) *DescribeTrainingJobOutput {
  12325. s.TrainingJobStatus = &v
  12326. return s
  12327. }
  12328. // SetTrainingStartTime sets the TrainingStartTime field's value.
  12329. func (s *DescribeTrainingJobOutput) SetTrainingStartTime(v time.Time) *DescribeTrainingJobOutput {
  12330. s.TrainingStartTime = &v
  12331. return s
  12332. }
  12333. // SetTuningJobArn sets the TuningJobArn field's value.
  12334. func (s *DescribeTrainingJobOutput) SetTuningJobArn(v string) *DescribeTrainingJobOutput {
  12335. s.TuningJobArn = &v
  12336. return s
  12337. }
  12338. // SetVpcConfig sets the VpcConfig field's value.
  12339. func (s *DescribeTrainingJobOutput) SetVpcConfig(v *VpcConfig) *DescribeTrainingJobOutput {
  12340. s.VpcConfig = v
  12341. return s
  12342. }
  12343. type DescribeTransformJobInput struct {
  12344. _ struct{} `type:"structure"`
  12345. // The name of the transform job that you want to view details of.
  12346. //
  12347. // TransformJobName is a required field
  12348. TransformJobName *string `min:"1" type:"string" required:"true"`
  12349. }
  12350. // String returns the string representation
  12351. func (s DescribeTransformJobInput) String() string {
  12352. return awsutil.Prettify(s)
  12353. }
  12354. // GoString returns the string representation
  12355. func (s DescribeTransformJobInput) GoString() string {
  12356. return s.String()
  12357. }
  12358. // Validate inspects the fields of the type to determine if they are valid.
  12359. func (s *DescribeTransformJobInput) Validate() error {
  12360. invalidParams := request.ErrInvalidParams{Context: "DescribeTransformJobInput"}
  12361. if s.TransformJobName == nil {
  12362. invalidParams.Add(request.NewErrParamRequired("TransformJobName"))
  12363. }
  12364. if s.TransformJobName != nil && len(*s.TransformJobName) < 1 {
  12365. invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1))
  12366. }
  12367. if invalidParams.Len() > 0 {
  12368. return invalidParams
  12369. }
  12370. return nil
  12371. }
  12372. // SetTransformJobName sets the TransformJobName field's value.
  12373. func (s *DescribeTransformJobInput) SetTransformJobName(v string) *DescribeTransformJobInput {
  12374. s.TransformJobName = &v
  12375. return s
  12376. }
  12377. type DescribeTransformJobOutput struct {
  12378. _ struct{} `type:"structure"`
  12379. // If you want to include only one record in a batch, specify SingleRecord..
  12380. // If you want batches to contain a maximum of the number of records specified
  12381. // in the MaxPayloadInMB parameter, specify MultiRecord.S
  12382. BatchStrategy *string `type:"string" enum:"BatchStrategy"`
  12383. // A timestamp that shows when the transform Job was created.
  12384. //
  12385. // CreationTime is a required field
  12386. CreationTime *time.Time `type:"timestamp" required:"true"`
  12387. Environment map[string]*string `type:"map"`
  12388. // If the transform job failed, the reason that it failed.
  12389. FailureReason *string `type:"string"`
  12390. // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling
  12391. // job that created the transform or training job.
  12392. LabelingJobArn *string `type:"string"`
  12393. // The maximum number of parallel requests on each instance node that can be
  12394. // launched in a transform job. The default value is 1.
  12395. MaxConcurrentTransforms *int64 `type:"integer"`
  12396. // The maximum payload size, in MB, used in the transform job.
  12397. MaxPayloadInMB *int64 `type:"integer"`
  12398. // The name of the model used in the transform job.
  12399. //
  12400. // ModelName is a required field
  12401. ModelName *string `type:"string" required:"true"`
  12402. // Indicates when the transform job has been completed, or has stopped or failed.
  12403. // You are billed for the time interval between this time and the value of TransformStartTime.
  12404. TransformEndTime *time.Time `type:"timestamp"`
  12405. // Describes the dataset to be transformed and the Amazon S3 location where
  12406. // it is stored.
  12407. //
  12408. // TransformInput is a required field
  12409. TransformInput *TransformInput `type:"structure" required:"true"`
  12410. // The Amazon Resource Name (ARN) of the transform job.
  12411. //
  12412. // TransformJobArn is a required field
  12413. TransformJobArn *string `type:"string" required:"true"`
  12414. // The name of the transform job.
  12415. //
  12416. // TransformJobName is a required field
  12417. TransformJobName *string `min:"1" type:"string" required:"true"`
  12418. // The status of the transform job. If the transform job failed, the reason
  12419. // is returned in the FailureReason field.
  12420. //
  12421. // TransformJobStatus is a required field
  12422. TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"`
  12423. // Identifies the Amazon S3 location where you want Amazon SageMaker to save
  12424. // the results from the transform job.
  12425. TransformOutput *TransformOutput `type:"structure"`
  12426. // Describes the resources, including ML instance types and ML instance count,
  12427. // to use for the transform job.
  12428. //
  12429. // TransformResources is a required field
  12430. TransformResources *TransformResources `type:"structure" required:"true"`
  12431. // Indicates when the transform job starts on ML instances. You are billed for
  12432. // the time interval between this time and the value of TransformEndTime.
  12433. TransformStartTime *time.Time `type:"timestamp"`
  12434. }
  12435. // String returns the string representation
  12436. func (s DescribeTransformJobOutput) String() string {
  12437. return awsutil.Prettify(s)
  12438. }
  12439. // GoString returns the string representation
  12440. func (s DescribeTransformJobOutput) GoString() string {
  12441. return s.String()
  12442. }
  12443. // SetBatchStrategy sets the BatchStrategy field's value.
  12444. func (s *DescribeTransformJobOutput) SetBatchStrategy(v string) *DescribeTransformJobOutput {
  12445. s.BatchStrategy = &v
  12446. return s
  12447. }
  12448. // SetCreationTime sets the CreationTime field's value.
  12449. func (s *DescribeTransformJobOutput) SetCreationTime(v time.Time) *DescribeTransformJobOutput {
  12450. s.CreationTime = &v
  12451. return s
  12452. }
  12453. // SetEnvironment sets the Environment field's value.
  12454. func (s *DescribeTransformJobOutput) SetEnvironment(v map[string]*string) *DescribeTransformJobOutput {
  12455. s.Environment = v
  12456. return s
  12457. }
  12458. // SetFailureReason sets the FailureReason field's value.
  12459. func (s *DescribeTransformJobOutput) SetFailureReason(v string) *DescribeTransformJobOutput {
  12460. s.FailureReason = &v
  12461. return s
  12462. }
  12463. // SetLabelingJobArn sets the LabelingJobArn field's value.
  12464. func (s *DescribeTransformJobOutput) SetLabelingJobArn(v string) *DescribeTransformJobOutput {
  12465. s.LabelingJobArn = &v
  12466. return s
  12467. }
  12468. // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value.
  12469. func (s *DescribeTransformJobOutput) SetMaxConcurrentTransforms(v int64) *DescribeTransformJobOutput {
  12470. s.MaxConcurrentTransforms = &v
  12471. return s
  12472. }
  12473. // SetMaxPayloadInMB sets the MaxPayloadInMB field's value.
  12474. func (s *DescribeTransformJobOutput) SetMaxPayloadInMB(v int64) *DescribeTransformJobOutput {
  12475. s.MaxPayloadInMB = &v
  12476. return s
  12477. }
  12478. // SetModelName sets the ModelName field's value.
  12479. func (s *DescribeTransformJobOutput) SetModelName(v string) *DescribeTransformJobOutput {
  12480. s.ModelName = &v
  12481. return s
  12482. }
  12483. // SetTransformEndTime sets the TransformEndTime field's value.
  12484. func (s *DescribeTransformJobOutput) SetTransformEndTime(v time.Time) *DescribeTransformJobOutput {
  12485. s.TransformEndTime = &v
  12486. return s
  12487. }
  12488. // SetTransformInput sets the TransformInput field's value.
  12489. func (s *DescribeTransformJobOutput) SetTransformInput(v *TransformInput) *DescribeTransformJobOutput {
  12490. s.TransformInput = v
  12491. return s
  12492. }
  12493. // SetTransformJobArn sets the TransformJobArn field's value.
  12494. func (s *DescribeTransformJobOutput) SetTransformJobArn(v string) *DescribeTransformJobOutput {
  12495. s.TransformJobArn = &v
  12496. return s
  12497. }
  12498. // SetTransformJobName sets the TransformJobName field's value.
  12499. func (s *DescribeTransformJobOutput) SetTransformJobName(v string) *DescribeTransformJobOutput {
  12500. s.TransformJobName = &v
  12501. return s
  12502. }
  12503. // SetTransformJobStatus sets the TransformJobStatus field's value.
  12504. func (s *DescribeTransformJobOutput) SetTransformJobStatus(v string) *DescribeTransformJobOutput {
  12505. s.TransformJobStatus = &v
  12506. return s
  12507. }
  12508. // SetTransformOutput sets the TransformOutput field's value.
  12509. func (s *DescribeTransformJobOutput) SetTransformOutput(v *TransformOutput) *DescribeTransformJobOutput {
  12510. s.TransformOutput = v
  12511. return s
  12512. }
  12513. // SetTransformResources sets the TransformResources field's value.
  12514. func (s *DescribeTransformJobOutput) SetTransformResources(v *TransformResources) *DescribeTransformJobOutput {
  12515. s.TransformResources = v
  12516. return s
  12517. }
  12518. // SetTransformStartTime sets the TransformStartTime field's value.
  12519. func (s *DescribeTransformJobOutput) SetTransformStartTime(v time.Time) *DescribeTransformJobOutput {
  12520. s.TransformStartTime = &v
  12521. return s
  12522. }
  12523. type DescribeWorkteamInput struct {
  12524. _ struct{} `type:"structure"`
  12525. // The name of the work team to return a description of.
  12526. //
  12527. // WorkteamName is a required field
  12528. WorkteamName *string `min:"1" type:"string" required:"true"`
  12529. }
  12530. // String returns the string representation
  12531. func (s DescribeWorkteamInput) String() string {
  12532. return awsutil.Prettify(s)
  12533. }
  12534. // GoString returns the string representation
  12535. func (s DescribeWorkteamInput) GoString() string {
  12536. return s.String()
  12537. }
  12538. // Validate inspects the fields of the type to determine if they are valid.
  12539. func (s *DescribeWorkteamInput) Validate() error {
  12540. invalidParams := request.ErrInvalidParams{Context: "DescribeWorkteamInput"}
  12541. if s.WorkteamName == nil {
  12542. invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
  12543. }
  12544. if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
  12545. invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
  12546. }
  12547. if invalidParams.Len() > 0 {
  12548. return invalidParams
  12549. }
  12550. return nil
  12551. }
  12552. // SetWorkteamName sets the WorkteamName field's value.
  12553. func (s *DescribeWorkteamInput) SetWorkteamName(v string) *DescribeWorkteamInput {
  12554. s.WorkteamName = &v
  12555. return s
  12556. }
  12557. type DescribeWorkteamOutput struct {
  12558. _ struct{} `type:"structure"`
  12559. // A Workteam instance that contains information about the work team.
  12560. //
  12561. // Workteam is a required field
  12562. Workteam *Workteam `type:"structure" required:"true"`
  12563. }
  12564. // String returns the string representation
  12565. func (s DescribeWorkteamOutput) String() string {
  12566. return awsutil.Prettify(s)
  12567. }
  12568. // GoString returns the string representation
  12569. func (s DescribeWorkteamOutput) GoString() string {
  12570. return s.String()
  12571. }
  12572. // SetWorkteam sets the Workteam field's value.
  12573. func (s *DescribeWorkteamOutput) SetWorkteam(v *Workteam) *DescribeWorkteamOutput {
  12574. s.Workteam = v
  12575. return s
  12576. }
  12577. // Specifies weight and capacity values for a production variant.
  12578. type DesiredWeightAndCapacity struct {
  12579. _ struct{} `type:"structure"`
  12580. // The variant's capacity.
  12581. DesiredInstanceCount *int64 `min:"1" type:"integer"`
  12582. // The variant's weight.
  12583. DesiredWeight *float64 `type:"float"`
  12584. // The name of the variant to update.
  12585. //
  12586. // VariantName is a required field
  12587. VariantName *string `type:"string" required:"true"`
  12588. }
  12589. // String returns the string representation
  12590. func (s DesiredWeightAndCapacity) String() string {
  12591. return awsutil.Prettify(s)
  12592. }
  12593. // GoString returns the string representation
  12594. func (s DesiredWeightAndCapacity) GoString() string {
  12595. return s.String()
  12596. }
  12597. // Validate inspects the fields of the type to determine if they are valid.
  12598. func (s *DesiredWeightAndCapacity) Validate() error {
  12599. invalidParams := request.ErrInvalidParams{Context: "DesiredWeightAndCapacity"}
  12600. if s.DesiredInstanceCount != nil && *s.DesiredInstanceCount < 1 {
  12601. invalidParams.Add(request.NewErrParamMinValue("DesiredInstanceCount", 1))
  12602. }
  12603. if s.VariantName == nil {
  12604. invalidParams.Add(request.NewErrParamRequired("VariantName"))
  12605. }
  12606. if invalidParams.Len() > 0 {
  12607. return invalidParams
  12608. }
  12609. return nil
  12610. }
  12611. // SetDesiredInstanceCount sets the DesiredInstanceCount field's value.
  12612. func (s *DesiredWeightAndCapacity) SetDesiredInstanceCount(v int64) *DesiredWeightAndCapacity {
  12613. s.DesiredInstanceCount = &v
  12614. return s
  12615. }
  12616. // SetDesiredWeight sets the DesiredWeight field's value.
  12617. func (s *DesiredWeightAndCapacity) SetDesiredWeight(v float64) *DesiredWeightAndCapacity {
  12618. s.DesiredWeight = &v
  12619. return s
  12620. }
  12621. // SetVariantName sets the VariantName field's value.
  12622. func (s *DesiredWeightAndCapacity) SetVariantName(v string) *DesiredWeightAndCapacity {
  12623. s.VariantName = &v
  12624. return s
  12625. }
  12626. // Provides summary information for an endpoint configuration.
  12627. type EndpointConfigSummary struct {
  12628. _ struct{} `type:"structure"`
  12629. // A timestamp that shows when the endpoint configuration was created.
  12630. //
  12631. // CreationTime is a required field
  12632. CreationTime *time.Time `type:"timestamp" required:"true"`
  12633. // The Amazon Resource Name (ARN) of the endpoint configuration.
  12634. //
  12635. // EndpointConfigArn is a required field
  12636. EndpointConfigArn *string `min:"20" type:"string" required:"true"`
  12637. // The name of the endpoint configuration.
  12638. //
  12639. // EndpointConfigName is a required field
  12640. EndpointConfigName *string `type:"string" required:"true"`
  12641. }
  12642. // String returns the string representation
  12643. func (s EndpointConfigSummary) String() string {
  12644. return awsutil.Prettify(s)
  12645. }
  12646. // GoString returns the string representation
  12647. func (s EndpointConfigSummary) GoString() string {
  12648. return s.String()
  12649. }
  12650. // SetCreationTime sets the CreationTime field's value.
  12651. func (s *EndpointConfigSummary) SetCreationTime(v time.Time) *EndpointConfigSummary {
  12652. s.CreationTime = &v
  12653. return s
  12654. }
  12655. // SetEndpointConfigArn sets the EndpointConfigArn field's value.
  12656. func (s *EndpointConfigSummary) SetEndpointConfigArn(v string) *EndpointConfigSummary {
  12657. s.EndpointConfigArn = &v
  12658. return s
  12659. }
  12660. // SetEndpointConfigName sets the EndpointConfigName field's value.
  12661. func (s *EndpointConfigSummary) SetEndpointConfigName(v string) *EndpointConfigSummary {
  12662. s.EndpointConfigName = &v
  12663. return s
  12664. }
  12665. // Provides summary information for an endpoint.
  12666. type EndpointSummary struct {
  12667. _ struct{} `type:"structure"`
  12668. // A timestamp that shows when the endpoint was created.
  12669. //
  12670. // CreationTime is a required field
  12671. CreationTime *time.Time `type:"timestamp" required:"true"`
  12672. // The Amazon Resource Name (ARN) of the endpoint.
  12673. //
  12674. // EndpointArn is a required field
  12675. EndpointArn *string `min:"20" type:"string" required:"true"`
  12676. // The name of the endpoint.
  12677. //
  12678. // EndpointName is a required field
  12679. EndpointName *string `type:"string" required:"true"`
  12680. // The status of the endpoint.
  12681. //
  12682. // * OutOfService: Endpoint is not available to take incoming requests.
  12683. //
  12684. // * Creating: CreateEndpoint is executing.
  12685. //
  12686. // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
  12687. //
  12688. // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated
  12689. // or deleted or re-scaled until it has completed. This mainenance operation
  12690. // does not change any customer-specified values such as VPC config, KMS
  12691. // encryption, model, instance type, or instance count.
  12692. //
  12693. // * RollingBack: Endpoint fails to scale up or down or change its variant
  12694. // weight and is in the process of rolling back to its previous configuration.
  12695. // Once the rollback completes, endpoint returns to an InService status.
  12696. // This transitional status only applies to an endpoint that has autoscaling
  12697. // enabled and is undergoing variant weight or capacity changes as part of
  12698. // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities
  12699. // operation is called explicitly.
  12700. //
  12701. // * InService: Endpoint is available to process incoming requests.
  12702. //
  12703. // * Deleting: DeleteEndpoint is executing.
  12704. //
  12705. // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason
  12706. // for information about the failure. DeleteEndpoint is the only operation
  12707. // that can be performed on a failed endpoint.
  12708. //
  12709. // To get a list of endpoints with a specified status, use the ListEndpointsInput$StatusEquals
  12710. // filter.
  12711. //
  12712. // EndpointStatus is a required field
  12713. EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"`
  12714. // A timestamp that shows when the endpoint was last modified.
  12715. //
  12716. // LastModifiedTime is a required field
  12717. LastModifiedTime *time.Time `type:"timestamp" required:"true"`
  12718. }
  12719. // String returns the string representation
  12720. func (s EndpointSummary) String() string {
  12721. return awsutil.Prettify(s)
  12722. }
  12723. // GoString returns the string representation
  12724. func (s EndpointSummary) GoString() string {
  12725. return s.String()
  12726. }
  12727. // SetCreationTime sets the CreationTime field's value.
  12728. func (s *EndpointSummary) SetCreationTime(v time.Time) *EndpointSummary {
  12729. s.CreationTime = &v
  12730. return s
  12731. }
  12732. // SetEndpointArn sets the EndpointArn field's value.
  12733. func (s *EndpointSummary) SetEndpointArn(v string) *EndpointSummary {
  12734. s.EndpointArn = &v
  12735. return s
  12736. }
  12737. // SetEndpointName sets the EndpointName field's value.
  12738. func (s *EndpointSummary) SetEndpointName(v string) *EndpointSummary {
  12739. s.EndpointName = &v
  12740. return s
  12741. }
  12742. // SetEndpointStatus sets the EndpointStatus field's value.
  12743. func (s *EndpointSummary) SetEndpointStatus(v string) *EndpointSummary {
  12744. s.EndpointStatus = &v
  12745. return s
  12746. }
  12747. // SetLastModifiedTime sets the LastModifiedTime field's value.
  12748. func (s *EndpointSummary) SetLastModifiedTime(v time.Time) *EndpointSummary {
  12749. s.LastModifiedTime = &v
  12750. return s
  12751. }
  12752. // A conditional statement for a search expression that includes a Boolean operator,
  12753. // a resource property, and a value.
  12754. //
  12755. // If you don't specify an Operator and a Value, the filter searches for only
  12756. // the specified property. For example, defining a Filter for the FailureReason
  12757. // for the TrainingJobResource searches for training job objects that have a
  12758. // value in the FailureReason field.
  12759. //
  12760. // If you specify a Value, but not an Operator, Amazon SageMaker uses the equals
  12761. // operator as the default.
  12762. //
  12763. // In search, there are several property types:
  12764. //
  12765. // MetricsTo define a metric filter, enter a value using the form "Metrics.<name>",
  12766. // where <name> is a metric name. For example, the following filter searches
  12767. // for training jobs with an "accuracy" metric greater than "0.9":
  12768. //
  12769. // {
  12770. //
  12771. // "Name": "Metrics.accuracy",
  12772. //
  12773. // "Operator": "GREATER_THAN",
  12774. //
  12775. // "Value": "0.9"
  12776. //
  12777. // }
  12778. //
  12779. // HyperParametersTo define a hyperparameter filter, enter a value with the
  12780. // form "HyperParameters.<name>". Decimal hyperparameter values are treated
  12781. // as a decimal in a comparison if the specified Value is also a decimal value.
  12782. // If the specified Value is an integer, the decimal hyperparameter values are
  12783. // treated as integers. For example, the following filter is satisfied by training
  12784. // jobs with a "learning_rate" hyperparameter that is less than "0.5":
  12785. //
  12786. // {
  12787. //
  12788. // "Name": "HyperParameters.learning_rate",
  12789. //
  12790. // "Operator": "LESS_THAN",
  12791. //
  12792. // "Value": "0.5"
  12793. //
  12794. // }
  12795. //
  12796. // TagsTo define a tag filter, enter a value with the form "Tags.<key>".
  12797. type Filter struct {
  12798. _ struct{} `type:"structure"`
  12799. // A property name. For example, TrainingJobName. For the list of valid property
  12800. // names returned in a search result for each supported resource, see TrainingJob
  12801. // properties. You must specify a valid property name for the resource.
  12802. //
  12803. // Name is a required field
  12804. Name *string `min:"1" type:"string" required:"true"`
  12805. // A Boolean binary operator that is used to evaluate the filter. The operator
  12806. // field contains one of the following values:
  12807. //
  12808. // EqualsThe specified resource in Name equals the specified Value.
  12809. //
  12810. // NotEqualsThe specified resource in Name does not equal the specified Value.
  12811. //
  12812. // GreaterThanThe specified resource in Name is greater than the specified Value.
  12813. // Not supported for text-based properties.
  12814. //
  12815. // GreaterThanOrEqualToThe specified resource in Name is greater than or equal
  12816. // to the specified Value. Not supported for text-based properties.
  12817. //
  12818. // LessThanThe specified resource in Name is less than the specified Value.
  12819. // Not supported for text-based properties.
  12820. //
  12821. // LessThanOrEqualToThe specified resource in Name is less than or equal to
  12822. // the specified Value. Not supported for text-based properties.
  12823. //
  12824. // ContainsOnly supported for text-based properties. The word-list of the property
  12825. // contains the specified Value.
  12826. //
  12827. // If you have specified a filter Value, the default is Equals.
  12828. Operator *string `type:"string" enum:"Operator"`
  12829. // A value used with Resource and Operator to determine if objects satisfy the
  12830. // filter's condition. For numerical properties, Value must be an integer or
  12831. // floating-point decimal. For timestamp properties, Value must be an ISO 8601
  12832. // date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS.
  12833. Value *string `min:"1" type:"string"`
  12834. }
  12835. // String returns the string representation
  12836. func (s Filter) String() string {
  12837. return awsutil.Prettify(s)
  12838. }
  12839. // GoString returns the string representation
  12840. func (s Filter) GoString() string {
  12841. return s.String()
  12842. }
  12843. // Validate inspects the fields of the type to determine if they are valid.
  12844. func (s *Filter) Validate() error {
  12845. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  12846. if s.Name == nil {
  12847. invalidParams.Add(request.NewErrParamRequired("Name"))
  12848. }
  12849. if s.Name != nil && len(*s.Name) < 1 {
  12850. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  12851. }
  12852. if s.Value != nil && len(*s.Value) < 1 {
  12853. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  12854. }
  12855. if invalidParams.Len() > 0 {
  12856. return invalidParams
  12857. }
  12858. return nil
  12859. }
  12860. // SetName sets the Name field's value.
  12861. func (s *Filter) SetName(v string) *Filter {
  12862. s.Name = &v
  12863. return s
  12864. }
  12865. // SetOperator sets the Operator field's value.
  12866. func (s *Filter) SetOperator(v string) *Filter {
  12867. s.Operator = &v
  12868. return s
  12869. }
  12870. // SetValue sets the Value field's value.
  12871. func (s *Filter) SetValue(v string) *Filter {
  12872. s.Value = &v
  12873. return s
  12874. }
  12875. // Shows the final value for the objective metric for a training job that was
  12876. // launched by a hyperparameter tuning job. You define the objective metric
  12877. // in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig.
  12878. type FinalHyperParameterTuningJobObjectiveMetric struct {
  12879. _ struct{} `type:"structure"`
  12880. // The name of the objective metric.
  12881. //
  12882. // MetricName is a required field
  12883. MetricName *string `min:"1" type:"string" required:"true"`
  12884. // Whether to minimize or maximize the objective metric. Valid values are Minimize
  12885. // and Maximize.
  12886. Type *string `type:"string" enum:"HyperParameterTuningJobObjectiveType"`
  12887. // The value of the objective metric.
  12888. //
  12889. // Value is a required field
  12890. Value *float64 `type:"float" required:"true"`
  12891. }
  12892. // String returns the string representation
  12893. func (s FinalHyperParameterTuningJobObjectiveMetric) String() string {
  12894. return awsutil.Prettify(s)
  12895. }
  12896. // GoString returns the string representation
  12897. func (s FinalHyperParameterTuningJobObjectiveMetric) GoString() string {
  12898. return s.String()
  12899. }
  12900. // SetMetricName sets the MetricName field's value.
  12901. func (s *FinalHyperParameterTuningJobObjectiveMetric) SetMetricName(v string) *FinalHyperParameterTuningJobObjectiveMetric {
  12902. s.MetricName = &v
  12903. return s
  12904. }
  12905. // SetType sets the Type field's value.
  12906. func (s *FinalHyperParameterTuningJobObjectiveMetric) SetType(v string) *FinalHyperParameterTuningJobObjectiveMetric {
  12907. s.Type = &v
  12908. return s
  12909. }
  12910. // SetValue sets the Value field's value.
  12911. func (s *FinalHyperParameterTuningJobObjectiveMetric) SetValue(v float64) *FinalHyperParameterTuningJobObjectiveMetric {
  12912. s.Value = &v
  12913. return s
  12914. }
  12915. type GetSearchSuggestionsInput struct {
  12916. _ struct{} `type:"structure"`
  12917. // The name of the Amazon SageMaker resource to Search for. The only valid Resource
  12918. // value is TrainingJob.
  12919. //
  12920. // Resource is a required field
  12921. Resource *string `type:"string" required:"true" enum:"ResourceType"`
  12922. // Limits the property names that are included in the response.
  12923. SuggestionQuery *SuggestionQuery `type:"structure"`
  12924. }
  12925. // String returns the string representation
  12926. func (s GetSearchSuggestionsInput) String() string {
  12927. return awsutil.Prettify(s)
  12928. }
  12929. // GoString returns the string representation
  12930. func (s GetSearchSuggestionsInput) GoString() string {
  12931. return s.String()
  12932. }
  12933. // Validate inspects the fields of the type to determine if they are valid.
  12934. func (s *GetSearchSuggestionsInput) Validate() error {
  12935. invalidParams := request.ErrInvalidParams{Context: "GetSearchSuggestionsInput"}
  12936. if s.Resource == nil {
  12937. invalidParams.Add(request.NewErrParamRequired("Resource"))
  12938. }
  12939. if s.SuggestionQuery != nil {
  12940. if err := s.SuggestionQuery.Validate(); err != nil {
  12941. invalidParams.AddNested("SuggestionQuery", err.(request.ErrInvalidParams))
  12942. }
  12943. }
  12944. if invalidParams.Len() > 0 {
  12945. return invalidParams
  12946. }
  12947. return nil
  12948. }
  12949. // SetResource sets the Resource field's value.
  12950. func (s *GetSearchSuggestionsInput) SetResource(v string) *GetSearchSuggestionsInput {
  12951. s.Resource = &v
  12952. return s
  12953. }
  12954. // SetSuggestionQuery sets the SuggestionQuery field's value.
  12955. func (s *GetSearchSuggestionsInput) SetSuggestionQuery(v *SuggestionQuery) *GetSearchSuggestionsInput {
  12956. s.SuggestionQuery = v
  12957. return s
  12958. }
  12959. type GetSearchSuggestionsOutput struct {
  12960. _ struct{} `type:"structure"`
  12961. // A list of property names for a Resource that match a SuggestionQuery.
  12962. PropertyNameSuggestions []*PropertyNameSuggestion `type:"list"`
  12963. }
  12964. // String returns the string representation
  12965. func (s GetSearchSuggestionsOutput) String() string {
  12966. return awsutil.Prettify(s)
  12967. }
  12968. // GoString returns the string representation
  12969. func (s GetSearchSuggestionsOutput) GoString() string {
  12970. return s.String()
  12971. }
  12972. // SetPropertyNameSuggestions sets the PropertyNameSuggestions field's value.
  12973. func (s *GetSearchSuggestionsOutput) SetPropertyNameSuggestions(v []*PropertyNameSuggestion) *GetSearchSuggestionsOutput {
  12974. s.PropertyNameSuggestions = v
  12975. return s
  12976. }
  12977. // Specifies configuration details for a Git repository in your AWS account.
  12978. type GitConfig struct {
  12979. _ struct{} `type:"structure"`
  12980. // The default branch for the Git repository.
  12981. Branch *string `min:"1" type:"string"`
  12982. // The URL where the Git repository is located.
  12983. //
  12984. // RepositoryUrl is a required field
  12985. RepositoryUrl *string `type:"string" required:"true"`
  12986. // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains
  12987. // the credentials used to access the git repository. The secret must have a
  12988. // staging label of AWSCURRENT and must be in the following format:
  12989. //
  12990. // {"username": UserName, "password": Password}
  12991. SecretArn *string `min:"1" type:"string"`
  12992. }
  12993. // String returns the string representation
  12994. func (s GitConfig) String() string {
  12995. return awsutil.Prettify(s)
  12996. }
  12997. // GoString returns the string representation
  12998. func (s GitConfig) GoString() string {
  12999. return s.String()
  13000. }
  13001. // Validate inspects the fields of the type to determine if they are valid.
  13002. func (s *GitConfig) Validate() error {
  13003. invalidParams := request.ErrInvalidParams{Context: "GitConfig"}
  13004. if s.Branch != nil && len(*s.Branch) < 1 {
  13005. invalidParams.Add(request.NewErrParamMinLen("Branch", 1))
  13006. }
  13007. if s.RepositoryUrl == nil {
  13008. invalidParams.Add(request.NewErrParamRequired("RepositoryUrl"))
  13009. }
  13010. if s.SecretArn != nil && len(*s.SecretArn) < 1 {
  13011. invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1))
  13012. }
  13013. if invalidParams.Len() > 0 {
  13014. return invalidParams
  13015. }
  13016. return nil
  13017. }
  13018. // SetBranch sets the Branch field's value.
  13019. func (s *GitConfig) SetBranch(v string) *GitConfig {
  13020. s.Branch = &v
  13021. return s
  13022. }
  13023. // SetRepositoryUrl sets the RepositoryUrl field's value.
  13024. func (s *GitConfig) SetRepositoryUrl(v string) *GitConfig {
  13025. s.RepositoryUrl = &v
  13026. return s
  13027. }
  13028. // SetSecretArn sets the SecretArn field's value.
  13029. func (s *GitConfig) SetSecretArn(v string) *GitConfig {
  13030. s.SecretArn = &v
  13031. return s
  13032. }
  13033. // Specifies configuration details for a Git repository when the repository
  13034. // is updated.
  13035. type GitConfigForUpdate struct {
  13036. _ struct{} `type:"structure"`
  13037. // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains
  13038. // the credentials used to access the git repository. The secret must have a
  13039. // staging label of AWSCURRENT and must be in the following format:
  13040. //
  13041. // {"username": UserName, "password": Password}
  13042. SecretArn *string `min:"1" type:"string"`
  13043. }
  13044. // String returns the string representation
  13045. func (s GitConfigForUpdate) String() string {
  13046. return awsutil.Prettify(s)
  13047. }
  13048. // GoString returns the string representation
  13049. func (s GitConfigForUpdate) GoString() string {
  13050. return s.String()
  13051. }
  13052. // Validate inspects the fields of the type to determine if they are valid.
  13053. func (s *GitConfigForUpdate) Validate() error {
  13054. invalidParams := request.ErrInvalidParams{Context: "GitConfigForUpdate"}
  13055. if s.SecretArn != nil && len(*s.SecretArn) < 1 {
  13056. invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1))
  13057. }
  13058. if invalidParams.Len() > 0 {
  13059. return invalidParams
  13060. }
  13061. return nil
  13062. }
  13063. // SetSecretArn sets the SecretArn field's value.
  13064. func (s *GitConfigForUpdate) SetSecretArn(v string) *GitConfigForUpdate {
  13065. s.SecretArn = &v
  13066. return s
  13067. }
  13068. // Information required for human workers to complete a labeling task.
  13069. type HumanTaskConfig struct {
  13070. _ struct{} `type:"structure"`
  13071. // Configures how labels are consolidated across human workers.
  13072. //
  13073. // AnnotationConsolidationConfig is a required field
  13074. AnnotationConsolidationConfig *AnnotationConsolidationConfig `type:"structure" required:"true"`
  13075. // Defines the maximum number of data objects that can be labeled by human workers
  13076. // at the same time. Each object may have more than one worker at one time.
  13077. MaxConcurrentTaskCount *int64 `min:"1" type:"integer"`
  13078. // The number of human workers that will label an object.
  13079. //
  13080. // NumberOfHumanWorkersPerDataObject is a required field
  13081. NumberOfHumanWorkersPerDataObject *int64 `min:"1" type:"integer" required:"true"`
  13082. // The Amazon Resource Name (ARN) of a Lambda function that is run before a
  13083. // data object is sent to a human worker. Use this function to provide input
  13084. // to a custom labeling job.
  13085. //
  13086. // For the built-in bounding box, image classification, semantic segmentation,
  13087. // and text classification task types, Amazon SageMaker Ground Truth provides
  13088. // the following Lambda functions:
  13089. //
  13090. // US East (Northern Virginia) (us-east-1):
  13091. //
  13092. // * arn:aws:lambda:us-east-1:432418664414:function:PRE-BoundingBox
  13093. //
  13094. // * arn:aws:lambda:us-east-1:432418664414:function:PRE-ImageMultiClass
  13095. //
  13096. // * arn:aws:lambda:us-east-1:432418664414:function:PRE-SemanticSegmentation
  13097. //
  13098. // * arn:aws:lambda:us-east-1:432418664414:function:PRE-TextMultiClass
  13099. //
  13100. // US East (Ohio) (us-east-2):
  13101. //
  13102. // * arn:aws:lambda:us-east-2:266458841044:function:PRE-BoundingBox
  13103. //
  13104. // * arn:aws:lambda:us-east-2:266458841044:function:PRE-ImageMultiClass
  13105. //
  13106. // * arn:aws:lambda:us-east-2:266458841044:function:PRE-SemanticSegmentation
  13107. //
  13108. // * arn:aws:lambda:us-east-2:266458841044:function:PRE-TextMultiClass
  13109. //
  13110. // US West (Oregon) (us-west-2):
  13111. //
  13112. // * arn:aws:lambda:us-west-2:081040173940:function:PRE-BoundingBox
  13113. //
  13114. // * arn:aws:lambda:us-west-2:081040173940:function:PRE-ImageMultiClass
  13115. //
  13116. // * arn:aws:lambda:us-west-2:081040173940:function:PRE-SemanticSegmentation
  13117. //
  13118. // * arn:aws:lambda:us-west-2:081040173940:function:PRE-TextMultiClass
  13119. //
  13120. // EU (Ireland) (eu-west-1):
  13121. //
  13122. // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-BoundingBox
  13123. //
  13124. // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-ImageMultiClass
  13125. //
  13126. // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-SemanticSegmentation
  13127. //
  13128. // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-TextMultiClass
  13129. //
  13130. // Asia Pacific (Tokyo (ap-northeast-1):
  13131. //
  13132. // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-BoundingBox
  13133. //
  13134. // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-ImageMultiClass
  13135. //
  13136. // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-SemanticSegmentation
  13137. //
  13138. // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-TextMultiClass
  13139. //
  13140. // PreHumanTaskLambdaArn is a required field
  13141. PreHumanTaskLambdaArn *string `type:"string" required:"true"`
  13142. // The price that you pay for each task performed by a public worker.
  13143. PublicWorkforceTaskPrice *PublicWorkforceTaskPrice `type:"structure"`
  13144. // The length of time that a task remains available for labelling by human workers.
  13145. TaskAvailabilityLifetimeInSeconds *int64 `min:"1" type:"integer"`
  13146. // A description of the task for your human workers.
  13147. //
  13148. // TaskDescription is a required field
  13149. TaskDescription *string `min:"1" type:"string" required:"true"`
  13150. // Keywords used to describe the task so that workers on Amazon Mechanical Turk
  13151. // can discover the task.
  13152. TaskKeywords []*string `min:"1" type:"list"`
  13153. // The amount of time that a worker has to complete a task.
  13154. //
  13155. // TaskTimeLimitInSeconds is a required field
  13156. TaskTimeLimitInSeconds *int64 `min:"1" type:"integer" required:"true"`
  13157. // A title for the task for your human workers.
  13158. //
  13159. // TaskTitle is a required field
  13160. TaskTitle *string `min:"1" type:"string" required:"true"`
  13161. // Information about the user interface that workers use to complete the labeling
  13162. // task.
  13163. //
  13164. // UiConfig is a required field
  13165. UiConfig *UiConfig `type:"structure" required:"true"`
  13166. // The Amazon Resource Name (ARN) of the work team assigned to complete the
  13167. // tasks.
  13168. //
  13169. // WorkteamArn is a required field
  13170. WorkteamArn *string `type:"string" required:"true"`
  13171. }
  13172. // String returns the string representation
  13173. func (s HumanTaskConfig) String() string {
  13174. return awsutil.Prettify(s)
  13175. }
  13176. // GoString returns the string representation
  13177. func (s HumanTaskConfig) GoString() string {
  13178. return s.String()
  13179. }
  13180. // Validate inspects the fields of the type to determine if they are valid.
  13181. func (s *HumanTaskConfig) Validate() error {
  13182. invalidParams := request.ErrInvalidParams{Context: "HumanTaskConfig"}
  13183. if s.AnnotationConsolidationConfig == nil {
  13184. invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationConfig"))
  13185. }
  13186. if s.MaxConcurrentTaskCount != nil && *s.MaxConcurrentTaskCount < 1 {
  13187. invalidParams.Add(request.NewErrParamMinValue("MaxConcurrentTaskCount", 1))
  13188. }
  13189. if s.NumberOfHumanWorkersPerDataObject == nil {
  13190. invalidParams.Add(request.NewErrParamRequired("NumberOfHumanWorkersPerDataObject"))
  13191. }
  13192. if s.NumberOfHumanWorkersPerDataObject != nil && *s.NumberOfHumanWorkersPerDataObject < 1 {
  13193. invalidParams.Add(request.NewErrParamMinValue("NumberOfHumanWorkersPerDataObject", 1))
  13194. }
  13195. if s.PreHumanTaskLambdaArn == nil {
  13196. invalidParams.Add(request.NewErrParamRequired("PreHumanTaskLambdaArn"))
  13197. }
  13198. if s.TaskAvailabilityLifetimeInSeconds != nil && *s.TaskAvailabilityLifetimeInSeconds < 1 {
  13199. invalidParams.Add(request.NewErrParamMinValue("TaskAvailabilityLifetimeInSeconds", 1))
  13200. }
  13201. if s.TaskDescription == nil {
  13202. invalidParams.Add(request.NewErrParamRequired("TaskDescription"))
  13203. }
  13204. if s.TaskDescription != nil && len(*s.TaskDescription) < 1 {
  13205. invalidParams.Add(request.NewErrParamMinLen("TaskDescription", 1))
  13206. }
  13207. if s.TaskKeywords != nil && len(s.TaskKeywords) < 1 {
  13208. invalidParams.Add(request.NewErrParamMinLen("TaskKeywords", 1))
  13209. }
  13210. if s.TaskTimeLimitInSeconds == nil {
  13211. invalidParams.Add(request.NewErrParamRequired("TaskTimeLimitInSeconds"))
  13212. }
  13213. if s.TaskTimeLimitInSeconds != nil && *s.TaskTimeLimitInSeconds < 1 {
  13214. invalidParams.Add(request.NewErrParamMinValue("TaskTimeLimitInSeconds", 1))
  13215. }
  13216. if s.TaskTitle == nil {
  13217. invalidParams.Add(request.NewErrParamRequired("TaskTitle"))
  13218. }
  13219. if s.TaskTitle != nil && len(*s.TaskTitle) < 1 {
  13220. invalidParams.Add(request.NewErrParamMinLen("TaskTitle", 1))
  13221. }
  13222. if s.UiConfig == nil {
  13223. invalidParams.Add(request.NewErrParamRequired("UiConfig"))
  13224. }
  13225. if s.WorkteamArn == nil {
  13226. invalidParams.Add(request.NewErrParamRequired("WorkteamArn"))
  13227. }
  13228. if s.AnnotationConsolidationConfig != nil {
  13229. if err := s.AnnotationConsolidationConfig.Validate(); err != nil {
  13230. invalidParams.AddNested("AnnotationConsolidationConfig", err.(request.ErrInvalidParams))
  13231. }
  13232. }
  13233. if s.UiConfig != nil {
  13234. if err := s.UiConfig.Validate(); err != nil {
  13235. invalidParams.AddNested("UiConfig", err.(request.ErrInvalidParams))
  13236. }
  13237. }
  13238. if invalidParams.Len() > 0 {
  13239. return invalidParams
  13240. }
  13241. return nil
  13242. }
  13243. // SetAnnotationConsolidationConfig sets the AnnotationConsolidationConfig field's value.
  13244. func (s *HumanTaskConfig) SetAnnotationConsolidationConfig(v *AnnotationConsolidationConfig) *HumanTaskConfig {
  13245. s.AnnotationConsolidationConfig = v
  13246. return s
  13247. }
  13248. // SetMaxConcurrentTaskCount sets the MaxConcurrentTaskCount field's value.
  13249. func (s *HumanTaskConfig) SetMaxConcurrentTaskCount(v int64) *HumanTaskConfig {
  13250. s.MaxConcurrentTaskCount = &v
  13251. return s
  13252. }
  13253. // SetNumberOfHumanWorkersPerDataObject sets the NumberOfHumanWorkersPerDataObject field's value.
  13254. func (s *HumanTaskConfig) SetNumberOfHumanWorkersPerDataObject(v int64) *HumanTaskConfig {
  13255. s.NumberOfHumanWorkersPerDataObject = &v
  13256. return s
  13257. }
  13258. // SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value.
  13259. func (s *HumanTaskConfig) SetPreHumanTaskLambdaArn(v string) *HumanTaskConfig {
  13260. s.PreHumanTaskLambdaArn = &v
  13261. return s
  13262. }
  13263. // SetPublicWorkforceTaskPrice sets the PublicWorkforceTaskPrice field's value.
  13264. func (s *HumanTaskConfig) SetPublicWorkforceTaskPrice(v *PublicWorkforceTaskPrice) *HumanTaskConfig {
  13265. s.PublicWorkforceTaskPrice = v
  13266. return s
  13267. }
  13268. // SetTaskAvailabilityLifetimeInSeconds sets the TaskAvailabilityLifetimeInSeconds field's value.
  13269. func (s *HumanTaskConfig) SetTaskAvailabilityLifetimeInSeconds(v int64) *HumanTaskConfig {
  13270. s.TaskAvailabilityLifetimeInSeconds = &v
  13271. return s
  13272. }
  13273. // SetTaskDescription sets the TaskDescription field's value.
  13274. func (s *HumanTaskConfig) SetTaskDescription(v string) *HumanTaskConfig {
  13275. s.TaskDescription = &v
  13276. return s
  13277. }
  13278. // SetTaskKeywords sets the TaskKeywords field's value.
  13279. func (s *HumanTaskConfig) SetTaskKeywords(v []*string) *HumanTaskConfig {
  13280. s.TaskKeywords = v
  13281. return s
  13282. }
  13283. // SetTaskTimeLimitInSeconds sets the TaskTimeLimitInSeconds field's value.
  13284. func (s *HumanTaskConfig) SetTaskTimeLimitInSeconds(v int64) *HumanTaskConfig {
  13285. s.TaskTimeLimitInSeconds = &v
  13286. return s
  13287. }
  13288. // SetTaskTitle sets the TaskTitle field's value.
  13289. func (s *HumanTaskConfig) SetTaskTitle(v string) *HumanTaskConfig {
  13290. s.TaskTitle = &v
  13291. return s
  13292. }
  13293. // SetUiConfig sets the UiConfig field's value.
  13294. func (s *HumanTaskConfig) SetUiConfig(v *UiConfig) *HumanTaskConfig {
  13295. s.UiConfig = v
  13296. return s
  13297. }
  13298. // SetWorkteamArn sets the WorkteamArn field's value.
  13299. func (s *HumanTaskConfig) SetWorkteamArn(v string) *HumanTaskConfig {
  13300. s.WorkteamArn = &v
  13301. return s
  13302. }
  13303. // Specifies which training algorithm to use for training jobs that a hyperparameter
  13304. // tuning job launches and the metrics to monitor.
  13305. type HyperParameterAlgorithmSpecification struct {
  13306. _ struct{} `type:"structure"`
  13307. // The name of the resource algorithm to use for the hyperparameter tuning job.
  13308. // If you specify a value for this parameter, do not specify a value for TrainingImage.
  13309. AlgorithmName *string `min:"1" type:"string"`
  13310. // An array of MetricDefinition objects that specify the metrics that the algorithm
  13311. // emits.
  13312. MetricDefinitions []*MetricDefinition `type:"list"`
  13313. // The registry path of the Docker image that contains the training algorithm.
  13314. // For information about Docker registry paths for built-in algorithms, see
  13315. // Algorithms Provided by Amazon SageMaker: Common Parameters (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html).
  13316. TrainingImage *string `type:"string"`
  13317. // The input mode that the algorithm supports: File or Pipe. In File input mode,
  13318. // Amazon SageMaker downloads the training data from Amazon S3 to the storage
  13319. // volume that is attached to the training instance and mounts the directory
  13320. // to the Docker volume for the training container. In Pipe input mode, Amazon
  13321. // SageMaker streams data directly from Amazon S3 to the container.
  13322. //
  13323. // If you specify File mode, make sure that you provision the storage volume
  13324. // that is attached to the training instance with enough capacity to accommodate
  13325. // the training data downloaded from Amazon S3, the model artifacts, and intermediate
  13326. // information.
  13327. //
  13328. // For more information about input modes, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html)
  13329. //
  13330. // TrainingInputMode is a required field
  13331. TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"`
  13332. }
  13333. // String returns the string representation
  13334. func (s HyperParameterAlgorithmSpecification) String() string {
  13335. return awsutil.Prettify(s)
  13336. }
  13337. // GoString returns the string representation
  13338. func (s HyperParameterAlgorithmSpecification) GoString() string {
  13339. return s.String()
  13340. }
  13341. // Validate inspects the fields of the type to determine if they are valid.
  13342. func (s *HyperParameterAlgorithmSpecification) Validate() error {
  13343. invalidParams := request.ErrInvalidParams{Context: "HyperParameterAlgorithmSpecification"}
  13344. if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
  13345. invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
  13346. }
  13347. if s.TrainingInputMode == nil {
  13348. invalidParams.Add(request.NewErrParamRequired("TrainingInputMode"))
  13349. }
  13350. if s.MetricDefinitions != nil {
  13351. for i, v := range s.MetricDefinitions {
  13352. if v == nil {
  13353. continue
  13354. }
  13355. if err := v.Validate(); err != nil {
  13356. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams))
  13357. }
  13358. }
  13359. }
  13360. if invalidParams.Len() > 0 {
  13361. return invalidParams
  13362. }
  13363. return nil
  13364. }
  13365. // SetAlgorithmName sets the AlgorithmName field's value.
  13366. func (s *HyperParameterAlgorithmSpecification) SetAlgorithmName(v string) *HyperParameterAlgorithmSpecification {
  13367. s.AlgorithmName = &v
  13368. return s
  13369. }
  13370. // SetMetricDefinitions sets the MetricDefinitions field's value.
  13371. func (s *HyperParameterAlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *HyperParameterAlgorithmSpecification {
  13372. s.MetricDefinitions = v
  13373. return s
  13374. }
  13375. // SetTrainingImage sets the TrainingImage field's value.
  13376. func (s *HyperParameterAlgorithmSpecification) SetTrainingImage(v string) *HyperParameterAlgorithmSpecification {
  13377. s.TrainingImage = &v
  13378. return s
  13379. }
  13380. // SetTrainingInputMode sets the TrainingInputMode field's value.
  13381. func (s *HyperParameterAlgorithmSpecification) SetTrainingInputMode(v string) *HyperParameterAlgorithmSpecification {
  13382. s.TrainingInputMode = &v
  13383. return s
  13384. }
  13385. // Defines a hyperparameter to be used by an algorithm.
  13386. type HyperParameterSpecification struct {
  13387. _ struct{} `type:"structure"`
  13388. // The default value for this hyperparameter. If a default value is specified,
  13389. // a hyperparameter cannot be required.
  13390. DefaultValue *string `type:"string"`
  13391. // A brief description of the hyperparameter.
  13392. Description *string `type:"string"`
  13393. // Indicates whether this hyperparameter is required.
  13394. IsRequired *bool `type:"boolean"`
  13395. // Indicates whether this hyperparameter is tunable in a hyperparameter tuning
  13396. // job.
  13397. IsTunable *bool `type:"boolean"`
  13398. // The name of this hyperparameter. The name must be unique.
  13399. //
  13400. // Name is a required field
  13401. Name *string `type:"string" required:"true"`
  13402. // The allowed range for this hyperparameter.
  13403. Range *ParameterRange `type:"structure"`
  13404. // The type of this hyperparameter. The valid types are Integer, Continuous,
  13405. // Categorical, and FreeText.
  13406. //
  13407. // Type is a required field
  13408. Type *string `type:"string" required:"true" enum:"ParameterType"`
  13409. }
  13410. // String returns the string representation
  13411. func (s HyperParameterSpecification) String() string {
  13412. return awsutil.Prettify(s)
  13413. }
  13414. // GoString returns the string representation
  13415. func (s HyperParameterSpecification) GoString() string {
  13416. return s.String()
  13417. }
  13418. // Validate inspects the fields of the type to determine if they are valid.
  13419. func (s *HyperParameterSpecification) Validate() error {
  13420. invalidParams := request.ErrInvalidParams{Context: "HyperParameterSpecification"}
  13421. if s.Name == nil {
  13422. invalidParams.Add(request.NewErrParamRequired("Name"))
  13423. }
  13424. if s.Type == nil {
  13425. invalidParams.Add(request.NewErrParamRequired("Type"))
  13426. }
  13427. if s.Range != nil {
  13428. if err := s.Range.Validate(); err != nil {
  13429. invalidParams.AddNested("Range", err.(request.ErrInvalidParams))
  13430. }
  13431. }
  13432. if invalidParams.Len() > 0 {
  13433. return invalidParams
  13434. }
  13435. return nil
  13436. }
  13437. // SetDefaultValue sets the DefaultValue field's value.
  13438. func (s *HyperParameterSpecification) SetDefaultValue(v string) *HyperParameterSpecification {
  13439. s.DefaultValue = &v
  13440. return s
  13441. }
  13442. // SetDescription sets the Description field's value.
  13443. func (s *HyperParameterSpecification) SetDescription(v string) *HyperParameterSpecification {
  13444. s.Description = &v
  13445. return s
  13446. }
  13447. // SetIsRequired sets the IsRequired field's value.
  13448. func (s *HyperParameterSpecification) SetIsRequired(v bool) *HyperParameterSpecification {
  13449. s.IsRequired = &v
  13450. return s
  13451. }
  13452. // SetIsTunable sets the IsTunable field's value.
  13453. func (s *HyperParameterSpecification) SetIsTunable(v bool) *HyperParameterSpecification {
  13454. s.IsTunable = &v
  13455. return s
  13456. }
  13457. // SetName sets the Name field's value.
  13458. func (s *HyperParameterSpecification) SetName(v string) *HyperParameterSpecification {
  13459. s.Name = &v
  13460. return s
  13461. }
  13462. // SetRange sets the Range field's value.
  13463. func (s *HyperParameterSpecification) SetRange(v *ParameterRange) *HyperParameterSpecification {
  13464. s.Range = v
  13465. return s
  13466. }
  13467. // SetType sets the Type field's value.
  13468. func (s *HyperParameterSpecification) SetType(v string) *HyperParameterSpecification {
  13469. s.Type = &v
  13470. return s
  13471. }
  13472. // Defines the training jobs launched by a hyperparameter tuning job.
  13473. type HyperParameterTrainingJobDefinition struct {
  13474. _ struct{} `type:"structure"`
  13475. // The HyperParameterAlgorithmSpecification object that specifies the resource
  13476. // algorithm to use for the training jobs that the tuning job launches.
  13477. //
  13478. // AlgorithmSpecification is a required field
  13479. AlgorithmSpecification *HyperParameterAlgorithmSpecification `type:"structure" required:"true"`
  13480. // To encrypt all communications between ML compute instances in distributed
  13481. // training, specify True. Encryption provides greater security for distributed
  13482. // training, but training take longer because of the additional communications
  13483. // between ML compute instances.
  13484. EnableInterContainerTrafficEncryption *bool `type:"boolean"`
  13485. // Isolates the training container. No inbound or outbound network calls can
  13486. // be made, except for calls between peers within a training cluster for distributed
  13487. // training. If network isolation is used for training jobs that are configured
  13488. // to use a VPC, Amazon SageMaker downloads and uploads customer data and model
  13489. // artifacts through the specified VPC, but the training container does not
  13490. // have network access.
  13491. //
  13492. // The Semantic Segmentation built-in algorithm does not support network isolation.
  13493. EnableNetworkIsolation *bool `type:"boolean"`
  13494. // An array of Channel objects that specify the input for the training jobs
  13495. // that the tuning job launches.
  13496. InputDataConfig []*Channel `min:"1" type:"list"`
  13497. // Specifies the path to the Amazon S3 bucket where you store model artifacts
  13498. // from the training jobs that the tuning job launches.
  13499. //
  13500. // OutputDataConfig is a required field
  13501. OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
  13502. // The resources, including the compute instances and storage volumes, to use
  13503. // for the training jobs that the tuning job launches.
  13504. //
  13505. // Storage volumes store model artifacts and incremental states. Training algorithms
  13506. // might also use storage volumes for scratch space. If you want Amazon SageMaker
  13507. // to use the storage volume to store the training data, choose File as the
  13508. // TrainingInputMode in the algorithm specification. For distributed training
  13509. // algorithms, specify an instance count greater than 1.
  13510. //
  13511. // ResourceConfig is a required field
  13512. ResourceConfig *ResourceConfig `type:"structure" required:"true"`
  13513. // The Amazon Resource Name (ARN) of the IAM role associated with the training
  13514. // jobs that the tuning job launches.
  13515. //
  13516. // RoleArn is a required field
  13517. RoleArn *string `min:"20" type:"string" required:"true"`
  13518. // Specifies the values of hyperparameters that do not change for the tuning
  13519. // job.
  13520. StaticHyperParameters map[string]*string `type:"map"`
  13521. // Sets a maximum duration for the training jobs that the tuning job launches.
  13522. // Use this parameter to limit model training costs.
  13523. //
  13524. // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This
  13525. // delays job termination for 120 seconds. Algorithms might use this 120-second
  13526. // window to save the model artifacts.
  13527. //
  13528. // When Amazon SageMaker terminates a job because the stopping condition has
  13529. // been met, training algorithms provided by Amazon SageMaker save the intermediate
  13530. // results of the job.
  13531. //
  13532. // StoppingCondition is a required field
  13533. StoppingCondition *StoppingCondition `type:"structure" required:"true"`
  13534. // The VpcConfig object that specifies the VPC that you want the training jobs
  13535. // that this hyperparameter tuning job launches to connect to. Control access
  13536. // to and from your training container by configuring the VPC. For more information,
  13537. // see Protect Training Jobs by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
  13538. VpcConfig *VpcConfig `type:"structure"`
  13539. }
  13540. // String returns the string representation
  13541. func (s HyperParameterTrainingJobDefinition) String() string {
  13542. return awsutil.Prettify(s)
  13543. }
  13544. // GoString returns the string representation
  13545. func (s HyperParameterTrainingJobDefinition) GoString() string {
  13546. return s.String()
  13547. }
  13548. // Validate inspects the fields of the type to determine if they are valid.
  13549. func (s *HyperParameterTrainingJobDefinition) Validate() error {
  13550. invalidParams := request.ErrInvalidParams{Context: "HyperParameterTrainingJobDefinition"}
  13551. if s.AlgorithmSpecification == nil {
  13552. invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification"))
  13553. }
  13554. if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 {
  13555. invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1))
  13556. }
  13557. if s.OutputDataConfig == nil {
  13558. invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
  13559. }
  13560. if s.ResourceConfig == nil {
  13561. invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
  13562. }
  13563. if s.RoleArn == nil {
  13564. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  13565. }
  13566. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  13567. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  13568. }
  13569. if s.StoppingCondition == nil {
  13570. invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
  13571. }
  13572. if s.AlgorithmSpecification != nil {
  13573. if err := s.AlgorithmSpecification.Validate(); err != nil {
  13574. invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams))
  13575. }
  13576. }
  13577. if s.InputDataConfig != nil {
  13578. for i, v := range s.InputDataConfig {
  13579. if v == nil {
  13580. continue
  13581. }
  13582. if err := v.Validate(); err != nil {
  13583. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams))
  13584. }
  13585. }
  13586. }
  13587. if s.OutputDataConfig != nil {
  13588. if err := s.OutputDataConfig.Validate(); err != nil {
  13589. invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
  13590. }
  13591. }
  13592. if s.ResourceConfig != nil {
  13593. if err := s.ResourceConfig.Validate(); err != nil {
  13594. invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
  13595. }
  13596. }
  13597. if s.StoppingCondition != nil {
  13598. if err := s.StoppingCondition.Validate(); err != nil {
  13599. invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
  13600. }
  13601. }
  13602. if s.VpcConfig != nil {
  13603. if err := s.VpcConfig.Validate(); err != nil {
  13604. invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams))
  13605. }
  13606. }
  13607. if invalidParams.Len() > 0 {
  13608. return invalidParams
  13609. }
  13610. return nil
  13611. }
  13612. // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
  13613. func (s *HyperParameterTrainingJobDefinition) SetAlgorithmSpecification(v *HyperParameterAlgorithmSpecification) *HyperParameterTrainingJobDefinition {
  13614. s.AlgorithmSpecification = v
  13615. return s
  13616. }
  13617. // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value.
  13618. func (s *HyperParameterTrainingJobDefinition) SetEnableInterContainerTrafficEncryption(v bool) *HyperParameterTrainingJobDefinition {
  13619. s.EnableInterContainerTrafficEncryption = &v
  13620. return s
  13621. }
  13622. // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
  13623. func (s *HyperParameterTrainingJobDefinition) SetEnableNetworkIsolation(v bool) *HyperParameterTrainingJobDefinition {
  13624. s.EnableNetworkIsolation = &v
  13625. return s
  13626. }
  13627. // SetInputDataConfig sets the InputDataConfig field's value.
  13628. func (s *HyperParameterTrainingJobDefinition) SetInputDataConfig(v []*Channel) *HyperParameterTrainingJobDefinition {
  13629. s.InputDataConfig = v
  13630. return s
  13631. }
  13632. // SetOutputDataConfig sets the OutputDataConfig field's value.
  13633. func (s *HyperParameterTrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *HyperParameterTrainingJobDefinition {
  13634. s.OutputDataConfig = v
  13635. return s
  13636. }
  13637. // SetResourceConfig sets the ResourceConfig field's value.
  13638. func (s *HyperParameterTrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *HyperParameterTrainingJobDefinition {
  13639. s.ResourceConfig = v
  13640. return s
  13641. }
  13642. // SetRoleArn sets the RoleArn field's value.
  13643. func (s *HyperParameterTrainingJobDefinition) SetRoleArn(v string) *HyperParameterTrainingJobDefinition {
  13644. s.RoleArn = &v
  13645. return s
  13646. }
  13647. // SetStaticHyperParameters sets the StaticHyperParameters field's value.
  13648. func (s *HyperParameterTrainingJobDefinition) SetStaticHyperParameters(v map[string]*string) *HyperParameterTrainingJobDefinition {
  13649. s.StaticHyperParameters = v
  13650. return s
  13651. }
  13652. // SetStoppingCondition sets the StoppingCondition field's value.
  13653. func (s *HyperParameterTrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *HyperParameterTrainingJobDefinition {
  13654. s.StoppingCondition = v
  13655. return s
  13656. }
  13657. // SetVpcConfig sets the VpcConfig field's value.
  13658. func (s *HyperParameterTrainingJobDefinition) SetVpcConfig(v *VpcConfig) *HyperParameterTrainingJobDefinition {
  13659. s.VpcConfig = v
  13660. return s
  13661. }
  13662. // Specifies summary information about a training job.
  13663. type HyperParameterTrainingJobSummary struct {
  13664. _ struct{} `type:"structure"`
  13665. // The date and time that the training job was created.
  13666. //
  13667. // CreationTime is a required field
  13668. CreationTime *time.Time `type:"timestamp" required:"true"`
  13669. // The reason that the training job failed.
  13670. FailureReason *string `type:"string"`
  13671. // The FinalHyperParameterTuningJobObjectiveMetric object that specifies the
  13672. // value of the objective metric of the tuning job that launched this training
  13673. // job.
  13674. FinalHyperParameterTuningJobObjectiveMetric *FinalHyperParameterTuningJobObjectiveMetric `type:"structure"`
  13675. // The status of the objective metric for the training job:
  13676. //
  13677. // * Succeeded: The final objective metric for the training job was evaluated
  13678. // by the hyperparameter tuning job and used in the hyperparameter tuning
  13679. // process.
  13680. //
  13681. // * Pending: The training job is in progress and evaluation of its final
  13682. // objective metric is pending.
  13683. //
  13684. // * Failed: The final objective metric for the training job was not evaluated,
  13685. // and was not used in the hyperparameter tuning process. This typically
  13686. // occurs when the training job failed or did not emit an objective metric.
  13687. ObjectiveStatus *string `type:"string" enum:"ObjectiveStatus"`
  13688. // Specifies the time when the training job ends on training instances. You
  13689. // are billed for the time interval between the value of TrainingStartTime and
  13690. // this time. For successful jobs and stopped jobs, this is the time after model
  13691. // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
  13692. // detects a job failure.
  13693. TrainingEndTime *time.Time `type:"timestamp"`
  13694. // The Amazon Resource Name (ARN) of the training job.
  13695. //
  13696. // TrainingJobArn is a required field
  13697. TrainingJobArn *string `type:"string" required:"true"`
  13698. // The name of the training job.
  13699. //
  13700. // TrainingJobName is a required field
  13701. TrainingJobName *string `min:"1" type:"string" required:"true"`
  13702. // The status of the training job.
  13703. //
  13704. // TrainingJobStatus is a required field
  13705. TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"`
  13706. // The date and time that the training job started.
  13707. TrainingStartTime *time.Time `type:"timestamp"`
  13708. // A list of the hyperparameters for which you specified ranges to search.
  13709. //
  13710. // TunedHyperParameters is a required field
  13711. TunedHyperParameters map[string]*string `type:"map" required:"true"`
  13712. // The HyperParameter tuning job that launched the training job.
  13713. TuningJobName *string `min:"1" type:"string"`
  13714. }
  13715. // String returns the string representation
  13716. func (s HyperParameterTrainingJobSummary) String() string {
  13717. return awsutil.Prettify(s)
  13718. }
  13719. // GoString returns the string representation
  13720. func (s HyperParameterTrainingJobSummary) GoString() string {
  13721. return s.String()
  13722. }
  13723. // SetCreationTime sets the CreationTime field's value.
  13724. func (s *HyperParameterTrainingJobSummary) SetCreationTime(v time.Time) *HyperParameterTrainingJobSummary {
  13725. s.CreationTime = &v
  13726. return s
  13727. }
  13728. // SetFailureReason sets the FailureReason field's value.
  13729. func (s *HyperParameterTrainingJobSummary) SetFailureReason(v string) *HyperParameterTrainingJobSummary {
  13730. s.FailureReason = &v
  13731. return s
  13732. }
  13733. // SetFinalHyperParameterTuningJobObjectiveMetric sets the FinalHyperParameterTuningJobObjectiveMetric field's value.
  13734. func (s *HyperParameterTrainingJobSummary) SetFinalHyperParameterTuningJobObjectiveMetric(v *FinalHyperParameterTuningJobObjectiveMetric) *HyperParameterTrainingJobSummary {
  13735. s.FinalHyperParameterTuningJobObjectiveMetric = v
  13736. return s
  13737. }
  13738. // SetObjectiveStatus sets the ObjectiveStatus field's value.
  13739. func (s *HyperParameterTrainingJobSummary) SetObjectiveStatus(v string) *HyperParameterTrainingJobSummary {
  13740. s.ObjectiveStatus = &v
  13741. return s
  13742. }
  13743. // SetTrainingEndTime sets the TrainingEndTime field's value.
  13744. func (s *HyperParameterTrainingJobSummary) SetTrainingEndTime(v time.Time) *HyperParameterTrainingJobSummary {
  13745. s.TrainingEndTime = &v
  13746. return s
  13747. }
  13748. // SetTrainingJobArn sets the TrainingJobArn field's value.
  13749. func (s *HyperParameterTrainingJobSummary) SetTrainingJobArn(v string) *HyperParameterTrainingJobSummary {
  13750. s.TrainingJobArn = &v
  13751. return s
  13752. }
  13753. // SetTrainingJobName sets the TrainingJobName field's value.
  13754. func (s *HyperParameterTrainingJobSummary) SetTrainingJobName(v string) *HyperParameterTrainingJobSummary {
  13755. s.TrainingJobName = &v
  13756. return s
  13757. }
  13758. // SetTrainingJobStatus sets the TrainingJobStatus field's value.
  13759. func (s *HyperParameterTrainingJobSummary) SetTrainingJobStatus(v string) *HyperParameterTrainingJobSummary {
  13760. s.TrainingJobStatus = &v
  13761. return s
  13762. }
  13763. // SetTrainingStartTime sets the TrainingStartTime field's value.
  13764. func (s *HyperParameterTrainingJobSummary) SetTrainingStartTime(v time.Time) *HyperParameterTrainingJobSummary {
  13765. s.TrainingStartTime = &v
  13766. return s
  13767. }
  13768. // SetTunedHyperParameters sets the TunedHyperParameters field's value.
  13769. func (s *HyperParameterTrainingJobSummary) SetTunedHyperParameters(v map[string]*string) *HyperParameterTrainingJobSummary {
  13770. s.TunedHyperParameters = v
  13771. return s
  13772. }
  13773. // SetTuningJobName sets the TuningJobName field's value.
  13774. func (s *HyperParameterTrainingJobSummary) SetTuningJobName(v string) *HyperParameterTrainingJobSummary {
  13775. s.TuningJobName = &v
  13776. return s
  13777. }
  13778. // Configures a hyperparameter tuning job.
  13779. type HyperParameterTuningJobConfig struct {
  13780. _ struct{} `type:"structure"`
  13781. // The HyperParameterTuningJobObjective object that specifies the objective
  13782. // metric for this tuning job.
  13783. //
  13784. // HyperParameterTuningJobObjective is a required field
  13785. HyperParameterTuningJobObjective *HyperParameterTuningJobObjective `type:"structure" required:"true"`
  13786. // The ParameterRanges object that specifies the ranges of hyperparameters that
  13787. // this tuning job searches.
  13788. //
  13789. // ParameterRanges is a required field
  13790. ParameterRanges *ParameterRanges `type:"structure" required:"true"`
  13791. // The ResourceLimits object that specifies the maximum number of training jobs
  13792. // and parallel training jobs for this tuning job.
  13793. //
  13794. // ResourceLimits is a required field
  13795. ResourceLimits *ResourceLimits `type:"structure" required:"true"`
  13796. // Specifies the search strategy for hyperparameters. Currently, the only valid
  13797. // value is Bayesian.
  13798. //
  13799. // Strategy is a required field
  13800. Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"`
  13801. // Specifies whether to use early stopping for training jobs launched by the
  13802. // hyperparameter tuning job. This can be one of the following values (the default
  13803. // value is OFF):
  13804. //
  13805. // OFFTraining jobs launched by the hyperparameter tuning job do not use early
  13806. // stopping.
  13807. //
  13808. // AUTOAmazon SageMaker stops training jobs launched by the hyperparameter tuning
  13809. // job when they are unlikely to perform better than previously completed training
  13810. // jobs. For more information, see Stop Training Jobs Early (http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html).
  13811. TrainingJobEarlyStoppingType *string `type:"string" enum:"TrainingJobEarlyStoppingType"`
  13812. }
  13813. // String returns the string representation
  13814. func (s HyperParameterTuningJobConfig) String() string {
  13815. return awsutil.Prettify(s)
  13816. }
  13817. // GoString returns the string representation
  13818. func (s HyperParameterTuningJobConfig) GoString() string {
  13819. return s.String()
  13820. }
  13821. // Validate inspects the fields of the type to determine if they are valid.
  13822. func (s *HyperParameterTuningJobConfig) Validate() error {
  13823. invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobConfig"}
  13824. if s.HyperParameterTuningJobObjective == nil {
  13825. invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobObjective"))
  13826. }
  13827. if s.ParameterRanges == nil {
  13828. invalidParams.Add(request.NewErrParamRequired("ParameterRanges"))
  13829. }
  13830. if s.ResourceLimits == nil {
  13831. invalidParams.Add(request.NewErrParamRequired("ResourceLimits"))
  13832. }
  13833. if s.Strategy == nil {
  13834. invalidParams.Add(request.NewErrParamRequired("Strategy"))
  13835. }
  13836. if s.HyperParameterTuningJobObjective != nil {
  13837. if err := s.HyperParameterTuningJobObjective.Validate(); err != nil {
  13838. invalidParams.AddNested("HyperParameterTuningJobObjective", err.(request.ErrInvalidParams))
  13839. }
  13840. }
  13841. if s.ParameterRanges != nil {
  13842. if err := s.ParameterRanges.Validate(); err != nil {
  13843. invalidParams.AddNested("ParameterRanges", err.(request.ErrInvalidParams))
  13844. }
  13845. }
  13846. if s.ResourceLimits != nil {
  13847. if err := s.ResourceLimits.Validate(); err != nil {
  13848. invalidParams.AddNested("ResourceLimits", err.(request.ErrInvalidParams))
  13849. }
  13850. }
  13851. if invalidParams.Len() > 0 {
  13852. return invalidParams
  13853. }
  13854. return nil
  13855. }
  13856. // SetHyperParameterTuningJobObjective sets the HyperParameterTuningJobObjective field's value.
  13857. func (s *HyperParameterTuningJobConfig) SetHyperParameterTuningJobObjective(v *HyperParameterTuningJobObjective) *HyperParameterTuningJobConfig {
  13858. s.HyperParameterTuningJobObjective = v
  13859. return s
  13860. }
  13861. // SetParameterRanges sets the ParameterRanges field's value.
  13862. func (s *HyperParameterTuningJobConfig) SetParameterRanges(v *ParameterRanges) *HyperParameterTuningJobConfig {
  13863. s.ParameterRanges = v
  13864. return s
  13865. }
  13866. // SetResourceLimits sets the ResourceLimits field's value.
  13867. func (s *HyperParameterTuningJobConfig) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobConfig {
  13868. s.ResourceLimits = v
  13869. return s
  13870. }
  13871. // SetStrategy sets the Strategy field's value.
  13872. func (s *HyperParameterTuningJobConfig) SetStrategy(v string) *HyperParameterTuningJobConfig {
  13873. s.Strategy = &v
  13874. return s
  13875. }
  13876. // SetTrainingJobEarlyStoppingType sets the TrainingJobEarlyStoppingType field's value.
  13877. func (s *HyperParameterTuningJobConfig) SetTrainingJobEarlyStoppingType(v string) *HyperParameterTuningJobConfig {
  13878. s.TrainingJobEarlyStoppingType = &v
  13879. return s
  13880. }
  13881. // Defines the objective metric for a hyperparameter tuning job. Hyperparameter
  13882. // tuning uses the value of this metric to evaluate the training jobs it launches,
  13883. // and returns the training job that results in either the highest or lowest
  13884. // value for this metric, depending on the value you specify for the Type parameter.
  13885. type HyperParameterTuningJobObjective struct {
  13886. _ struct{} `type:"structure"`
  13887. // The name of the metric to use for the objective metric.
  13888. //
  13889. // MetricName is a required field
  13890. MetricName *string `min:"1" type:"string" required:"true"`
  13891. // Whether to minimize or maximize the objective metric.
  13892. //
  13893. // Type is a required field
  13894. Type *string `type:"string" required:"true" enum:"HyperParameterTuningJobObjectiveType"`
  13895. }
  13896. // String returns the string representation
  13897. func (s HyperParameterTuningJobObjective) String() string {
  13898. return awsutil.Prettify(s)
  13899. }
  13900. // GoString returns the string representation
  13901. func (s HyperParameterTuningJobObjective) GoString() string {
  13902. return s.String()
  13903. }
  13904. // Validate inspects the fields of the type to determine if they are valid.
  13905. func (s *HyperParameterTuningJobObjective) Validate() error {
  13906. invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobObjective"}
  13907. if s.MetricName == nil {
  13908. invalidParams.Add(request.NewErrParamRequired("MetricName"))
  13909. }
  13910. if s.MetricName != nil && len(*s.MetricName) < 1 {
  13911. invalidParams.Add(request.NewErrParamMinLen("MetricName", 1))
  13912. }
  13913. if s.Type == nil {
  13914. invalidParams.Add(request.NewErrParamRequired("Type"))
  13915. }
  13916. if invalidParams.Len() > 0 {
  13917. return invalidParams
  13918. }
  13919. return nil
  13920. }
  13921. // SetMetricName sets the MetricName field's value.
  13922. func (s *HyperParameterTuningJobObjective) SetMetricName(v string) *HyperParameterTuningJobObjective {
  13923. s.MetricName = &v
  13924. return s
  13925. }
  13926. // SetType sets the Type field's value.
  13927. func (s *HyperParameterTuningJobObjective) SetType(v string) *HyperParameterTuningJobObjective {
  13928. s.Type = &v
  13929. return s
  13930. }
  13931. // Provides summary information about a hyperparameter tuning job.
  13932. type HyperParameterTuningJobSummary struct {
  13933. _ struct{} `type:"structure"`
  13934. // The date and time that the tuning job was created.
  13935. //
  13936. // CreationTime is a required field
  13937. CreationTime *time.Time `type:"timestamp" required:"true"`
  13938. // The date and time that the tuning job ended.
  13939. HyperParameterTuningEndTime *time.Time `type:"timestamp"`
  13940. // The Amazon Resource Name (ARN) of the tuning job.
  13941. //
  13942. // HyperParameterTuningJobArn is a required field
  13943. HyperParameterTuningJobArn *string `type:"string" required:"true"`
  13944. // The name of the tuning job.
  13945. //
  13946. // HyperParameterTuningJobName is a required field
  13947. HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
  13948. // The status of the tuning job.
  13949. //
  13950. // HyperParameterTuningJobStatus is a required field
  13951. HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"`
  13952. // The date and time that the tuning job was modified.
  13953. LastModifiedTime *time.Time `type:"timestamp"`
  13954. // The ObjectiveStatusCounters object that specifies the numbers of training
  13955. // jobs, categorized by objective metric status, that this tuning job launched.
  13956. //
  13957. // ObjectiveStatusCounters is a required field
  13958. ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"`
  13959. // The ResourceLimits object that specifies the maximum number of training jobs
  13960. // and parallel training jobs allowed for this tuning job.
  13961. ResourceLimits *ResourceLimits `type:"structure"`
  13962. // Specifies the search strategy hyperparameter tuning uses to choose which
  13963. // hyperparameters to use for each iteration. Currently, the only valid value
  13964. // is Bayesian.
  13965. //
  13966. // Strategy is a required field
  13967. Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"`
  13968. // The TrainingJobStatusCounters object that specifies the numbers of training
  13969. // jobs, categorized by status, that this tuning job launched.
  13970. //
  13971. // TrainingJobStatusCounters is a required field
  13972. TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"`
  13973. }
  13974. // String returns the string representation
  13975. func (s HyperParameterTuningJobSummary) String() string {
  13976. return awsutil.Prettify(s)
  13977. }
  13978. // GoString returns the string representation
  13979. func (s HyperParameterTuningJobSummary) GoString() string {
  13980. return s.String()
  13981. }
  13982. // SetCreationTime sets the CreationTime field's value.
  13983. func (s *HyperParameterTuningJobSummary) SetCreationTime(v time.Time) *HyperParameterTuningJobSummary {
  13984. s.CreationTime = &v
  13985. return s
  13986. }
  13987. // SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value.
  13988. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningEndTime(v time.Time) *HyperParameterTuningJobSummary {
  13989. s.HyperParameterTuningEndTime = &v
  13990. return s
  13991. }
  13992. // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value.
  13993. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobArn(v string) *HyperParameterTuningJobSummary {
  13994. s.HyperParameterTuningJobArn = &v
  13995. return s
  13996. }
  13997. // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
  13998. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobName(v string) *HyperParameterTuningJobSummary {
  13999. s.HyperParameterTuningJobName = &v
  14000. return s
  14001. }
  14002. // SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value.
  14003. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobStatus(v string) *HyperParameterTuningJobSummary {
  14004. s.HyperParameterTuningJobStatus = &v
  14005. return s
  14006. }
  14007. // SetLastModifiedTime sets the LastModifiedTime field's value.
  14008. func (s *HyperParameterTuningJobSummary) SetLastModifiedTime(v time.Time) *HyperParameterTuningJobSummary {
  14009. s.LastModifiedTime = &v
  14010. return s
  14011. }
  14012. // SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value.
  14013. func (s *HyperParameterTuningJobSummary) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *HyperParameterTuningJobSummary {
  14014. s.ObjectiveStatusCounters = v
  14015. return s
  14016. }
  14017. // SetResourceLimits sets the ResourceLimits field's value.
  14018. func (s *HyperParameterTuningJobSummary) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobSummary {
  14019. s.ResourceLimits = v
  14020. return s
  14021. }
  14022. // SetStrategy sets the Strategy field's value.
  14023. func (s *HyperParameterTuningJobSummary) SetStrategy(v string) *HyperParameterTuningJobSummary {
  14024. s.Strategy = &v
  14025. return s
  14026. }
  14027. // SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value.
  14028. func (s *HyperParameterTuningJobSummary) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *HyperParameterTuningJobSummary {
  14029. s.TrainingJobStatusCounters = v
  14030. return s
  14031. }
  14032. // Specifies the configuration for a hyperparameter tuning job that uses one
  14033. // or more previous hyperparameter tuning jobs as a starting point. The results
  14034. // of previous tuning jobs are used to inform which combinations of hyperparameters
  14035. // to search over in the new tuning job.
  14036. //
  14037. // All training jobs launched by the new hyperparameter tuning job are evaluated
  14038. // by using the objective metric, and the training job that performs the best
  14039. // is compared to the best training jobs from the parent tuning jobs. From these,
  14040. // the training job that performs the best as measured by the objective metric
  14041. // is returned as the overall best training job.
  14042. //
  14043. // All training jobs launched by parent hyperparameter tuning jobs and the new
  14044. // hyperparameter tuning jobs count against the limit of training jobs for the
  14045. // tuning job.
  14046. type HyperParameterTuningJobWarmStartConfig struct {
  14047. _ struct{} `type:"structure"`
  14048. // An array of hyperparameter tuning jobs that are used as the starting point
  14049. // for the new hyperparameter tuning job. For more information about warm starting
  14050. // a hyperparameter tuning job, see Using a Previous Hyperparameter Tuning Job
  14051. // as a Starting Point (http://docs.aws.amazon.com/automatic-model-tuning-incremental).
  14052. //
  14053. // Hyperparameter tuning jobs created before October 1, 2018 cannot be used
  14054. // as parent jobs for warm start tuning jobs.
  14055. //
  14056. // ParentHyperParameterTuningJobs is a required field
  14057. ParentHyperParameterTuningJobs []*ParentHyperParameterTuningJob `min:"1" type:"list" required:"true"`
  14058. // Specifies one of the following:
  14059. //
  14060. // IDENTICAL_DATA_AND_ALGORITHMThe new hyperparameter tuning job uses the same
  14061. // input data and training image as the parent tuning jobs. You can change the
  14062. // hyperparameter ranges to search and the maximum number of training jobs that
  14063. // the hyperparameter tuning job launches. You cannot use a new version of the
  14064. // training algorithm, unless the changes in the new version do not affect the
  14065. // algorithm itself. For example, changes that improve logging or adding support
  14066. // for a different data format are allowed. You can also change hyperparameters
  14067. // from tunable to static, and from static to tunable, but the total number
  14068. // of static plus tunable hyperparameters must remain the same as it is in all
  14069. // parent jobs. The objective metric for the new tuning job must be the same
  14070. // as for all parent jobs.
  14071. //
  14072. // TRANSFER_LEARNINGThe new hyperparameter tuning job can include input data,
  14073. // hyperparameter ranges, maximum number of concurrent training jobs, and maximum
  14074. // number of training jobs that are different than those of its parent hyperparameter
  14075. // tuning jobs. The training image can also be a different version from the
  14076. // version used in the parent hyperparameter tuning job. You can also change
  14077. // hyperparameters from tunable to static, and from static to tunable, but the
  14078. // total number of static plus tunable hyperparameters must remain the same
  14079. // as it is in all parent jobs. The objective metric for the new tuning job
  14080. // must be the same as for all parent jobs.
  14081. //
  14082. // WarmStartType is a required field
  14083. WarmStartType *string `type:"string" required:"true" enum:"HyperParameterTuningJobWarmStartType"`
  14084. }
  14085. // String returns the string representation
  14086. func (s HyperParameterTuningJobWarmStartConfig) String() string {
  14087. return awsutil.Prettify(s)
  14088. }
  14089. // GoString returns the string representation
  14090. func (s HyperParameterTuningJobWarmStartConfig) GoString() string {
  14091. return s.String()
  14092. }
  14093. // Validate inspects the fields of the type to determine if they are valid.
  14094. func (s *HyperParameterTuningJobWarmStartConfig) Validate() error {
  14095. invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobWarmStartConfig"}
  14096. if s.ParentHyperParameterTuningJobs == nil {
  14097. invalidParams.Add(request.NewErrParamRequired("ParentHyperParameterTuningJobs"))
  14098. }
  14099. if s.ParentHyperParameterTuningJobs != nil && len(s.ParentHyperParameterTuningJobs) < 1 {
  14100. invalidParams.Add(request.NewErrParamMinLen("ParentHyperParameterTuningJobs", 1))
  14101. }
  14102. if s.WarmStartType == nil {
  14103. invalidParams.Add(request.NewErrParamRequired("WarmStartType"))
  14104. }
  14105. if s.ParentHyperParameterTuningJobs != nil {
  14106. for i, v := range s.ParentHyperParameterTuningJobs {
  14107. if v == nil {
  14108. continue
  14109. }
  14110. if err := v.Validate(); err != nil {
  14111. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParentHyperParameterTuningJobs", i), err.(request.ErrInvalidParams))
  14112. }
  14113. }
  14114. }
  14115. if invalidParams.Len() > 0 {
  14116. return invalidParams
  14117. }
  14118. return nil
  14119. }
  14120. // SetParentHyperParameterTuningJobs sets the ParentHyperParameterTuningJobs field's value.
  14121. func (s *HyperParameterTuningJobWarmStartConfig) SetParentHyperParameterTuningJobs(v []*ParentHyperParameterTuningJob) *HyperParameterTuningJobWarmStartConfig {
  14122. s.ParentHyperParameterTuningJobs = v
  14123. return s
  14124. }
  14125. // SetWarmStartType sets the WarmStartType field's value.
  14126. func (s *HyperParameterTuningJobWarmStartConfig) SetWarmStartType(v string) *HyperParameterTuningJobWarmStartConfig {
  14127. s.WarmStartType = &v
  14128. return s
  14129. }
  14130. // Defines how to perform inference generation after a training job is run.
  14131. type InferenceSpecification struct {
  14132. _ struct{} `type:"structure"`
  14133. // The Amazon ECR registry path of the Docker image that contains the inference
  14134. // code.
  14135. //
  14136. // Containers is a required field
  14137. Containers []*ModelPackageContainerDefinition `min:"1" type:"list" required:"true"`
  14138. // The supported MIME types for the input data.
  14139. //
  14140. // SupportedContentTypes is a required field
  14141. SupportedContentTypes []*string `type:"list" required:"true"`
  14142. // A list of the instance types that are used to generate inferences in real-time.
  14143. //
  14144. // SupportedRealtimeInferenceInstanceTypes is a required field
  14145. SupportedRealtimeInferenceInstanceTypes []*string `type:"list" required:"true"`
  14146. // The supported MIME types for the output data.
  14147. //
  14148. // SupportedResponseMIMETypes is a required field
  14149. SupportedResponseMIMETypes []*string `type:"list" required:"true"`
  14150. // A list of the instance types on which a transformation job can be run or
  14151. // on which an endpoint can be deployed.
  14152. //
  14153. // SupportedTransformInstanceTypes is a required field
  14154. SupportedTransformInstanceTypes []*string `min:"1" type:"list" required:"true"`
  14155. }
  14156. // String returns the string representation
  14157. func (s InferenceSpecification) String() string {
  14158. return awsutil.Prettify(s)
  14159. }
  14160. // GoString returns the string representation
  14161. func (s InferenceSpecification) GoString() string {
  14162. return s.String()
  14163. }
  14164. // Validate inspects the fields of the type to determine if they are valid.
  14165. func (s *InferenceSpecification) Validate() error {
  14166. invalidParams := request.ErrInvalidParams{Context: "InferenceSpecification"}
  14167. if s.Containers == nil {
  14168. invalidParams.Add(request.NewErrParamRequired("Containers"))
  14169. }
  14170. if s.Containers != nil && len(s.Containers) < 1 {
  14171. invalidParams.Add(request.NewErrParamMinLen("Containers", 1))
  14172. }
  14173. if s.SupportedContentTypes == nil {
  14174. invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes"))
  14175. }
  14176. if s.SupportedRealtimeInferenceInstanceTypes == nil {
  14177. invalidParams.Add(request.NewErrParamRequired("SupportedRealtimeInferenceInstanceTypes"))
  14178. }
  14179. if s.SupportedResponseMIMETypes == nil {
  14180. invalidParams.Add(request.NewErrParamRequired("SupportedResponseMIMETypes"))
  14181. }
  14182. if s.SupportedTransformInstanceTypes == nil {
  14183. invalidParams.Add(request.NewErrParamRequired("SupportedTransformInstanceTypes"))
  14184. }
  14185. if s.SupportedTransformInstanceTypes != nil && len(s.SupportedTransformInstanceTypes) < 1 {
  14186. invalidParams.Add(request.NewErrParamMinLen("SupportedTransformInstanceTypes", 1))
  14187. }
  14188. if s.Containers != nil {
  14189. for i, v := range s.Containers {
  14190. if v == nil {
  14191. continue
  14192. }
  14193. if err := v.Validate(); err != nil {
  14194. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams))
  14195. }
  14196. }
  14197. }
  14198. if invalidParams.Len() > 0 {
  14199. return invalidParams
  14200. }
  14201. return nil
  14202. }
  14203. // SetContainers sets the Containers field's value.
  14204. func (s *InferenceSpecification) SetContainers(v []*ModelPackageContainerDefinition) *InferenceSpecification {
  14205. s.Containers = v
  14206. return s
  14207. }
  14208. // SetSupportedContentTypes sets the SupportedContentTypes field's value.
  14209. func (s *InferenceSpecification) SetSupportedContentTypes(v []*string) *InferenceSpecification {
  14210. s.SupportedContentTypes = v
  14211. return s
  14212. }
  14213. // SetSupportedRealtimeInferenceInstanceTypes sets the SupportedRealtimeInferenceInstanceTypes field's value.
  14214. func (s *InferenceSpecification) SetSupportedRealtimeInferenceInstanceTypes(v []*string) *InferenceSpecification {
  14215. s.SupportedRealtimeInferenceInstanceTypes = v
  14216. return s
  14217. }
  14218. // SetSupportedResponseMIMETypes sets the SupportedResponseMIMETypes field's value.
  14219. func (s *InferenceSpecification) SetSupportedResponseMIMETypes(v []*string) *InferenceSpecification {
  14220. s.SupportedResponseMIMETypes = v
  14221. return s
  14222. }
  14223. // SetSupportedTransformInstanceTypes sets the SupportedTransformInstanceTypes field's value.
  14224. func (s *InferenceSpecification) SetSupportedTransformInstanceTypes(v []*string) *InferenceSpecification {
  14225. s.SupportedTransformInstanceTypes = v
  14226. return s
  14227. }
  14228. // Contains information about the location of input model artifacts, the name
  14229. // and shape of the expected data inputs, and the framework in which the model
  14230. // was trained.
  14231. type InputConfig struct {
  14232. _ struct{} `type:"structure"`
  14233. // Specifies the name and shape of the expected data inputs for your trained
  14234. // model with a JSON dictionary form. The data inputs are InputConfig$Framework
  14235. // specific.
  14236. //
  14237. // * TensorFlow: You must specify the name and shape (NHWC format) of the
  14238. // expected data inputs using a dictionary format for your trained model.
  14239. // The dictionary formats required for the console and CLI are different.
  14240. //
  14241. // Examples for one input:
  14242. //
  14243. // If using the console, {"input":[1,1024,1024,3]}
  14244. //
  14245. // If using the CLI, {\"input\":[1,1024,1024,3]}
  14246. //
  14247. // Examples for two inputs:
  14248. //
  14249. // If using the console, {"data1": [1,28,28,1], "data2":[1,28,28,1]}
  14250. //
  14251. // If using the CLI, {\"data1\": [1,28,28,1], \"data2\":[1,28,28,1]}
  14252. //
  14253. // * MXNET/ONNX: You must specify the name and shape (NCHW format) of the
  14254. // expected data inputs in order using a dictionary format for your trained
  14255. // model. The dictionary formats required for the console and CLI are different.
  14256. //
  14257. // Examples for one input:
  14258. //
  14259. // If using the console, {"data":[1,3,1024,1024]}
  14260. //
  14261. // If using the CLI, {\"data\":[1,3,1024,1024]}
  14262. //
  14263. // Examples for two inputs:
  14264. //
  14265. // If using the console, {"var1": [1,1,28,28], "var2":[1,1,28,28]}
  14266. //
  14267. // If using the CLI, {\"var1\": [1,1,28,28], \"var2\":[1,1,28,28]}
  14268. //
  14269. // * PyTorch: You can either specify the name and shape (NCHW format) of
  14270. // expected data inputs in order using a dictionary format for your trained
  14271. // model or you can specify the shape only using a list format. The dictionary
  14272. // formats required for the console and CLI are different. The list formats
  14273. // for the console and CLI are the same.
  14274. //
  14275. // Examples for one input in dictionary format:
  14276. //
  14277. // If using the console, {"input0":[1,3,224,224]}
  14278. //
  14279. // If using the CLI, {\"input0\":[1,3,224,224]}
  14280. //
  14281. // Example for one input in list format: [[1,3,224,224]]
  14282. //
  14283. // Examples for two inputs in dictionary format:
  14284. //
  14285. // If using the console, {"input0":[1,3,224,224], "input1":[1,3,224,224]}
  14286. //
  14287. // If using the CLI, {\"input0\":[1,3,224,224], \"input1\":[1,3,224,224]}
  14288. //
  14289. // Example for two inputs in list format: [[1,3,224,224], [1,3,224,224]]
  14290. //
  14291. // * XGBOOST: input data name and shape are not needed.
  14292. //
  14293. // DataInputConfig is a required field
  14294. DataInputConfig *string `min:"1" type:"string" required:"true"`
  14295. // Identifies the framework in which the model was trained. For example: TENSORFLOW.
  14296. //
  14297. // Framework is a required field
  14298. Framework *string `type:"string" required:"true" enum:"Framework"`
  14299. // The S3 path where the model artifacts, which result from model training,
  14300. // are stored. This path must point to a single gzip compressed tar archive
  14301. // (.tar.gz suffix).
  14302. //
  14303. // S3Uri is a required field
  14304. S3Uri *string `type:"string" required:"true"`
  14305. }
  14306. // String returns the string representation
  14307. func (s InputConfig) String() string {
  14308. return awsutil.Prettify(s)
  14309. }
  14310. // GoString returns the string representation
  14311. func (s InputConfig) GoString() string {
  14312. return s.String()
  14313. }
  14314. // Validate inspects the fields of the type to determine if they are valid.
  14315. func (s *InputConfig) Validate() error {
  14316. invalidParams := request.ErrInvalidParams{Context: "InputConfig"}
  14317. if s.DataInputConfig == nil {
  14318. invalidParams.Add(request.NewErrParamRequired("DataInputConfig"))
  14319. }
  14320. if s.DataInputConfig != nil && len(*s.DataInputConfig) < 1 {
  14321. invalidParams.Add(request.NewErrParamMinLen("DataInputConfig", 1))
  14322. }
  14323. if s.Framework == nil {
  14324. invalidParams.Add(request.NewErrParamRequired("Framework"))
  14325. }
  14326. if s.S3Uri == nil {
  14327. invalidParams.Add(request.NewErrParamRequired("S3Uri"))
  14328. }
  14329. if invalidParams.Len() > 0 {
  14330. return invalidParams
  14331. }
  14332. return nil
  14333. }
  14334. // SetDataInputConfig sets the DataInputConfig field's value.
  14335. func (s *InputConfig) SetDataInputConfig(v string) *InputConfig {
  14336. s.DataInputConfig = &v
  14337. return s
  14338. }
  14339. // SetFramework sets the Framework field's value.
  14340. func (s *InputConfig) SetFramework(v string) *InputConfig {
  14341. s.Framework = &v
  14342. return s
  14343. }
  14344. // SetS3Uri sets the S3Uri field's value.
  14345. func (s *InputConfig) SetS3Uri(v string) *InputConfig {
  14346. s.S3Uri = &v
  14347. return s
  14348. }
  14349. // For a hyperparameter of the integer type, specifies the range that a hyperparameter
  14350. // tuning job searches.
  14351. type IntegerParameterRange struct {
  14352. _ struct{} `type:"structure"`
  14353. // The maximum value of the hyperparameter to search.
  14354. //
  14355. // MaxValue is a required field
  14356. MaxValue *string `type:"string" required:"true"`
  14357. // The minimum value of the hyperparameter to search.
  14358. //
  14359. // MinValue is a required field
  14360. MinValue *string `type:"string" required:"true"`
  14361. // The name of the hyperparameter to search.
  14362. //
  14363. // Name is a required field
  14364. Name *string `type:"string" required:"true"`
  14365. }
  14366. // String returns the string representation
  14367. func (s IntegerParameterRange) String() string {
  14368. return awsutil.Prettify(s)
  14369. }
  14370. // GoString returns the string representation
  14371. func (s IntegerParameterRange) GoString() string {
  14372. return s.String()
  14373. }
  14374. // Validate inspects the fields of the type to determine if they are valid.
  14375. func (s *IntegerParameterRange) Validate() error {
  14376. invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRange"}
  14377. if s.MaxValue == nil {
  14378. invalidParams.Add(request.NewErrParamRequired("MaxValue"))
  14379. }
  14380. if s.MinValue == nil {
  14381. invalidParams.Add(request.NewErrParamRequired("MinValue"))
  14382. }
  14383. if s.Name == nil {
  14384. invalidParams.Add(request.NewErrParamRequired("Name"))
  14385. }
  14386. if invalidParams.Len() > 0 {
  14387. return invalidParams
  14388. }
  14389. return nil
  14390. }
  14391. // SetMaxValue sets the MaxValue field's value.
  14392. func (s *IntegerParameterRange) SetMaxValue(v string) *IntegerParameterRange {
  14393. s.MaxValue = &v
  14394. return s
  14395. }
  14396. // SetMinValue sets the MinValue field's value.
  14397. func (s *IntegerParameterRange) SetMinValue(v string) *IntegerParameterRange {
  14398. s.MinValue = &v
  14399. return s
  14400. }
  14401. // SetName sets the Name field's value.
  14402. func (s *IntegerParameterRange) SetName(v string) *IntegerParameterRange {
  14403. s.Name = &v
  14404. return s
  14405. }
  14406. // Defines the possible values for an integer hyperparameter.
  14407. type IntegerParameterRangeSpecification struct {
  14408. _ struct{} `type:"structure"`
  14409. // The maximum integer value allowed.
  14410. //
  14411. // MaxValue is a required field
  14412. MaxValue *string `type:"string" required:"true"`
  14413. // The minimum integer value allowed.
  14414. //
  14415. // MinValue is a required field
  14416. MinValue *string `type:"string" required:"true"`
  14417. }
  14418. // String returns the string representation
  14419. func (s IntegerParameterRangeSpecification) String() string {
  14420. return awsutil.Prettify(s)
  14421. }
  14422. // GoString returns the string representation
  14423. func (s IntegerParameterRangeSpecification) GoString() string {
  14424. return s.String()
  14425. }
  14426. // Validate inspects the fields of the type to determine if they are valid.
  14427. func (s *IntegerParameterRangeSpecification) Validate() error {
  14428. invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRangeSpecification"}
  14429. if s.MaxValue == nil {
  14430. invalidParams.Add(request.NewErrParamRequired("MaxValue"))
  14431. }
  14432. if s.MinValue == nil {
  14433. invalidParams.Add(request.NewErrParamRequired("MinValue"))
  14434. }
  14435. if invalidParams.Len() > 0 {
  14436. return invalidParams
  14437. }
  14438. return nil
  14439. }
  14440. // SetMaxValue sets the MaxValue field's value.
  14441. func (s *IntegerParameterRangeSpecification) SetMaxValue(v string) *IntegerParameterRangeSpecification {
  14442. s.MaxValue = &v
  14443. return s
  14444. }
  14445. // SetMinValue sets the MinValue field's value.
  14446. func (s *IntegerParameterRangeSpecification) SetMinValue(v string) *IntegerParameterRangeSpecification {
  14447. s.MinValue = &v
  14448. return s
  14449. }
  14450. // Provides a breakdown of the number of objects labeled.
  14451. type LabelCounters struct {
  14452. _ struct{} `type:"structure"`
  14453. // The total number of objects that could not be labeled due to an error.
  14454. FailedNonRetryableError *int64 `type:"integer"`
  14455. // The total number of objects labeled by a human worker.
  14456. HumanLabeled *int64 `type:"integer"`
  14457. // The total number of objects labeled by automated data labeling.
  14458. MachineLabeled *int64 `type:"integer"`
  14459. // The total number of objects labeled.
  14460. TotalLabeled *int64 `type:"integer"`
  14461. // The total number of objects not yet labeled.
  14462. Unlabeled *int64 `type:"integer"`
  14463. }
  14464. // String returns the string representation
  14465. func (s LabelCounters) String() string {
  14466. return awsutil.Prettify(s)
  14467. }
  14468. // GoString returns the string representation
  14469. func (s LabelCounters) GoString() string {
  14470. return s.String()
  14471. }
  14472. // SetFailedNonRetryableError sets the FailedNonRetryableError field's value.
  14473. func (s *LabelCounters) SetFailedNonRetryableError(v int64) *LabelCounters {
  14474. s.FailedNonRetryableError = &v
  14475. return s
  14476. }
  14477. // SetHumanLabeled sets the HumanLabeled field's value.
  14478. func (s *LabelCounters) SetHumanLabeled(v int64) *LabelCounters {
  14479. s.HumanLabeled = &v
  14480. return s
  14481. }
  14482. // SetMachineLabeled sets the MachineLabeled field's value.
  14483. func (s *LabelCounters) SetMachineLabeled(v int64) *LabelCounters {
  14484. s.MachineLabeled = &v
  14485. return s
  14486. }
  14487. // SetTotalLabeled sets the TotalLabeled field's value.
  14488. func (s *LabelCounters) SetTotalLabeled(v int64) *LabelCounters {
  14489. s.TotalLabeled = &v
  14490. return s
  14491. }
  14492. // SetUnlabeled sets the Unlabeled field's value.
  14493. func (s *LabelCounters) SetUnlabeled(v int64) *LabelCounters {
  14494. s.Unlabeled = &v
  14495. return s
  14496. }
  14497. // Provides counts for human-labeled tasks in the labeling job.
  14498. type LabelCountersForWorkteam struct {
  14499. _ struct{} `type:"structure"`
  14500. // The total number of data objects labeled by a human worker.
  14501. HumanLabeled *int64 `type:"integer"`
  14502. // The total number of data objects that need to be labeled by a human worker.
  14503. PendingHuman *int64 `type:"integer"`
  14504. // The total number of tasks in the labeling job.
  14505. Total *int64 `type:"integer"`
  14506. }
  14507. // String returns the string representation
  14508. func (s LabelCountersForWorkteam) String() string {
  14509. return awsutil.Prettify(s)
  14510. }
  14511. // GoString returns the string representation
  14512. func (s LabelCountersForWorkteam) GoString() string {
  14513. return s.String()
  14514. }
  14515. // SetHumanLabeled sets the HumanLabeled field's value.
  14516. func (s *LabelCountersForWorkteam) SetHumanLabeled(v int64) *LabelCountersForWorkteam {
  14517. s.HumanLabeled = &v
  14518. return s
  14519. }
  14520. // SetPendingHuman sets the PendingHuman field's value.
  14521. func (s *LabelCountersForWorkteam) SetPendingHuman(v int64) *LabelCountersForWorkteam {
  14522. s.PendingHuman = &v
  14523. return s
  14524. }
  14525. // SetTotal sets the Total field's value.
  14526. func (s *LabelCountersForWorkteam) SetTotal(v int64) *LabelCountersForWorkteam {
  14527. s.Total = &v
  14528. return s
  14529. }
  14530. // Provides configuration information for auto-labeling of your data objects.
  14531. // A LabelingJobAlgorithmsConfig object must be supplied in order to use auto-labeling.
  14532. type LabelingJobAlgorithmsConfig struct {
  14533. _ struct{} `type:"structure"`
  14534. // At the end of an auto-label job Amazon SageMaker Ground Truth sends the Amazon
  14535. // Resource Nam (ARN) of the final model used for auto-labeling. You can use
  14536. // this model as the starting point for subsequent similar jobs by providing
  14537. // the ARN of the model here.
  14538. InitialActiveLearningModelArn *string `min:"20" type:"string"`
  14539. // Specifies the Amazon Resource Name (ARN) of the algorithm used for auto-labeling.
  14540. // You must select one of the following ARNs:
  14541. //
  14542. // * Image classification
  14543. //
  14544. // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/image-classification
  14545. //
  14546. // * Text classification
  14547. //
  14548. // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/text-classification
  14549. //
  14550. // * Object detection
  14551. //
  14552. // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/object-detection
  14553. //
  14554. // LabelingJobAlgorithmSpecificationArn is a required field
  14555. LabelingJobAlgorithmSpecificationArn *string `type:"string" required:"true"`
  14556. // Provides configuration information for a labeling job.
  14557. LabelingJobResourceConfig *LabelingJobResourceConfig `type:"structure"`
  14558. }
  14559. // String returns the string representation
  14560. func (s LabelingJobAlgorithmsConfig) String() string {
  14561. return awsutil.Prettify(s)
  14562. }
  14563. // GoString returns the string representation
  14564. func (s LabelingJobAlgorithmsConfig) GoString() string {
  14565. return s.String()
  14566. }
  14567. // Validate inspects the fields of the type to determine if they are valid.
  14568. func (s *LabelingJobAlgorithmsConfig) Validate() error {
  14569. invalidParams := request.ErrInvalidParams{Context: "LabelingJobAlgorithmsConfig"}
  14570. if s.InitialActiveLearningModelArn != nil && len(*s.InitialActiveLearningModelArn) < 20 {
  14571. invalidParams.Add(request.NewErrParamMinLen("InitialActiveLearningModelArn", 20))
  14572. }
  14573. if s.LabelingJobAlgorithmSpecificationArn == nil {
  14574. invalidParams.Add(request.NewErrParamRequired("LabelingJobAlgorithmSpecificationArn"))
  14575. }
  14576. if invalidParams.Len() > 0 {
  14577. return invalidParams
  14578. }
  14579. return nil
  14580. }
  14581. // SetInitialActiveLearningModelArn sets the InitialActiveLearningModelArn field's value.
  14582. func (s *LabelingJobAlgorithmsConfig) SetInitialActiveLearningModelArn(v string) *LabelingJobAlgorithmsConfig {
  14583. s.InitialActiveLearningModelArn = &v
  14584. return s
  14585. }
  14586. // SetLabelingJobAlgorithmSpecificationArn sets the LabelingJobAlgorithmSpecificationArn field's value.
  14587. func (s *LabelingJobAlgorithmsConfig) SetLabelingJobAlgorithmSpecificationArn(v string) *LabelingJobAlgorithmsConfig {
  14588. s.LabelingJobAlgorithmSpecificationArn = &v
  14589. return s
  14590. }
  14591. // SetLabelingJobResourceConfig sets the LabelingJobResourceConfig field's value.
  14592. func (s *LabelingJobAlgorithmsConfig) SetLabelingJobResourceConfig(v *LabelingJobResourceConfig) *LabelingJobAlgorithmsConfig {
  14593. s.LabelingJobResourceConfig = v
  14594. return s
  14595. }
  14596. // Attributes of the data specified by the customer. Use these to describe the
  14597. // data to be labeled.
  14598. type LabelingJobDataAttributes struct {
  14599. _ struct{} `type:"structure"`
  14600. // Declares that your content is free of personally identifiable information
  14601. // or adult content. Amazon SageMaker may restrict the Amazon Mechanical Turk
  14602. // workers that can view your task based on this information.
  14603. ContentClassifiers []*string `type:"list"`
  14604. }
  14605. // String returns the string representation
  14606. func (s LabelingJobDataAttributes) String() string {
  14607. return awsutil.Prettify(s)
  14608. }
  14609. // GoString returns the string representation
  14610. func (s LabelingJobDataAttributes) GoString() string {
  14611. return s.String()
  14612. }
  14613. // SetContentClassifiers sets the ContentClassifiers field's value.
  14614. func (s *LabelingJobDataAttributes) SetContentClassifiers(v []*string) *LabelingJobDataAttributes {
  14615. s.ContentClassifiers = v
  14616. return s
  14617. }
  14618. // Provides information about the location of input data.
  14619. type LabelingJobDataSource struct {
  14620. _ struct{} `type:"structure"`
  14621. // The Amazon S3 location of the input data objects.
  14622. //
  14623. // S3DataSource is a required field
  14624. S3DataSource *LabelingJobS3DataSource `type:"structure" required:"true"`
  14625. }
  14626. // String returns the string representation
  14627. func (s LabelingJobDataSource) String() string {
  14628. return awsutil.Prettify(s)
  14629. }
  14630. // GoString returns the string representation
  14631. func (s LabelingJobDataSource) GoString() string {
  14632. return s.String()
  14633. }
  14634. // Validate inspects the fields of the type to determine if they are valid.
  14635. func (s *LabelingJobDataSource) Validate() error {
  14636. invalidParams := request.ErrInvalidParams{Context: "LabelingJobDataSource"}
  14637. if s.S3DataSource == nil {
  14638. invalidParams.Add(request.NewErrParamRequired("S3DataSource"))
  14639. }
  14640. if s.S3DataSource != nil {
  14641. if err := s.S3DataSource.Validate(); err != nil {
  14642. invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams))
  14643. }
  14644. }
  14645. if invalidParams.Len() > 0 {
  14646. return invalidParams
  14647. }
  14648. return nil
  14649. }
  14650. // SetS3DataSource sets the S3DataSource field's value.
  14651. func (s *LabelingJobDataSource) SetS3DataSource(v *LabelingJobS3DataSource) *LabelingJobDataSource {
  14652. s.S3DataSource = v
  14653. return s
  14654. }
  14655. // Provides summary information for a work team.
  14656. type LabelingJobForWorkteamSummary struct {
  14657. _ struct{} `type:"structure"`
  14658. // The date and time that the labeling job was created.
  14659. //
  14660. // CreationTime is a required field
  14661. CreationTime *time.Time `type:"timestamp" required:"true"`
  14662. // A unique identifier for a labeling job. You can use this to refer to a specific
  14663. // labeling job.
  14664. //
  14665. // JobReferenceCode is a required field
  14666. JobReferenceCode *string `min:"1" type:"string" required:"true"`
  14667. // Provides information about the progress of a labeling job.
  14668. LabelCounters *LabelCountersForWorkteam `type:"structure"`
  14669. // The name of the labeling job that the work team is assigned to.
  14670. LabelingJobName *string `min:"1" type:"string"`
  14671. // WorkRequesterAccountId is a required field
  14672. WorkRequesterAccountId *string `type:"string" required:"true"`
  14673. }
  14674. // String returns the string representation
  14675. func (s LabelingJobForWorkteamSummary) String() string {
  14676. return awsutil.Prettify(s)
  14677. }
  14678. // GoString returns the string representation
  14679. func (s LabelingJobForWorkteamSummary) GoString() string {
  14680. return s.String()
  14681. }
  14682. // SetCreationTime sets the CreationTime field's value.
  14683. func (s *LabelingJobForWorkteamSummary) SetCreationTime(v time.Time) *LabelingJobForWorkteamSummary {
  14684. s.CreationTime = &v
  14685. return s
  14686. }
  14687. // SetJobReferenceCode sets the JobReferenceCode field's value.
  14688. func (s *LabelingJobForWorkteamSummary) SetJobReferenceCode(v string) *LabelingJobForWorkteamSummary {
  14689. s.JobReferenceCode = &v
  14690. return s
  14691. }
  14692. // SetLabelCounters sets the LabelCounters field's value.
  14693. func (s *LabelingJobForWorkteamSummary) SetLabelCounters(v *LabelCountersForWorkteam) *LabelingJobForWorkteamSummary {
  14694. s.LabelCounters = v
  14695. return s
  14696. }
  14697. // SetLabelingJobName sets the LabelingJobName field's value.
  14698. func (s *LabelingJobForWorkteamSummary) SetLabelingJobName(v string) *LabelingJobForWorkteamSummary {
  14699. s.LabelingJobName = &v
  14700. return s
  14701. }
  14702. // SetWorkRequesterAccountId sets the WorkRequesterAccountId field's value.
  14703. func (s *LabelingJobForWorkteamSummary) SetWorkRequesterAccountId(v string) *LabelingJobForWorkteamSummary {
  14704. s.WorkRequesterAccountId = &v
  14705. return s
  14706. }
  14707. // Input configuration information for a labeling job.
  14708. type LabelingJobInputConfig struct {
  14709. _ struct{} `type:"structure"`
  14710. // Attributes of the data specified by the customer.
  14711. DataAttributes *LabelingJobDataAttributes `type:"structure"`
  14712. // The location of the input data.
  14713. //
  14714. // DataSource is a required field
  14715. DataSource *LabelingJobDataSource `type:"structure" required:"true"`
  14716. }
  14717. // String returns the string representation
  14718. func (s LabelingJobInputConfig) String() string {
  14719. return awsutil.Prettify(s)
  14720. }
  14721. // GoString returns the string representation
  14722. func (s LabelingJobInputConfig) GoString() string {
  14723. return s.String()
  14724. }
  14725. // Validate inspects the fields of the type to determine if they are valid.
  14726. func (s *LabelingJobInputConfig) Validate() error {
  14727. invalidParams := request.ErrInvalidParams{Context: "LabelingJobInputConfig"}
  14728. if s.DataSource == nil {
  14729. invalidParams.Add(request.NewErrParamRequired("DataSource"))
  14730. }
  14731. if s.DataSource != nil {
  14732. if err := s.DataSource.Validate(); err != nil {
  14733. invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams))
  14734. }
  14735. }
  14736. if invalidParams.Len() > 0 {
  14737. return invalidParams
  14738. }
  14739. return nil
  14740. }
  14741. // SetDataAttributes sets the DataAttributes field's value.
  14742. func (s *LabelingJobInputConfig) SetDataAttributes(v *LabelingJobDataAttributes) *LabelingJobInputConfig {
  14743. s.DataAttributes = v
  14744. return s
  14745. }
  14746. // SetDataSource sets the DataSource field's value.
  14747. func (s *LabelingJobInputConfig) SetDataSource(v *LabelingJobDataSource) *LabelingJobInputConfig {
  14748. s.DataSource = v
  14749. return s
  14750. }
  14751. // Specifies the location of the output produced by the labeling job.
  14752. type LabelingJobOutput struct {
  14753. _ struct{} `type:"structure"`
  14754. // The Amazon Resource Name (ARN) for the most recent Amazon SageMaker model
  14755. // trained as part of automated data labeling.
  14756. FinalActiveLearningModelArn *string `min:"20" type:"string"`
  14757. // The Amazon S3 bucket location of the manifest file for labeled data.
  14758. //
  14759. // OutputDatasetS3Uri is a required field
  14760. OutputDatasetS3Uri *string `type:"string" required:"true"`
  14761. }
  14762. // String returns the string representation
  14763. func (s LabelingJobOutput) String() string {
  14764. return awsutil.Prettify(s)
  14765. }
  14766. // GoString returns the string representation
  14767. func (s LabelingJobOutput) GoString() string {
  14768. return s.String()
  14769. }
  14770. // SetFinalActiveLearningModelArn sets the FinalActiveLearningModelArn field's value.
  14771. func (s *LabelingJobOutput) SetFinalActiveLearningModelArn(v string) *LabelingJobOutput {
  14772. s.FinalActiveLearningModelArn = &v
  14773. return s
  14774. }
  14775. // SetOutputDatasetS3Uri sets the OutputDatasetS3Uri field's value.
  14776. func (s *LabelingJobOutput) SetOutputDatasetS3Uri(v string) *LabelingJobOutput {
  14777. s.OutputDatasetS3Uri = &v
  14778. return s
  14779. }
  14780. // Output configuration information for a labeling job.
  14781. type LabelingJobOutputConfig struct {
  14782. _ struct{} `type:"structure"`
  14783. // The AWS Key Management Service ID of the key used to encrypt the output data,
  14784. // if any.
  14785. KmsKeyId *string `type:"string"`
  14786. // The Amazon S3 location to write output data.
  14787. //
  14788. // S3OutputPath is a required field
  14789. S3OutputPath *string `type:"string" required:"true"`
  14790. }
  14791. // String returns the string representation
  14792. func (s LabelingJobOutputConfig) String() string {
  14793. return awsutil.Prettify(s)
  14794. }
  14795. // GoString returns the string representation
  14796. func (s LabelingJobOutputConfig) GoString() string {
  14797. return s.String()
  14798. }
  14799. // Validate inspects the fields of the type to determine if they are valid.
  14800. func (s *LabelingJobOutputConfig) Validate() error {
  14801. invalidParams := request.ErrInvalidParams{Context: "LabelingJobOutputConfig"}
  14802. if s.S3OutputPath == nil {
  14803. invalidParams.Add(request.NewErrParamRequired("S3OutputPath"))
  14804. }
  14805. if invalidParams.Len() > 0 {
  14806. return invalidParams
  14807. }
  14808. return nil
  14809. }
  14810. // SetKmsKeyId sets the KmsKeyId field's value.
  14811. func (s *LabelingJobOutputConfig) SetKmsKeyId(v string) *LabelingJobOutputConfig {
  14812. s.KmsKeyId = &v
  14813. return s
  14814. }
  14815. // SetS3OutputPath sets the S3OutputPath field's value.
  14816. func (s *LabelingJobOutputConfig) SetS3OutputPath(v string) *LabelingJobOutputConfig {
  14817. s.S3OutputPath = &v
  14818. return s
  14819. }
  14820. // Provides configuration information for labeling jobs.
  14821. type LabelingJobResourceConfig struct {
  14822. _ struct{} `type:"structure"`
  14823. // The AWS Key Management Service key ID for the key used to encrypt the output
  14824. // data, if any.
  14825. VolumeKmsKeyId *string `type:"string"`
  14826. }
  14827. // String returns the string representation
  14828. func (s LabelingJobResourceConfig) String() string {
  14829. return awsutil.Prettify(s)
  14830. }
  14831. // GoString returns the string representation
  14832. func (s LabelingJobResourceConfig) GoString() string {
  14833. return s.String()
  14834. }
  14835. // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value.
  14836. func (s *LabelingJobResourceConfig) SetVolumeKmsKeyId(v string) *LabelingJobResourceConfig {
  14837. s.VolumeKmsKeyId = &v
  14838. return s
  14839. }
  14840. // The Amazon S3 location of the input data objects.
  14841. type LabelingJobS3DataSource struct {
  14842. _ struct{} `type:"structure"`
  14843. // The Amazon S3 location of the manifest file that describes the input data
  14844. // objects.
  14845. //
  14846. // ManifestS3Uri is a required field
  14847. ManifestS3Uri *string `type:"string" required:"true"`
  14848. }
  14849. // String returns the string representation
  14850. func (s LabelingJobS3DataSource) String() string {
  14851. return awsutil.Prettify(s)
  14852. }
  14853. // GoString returns the string representation
  14854. func (s LabelingJobS3DataSource) GoString() string {
  14855. return s.String()
  14856. }
  14857. // Validate inspects the fields of the type to determine if they are valid.
  14858. func (s *LabelingJobS3DataSource) Validate() error {
  14859. invalidParams := request.ErrInvalidParams{Context: "LabelingJobS3DataSource"}
  14860. if s.ManifestS3Uri == nil {
  14861. invalidParams.Add(request.NewErrParamRequired("ManifestS3Uri"))
  14862. }
  14863. if invalidParams.Len() > 0 {
  14864. return invalidParams
  14865. }
  14866. return nil
  14867. }
  14868. // SetManifestS3Uri sets the ManifestS3Uri field's value.
  14869. func (s *LabelingJobS3DataSource) SetManifestS3Uri(v string) *LabelingJobS3DataSource {
  14870. s.ManifestS3Uri = &v
  14871. return s
  14872. }
  14873. // A set of conditions for stopping a labeling job. If any of the conditions
  14874. // are met, the job is automatically stopped. You can use these conditions to
  14875. // control the cost of data labeling.
  14876. type LabelingJobStoppingConditions struct {
  14877. _ struct{} `type:"structure"`
  14878. // The maximum number of objects that can be labeled by human workers.
  14879. MaxHumanLabeledObjectCount *int64 `min:"1" type:"integer"`
  14880. // The maximum number of input data objects that should be labeled.
  14881. MaxPercentageOfInputDatasetLabeled *int64 `min:"1" type:"integer"`
  14882. }
  14883. // String returns the string representation
  14884. func (s LabelingJobStoppingConditions) String() string {
  14885. return awsutil.Prettify(s)
  14886. }
  14887. // GoString returns the string representation
  14888. func (s LabelingJobStoppingConditions) GoString() string {
  14889. return s.String()
  14890. }
  14891. // Validate inspects the fields of the type to determine if they are valid.
  14892. func (s *LabelingJobStoppingConditions) Validate() error {
  14893. invalidParams := request.ErrInvalidParams{Context: "LabelingJobStoppingConditions"}
  14894. if s.MaxHumanLabeledObjectCount != nil && *s.MaxHumanLabeledObjectCount < 1 {
  14895. invalidParams.Add(request.NewErrParamMinValue("MaxHumanLabeledObjectCount", 1))
  14896. }
  14897. if s.MaxPercentageOfInputDatasetLabeled != nil && *s.MaxPercentageOfInputDatasetLabeled < 1 {
  14898. invalidParams.Add(request.NewErrParamMinValue("MaxPercentageOfInputDatasetLabeled", 1))
  14899. }
  14900. if invalidParams.Len() > 0 {
  14901. return invalidParams
  14902. }
  14903. return nil
  14904. }
  14905. // SetMaxHumanLabeledObjectCount sets the MaxHumanLabeledObjectCount field's value.
  14906. func (s *LabelingJobStoppingConditions) SetMaxHumanLabeledObjectCount(v int64) *LabelingJobStoppingConditions {
  14907. s.MaxHumanLabeledObjectCount = &v
  14908. return s
  14909. }
  14910. // SetMaxPercentageOfInputDatasetLabeled sets the MaxPercentageOfInputDatasetLabeled field's value.
  14911. func (s *LabelingJobStoppingConditions) SetMaxPercentageOfInputDatasetLabeled(v int64) *LabelingJobStoppingConditions {
  14912. s.MaxPercentageOfInputDatasetLabeled = &v
  14913. return s
  14914. }
  14915. // Provides summary information about a labeling job.
  14916. type LabelingJobSummary struct {
  14917. _ struct{} `type:"structure"`
  14918. // The Amazon Resource Name (ARN) of the Lambda function used to consolidate
  14919. // the annotations from individual workers into a label for a data object. For
  14920. // more information, see Annotation Consolidation (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html).
  14921. AnnotationConsolidationLambdaArn *string `type:"string"`
  14922. // The date and time that the job was created (timestamp).
  14923. //
  14924. // CreationTime is a required field
  14925. CreationTime *time.Time `type:"timestamp" required:"true"`
  14926. // If the LabelingJobStatus field is Failed, this field contains a description
  14927. // of the error.
  14928. FailureReason *string `type:"string"`
  14929. // Input configuration for the labeling job.
  14930. InputConfig *LabelingJobInputConfig `type:"structure"`
  14931. // Counts showing the progress of the labeling job.
  14932. //
  14933. // LabelCounters is a required field
  14934. LabelCounters *LabelCounters `type:"structure" required:"true"`
  14935. // The Amazon Resource Name (ARN) assigned to the labeling job when it was created.
  14936. //
  14937. // LabelingJobArn is a required field
  14938. LabelingJobArn *string `type:"string" required:"true"`
  14939. // The name of the labeling job.
  14940. //
  14941. // LabelingJobName is a required field
  14942. LabelingJobName *string `min:"1" type:"string" required:"true"`
  14943. // The location of the output produced by the labeling job.
  14944. LabelingJobOutput *LabelingJobOutput `type:"structure"`
  14945. // The current status of the labeling job.
  14946. //
  14947. // LabelingJobStatus is a required field
  14948. LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"`
  14949. // The date and time that the job was last modified (timestamp).
  14950. //
  14951. // LastModifiedTime is a required field
  14952. LastModifiedTime *time.Time `type:"timestamp" required:"true"`
  14953. // The Amazon Resource Name (ARN) of a Lambda function. The function is run
  14954. // before each data object is sent to a worker.
  14955. //
  14956. // PreHumanTaskLambdaArn is a required field
  14957. PreHumanTaskLambdaArn *string `type:"string" required:"true"`
  14958. // The Amazon Resource Name (ARN) of the work team assigned to the job.
  14959. //
  14960. // WorkteamArn is a required field
  14961. WorkteamArn *string `type:"string" required:"true"`
  14962. }
  14963. // String returns the string representation
  14964. func (s LabelingJobSummary) String() string {
  14965. return awsutil.Prettify(s)
  14966. }
  14967. // GoString returns the string representation
  14968. func (s LabelingJobSummary) GoString() string {
  14969. return s.String()
  14970. }
  14971. // SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value.
  14972. func (s *LabelingJobSummary) SetAnnotationConsolidationLambdaArn(v string) *LabelingJobSummary {
  14973. s.AnnotationConsolidationLambdaArn = &v
  14974. return s
  14975. }
  14976. // SetCreationTime sets the CreationTime field's value.
  14977. func (s *LabelingJobSummary) SetCreationTime(v time.Time) *LabelingJobSummary {
  14978. s.CreationTime = &v
  14979. return s
  14980. }
  14981. // SetFailureReason sets the FailureReason field's value.
  14982. func (s *LabelingJobSummary) SetFailureReason(v string) *LabelingJobSummary {
  14983. s.FailureReason = &v
  14984. return s
  14985. }
  14986. // SetInputConfig sets the InputConfig field's value.
  14987. func (s *LabelingJobSummary) SetInputConfig(v *LabelingJobInputConfig) *LabelingJobSummary {
  14988. s.InputConfig = v
  14989. return s
  14990. }
  14991. // SetLabelCounters sets the LabelCounters field's value.
  14992. func (s *LabelingJobSummary) SetLabelCounters(v *LabelCounters) *LabelingJobSummary {
  14993. s.LabelCounters = v
  14994. return s
  14995. }
  14996. // SetLabelingJobArn sets the LabelingJobArn field's value.
  14997. func (s *LabelingJobSummary) SetLabelingJobArn(v string) *LabelingJobSummary {
  14998. s.LabelingJobArn = &v
  14999. return s
  15000. }
  15001. // SetLabelingJobName sets the LabelingJobName field's value.
  15002. func (s *LabelingJobSummary) SetLabelingJobName(v string) *LabelingJobSummary {
  15003. s.LabelingJobName = &v
  15004. return s
  15005. }
  15006. // SetLabelingJobOutput sets the LabelingJobOutput field's value.
  15007. func (s *LabelingJobSummary) SetLabelingJobOutput(v *LabelingJobOutput) *LabelingJobSummary {
  15008. s.LabelingJobOutput = v
  15009. return s
  15010. }
  15011. // SetLabelingJobStatus sets the LabelingJobStatus field's value.
  15012. func (s *LabelingJobSummary) SetLabelingJobStatus(v string) *LabelingJobSummary {
  15013. s.LabelingJobStatus = &v
  15014. return s
  15015. }
  15016. // SetLastModifiedTime sets the LastModifiedTime field's value.
  15017. func (s *LabelingJobSummary) SetLastModifiedTime(v time.Time) *LabelingJobSummary {
  15018. s.LastModifiedTime = &v
  15019. return s
  15020. }
  15021. // SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value.
  15022. func (s *LabelingJobSummary) SetPreHumanTaskLambdaArn(v string) *LabelingJobSummary {
  15023. s.PreHumanTaskLambdaArn = &v
  15024. return s
  15025. }
  15026. // SetWorkteamArn sets the WorkteamArn field's value.
  15027. func (s *LabelingJobSummary) SetWorkteamArn(v string) *LabelingJobSummary {
  15028. s.WorkteamArn = &v
  15029. return s
  15030. }
  15031. type ListAlgorithmsInput struct {
  15032. _ struct{} `type:"structure"`
  15033. // A filter that returns only algorithms created after the specified time (timestamp).
  15034. CreationTimeAfter *time.Time `type:"timestamp"`
  15035. // A filter that returns only algorithms created before the specified time (timestamp).
  15036. CreationTimeBefore *time.Time `type:"timestamp"`
  15037. // The maximum number of algorithms to return in the response.
  15038. MaxResults *int64 `min:"1" type:"integer"`
  15039. // A string in the algorithm name. This filter returns only algorithms whose
  15040. // name contains the specified string.
  15041. NameContains *string `type:"string"`
  15042. // If the response to a previous ListAlgorithms request was truncated, the response
  15043. // includes a NextToken. To retrieve the next set of algorithms, use the token
  15044. // in the next request.
  15045. NextToken *string `type:"string"`
  15046. // The parameter by which to sort the results. The default is CreationTime.
  15047. SortBy *string `type:"string" enum:"AlgorithmSortBy"`
  15048. // The sort order for the results. The default is Ascending.
  15049. SortOrder *string `type:"string" enum:"SortOrder"`
  15050. }
  15051. // String returns the string representation
  15052. func (s ListAlgorithmsInput) String() string {
  15053. return awsutil.Prettify(s)
  15054. }
  15055. // GoString returns the string representation
  15056. func (s ListAlgorithmsInput) GoString() string {
  15057. return s.String()
  15058. }
  15059. // Validate inspects the fields of the type to determine if they are valid.
  15060. func (s *ListAlgorithmsInput) Validate() error {
  15061. invalidParams := request.ErrInvalidParams{Context: "ListAlgorithmsInput"}
  15062. if s.MaxResults != nil && *s.MaxResults < 1 {
  15063. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15064. }
  15065. if invalidParams.Len() > 0 {
  15066. return invalidParams
  15067. }
  15068. return nil
  15069. }
  15070. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15071. func (s *ListAlgorithmsInput) SetCreationTimeAfter(v time.Time) *ListAlgorithmsInput {
  15072. s.CreationTimeAfter = &v
  15073. return s
  15074. }
  15075. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15076. func (s *ListAlgorithmsInput) SetCreationTimeBefore(v time.Time) *ListAlgorithmsInput {
  15077. s.CreationTimeBefore = &v
  15078. return s
  15079. }
  15080. // SetMaxResults sets the MaxResults field's value.
  15081. func (s *ListAlgorithmsInput) SetMaxResults(v int64) *ListAlgorithmsInput {
  15082. s.MaxResults = &v
  15083. return s
  15084. }
  15085. // SetNameContains sets the NameContains field's value.
  15086. func (s *ListAlgorithmsInput) SetNameContains(v string) *ListAlgorithmsInput {
  15087. s.NameContains = &v
  15088. return s
  15089. }
  15090. // SetNextToken sets the NextToken field's value.
  15091. func (s *ListAlgorithmsInput) SetNextToken(v string) *ListAlgorithmsInput {
  15092. s.NextToken = &v
  15093. return s
  15094. }
  15095. // SetSortBy sets the SortBy field's value.
  15096. func (s *ListAlgorithmsInput) SetSortBy(v string) *ListAlgorithmsInput {
  15097. s.SortBy = &v
  15098. return s
  15099. }
  15100. // SetSortOrder sets the SortOrder field's value.
  15101. func (s *ListAlgorithmsInput) SetSortOrder(v string) *ListAlgorithmsInput {
  15102. s.SortOrder = &v
  15103. return s
  15104. }
  15105. type ListAlgorithmsOutput struct {
  15106. _ struct{} `type:"structure"`
  15107. // >An array of AlgorithmSummary objects, each of which lists an algorithm.
  15108. //
  15109. // AlgorithmSummaryList is a required field
  15110. AlgorithmSummaryList []*AlgorithmSummary `type:"list" required:"true"`
  15111. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  15112. // the next set of algorithms, use it in the subsequent request.
  15113. NextToken *string `type:"string"`
  15114. }
  15115. // String returns the string representation
  15116. func (s ListAlgorithmsOutput) String() string {
  15117. return awsutil.Prettify(s)
  15118. }
  15119. // GoString returns the string representation
  15120. func (s ListAlgorithmsOutput) GoString() string {
  15121. return s.String()
  15122. }
  15123. // SetAlgorithmSummaryList sets the AlgorithmSummaryList field's value.
  15124. func (s *ListAlgorithmsOutput) SetAlgorithmSummaryList(v []*AlgorithmSummary) *ListAlgorithmsOutput {
  15125. s.AlgorithmSummaryList = v
  15126. return s
  15127. }
  15128. // SetNextToken sets the NextToken field's value.
  15129. func (s *ListAlgorithmsOutput) SetNextToken(v string) *ListAlgorithmsOutput {
  15130. s.NextToken = &v
  15131. return s
  15132. }
  15133. type ListCodeRepositoriesInput struct {
  15134. _ struct{} `type:"structure"`
  15135. // A filter that returns only Git repositories that were created after the specified
  15136. // time.
  15137. CreationTimeAfter *time.Time `type:"timestamp"`
  15138. // A filter that returns only Git repositories that were created before the
  15139. // specified time.
  15140. CreationTimeBefore *time.Time `type:"timestamp"`
  15141. // A filter that returns only Git repositories that were last modified after
  15142. // the specified time.
  15143. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  15144. // A filter that returns only Git repositories that were last modified before
  15145. // the specified time.
  15146. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  15147. // The maximum number of Git repositories to return in the response.
  15148. MaxResults *int64 `min:"1" type:"integer"`
  15149. // A string in the Git repositories name. This filter returns only repositories
  15150. // whose name contains the specified string.
  15151. NameContains *string `type:"string"`
  15152. // If the result of a ListCodeRepositoriesOutput request was truncated, the
  15153. // response includes a NextToken. To get the next set of Git repositories, use
  15154. // the token in the next request.
  15155. NextToken *string `type:"string"`
  15156. // The field to sort results by. The default is Name.
  15157. SortBy *string `type:"string" enum:"CodeRepositorySortBy"`
  15158. // The sort order for results. The default is Ascending.
  15159. SortOrder *string `type:"string" enum:"CodeRepositorySortOrder"`
  15160. }
  15161. // String returns the string representation
  15162. func (s ListCodeRepositoriesInput) String() string {
  15163. return awsutil.Prettify(s)
  15164. }
  15165. // GoString returns the string representation
  15166. func (s ListCodeRepositoriesInput) GoString() string {
  15167. return s.String()
  15168. }
  15169. // Validate inspects the fields of the type to determine if they are valid.
  15170. func (s *ListCodeRepositoriesInput) Validate() error {
  15171. invalidParams := request.ErrInvalidParams{Context: "ListCodeRepositoriesInput"}
  15172. if s.MaxResults != nil && *s.MaxResults < 1 {
  15173. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15174. }
  15175. if invalidParams.Len() > 0 {
  15176. return invalidParams
  15177. }
  15178. return nil
  15179. }
  15180. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15181. func (s *ListCodeRepositoriesInput) SetCreationTimeAfter(v time.Time) *ListCodeRepositoriesInput {
  15182. s.CreationTimeAfter = &v
  15183. return s
  15184. }
  15185. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15186. func (s *ListCodeRepositoriesInput) SetCreationTimeBefore(v time.Time) *ListCodeRepositoriesInput {
  15187. s.CreationTimeBefore = &v
  15188. return s
  15189. }
  15190. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  15191. func (s *ListCodeRepositoriesInput) SetLastModifiedTimeAfter(v time.Time) *ListCodeRepositoriesInput {
  15192. s.LastModifiedTimeAfter = &v
  15193. return s
  15194. }
  15195. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  15196. func (s *ListCodeRepositoriesInput) SetLastModifiedTimeBefore(v time.Time) *ListCodeRepositoriesInput {
  15197. s.LastModifiedTimeBefore = &v
  15198. return s
  15199. }
  15200. // SetMaxResults sets the MaxResults field's value.
  15201. func (s *ListCodeRepositoriesInput) SetMaxResults(v int64) *ListCodeRepositoriesInput {
  15202. s.MaxResults = &v
  15203. return s
  15204. }
  15205. // SetNameContains sets the NameContains field's value.
  15206. func (s *ListCodeRepositoriesInput) SetNameContains(v string) *ListCodeRepositoriesInput {
  15207. s.NameContains = &v
  15208. return s
  15209. }
  15210. // SetNextToken sets the NextToken field's value.
  15211. func (s *ListCodeRepositoriesInput) SetNextToken(v string) *ListCodeRepositoriesInput {
  15212. s.NextToken = &v
  15213. return s
  15214. }
  15215. // SetSortBy sets the SortBy field's value.
  15216. func (s *ListCodeRepositoriesInput) SetSortBy(v string) *ListCodeRepositoriesInput {
  15217. s.SortBy = &v
  15218. return s
  15219. }
  15220. // SetSortOrder sets the SortOrder field's value.
  15221. func (s *ListCodeRepositoriesInput) SetSortOrder(v string) *ListCodeRepositoriesInput {
  15222. s.SortOrder = &v
  15223. return s
  15224. }
  15225. type ListCodeRepositoriesOutput struct {
  15226. _ struct{} `type:"structure"`
  15227. // Gets a list of summaries of the Git repositories. Each summary specifies
  15228. // the following values for the repository:
  15229. //
  15230. // * Name
  15231. //
  15232. // * Amazon Resource Name (ARN)
  15233. //
  15234. // * Creation time
  15235. //
  15236. // * Last modified time
  15237. //
  15238. // * Configuration information, including the URL location of the repository
  15239. // and the ARN of the AWS Secrets Manager secret that contains the credentials
  15240. // used to access the repository.
  15241. //
  15242. // CodeRepositorySummaryList is a required field
  15243. CodeRepositorySummaryList []*CodeRepositorySummary `type:"list" required:"true"`
  15244. // If the result of a ListCodeRepositoriesOutput request was truncated, the
  15245. // response includes a NextToken. To get the next set of Git repositories, use
  15246. // the token in the next request.
  15247. NextToken *string `type:"string"`
  15248. }
  15249. // String returns the string representation
  15250. func (s ListCodeRepositoriesOutput) String() string {
  15251. return awsutil.Prettify(s)
  15252. }
  15253. // GoString returns the string representation
  15254. func (s ListCodeRepositoriesOutput) GoString() string {
  15255. return s.String()
  15256. }
  15257. // SetCodeRepositorySummaryList sets the CodeRepositorySummaryList field's value.
  15258. func (s *ListCodeRepositoriesOutput) SetCodeRepositorySummaryList(v []*CodeRepositorySummary) *ListCodeRepositoriesOutput {
  15259. s.CodeRepositorySummaryList = v
  15260. return s
  15261. }
  15262. // SetNextToken sets the NextToken field's value.
  15263. func (s *ListCodeRepositoriesOutput) SetNextToken(v string) *ListCodeRepositoriesOutput {
  15264. s.NextToken = &v
  15265. return s
  15266. }
  15267. type ListCompilationJobsInput struct {
  15268. _ struct{} `type:"structure"`
  15269. // A filter that returns the model compilation jobs that were created after
  15270. // a specified time.
  15271. CreationTimeAfter *time.Time `type:"timestamp"`
  15272. // A filter that returns the model compilation jobs that were created before
  15273. // a specified time.
  15274. CreationTimeBefore *time.Time `type:"timestamp"`
  15275. // A filter that returns the model compilation jobs that were modified after
  15276. // a specified time.
  15277. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  15278. // A filter that returns the model compilation jobs that were modified before
  15279. // a specified time.
  15280. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  15281. // The maximum number of model compilation jobs to return in the response.
  15282. MaxResults *int64 `min:"1" type:"integer"`
  15283. // A filter that returns the model compilation jobs whose name contains a specified
  15284. // string.
  15285. NameContains *string `type:"string"`
  15286. // If the result of the previous ListCompilationJobs request was truncated,
  15287. // the response includes a NextToken. To retrieve the next set of model compilation
  15288. // jobs, use the token in the next request.
  15289. NextToken *string `type:"string"`
  15290. // The field by which to sort results. The default is CreationTime.
  15291. SortBy *string `type:"string" enum:"ListCompilationJobsSortBy"`
  15292. // The sort order for results. The default is Ascending.
  15293. SortOrder *string `type:"string" enum:"SortOrder"`
  15294. // A filter that retrieves model compilation jobs with a specific DescribeCompilationJobResponse$CompilationJobStatus
  15295. // status.
  15296. StatusEquals *string `type:"string" enum:"CompilationJobStatus"`
  15297. }
  15298. // String returns the string representation
  15299. func (s ListCompilationJobsInput) String() string {
  15300. return awsutil.Prettify(s)
  15301. }
  15302. // GoString returns the string representation
  15303. func (s ListCompilationJobsInput) GoString() string {
  15304. return s.String()
  15305. }
  15306. // Validate inspects the fields of the type to determine if they are valid.
  15307. func (s *ListCompilationJobsInput) Validate() error {
  15308. invalidParams := request.ErrInvalidParams{Context: "ListCompilationJobsInput"}
  15309. if s.MaxResults != nil && *s.MaxResults < 1 {
  15310. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15311. }
  15312. if invalidParams.Len() > 0 {
  15313. return invalidParams
  15314. }
  15315. return nil
  15316. }
  15317. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15318. func (s *ListCompilationJobsInput) SetCreationTimeAfter(v time.Time) *ListCompilationJobsInput {
  15319. s.CreationTimeAfter = &v
  15320. return s
  15321. }
  15322. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15323. func (s *ListCompilationJobsInput) SetCreationTimeBefore(v time.Time) *ListCompilationJobsInput {
  15324. s.CreationTimeBefore = &v
  15325. return s
  15326. }
  15327. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  15328. func (s *ListCompilationJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListCompilationJobsInput {
  15329. s.LastModifiedTimeAfter = &v
  15330. return s
  15331. }
  15332. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  15333. func (s *ListCompilationJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListCompilationJobsInput {
  15334. s.LastModifiedTimeBefore = &v
  15335. return s
  15336. }
  15337. // SetMaxResults sets the MaxResults field's value.
  15338. func (s *ListCompilationJobsInput) SetMaxResults(v int64) *ListCompilationJobsInput {
  15339. s.MaxResults = &v
  15340. return s
  15341. }
  15342. // SetNameContains sets the NameContains field's value.
  15343. func (s *ListCompilationJobsInput) SetNameContains(v string) *ListCompilationJobsInput {
  15344. s.NameContains = &v
  15345. return s
  15346. }
  15347. // SetNextToken sets the NextToken field's value.
  15348. func (s *ListCompilationJobsInput) SetNextToken(v string) *ListCompilationJobsInput {
  15349. s.NextToken = &v
  15350. return s
  15351. }
  15352. // SetSortBy sets the SortBy field's value.
  15353. func (s *ListCompilationJobsInput) SetSortBy(v string) *ListCompilationJobsInput {
  15354. s.SortBy = &v
  15355. return s
  15356. }
  15357. // SetSortOrder sets the SortOrder field's value.
  15358. func (s *ListCompilationJobsInput) SetSortOrder(v string) *ListCompilationJobsInput {
  15359. s.SortOrder = &v
  15360. return s
  15361. }
  15362. // SetStatusEquals sets the StatusEquals field's value.
  15363. func (s *ListCompilationJobsInput) SetStatusEquals(v string) *ListCompilationJobsInput {
  15364. s.StatusEquals = &v
  15365. return s
  15366. }
  15367. type ListCompilationJobsOutput struct {
  15368. _ struct{} `type:"structure"`
  15369. // An array of CompilationJobSummary objects, each describing a model compilation
  15370. // job.
  15371. //
  15372. // CompilationJobSummaries is a required field
  15373. CompilationJobSummaries []*CompilationJobSummary `type:"list" required:"true"`
  15374. // If the response is truncated, Amazon SageMaker returns this NextToken. To
  15375. // retrieve the next set of model compilation jobs, use this token in the next
  15376. // request.
  15377. NextToken *string `type:"string"`
  15378. }
  15379. // String returns the string representation
  15380. func (s ListCompilationJobsOutput) String() string {
  15381. return awsutil.Prettify(s)
  15382. }
  15383. // GoString returns the string representation
  15384. func (s ListCompilationJobsOutput) GoString() string {
  15385. return s.String()
  15386. }
  15387. // SetCompilationJobSummaries sets the CompilationJobSummaries field's value.
  15388. func (s *ListCompilationJobsOutput) SetCompilationJobSummaries(v []*CompilationJobSummary) *ListCompilationJobsOutput {
  15389. s.CompilationJobSummaries = v
  15390. return s
  15391. }
  15392. // SetNextToken sets the NextToken field's value.
  15393. func (s *ListCompilationJobsOutput) SetNextToken(v string) *ListCompilationJobsOutput {
  15394. s.NextToken = &v
  15395. return s
  15396. }
  15397. type ListEndpointConfigsInput struct {
  15398. _ struct{} `type:"structure"`
  15399. // A filter that returns only endpoint configurations created after the specified
  15400. // time (timestamp).
  15401. CreationTimeAfter *time.Time `type:"timestamp"`
  15402. // A filter that returns only endpoint configurations created before the specified
  15403. // time (timestamp).
  15404. CreationTimeBefore *time.Time `type:"timestamp"`
  15405. // The maximum number of training jobs to return in the response.
  15406. MaxResults *int64 `min:"1" type:"integer"`
  15407. // A string in the endpoint configuration name. This filter returns only endpoint
  15408. // configurations whose name contains the specified string.
  15409. NameContains *string `type:"string"`
  15410. // If the result of the previous ListEndpointConfig request was truncated, the
  15411. // response includes a NextToken. To retrieve the next set of endpoint configurations,
  15412. // use the token in the next request.
  15413. NextToken *string `type:"string"`
  15414. // The field to sort results by. The default is CreationTime.
  15415. SortBy *string `type:"string" enum:"EndpointConfigSortKey"`
  15416. // The sort order for results. The default is Ascending.
  15417. SortOrder *string `type:"string" enum:"OrderKey"`
  15418. }
  15419. // String returns the string representation
  15420. func (s ListEndpointConfigsInput) String() string {
  15421. return awsutil.Prettify(s)
  15422. }
  15423. // GoString returns the string representation
  15424. func (s ListEndpointConfigsInput) GoString() string {
  15425. return s.String()
  15426. }
  15427. // Validate inspects the fields of the type to determine if they are valid.
  15428. func (s *ListEndpointConfigsInput) Validate() error {
  15429. invalidParams := request.ErrInvalidParams{Context: "ListEndpointConfigsInput"}
  15430. if s.MaxResults != nil && *s.MaxResults < 1 {
  15431. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15432. }
  15433. if invalidParams.Len() > 0 {
  15434. return invalidParams
  15435. }
  15436. return nil
  15437. }
  15438. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15439. func (s *ListEndpointConfigsInput) SetCreationTimeAfter(v time.Time) *ListEndpointConfigsInput {
  15440. s.CreationTimeAfter = &v
  15441. return s
  15442. }
  15443. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15444. func (s *ListEndpointConfigsInput) SetCreationTimeBefore(v time.Time) *ListEndpointConfigsInput {
  15445. s.CreationTimeBefore = &v
  15446. return s
  15447. }
  15448. // SetMaxResults sets the MaxResults field's value.
  15449. func (s *ListEndpointConfigsInput) SetMaxResults(v int64) *ListEndpointConfigsInput {
  15450. s.MaxResults = &v
  15451. return s
  15452. }
  15453. // SetNameContains sets the NameContains field's value.
  15454. func (s *ListEndpointConfigsInput) SetNameContains(v string) *ListEndpointConfigsInput {
  15455. s.NameContains = &v
  15456. return s
  15457. }
  15458. // SetNextToken sets the NextToken field's value.
  15459. func (s *ListEndpointConfigsInput) SetNextToken(v string) *ListEndpointConfigsInput {
  15460. s.NextToken = &v
  15461. return s
  15462. }
  15463. // SetSortBy sets the SortBy field's value.
  15464. func (s *ListEndpointConfigsInput) SetSortBy(v string) *ListEndpointConfigsInput {
  15465. s.SortBy = &v
  15466. return s
  15467. }
  15468. // SetSortOrder sets the SortOrder field's value.
  15469. func (s *ListEndpointConfigsInput) SetSortOrder(v string) *ListEndpointConfigsInput {
  15470. s.SortOrder = &v
  15471. return s
  15472. }
  15473. type ListEndpointConfigsOutput struct {
  15474. _ struct{} `type:"structure"`
  15475. // An array of endpoint configurations.
  15476. //
  15477. // EndpointConfigs is a required field
  15478. EndpointConfigs []*EndpointConfigSummary `type:"list" required:"true"`
  15479. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  15480. // the next set of endpoint configurations, use it in the subsequent request
  15481. NextToken *string `type:"string"`
  15482. }
  15483. // String returns the string representation
  15484. func (s ListEndpointConfigsOutput) String() string {
  15485. return awsutil.Prettify(s)
  15486. }
  15487. // GoString returns the string representation
  15488. func (s ListEndpointConfigsOutput) GoString() string {
  15489. return s.String()
  15490. }
  15491. // SetEndpointConfigs sets the EndpointConfigs field's value.
  15492. func (s *ListEndpointConfigsOutput) SetEndpointConfigs(v []*EndpointConfigSummary) *ListEndpointConfigsOutput {
  15493. s.EndpointConfigs = v
  15494. return s
  15495. }
  15496. // SetNextToken sets the NextToken field's value.
  15497. func (s *ListEndpointConfigsOutput) SetNextToken(v string) *ListEndpointConfigsOutput {
  15498. s.NextToken = &v
  15499. return s
  15500. }
  15501. type ListEndpointsInput struct {
  15502. _ struct{} `type:"structure"`
  15503. // A filter that returns only endpoints that were created after the specified
  15504. // time (timestamp).
  15505. CreationTimeAfter *time.Time `type:"timestamp"`
  15506. // A filter that returns only endpoints that were created before the specified
  15507. // time (timestamp).
  15508. CreationTimeBefore *time.Time `type:"timestamp"`
  15509. // A filter that returns only endpoints that were modified after the specified
  15510. // timestamp.
  15511. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  15512. // A filter that returns only endpoints that were modified before the specified
  15513. // timestamp.
  15514. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  15515. // The maximum number of endpoints to return in the response.
  15516. MaxResults *int64 `min:"1" type:"integer"`
  15517. // A string in endpoint names. This filter returns only endpoints whose name
  15518. // contains the specified string.
  15519. NameContains *string `type:"string"`
  15520. // If the result of a ListEndpoints request was truncated, the response includes
  15521. // a NextToken. To retrieve the next set of endpoints, use the token in the
  15522. // next request.
  15523. NextToken *string `type:"string"`
  15524. // Sorts the list of results. The default is CreationTime.
  15525. SortBy *string `type:"string" enum:"EndpointSortKey"`
  15526. // The sort order for results. The default is Ascending.
  15527. SortOrder *string `type:"string" enum:"OrderKey"`
  15528. // A filter that returns only endpoints with the specified status.
  15529. StatusEquals *string `type:"string" enum:"EndpointStatus"`
  15530. }
  15531. // String returns the string representation
  15532. func (s ListEndpointsInput) String() string {
  15533. return awsutil.Prettify(s)
  15534. }
  15535. // GoString returns the string representation
  15536. func (s ListEndpointsInput) GoString() string {
  15537. return s.String()
  15538. }
  15539. // Validate inspects the fields of the type to determine if they are valid.
  15540. func (s *ListEndpointsInput) Validate() error {
  15541. invalidParams := request.ErrInvalidParams{Context: "ListEndpointsInput"}
  15542. if s.MaxResults != nil && *s.MaxResults < 1 {
  15543. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15544. }
  15545. if invalidParams.Len() > 0 {
  15546. return invalidParams
  15547. }
  15548. return nil
  15549. }
  15550. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15551. func (s *ListEndpointsInput) SetCreationTimeAfter(v time.Time) *ListEndpointsInput {
  15552. s.CreationTimeAfter = &v
  15553. return s
  15554. }
  15555. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15556. func (s *ListEndpointsInput) SetCreationTimeBefore(v time.Time) *ListEndpointsInput {
  15557. s.CreationTimeBefore = &v
  15558. return s
  15559. }
  15560. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  15561. func (s *ListEndpointsInput) SetLastModifiedTimeAfter(v time.Time) *ListEndpointsInput {
  15562. s.LastModifiedTimeAfter = &v
  15563. return s
  15564. }
  15565. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  15566. func (s *ListEndpointsInput) SetLastModifiedTimeBefore(v time.Time) *ListEndpointsInput {
  15567. s.LastModifiedTimeBefore = &v
  15568. return s
  15569. }
  15570. // SetMaxResults sets the MaxResults field's value.
  15571. func (s *ListEndpointsInput) SetMaxResults(v int64) *ListEndpointsInput {
  15572. s.MaxResults = &v
  15573. return s
  15574. }
  15575. // SetNameContains sets the NameContains field's value.
  15576. func (s *ListEndpointsInput) SetNameContains(v string) *ListEndpointsInput {
  15577. s.NameContains = &v
  15578. return s
  15579. }
  15580. // SetNextToken sets the NextToken field's value.
  15581. func (s *ListEndpointsInput) SetNextToken(v string) *ListEndpointsInput {
  15582. s.NextToken = &v
  15583. return s
  15584. }
  15585. // SetSortBy sets the SortBy field's value.
  15586. func (s *ListEndpointsInput) SetSortBy(v string) *ListEndpointsInput {
  15587. s.SortBy = &v
  15588. return s
  15589. }
  15590. // SetSortOrder sets the SortOrder field's value.
  15591. func (s *ListEndpointsInput) SetSortOrder(v string) *ListEndpointsInput {
  15592. s.SortOrder = &v
  15593. return s
  15594. }
  15595. // SetStatusEquals sets the StatusEquals field's value.
  15596. func (s *ListEndpointsInput) SetStatusEquals(v string) *ListEndpointsInput {
  15597. s.StatusEquals = &v
  15598. return s
  15599. }
  15600. type ListEndpointsOutput struct {
  15601. _ struct{} `type:"structure"`
  15602. // An array or endpoint objects.
  15603. //
  15604. // Endpoints is a required field
  15605. Endpoints []*EndpointSummary `type:"list" required:"true"`
  15606. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  15607. // the next set of training jobs, use it in the subsequent request.
  15608. NextToken *string `type:"string"`
  15609. }
  15610. // String returns the string representation
  15611. func (s ListEndpointsOutput) String() string {
  15612. return awsutil.Prettify(s)
  15613. }
  15614. // GoString returns the string representation
  15615. func (s ListEndpointsOutput) GoString() string {
  15616. return s.String()
  15617. }
  15618. // SetEndpoints sets the Endpoints field's value.
  15619. func (s *ListEndpointsOutput) SetEndpoints(v []*EndpointSummary) *ListEndpointsOutput {
  15620. s.Endpoints = v
  15621. return s
  15622. }
  15623. // SetNextToken sets the NextToken field's value.
  15624. func (s *ListEndpointsOutput) SetNextToken(v string) *ListEndpointsOutput {
  15625. s.NextToken = &v
  15626. return s
  15627. }
  15628. type ListHyperParameterTuningJobsInput struct {
  15629. _ struct{} `type:"structure"`
  15630. // A filter that returns only tuning jobs that were created after the specified
  15631. // time.
  15632. CreationTimeAfter *time.Time `type:"timestamp"`
  15633. // A filter that returns only tuning jobs that were created before the specified
  15634. // time.
  15635. CreationTimeBefore *time.Time `type:"timestamp"`
  15636. // A filter that returns only tuning jobs that were modified after the specified
  15637. // time.
  15638. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  15639. // A filter that returns only tuning jobs that were modified before the specified
  15640. // time.
  15641. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  15642. // The maximum number of tuning jobs to return. The default value is 10.
  15643. MaxResults *int64 `min:"1" type:"integer"`
  15644. // A string in the tuning job name. This filter returns only tuning jobs whose
  15645. // name contains the specified string.
  15646. NameContains *string `type:"string"`
  15647. // If the result of the previous ListHyperParameterTuningJobs request was truncated,
  15648. // the response includes a NextToken. To retrieve the next set of tuning jobs,
  15649. // use the token in the next request.
  15650. NextToken *string `type:"string"`
  15651. // The field to sort results by. The default is Name.
  15652. SortBy *string `type:"string" enum:"HyperParameterTuningJobSortByOptions"`
  15653. // The sort order for results. The default is Ascending.
  15654. SortOrder *string `type:"string" enum:"SortOrder"`
  15655. // A filter that returns only tuning jobs with the specified status.
  15656. StatusEquals *string `type:"string" enum:"HyperParameterTuningJobStatus"`
  15657. }
  15658. // String returns the string representation
  15659. func (s ListHyperParameterTuningJobsInput) String() string {
  15660. return awsutil.Prettify(s)
  15661. }
  15662. // GoString returns the string representation
  15663. func (s ListHyperParameterTuningJobsInput) GoString() string {
  15664. return s.String()
  15665. }
  15666. // Validate inspects the fields of the type to determine if they are valid.
  15667. func (s *ListHyperParameterTuningJobsInput) Validate() error {
  15668. invalidParams := request.ErrInvalidParams{Context: "ListHyperParameterTuningJobsInput"}
  15669. if s.MaxResults != nil && *s.MaxResults < 1 {
  15670. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15671. }
  15672. if invalidParams.Len() > 0 {
  15673. return invalidParams
  15674. }
  15675. return nil
  15676. }
  15677. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15678. func (s *ListHyperParameterTuningJobsInput) SetCreationTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput {
  15679. s.CreationTimeAfter = &v
  15680. return s
  15681. }
  15682. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15683. func (s *ListHyperParameterTuningJobsInput) SetCreationTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput {
  15684. s.CreationTimeBefore = &v
  15685. return s
  15686. }
  15687. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  15688. func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput {
  15689. s.LastModifiedTimeAfter = &v
  15690. return s
  15691. }
  15692. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  15693. func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput {
  15694. s.LastModifiedTimeBefore = &v
  15695. return s
  15696. }
  15697. // SetMaxResults sets the MaxResults field's value.
  15698. func (s *ListHyperParameterTuningJobsInput) SetMaxResults(v int64) *ListHyperParameterTuningJobsInput {
  15699. s.MaxResults = &v
  15700. return s
  15701. }
  15702. // SetNameContains sets the NameContains field's value.
  15703. func (s *ListHyperParameterTuningJobsInput) SetNameContains(v string) *ListHyperParameterTuningJobsInput {
  15704. s.NameContains = &v
  15705. return s
  15706. }
  15707. // SetNextToken sets the NextToken field's value.
  15708. func (s *ListHyperParameterTuningJobsInput) SetNextToken(v string) *ListHyperParameterTuningJobsInput {
  15709. s.NextToken = &v
  15710. return s
  15711. }
  15712. // SetSortBy sets the SortBy field's value.
  15713. func (s *ListHyperParameterTuningJobsInput) SetSortBy(v string) *ListHyperParameterTuningJobsInput {
  15714. s.SortBy = &v
  15715. return s
  15716. }
  15717. // SetSortOrder sets the SortOrder field's value.
  15718. func (s *ListHyperParameterTuningJobsInput) SetSortOrder(v string) *ListHyperParameterTuningJobsInput {
  15719. s.SortOrder = &v
  15720. return s
  15721. }
  15722. // SetStatusEquals sets the StatusEquals field's value.
  15723. func (s *ListHyperParameterTuningJobsInput) SetStatusEquals(v string) *ListHyperParameterTuningJobsInput {
  15724. s.StatusEquals = &v
  15725. return s
  15726. }
  15727. type ListHyperParameterTuningJobsOutput struct {
  15728. _ struct{} `type:"structure"`
  15729. // A list of HyperParameterTuningJobSummary objects that describe the tuning
  15730. // jobs that the ListHyperParameterTuningJobs request returned.
  15731. //
  15732. // HyperParameterTuningJobSummaries is a required field
  15733. HyperParameterTuningJobSummaries []*HyperParameterTuningJobSummary `type:"list" required:"true"`
  15734. // If the result of this ListHyperParameterTuningJobs request was truncated,
  15735. // the response includes a NextToken. To retrieve the next set of tuning jobs,
  15736. // use the token in the next request.
  15737. NextToken *string `type:"string"`
  15738. }
  15739. // String returns the string representation
  15740. func (s ListHyperParameterTuningJobsOutput) String() string {
  15741. return awsutil.Prettify(s)
  15742. }
  15743. // GoString returns the string representation
  15744. func (s ListHyperParameterTuningJobsOutput) GoString() string {
  15745. return s.String()
  15746. }
  15747. // SetHyperParameterTuningJobSummaries sets the HyperParameterTuningJobSummaries field's value.
  15748. func (s *ListHyperParameterTuningJobsOutput) SetHyperParameterTuningJobSummaries(v []*HyperParameterTuningJobSummary) *ListHyperParameterTuningJobsOutput {
  15749. s.HyperParameterTuningJobSummaries = v
  15750. return s
  15751. }
  15752. // SetNextToken sets the NextToken field's value.
  15753. func (s *ListHyperParameterTuningJobsOutput) SetNextToken(v string) *ListHyperParameterTuningJobsOutput {
  15754. s.NextToken = &v
  15755. return s
  15756. }
  15757. type ListLabelingJobsForWorkteamInput struct {
  15758. _ struct{} `type:"structure"`
  15759. // A filter that returns only labeling jobs created after the specified time
  15760. // (timestamp).
  15761. CreationTimeAfter *time.Time `type:"timestamp"`
  15762. // A filter that returns only labeling jobs created before the specified time
  15763. // (timestamp).
  15764. CreationTimeBefore *time.Time `type:"timestamp"`
  15765. // A filter the limits jobs to only the ones whose job reference code contains
  15766. // the specified string.
  15767. JobReferenceCodeContains *string `min:"1" type:"string"`
  15768. // The maximum number of labeling jobs to return in each page of the response.
  15769. MaxResults *int64 `min:"1" type:"integer"`
  15770. // If the result of the previous ListLabelingJobsForWorkteam request was truncated,
  15771. // the response includes a NextToken. To retrieve the next set of labeling jobs,
  15772. // use the token in the next request.
  15773. NextToken *string `type:"string"`
  15774. // The field to sort results by. The default is CreationTime.
  15775. SortBy *string `type:"string" enum:"ListLabelingJobsForWorkteamSortByOptions"`
  15776. // The sort order for results. The default is Ascending.
  15777. SortOrder *string `type:"string" enum:"SortOrder"`
  15778. // The Amazon Resource Name (ARN) of the work team for which you want to see
  15779. // labeling jobs for.
  15780. //
  15781. // WorkteamArn is a required field
  15782. WorkteamArn *string `type:"string" required:"true"`
  15783. }
  15784. // String returns the string representation
  15785. func (s ListLabelingJobsForWorkteamInput) String() string {
  15786. return awsutil.Prettify(s)
  15787. }
  15788. // GoString returns the string representation
  15789. func (s ListLabelingJobsForWorkteamInput) GoString() string {
  15790. return s.String()
  15791. }
  15792. // Validate inspects the fields of the type to determine if they are valid.
  15793. func (s *ListLabelingJobsForWorkteamInput) Validate() error {
  15794. invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsForWorkteamInput"}
  15795. if s.JobReferenceCodeContains != nil && len(*s.JobReferenceCodeContains) < 1 {
  15796. invalidParams.Add(request.NewErrParamMinLen("JobReferenceCodeContains", 1))
  15797. }
  15798. if s.MaxResults != nil && *s.MaxResults < 1 {
  15799. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15800. }
  15801. if s.WorkteamArn == nil {
  15802. invalidParams.Add(request.NewErrParamRequired("WorkteamArn"))
  15803. }
  15804. if invalidParams.Len() > 0 {
  15805. return invalidParams
  15806. }
  15807. return nil
  15808. }
  15809. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15810. func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsForWorkteamInput {
  15811. s.CreationTimeAfter = &v
  15812. return s
  15813. }
  15814. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15815. func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsForWorkteamInput {
  15816. s.CreationTimeBefore = &v
  15817. return s
  15818. }
  15819. // SetJobReferenceCodeContains sets the JobReferenceCodeContains field's value.
  15820. func (s *ListLabelingJobsForWorkteamInput) SetJobReferenceCodeContains(v string) *ListLabelingJobsForWorkteamInput {
  15821. s.JobReferenceCodeContains = &v
  15822. return s
  15823. }
  15824. // SetMaxResults sets the MaxResults field's value.
  15825. func (s *ListLabelingJobsForWorkteamInput) SetMaxResults(v int64) *ListLabelingJobsForWorkteamInput {
  15826. s.MaxResults = &v
  15827. return s
  15828. }
  15829. // SetNextToken sets the NextToken field's value.
  15830. func (s *ListLabelingJobsForWorkteamInput) SetNextToken(v string) *ListLabelingJobsForWorkteamInput {
  15831. s.NextToken = &v
  15832. return s
  15833. }
  15834. // SetSortBy sets the SortBy field's value.
  15835. func (s *ListLabelingJobsForWorkteamInput) SetSortBy(v string) *ListLabelingJobsForWorkteamInput {
  15836. s.SortBy = &v
  15837. return s
  15838. }
  15839. // SetSortOrder sets the SortOrder field's value.
  15840. func (s *ListLabelingJobsForWorkteamInput) SetSortOrder(v string) *ListLabelingJobsForWorkteamInput {
  15841. s.SortOrder = &v
  15842. return s
  15843. }
  15844. // SetWorkteamArn sets the WorkteamArn field's value.
  15845. func (s *ListLabelingJobsForWorkteamInput) SetWorkteamArn(v string) *ListLabelingJobsForWorkteamInput {
  15846. s.WorkteamArn = &v
  15847. return s
  15848. }
  15849. type ListLabelingJobsForWorkteamOutput struct {
  15850. _ struct{} `type:"structure"`
  15851. // An array of LabelingJobSummary objects, each describing a labeling job.
  15852. //
  15853. // LabelingJobSummaryList is a required field
  15854. LabelingJobSummaryList []*LabelingJobForWorkteamSummary `type:"list" required:"true"`
  15855. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  15856. // the next set of labeling jobs, use it in the subsequent request.
  15857. NextToken *string `type:"string"`
  15858. }
  15859. // String returns the string representation
  15860. func (s ListLabelingJobsForWorkteamOutput) String() string {
  15861. return awsutil.Prettify(s)
  15862. }
  15863. // GoString returns the string representation
  15864. func (s ListLabelingJobsForWorkteamOutput) GoString() string {
  15865. return s.String()
  15866. }
  15867. // SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value.
  15868. func (s *ListLabelingJobsForWorkteamOutput) SetLabelingJobSummaryList(v []*LabelingJobForWorkteamSummary) *ListLabelingJobsForWorkteamOutput {
  15869. s.LabelingJobSummaryList = v
  15870. return s
  15871. }
  15872. // SetNextToken sets the NextToken field's value.
  15873. func (s *ListLabelingJobsForWorkteamOutput) SetNextToken(v string) *ListLabelingJobsForWorkteamOutput {
  15874. s.NextToken = &v
  15875. return s
  15876. }
  15877. type ListLabelingJobsInput struct {
  15878. _ struct{} `type:"structure"`
  15879. // A filter that returns only labeling jobs created after the specified time
  15880. // (timestamp).
  15881. CreationTimeAfter *time.Time `type:"timestamp"`
  15882. // A filter that returns only labeling jobs created before the specified time
  15883. // (timestamp).
  15884. CreationTimeBefore *time.Time `type:"timestamp"`
  15885. // A filter that returns only labeling jobs modified after the specified time
  15886. // (timestamp).
  15887. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  15888. // A filter that returns only labeling jobs modified before the specified time
  15889. // (timestamp).
  15890. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  15891. // The maximum number of labeling jobs to return in each page of the response.
  15892. MaxResults *int64 `min:"1" type:"integer"`
  15893. // A string in the labeling job name. This filter returns only labeling jobs
  15894. // whose name contains the specified string.
  15895. NameContains *string `type:"string"`
  15896. // If the result of the previous ListLabelingJobs request was truncated, the
  15897. // response includes a NextToken. To retrieve the next set of labeling jobs,
  15898. // use the token in the next request.
  15899. NextToken *string `type:"string"`
  15900. // The field to sort results by. The default is CreationTime.
  15901. SortBy *string `type:"string" enum:"SortBy"`
  15902. // The sort order for results. The default is Ascending.
  15903. SortOrder *string `type:"string" enum:"SortOrder"`
  15904. // A filter that retrieves only labeling jobs with a specific status.
  15905. StatusEquals *string `type:"string" enum:"LabelingJobStatus"`
  15906. }
  15907. // String returns the string representation
  15908. func (s ListLabelingJobsInput) String() string {
  15909. return awsutil.Prettify(s)
  15910. }
  15911. // GoString returns the string representation
  15912. func (s ListLabelingJobsInput) GoString() string {
  15913. return s.String()
  15914. }
  15915. // Validate inspects the fields of the type to determine if they are valid.
  15916. func (s *ListLabelingJobsInput) Validate() error {
  15917. invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsInput"}
  15918. if s.MaxResults != nil && *s.MaxResults < 1 {
  15919. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  15920. }
  15921. if invalidParams.Len() > 0 {
  15922. return invalidParams
  15923. }
  15924. return nil
  15925. }
  15926. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  15927. func (s *ListLabelingJobsInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsInput {
  15928. s.CreationTimeAfter = &v
  15929. return s
  15930. }
  15931. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  15932. func (s *ListLabelingJobsInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsInput {
  15933. s.CreationTimeBefore = &v
  15934. return s
  15935. }
  15936. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  15937. func (s *ListLabelingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListLabelingJobsInput {
  15938. s.LastModifiedTimeAfter = &v
  15939. return s
  15940. }
  15941. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  15942. func (s *ListLabelingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListLabelingJobsInput {
  15943. s.LastModifiedTimeBefore = &v
  15944. return s
  15945. }
  15946. // SetMaxResults sets the MaxResults field's value.
  15947. func (s *ListLabelingJobsInput) SetMaxResults(v int64) *ListLabelingJobsInput {
  15948. s.MaxResults = &v
  15949. return s
  15950. }
  15951. // SetNameContains sets the NameContains field's value.
  15952. func (s *ListLabelingJobsInput) SetNameContains(v string) *ListLabelingJobsInput {
  15953. s.NameContains = &v
  15954. return s
  15955. }
  15956. // SetNextToken sets the NextToken field's value.
  15957. func (s *ListLabelingJobsInput) SetNextToken(v string) *ListLabelingJobsInput {
  15958. s.NextToken = &v
  15959. return s
  15960. }
  15961. // SetSortBy sets the SortBy field's value.
  15962. func (s *ListLabelingJobsInput) SetSortBy(v string) *ListLabelingJobsInput {
  15963. s.SortBy = &v
  15964. return s
  15965. }
  15966. // SetSortOrder sets the SortOrder field's value.
  15967. func (s *ListLabelingJobsInput) SetSortOrder(v string) *ListLabelingJobsInput {
  15968. s.SortOrder = &v
  15969. return s
  15970. }
  15971. // SetStatusEquals sets the StatusEquals field's value.
  15972. func (s *ListLabelingJobsInput) SetStatusEquals(v string) *ListLabelingJobsInput {
  15973. s.StatusEquals = &v
  15974. return s
  15975. }
  15976. type ListLabelingJobsOutput struct {
  15977. _ struct{} `type:"structure"`
  15978. // An array of LabelingJobSummary objects, each describing a labeling job.
  15979. LabelingJobSummaryList []*LabelingJobSummary `type:"list"`
  15980. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  15981. // the next set of labeling jobs, use it in the subsequent request.
  15982. NextToken *string `type:"string"`
  15983. }
  15984. // String returns the string representation
  15985. func (s ListLabelingJobsOutput) String() string {
  15986. return awsutil.Prettify(s)
  15987. }
  15988. // GoString returns the string representation
  15989. func (s ListLabelingJobsOutput) GoString() string {
  15990. return s.String()
  15991. }
  15992. // SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value.
  15993. func (s *ListLabelingJobsOutput) SetLabelingJobSummaryList(v []*LabelingJobSummary) *ListLabelingJobsOutput {
  15994. s.LabelingJobSummaryList = v
  15995. return s
  15996. }
  15997. // SetNextToken sets the NextToken field's value.
  15998. func (s *ListLabelingJobsOutput) SetNextToken(v string) *ListLabelingJobsOutput {
  15999. s.NextToken = &v
  16000. return s
  16001. }
  16002. type ListModelPackagesInput struct {
  16003. _ struct{} `type:"structure"`
  16004. // A filter that returns only model packages created after the specified time
  16005. // (timestamp).
  16006. CreationTimeAfter *time.Time `type:"timestamp"`
  16007. // A filter that returns only model packages created before the specified time
  16008. // (timestamp).
  16009. CreationTimeBefore *time.Time `type:"timestamp"`
  16010. // The maximum number of model packages to return in the response.
  16011. MaxResults *int64 `min:"1" type:"integer"`
  16012. // A string in the model package name. This filter returns only model packages
  16013. // whose name contains the specified string.
  16014. NameContains *string `type:"string"`
  16015. // If the response to a previous ListModelPackages request was truncated, the
  16016. // response includes a NextToken. To retrieve the next set of model packages,
  16017. // use the token in the next request.
  16018. NextToken *string `type:"string"`
  16019. // The parameter by which to sort the results. The default is CreationTime.
  16020. SortBy *string `type:"string" enum:"ModelPackageSortBy"`
  16021. // The sort order for the results. The default is Ascending.
  16022. SortOrder *string `type:"string" enum:"SortOrder"`
  16023. }
  16024. // String returns the string representation
  16025. func (s ListModelPackagesInput) String() string {
  16026. return awsutil.Prettify(s)
  16027. }
  16028. // GoString returns the string representation
  16029. func (s ListModelPackagesInput) GoString() string {
  16030. return s.String()
  16031. }
  16032. // Validate inspects the fields of the type to determine if they are valid.
  16033. func (s *ListModelPackagesInput) Validate() error {
  16034. invalidParams := request.ErrInvalidParams{Context: "ListModelPackagesInput"}
  16035. if s.MaxResults != nil && *s.MaxResults < 1 {
  16036. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16037. }
  16038. if invalidParams.Len() > 0 {
  16039. return invalidParams
  16040. }
  16041. return nil
  16042. }
  16043. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  16044. func (s *ListModelPackagesInput) SetCreationTimeAfter(v time.Time) *ListModelPackagesInput {
  16045. s.CreationTimeAfter = &v
  16046. return s
  16047. }
  16048. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  16049. func (s *ListModelPackagesInput) SetCreationTimeBefore(v time.Time) *ListModelPackagesInput {
  16050. s.CreationTimeBefore = &v
  16051. return s
  16052. }
  16053. // SetMaxResults sets the MaxResults field's value.
  16054. func (s *ListModelPackagesInput) SetMaxResults(v int64) *ListModelPackagesInput {
  16055. s.MaxResults = &v
  16056. return s
  16057. }
  16058. // SetNameContains sets the NameContains field's value.
  16059. func (s *ListModelPackagesInput) SetNameContains(v string) *ListModelPackagesInput {
  16060. s.NameContains = &v
  16061. return s
  16062. }
  16063. // SetNextToken sets the NextToken field's value.
  16064. func (s *ListModelPackagesInput) SetNextToken(v string) *ListModelPackagesInput {
  16065. s.NextToken = &v
  16066. return s
  16067. }
  16068. // SetSortBy sets the SortBy field's value.
  16069. func (s *ListModelPackagesInput) SetSortBy(v string) *ListModelPackagesInput {
  16070. s.SortBy = &v
  16071. return s
  16072. }
  16073. // SetSortOrder sets the SortOrder field's value.
  16074. func (s *ListModelPackagesInput) SetSortOrder(v string) *ListModelPackagesInput {
  16075. s.SortOrder = &v
  16076. return s
  16077. }
  16078. type ListModelPackagesOutput struct {
  16079. _ struct{} `type:"structure"`
  16080. // An array of ModelPackageSummary objects, each of which lists a model package.
  16081. //
  16082. // ModelPackageSummaryList is a required field
  16083. ModelPackageSummaryList []*ModelPackageSummary `type:"list" required:"true"`
  16084. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  16085. // the next set of model packages, use it in the subsequent request.
  16086. NextToken *string `type:"string"`
  16087. }
  16088. // String returns the string representation
  16089. func (s ListModelPackagesOutput) String() string {
  16090. return awsutil.Prettify(s)
  16091. }
  16092. // GoString returns the string representation
  16093. func (s ListModelPackagesOutput) GoString() string {
  16094. return s.String()
  16095. }
  16096. // SetModelPackageSummaryList sets the ModelPackageSummaryList field's value.
  16097. func (s *ListModelPackagesOutput) SetModelPackageSummaryList(v []*ModelPackageSummary) *ListModelPackagesOutput {
  16098. s.ModelPackageSummaryList = v
  16099. return s
  16100. }
  16101. // SetNextToken sets the NextToken field's value.
  16102. func (s *ListModelPackagesOutput) SetNextToken(v string) *ListModelPackagesOutput {
  16103. s.NextToken = &v
  16104. return s
  16105. }
  16106. type ListModelsInput struct {
  16107. _ struct{} `type:"structure"`
  16108. // A filter that returns only models created after the specified time (timestamp).
  16109. CreationTimeAfter *time.Time `type:"timestamp"`
  16110. // A filter that returns only models created before the specified time (timestamp).
  16111. CreationTimeBefore *time.Time `type:"timestamp"`
  16112. // The maximum number of models to return in the response.
  16113. MaxResults *int64 `min:"1" type:"integer"`
  16114. // A string in the training job name. This filter returns only models in the
  16115. // training job whose name contains the specified string.
  16116. NameContains *string `type:"string"`
  16117. // If the response to a previous ListModels request was truncated, the response
  16118. // includes a NextToken. To retrieve the next set of models, use the token in
  16119. // the next request.
  16120. NextToken *string `type:"string"`
  16121. // Sorts the list of results. The default is CreationTime.
  16122. SortBy *string `type:"string" enum:"ModelSortKey"`
  16123. // The sort order for results. The default is Ascending.
  16124. SortOrder *string `type:"string" enum:"OrderKey"`
  16125. }
  16126. // String returns the string representation
  16127. func (s ListModelsInput) String() string {
  16128. return awsutil.Prettify(s)
  16129. }
  16130. // GoString returns the string representation
  16131. func (s ListModelsInput) GoString() string {
  16132. return s.String()
  16133. }
  16134. // Validate inspects the fields of the type to determine if they are valid.
  16135. func (s *ListModelsInput) Validate() error {
  16136. invalidParams := request.ErrInvalidParams{Context: "ListModelsInput"}
  16137. if s.MaxResults != nil && *s.MaxResults < 1 {
  16138. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16139. }
  16140. if invalidParams.Len() > 0 {
  16141. return invalidParams
  16142. }
  16143. return nil
  16144. }
  16145. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  16146. func (s *ListModelsInput) SetCreationTimeAfter(v time.Time) *ListModelsInput {
  16147. s.CreationTimeAfter = &v
  16148. return s
  16149. }
  16150. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  16151. func (s *ListModelsInput) SetCreationTimeBefore(v time.Time) *ListModelsInput {
  16152. s.CreationTimeBefore = &v
  16153. return s
  16154. }
  16155. // SetMaxResults sets the MaxResults field's value.
  16156. func (s *ListModelsInput) SetMaxResults(v int64) *ListModelsInput {
  16157. s.MaxResults = &v
  16158. return s
  16159. }
  16160. // SetNameContains sets the NameContains field's value.
  16161. func (s *ListModelsInput) SetNameContains(v string) *ListModelsInput {
  16162. s.NameContains = &v
  16163. return s
  16164. }
  16165. // SetNextToken sets the NextToken field's value.
  16166. func (s *ListModelsInput) SetNextToken(v string) *ListModelsInput {
  16167. s.NextToken = &v
  16168. return s
  16169. }
  16170. // SetSortBy sets the SortBy field's value.
  16171. func (s *ListModelsInput) SetSortBy(v string) *ListModelsInput {
  16172. s.SortBy = &v
  16173. return s
  16174. }
  16175. // SetSortOrder sets the SortOrder field's value.
  16176. func (s *ListModelsInput) SetSortOrder(v string) *ListModelsInput {
  16177. s.SortOrder = &v
  16178. return s
  16179. }
  16180. type ListModelsOutput struct {
  16181. _ struct{} `type:"structure"`
  16182. // An array of ModelSummary objects, each of which lists a model.
  16183. //
  16184. // Models is a required field
  16185. Models []*ModelSummary `type:"list" required:"true"`
  16186. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  16187. // the next set of models, use it in the subsequent request.
  16188. NextToken *string `type:"string"`
  16189. }
  16190. // String returns the string representation
  16191. func (s ListModelsOutput) String() string {
  16192. return awsutil.Prettify(s)
  16193. }
  16194. // GoString returns the string representation
  16195. func (s ListModelsOutput) GoString() string {
  16196. return s.String()
  16197. }
  16198. // SetModels sets the Models field's value.
  16199. func (s *ListModelsOutput) SetModels(v []*ModelSummary) *ListModelsOutput {
  16200. s.Models = v
  16201. return s
  16202. }
  16203. // SetNextToken sets the NextToken field's value.
  16204. func (s *ListModelsOutput) SetNextToken(v string) *ListModelsOutput {
  16205. s.NextToken = &v
  16206. return s
  16207. }
  16208. type ListNotebookInstanceLifecycleConfigsInput struct {
  16209. _ struct{} `type:"structure"`
  16210. // A filter that returns only lifecycle configurations that were created after
  16211. // the specified time (timestamp).
  16212. CreationTimeAfter *time.Time `type:"timestamp"`
  16213. // A filter that returns only lifecycle configurations that were created before
  16214. // the specified time (timestamp).
  16215. CreationTimeBefore *time.Time `type:"timestamp"`
  16216. // A filter that returns only lifecycle configurations that were modified after
  16217. // the specified time (timestamp).
  16218. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  16219. // A filter that returns only lifecycle configurations that were modified before
  16220. // the specified time (timestamp).
  16221. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  16222. // The maximum number of lifecycle configurations to return in the response.
  16223. MaxResults *int64 `min:"1" type:"integer"`
  16224. // A string in the lifecycle configuration name. This filter returns only lifecycle
  16225. // configurations whose name contains the specified string.
  16226. NameContains *string `type:"string"`
  16227. // If the result of a ListNotebookInstanceLifecycleConfigs request was truncated,
  16228. // the response includes a NextToken. To get the next set of lifecycle configurations,
  16229. // use the token in the next request.
  16230. NextToken *string `type:"string"`
  16231. // Sorts the list of results. The default is CreationTime.
  16232. SortBy *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortKey"`
  16233. // The sort order for results.
  16234. SortOrder *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortOrder"`
  16235. }
  16236. // String returns the string representation
  16237. func (s ListNotebookInstanceLifecycleConfigsInput) String() string {
  16238. return awsutil.Prettify(s)
  16239. }
  16240. // GoString returns the string representation
  16241. func (s ListNotebookInstanceLifecycleConfigsInput) GoString() string {
  16242. return s.String()
  16243. }
  16244. // Validate inspects the fields of the type to determine if they are valid.
  16245. func (s *ListNotebookInstanceLifecycleConfigsInput) Validate() error {
  16246. invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstanceLifecycleConfigsInput"}
  16247. if s.MaxResults != nil && *s.MaxResults < 1 {
  16248. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16249. }
  16250. if invalidParams.Len() > 0 {
  16251. return invalidParams
  16252. }
  16253. return nil
  16254. }
  16255. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  16256. func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
  16257. s.CreationTimeAfter = &v
  16258. return s
  16259. }
  16260. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  16261. func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
  16262. s.CreationTimeBefore = &v
  16263. return s
  16264. }
  16265. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  16266. func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
  16267. s.LastModifiedTimeAfter = &v
  16268. return s
  16269. }
  16270. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  16271. func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput {
  16272. s.LastModifiedTimeBefore = &v
  16273. return s
  16274. }
  16275. // SetMaxResults sets the MaxResults field's value.
  16276. func (s *ListNotebookInstanceLifecycleConfigsInput) SetMaxResults(v int64) *ListNotebookInstanceLifecycleConfigsInput {
  16277. s.MaxResults = &v
  16278. return s
  16279. }
  16280. // SetNameContains sets the NameContains field's value.
  16281. func (s *ListNotebookInstanceLifecycleConfigsInput) SetNameContains(v string) *ListNotebookInstanceLifecycleConfigsInput {
  16282. s.NameContains = &v
  16283. return s
  16284. }
  16285. // SetNextToken sets the NextToken field's value.
  16286. func (s *ListNotebookInstanceLifecycleConfigsInput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsInput {
  16287. s.NextToken = &v
  16288. return s
  16289. }
  16290. // SetSortBy sets the SortBy field's value.
  16291. func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortBy(v string) *ListNotebookInstanceLifecycleConfigsInput {
  16292. s.SortBy = &v
  16293. return s
  16294. }
  16295. // SetSortOrder sets the SortOrder field's value.
  16296. func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortOrder(v string) *ListNotebookInstanceLifecycleConfigsInput {
  16297. s.SortOrder = &v
  16298. return s
  16299. }
  16300. type ListNotebookInstanceLifecycleConfigsOutput struct {
  16301. _ struct{} `type:"structure"`
  16302. // If the response is truncated, Amazon SageMaker returns this token. To get
  16303. // the next set of lifecycle configurations, use it in the next request.
  16304. NextToken *string `type:"string"`
  16305. // An array of NotebookInstanceLifecycleConfiguration objects, each listing
  16306. // a lifecycle configuration.
  16307. NotebookInstanceLifecycleConfigs []*NotebookInstanceLifecycleConfigSummary `type:"list"`
  16308. }
  16309. // String returns the string representation
  16310. func (s ListNotebookInstanceLifecycleConfigsOutput) String() string {
  16311. return awsutil.Prettify(s)
  16312. }
  16313. // GoString returns the string representation
  16314. func (s ListNotebookInstanceLifecycleConfigsOutput) GoString() string {
  16315. return s.String()
  16316. }
  16317. // SetNextToken sets the NextToken field's value.
  16318. func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsOutput {
  16319. s.NextToken = &v
  16320. return s
  16321. }
  16322. // SetNotebookInstanceLifecycleConfigs sets the NotebookInstanceLifecycleConfigs field's value.
  16323. func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNotebookInstanceLifecycleConfigs(v []*NotebookInstanceLifecycleConfigSummary) *ListNotebookInstanceLifecycleConfigsOutput {
  16324. s.NotebookInstanceLifecycleConfigs = v
  16325. return s
  16326. }
  16327. type ListNotebookInstancesInput struct {
  16328. _ struct{} `type:"structure"`
  16329. // A filter that returns only notebook instances with associated with the specified
  16330. // git repository.
  16331. AdditionalCodeRepositoryEquals *string `min:"1" type:"string"`
  16332. // A filter that returns only notebook instances that were created after the
  16333. // specified time (timestamp).
  16334. CreationTimeAfter *time.Time `type:"timestamp"`
  16335. // A filter that returns only notebook instances that were created before the
  16336. // specified time (timestamp).
  16337. CreationTimeBefore *time.Time `type:"timestamp"`
  16338. // A string in the name or URL of a Git repository associated with this notebook
  16339. // instance. This filter returns only notebook instances associated with a git
  16340. // repository with a name that contains the specified string.
  16341. DefaultCodeRepositoryContains *string `type:"string"`
  16342. // A filter that returns only notebook instances that were modified after the
  16343. // specified time (timestamp).
  16344. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  16345. // A filter that returns only notebook instances that were modified before the
  16346. // specified time (timestamp).
  16347. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  16348. // The maximum number of notebook instances to return.
  16349. MaxResults *int64 `min:"1" type:"integer"`
  16350. // A string in the notebook instances' name. This filter returns only notebook
  16351. // instances whose name contains the specified string.
  16352. NameContains *string `type:"string"`
  16353. // If the previous call to the ListNotebookInstances is truncated, the response
  16354. // includes a NextToken. You can use this token in your subsequent ListNotebookInstances
  16355. // request to fetch the next set of notebook instances.
  16356. //
  16357. // You might specify a filter or a sort order in your request. When response
  16358. // is truncated, you must use the same values for the filer and sort order in
  16359. // the next request.
  16360. NextToken *string `type:"string"`
  16361. // A string in the name of a notebook instances lifecycle configuration associated
  16362. // with this notebook instance. This filter returns only notebook instances
  16363. // associated with a lifecycle configuration with a name that contains the specified
  16364. // string.
  16365. NotebookInstanceLifecycleConfigNameContains *string `type:"string"`
  16366. // The field to sort results by. The default is Name.
  16367. SortBy *string `type:"string" enum:"NotebookInstanceSortKey"`
  16368. // The sort order for results.
  16369. SortOrder *string `type:"string" enum:"NotebookInstanceSortOrder"`
  16370. // A filter that returns only notebook instances with the specified status.
  16371. StatusEquals *string `type:"string" enum:"NotebookInstanceStatus"`
  16372. }
  16373. // String returns the string representation
  16374. func (s ListNotebookInstancesInput) String() string {
  16375. return awsutil.Prettify(s)
  16376. }
  16377. // GoString returns the string representation
  16378. func (s ListNotebookInstancesInput) GoString() string {
  16379. return s.String()
  16380. }
  16381. // Validate inspects the fields of the type to determine if they are valid.
  16382. func (s *ListNotebookInstancesInput) Validate() error {
  16383. invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstancesInput"}
  16384. if s.AdditionalCodeRepositoryEquals != nil && len(*s.AdditionalCodeRepositoryEquals) < 1 {
  16385. invalidParams.Add(request.NewErrParamMinLen("AdditionalCodeRepositoryEquals", 1))
  16386. }
  16387. if s.MaxResults != nil && *s.MaxResults < 1 {
  16388. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16389. }
  16390. if invalidParams.Len() > 0 {
  16391. return invalidParams
  16392. }
  16393. return nil
  16394. }
  16395. // SetAdditionalCodeRepositoryEquals sets the AdditionalCodeRepositoryEquals field's value.
  16396. func (s *ListNotebookInstancesInput) SetAdditionalCodeRepositoryEquals(v string) *ListNotebookInstancesInput {
  16397. s.AdditionalCodeRepositoryEquals = &v
  16398. return s
  16399. }
  16400. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  16401. func (s *ListNotebookInstancesInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstancesInput {
  16402. s.CreationTimeAfter = &v
  16403. return s
  16404. }
  16405. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  16406. func (s *ListNotebookInstancesInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstancesInput {
  16407. s.CreationTimeBefore = &v
  16408. return s
  16409. }
  16410. // SetDefaultCodeRepositoryContains sets the DefaultCodeRepositoryContains field's value.
  16411. func (s *ListNotebookInstancesInput) SetDefaultCodeRepositoryContains(v string) *ListNotebookInstancesInput {
  16412. s.DefaultCodeRepositoryContains = &v
  16413. return s
  16414. }
  16415. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  16416. func (s *ListNotebookInstancesInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstancesInput {
  16417. s.LastModifiedTimeAfter = &v
  16418. return s
  16419. }
  16420. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  16421. func (s *ListNotebookInstancesInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstancesInput {
  16422. s.LastModifiedTimeBefore = &v
  16423. return s
  16424. }
  16425. // SetMaxResults sets the MaxResults field's value.
  16426. func (s *ListNotebookInstancesInput) SetMaxResults(v int64) *ListNotebookInstancesInput {
  16427. s.MaxResults = &v
  16428. return s
  16429. }
  16430. // SetNameContains sets the NameContains field's value.
  16431. func (s *ListNotebookInstancesInput) SetNameContains(v string) *ListNotebookInstancesInput {
  16432. s.NameContains = &v
  16433. return s
  16434. }
  16435. // SetNextToken sets the NextToken field's value.
  16436. func (s *ListNotebookInstancesInput) SetNextToken(v string) *ListNotebookInstancesInput {
  16437. s.NextToken = &v
  16438. return s
  16439. }
  16440. // SetNotebookInstanceLifecycleConfigNameContains sets the NotebookInstanceLifecycleConfigNameContains field's value.
  16441. func (s *ListNotebookInstancesInput) SetNotebookInstanceLifecycleConfigNameContains(v string) *ListNotebookInstancesInput {
  16442. s.NotebookInstanceLifecycleConfigNameContains = &v
  16443. return s
  16444. }
  16445. // SetSortBy sets the SortBy field's value.
  16446. func (s *ListNotebookInstancesInput) SetSortBy(v string) *ListNotebookInstancesInput {
  16447. s.SortBy = &v
  16448. return s
  16449. }
  16450. // SetSortOrder sets the SortOrder field's value.
  16451. func (s *ListNotebookInstancesInput) SetSortOrder(v string) *ListNotebookInstancesInput {
  16452. s.SortOrder = &v
  16453. return s
  16454. }
  16455. // SetStatusEquals sets the StatusEquals field's value.
  16456. func (s *ListNotebookInstancesInput) SetStatusEquals(v string) *ListNotebookInstancesInput {
  16457. s.StatusEquals = &v
  16458. return s
  16459. }
  16460. type ListNotebookInstancesOutput struct {
  16461. _ struct{} `type:"structure"`
  16462. // If the response to the previous ListNotebookInstances request was truncated,
  16463. // Amazon SageMaker returns this token. To retrieve the next set of notebook
  16464. // instances, use the token in the next request.
  16465. NextToken *string `type:"string"`
  16466. // An array of NotebookInstanceSummary objects, one for each notebook instance.
  16467. NotebookInstances []*NotebookInstanceSummary `type:"list"`
  16468. }
  16469. // String returns the string representation
  16470. func (s ListNotebookInstancesOutput) String() string {
  16471. return awsutil.Prettify(s)
  16472. }
  16473. // GoString returns the string representation
  16474. func (s ListNotebookInstancesOutput) GoString() string {
  16475. return s.String()
  16476. }
  16477. // SetNextToken sets the NextToken field's value.
  16478. func (s *ListNotebookInstancesOutput) SetNextToken(v string) *ListNotebookInstancesOutput {
  16479. s.NextToken = &v
  16480. return s
  16481. }
  16482. // SetNotebookInstances sets the NotebookInstances field's value.
  16483. func (s *ListNotebookInstancesOutput) SetNotebookInstances(v []*NotebookInstanceSummary) *ListNotebookInstancesOutput {
  16484. s.NotebookInstances = v
  16485. return s
  16486. }
  16487. type ListSubscribedWorkteamsInput struct {
  16488. _ struct{} `type:"structure"`
  16489. // The maximum number of work teams to return in each page of the response.
  16490. MaxResults *int64 `min:"1" type:"integer"`
  16491. // A string in the work team name. This filter returns only work teams whose
  16492. // name contains the specified string.
  16493. NameContains *string `min:"1" type:"string"`
  16494. // If the result of the previous ListSubscribedWorkteams request was truncated,
  16495. // the response includes a NextToken. To retrieve the next set of labeling jobs,
  16496. // use the token in the next request.
  16497. NextToken *string `type:"string"`
  16498. }
  16499. // String returns the string representation
  16500. func (s ListSubscribedWorkteamsInput) String() string {
  16501. return awsutil.Prettify(s)
  16502. }
  16503. // GoString returns the string representation
  16504. func (s ListSubscribedWorkteamsInput) GoString() string {
  16505. return s.String()
  16506. }
  16507. // Validate inspects the fields of the type to determine if they are valid.
  16508. func (s *ListSubscribedWorkteamsInput) Validate() error {
  16509. invalidParams := request.ErrInvalidParams{Context: "ListSubscribedWorkteamsInput"}
  16510. if s.MaxResults != nil && *s.MaxResults < 1 {
  16511. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16512. }
  16513. if s.NameContains != nil && len(*s.NameContains) < 1 {
  16514. invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
  16515. }
  16516. if invalidParams.Len() > 0 {
  16517. return invalidParams
  16518. }
  16519. return nil
  16520. }
  16521. // SetMaxResults sets the MaxResults field's value.
  16522. func (s *ListSubscribedWorkteamsInput) SetMaxResults(v int64) *ListSubscribedWorkteamsInput {
  16523. s.MaxResults = &v
  16524. return s
  16525. }
  16526. // SetNameContains sets the NameContains field's value.
  16527. func (s *ListSubscribedWorkteamsInput) SetNameContains(v string) *ListSubscribedWorkteamsInput {
  16528. s.NameContains = &v
  16529. return s
  16530. }
  16531. // SetNextToken sets the NextToken field's value.
  16532. func (s *ListSubscribedWorkteamsInput) SetNextToken(v string) *ListSubscribedWorkteamsInput {
  16533. s.NextToken = &v
  16534. return s
  16535. }
  16536. type ListSubscribedWorkteamsOutput struct {
  16537. _ struct{} `type:"structure"`
  16538. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  16539. // the next set of work teams, use it in the subsequent request.
  16540. NextToken *string `type:"string"`
  16541. // An array of Workteam objects, each describing a work team.
  16542. //
  16543. // SubscribedWorkteams is a required field
  16544. SubscribedWorkteams []*SubscribedWorkteam `type:"list" required:"true"`
  16545. }
  16546. // String returns the string representation
  16547. func (s ListSubscribedWorkteamsOutput) String() string {
  16548. return awsutil.Prettify(s)
  16549. }
  16550. // GoString returns the string representation
  16551. func (s ListSubscribedWorkteamsOutput) GoString() string {
  16552. return s.String()
  16553. }
  16554. // SetNextToken sets the NextToken field's value.
  16555. func (s *ListSubscribedWorkteamsOutput) SetNextToken(v string) *ListSubscribedWorkteamsOutput {
  16556. s.NextToken = &v
  16557. return s
  16558. }
  16559. // SetSubscribedWorkteams sets the SubscribedWorkteams field's value.
  16560. func (s *ListSubscribedWorkteamsOutput) SetSubscribedWorkteams(v []*SubscribedWorkteam) *ListSubscribedWorkteamsOutput {
  16561. s.SubscribedWorkteams = v
  16562. return s
  16563. }
  16564. type ListTagsInput struct {
  16565. _ struct{} `type:"structure"`
  16566. // Maximum number of tags to return.
  16567. MaxResults *int64 `min:"50" type:"integer"`
  16568. // If the response to the previous ListTags request is truncated, Amazon SageMaker
  16569. // returns this token. To retrieve the next set of tags, use it in the subsequent
  16570. // request.
  16571. NextToken *string `type:"string"`
  16572. // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.
  16573. //
  16574. // ResourceArn is a required field
  16575. ResourceArn *string `type:"string" required:"true"`
  16576. }
  16577. // String returns the string representation
  16578. func (s ListTagsInput) String() string {
  16579. return awsutil.Prettify(s)
  16580. }
  16581. // GoString returns the string representation
  16582. func (s ListTagsInput) GoString() string {
  16583. return s.String()
  16584. }
  16585. // Validate inspects the fields of the type to determine if they are valid.
  16586. func (s *ListTagsInput) Validate() error {
  16587. invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"}
  16588. if s.MaxResults != nil && *s.MaxResults < 50 {
  16589. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50))
  16590. }
  16591. if s.ResourceArn == nil {
  16592. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  16593. }
  16594. if invalidParams.Len() > 0 {
  16595. return invalidParams
  16596. }
  16597. return nil
  16598. }
  16599. // SetMaxResults sets the MaxResults field's value.
  16600. func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput {
  16601. s.MaxResults = &v
  16602. return s
  16603. }
  16604. // SetNextToken sets the NextToken field's value.
  16605. func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput {
  16606. s.NextToken = &v
  16607. return s
  16608. }
  16609. // SetResourceArn sets the ResourceArn field's value.
  16610. func (s *ListTagsInput) SetResourceArn(v string) *ListTagsInput {
  16611. s.ResourceArn = &v
  16612. return s
  16613. }
  16614. type ListTagsOutput struct {
  16615. _ struct{} `type:"structure"`
  16616. // If response is truncated, Amazon SageMaker includes a token in the response.
  16617. // You can use this token in your subsequent request to fetch next set of tokens.
  16618. NextToken *string `type:"string"`
  16619. // An array of Tag objects, each with a tag key and a value.
  16620. Tags []*Tag `type:"list"`
  16621. }
  16622. // String returns the string representation
  16623. func (s ListTagsOutput) String() string {
  16624. return awsutil.Prettify(s)
  16625. }
  16626. // GoString returns the string representation
  16627. func (s ListTagsOutput) GoString() string {
  16628. return s.String()
  16629. }
  16630. // SetNextToken sets the NextToken field's value.
  16631. func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput {
  16632. s.NextToken = &v
  16633. return s
  16634. }
  16635. // SetTags sets the Tags field's value.
  16636. func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput {
  16637. s.Tags = v
  16638. return s
  16639. }
  16640. type ListTrainingJobsForHyperParameterTuningJobInput struct {
  16641. _ struct{} `type:"structure"`
  16642. // The name of the tuning job whose training jobs you want to list.
  16643. //
  16644. // HyperParameterTuningJobName is a required field
  16645. HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
  16646. // The maximum number of training jobs to return. The default value is 10.
  16647. MaxResults *int64 `min:"1" type:"integer"`
  16648. // If the result of the previous ListTrainingJobsForHyperParameterTuningJob
  16649. // request was truncated, the response includes a NextToken. To retrieve the
  16650. // next set of training jobs, use the token in the next request.
  16651. NextToken *string `type:"string"`
  16652. // The field to sort results by. The default is Name.
  16653. //
  16654. // If the value of this field is FinalObjectiveMetricValue, any training jobs
  16655. // that did not return an objective metric are not listed.
  16656. SortBy *string `type:"string" enum:"TrainingJobSortByOptions"`
  16657. // The sort order for results. The default is Ascending.
  16658. SortOrder *string `type:"string" enum:"SortOrder"`
  16659. // A filter that returns only training jobs with the specified status.
  16660. StatusEquals *string `type:"string" enum:"TrainingJobStatus"`
  16661. }
  16662. // String returns the string representation
  16663. func (s ListTrainingJobsForHyperParameterTuningJobInput) String() string {
  16664. return awsutil.Prettify(s)
  16665. }
  16666. // GoString returns the string representation
  16667. func (s ListTrainingJobsForHyperParameterTuningJobInput) GoString() string {
  16668. return s.String()
  16669. }
  16670. // Validate inspects the fields of the type to determine if they are valid.
  16671. func (s *ListTrainingJobsForHyperParameterTuningJobInput) Validate() error {
  16672. invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsForHyperParameterTuningJobInput"}
  16673. if s.HyperParameterTuningJobName == nil {
  16674. invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
  16675. }
  16676. if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
  16677. invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
  16678. }
  16679. if s.MaxResults != nil && *s.MaxResults < 1 {
  16680. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16681. }
  16682. if invalidParams.Len() > 0 {
  16683. return invalidParams
  16684. }
  16685. return nil
  16686. }
  16687. // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
  16688. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
  16689. s.HyperParameterTuningJobName = &v
  16690. return s
  16691. }
  16692. // SetMaxResults sets the MaxResults field's value.
  16693. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetMaxResults(v int64) *ListTrainingJobsForHyperParameterTuningJobInput {
  16694. s.MaxResults = &v
  16695. return s
  16696. }
  16697. // SetNextToken sets the NextToken field's value.
  16698. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
  16699. s.NextToken = &v
  16700. return s
  16701. }
  16702. // SetSortBy sets the SortBy field's value.
  16703. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortBy(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
  16704. s.SortBy = &v
  16705. return s
  16706. }
  16707. // SetSortOrder sets the SortOrder field's value.
  16708. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortOrder(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
  16709. s.SortOrder = &v
  16710. return s
  16711. }
  16712. // SetStatusEquals sets the StatusEquals field's value.
  16713. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetStatusEquals(v string) *ListTrainingJobsForHyperParameterTuningJobInput {
  16714. s.StatusEquals = &v
  16715. return s
  16716. }
  16717. type ListTrainingJobsForHyperParameterTuningJobOutput struct {
  16718. _ struct{} `type:"structure"`
  16719. // If the result of this ListTrainingJobsForHyperParameterTuningJob request
  16720. // was truncated, the response includes a NextToken. To retrieve the next set
  16721. // of training jobs, use the token in the next request.
  16722. NextToken *string `type:"string"`
  16723. // A list of TrainingJobSummary objects that describe the training jobs that
  16724. // the ListTrainingJobsForHyperParameterTuningJob request returned.
  16725. //
  16726. // TrainingJobSummaries is a required field
  16727. TrainingJobSummaries []*HyperParameterTrainingJobSummary `type:"list" required:"true"`
  16728. }
  16729. // String returns the string representation
  16730. func (s ListTrainingJobsForHyperParameterTuningJobOutput) String() string {
  16731. return awsutil.Prettify(s)
  16732. }
  16733. // GoString returns the string representation
  16734. func (s ListTrainingJobsForHyperParameterTuningJobOutput) GoString() string {
  16735. return s.String()
  16736. }
  16737. // SetNextToken sets the NextToken field's value.
  16738. func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobOutput {
  16739. s.NextToken = &v
  16740. return s
  16741. }
  16742. // SetTrainingJobSummaries sets the TrainingJobSummaries field's value.
  16743. func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetTrainingJobSummaries(v []*HyperParameterTrainingJobSummary) *ListTrainingJobsForHyperParameterTuningJobOutput {
  16744. s.TrainingJobSummaries = v
  16745. return s
  16746. }
  16747. type ListTrainingJobsInput struct {
  16748. _ struct{} `type:"structure"`
  16749. // A filter that returns only training jobs created after the specified time
  16750. // (timestamp).
  16751. CreationTimeAfter *time.Time `type:"timestamp"`
  16752. // A filter that returns only training jobs created before the specified time
  16753. // (timestamp).
  16754. CreationTimeBefore *time.Time `type:"timestamp"`
  16755. // A filter that returns only training jobs modified after the specified time
  16756. // (timestamp).
  16757. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  16758. // A filter that returns only training jobs modified before the specified time
  16759. // (timestamp).
  16760. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  16761. // The maximum number of training jobs to return in the response.
  16762. MaxResults *int64 `min:"1" type:"integer"`
  16763. // A string in the training job name. This filter returns only training jobs
  16764. // whose name contains the specified string.
  16765. NameContains *string `type:"string"`
  16766. // If the result of the previous ListTrainingJobs request was truncated, the
  16767. // response includes a NextToken. To retrieve the next set of training jobs,
  16768. // use the token in the next request.
  16769. NextToken *string `type:"string"`
  16770. // The field to sort results by. The default is CreationTime.
  16771. SortBy *string `type:"string" enum:"SortBy"`
  16772. // The sort order for results. The default is Ascending.
  16773. SortOrder *string `type:"string" enum:"SortOrder"`
  16774. // A filter that retrieves only training jobs with a specific status.
  16775. StatusEquals *string `type:"string" enum:"TrainingJobStatus"`
  16776. }
  16777. // String returns the string representation
  16778. func (s ListTrainingJobsInput) String() string {
  16779. return awsutil.Prettify(s)
  16780. }
  16781. // GoString returns the string representation
  16782. func (s ListTrainingJobsInput) GoString() string {
  16783. return s.String()
  16784. }
  16785. // Validate inspects the fields of the type to determine if they are valid.
  16786. func (s *ListTrainingJobsInput) Validate() error {
  16787. invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsInput"}
  16788. if s.MaxResults != nil && *s.MaxResults < 1 {
  16789. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16790. }
  16791. if invalidParams.Len() > 0 {
  16792. return invalidParams
  16793. }
  16794. return nil
  16795. }
  16796. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  16797. func (s *ListTrainingJobsInput) SetCreationTimeAfter(v time.Time) *ListTrainingJobsInput {
  16798. s.CreationTimeAfter = &v
  16799. return s
  16800. }
  16801. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  16802. func (s *ListTrainingJobsInput) SetCreationTimeBefore(v time.Time) *ListTrainingJobsInput {
  16803. s.CreationTimeBefore = &v
  16804. return s
  16805. }
  16806. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  16807. func (s *ListTrainingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTrainingJobsInput {
  16808. s.LastModifiedTimeAfter = &v
  16809. return s
  16810. }
  16811. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  16812. func (s *ListTrainingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTrainingJobsInput {
  16813. s.LastModifiedTimeBefore = &v
  16814. return s
  16815. }
  16816. // SetMaxResults sets the MaxResults field's value.
  16817. func (s *ListTrainingJobsInput) SetMaxResults(v int64) *ListTrainingJobsInput {
  16818. s.MaxResults = &v
  16819. return s
  16820. }
  16821. // SetNameContains sets the NameContains field's value.
  16822. func (s *ListTrainingJobsInput) SetNameContains(v string) *ListTrainingJobsInput {
  16823. s.NameContains = &v
  16824. return s
  16825. }
  16826. // SetNextToken sets the NextToken field's value.
  16827. func (s *ListTrainingJobsInput) SetNextToken(v string) *ListTrainingJobsInput {
  16828. s.NextToken = &v
  16829. return s
  16830. }
  16831. // SetSortBy sets the SortBy field's value.
  16832. func (s *ListTrainingJobsInput) SetSortBy(v string) *ListTrainingJobsInput {
  16833. s.SortBy = &v
  16834. return s
  16835. }
  16836. // SetSortOrder sets the SortOrder field's value.
  16837. func (s *ListTrainingJobsInput) SetSortOrder(v string) *ListTrainingJobsInput {
  16838. s.SortOrder = &v
  16839. return s
  16840. }
  16841. // SetStatusEquals sets the StatusEquals field's value.
  16842. func (s *ListTrainingJobsInput) SetStatusEquals(v string) *ListTrainingJobsInput {
  16843. s.StatusEquals = &v
  16844. return s
  16845. }
  16846. type ListTrainingJobsOutput struct {
  16847. _ struct{} `type:"structure"`
  16848. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  16849. // the next set of training jobs, use it in the subsequent request.
  16850. NextToken *string `type:"string"`
  16851. // An array of TrainingJobSummary objects, each listing a training job.
  16852. //
  16853. // TrainingJobSummaries is a required field
  16854. TrainingJobSummaries []*TrainingJobSummary `type:"list" required:"true"`
  16855. }
  16856. // String returns the string representation
  16857. func (s ListTrainingJobsOutput) String() string {
  16858. return awsutil.Prettify(s)
  16859. }
  16860. // GoString returns the string representation
  16861. func (s ListTrainingJobsOutput) GoString() string {
  16862. return s.String()
  16863. }
  16864. // SetNextToken sets the NextToken field's value.
  16865. func (s *ListTrainingJobsOutput) SetNextToken(v string) *ListTrainingJobsOutput {
  16866. s.NextToken = &v
  16867. return s
  16868. }
  16869. // SetTrainingJobSummaries sets the TrainingJobSummaries field's value.
  16870. func (s *ListTrainingJobsOutput) SetTrainingJobSummaries(v []*TrainingJobSummary) *ListTrainingJobsOutput {
  16871. s.TrainingJobSummaries = v
  16872. return s
  16873. }
  16874. type ListTransformJobsInput struct {
  16875. _ struct{} `type:"structure"`
  16876. // A filter that returns only transform jobs created after the specified time.
  16877. CreationTimeAfter *time.Time `type:"timestamp"`
  16878. // A filter that returns only transform jobs created before the specified time.
  16879. CreationTimeBefore *time.Time `type:"timestamp"`
  16880. // A filter that returns only transform jobs modified after the specified time.
  16881. LastModifiedTimeAfter *time.Time `type:"timestamp"`
  16882. // A filter that returns only transform jobs modified before the specified time.
  16883. LastModifiedTimeBefore *time.Time `type:"timestamp"`
  16884. // The maximum number of transform jobs to return in the response. The default
  16885. // value is 10.
  16886. MaxResults *int64 `min:"1" type:"integer"`
  16887. // A string in the transform job name. This filter returns only transform jobs
  16888. // whose name contains the specified string.
  16889. NameContains *string `type:"string"`
  16890. // If the result of the previous ListTransformJobs request was truncated, the
  16891. // response includes a NextToken. To retrieve the next set of transform jobs,
  16892. // use the token in the next request.
  16893. NextToken *string `type:"string"`
  16894. // The field to sort results by. The default is CreationTime.
  16895. SortBy *string `type:"string" enum:"SortBy"`
  16896. // The sort order for results. The default is Descending.
  16897. SortOrder *string `type:"string" enum:"SortOrder"`
  16898. // A filter that retrieves only transform jobs with a specific status.
  16899. StatusEquals *string `type:"string" enum:"TransformJobStatus"`
  16900. }
  16901. // String returns the string representation
  16902. func (s ListTransformJobsInput) String() string {
  16903. return awsutil.Prettify(s)
  16904. }
  16905. // GoString returns the string representation
  16906. func (s ListTransformJobsInput) GoString() string {
  16907. return s.String()
  16908. }
  16909. // Validate inspects the fields of the type to determine if they are valid.
  16910. func (s *ListTransformJobsInput) Validate() error {
  16911. invalidParams := request.ErrInvalidParams{Context: "ListTransformJobsInput"}
  16912. if s.MaxResults != nil && *s.MaxResults < 1 {
  16913. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  16914. }
  16915. if invalidParams.Len() > 0 {
  16916. return invalidParams
  16917. }
  16918. return nil
  16919. }
  16920. // SetCreationTimeAfter sets the CreationTimeAfter field's value.
  16921. func (s *ListTransformJobsInput) SetCreationTimeAfter(v time.Time) *ListTransformJobsInput {
  16922. s.CreationTimeAfter = &v
  16923. return s
  16924. }
  16925. // SetCreationTimeBefore sets the CreationTimeBefore field's value.
  16926. func (s *ListTransformJobsInput) SetCreationTimeBefore(v time.Time) *ListTransformJobsInput {
  16927. s.CreationTimeBefore = &v
  16928. return s
  16929. }
  16930. // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value.
  16931. func (s *ListTransformJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTransformJobsInput {
  16932. s.LastModifiedTimeAfter = &v
  16933. return s
  16934. }
  16935. // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value.
  16936. func (s *ListTransformJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTransformJobsInput {
  16937. s.LastModifiedTimeBefore = &v
  16938. return s
  16939. }
  16940. // SetMaxResults sets the MaxResults field's value.
  16941. func (s *ListTransformJobsInput) SetMaxResults(v int64) *ListTransformJobsInput {
  16942. s.MaxResults = &v
  16943. return s
  16944. }
  16945. // SetNameContains sets the NameContains field's value.
  16946. func (s *ListTransformJobsInput) SetNameContains(v string) *ListTransformJobsInput {
  16947. s.NameContains = &v
  16948. return s
  16949. }
  16950. // SetNextToken sets the NextToken field's value.
  16951. func (s *ListTransformJobsInput) SetNextToken(v string) *ListTransformJobsInput {
  16952. s.NextToken = &v
  16953. return s
  16954. }
  16955. // SetSortBy sets the SortBy field's value.
  16956. func (s *ListTransformJobsInput) SetSortBy(v string) *ListTransformJobsInput {
  16957. s.SortBy = &v
  16958. return s
  16959. }
  16960. // SetSortOrder sets the SortOrder field's value.
  16961. func (s *ListTransformJobsInput) SetSortOrder(v string) *ListTransformJobsInput {
  16962. s.SortOrder = &v
  16963. return s
  16964. }
  16965. // SetStatusEquals sets the StatusEquals field's value.
  16966. func (s *ListTransformJobsInput) SetStatusEquals(v string) *ListTransformJobsInput {
  16967. s.StatusEquals = &v
  16968. return s
  16969. }
  16970. type ListTransformJobsOutput struct {
  16971. _ struct{} `type:"structure"`
  16972. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  16973. // the next set of transform jobs, use it in the next request.
  16974. NextToken *string `type:"string"`
  16975. // An array of TransformJobSummary objects.
  16976. //
  16977. // TransformJobSummaries is a required field
  16978. TransformJobSummaries []*TransformJobSummary `type:"list" required:"true"`
  16979. }
  16980. // String returns the string representation
  16981. func (s ListTransformJobsOutput) String() string {
  16982. return awsutil.Prettify(s)
  16983. }
  16984. // GoString returns the string representation
  16985. func (s ListTransformJobsOutput) GoString() string {
  16986. return s.String()
  16987. }
  16988. // SetNextToken sets the NextToken field's value.
  16989. func (s *ListTransformJobsOutput) SetNextToken(v string) *ListTransformJobsOutput {
  16990. s.NextToken = &v
  16991. return s
  16992. }
  16993. // SetTransformJobSummaries sets the TransformJobSummaries field's value.
  16994. func (s *ListTransformJobsOutput) SetTransformJobSummaries(v []*TransformJobSummary) *ListTransformJobsOutput {
  16995. s.TransformJobSummaries = v
  16996. return s
  16997. }
  16998. type ListWorkteamsInput struct {
  16999. _ struct{} `type:"structure"`
  17000. // The maximum number of work teams to return in each page of the response.
  17001. MaxResults *int64 `min:"1" type:"integer"`
  17002. // A string in the work team's name. This filter returns only work teams whose
  17003. // name contains the specified string.
  17004. NameContains *string `min:"1" type:"string"`
  17005. // If the result of the previous ListWorkteams request was truncated, the response
  17006. // includes a NextToken. To retrieve the next set of labeling jobs, use the
  17007. // token in the next request.
  17008. NextToken *string `type:"string"`
  17009. // The field to sort results by. The default is CreationTime.
  17010. SortBy *string `type:"string" enum:"ListWorkteamsSortByOptions"`
  17011. // The sort order for results. The default is Ascending.
  17012. SortOrder *string `type:"string" enum:"SortOrder"`
  17013. }
  17014. // String returns the string representation
  17015. func (s ListWorkteamsInput) String() string {
  17016. return awsutil.Prettify(s)
  17017. }
  17018. // GoString returns the string representation
  17019. func (s ListWorkteamsInput) GoString() string {
  17020. return s.String()
  17021. }
  17022. // Validate inspects the fields of the type to determine if they are valid.
  17023. func (s *ListWorkteamsInput) Validate() error {
  17024. invalidParams := request.ErrInvalidParams{Context: "ListWorkteamsInput"}
  17025. if s.MaxResults != nil && *s.MaxResults < 1 {
  17026. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  17027. }
  17028. if s.NameContains != nil && len(*s.NameContains) < 1 {
  17029. invalidParams.Add(request.NewErrParamMinLen("NameContains", 1))
  17030. }
  17031. if invalidParams.Len() > 0 {
  17032. return invalidParams
  17033. }
  17034. return nil
  17035. }
  17036. // SetMaxResults sets the MaxResults field's value.
  17037. func (s *ListWorkteamsInput) SetMaxResults(v int64) *ListWorkteamsInput {
  17038. s.MaxResults = &v
  17039. return s
  17040. }
  17041. // SetNameContains sets the NameContains field's value.
  17042. func (s *ListWorkteamsInput) SetNameContains(v string) *ListWorkteamsInput {
  17043. s.NameContains = &v
  17044. return s
  17045. }
  17046. // SetNextToken sets the NextToken field's value.
  17047. func (s *ListWorkteamsInput) SetNextToken(v string) *ListWorkteamsInput {
  17048. s.NextToken = &v
  17049. return s
  17050. }
  17051. // SetSortBy sets the SortBy field's value.
  17052. func (s *ListWorkteamsInput) SetSortBy(v string) *ListWorkteamsInput {
  17053. s.SortBy = &v
  17054. return s
  17055. }
  17056. // SetSortOrder sets the SortOrder field's value.
  17057. func (s *ListWorkteamsInput) SetSortOrder(v string) *ListWorkteamsInput {
  17058. s.SortOrder = &v
  17059. return s
  17060. }
  17061. type ListWorkteamsOutput struct {
  17062. _ struct{} `type:"structure"`
  17063. // If the response is truncated, Amazon SageMaker returns this token. To retrieve
  17064. // the next set of work teams, use it in the subsequent request.
  17065. NextToken *string `type:"string"`
  17066. // An array of Workteam objects, each describing a work team.
  17067. //
  17068. // Workteams is a required field
  17069. Workteams []*Workteam `type:"list" required:"true"`
  17070. }
  17071. // String returns the string representation
  17072. func (s ListWorkteamsOutput) String() string {
  17073. return awsutil.Prettify(s)
  17074. }
  17075. // GoString returns the string representation
  17076. func (s ListWorkteamsOutput) GoString() string {
  17077. return s.String()
  17078. }
  17079. // SetNextToken sets the NextToken field's value.
  17080. func (s *ListWorkteamsOutput) SetNextToken(v string) *ListWorkteamsOutput {
  17081. s.NextToken = &v
  17082. return s
  17083. }
  17084. // SetWorkteams sets the Workteams field's value.
  17085. func (s *ListWorkteamsOutput) SetWorkteams(v []*Workteam) *ListWorkteamsOutput {
  17086. s.Workteams = v
  17087. return s
  17088. }
  17089. // Defines the Amazon Cognito user group that is part of a work team.
  17090. type MemberDefinition struct {
  17091. _ struct{} `type:"structure"`
  17092. // The Amazon Cognito user group that is part of the work team.
  17093. CognitoMemberDefinition *CognitoMemberDefinition `type:"structure"`
  17094. }
  17095. // String returns the string representation
  17096. func (s MemberDefinition) String() string {
  17097. return awsutil.Prettify(s)
  17098. }
  17099. // GoString returns the string representation
  17100. func (s MemberDefinition) GoString() string {
  17101. return s.String()
  17102. }
  17103. // Validate inspects the fields of the type to determine if they are valid.
  17104. func (s *MemberDefinition) Validate() error {
  17105. invalidParams := request.ErrInvalidParams{Context: "MemberDefinition"}
  17106. if s.CognitoMemberDefinition != nil {
  17107. if err := s.CognitoMemberDefinition.Validate(); err != nil {
  17108. invalidParams.AddNested("CognitoMemberDefinition", err.(request.ErrInvalidParams))
  17109. }
  17110. }
  17111. if invalidParams.Len() > 0 {
  17112. return invalidParams
  17113. }
  17114. return nil
  17115. }
  17116. // SetCognitoMemberDefinition sets the CognitoMemberDefinition field's value.
  17117. func (s *MemberDefinition) SetCognitoMemberDefinition(v *CognitoMemberDefinition) *MemberDefinition {
  17118. s.CognitoMemberDefinition = v
  17119. return s
  17120. }
  17121. // The name, value, and date and time of a metric that was emitted to Amazon
  17122. // CloudWatch.
  17123. type MetricData struct {
  17124. _ struct{} `type:"structure"`
  17125. // The name of the metric.
  17126. MetricName *string `min:"1" type:"string"`
  17127. // The date and time that the algorithm emitted the metric.
  17128. Timestamp *time.Time `type:"timestamp"`
  17129. // The value of the metric.
  17130. Value *float64 `type:"float"`
  17131. }
  17132. // String returns the string representation
  17133. func (s MetricData) String() string {
  17134. return awsutil.Prettify(s)
  17135. }
  17136. // GoString returns the string representation
  17137. func (s MetricData) GoString() string {
  17138. return s.String()
  17139. }
  17140. // SetMetricName sets the MetricName field's value.
  17141. func (s *MetricData) SetMetricName(v string) *MetricData {
  17142. s.MetricName = &v
  17143. return s
  17144. }
  17145. // SetTimestamp sets the Timestamp field's value.
  17146. func (s *MetricData) SetTimestamp(v time.Time) *MetricData {
  17147. s.Timestamp = &v
  17148. return s
  17149. }
  17150. // SetValue sets the Value field's value.
  17151. func (s *MetricData) SetValue(v float64) *MetricData {
  17152. s.Value = &v
  17153. return s
  17154. }
  17155. // Specifies a metric that the training algorithm writes to stderr or stdout.
  17156. // Amazon SageMakerhyperparameter tuning captures all defined metrics. You specify
  17157. // one metric that a hyperparameter tuning job uses as its objective metric
  17158. // to choose the best training job.
  17159. type MetricDefinition struct {
  17160. _ struct{} `type:"structure"`
  17161. // The name of the metric.
  17162. //
  17163. // Name is a required field
  17164. Name *string `min:"1" type:"string" required:"true"`
  17165. // A regular expression that searches the output of a training job and gets
  17166. // the value of the metric. For more information about using regular expressions
  17167. // to define metrics, see Defining Objective Metrics (http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html).
  17168. //
  17169. // Regex is a required field
  17170. Regex *string `min:"1" type:"string" required:"true"`
  17171. }
  17172. // String returns the string representation
  17173. func (s MetricDefinition) String() string {
  17174. return awsutil.Prettify(s)
  17175. }
  17176. // GoString returns the string representation
  17177. func (s MetricDefinition) GoString() string {
  17178. return s.String()
  17179. }
  17180. // Validate inspects the fields of the type to determine if they are valid.
  17181. func (s *MetricDefinition) Validate() error {
  17182. invalidParams := request.ErrInvalidParams{Context: "MetricDefinition"}
  17183. if s.Name == nil {
  17184. invalidParams.Add(request.NewErrParamRequired("Name"))
  17185. }
  17186. if s.Name != nil && len(*s.Name) < 1 {
  17187. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  17188. }
  17189. if s.Regex == nil {
  17190. invalidParams.Add(request.NewErrParamRequired("Regex"))
  17191. }
  17192. if s.Regex != nil && len(*s.Regex) < 1 {
  17193. invalidParams.Add(request.NewErrParamMinLen("Regex", 1))
  17194. }
  17195. if invalidParams.Len() > 0 {
  17196. return invalidParams
  17197. }
  17198. return nil
  17199. }
  17200. // SetName sets the Name field's value.
  17201. func (s *MetricDefinition) SetName(v string) *MetricDefinition {
  17202. s.Name = &v
  17203. return s
  17204. }
  17205. // SetRegex sets the Regex field's value.
  17206. func (s *MetricDefinition) SetRegex(v string) *MetricDefinition {
  17207. s.Regex = &v
  17208. return s
  17209. }
  17210. // Provides information about the location that is configured for storing model
  17211. // artifacts.
  17212. type ModelArtifacts struct {
  17213. _ struct{} `type:"structure"`
  17214. // The path of the S3 object that contains the model artifacts. For example,
  17215. // s3://bucket-name/keynameprefix/model.tar.gz.
  17216. //
  17217. // S3ModelArtifacts is a required field
  17218. S3ModelArtifacts *string `type:"string" required:"true"`
  17219. }
  17220. // String returns the string representation
  17221. func (s ModelArtifacts) String() string {
  17222. return awsutil.Prettify(s)
  17223. }
  17224. // GoString returns the string representation
  17225. func (s ModelArtifacts) GoString() string {
  17226. return s.String()
  17227. }
  17228. // SetS3ModelArtifacts sets the S3ModelArtifacts field's value.
  17229. func (s *ModelArtifacts) SetS3ModelArtifacts(v string) *ModelArtifacts {
  17230. s.S3ModelArtifacts = &v
  17231. return s
  17232. }
  17233. // Describes the Docker container for the model package.
  17234. type ModelPackageContainerDefinition struct {
  17235. _ struct{} `type:"structure"`
  17236. // The DNS host name for the Docker container.
  17237. ContainerHostname *string `type:"string"`
  17238. // The Amazon EC2 Container Registry (Amazon ECR) path where inference code
  17239. // is stored.
  17240. //
  17241. // If you are using your own custom algorithm instead of an algorithm provided
  17242. // by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements.
  17243. // Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest]
  17244. // image path formats. For more information, see Using Your Own Algorithms with
  17245. // Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html).
  17246. //
  17247. // Image is a required field
  17248. Image *string `type:"string" required:"true"`
  17249. // An MD5 hash of the training algorithm that identifies the Docker image used
  17250. // for training.
  17251. ImageDigest *string `type:"string"`
  17252. // The Amazon S3 path where the model artifacts, which result from model training,
  17253. // are stored. This path must point to a single gzip compressed tar archive
  17254. // (.tar.gz suffix).
  17255. ModelDataUrl *string `type:"string"`
  17256. // The AWS Marketplace product ID of the model package.
  17257. ProductId *string `type:"string"`
  17258. }
  17259. // String returns the string representation
  17260. func (s ModelPackageContainerDefinition) String() string {
  17261. return awsutil.Prettify(s)
  17262. }
  17263. // GoString returns the string representation
  17264. func (s ModelPackageContainerDefinition) GoString() string {
  17265. return s.String()
  17266. }
  17267. // Validate inspects the fields of the type to determine if they are valid.
  17268. func (s *ModelPackageContainerDefinition) Validate() error {
  17269. invalidParams := request.ErrInvalidParams{Context: "ModelPackageContainerDefinition"}
  17270. if s.Image == nil {
  17271. invalidParams.Add(request.NewErrParamRequired("Image"))
  17272. }
  17273. if invalidParams.Len() > 0 {
  17274. return invalidParams
  17275. }
  17276. return nil
  17277. }
  17278. // SetContainerHostname sets the ContainerHostname field's value.
  17279. func (s *ModelPackageContainerDefinition) SetContainerHostname(v string) *ModelPackageContainerDefinition {
  17280. s.ContainerHostname = &v
  17281. return s
  17282. }
  17283. // SetImage sets the Image field's value.
  17284. func (s *ModelPackageContainerDefinition) SetImage(v string) *ModelPackageContainerDefinition {
  17285. s.Image = &v
  17286. return s
  17287. }
  17288. // SetImageDigest sets the ImageDigest field's value.
  17289. func (s *ModelPackageContainerDefinition) SetImageDigest(v string) *ModelPackageContainerDefinition {
  17290. s.ImageDigest = &v
  17291. return s
  17292. }
  17293. // SetModelDataUrl sets the ModelDataUrl field's value.
  17294. func (s *ModelPackageContainerDefinition) SetModelDataUrl(v string) *ModelPackageContainerDefinition {
  17295. s.ModelDataUrl = &v
  17296. return s
  17297. }
  17298. // SetProductId sets the ProductId field's value.
  17299. func (s *ModelPackageContainerDefinition) SetProductId(v string) *ModelPackageContainerDefinition {
  17300. s.ProductId = &v
  17301. return s
  17302. }
  17303. // Specifies the validation and image scan statuses of the model package.
  17304. type ModelPackageStatusDetails struct {
  17305. _ struct{} `type:"structure"`
  17306. // The status of the scan of the Docker image container for the model package.
  17307. ImageScanStatuses []*ModelPackageStatusItem `type:"list"`
  17308. // The validation status of the model package.
  17309. //
  17310. // ValidationStatuses is a required field
  17311. ValidationStatuses []*ModelPackageStatusItem `type:"list" required:"true"`
  17312. }
  17313. // String returns the string representation
  17314. func (s ModelPackageStatusDetails) String() string {
  17315. return awsutil.Prettify(s)
  17316. }
  17317. // GoString returns the string representation
  17318. func (s ModelPackageStatusDetails) GoString() string {
  17319. return s.String()
  17320. }
  17321. // SetImageScanStatuses sets the ImageScanStatuses field's value.
  17322. func (s *ModelPackageStatusDetails) SetImageScanStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails {
  17323. s.ImageScanStatuses = v
  17324. return s
  17325. }
  17326. // SetValidationStatuses sets the ValidationStatuses field's value.
  17327. func (s *ModelPackageStatusDetails) SetValidationStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails {
  17328. s.ValidationStatuses = v
  17329. return s
  17330. }
  17331. // Represents the overall status of a model package.
  17332. type ModelPackageStatusItem struct {
  17333. _ struct{} `type:"structure"`
  17334. // if the overall status is Failed, the reason for the failure.
  17335. FailureReason *string `type:"string"`
  17336. // The name of the model package for which the overall status is being reported.
  17337. //
  17338. // Name is a required field
  17339. Name *string `min:"1" type:"string" required:"true"`
  17340. // The current status.
  17341. //
  17342. // Status is a required field
  17343. Status *string `type:"string" required:"true" enum:"DetailedModelPackageStatus"`
  17344. }
  17345. // String returns the string representation
  17346. func (s ModelPackageStatusItem) String() string {
  17347. return awsutil.Prettify(s)
  17348. }
  17349. // GoString returns the string representation
  17350. func (s ModelPackageStatusItem) GoString() string {
  17351. return s.String()
  17352. }
  17353. // SetFailureReason sets the FailureReason field's value.
  17354. func (s *ModelPackageStatusItem) SetFailureReason(v string) *ModelPackageStatusItem {
  17355. s.FailureReason = &v
  17356. return s
  17357. }
  17358. // SetName sets the Name field's value.
  17359. func (s *ModelPackageStatusItem) SetName(v string) *ModelPackageStatusItem {
  17360. s.Name = &v
  17361. return s
  17362. }
  17363. // SetStatus sets the Status field's value.
  17364. func (s *ModelPackageStatusItem) SetStatus(v string) *ModelPackageStatusItem {
  17365. s.Status = &v
  17366. return s
  17367. }
  17368. // Provides summary information about a model package.
  17369. type ModelPackageSummary struct {
  17370. _ struct{} `type:"structure"`
  17371. // A timestamp that shows when the model package was created.
  17372. //
  17373. // CreationTime is a required field
  17374. CreationTime *time.Time `type:"timestamp" required:"true"`
  17375. // The Amazon Resource Name (ARN) of the model package.
  17376. //
  17377. // ModelPackageArn is a required field
  17378. ModelPackageArn *string `min:"1" type:"string" required:"true"`
  17379. // A brief description of the model package.
  17380. ModelPackageDescription *string `type:"string"`
  17381. // The name of the model package.
  17382. //
  17383. // ModelPackageName is a required field
  17384. ModelPackageName *string `min:"1" type:"string" required:"true"`
  17385. // The overall status of the model package.
  17386. //
  17387. // ModelPackageStatus is a required field
  17388. ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"`
  17389. }
  17390. // String returns the string representation
  17391. func (s ModelPackageSummary) String() string {
  17392. return awsutil.Prettify(s)
  17393. }
  17394. // GoString returns the string representation
  17395. func (s ModelPackageSummary) GoString() string {
  17396. return s.String()
  17397. }
  17398. // SetCreationTime sets the CreationTime field's value.
  17399. func (s *ModelPackageSummary) SetCreationTime(v time.Time) *ModelPackageSummary {
  17400. s.CreationTime = &v
  17401. return s
  17402. }
  17403. // SetModelPackageArn sets the ModelPackageArn field's value.
  17404. func (s *ModelPackageSummary) SetModelPackageArn(v string) *ModelPackageSummary {
  17405. s.ModelPackageArn = &v
  17406. return s
  17407. }
  17408. // SetModelPackageDescription sets the ModelPackageDescription field's value.
  17409. func (s *ModelPackageSummary) SetModelPackageDescription(v string) *ModelPackageSummary {
  17410. s.ModelPackageDescription = &v
  17411. return s
  17412. }
  17413. // SetModelPackageName sets the ModelPackageName field's value.
  17414. func (s *ModelPackageSummary) SetModelPackageName(v string) *ModelPackageSummary {
  17415. s.ModelPackageName = &v
  17416. return s
  17417. }
  17418. // SetModelPackageStatus sets the ModelPackageStatus field's value.
  17419. func (s *ModelPackageSummary) SetModelPackageStatus(v string) *ModelPackageSummary {
  17420. s.ModelPackageStatus = &v
  17421. return s
  17422. }
  17423. // Contains data, such as the inputs and targeted instance types that are used
  17424. // in the process of validating the model package.
  17425. //
  17426. // The data provided in the validation profile is made available to your buyers
  17427. // on AWS Marketplace.
  17428. type ModelPackageValidationProfile struct {
  17429. _ struct{} `type:"structure"`
  17430. // The name of the profile for the model package.
  17431. //
  17432. // ProfileName is a required field
  17433. ProfileName *string `min:"1" type:"string" required:"true"`
  17434. // The TransformJobDefinition object that describes the transform job used for
  17435. // the validation of the model package.
  17436. //
  17437. // TransformJobDefinition is a required field
  17438. TransformJobDefinition *TransformJobDefinition `type:"structure" required:"true"`
  17439. }
  17440. // String returns the string representation
  17441. func (s ModelPackageValidationProfile) String() string {
  17442. return awsutil.Prettify(s)
  17443. }
  17444. // GoString returns the string representation
  17445. func (s ModelPackageValidationProfile) GoString() string {
  17446. return s.String()
  17447. }
  17448. // Validate inspects the fields of the type to determine if they are valid.
  17449. func (s *ModelPackageValidationProfile) Validate() error {
  17450. invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationProfile"}
  17451. if s.ProfileName == nil {
  17452. invalidParams.Add(request.NewErrParamRequired("ProfileName"))
  17453. }
  17454. if s.ProfileName != nil && len(*s.ProfileName) < 1 {
  17455. invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1))
  17456. }
  17457. if s.TransformJobDefinition == nil {
  17458. invalidParams.Add(request.NewErrParamRequired("TransformJobDefinition"))
  17459. }
  17460. if s.TransformJobDefinition != nil {
  17461. if err := s.TransformJobDefinition.Validate(); err != nil {
  17462. invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams))
  17463. }
  17464. }
  17465. if invalidParams.Len() > 0 {
  17466. return invalidParams
  17467. }
  17468. return nil
  17469. }
  17470. // SetProfileName sets the ProfileName field's value.
  17471. func (s *ModelPackageValidationProfile) SetProfileName(v string) *ModelPackageValidationProfile {
  17472. s.ProfileName = &v
  17473. return s
  17474. }
  17475. // SetTransformJobDefinition sets the TransformJobDefinition field's value.
  17476. func (s *ModelPackageValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *ModelPackageValidationProfile {
  17477. s.TransformJobDefinition = v
  17478. return s
  17479. }
  17480. // Specifies batch transform jobs that Amazon SageMaker runs to validate your
  17481. // model package.
  17482. type ModelPackageValidationSpecification struct {
  17483. _ struct{} `type:"structure"`
  17484. // An array of ModelPackageValidationProfile objects, each of which specifies
  17485. // a batch transform job that Amazon SageMaker runs to validate your model package.
  17486. //
  17487. // ValidationProfiles is a required field
  17488. ValidationProfiles []*ModelPackageValidationProfile `min:"1" type:"list" required:"true"`
  17489. // The IAM roles to be used for the validation of the model package.
  17490. //
  17491. // ValidationRole is a required field
  17492. ValidationRole *string `min:"20" type:"string" required:"true"`
  17493. }
  17494. // String returns the string representation
  17495. func (s ModelPackageValidationSpecification) String() string {
  17496. return awsutil.Prettify(s)
  17497. }
  17498. // GoString returns the string representation
  17499. func (s ModelPackageValidationSpecification) GoString() string {
  17500. return s.String()
  17501. }
  17502. // Validate inspects the fields of the type to determine if they are valid.
  17503. func (s *ModelPackageValidationSpecification) Validate() error {
  17504. invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationSpecification"}
  17505. if s.ValidationProfiles == nil {
  17506. invalidParams.Add(request.NewErrParamRequired("ValidationProfiles"))
  17507. }
  17508. if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 {
  17509. invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1))
  17510. }
  17511. if s.ValidationRole == nil {
  17512. invalidParams.Add(request.NewErrParamRequired("ValidationRole"))
  17513. }
  17514. if s.ValidationRole != nil && len(*s.ValidationRole) < 20 {
  17515. invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20))
  17516. }
  17517. if s.ValidationProfiles != nil {
  17518. for i, v := range s.ValidationProfiles {
  17519. if v == nil {
  17520. continue
  17521. }
  17522. if err := v.Validate(); err != nil {
  17523. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams))
  17524. }
  17525. }
  17526. }
  17527. if invalidParams.Len() > 0 {
  17528. return invalidParams
  17529. }
  17530. return nil
  17531. }
  17532. // SetValidationProfiles sets the ValidationProfiles field's value.
  17533. func (s *ModelPackageValidationSpecification) SetValidationProfiles(v []*ModelPackageValidationProfile) *ModelPackageValidationSpecification {
  17534. s.ValidationProfiles = v
  17535. return s
  17536. }
  17537. // SetValidationRole sets the ValidationRole field's value.
  17538. func (s *ModelPackageValidationSpecification) SetValidationRole(v string) *ModelPackageValidationSpecification {
  17539. s.ValidationRole = &v
  17540. return s
  17541. }
  17542. // Provides summary information about a model.
  17543. type ModelSummary struct {
  17544. _ struct{} `type:"structure"`
  17545. // A timestamp that indicates when the model was created.
  17546. //
  17547. // CreationTime is a required field
  17548. CreationTime *time.Time `type:"timestamp" required:"true"`
  17549. // The Amazon Resource Name (ARN) of the model.
  17550. //
  17551. // ModelArn is a required field
  17552. ModelArn *string `min:"20" type:"string" required:"true"`
  17553. // The name of the model that you want a summary for.
  17554. //
  17555. // ModelName is a required field
  17556. ModelName *string `type:"string" required:"true"`
  17557. }
  17558. // String returns the string representation
  17559. func (s ModelSummary) String() string {
  17560. return awsutil.Prettify(s)
  17561. }
  17562. // GoString returns the string representation
  17563. func (s ModelSummary) GoString() string {
  17564. return s.String()
  17565. }
  17566. // SetCreationTime sets the CreationTime field's value.
  17567. func (s *ModelSummary) SetCreationTime(v time.Time) *ModelSummary {
  17568. s.CreationTime = &v
  17569. return s
  17570. }
  17571. // SetModelArn sets the ModelArn field's value.
  17572. func (s *ModelSummary) SetModelArn(v string) *ModelSummary {
  17573. s.ModelArn = &v
  17574. return s
  17575. }
  17576. // SetModelName sets the ModelName field's value.
  17577. func (s *ModelSummary) SetModelName(v string) *ModelSummary {
  17578. s.ModelName = &v
  17579. return s
  17580. }
  17581. // Defines a list of NestedFilters objects. To satisfy the conditions specified
  17582. // in the NestedFilters call, a resource must satisfy the conditions of all
  17583. // of the filters.
  17584. //
  17585. // For example, you could define a NestedFilters using the training job's InputDataConfig
  17586. // property to filter on Channel objects.
  17587. //
  17588. // A NestedFilters object contains multiple filters. For example, to find all
  17589. // training jobs whose name contains train and that have cat/data in their S3Uri
  17590. // (specified in InputDataConfig), you need to create a NestedFilters object
  17591. // that specifies the InputDataConfig property with the following Filter objects:
  17592. //
  17593. // * '{Name:"InputDataConfig.ChannelName", "Operator":"EQUALS", "Value":"train"}',
  17594. //
  17595. // * '{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"CONTAINS",
  17596. // "Value":"cat/data"}'
  17597. type NestedFilters struct {
  17598. _ struct{} `type:"structure"`
  17599. // A list of filters. Each filter acts on a property. Filters must contain at
  17600. // least one Filters value. For example, a NestedFilters call might include
  17601. // a filter on the PropertyName parameter of the InputDataConfig property: InputDataConfig.DataSource.S3DataSource.S3Uri.
  17602. //
  17603. // Filters is a required field
  17604. Filters []*Filter `min:"1" type:"list" required:"true"`
  17605. // The name of the property to use in the nested filters. The value must match
  17606. // a listed property name, such as InputDataConfig.
  17607. //
  17608. // NestedPropertyName is a required field
  17609. NestedPropertyName *string `min:"1" type:"string" required:"true"`
  17610. }
  17611. // String returns the string representation
  17612. func (s NestedFilters) String() string {
  17613. return awsutil.Prettify(s)
  17614. }
  17615. // GoString returns the string representation
  17616. func (s NestedFilters) GoString() string {
  17617. return s.String()
  17618. }
  17619. // Validate inspects the fields of the type to determine if they are valid.
  17620. func (s *NestedFilters) Validate() error {
  17621. invalidParams := request.ErrInvalidParams{Context: "NestedFilters"}
  17622. if s.Filters == nil {
  17623. invalidParams.Add(request.NewErrParamRequired("Filters"))
  17624. }
  17625. if s.Filters != nil && len(s.Filters) < 1 {
  17626. invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
  17627. }
  17628. if s.NestedPropertyName == nil {
  17629. invalidParams.Add(request.NewErrParamRequired("NestedPropertyName"))
  17630. }
  17631. if s.NestedPropertyName != nil && len(*s.NestedPropertyName) < 1 {
  17632. invalidParams.Add(request.NewErrParamMinLen("NestedPropertyName", 1))
  17633. }
  17634. if s.Filters != nil {
  17635. for i, v := range s.Filters {
  17636. if v == nil {
  17637. continue
  17638. }
  17639. if err := v.Validate(); err != nil {
  17640. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  17641. }
  17642. }
  17643. }
  17644. if invalidParams.Len() > 0 {
  17645. return invalidParams
  17646. }
  17647. return nil
  17648. }
  17649. // SetFilters sets the Filters field's value.
  17650. func (s *NestedFilters) SetFilters(v []*Filter) *NestedFilters {
  17651. s.Filters = v
  17652. return s
  17653. }
  17654. // SetNestedPropertyName sets the NestedPropertyName field's value.
  17655. func (s *NestedFilters) SetNestedPropertyName(v string) *NestedFilters {
  17656. s.NestedPropertyName = &v
  17657. return s
  17658. }
  17659. // Provides a summary of a notebook instance lifecycle configuration.
  17660. type NotebookInstanceLifecycleConfigSummary struct {
  17661. _ struct{} `type:"structure"`
  17662. // A timestamp that tells when the lifecycle configuration was created.
  17663. CreationTime *time.Time `type:"timestamp"`
  17664. // A timestamp that tells when the lifecycle configuration was last modified.
  17665. LastModifiedTime *time.Time `type:"timestamp"`
  17666. // The Amazon Resource Name (ARN) of the lifecycle configuration.
  17667. //
  17668. // NotebookInstanceLifecycleConfigArn is a required field
  17669. NotebookInstanceLifecycleConfigArn *string `type:"string" required:"true"`
  17670. // The name of the lifecycle configuration.
  17671. //
  17672. // NotebookInstanceLifecycleConfigName is a required field
  17673. NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
  17674. }
  17675. // String returns the string representation
  17676. func (s NotebookInstanceLifecycleConfigSummary) String() string {
  17677. return awsutil.Prettify(s)
  17678. }
  17679. // GoString returns the string representation
  17680. func (s NotebookInstanceLifecycleConfigSummary) GoString() string {
  17681. return s.String()
  17682. }
  17683. // SetCreationTime sets the CreationTime field's value.
  17684. func (s *NotebookInstanceLifecycleConfigSummary) SetCreationTime(v time.Time) *NotebookInstanceLifecycleConfigSummary {
  17685. s.CreationTime = &v
  17686. return s
  17687. }
  17688. // SetLastModifiedTime sets the LastModifiedTime field's value.
  17689. func (s *NotebookInstanceLifecycleConfigSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceLifecycleConfigSummary {
  17690. s.LastModifiedTime = &v
  17691. return s
  17692. }
  17693. // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value.
  17694. func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigArn(v string) *NotebookInstanceLifecycleConfigSummary {
  17695. s.NotebookInstanceLifecycleConfigArn = &v
  17696. return s
  17697. }
  17698. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  17699. func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceLifecycleConfigSummary {
  17700. s.NotebookInstanceLifecycleConfigName = &v
  17701. return s
  17702. }
  17703. // Contains the notebook instance lifecycle configuration script.
  17704. //
  17705. // Each lifecycle configuration script has a limit of 16384 characters.
  17706. //
  17707. // The value of the $PATH environment variable that is available to both scripts
  17708. // is /sbin:bin:/usr/sbin:/usr/bin.
  17709. //
  17710. // View CloudWatch Logs for notebook instance lifecycle configurations in log
  17711. // group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].
  17712. //
  17713. // Lifecycle configuration scripts cannot run for longer than 5 minutes. If
  17714. // a script runs for longer than 5 minutes, it fails and the notebook instance
  17715. // is not created or started.
  17716. //
  17717. // For information about notebook instance lifestyle configurations, see Step
  17718. // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
  17719. type NotebookInstanceLifecycleHook struct {
  17720. _ struct{} `type:"structure"`
  17721. // A base64-encoded string that contains a shell script for a notebook instance
  17722. // lifecycle configuration.
  17723. Content *string `min:"1" type:"string"`
  17724. }
  17725. // String returns the string representation
  17726. func (s NotebookInstanceLifecycleHook) String() string {
  17727. return awsutil.Prettify(s)
  17728. }
  17729. // GoString returns the string representation
  17730. func (s NotebookInstanceLifecycleHook) GoString() string {
  17731. return s.String()
  17732. }
  17733. // Validate inspects the fields of the type to determine if they are valid.
  17734. func (s *NotebookInstanceLifecycleHook) Validate() error {
  17735. invalidParams := request.ErrInvalidParams{Context: "NotebookInstanceLifecycleHook"}
  17736. if s.Content != nil && len(*s.Content) < 1 {
  17737. invalidParams.Add(request.NewErrParamMinLen("Content", 1))
  17738. }
  17739. if invalidParams.Len() > 0 {
  17740. return invalidParams
  17741. }
  17742. return nil
  17743. }
  17744. // SetContent sets the Content field's value.
  17745. func (s *NotebookInstanceLifecycleHook) SetContent(v string) *NotebookInstanceLifecycleHook {
  17746. s.Content = &v
  17747. return s
  17748. }
  17749. // Provides summary information for an Amazon SageMaker notebook instance.
  17750. type NotebookInstanceSummary struct {
  17751. _ struct{} `type:"structure"`
  17752. // An array of up to three Git repositories associated with the notebook instance.
  17753. // These can be either the names of Git repositories stored as resources in
  17754. // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  17755. // or in any other Git repository. These repositories are cloned at the same
  17756. // level as the default repository of your notebook instance. For more information,
  17757. // see Associating Git Repositories with Amazon SageMaker Notebook Instances
  17758. // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  17759. AdditionalCodeRepositories []*string `type:"list"`
  17760. // A timestamp that shows when the notebook instance was created.
  17761. CreationTime *time.Time `type:"timestamp"`
  17762. // The Git repository associated with the notebook instance as its default code
  17763. // repository. This can be either the name of a Git repository stored as a resource
  17764. // in your account, or the URL of a Git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  17765. // or in any other Git repository. When you open a notebook instance, it opens
  17766. // in the directory that contains this repository. For more information, see
  17767. // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  17768. DefaultCodeRepository *string `min:"1" type:"string"`
  17769. // The type of ML compute instance that the notebook instance is running on.
  17770. InstanceType *string `type:"string" enum:"InstanceType"`
  17771. // A timestamp that shows when the notebook instance was last modified.
  17772. LastModifiedTime *time.Time `type:"timestamp"`
  17773. // The Amazon Resource Name (ARN) of the notebook instance.
  17774. //
  17775. // NotebookInstanceArn is a required field
  17776. NotebookInstanceArn *string `type:"string" required:"true"`
  17777. // The name of a notebook instance lifecycle configuration associated with this
  17778. // notebook instance.
  17779. //
  17780. // For information about notebook instance lifestyle configurations, see Step
  17781. // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
  17782. NotebookInstanceLifecycleConfigName *string `type:"string"`
  17783. // The name of the notebook instance that you want a summary for.
  17784. //
  17785. // NotebookInstanceName is a required field
  17786. NotebookInstanceName *string `type:"string" required:"true"`
  17787. // The status of the notebook instance.
  17788. NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"`
  17789. // The URL that you use to connect to the Jupyter instance running in your notebook
  17790. // instance.
  17791. Url *string `type:"string"`
  17792. }
  17793. // String returns the string representation
  17794. func (s NotebookInstanceSummary) String() string {
  17795. return awsutil.Prettify(s)
  17796. }
  17797. // GoString returns the string representation
  17798. func (s NotebookInstanceSummary) GoString() string {
  17799. return s.String()
  17800. }
  17801. // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
  17802. func (s *NotebookInstanceSummary) SetAdditionalCodeRepositories(v []*string) *NotebookInstanceSummary {
  17803. s.AdditionalCodeRepositories = v
  17804. return s
  17805. }
  17806. // SetCreationTime sets the CreationTime field's value.
  17807. func (s *NotebookInstanceSummary) SetCreationTime(v time.Time) *NotebookInstanceSummary {
  17808. s.CreationTime = &v
  17809. return s
  17810. }
  17811. // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
  17812. func (s *NotebookInstanceSummary) SetDefaultCodeRepository(v string) *NotebookInstanceSummary {
  17813. s.DefaultCodeRepository = &v
  17814. return s
  17815. }
  17816. // SetInstanceType sets the InstanceType field's value.
  17817. func (s *NotebookInstanceSummary) SetInstanceType(v string) *NotebookInstanceSummary {
  17818. s.InstanceType = &v
  17819. return s
  17820. }
  17821. // SetLastModifiedTime sets the LastModifiedTime field's value.
  17822. func (s *NotebookInstanceSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceSummary {
  17823. s.LastModifiedTime = &v
  17824. return s
  17825. }
  17826. // SetNotebookInstanceArn sets the NotebookInstanceArn field's value.
  17827. func (s *NotebookInstanceSummary) SetNotebookInstanceArn(v string) *NotebookInstanceSummary {
  17828. s.NotebookInstanceArn = &v
  17829. return s
  17830. }
  17831. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  17832. func (s *NotebookInstanceSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceSummary {
  17833. s.NotebookInstanceLifecycleConfigName = &v
  17834. return s
  17835. }
  17836. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  17837. func (s *NotebookInstanceSummary) SetNotebookInstanceName(v string) *NotebookInstanceSummary {
  17838. s.NotebookInstanceName = &v
  17839. return s
  17840. }
  17841. // SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value.
  17842. func (s *NotebookInstanceSummary) SetNotebookInstanceStatus(v string) *NotebookInstanceSummary {
  17843. s.NotebookInstanceStatus = &v
  17844. return s
  17845. }
  17846. // SetUrl sets the Url field's value.
  17847. func (s *NotebookInstanceSummary) SetUrl(v string) *NotebookInstanceSummary {
  17848. s.Url = &v
  17849. return s
  17850. }
  17851. // Specifies the number of training jobs that this hyperparameter tuning job
  17852. // launched, categorized by the status of their objective metric. The objective
  17853. // metric status shows whether the final objective metric for the training job
  17854. // has been evaluated by the tuning job and used in the hyperparameter tuning
  17855. // process.
  17856. type ObjectiveStatusCounters struct {
  17857. _ struct{} `type:"structure"`
  17858. // The number of training jobs whose final objective metric was not evaluated
  17859. // and used in the hyperparameter tuning process. This typically occurs when
  17860. // the training job failed or did not emit an objective metric.
  17861. Failed *int64 `type:"integer"`
  17862. // The number of training jobs that are in progress and pending evaluation of
  17863. // their final objective metric.
  17864. Pending *int64 `type:"integer"`
  17865. // The number of training jobs whose final objective metric was evaluated by
  17866. // the hyperparameter tuning job and used in the hyperparameter tuning process.
  17867. Succeeded *int64 `type:"integer"`
  17868. }
  17869. // String returns the string representation
  17870. func (s ObjectiveStatusCounters) String() string {
  17871. return awsutil.Prettify(s)
  17872. }
  17873. // GoString returns the string representation
  17874. func (s ObjectiveStatusCounters) GoString() string {
  17875. return s.String()
  17876. }
  17877. // SetFailed sets the Failed field's value.
  17878. func (s *ObjectiveStatusCounters) SetFailed(v int64) *ObjectiveStatusCounters {
  17879. s.Failed = &v
  17880. return s
  17881. }
  17882. // SetPending sets the Pending field's value.
  17883. func (s *ObjectiveStatusCounters) SetPending(v int64) *ObjectiveStatusCounters {
  17884. s.Pending = &v
  17885. return s
  17886. }
  17887. // SetSucceeded sets the Succeeded field's value.
  17888. func (s *ObjectiveStatusCounters) SetSucceeded(v int64) *ObjectiveStatusCounters {
  17889. s.Succeeded = &v
  17890. return s
  17891. }
  17892. // Contains information about the output location for the compiled model and
  17893. // the device (target) that the model runs on.
  17894. type OutputConfig struct {
  17895. _ struct{} `type:"structure"`
  17896. // Identifies the S3 path where you want Amazon SageMaker to store the model
  17897. // artifacts. For example, s3://bucket-name/key-name-prefix.
  17898. //
  17899. // S3OutputLocation is a required field
  17900. S3OutputLocation *string `type:"string" required:"true"`
  17901. // Identifies the device that you want to run your model on after it has been
  17902. // compiled. For example: ml_c5.
  17903. //
  17904. // TargetDevice is a required field
  17905. TargetDevice *string `type:"string" required:"true" enum:"TargetDevice"`
  17906. }
  17907. // String returns the string representation
  17908. func (s OutputConfig) String() string {
  17909. return awsutil.Prettify(s)
  17910. }
  17911. // GoString returns the string representation
  17912. func (s OutputConfig) GoString() string {
  17913. return s.String()
  17914. }
  17915. // Validate inspects the fields of the type to determine if they are valid.
  17916. func (s *OutputConfig) Validate() error {
  17917. invalidParams := request.ErrInvalidParams{Context: "OutputConfig"}
  17918. if s.S3OutputLocation == nil {
  17919. invalidParams.Add(request.NewErrParamRequired("S3OutputLocation"))
  17920. }
  17921. if s.TargetDevice == nil {
  17922. invalidParams.Add(request.NewErrParamRequired("TargetDevice"))
  17923. }
  17924. if invalidParams.Len() > 0 {
  17925. return invalidParams
  17926. }
  17927. return nil
  17928. }
  17929. // SetS3OutputLocation sets the S3OutputLocation field's value.
  17930. func (s *OutputConfig) SetS3OutputLocation(v string) *OutputConfig {
  17931. s.S3OutputLocation = &v
  17932. return s
  17933. }
  17934. // SetTargetDevice sets the TargetDevice field's value.
  17935. func (s *OutputConfig) SetTargetDevice(v string) *OutputConfig {
  17936. s.TargetDevice = &v
  17937. return s
  17938. }
  17939. // Provides information about how to store model training results (model artifacts).
  17940. type OutputDataConfig struct {
  17941. _ struct{} `type:"structure"`
  17942. // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
  17943. // encrypt the model artifacts at rest using Amazon S3 server-side encryption.
  17944. // The KmsKeyId can be any of the following formats:
  17945. //
  17946. // * // KMS Key ID
  17947. //
  17948. // "1234abcd-12ab-34cd-56ef-1234567890ab"
  17949. //
  17950. // * // Amazon Resource Name (ARN) of a KMS Key
  17951. //
  17952. // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
  17953. //
  17954. // * // KMS Key Alias
  17955. //
  17956. // "alias/ExampleAlias"
  17957. //
  17958. // * // Amazon Resource Name (ARN) of a KMS Key Alias
  17959. //
  17960. // "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
  17961. //
  17962. // If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS
  17963. // key for Amazon S3 for your role's account. For more information, see KMS-Managed
  17964. // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html)
  17965. // in the Amazon Simple Storage Service Developer Guide.
  17966. //
  17967. // The KMS key policy must grant permission to the IAM role that you specify
  17968. // in your CreateTramsformJob request. For more information, see Using Key Policies
  17969. // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html)
  17970. // in the AWS Key Management Service Developer Guide.
  17971. KmsKeyId *string `type:"string"`
  17972. // Identifies the S3 path where you want Amazon SageMaker to store the model
  17973. // artifacts. For example, s3://bucket-name/key-name-prefix.
  17974. //
  17975. // S3OutputPath is a required field
  17976. S3OutputPath *string `type:"string" required:"true"`
  17977. }
  17978. // String returns the string representation
  17979. func (s OutputDataConfig) String() string {
  17980. return awsutil.Prettify(s)
  17981. }
  17982. // GoString returns the string representation
  17983. func (s OutputDataConfig) GoString() string {
  17984. return s.String()
  17985. }
  17986. // Validate inspects the fields of the type to determine if they are valid.
  17987. func (s *OutputDataConfig) Validate() error {
  17988. invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"}
  17989. if s.S3OutputPath == nil {
  17990. invalidParams.Add(request.NewErrParamRequired("S3OutputPath"))
  17991. }
  17992. if invalidParams.Len() > 0 {
  17993. return invalidParams
  17994. }
  17995. return nil
  17996. }
  17997. // SetKmsKeyId sets the KmsKeyId field's value.
  17998. func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig {
  17999. s.KmsKeyId = &v
  18000. return s
  18001. }
  18002. // SetS3OutputPath sets the S3OutputPath field's value.
  18003. func (s *OutputDataConfig) SetS3OutputPath(v string) *OutputDataConfig {
  18004. s.S3OutputPath = &v
  18005. return s
  18006. }
  18007. // Defines the possible values for categorical, continuous, and integer hyperparameters
  18008. // to be used by an algorithm.
  18009. type ParameterRange struct {
  18010. _ struct{} `type:"structure"`
  18011. // A CategoricalParameterRangeSpecification object that defines the possible
  18012. // values for a categorical hyperparameter.
  18013. CategoricalParameterRangeSpecification *CategoricalParameterRangeSpecification `type:"structure"`
  18014. // A ContinuousParameterRangeSpecification object that defines the possible
  18015. // values for a continuous hyperparameter.
  18016. ContinuousParameterRangeSpecification *ContinuousParameterRangeSpecification `type:"structure"`
  18017. // A IntegerParameterRangeSpecification object that defines the possible values
  18018. // for an integer hyperparameter.
  18019. IntegerParameterRangeSpecification *IntegerParameterRangeSpecification `type:"structure"`
  18020. }
  18021. // String returns the string representation
  18022. func (s ParameterRange) String() string {
  18023. return awsutil.Prettify(s)
  18024. }
  18025. // GoString returns the string representation
  18026. func (s ParameterRange) GoString() string {
  18027. return s.String()
  18028. }
  18029. // Validate inspects the fields of the type to determine if they are valid.
  18030. func (s *ParameterRange) Validate() error {
  18031. invalidParams := request.ErrInvalidParams{Context: "ParameterRange"}
  18032. if s.CategoricalParameterRangeSpecification != nil {
  18033. if err := s.CategoricalParameterRangeSpecification.Validate(); err != nil {
  18034. invalidParams.AddNested("CategoricalParameterRangeSpecification", err.(request.ErrInvalidParams))
  18035. }
  18036. }
  18037. if s.ContinuousParameterRangeSpecification != nil {
  18038. if err := s.ContinuousParameterRangeSpecification.Validate(); err != nil {
  18039. invalidParams.AddNested("ContinuousParameterRangeSpecification", err.(request.ErrInvalidParams))
  18040. }
  18041. }
  18042. if s.IntegerParameterRangeSpecification != nil {
  18043. if err := s.IntegerParameterRangeSpecification.Validate(); err != nil {
  18044. invalidParams.AddNested("IntegerParameterRangeSpecification", err.(request.ErrInvalidParams))
  18045. }
  18046. }
  18047. if invalidParams.Len() > 0 {
  18048. return invalidParams
  18049. }
  18050. return nil
  18051. }
  18052. // SetCategoricalParameterRangeSpecification sets the CategoricalParameterRangeSpecification field's value.
  18053. func (s *ParameterRange) SetCategoricalParameterRangeSpecification(v *CategoricalParameterRangeSpecification) *ParameterRange {
  18054. s.CategoricalParameterRangeSpecification = v
  18055. return s
  18056. }
  18057. // SetContinuousParameterRangeSpecification sets the ContinuousParameterRangeSpecification field's value.
  18058. func (s *ParameterRange) SetContinuousParameterRangeSpecification(v *ContinuousParameterRangeSpecification) *ParameterRange {
  18059. s.ContinuousParameterRangeSpecification = v
  18060. return s
  18061. }
  18062. // SetIntegerParameterRangeSpecification sets the IntegerParameterRangeSpecification field's value.
  18063. func (s *ParameterRange) SetIntegerParameterRangeSpecification(v *IntegerParameterRangeSpecification) *ParameterRange {
  18064. s.IntegerParameterRangeSpecification = v
  18065. return s
  18066. }
  18067. // Specifies ranges of integer, continuous, and categorical hyperparameters
  18068. // that a hyperparameter tuning job searches. The hyperparameter tuning job
  18069. // launches training jobs with hyperparameter values within these ranges to
  18070. // find the combination of values that result in the training job with the best
  18071. // performance as measured by the objective metric of the hyperparameter tuning
  18072. // job.
  18073. //
  18074. // You can specify a maximum of 20 hyperparameters that a hyperparameter tuning
  18075. // job can search over. Every possible value of a categorical parameter range
  18076. // counts against this limit.
  18077. type ParameterRanges struct {
  18078. _ struct{} `type:"structure"`
  18079. // The array of CategoricalParameterRange objects that specify ranges of categorical
  18080. // hyperparameters that a hyperparameter tuning job searches.
  18081. CategoricalParameterRanges []*CategoricalParameterRange `type:"list"`
  18082. // The array of ContinuousParameterRange objects that specify ranges of continuous
  18083. // hyperparameters that a hyperparameter tuning job searches.
  18084. ContinuousParameterRanges []*ContinuousParameterRange `type:"list"`
  18085. // The array of IntegerParameterRange objects that specify ranges of integer
  18086. // hyperparameters that a hyperparameter tuning job searches.
  18087. IntegerParameterRanges []*IntegerParameterRange `type:"list"`
  18088. }
  18089. // String returns the string representation
  18090. func (s ParameterRanges) String() string {
  18091. return awsutil.Prettify(s)
  18092. }
  18093. // GoString returns the string representation
  18094. func (s ParameterRanges) GoString() string {
  18095. return s.String()
  18096. }
  18097. // Validate inspects the fields of the type to determine if they are valid.
  18098. func (s *ParameterRanges) Validate() error {
  18099. invalidParams := request.ErrInvalidParams{Context: "ParameterRanges"}
  18100. if s.CategoricalParameterRanges != nil {
  18101. for i, v := range s.CategoricalParameterRanges {
  18102. if v == nil {
  18103. continue
  18104. }
  18105. if err := v.Validate(); err != nil {
  18106. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CategoricalParameterRanges", i), err.(request.ErrInvalidParams))
  18107. }
  18108. }
  18109. }
  18110. if s.ContinuousParameterRanges != nil {
  18111. for i, v := range s.ContinuousParameterRanges {
  18112. if v == nil {
  18113. continue
  18114. }
  18115. if err := v.Validate(); err != nil {
  18116. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContinuousParameterRanges", i), err.(request.ErrInvalidParams))
  18117. }
  18118. }
  18119. }
  18120. if s.IntegerParameterRanges != nil {
  18121. for i, v := range s.IntegerParameterRanges {
  18122. if v == nil {
  18123. continue
  18124. }
  18125. if err := v.Validate(); err != nil {
  18126. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IntegerParameterRanges", i), err.(request.ErrInvalidParams))
  18127. }
  18128. }
  18129. }
  18130. if invalidParams.Len() > 0 {
  18131. return invalidParams
  18132. }
  18133. return nil
  18134. }
  18135. // SetCategoricalParameterRanges sets the CategoricalParameterRanges field's value.
  18136. func (s *ParameterRanges) SetCategoricalParameterRanges(v []*CategoricalParameterRange) *ParameterRanges {
  18137. s.CategoricalParameterRanges = v
  18138. return s
  18139. }
  18140. // SetContinuousParameterRanges sets the ContinuousParameterRanges field's value.
  18141. func (s *ParameterRanges) SetContinuousParameterRanges(v []*ContinuousParameterRange) *ParameterRanges {
  18142. s.ContinuousParameterRanges = v
  18143. return s
  18144. }
  18145. // SetIntegerParameterRanges sets the IntegerParameterRanges field's value.
  18146. func (s *ParameterRanges) SetIntegerParameterRanges(v []*IntegerParameterRange) *ParameterRanges {
  18147. s.IntegerParameterRanges = v
  18148. return s
  18149. }
  18150. // A previously completed or stopped hyperparameter tuning job to be used as
  18151. // a starting point for a new hyperparameter tuning job.
  18152. type ParentHyperParameterTuningJob struct {
  18153. _ struct{} `type:"structure"`
  18154. // The name of the hyperparameter tuning job to be used as a starting point
  18155. // for a new hyperparameter tuning job.
  18156. HyperParameterTuningJobName *string `min:"1" type:"string"`
  18157. }
  18158. // String returns the string representation
  18159. func (s ParentHyperParameterTuningJob) String() string {
  18160. return awsutil.Prettify(s)
  18161. }
  18162. // GoString returns the string representation
  18163. func (s ParentHyperParameterTuningJob) GoString() string {
  18164. return s.String()
  18165. }
  18166. // Validate inspects the fields of the type to determine if they are valid.
  18167. func (s *ParentHyperParameterTuningJob) Validate() error {
  18168. invalidParams := request.ErrInvalidParams{Context: "ParentHyperParameterTuningJob"}
  18169. if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
  18170. invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
  18171. }
  18172. if invalidParams.Len() > 0 {
  18173. return invalidParams
  18174. }
  18175. return nil
  18176. }
  18177. // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
  18178. func (s *ParentHyperParameterTuningJob) SetHyperParameterTuningJobName(v string) *ParentHyperParameterTuningJob {
  18179. s.HyperParameterTuningJobName = &v
  18180. return s
  18181. }
  18182. // Identifies a model that you want to host and the resources to deploy for
  18183. // hosting it. If you are deploying multiple models, tell Amazon SageMaker how
  18184. // to distribute traffic among the models by specifying variant weights.
  18185. type ProductionVariant struct {
  18186. _ struct{} `type:"structure"`
  18187. // The size of the Elastic Inference (EI) instance to use for the production
  18188. // variant. EI instances provide on-demand GPU computing for inference. For
  18189. // more information, see Using Elastic Inference in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
  18190. // For more information, see Using Elastic Inference in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
  18191. AcceleratorType *string `type:"string" enum:"ProductionVariantAcceleratorType"`
  18192. // Number of instances to launch initially.
  18193. //
  18194. // InitialInstanceCount is a required field
  18195. InitialInstanceCount *int64 `min:"1" type:"integer" required:"true"`
  18196. // Determines initial traffic distribution among all of the models that you
  18197. // specify in the endpoint configuration. The traffic to a production variant
  18198. // is determined by the ratio of the VariantWeight to the sum of all VariantWeight
  18199. // values across all ProductionVariants. If unspecified, it defaults to 1.0.
  18200. InitialVariantWeight *float64 `type:"float"`
  18201. // The ML compute instance type.
  18202. //
  18203. // InstanceType is a required field
  18204. InstanceType *string `type:"string" required:"true" enum:"ProductionVariantInstanceType"`
  18205. // The name of the model that you want to host. This is the name that you specified
  18206. // when creating the model.
  18207. //
  18208. // ModelName is a required field
  18209. ModelName *string `type:"string" required:"true"`
  18210. // The name of the production variant.
  18211. //
  18212. // VariantName is a required field
  18213. VariantName *string `type:"string" required:"true"`
  18214. }
  18215. // String returns the string representation
  18216. func (s ProductionVariant) String() string {
  18217. return awsutil.Prettify(s)
  18218. }
  18219. // GoString returns the string representation
  18220. func (s ProductionVariant) GoString() string {
  18221. return s.String()
  18222. }
  18223. // Validate inspects the fields of the type to determine if they are valid.
  18224. func (s *ProductionVariant) Validate() error {
  18225. invalidParams := request.ErrInvalidParams{Context: "ProductionVariant"}
  18226. if s.InitialInstanceCount == nil {
  18227. invalidParams.Add(request.NewErrParamRequired("InitialInstanceCount"))
  18228. }
  18229. if s.InitialInstanceCount != nil && *s.InitialInstanceCount < 1 {
  18230. invalidParams.Add(request.NewErrParamMinValue("InitialInstanceCount", 1))
  18231. }
  18232. if s.InstanceType == nil {
  18233. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  18234. }
  18235. if s.ModelName == nil {
  18236. invalidParams.Add(request.NewErrParamRequired("ModelName"))
  18237. }
  18238. if s.VariantName == nil {
  18239. invalidParams.Add(request.NewErrParamRequired("VariantName"))
  18240. }
  18241. if invalidParams.Len() > 0 {
  18242. return invalidParams
  18243. }
  18244. return nil
  18245. }
  18246. // SetAcceleratorType sets the AcceleratorType field's value.
  18247. func (s *ProductionVariant) SetAcceleratorType(v string) *ProductionVariant {
  18248. s.AcceleratorType = &v
  18249. return s
  18250. }
  18251. // SetInitialInstanceCount sets the InitialInstanceCount field's value.
  18252. func (s *ProductionVariant) SetInitialInstanceCount(v int64) *ProductionVariant {
  18253. s.InitialInstanceCount = &v
  18254. return s
  18255. }
  18256. // SetInitialVariantWeight sets the InitialVariantWeight field's value.
  18257. func (s *ProductionVariant) SetInitialVariantWeight(v float64) *ProductionVariant {
  18258. s.InitialVariantWeight = &v
  18259. return s
  18260. }
  18261. // SetInstanceType sets the InstanceType field's value.
  18262. func (s *ProductionVariant) SetInstanceType(v string) *ProductionVariant {
  18263. s.InstanceType = &v
  18264. return s
  18265. }
  18266. // SetModelName sets the ModelName field's value.
  18267. func (s *ProductionVariant) SetModelName(v string) *ProductionVariant {
  18268. s.ModelName = &v
  18269. return s
  18270. }
  18271. // SetVariantName sets the VariantName field's value.
  18272. func (s *ProductionVariant) SetVariantName(v string) *ProductionVariant {
  18273. s.VariantName = &v
  18274. return s
  18275. }
  18276. // Describes weight and capacities for a production variant associated with
  18277. // an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities
  18278. // API and the endpoint status is Updating, you get different desired and current
  18279. // values.
  18280. type ProductionVariantSummary struct {
  18281. _ struct{} `type:"structure"`
  18282. // The number of instances associated with the variant.
  18283. CurrentInstanceCount *int64 `min:"1" type:"integer"`
  18284. // The weight associated with the variant.
  18285. CurrentWeight *float64 `type:"float"`
  18286. // An array of DeployedImage objects that specify the Amazon EC2 Container Registry
  18287. // paths of the inference images deployed on instances of this ProductionVariant.
  18288. DeployedImages []*DeployedImage `type:"list"`
  18289. // The number of instances requested in the UpdateEndpointWeightsAndCapacities
  18290. // request.
  18291. DesiredInstanceCount *int64 `min:"1" type:"integer"`
  18292. // The requested weight, as specified in the UpdateEndpointWeightsAndCapacities
  18293. // request.
  18294. DesiredWeight *float64 `type:"float"`
  18295. // The name of the variant.
  18296. //
  18297. // VariantName is a required field
  18298. VariantName *string `type:"string" required:"true"`
  18299. }
  18300. // String returns the string representation
  18301. func (s ProductionVariantSummary) String() string {
  18302. return awsutil.Prettify(s)
  18303. }
  18304. // GoString returns the string representation
  18305. func (s ProductionVariantSummary) GoString() string {
  18306. return s.String()
  18307. }
  18308. // SetCurrentInstanceCount sets the CurrentInstanceCount field's value.
  18309. func (s *ProductionVariantSummary) SetCurrentInstanceCount(v int64) *ProductionVariantSummary {
  18310. s.CurrentInstanceCount = &v
  18311. return s
  18312. }
  18313. // SetCurrentWeight sets the CurrentWeight field's value.
  18314. func (s *ProductionVariantSummary) SetCurrentWeight(v float64) *ProductionVariantSummary {
  18315. s.CurrentWeight = &v
  18316. return s
  18317. }
  18318. // SetDeployedImages sets the DeployedImages field's value.
  18319. func (s *ProductionVariantSummary) SetDeployedImages(v []*DeployedImage) *ProductionVariantSummary {
  18320. s.DeployedImages = v
  18321. return s
  18322. }
  18323. // SetDesiredInstanceCount sets the DesiredInstanceCount field's value.
  18324. func (s *ProductionVariantSummary) SetDesiredInstanceCount(v int64) *ProductionVariantSummary {
  18325. s.DesiredInstanceCount = &v
  18326. return s
  18327. }
  18328. // SetDesiredWeight sets the DesiredWeight field's value.
  18329. func (s *ProductionVariantSummary) SetDesiredWeight(v float64) *ProductionVariantSummary {
  18330. s.DesiredWeight = &v
  18331. return s
  18332. }
  18333. // SetVariantName sets the VariantName field's value.
  18334. func (s *ProductionVariantSummary) SetVariantName(v string) *ProductionVariantSummary {
  18335. s.VariantName = &v
  18336. return s
  18337. }
  18338. // A type of SuggestionQuery. A suggestion query for retrieving property names
  18339. // that match the specified hint.
  18340. type PropertyNameQuery struct {
  18341. _ struct{} `type:"structure"`
  18342. // Text that is part of a property's name. The property names of hyperparameter,
  18343. // metric, and tag key names that begin with the specified text in the PropertyNameHint.
  18344. //
  18345. // PropertyNameHint is a required field
  18346. PropertyNameHint *string `type:"string" required:"true"`
  18347. }
  18348. // String returns the string representation
  18349. func (s PropertyNameQuery) String() string {
  18350. return awsutil.Prettify(s)
  18351. }
  18352. // GoString returns the string representation
  18353. func (s PropertyNameQuery) GoString() string {
  18354. return s.String()
  18355. }
  18356. // Validate inspects the fields of the type to determine if they are valid.
  18357. func (s *PropertyNameQuery) Validate() error {
  18358. invalidParams := request.ErrInvalidParams{Context: "PropertyNameQuery"}
  18359. if s.PropertyNameHint == nil {
  18360. invalidParams.Add(request.NewErrParamRequired("PropertyNameHint"))
  18361. }
  18362. if invalidParams.Len() > 0 {
  18363. return invalidParams
  18364. }
  18365. return nil
  18366. }
  18367. // SetPropertyNameHint sets the PropertyNameHint field's value.
  18368. func (s *PropertyNameQuery) SetPropertyNameHint(v string) *PropertyNameQuery {
  18369. s.PropertyNameHint = &v
  18370. return s
  18371. }
  18372. // A property name returned from a GetSearchSuggestions call that specifies
  18373. // a value in the PropertyNameQuery field.
  18374. type PropertyNameSuggestion struct {
  18375. _ struct{} `type:"structure"`
  18376. // A suggested property name based on what you entered in the search textbox
  18377. // in the Amazon SageMaker console.
  18378. PropertyName *string `min:"1" type:"string"`
  18379. }
  18380. // String returns the string representation
  18381. func (s PropertyNameSuggestion) String() string {
  18382. return awsutil.Prettify(s)
  18383. }
  18384. // GoString returns the string representation
  18385. func (s PropertyNameSuggestion) GoString() string {
  18386. return s.String()
  18387. }
  18388. // SetPropertyName sets the PropertyName field's value.
  18389. func (s *PropertyNameSuggestion) SetPropertyName(v string) *PropertyNameSuggestion {
  18390. s.PropertyName = &v
  18391. return s
  18392. }
  18393. // Defines the amount of money paid to an Amazon Mechanical Turk worker for
  18394. // each task performed.
  18395. //
  18396. // Use one of the following prices for bounding box tasks. Prices are in US
  18397. // dollars.
  18398. //
  18399. // * 0.036
  18400. //
  18401. // * 0.048
  18402. //
  18403. // * 0.060
  18404. //
  18405. // * 0.072
  18406. //
  18407. // * 0.120
  18408. //
  18409. // * 0.240
  18410. //
  18411. // * 0.360
  18412. //
  18413. // * 0.480
  18414. //
  18415. // * 0.600
  18416. //
  18417. // * 0.720
  18418. //
  18419. // * 0.840
  18420. //
  18421. // * 0.960
  18422. //
  18423. // * 1.080
  18424. //
  18425. // * 1.200
  18426. //
  18427. // Use one of the following prices for image classification, text classification,
  18428. // and custom tasks. Prices are in US dollars.
  18429. //
  18430. // * 0.012
  18431. //
  18432. // * 0.024
  18433. //
  18434. // * 0.036
  18435. //
  18436. // * 0.048
  18437. //
  18438. // * 0.060
  18439. //
  18440. // * 0.072
  18441. //
  18442. // * 0.120
  18443. //
  18444. // * 0.240
  18445. //
  18446. // * 0.360
  18447. //
  18448. // * 0.480
  18449. //
  18450. // * 0.600
  18451. //
  18452. // * 0.720
  18453. //
  18454. // * 0.840
  18455. //
  18456. // * 0.960
  18457. //
  18458. // * 1.080
  18459. //
  18460. // * 1.200
  18461. //
  18462. // Use one of the following prices for semantic segmentation tasks. Prices are
  18463. // in US dollars.
  18464. //
  18465. // * 0.840
  18466. //
  18467. // * 0.960
  18468. //
  18469. // * 1.080
  18470. //
  18471. // * 1.200
  18472. type PublicWorkforceTaskPrice struct {
  18473. _ struct{} `type:"structure"`
  18474. // Defines the amount of money paid to a worker in United States dollars.
  18475. AmountInUsd *USD `type:"structure"`
  18476. }
  18477. // String returns the string representation
  18478. func (s PublicWorkforceTaskPrice) String() string {
  18479. return awsutil.Prettify(s)
  18480. }
  18481. // GoString returns the string representation
  18482. func (s PublicWorkforceTaskPrice) GoString() string {
  18483. return s.String()
  18484. }
  18485. // SetAmountInUsd sets the AmountInUsd field's value.
  18486. func (s *PublicWorkforceTaskPrice) SetAmountInUsd(v *USD) *PublicWorkforceTaskPrice {
  18487. s.AmountInUsd = v
  18488. return s
  18489. }
  18490. type RenderUiTemplateInput struct {
  18491. _ struct{} `type:"structure"`
  18492. // The Amazon Resource Name (ARN) that has access to the S3 objects that are
  18493. // used by the template.
  18494. //
  18495. // RoleArn is a required field
  18496. RoleArn *string `min:"20" type:"string" required:"true"`
  18497. // A RenderableTask object containing a representative task to render.
  18498. //
  18499. // Task is a required field
  18500. Task *RenderableTask `type:"structure" required:"true"`
  18501. // A Template object containing the worker UI template to render.
  18502. //
  18503. // UiTemplate is a required field
  18504. UiTemplate *UiTemplate `type:"structure" required:"true"`
  18505. }
  18506. // String returns the string representation
  18507. func (s RenderUiTemplateInput) String() string {
  18508. return awsutil.Prettify(s)
  18509. }
  18510. // GoString returns the string representation
  18511. func (s RenderUiTemplateInput) GoString() string {
  18512. return s.String()
  18513. }
  18514. // Validate inspects the fields of the type to determine if they are valid.
  18515. func (s *RenderUiTemplateInput) Validate() error {
  18516. invalidParams := request.ErrInvalidParams{Context: "RenderUiTemplateInput"}
  18517. if s.RoleArn == nil {
  18518. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  18519. }
  18520. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  18521. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  18522. }
  18523. if s.Task == nil {
  18524. invalidParams.Add(request.NewErrParamRequired("Task"))
  18525. }
  18526. if s.UiTemplate == nil {
  18527. invalidParams.Add(request.NewErrParamRequired("UiTemplate"))
  18528. }
  18529. if s.Task != nil {
  18530. if err := s.Task.Validate(); err != nil {
  18531. invalidParams.AddNested("Task", err.(request.ErrInvalidParams))
  18532. }
  18533. }
  18534. if s.UiTemplate != nil {
  18535. if err := s.UiTemplate.Validate(); err != nil {
  18536. invalidParams.AddNested("UiTemplate", err.(request.ErrInvalidParams))
  18537. }
  18538. }
  18539. if invalidParams.Len() > 0 {
  18540. return invalidParams
  18541. }
  18542. return nil
  18543. }
  18544. // SetRoleArn sets the RoleArn field's value.
  18545. func (s *RenderUiTemplateInput) SetRoleArn(v string) *RenderUiTemplateInput {
  18546. s.RoleArn = &v
  18547. return s
  18548. }
  18549. // SetTask sets the Task field's value.
  18550. func (s *RenderUiTemplateInput) SetTask(v *RenderableTask) *RenderUiTemplateInput {
  18551. s.Task = v
  18552. return s
  18553. }
  18554. // SetUiTemplate sets the UiTemplate field's value.
  18555. func (s *RenderUiTemplateInput) SetUiTemplate(v *UiTemplate) *RenderUiTemplateInput {
  18556. s.UiTemplate = v
  18557. return s
  18558. }
  18559. type RenderUiTemplateOutput struct {
  18560. _ struct{} `type:"structure"`
  18561. // A list of one or more RenderingError objects if any were encountered while
  18562. // rendering the template. If there were no errors, the list is empty.
  18563. //
  18564. // Errors is a required field
  18565. Errors []*RenderingError `type:"list" required:"true"`
  18566. // A Liquid template that renders the HTML for the worker UI.
  18567. //
  18568. // RenderedContent is a required field
  18569. RenderedContent *string `type:"string" required:"true"`
  18570. }
  18571. // String returns the string representation
  18572. func (s RenderUiTemplateOutput) String() string {
  18573. return awsutil.Prettify(s)
  18574. }
  18575. // GoString returns the string representation
  18576. func (s RenderUiTemplateOutput) GoString() string {
  18577. return s.String()
  18578. }
  18579. // SetErrors sets the Errors field's value.
  18580. func (s *RenderUiTemplateOutput) SetErrors(v []*RenderingError) *RenderUiTemplateOutput {
  18581. s.Errors = v
  18582. return s
  18583. }
  18584. // SetRenderedContent sets the RenderedContent field's value.
  18585. func (s *RenderUiTemplateOutput) SetRenderedContent(v string) *RenderUiTemplateOutput {
  18586. s.RenderedContent = &v
  18587. return s
  18588. }
  18589. // Contains input values for a task.
  18590. type RenderableTask struct {
  18591. _ struct{} `type:"structure"`
  18592. // A JSON object that contains values for the variables defined in the template.
  18593. // It is made available to the template under the substitution variable task.input.
  18594. // For example, if you define a variable task.input.text in your template, you
  18595. // can supply the variable in the JSON object as "text": "sample text".
  18596. //
  18597. // Input is a required field
  18598. Input *string `min:"2" type:"string" required:"true"`
  18599. }
  18600. // String returns the string representation
  18601. func (s RenderableTask) String() string {
  18602. return awsutil.Prettify(s)
  18603. }
  18604. // GoString returns the string representation
  18605. func (s RenderableTask) GoString() string {
  18606. return s.String()
  18607. }
  18608. // Validate inspects the fields of the type to determine if they are valid.
  18609. func (s *RenderableTask) Validate() error {
  18610. invalidParams := request.ErrInvalidParams{Context: "RenderableTask"}
  18611. if s.Input == nil {
  18612. invalidParams.Add(request.NewErrParamRequired("Input"))
  18613. }
  18614. if s.Input != nil && len(*s.Input) < 2 {
  18615. invalidParams.Add(request.NewErrParamMinLen("Input", 2))
  18616. }
  18617. if invalidParams.Len() > 0 {
  18618. return invalidParams
  18619. }
  18620. return nil
  18621. }
  18622. // SetInput sets the Input field's value.
  18623. func (s *RenderableTask) SetInput(v string) *RenderableTask {
  18624. s.Input = &v
  18625. return s
  18626. }
  18627. // A description of an error that occurred while rendering the template.
  18628. type RenderingError struct {
  18629. _ struct{} `type:"structure"`
  18630. // A unique identifier for a specific class of errors.
  18631. //
  18632. // Code is a required field
  18633. Code *string `type:"string" required:"true"`
  18634. // A human-readable message describing the error.
  18635. //
  18636. // Message is a required field
  18637. Message *string `type:"string" required:"true"`
  18638. }
  18639. // String returns the string representation
  18640. func (s RenderingError) String() string {
  18641. return awsutil.Prettify(s)
  18642. }
  18643. // GoString returns the string representation
  18644. func (s RenderingError) GoString() string {
  18645. return s.String()
  18646. }
  18647. // SetCode sets the Code field's value.
  18648. func (s *RenderingError) SetCode(v string) *RenderingError {
  18649. s.Code = &v
  18650. return s
  18651. }
  18652. // SetMessage sets the Message field's value.
  18653. func (s *RenderingError) SetMessage(v string) *RenderingError {
  18654. s.Message = &v
  18655. return s
  18656. }
  18657. // Describes the resources, including ML compute instances and ML storage volumes,
  18658. // to use for model training.
  18659. type ResourceConfig struct {
  18660. _ struct{} `type:"structure"`
  18661. // The number of ML compute instances to use. For distributed training, provide
  18662. // a value greater than 1.
  18663. //
  18664. // InstanceCount is a required field
  18665. InstanceCount *int64 `min:"1" type:"integer" required:"true"`
  18666. // The ML compute instance type.
  18667. //
  18668. // InstanceType is a required field
  18669. InstanceType *string `type:"string" required:"true" enum:"TrainingInstanceType"`
  18670. // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
  18671. // encrypt data on the storage volume attached to the ML compute instance(s)
  18672. // that run the training job. The VolumeKmsKeyId can be any of the following
  18673. // formats:
  18674. //
  18675. // * // KMS Key ID
  18676. //
  18677. // "1234abcd-12ab-34cd-56ef-1234567890ab"
  18678. //
  18679. // * // Amazon Resource Name (ARN) of a KMS Key
  18680. //
  18681. // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
  18682. VolumeKmsKeyId *string `type:"string"`
  18683. // The size of the ML storage volume that you want to provision.
  18684. //
  18685. // ML storage volumes store model artifacts and incremental states. Training
  18686. // algorithms might also use the ML storage volume for scratch space. If you
  18687. // want to store the training data in the ML storage volume, choose File as
  18688. // the TrainingInputMode in the algorithm specification.
  18689. //
  18690. // You must specify sufficient ML storage for your scenario.
  18691. //
  18692. // Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume
  18693. // type.
  18694. //
  18695. // VolumeSizeInGB is a required field
  18696. VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"`
  18697. }
  18698. // String returns the string representation
  18699. func (s ResourceConfig) String() string {
  18700. return awsutil.Prettify(s)
  18701. }
  18702. // GoString returns the string representation
  18703. func (s ResourceConfig) GoString() string {
  18704. return s.String()
  18705. }
  18706. // Validate inspects the fields of the type to determine if they are valid.
  18707. func (s *ResourceConfig) Validate() error {
  18708. invalidParams := request.ErrInvalidParams{Context: "ResourceConfig"}
  18709. if s.InstanceCount == nil {
  18710. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  18711. }
  18712. if s.InstanceCount != nil && *s.InstanceCount < 1 {
  18713. invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1))
  18714. }
  18715. if s.InstanceType == nil {
  18716. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  18717. }
  18718. if s.VolumeSizeInGB == nil {
  18719. invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB"))
  18720. }
  18721. if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 {
  18722. invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1))
  18723. }
  18724. if invalidParams.Len() > 0 {
  18725. return invalidParams
  18726. }
  18727. return nil
  18728. }
  18729. // SetInstanceCount sets the InstanceCount field's value.
  18730. func (s *ResourceConfig) SetInstanceCount(v int64) *ResourceConfig {
  18731. s.InstanceCount = &v
  18732. return s
  18733. }
  18734. // SetInstanceType sets the InstanceType field's value.
  18735. func (s *ResourceConfig) SetInstanceType(v string) *ResourceConfig {
  18736. s.InstanceType = &v
  18737. return s
  18738. }
  18739. // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value.
  18740. func (s *ResourceConfig) SetVolumeKmsKeyId(v string) *ResourceConfig {
  18741. s.VolumeKmsKeyId = &v
  18742. return s
  18743. }
  18744. // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
  18745. func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig {
  18746. s.VolumeSizeInGB = &v
  18747. return s
  18748. }
  18749. // Specifies the maximum number of training jobs and parallel training jobs
  18750. // that a hyperparameter tuning job can launch.
  18751. type ResourceLimits struct {
  18752. _ struct{} `type:"structure"`
  18753. // The maximum number of training jobs that a hyperparameter tuning job can
  18754. // launch.
  18755. //
  18756. // MaxNumberOfTrainingJobs is a required field
  18757. MaxNumberOfTrainingJobs *int64 `min:"1" type:"integer" required:"true"`
  18758. // The maximum number of concurrent training jobs that a hyperparameter tuning
  18759. // job can launch.
  18760. //
  18761. // MaxParallelTrainingJobs is a required field
  18762. MaxParallelTrainingJobs *int64 `min:"1" type:"integer" required:"true"`
  18763. }
  18764. // String returns the string representation
  18765. func (s ResourceLimits) String() string {
  18766. return awsutil.Prettify(s)
  18767. }
  18768. // GoString returns the string representation
  18769. func (s ResourceLimits) GoString() string {
  18770. return s.String()
  18771. }
  18772. // Validate inspects the fields of the type to determine if they are valid.
  18773. func (s *ResourceLimits) Validate() error {
  18774. invalidParams := request.ErrInvalidParams{Context: "ResourceLimits"}
  18775. if s.MaxNumberOfTrainingJobs == nil {
  18776. invalidParams.Add(request.NewErrParamRequired("MaxNumberOfTrainingJobs"))
  18777. }
  18778. if s.MaxNumberOfTrainingJobs != nil && *s.MaxNumberOfTrainingJobs < 1 {
  18779. invalidParams.Add(request.NewErrParamMinValue("MaxNumberOfTrainingJobs", 1))
  18780. }
  18781. if s.MaxParallelTrainingJobs == nil {
  18782. invalidParams.Add(request.NewErrParamRequired("MaxParallelTrainingJobs"))
  18783. }
  18784. if s.MaxParallelTrainingJobs != nil && *s.MaxParallelTrainingJobs < 1 {
  18785. invalidParams.Add(request.NewErrParamMinValue("MaxParallelTrainingJobs", 1))
  18786. }
  18787. if invalidParams.Len() > 0 {
  18788. return invalidParams
  18789. }
  18790. return nil
  18791. }
  18792. // SetMaxNumberOfTrainingJobs sets the MaxNumberOfTrainingJobs field's value.
  18793. func (s *ResourceLimits) SetMaxNumberOfTrainingJobs(v int64) *ResourceLimits {
  18794. s.MaxNumberOfTrainingJobs = &v
  18795. return s
  18796. }
  18797. // SetMaxParallelTrainingJobs sets the MaxParallelTrainingJobs field's value.
  18798. func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits {
  18799. s.MaxParallelTrainingJobs = &v
  18800. return s
  18801. }
  18802. // Describes the S3 data source.
  18803. type S3DataSource struct {
  18804. _ struct{} `type:"structure"`
  18805. // A list of one or more attribute names to use that are found in a specified
  18806. // augmented manifest file.
  18807. AttributeNames []*string `type:"list"`
  18808. // If you want Amazon SageMaker to replicate the entire dataset on each ML compute
  18809. // instance that is launched for model training, specify FullyReplicated.
  18810. //
  18811. // If you want Amazon SageMaker to replicate a subset of data on each ML compute
  18812. // instance that is launched for model training, specify ShardedByS3Key. If
  18813. // there are n ML compute instances launched for a training job, each instance
  18814. // gets approximately 1/n of the number of S3 objects. In this case, model training
  18815. // on each machine uses only the subset of training data.
  18816. //
  18817. // Don't choose more ML compute instances for training than available S3 objects.
  18818. // If you do, some nodes won't get any data and you will pay for nodes that
  18819. // aren't getting any training data. This applies in both File and Pipe modes.
  18820. // Keep this in mind when developing algorithms.
  18821. //
  18822. // In distributed training, where you use multiple ML compute EC2 instances,
  18823. // you might choose ShardedByS3Key. If the algorithm requires copying training
  18824. // data to the ML storage volume (when TrainingInputMode is set to File), this
  18825. // copies 1/n of the number of objects.
  18826. S3DataDistributionType *string `type:"string" enum:"S3DataDistribution"`
  18827. // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker
  18828. // uses all objects that match the specified key name prefix for model training.
  18829. //
  18830. // If you choose ManifestFile, S3Uri identifies an object that is a manifest
  18831. // file containing a list of object keys that you want Amazon SageMaker to use
  18832. // for model training.
  18833. //
  18834. // If you choose AugmentedManifestFile, S3Uri identifies an object that is an
  18835. // augmented manifest file in JSON lines format. This file contains the data
  18836. // you want to use for model training. AugmentedManifestFile can only be used
  18837. // if the Channel's input mode is Pipe.
  18838. //
  18839. // S3DataType is a required field
  18840. S3DataType *string `type:"string" required:"true" enum:"S3DataType"`
  18841. // Depending on the value specified for the S3DataType, identifies either a
  18842. // key name prefix or a manifest. For example:
  18843. //
  18844. // * A key name prefix might look like this: s3://bucketname/exampleprefix.
  18845. //
  18846. //
  18847. // * A manifest might look like this: s3://bucketname/example.manifest
  18848. //
  18849. // The manifest is an S3 object which is a JSON file with the following format:
  18850. //
  18851. //
  18852. // [
  18853. //
  18854. // {"prefix": "s3://customer_bucket/some/prefix/"},
  18855. //
  18856. // "relative/path/to/custdata-1",
  18857. //
  18858. // "relative/path/custdata-2",
  18859. //
  18860. // ...
  18861. //
  18862. // ]
  18863. //
  18864. // The preceding JSON matches the following s3Uris:
  18865. //
  18866. // s3://customer_bucket/some/prefix/relative/path/to/custdata-1
  18867. //
  18868. // s3://customer_bucket/some/prefix/relative/path/custdata-2
  18869. //
  18870. // ...
  18871. //
  18872. // The complete set of s3uris in this manifest is the input data for the channel
  18873. // for this datasource. The object that each s3uris points to must be readable
  18874. // by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.
  18875. //
  18876. // S3Uri is a required field
  18877. S3Uri *string `type:"string" required:"true"`
  18878. }
  18879. // String returns the string representation
  18880. func (s S3DataSource) String() string {
  18881. return awsutil.Prettify(s)
  18882. }
  18883. // GoString returns the string representation
  18884. func (s S3DataSource) GoString() string {
  18885. return s.String()
  18886. }
  18887. // Validate inspects the fields of the type to determine if they are valid.
  18888. func (s *S3DataSource) Validate() error {
  18889. invalidParams := request.ErrInvalidParams{Context: "S3DataSource"}
  18890. if s.S3DataType == nil {
  18891. invalidParams.Add(request.NewErrParamRequired("S3DataType"))
  18892. }
  18893. if s.S3Uri == nil {
  18894. invalidParams.Add(request.NewErrParamRequired("S3Uri"))
  18895. }
  18896. if invalidParams.Len() > 0 {
  18897. return invalidParams
  18898. }
  18899. return nil
  18900. }
  18901. // SetAttributeNames sets the AttributeNames field's value.
  18902. func (s *S3DataSource) SetAttributeNames(v []*string) *S3DataSource {
  18903. s.AttributeNames = v
  18904. return s
  18905. }
  18906. // SetS3DataDistributionType sets the S3DataDistributionType field's value.
  18907. func (s *S3DataSource) SetS3DataDistributionType(v string) *S3DataSource {
  18908. s.S3DataDistributionType = &v
  18909. return s
  18910. }
  18911. // SetS3DataType sets the S3DataType field's value.
  18912. func (s *S3DataSource) SetS3DataType(v string) *S3DataSource {
  18913. s.S3DataType = &v
  18914. return s
  18915. }
  18916. // SetS3Uri sets the S3Uri field's value.
  18917. func (s *S3DataSource) SetS3Uri(v string) *S3DataSource {
  18918. s.S3Uri = &v
  18919. return s
  18920. }
  18921. // A multi-expression that searches for the specified resource or resources
  18922. // in a search. All resource objects that satisfy the expression's condition
  18923. // are included in the search results. You must specify at least one subexpression,
  18924. // filter, or nested filter. A SearchExpression can contain up to twenty elements.
  18925. //
  18926. // A SearchExpression contains the following components:
  18927. //
  18928. // * A list of Filter objects. Each filter defines a simple Boolean expression
  18929. // comprised of a resource property name, Boolean operator, and value.
  18930. //
  18931. // * A list of NestedFilter objects. Each nested filter defines a list of
  18932. // Boolean expressions using a list of resource properties. A nested filter
  18933. // is satisfied if a single object in the list satisfies all Boolean expressions.
  18934. //
  18935. // * A list of SearchExpression objects. A search expression object can be
  18936. // nested in a list of search expression objects.
  18937. //
  18938. // * A Boolean operator: And or Or.
  18939. type SearchExpression struct {
  18940. _ struct{} `type:"structure"`
  18941. // A list of filter objects.
  18942. Filters []*Filter `min:"1" type:"list"`
  18943. // A list of nested filter objects.
  18944. NestedFilters []*NestedFilters `min:"1" type:"list"`
  18945. // A Boolean operator used to evaluate the search expression. If you want every
  18946. // conditional statement in all lists to be satisfied for the entire search
  18947. // expression to be true, specify And. If only a single conditional statement
  18948. // needs to be true for the entire search expression to be true, specify Or.
  18949. // The default value is And.
  18950. Operator *string `type:"string" enum:"BooleanOperator"`
  18951. // A list of search expression objects.
  18952. SubExpressions []*SearchExpression `min:"1" type:"list"`
  18953. }
  18954. // String returns the string representation
  18955. func (s SearchExpression) String() string {
  18956. return awsutil.Prettify(s)
  18957. }
  18958. // GoString returns the string representation
  18959. func (s SearchExpression) GoString() string {
  18960. return s.String()
  18961. }
  18962. // Validate inspects the fields of the type to determine if they are valid.
  18963. func (s *SearchExpression) Validate() error {
  18964. invalidParams := request.ErrInvalidParams{Context: "SearchExpression"}
  18965. if s.Filters != nil && len(s.Filters) < 1 {
  18966. invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
  18967. }
  18968. if s.NestedFilters != nil && len(s.NestedFilters) < 1 {
  18969. invalidParams.Add(request.NewErrParamMinLen("NestedFilters", 1))
  18970. }
  18971. if s.SubExpressions != nil && len(s.SubExpressions) < 1 {
  18972. invalidParams.Add(request.NewErrParamMinLen("SubExpressions", 1))
  18973. }
  18974. if s.Filters != nil {
  18975. for i, v := range s.Filters {
  18976. if v == nil {
  18977. continue
  18978. }
  18979. if err := v.Validate(); err != nil {
  18980. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18981. }
  18982. }
  18983. }
  18984. if s.NestedFilters != nil {
  18985. for i, v := range s.NestedFilters {
  18986. if v == nil {
  18987. continue
  18988. }
  18989. if err := v.Validate(); err != nil {
  18990. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NestedFilters", i), err.(request.ErrInvalidParams))
  18991. }
  18992. }
  18993. }
  18994. if s.SubExpressions != nil {
  18995. for i, v := range s.SubExpressions {
  18996. if v == nil {
  18997. continue
  18998. }
  18999. if err := v.Validate(); err != nil {
  19000. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubExpressions", i), err.(request.ErrInvalidParams))
  19001. }
  19002. }
  19003. }
  19004. if invalidParams.Len() > 0 {
  19005. return invalidParams
  19006. }
  19007. return nil
  19008. }
  19009. // SetFilters sets the Filters field's value.
  19010. func (s *SearchExpression) SetFilters(v []*Filter) *SearchExpression {
  19011. s.Filters = v
  19012. return s
  19013. }
  19014. // SetNestedFilters sets the NestedFilters field's value.
  19015. func (s *SearchExpression) SetNestedFilters(v []*NestedFilters) *SearchExpression {
  19016. s.NestedFilters = v
  19017. return s
  19018. }
  19019. // SetOperator sets the Operator field's value.
  19020. func (s *SearchExpression) SetOperator(v string) *SearchExpression {
  19021. s.Operator = &v
  19022. return s
  19023. }
  19024. // SetSubExpressions sets the SubExpressions field's value.
  19025. func (s *SearchExpression) SetSubExpressions(v []*SearchExpression) *SearchExpression {
  19026. s.SubExpressions = v
  19027. return s
  19028. }
  19029. type SearchInput struct {
  19030. _ struct{} `type:"structure"`
  19031. // The maximum number of results to return in a SearchResponse.
  19032. MaxResults *int64 `min:"1" type:"integer"`
  19033. // If more than MaxResults resource objects match the specified SearchExpression,
  19034. // the SearchResponse includes a NextToken. The NextToken can be passed to the
  19035. // next SearchRequest to continue retrieving results for the specified SearchExpression
  19036. // and Sort parameters.
  19037. NextToken *string `type:"string"`
  19038. // The name of the Amazon SageMaker resource to search for. Currently, the only
  19039. // valid Resource value is TrainingJob.
  19040. //
  19041. // Resource is a required field
  19042. Resource *string `type:"string" required:"true" enum:"ResourceType"`
  19043. // A Boolean conditional statement. Resource objects must satisfy this condition
  19044. // to be included in search results. You must provide at least one subexpression,
  19045. // filter, or nested filter. The maximum number of recursive SubExpressions,
  19046. // NestedFilters, and Filters that can be included in a SearchExpression object
  19047. // is 50.
  19048. SearchExpression *SearchExpression `type:"structure"`
  19049. // The name of the resource property used to sort the SearchResults. The default
  19050. // is LastModifiedTime.
  19051. SortBy *string `min:"1" type:"string"`
  19052. // How SearchResults are ordered. Valid values are Ascending or Descending.
  19053. // The default is Descending.
  19054. SortOrder *string `type:"string" enum:"SearchSortOrder"`
  19055. }
  19056. // String returns the string representation
  19057. func (s SearchInput) String() string {
  19058. return awsutil.Prettify(s)
  19059. }
  19060. // GoString returns the string representation
  19061. func (s SearchInput) GoString() string {
  19062. return s.String()
  19063. }
  19064. // Validate inspects the fields of the type to determine if they are valid.
  19065. func (s *SearchInput) Validate() error {
  19066. invalidParams := request.ErrInvalidParams{Context: "SearchInput"}
  19067. if s.MaxResults != nil && *s.MaxResults < 1 {
  19068. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  19069. }
  19070. if s.Resource == nil {
  19071. invalidParams.Add(request.NewErrParamRequired("Resource"))
  19072. }
  19073. if s.SortBy != nil && len(*s.SortBy) < 1 {
  19074. invalidParams.Add(request.NewErrParamMinLen("SortBy", 1))
  19075. }
  19076. if s.SearchExpression != nil {
  19077. if err := s.SearchExpression.Validate(); err != nil {
  19078. invalidParams.AddNested("SearchExpression", err.(request.ErrInvalidParams))
  19079. }
  19080. }
  19081. if invalidParams.Len() > 0 {
  19082. return invalidParams
  19083. }
  19084. return nil
  19085. }
  19086. // SetMaxResults sets the MaxResults field's value.
  19087. func (s *SearchInput) SetMaxResults(v int64) *SearchInput {
  19088. s.MaxResults = &v
  19089. return s
  19090. }
  19091. // SetNextToken sets the NextToken field's value.
  19092. func (s *SearchInput) SetNextToken(v string) *SearchInput {
  19093. s.NextToken = &v
  19094. return s
  19095. }
  19096. // SetResource sets the Resource field's value.
  19097. func (s *SearchInput) SetResource(v string) *SearchInput {
  19098. s.Resource = &v
  19099. return s
  19100. }
  19101. // SetSearchExpression sets the SearchExpression field's value.
  19102. func (s *SearchInput) SetSearchExpression(v *SearchExpression) *SearchInput {
  19103. s.SearchExpression = v
  19104. return s
  19105. }
  19106. // SetSortBy sets the SortBy field's value.
  19107. func (s *SearchInput) SetSortBy(v string) *SearchInput {
  19108. s.SortBy = &v
  19109. return s
  19110. }
  19111. // SetSortOrder sets the SortOrder field's value.
  19112. func (s *SearchInput) SetSortOrder(v string) *SearchInput {
  19113. s.SortOrder = &v
  19114. return s
  19115. }
  19116. type SearchOutput struct {
  19117. _ struct{} `type:"structure"`
  19118. // If the result of the previous Search request was truncated, the response
  19119. // includes a NextToken. To retrieve the next set of results, use the token
  19120. // in the next request.
  19121. NextToken *string `type:"string"`
  19122. // A list of SearchResult objects.
  19123. Results []*SearchRecord `type:"list"`
  19124. }
  19125. // String returns the string representation
  19126. func (s SearchOutput) String() string {
  19127. return awsutil.Prettify(s)
  19128. }
  19129. // GoString returns the string representation
  19130. func (s SearchOutput) GoString() string {
  19131. return s.String()
  19132. }
  19133. // SetNextToken sets the NextToken field's value.
  19134. func (s *SearchOutput) SetNextToken(v string) *SearchOutput {
  19135. s.NextToken = &v
  19136. return s
  19137. }
  19138. // SetResults sets the Results field's value.
  19139. func (s *SearchOutput) SetResults(v []*SearchRecord) *SearchOutput {
  19140. s.Results = v
  19141. return s
  19142. }
  19143. // An individual search result record that contains a single resource object.
  19144. type SearchRecord struct {
  19145. _ struct{} `type:"structure"`
  19146. // A TrainingJob object that is returned as part of a Search request.
  19147. TrainingJob *TrainingJob `type:"structure"`
  19148. }
  19149. // String returns the string representation
  19150. func (s SearchRecord) String() string {
  19151. return awsutil.Prettify(s)
  19152. }
  19153. // GoString returns the string representation
  19154. func (s SearchRecord) GoString() string {
  19155. return s.String()
  19156. }
  19157. // SetTrainingJob sets the TrainingJob field's value.
  19158. func (s *SearchRecord) SetTrainingJob(v *TrainingJob) *SearchRecord {
  19159. s.TrainingJob = v
  19160. return s
  19161. }
  19162. // An array element of DescribeTrainingJobResponse$SecondaryStatusTransitions.
  19163. // It provides additional details about a status that the training job has transitioned
  19164. // through. A training job can be in one of several states, for example, starting,
  19165. // downloading, training, or uploading. Within each state, there are a number
  19166. // of intermediate states. For example, within the starting state, Amazon SageMaker
  19167. // could be starting the training job or launching the ML instances. These transitional
  19168. // states are referred to as the job's secondary status.
  19169. type SecondaryStatusTransition struct {
  19170. _ struct{} `type:"structure"`
  19171. // A timestamp that shows when the training job transitioned out of this secondary
  19172. // status state into another secondary status state or when the training job
  19173. // has ended.
  19174. EndTime *time.Time `type:"timestamp"`
  19175. // A timestamp that shows when the training job transitioned to the current
  19176. // secondary status state.
  19177. //
  19178. // StartTime is a required field
  19179. StartTime *time.Time `type:"timestamp" required:"true"`
  19180. // Contains a secondary status information from a training job.
  19181. //
  19182. // Status might be one of the following secondary statuses:
  19183. //
  19184. // InProgressStarting - Starting the training job.
  19185. //
  19186. // Downloading - An optional stage for algorithms that support File training
  19187. // input mode. It indicates that data is being downloaded to the ML storage
  19188. // volumes.
  19189. //
  19190. // Training - Training is in progress.
  19191. //
  19192. // Uploading - Training is complete and the model artifacts are being uploaded
  19193. // to the S3 location.
  19194. //
  19195. // CompletedCompleted - The training job has completed.
  19196. //
  19197. // FailedFailed - The training job has failed. The reason for the failure is
  19198. // returned in the FailureReason field of DescribeTrainingJobResponse.
  19199. //
  19200. // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum
  19201. // allowed runtime.
  19202. //
  19203. // Stopped - The training job has stopped.
  19204. //
  19205. // StoppingStopping - Stopping the training job.
  19206. //
  19207. // We no longer support the following secondary statuses:
  19208. //
  19209. // * LaunchingMLInstances
  19210. //
  19211. // * PreparingTrainingStack
  19212. //
  19213. // * DownloadingTrainingImage
  19214. //
  19215. // Status is a required field
  19216. Status *string `type:"string" required:"true" enum:"SecondaryStatus"`
  19217. // A detailed description of the progress within a secondary status.
  19218. //
  19219. // Amazon SageMaker provides secondary statuses and status messages that apply
  19220. // to each of them:
  19221. //
  19222. // StartingStarting the training job.
  19223. //
  19224. // Launching requested ML instances.
  19225. //
  19226. // Insufficient capacity error from EC2 while launching instances, retrying!
  19227. //
  19228. // Launched instance was unhealthy, replacing it!
  19229. //
  19230. // Preparing the instances for training.
  19231. //
  19232. // TrainingDownloading the training image.
  19233. //
  19234. // Training image download completed. Training in progress.
  19235. //
  19236. // Status messages are subject to change. Therefore, we recommend not including
  19237. // them in code that programmatically initiates actions. For examples, don't
  19238. // use status messages in if statements.
  19239. //
  19240. // To have an overview of your training job's progress, view TrainingJobStatus
  19241. // and SecondaryStatus in DescribeTrainingJobResponse, and StatusMessage together.
  19242. // For example, at the start of a training job, you might see the following:
  19243. //
  19244. // * TrainingJobStatus - InProgress
  19245. //
  19246. // * SecondaryStatus - Training
  19247. //
  19248. // * StatusMessage - Downloading the training image
  19249. StatusMessage *string `type:"string"`
  19250. }
  19251. // String returns the string representation
  19252. func (s SecondaryStatusTransition) String() string {
  19253. return awsutil.Prettify(s)
  19254. }
  19255. // GoString returns the string representation
  19256. func (s SecondaryStatusTransition) GoString() string {
  19257. return s.String()
  19258. }
  19259. // SetEndTime sets the EndTime field's value.
  19260. func (s *SecondaryStatusTransition) SetEndTime(v time.Time) *SecondaryStatusTransition {
  19261. s.EndTime = &v
  19262. return s
  19263. }
  19264. // SetStartTime sets the StartTime field's value.
  19265. func (s *SecondaryStatusTransition) SetStartTime(v time.Time) *SecondaryStatusTransition {
  19266. s.StartTime = &v
  19267. return s
  19268. }
  19269. // SetStatus sets the Status field's value.
  19270. func (s *SecondaryStatusTransition) SetStatus(v string) *SecondaryStatusTransition {
  19271. s.Status = &v
  19272. return s
  19273. }
  19274. // SetStatusMessage sets the StatusMessage field's value.
  19275. func (s *SecondaryStatusTransition) SetStatusMessage(v string) *SecondaryStatusTransition {
  19276. s.StatusMessage = &v
  19277. return s
  19278. }
  19279. // A configuration for a shuffle option for input data in a channel. If you
  19280. // use S3Prefix for S3DataType, the results of the S3 key prefix matches are
  19281. // shuffled. If you use ManifestFile, the order of the S3 object references
  19282. // in the ManifestFile is shuffled. If you use AugmentedManifestFile, the order
  19283. // of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling
  19284. // order is determined using the Seed value.
  19285. //
  19286. // For Pipe input mode, shuffling is done at the start of every epoch. With
  19287. // large datasets, this ensures that the order of the training data is different
  19288. // for each epoch, and it helps reduce bias and possible overfitting. In a multi-node
  19289. // training job when ShuffleConfig is combined with S3DataDistributionType of
  19290. // ShardedByS3Key, the data is shuffled across nodes so that the content sent
  19291. // to a particular node on the first epoch might be sent to a different node
  19292. // on the second epoch.
  19293. type ShuffleConfig struct {
  19294. _ struct{} `type:"structure"`
  19295. // Determines the shuffling order in ShuffleConfig value.
  19296. //
  19297. // Seed is a required field
  19298. Seed *int64 `type:"long" required:"true"`
  19299. }
  19300. // String returns the string representation
  19301. func (s ShuffleConfig) String() string {
  19302. return awsutil.Prettify(s)
  19303. }
  19304. // GoString returns the string representation
  19305. func (s ShuffleConfig) GoString() string {
  19306. return s.String()
  19307. }
  19308. // Validate inspects the fields of the type to determine if they are valid.
  19309. func (s *ShuffleConfig) Validate() error {
  19310. invalidParams := request.ErrInvalidParams{Context: "ShuffleConfig"}
  19311. if s.Seed == nil {
  19312. invalidParams.Add(request.NewErrParamRequired("Seed"))
  19313. }
  19314. if invalidParams.Len() > 0 {
  19315. return invalidParams
  19316. }
  19317. return nil
  19318. }
  19319. // SetSeed sets the Seed field's value.
  19320. func (s *ShuffleConfig) SetSeed(v int64) *ShuffleConfig {
  19321. s.Seed = &v
  19322. return s
  19323. }
  19324. // Specifies an algorithm that was used to create the model package. The algorithm
  19325. // must be either an algorithm resource in your Amazon SageMaker account or
  19326. // an algorithm in AWS Marketplace that you are subscribed to.
  19327. type SourceAlgorithm struct {
  19328. _ struct{} `type:"structure"`
  19329. // The name of an algorithm that was used to create the model package. The algorithm
  19330. // must be either an algorithm resource in your Amazon SageMaker account or
  19331. // an algorithm in AWS Marketplace that you are subscribed to.
  19332. //
  19333. // AlgorithmName is a required field
  19334. AlgorithmName *string `min:"1" type:"string" required:"true"`
  19335. // The Amazon S3 path where the model artifacts, which result from model training,
  19336. // are stored. This path must point to a single gzip compressed tar archive
  19337. // (.tar.gz suffix).
  19338. ModelDataUrl *string `type:"string"`
  19339. }
  19340. // String returns the string representation
  19341. func (s SourceAlgorithm) String() string {
  19342. return awsutil.Prettify(s)
  19343. }
  19344. // GoString returns the string representation
  19345. func (s SourceAlgorithm) GoString() string {
  19346. return s.String()
  19347. }
  19348. // Validate inspects the fields of the type to determine if they are valid.
  19349. func (s *SourceAlgorithm) Validate() error {
  19350. invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithm"}
  19351. if s.AlgorithmName == nil {
  19352. invalidParams.Add(request.NewErrParamRequired("AlgorithmName"))
  19353. }
  19354. if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 {
  19355. invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1))
  19356. }
  19357. if invalidParams.Len() > 0 {
  19358. return invalidParams
  19359. }
  19360. return nil
  19361. }
  19362. // SetAlgorithmName sets the AlgorithmName field's value.
  19363. func (s *SourceAlgorithm) SetAlgorithmName(v string) *SourceAlgorithm {
  19364. s.AlgorithmName = &v
  19365. return s
  19366. }
  19367. // SetModelDataUrl sets the ModelDataUrl field's value.
  19368. func (s *SourceAlgorithm) SetModelDataUrl(v string) *SourceAlgorithm {
  19369. s.ModelDataUrl = &v
  19370. return s
  19371. }
  19372. // A list of algorithms that were used to create a model package.
  19373. type SourceAlgorithmSpecification struct {
  19374. _ struct{} `type:"structure"`
  19375. // A list of the algorithms that were used to create a model package.
  19376. //
  19377. // SourceAlgorithms is a required field
  19378. SourceAlgorithms []*SourceAlgorithm `min:"1" type:"list" required:"true"`
  19379. }
  19380. // String returns the string representation
  19381. func (s SourceAlgorithmSpecification) String() string {
  19382. return awsutil.Prettify(s)
  19383. }
  19384. // GoString returns the string representation
  19385. func (s SourceAlgorithmSpecification) GoString() string {
  19386. return s.String()
  19387. }
  19388. // Validate inspects the fields of the type to determine if they are valid.
  19389. func (s *SourceAlgorithmSpecification) Validate() error {
  19390. invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithmSpecification"}
  19391. if s.SourceAlgorithms == nil {
  19392. invalidParams.Add(request.NewErrParamRequired("SourceAlgorithms"))
  19393. }
  19394. if s.SourceAlgorithms != nil && len(s.SourceAlgorithms) < 1 {
  19395. invalidParams.Add(request.NewErrParamMinLen("SourceAlgorithms", 1))
  19396. }
  19397. if s.SourceAlgorithms != nil {
  19398. for i, v := range s.SourceAlgorithms {
  19399. if v == nil {
  19400. continue
  19401. }
  19402. if err := v.Validate(); err != nil {
  19403. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SourceAlgorithms", i), err.(request.ErrInvalidParams))
  19404. }
  19405. }
  19406. }
  19407. if invalidParams.Len() > 0 {
  19408. return invalidParams
  19409. }
  19410. return nil
  19411. }
  19412. // SetSourceAlgorithms sets the SourceAlgorithms field's value.
  19413. func (s *SourceAlgorithmSpecification) SetSourceAlgorithms(v []*SourceAlgorithm) *SourceAlgorithmSpecification {
  19414. s.SourceAlgorithms = v
  19415. return s
  19416. }
  19417. type StartNotebookInstanceInput struct {
  19418. _ struct{} `type:"structure"`
  19419. // The name of the notebook instance to start.
  19420. //
  19421. // NotebookInstanceName is a required field
  19422. NotebookInstanceName *string `type:"string" required:"true"`
  19423. }
  19424. // String returns the string representation
  19425. func (s StartNotebookInstanceInput) String() string {
  19426. return awsutil.Prettify(s)
  19427. }
  19428. // GoString returns the string representation
  19429. func (s StartNotebookInstanceInput) GoString() string {
  19430. return s.String()
  19431. }
  19432. // Validate inspects the fields of the type to determine if they are valid.
  19433. func (s *StartNotebookInstanceInput) Validate() error {
  19434. invalidParams := request.ErrInvalidParams{Context: "StartNotebookInstanceInput"}
  19435. if s.NotebookInstanceName == nil {
  19436. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
  19437. }
  19438. if invalidParams.Len() > 0 {
  19439. return invalidParams
  19440. }
  19441. return nil
  19442. }
  19443. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  19444. func (s *StartNotebookInstanceInput) SetNotebookInstanceName(v string) *StartNotebookInstanceInput {
  19445. s.NotebookInstanceName = &v
  19446. return s
  19447. }
  19448. type StartNotebookInstanceOutput struct {
  19449. _ struct{} `type:"structure"`
  19450. }
  19451. // String returns the string representation
  19452. func (s StartNotebookInstanceOutput) String() string {
  19453. return awsutil.Prettify(s)
  19454. }
  19455. // GoString returns the string representation
  19456. func (s StartNotebookInstanceOutput) GoString() string {
  19457. return s.String()
  19458. }
  19459. type StopCompilationJobInput struct {
  19460. _ struct{} `type:"structure"`
  19461. // The name of the model compilation job to stop.
  19462. //
  19463. // CompilationJobName is a required field
  19464. CompilationJobName *string `min:"1" type:"string" required:"true"`
  19465. }
  19466. // String returns the string representation
  19467. func (s StopCompilationJobInput) String() string {
  19468. return awsutil.Prettify(s)
  19469. }
  19470. // GoString returns the string representation
  19471. func (s StopCompilationJobInput) GoString() string {
  19472. return s.String()
  19473. }
  19474. // Validate inspects the fields of the type to determine if they are valid.
  19475. func (s *StopCompilationJobInput) Validate() error {
  19476. invalidParams := request.ErrInvalidParams{Context: "StopCompilationJobInput"}
  19477. if s.CompilationJobName == nil {
  19478. invalidParams.Add(request.NewErrParamRequired("CompilationJobName"))
  19479. }
  19480. if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 {
  19481. invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1))
  19482. }
  19483. if invalidParams.Len() > 0 {
  19484. return invalidParams
  19485. }
  19486. return nil
  19487. }
  19488. // SetCompilationJobName sets the CompilationJobName field's value.
  19489. func (s *StopCompilationJobInput) SetCompilationJobName(v string) *StopCompilationJobInput {
  19490. s.CompilationJobName = &v
  19491. return s
  19492. }
  19493. type StopCompilationJobOutput struct {
  19494. _ struct{} `type:"structure"`
  19495. }
  19496. // String returns the string representation
  19497. func (s StopCompilationJobOutput) String() string {
  19498. return awsutil.Prettify(s)
  19499. }
  19500. // GoString returns the string representation
  19501. func (s StopCompilationJobOutput) GoString() string {
  19502. return s.String()
  19503. }
  19504. type StopHyperParameterTuningJobInput struct {
  19505. _ struct{} `type:"structure"`
  19506. // The name of the tuning job to stop.
  19507. //
  19508. // HyperParameterTuningJobName is a required field
  19509. HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"`
  19510. }
  19511. // String returns the string representation
  19512. func (s StopHyperParameterTuningJobInput) String() string {
  19513. return awsutil.Prettify(s)
  19514. }
  19515. // GoString returns the string representation
  19516. func (s StopHyperParameterTuningJobInput) GoString() string {
  19517. return s.String()
  19518. }
  19519. // Validate inspects the fields of the type to determine if they are valid.
  19520. func (s *StopHyperParameterTuningJobInput) Validate() error {
  19521. invalidParams := request.ErrInvalidParams{Context: "StopHyperParameterTuningJobInput"}
  19522. if s.HyperParameterTuningJobName == nil {
  19523. invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName"))
  19524. }
  19525. if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 {
  19526. invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1))
  19527. }
  19528. if invalidParams.Len() > 0 {
  19529. return invalidParams
  19530. }
  19531. return nil
  19532. }
  19533. // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value.
  19534. func (s *StopHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *StopHyperParameterTuningJobInput {
  19535. s.HyperParameterTuningJobName = &v
  19536. return s
  19537. }
  19538. type StopHyperParameterTuningJobOutput struct {
  19539. _ struct{} `type:"structure"`
  19540. }
  19541. // String returns the string representation
  19542. func (s StopHyperParameterTuningJobOutput) String() string {
  19543. return awsutil.Prettify(s)
  19544. }
  19545. // GoString returns the string representation
  19546. func (s StopHyperParameterTuningJobOutput) GoString() string {
  19547. return s.String()
  19548. }
  19549. type StopLabelingJobInput struct {
  19550. _ struct{} `type:"structure"`
  19551. // The name of the labeling job to stop.
  19552. //
  19553. // LabelingJobName is a required field
  19554. LabelingJobName *string `min:"1" type:"string" required:"true"`
  19555. }
  19556. // String returns the string representation
  19557. func (s StopLabelingJobInput) String() string {
  19558. return awsutil.Prettify(s)
  19559. }
  19560. // GoString returns the string representation
  19561. func (s StopLabelingJobInput) GoString() string {
  19562. return s.String()
  19563. }
  19564. // Validate inspects the fields of the type to determine if they are valid.
  19565. func (s *StopLabelingJobInput) Validate() error {
  19566. invalidParams := request.ErrInvalidParams{Context: "StopLabelingJobInput"}
  19567. if s.LabelingJobName == nil {
  19568. invalidParams.Add(request.NewErrParamRequired("LabelingJobName"))
  19569. }
  19570. if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 {
  19571. invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1))
  19572. }
  19573. if invalidParams.Len() > 0 {
  19574. return invalidParams
  19575. }
  19576. return nil
  19577. }
  19578. // SetLabelingJobName sets the LabelingJobName field's value.
  19579. func (s *StopLabelingJobInput) SetLabelingJobName(v string) *StopLabelingJobInput {
  19580. s.LabelingJobName = &v
  19581. return s
  19582. }
  19583. type StopLabelingJobOutput struct {
  19584. _ struct{} `type:"structure"`
  19585. }
  19586. // String returns the string representation
  19587. func (s StopLabelingJobOutput) String() string {
  19588. return awsutil.Prettify(s)
  19589. }
  19590. // GoString returns the string representation
  19591. func (s StopLabelingJobOutput) GoString() string {
  19592. return s.String()
  19593. }
  19594. type StopNotebookInstanceInput struct {
  19595. _ struct{} `type:"structure"`
  19596. // The name of the notebook instance to terminate.
  19597. //
  19598. // NotebookInstanceName is a required field
  19599. NotebookInstanceName *string `type:"string" required:"true"`
  19600. }
  19601. // String returns the string representation
  19602. func (s StopNotebookInstanceInput) String() string {
  19603. return awsutil.Prettify(s)
  19604. }
  19605. // GoString returns the string representation
  19606. func (s StopNotebookInstanceInput) GoString() string {
  19607. return s.String()
  19608. }
  19609. // Validate inspects the fields of the type to determine if they are valid.
  19610. func (s *StopNotebookInstanceInput) Validate() error {
  19611. invalidParams := request.ErrInvalidParams{Context: "StopNotebookInstanceInput"}
  19612. if s.NotebookInstanceName == nil {
  19613. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
  19614. }
  19615. if invalidParams.Len() > 0 {
  19616. return invalidParams
  19617. }
  19618. return nil
  19619. }
  19620. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  19621. func (s *StopNotebookInstanceInput) SetNotebookInstanceName(v string) *StopNotebookInstanceInput {
  19622. s.NotebookInstanceName = &v
  19623. return s
  19624. }
  19625. type StopNotebookInstanceOutput struct {
  19626. _ struct{} `type:"structure"`
  19627. }
  19628. // String returns the string representation
  19629. func (s StopNotebookInstanceOutput) String() string {
  19630. return awsutil.Prettify(s)
  19631. }
  19632. // GoString returns the string representation
  19633. func (s StopNotebookInstanceOutput) GoString() string {
  19634. return s.String()
  19635. }
  19636. type StopTrainingJobInput struct {
  19637. _ struct{} `type:"structure"`
  19638. // The name of the training job to stop.
  19639. //
  19640. // TrainingJobName is a required field
  19641. TrainingJobName *string `min:"1" type:"string" required:"true"`
  19642. }
  19643. // String returns the string representation
  19644. func (s StopTrainingJobInput) String() string {
  19645. return awsutil.Prettify(s)
  19646. }
  19647. // GoString returns the string representation
  19648. func (s StopTrainingJobInput) GoString() string {
  19649. return s.String()
  19650. }
  19651. // Validate inspects the fields of the type to determine if they are valid.
  19652. func (s *StopTrainingJobInput) Validate() error {
  19653. invalidParams := request.ErrInvalidParams{Context: "StopTrainingJobInput"}
  19654. if s.TrainingJobName == nil {
  19655. invalidParams.Add(request.NewErrParamRequired("TrainingJobName"))
  19656. }
  19657. if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 {
  19658. invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1))
  19659. }
  19660. if invalidParams.Len() > 0 {
  19661. return invalidParams
  19662. }
  19663. return nil
  19664. }
  19665. // SetTrainingJobName sets the TrainingJobName field's value.
  19666. func (s *StopTrainingJobInput) SetTrainingJobName(v string) *StopTrainingJobInput {
  19667. s.TrainingJobName = &v
  19668. return s
  19669. }
  19670. type StopTrainingJobOutput struct {
  19671. _ struct{} `type:"structure"`
  19672. }
  19673. // String returns the string representation
  19674. func (s StopTrainingJobOutput) String() string {
  19675. return awsutil.Prettify(s)
  19676. }
  19677. // GoString returns the string representation
  19678. func (s StopTrainingJobOutput) GoString() string {
  19679. return s.String()
  19680. }
  19681. type StopTransformJobInput struct {
  19682. _ struct{} `type:"structure"`
  19683. // The name of the transform job to stop.
  19684. //
  19685. // TransformJobName is a required field
  19686. TransformJobName *string `min:"1" type:"string" required:"true"`
  19687. }
  19688. // String returns the string representation
  19689. func (s StopTransformJobInput) String() string {
  19690. return awsutil.Prettify(s)
  19691. }
  19692. // GoString returns the string representation
  19693. func (s StopTransformJobInput) GoString() string {
  19694. return s.String()
  19695. }
  19696. // Validate inspects the fields of the type to determine if they are valid.
  19697. func (s *StopTransformJobInput) Validate() error {
  19698. invalidParams := request.ErrInvalidParams{Context: "StopTransformJobInput"}
  19699. if s.TransformJobName == nil {
  19700. invalidParams.Add(request.NewErrParamRequired("TransformJobName"))
  19701. }
  19702. if s.TransformJobName != nil && len(*s.TransformJobName) < 1 {
  19703. invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1))
  19704. }
  19705. if invalidParams.Len() > 0 {
  19706. return invalidParams
  19707. }
  19708. return nil
  19709. }
  19710. // SetTransformJobName sets the TransformJobName field's value.
  19711. func (s *StopTransformJobInput) SetTransformJobName(v string) *StopTransformJobInput {
  19712. s.TransformJobName = &v
  19713. return s
  19714. }
  19715. type StopTransformJobOutput struct {
  19716. _ struct{} `type:"structure"`
  19717. }
  19718. // String returns the string representation
  19719. func (s StopTransformJobOutput) String() string {
  19720. return awsutil.Prettify(s)
  19721. }
  19722. // GoString returns the string representation
  19723. func (s StopTransformJobOutput) GoString() string {
  19724. return s.String()
  19725. }
  19726. // Specifies how long model training can run. When model training reaches the
  19727. // limit, Amazon SageMaker ends the training job. Use this API to cap model
  19728. // training cost.
  19729. //
  19730. // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which
  19731. // delays job termination for120 seconds. Algorithms might use this 120-second
  19732. // window to save the model artifacts, so the results of training is not lost.
  19733. //
  19734. // Training algorithms provided by Amazon SageMaker automatically saves the
  19735. // intermediate results of a model training job (it is best effort case, as
  19736. // model might not be ready to save as some stages, for example training just
  19737. // started). This intermediate data is a valid model artifact. You can use it
  19738. // to create a model (CreateModel).
  19739. type StoppingCondition struct {
  19740. _ struct{} `type:"structure"`
  19741. // The maximum length of time, in seconds, that the training job can run. If
  19742. // model training does not complete during this time, Amazon SageMaker ends
  19743. // the job. If value is not specified, default value is 1 day. Maximum value
  19744. // is 28 days.
  19745. MaxRuntimeInSeconds *int64 `min:"1" type:"integer"`
  19746. }
  19747. // String returns the string representation
  19748. func (s StoppingCondition) String() string {
  19749. return awsutil.Prettify(s)
  19750. }
  19751. // GoString returns the string representation
  19752. func (s StoppingCondition) GoString() string {
  19753. return s.String()
  19754. }
  19755. // Validate inspects the fields of the type to determine if they are valid.
  19756. func (s *StoppingCondition) Validate() error {
  19757. invalidParams := request.ErrInvalidParams{Context: "StoppingCondition"}
  19758. if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 {
  19759. invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1))
  19760. }
  19761. if invalidParams.Len() > 0 {
  19762. return invalidParams
  19763. }
  19764. return nil
  19765. }
  19766. // SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value.
  19767. func (s *StoppingCondition) SetMaxRuntimeInSeconds(v int64) *StoppingCondition {
  19768. s.MaxRuntimeInSeconds = &v
  19769. return s
  19770. }
  19771. // Describes a work team of a vendor that does the a labelling job.
  19772. type SubscribedWorkteam struct {
  19773. _ struct{} `type:"structure"`
  19774. ListingId *string `type:"string"`
  19775. // The description of the vendor from the Amazon Marketplace.
  19776. MarketplaceDescription *string `min:"1" type:"string"`
  19777. // The title of the service provided by the vendor in the Amazon Marketplace.
  19778. MarketplaceTitle *string `min:"1" type:"string"`
  19779. // The name of the vendor in the Amazon Marketplace.
  19780. SellerName *string `type:"string"`
  19781. // The Amazon Resource Name (ARN) of the vendor that you have subscribed.
  19782. //
  19783. // WorkteamArn is a required field
  19784. WorkteamArn *string `type:"string" required:"true"`
  19785. }
  19786. // String returns the string representation
  19787. func (s SubscribedWorkteam) String() string {
  19788. return awsutil.Prettify(s)
  19789. }
  19790. // GoString returns the string representation
  19791. func (s SubscribedWorkteam) GoString() string {
  19792. return s.String()
  19793. }
  19794. // SetListingId sets the ListingId field's value.
  19795. func (s *SubscribedWorkteam) SetListingId(v string) *SubscribedWorkteam {
  19796. s.ListingId = &v
  19797. return s
  19798. }
  19799. // SetMarketplaceDescription sets the MarketplaceDescription field's value.
  19800. func (s *SubscribedWorkteam) SetMarketplaceDescription(v string) *SubscribedWorkteam {
  19801. s.MarketplaceDescription = &v
  19802. return s
  19803. }
  19804. // SetMarketplaceTitle sets the MarketplaceTitle field's value.
  19805. func (s *SubscribedWorkteam) SetMarketplaceTitle(v string) *SubscribedWorkteam {
  19806. s.MarketplaceTitle = &v
  19807. return s
  19808. }
  19809. // SetSellerName sets the SellerName field's value.
  19810. func (s *SubscribedWorkteam) SetSellerName(v string) *SubscribedWorkteam {
  19811. s.SellerName = &v
  19812. return s
  19813. }
  19814. // SetWorkteamArn sets the WorkteamArn field's value.
  19815. func (s *SubscribedWorkteam) SetWorkteamArn(v string) *SubscribedWorkteam {
  19816. s.WorkteamArn = &v
  19817. return s
  19818. }
  19819. // Limits the property names that are included in the response.
  19820. type SuggestionQuery struct {
  19821. _ struct{} `type:"structure"`
  19822. // A type of SuggestionQuery. Defines a property name hint. Only property names
  19823. // that match the specified hint are included in the response.
  19824. PropertyNameQuery *PropertyNameQuery `type:"structure"`
  19825. }
  19826. // String returns the string representation
  19827. func (s SuggestionQuery) String() string {
  19828. return awsutil.Prettify(s)
  19829. }
  19830. // GoString returns the string representation
  19831. func (s SuggestionQuery) GoString() string {
  19832. return s.String()
  19833. }
  19834. // Validate inspects the fields of the type to determine if they are valid.
  19835. func (s *SuggestionQuery) Validate() error {
  19836. invalidParams := request.ErrInvalidParams{Context: "SuggestionQuery"}
  19837. if s.PropertyNameQuery != nil {
  19838. if err := s.PropertyNameQuery.Validate(); err != nil {
  19839. invalidParams.AddNested("PropertyNameQuery", err.(request.ErrInvalidParams))
  19840. }
  19841. }
  19842. if invalidParams.Len() > 0 {
  19843. return invalidParams
  19844. }
  19845. return nil
  19846. }
  19847. // SetPropertyNameQuery sets the PropertyNameQuery field's value.
  19848. func (s *SuggestionQuery) SetPropertyNameQuery(v *PropertyNameQuery) *SuggestionQuery {
  19849. s.PropertyNameQuery = v
  19850. return s
  19851. }
  19852. // Describes a tag.
  19853. type Tag struct {
  19854. _ struct{} `type:"structure"`
  19855. // The tag key.
  19856. //
  19857. // Key is a required field
  19858. Key *string `min:"1" type:"string" required:"true"`
  19859. // The tag value.
  19860. //
  19861. // Value is a required field
  19862. Value *string `type:"string" required:"true"`
  19863. }
  19864. // String returns the string representation
  19865. func (s Tag) String() string {
  19866. return awsutil.Prettify(s)
  19867. }
  19868. // GoString returns the string representation
  19869. func (s Tag) GoString() string {
  19870. return s.String()
  19871. }
  19872. // Validate inspects the fields of the type to determine if they are valid.
  19873. func (s *Tag) Validate() error {
  19874. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  19875. if s.Key == nil {
  19876. invalidParams.Add(request.NewErrParamRequired("Key"))
  19877. }
  19878. if s.Key != nil && len(*s.Key) < 1 {
  19879. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  19880. }
  19881. if s.Value == nil {
  19882. invalidParams.Add(request.NewErrParamRequired("Value"))
  19883. }
  19884. if invalidParams.Len() > 0 {
  19885. return invalidParams
  19886. }
  19887. return nil
  19888. }
  19889. // SetKey sets the Key field's value.
  19890. func (s *Tag) SetKey(v string) *Tag {
  19891. s.Key = &v
  19892. return s
  19893. }
  19894. // SetValue sets the Value field's value.
  19895. func (s *Tag) SetValue(v string) *Tag {
  19896. s.Value = &v
  19897. return s
  19898. }
  19899. // Contains information about a training job.
  19900. type TrainingJob struct {
  19901. _ struct{} `type:"structure"`
  19902. // Information about the algorithm used for training, and algorithm metadata.
  19903. AlgorithmSpecification *AlgorithmSpecification `type:"structure"`
  19904. // A timestamp that indicates when the training job was created.
  19905. CreationTime *time.Time `type:"timestamp"`
  19906. // If the TrainingJob was created with network isolation, the value is set to
  19907. // true. If network isolation is enabled, nodes can't communicate beyond the
  19908. // VPC they run in.
  19909. EnableNetworkIsolation *bool `type:"boolean"`
  19910. // If the training job failed, the reason it failed.
  19911. FailureReason *string `type:"string"`
  19912. // A list of final metric values that are set when the training job completes.
  19913. // Used only if the training job was configured to use metrics.
  19914. FinalMetricDataList []*MetricData `type:"list"`
  19915. // Algorithm-specific parameters.
  19916. HyperParameters map[string]*string `type:"map"`
  19917. // An array of Channel objects that describes each data input channel.
  19918. InputDataConfig []*Channel `min:"1" type:"list"`
  19919. // The Amazon Resource Name (ARN) of the labeling job.
  19920. LabelingJobArn *string `type:"string"`
  19921. // A timestamp that indicates when the status of the training job was last modified.
  19922. LastModifiedTime *time.Time `type:"timestamp"`
  19923. // Information about the Amazon S3 location that is configured for storing model
  19924. // artifacts.
  19925. ModelArtifacts *ModelArtifacts `type:"structure"`
  19926. // The S3 path where model artifacts that you configured when creating the job
  19927. // are stored. Amazon SageMaker creates subfolders for model artifacts.
  19928. OutputDataConfig *OutputDataConfig `type:"structure"`
  19929. // Resources, including ML compute instances and ML storage volumes, that are
  19930. // configured for model training.
  19931. ResourceConfig *ResourceConfig `type:"structure"`
  19932. // The AWS Identity and Access Management (IAM) role configured for the training
  19933. // job.
  19934. RoleArn *string `min:"20" type:"string"`
  19935. // Provides detailed information about the state of the training job. For detailed
  19936. // information about the secondary status of the training job, see StatusMessage
  19937. // under SecondaryStatusTransition.
  19938. //
  19939. // Amazon SageMaker provides primary statuses and secondary statuses that apply
  19940. // to each of them:
  19941. //
  19942. // InProgressStarting - Starting the training job.
  19943. //
  19944. // Downloading - An optional stage for algorithms that support File training
  19945. // input mode. It indicates that data is being downloaded to the ML storage
  19946. // volumes.
  19947. //
  19948. // Training - Training is in progress.
  19949. //
  19950. // Uploading - Training is complete and the model artifacts are being uploaded
  19951. // to the S3 location.
  19952. //
  19953. // CompletedCompleted - The training job has completed.
  19954. //
  19955. // FailedFailed - The training job has failed. The reason for the failure is
  19956. // returned in the FailureReason field of DescribeTrainingJobResponse.
  19957. //
  19958. // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum
  19959. // allowed runtime.
  19960. //
  19961. // Stopped - The training job has stopped.
  19962. //
  19963. // StoppingStopping - Stopping the training job.
  19964. //
  19965. // Valid values for SecondaryStatus are subject to change.
  19966. //
  19967. // We no longer support the following secondary statuses:
  19968. //
  19969. // * LaunchingMLInstances
  19970. //
  19971. // * PreparingTrainingStack
  19972. //
  19973. // * DownloadingTrainingImage
  19974. SecondaryStatus *string `type:"string" enum:"SecondaryStatus"`
  19975. // A history of all of the secondary statuses that the training job has transitioned
  19976. // through.
  19977. SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"`
  19978. // The condition under which to stop the training job.
  19979. StoppingCondition *StoppingCondition `type:"structure"`
  19980. // An array of key-value pairs. For more information, see Using Cost Allocation
  19981. // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)
  19982. // in the AWS Billing and Cost Management User Guide.
  19983. Tags []*Tag `type:"list"`
  19984. // Indicates the time when the training job ends on training instances. You
  19985. // are billed for the time interval between the value of TrainingStartTime and
  19986. // this time. For successful jobs and stopped jobs, this is the time after model
  19987. // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker
  19988. // detects a job failure.
  19989. TrainingEndTime *time.Time `type:"timestamp"`
  19990. // The Amazon Resource Name (ARN) of the training job.
  19991. TrainingJobArn *string `type:"string"`
  19992. // The name of the training job.
  19993. TrainingJobName *string `min:"1" type:"string"`
  19994. // The status of the training job.
  19995. //
  19996. // Training job statuses are:
  19997. //
  19998. // * InProgress - The training is in progress.
  19999. //
  20000. // * Completed - The training job has completed.
  20001. //
  20002. // * Failed - The training job has failed. To see the reason for the failure,
  20003. // see the FailureReason field in the response to a DescribeTrainingJobResponse
  20004. // call.
  20005. //
  20006. // * Stopping - The training job is stopping.
  20007. //
  20008. // * Stopped - The training job has stopped.
  20009. //
  20010. // For more detailed information, see SecondaryStatus.
  20011. TrainingJobStatus *string `type:"string" enum:"TrainingJobStatus"`
  20012. // Indicates the time when the training job starts on training instances. You
  20013. // are billed for the time interval between this time and the value of TrainingEndTime.
  20014. // The start time in CloudWatch Logs might be later than this time. The difference
  20015. // is due to the time it takes to download the training data and to the size
  20016. // of the training container.
  20017. TrainingStartTime *time.Time `type:"timestamp"`
  20018. // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job
  20019. // if the training job was launched by a hyperparameter tuning job.
  20020. TuningJobArn *string `type:"string"`
  20021. // A VpcConfig object that specifies the VPC that this training job has access
  20022. // to. For more information, see Protect Training Jobs by Using an Amazon Virtual
  20023. // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
  20024. VpcConfig *VpcConfig `type:"structure"`
  20025. }
  20026. // String returns the string representation
  20027. func (s TrainingJob) String() string {
  20028. return awsutil.Prettify(s)
  20029. }
  20030. // GoString returns the string representation
  20031. func (s TrainingJob) GoString() string {
  20032. return s.String()
  20033. }
  20034. // SetAlgorithmSpecification sets the AlgorithmSpecification field's value.
  20035. func (s *TrainingJob) SetAlgorithmSpecification(v *AlgorithmSpecification) *TrainingJob {
  20036. s.AlgorithmSpecification = v
  20037. return s
  20038. }
  20039. // SetCreationTime sets the CreationTime field's value.
  20040. func (s *TrainingJob) SetCreationTime(v time.Time) *TrainingJob {
  20041. s.CreationTime = &v
  20042. return s
  20043. }
  20044. // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.
  20045. func (s *TrainingJob) SetEnableNetworkIsolation(v bool) *TrainingJob {
  20046. s.EnableNetworkIsolation = &v
  20047. return s
  20048. }
  20049. // SetFailureReason sets the FailureReason field's value.
  20050. func (s *TrainingJob) SetFailureReason(v string) *TrainingJob {
  20051. s.FailureReason = &v
  20052. return s
  20053. }
  20054. // SetFinalMetricDataList sets the FinalMetricDataList field's value.
  20055. func (s *TrainingJob) SetFinalMetricDataList(v []*MetricData) *TrainingJob {
  20056. s.FinalMetricDataList = v
  20057. return s
  20058. }
  20059. // SetHyperParameters sets the HyperParameters field's value.
  20060. func (s *TrainingJob) SetHyperParameters(v map[string]*string) *TrainingJob {
  20061. s.HyperParameters = v
  20062. return s
  20063. }
  20064. // SetInputDataConfig sets the InputDataConfig field's value.
  20065. func (s *TrainingJob) SetInputDataConfig(v []*Channel) *TrainingJob {
  20066. s.InputDataConfig = v
  20067. return s
  20068. }
  20069. // SetLabelingJobArn sets the LabelingJobArn field's value.
  20070. func (s *TrainingJob) SetLabelingJobArn(v string) *TrainingJob {
  20071. s.LabelingJobArn = &v
  20072. return s
  20073. }
  20074. // SetLastModifiedTime sets the LastModifiedTime field's value.
  20075. func (s *TrainingJob) SetLastModifiedTime(v time.Time) *TrainingJob {
  20076. s.LastModifiedTime = &v
  20077. return s
  20078. }
  20079. // SetModelArtifacts sets the ModelArtifacts field's value.
  20080. func (s *TrainingJob) SetModelArtifacts(v *ModelArtifacts) *TrainingJob {
  20081. s.ModelArtifacts = v
  20082. return s
  20083. }
  20084. // SetOutputDataConfig sets the OutputDataConfig field's value.
  20085. func (s *TrainingJob) SetOutputDataConfig(v *OutputDataConfig) *TrainingJob {
  20086. s.OutputDataConfig = v
  20087. return s
  20088. }
  20089. // SetResourceConfig sets the ResourceConfig field's value.
  20090. func (s *TrainingJob) SetResourceConfig(v *ResourceConfig) *TrainingJob {
  20091. s.ResourceConfig = v
  20092. return s
  20093. }
  20094. // SetRoleArn sets the RoleArn field's value.
  20095. func (s *TrainingJob) SetRoleArn(v string) *TrainingJob {
  20096. s.RoleArn = &v
  20097. return s
  20098. }
  20099. // SetSecondaryStatus sets the SecondaryStatus field's value.
  20100. func (s *TrainingJob) SetSecondaryStatus(v string) *TrainingJob {
  20101. s.SecondaryStatus = &v
  20102. return s
  20103. }
  20104. // SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value.
  20105. func (s *TrainingJob) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *TrainingJob {
  20106. s.SecondaryStatusTransitions = v
  20107. return s
  20108. }
  20109. // SetStoppingCondition sets the StoppingCondition field's value.
  20110. func (s *TrainingJob) SetStoppingCondition(v *StoppingCondition) *TrainingJob {
  20111. s.StoppingCondition = v
  20112. return s
  20113. }
  20114. // SetTags sets the Tags field's value.
  20115. func (s *TrainingJob) SetTags(v []*Tag) *TrainingJob {
  20116. s.Tags = v
  20117. return s
  20118. }
  20119. // SetTrainingEndTime sets the TrainingEndTime field's value.
  20120. func (s *TrainingJob) SetTrainingEndTime(v time.Time) *TrainingJob {
  20121. s.TrainingEndTime = &v
  20122. return s
  20123. }
  20124. // SetTrainingJobArn sets the TrainingJobArn field's value.
  20125. func (s *TrainingJob) SetTrainingJobArn(v string) *TrainingJob {
  20126. s.TrainingJobArn = &v
  20127. return s
  20128. }
  20129. // SetTrainingJobName sets the TrainingJobName field's value.
  20130. func (s *TrainingJob) SetTrainingJobName(v string) *TrainingJob {
  20131. s.TrainingJobName = &v
  20132. return s
  20133. }
  20134. // SetTrainingJobStatus sets the TrainingJobStatus field's value.
  20135. func (s *TrainingJob) SetTrainingJobStatus(v string) *TrainingJob {
  20136. s.TrainingJobStatus = &v
  20137. return s
  20138. }
  20139. // SetTrainingStartTime sets the TrainingStartTime field's value.
  20140. func (s *TrainingJob) SetTrainingStartTime(v time.Time) *TrainingJob {
  20141. s.TrainingStartTime = &v
  20142. return s
  20143. }
  20144. // SetTuningJobArn sets the TuningJobArn field's value.
  20145. func (s *TrainingJob) SetTuningJobArn(v string) *TrainingJob {
  20146. s.TuningJobArn = &v
  20147. return s
  20148. }
  20149. // SetVpcConfig sets the VpcConfig field's value.
  20150. func (s *TrainingJob) SetVpcConfig(v *VpcConfig) *TrainingJob {
  20151. s.VpcConfig = v
  20152. return s
  20153. }
  20154. // Defines the input needed to run a training job using the algorithm.
  20155. type TrainingJobDefinition struct {
  20156. _ struct{} `type:"structure"`
  20157. // The hyperparameters used for the training job.
  20158. HyperParameters map[string]*string `type:"map"`
  20159. // An array of Channel objects, each of which specifies an input source.
  20160. //
  20161. // InputDataConfig is a required field
  20162. InputDataConfig []*Channel `min:"1" type:"list" required:"true"`
  20163. // the path to the S3 bucket where you want to store model artifacts. Amazon
  20164. // SageMaker creates subfolders for the artifacts.
  20165. //
  20166. // OutputDataConfig is a required field
  20167. OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
  20168. // The resources, including the ML compute instances and ML storage volumes,
  20169. // to use for model training.
  20170. //
  20171. // ResourceConfig is a required field
  20172. ResourceConfig *ResourceConfig `type:"structure" required:"true"`
  20173. // Sets a duration for training. Use this parameter to cap model training costs.
  20174. //
  20175. // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which
  20176. // delays job termination for 120 seconds. Algorithms might use this 120-second
  20177. // window to save the model artifacts.
  20178. //
  20179. // StoppingCondition is a required field
  20180. StoppingCondition *StoppingCondition `type:"structure" required:"true"`
  20181. // The input mode used by the algorithm for the training job. For the input
  20182. // modes that Amazon SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
  20183. //
  20184. // If an algorithm supports the File input mode, Amazon SageMaker downloads
  20185. // the training data from S3 to the provisioned ML storage Volume, and mounts
  20186. // the directory to docker volume for training container. If an algorithm supports
  20187. // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the
  20188. // container.
  20189. //
  20190. // TrainingInputMode is a required field
  20191. TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"`
  20192. }
  20193. // String returns the string representation
  20194. func (s TrainingJobDefinition) String() string {
  20195. return awsutil.Prettify(s)
  20196. }
  20197. // GoString returns the string representation
  20198. func (s TrainingJobDefinition) GoString() string {
  20199. return s.String()
  20200. }
  20201. // Validate inspects the fields of the type to determine if they are valid.
  20202. func (s *TrainingJobDefinition) Validate() error {
  20203. invalidParams := request.ErrInvalidParams{Context: "TrainingJobDefinition"}
  20204. if s.InputDataConfig == nil {
  20205. invalidParams.Add(request.NewErrParamRequired("InputDataConfig"))
  20206. }
  20207. if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 {
  20208. invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1))
  20209. }
  20210. if s.OutputDataConfig == nil {
  20211. invalidParams.Add(request.NewErrParamRequired("OutputDataConfig"))
  20212. }
  20213. if s.ResourceConfig == nil {
  20214. invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
  20215. }
  20216. if s.StoppingCondition == nil {
  20217. invalidParams.Add(request.NewErrParamRequired("StoppingCondition"))
  20218. }
  20219. if s.TrainingInputMode == nil {
  20220. invalidParams.Add(request.NewErrParamRequired("TrainingInputMode"))
  20221. }
  20222. if s.InputDataConfig != nil {
  20223. for i, v := range s.InputDataConfig {
  20224. if v == nil {
  20225. continue
  20226. }
  20227. if err := v.Validate(); err != nil {
  20228. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams))
  20229. }
  20230. }
  20231. }
  20232. if s.OutputDataConfig != nil {
  20233. if err := s.OutputDataConfig.Validate(); err != nil {
  20234. invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams))
  20235. }
  20236. }
  20237. if s.ResourceConfig != nil {
  20238. if err := s.ResourceConfig.Validate(); err != nil {
  20239. invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
  20240. }
  20241. }
  20242. if s.StoppingCondition != nil {
  20243. if err := s.StoppingCondition.Validate(); err != nil {
  20244. invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams))
  20245. }
  20246. }
  20247. if invalidParams.Len() > 0 {
  20248. return invalidParams
  20249. }
  20250. return nil
  20251. }
  20252. // SetHyperParameters sets the HyperParameters field's value.
  20253. func (s *TrainingJobDefinition) SetHyperParameters(v map[string]*string) *TrainingJobDefinition {
  20254. s.HyperParameters = v
  20255. return s
  20256. }
  20257. // SetInputDataConfig sets the InputDataConfig field's value.
  20258. func (s *TrainingJobDefinition) SetInputDataConfig(v []*Channel) *TrainingJobDefinition {
  20259. s.InputDataConfig = v
  20260. return s
  20261. }
  20262. // SetOutputDataConfig sets the OutputDataConfig field's value.
  20263. func (s *TrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *TrainingJobDefinition {
  20264. s.OutputDataConfig = v
  20265. return s
  20266. }
  20267. // SetResourceConfig sets the ResourceConfig field's value.
  20268. func (s *TrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *TrainingJobDefinition {
  20269. s.ResourceConfig = v
  20270. return s
  20271. }
  20272. // SetStoppingCondition sets the StoppingCondition field's value.
  20273. func (s *TrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *TrainingJobDefinition {
  20274. s.StoppingCondition = v
  20275. return s
  20276. }
  20277. // SetTrainingInputMode sets the TrainingInputMode field's value.
  20278. func (s *TrainingJobDefinition) SetTrainingInputMode(v string) *TrainingJobDefinition {
  20279. s.TrainingInputMode = &v
  20280. return s
  20281. }
  20282. // The numbers of training jobs launched by a hyperparameter tuning job, categorized
  20283. // by status.
  20284. type TrainingJobStatusCounters struct {
  20285. _ struct{} `type:"structure"`
  20286. // The number of completed training jobs launched by the hyperparameter tuning
  20287. // job.
  20288. Completed *int64 `type:"integer"`
  20289. // The number of in-progress training jobs launched by a hyperparameter tuning
  20290. // job.
  20291. InProgress *int64 `type:"integer"`
  20292. // The number of training jobs that failed and can't be retried. A failed training
  20293. // job can't be retried if it failed because a client error occurred.
  20294. NonRetryableError *int64 `type:"integer"`
  20295. // The number of training jobs that failed, but can be retried. A failed training
  20296. // job can be retried only if it failed because an internal service error occurred.
  20297. RetryableError *int64 `type:"integer"`
  20298. // The number of training jobs launched by a hyperparameter tuning job that
  20299. // were manually stopped.
  20300. Stopped *int64 `type:"integer"`
  20301. }
  20302. // String returns the string representation
  20303. func (s TrainingJobStatusCounters) String() string {
  20304. return awsutil.Prettify(s)
  20305. }
  20306. // GoString returns the string representation
  20307. func (s TrainingJobStatusCounters) GoString() string {
  20308. return s.String()
  20309. }
  20310. // SetCompleted sets the Completed field's value.
  20311. func (s *TrainingJobStatusCounters) SetCompleted(v int64) *TrainingJobStatusCounters {
  20312. s.Completed = &v
  20313. return s
  20314. }
  20315. // SetInProgress sets the InProgress field's value.
  20316. func (s *TrainingJobStatusCounters) SetInProgress(v int64) *TrainingJobStatusCounters {
  20317. s.InProgress = &v
  20318. return s
  20319. }
  20320. // SetNonRetryableError sets the NonRetryableError field's value.
  20321. func (s *TrainingJobStatusCounters) SetNonRetryableError(v int64) *TrainingJobStatusCounters {
  20322. s.NonRetryableError = &v
  20323. return s
  20324. }
  20325. // SetRetryableError sets the RetryableError field's value.
  20326. func (s *TrainingJobStatusCounters) SetRetryableError(v int64) *TrainingJobStatusCounters {
  20327. s.RetryableError = &v
  20328. return s
  20329. }
  20330. // SetStopped sets the Stopped field's value.
  20331. func (s *TrainingJobStatusCounters) SetStopped(v int64) *TrainingJobStatusCounters {
  20332. s.Stopped = &v
  20333. return s
  20334. }
  20335. // Provides summary information about a training job.
  20336. type TrainingJobSummary struct {
  20337. _ struct{} `type:"structure"`
  20338. // A timestamp that shows when the training job was created.
  20339. //
  20340. // CreationTime is a required field
  20341. CreationTime *time.Time `type:"timestamp" required:"true"`
  20342. // Timestamp when the training job was last modified.
  20343. LastModifiedTime *time.Time `type:"timestamp"`
  20344. // A timestamp that shows when the training job ended. This field is set only
  20345. // if the training job has one of the terminal statuses (Completed, Failed,
  20346. // or Stopped).
  20347. TrainingEndTime *time.Time `type:"timestamp"`
  20348. // The Amazon Resource Name (ARN) of the training job.
  20349. //
  20350. // TrainingJobArn is a required field
  20351. TrainingJobArn *string `type:"string" required:"true"`
  20352. // The name of the training job that you want a summary for.
  20353. //
  20354. // TrainingJobName is a required field
  20355. TrainingJobName *string `min:"1" type:"string" required:"true"`
  20356. // The status of the training job.
  20357. //
  20358. // TrainingJobStatus is a required field
  20359. TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"`
  20360. }
  20361. // String returns the string representation
  20362. func (s TrainingJobSummary) String() string {
  20363. return awsutil.Prettify(s)
  20364. }
  20365. // GoString returns the string representation
  20366. func (s TrainingJobSummary) GoString() string {
  20367. return s.String()
  20368. }
  20369. // SetCreationTime sets the CreationTime field's value.
  20370. func (s *TrainingJobSummary) SetCreationTime(v time.Time) *TrainingJobSummary {
  20371. s.CreationTime = &v
  20372. return s
  20373. }
  20374. // SetLastModifiedTime sets the LastModifiedTime field's value.
  20375. func (s *TrainingJobSummary) SetLastModifiedTime(v time.Time) *TrainingJobSummary {
  20376. s.LastModifiedTime = &v
  20377. return s
  20378. }
  20379. // SetTrainingEndTime sets the TrainingEndTime field's value.
  20380. func (s *TrainingJobSummary) SetTrainingEndTime(v time.Time) *TrainingJobSummary {
  20381. s.TrainingEndTime = &v
  20382. return s
  20383. }
  20384. // SetTrainingJobArn sets the TrainingJobArn field's value.
  20385. func (s *TrainingJobSummary) SetTrainingJobArn(v string) *TrainingJobSummary {
  20386. s.TrainingJobArn = &v
  20387. return s
  20388. }
  20389. // SetTrainingJobName sets the TrainingJobName field's value.
  20390. func (s *TrainingJobSummary) SetTrainingJobName(v string) *TrainingJobSummary {
  20391. s.TrainingJobName = &v
  20392. return s
  20393. }
  20394. // SetTrainingJobStatus sets the TrainingJobStatus field's value.
  20395. func (s *TrainingJobSummary) SetTrainingJobStatus(v string) *TrainingJobSummary {
  20396. s.TrainingJobStatus = &v
  20397. return s
  20398. }
  20399. // Defines how the algorithm is used for a training job.
  20400. type TrainingSpecification struct {
  20401. _ struct{} `type:"structure"`
  20402. // A list of MetricDefinition objects, which are used for parsing metrics generated
  20403. // by the algorithm.
  20404. MetricDefinitions []*MetricDefinition `type:"list"`
  20405. // A list of the HyperParameterSpecification objects, that define the supported
  20406. // hyperparameters. This is required if the algorithm supports automatic model
  20407. // tuning.>
  20408. SupportedHyperParameters []*HyperParameterSpecification `type:"list"`
  20409. // A list of the instance types that this algorithm can use for training.
  20410. //
  20411. // SupportedTrainingInstanceTypes is a required field
  20412. SupportedTrainingInstanceTypes []*string `type:"list" required:"true"`
  20413. // A list of the metrics that the algorithm emits that can be used as the objective
  20414. // metric in a hyperparameter tuning job.
  20415. SupportedTuningJobObjectiveMetrics []*HyperParameterTuningJobObjective `type:"list"`
  20416. // Indicates whether the algorithm supports distributed training. If set to
  20417. // false, buyers can’t request more than one instance during training.
  20418. SupportsDistributedTraining *bool `type:"boolean"`
  20419. // A list of ChannelSpecification objects, which specify the input sources to
  20420. // be used by the algorithm.
  20421. //
  20422. // TrainingChannels is a required field
  20423. TrainingChannels []*ChannelSpecification `min:"1" type:"list" required:"true"`
  20424. // The Amazon ECR registry path of the Docker image that contains the training
  20425. // algorithm.
  20426. //
  20427. // TrainingImage is a required field
  20428. TrainingImage *string `type:"string" required:"true"`
  20429. // An MD5 hash of the training algorithm that identifies the Docker image used
  20430. // for training.
  20431. TrainingImageDigest *string `type:"string"`
  20432. }
  20433. // String returns the string representation
  20434. func (s TrainingSpecification) String() string {
  20435. return awsutil.Prettify(s)
  20436. }
  20437. // GoString returns the string representation
  20438. func (s TrainingSpecification) GoString() string {
  20439. return s.String()
  20440. }
  20441. // Validate inspects the fields of the type to determine if they are valid.
  20442. func (s *TrainingSpecification) Validate() error {
  20443. invalidParams := request.ErrInvalidParams{Context: "TrainingSpecification"}
  20444. if s.SupportedTrainingInstanceTypes == nil {
  20445. invalidParams.Add(request.NewErrParamRequired("SupportedTrainingInstanceTypes"))
  20446. }
  20447. if s.TrainingChannels == nil {
  20448. invalidParams.Add(request.NewErrParamRequired("TrainingChannels"))
  20449. }
  20450. if s.TrainingChannels != nil && len(s.TrainingChannels) < 1 {
  20451. invalidParams.Add(request.NewErrParamMinLen("TrainingChannels", 1))
  20452. }
  20453. if s.TrainingImage == nil {
  20454. invalidParams.Add(request.NewErrParamRequired("TrainingImage"))
  20455. }
  20456. if s.MetricDefinitions != nil {
  20457. for i, v := range s.MetricDefinitions {
  20458. if v == nil {
  20459. continue
  20460. }
  20461. if err := v.Validate(); err != nil {
  20462. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams))
  20463. }
  20464. }
  20465. }
  20466. if s.SupportedHyperParameters != nil {
  20467. for i, v := range s.SupportedHyperParameters {
  20468. if v == nil {
  20469. continue
  20470. }
  20471. if err := v.Validate(); err != nil {
  20472. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedHyperParameters", i), err.(request.ErrInvalidParams))
  20473. }
  20474. }
  20475. }
  20476. if s.SupportedTuningJobObjectiveMetrics != nil {
  20477. for i, v := range s.SupportedTuningJobObjectiveMetrics {
  20478. if v == nil {
  20479. continue
  20480. }
  20481. if err := v.Validate(); err != nil {
  20482. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedTuningJobObjectiveMetrics", i), err.(request.ErrInvalidParams))
  20483. }
  20484. }
  20485. }
  20486. if s.TrainingChannels != nil {
  20487. for i, v := range s.TrainingChannels {
  20488. if v == nil {
  20489. continue
  20490. }
  20491. if err := v.Validate(); err != nil {
  20492. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TrainingChannels", i), err.(request.ErrInvalidParams))
  20493. }
  20494. }
  20495. }
  20496. if invalidParams.Len() > 0 {
  20497. return invalidParams
  20498. }
  20499. return nil
  20500. }
  20501. // SetMetricDefinitions sets the MetricDefinitions field's value.
  20502. func (s *TrainingSpecification) SetMetricDefinitions(v []*MetricDefinition) *TrainingSpecification {
  20503. s.MetricDefinitions = v
  20504. return s
  20505. }
  20506. // SetSupportedHyperParameters sets the SupportedHyperParameters field's value.
  20507. func (s *TrainingSpecification) SetSupportedHyperParameters(v []*HyperParameterSpecification) *TrainingSpecification {
  20508. s.SupportedHyperParameters = v
  20509. return s
  20510. }
  20511. // SetSupportedTrainingInstanceTypes sets the SupportedTrainingInstanceTypes field's value.
  20512. func (s *TrainingSpecification) SetSupportedTrainingInstanceTypes(v []*string) *TrainingSpecification {
  20513. s.SupportedTrainingInstanceTypes = v
  20514. return s
  20515. }
  20516. // SetSupportedTuningJobObjectiveMetrics sets the SupportedTuningJobObjectiveMetrics field's value.
  20517. func (s *TrainingSpecification) SetSupportedTuningJobObjectiveMetrics(v []*HyperParameterTuningJobObjective) *TrainingSpecification {
  20518. s.SupportedTuningJobObjectiveMetrics = v
  20519. return s
  20520. }
  20521. // SetSupportsDistributedTraining sets the SupportsDistributedTraining field's value.
  20522. func (s *TrainingSpecification) SetSupportsDistributedTraining(v bool) *TrainingSpecification {
  20523. s.SupportsDistributedTraining = &v
  20524. return s
  20525. }
  20526. // SetTrainingChannels sets the TrainingChannels field's value.
  20527. func (s *TrainingSpecification) SetTrainingChannels(v []*ChannelSpecification) *TrainingSpecification {
  20528. s.TrainingChannels = v
  20529. return s
  20530. }
  20531. // SetTrainingImage sets the TrainingImage field's value.
  20532. func (s *TrainingSpecification) SetTrainingImage(v string) *TrainingSpecification {
  20533. s.TrainingImage = &v
  20534. return s
  20535. }
  20536. // SetTrainingImageDigest sets the TrainingImageDigest field's value.
  20537. func (s *TrainingSpecification) SetTrainingImageDigest(v string) *TrainingSpecification {
  20538. s.TrainingImageDigest = &v
  20539. return s
  20540. }
  20541. // Describes the location of the channel data.
  20542. type TransformDataSource struct {
  20543. _ struct{} `type:"structure"`
  20544. // The S3 location of the data source that is associated with a channel.
  20545. //
  20546. // S3DataSource is a required field
  20547. S3DataSource *TransformS3DataSource `type:"structure" required:"true"`
  20548. }
  20549. // String returns the string representation
  20550. func (s TransformDataSource) String() string {
  20551. return awsutil.Prettify(s)
  20552. }
  20553. // GoString returns the string representation
  20554. func (s TransformDataSource) GoString() string {
  20555. return s.String()
  20556. }
  20557. // Validate inspects the fields of the type to determine if they are valid.
  20558. func (s *TransformDataSource) Validate() error {
  20559. invalidParams := request.ErrInvalidParams{Context: "TransformDataSource"}
  20560. if s.S3DataSource == nil {
  20561. invalidParams.Add(request.NewErrParamRequired("S3DataSource"))
  20562. }
  20563. if s.S3DataSource != nil {
  20564. if err := s.S3DataSource.Validate(); err != nil {
  20565. invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams))
  20566. }
  20567. }
  20568. if invalidParams.Len() > 0 {
  20569. return invalidParams
  20570. }
  20571. return nil
  20572. }
  20573. // SetS3DataSource sets the S3DataSource field's value.
  20574. func (s *TransformDataSource) SetS3DataSource(v *TransformS3DataSource) *TransformDataSource {
  20575. s.S3DataSource = v
  20576. return s
  20577. }
  20578. // Describes the input source of a transform job and the way the transform job
  20579. // consumes it.
  20580. type TransformInput struct {
  20581. _ struct{} `type:"structure"`
  20582. // If your transform data is compressed, specify the compression type. Amazon
  20583. // SageMaker automatically decompresses the data for the transform job accordingly.
  20584. // The default value is None.
  20585. CompressionType *string `type:"string" enum:"CompressionType"`
  20586. // The multipurpose internet mail extension (MIME) type of the data. Amazon
  20587. // SageMaker uses the MIME type with each http call to transfer data to the
  20588. // transform job.
  20589. ContentType *string `type:"string"`
  20590. // Describes the location of the channel data, which is, the S3 location of
  20591. // the input data that the model can consume.
  20592. //
  20593. // DataSource is a required field
  20594. DataSource *TransformDataSource `type:"structure" required:"true"`
  20595. // The method to use to split the transform job's data into smaller batches.
  20596. // If you don't want to split the data, specify None. If you want to split records
  20597. // on a newline character boundary, specify Line. To split records according
  20598. // to the RecordIO format, specify RecordIO. The default value is None.
  20599. //
  20600. // Amazon SageMaker sends the maximum number of records per batch in each request
  20601. // up to the MaxPayloadInMB limit. For more information, see RecordIO data format
  20602. // (http://mxnet.io/architecture/note_data_loading.html#data-format).
  20603. //
  20604. // For information about the RecordIO format, see Data Format (http://mxnet.io/architecture/note_data_loading.html#data-format).
  20605. SplitType *string `type:"string" enum:"SplitType"`
  20606. }
  20607. // String returns the string representation
  20608. func (s TransformInput) String() string {
  20609. return awsutil.Prettify(s)
  20610. }
  20611. // GoString returns the string representation
  20612. func (s TransformInput) GoString() string {
  20613. return s.String()
  20614. }
  20615. // Validate inspects the fields of the type to determine if they are valid.
  20616. func (s *TransformInput) Validate() error {
  20617. invalidParams := request.ErrInvalidParams{Context: "TransformInput"}
  20618. if s.DataSource == nil {
  20619. invalidParams.Add(request.NewErrParamRequired("DataSource"))
  20620. }
  20621. if s.DataSource != nil {
  20622. if err := s.DataSource.Validate(); err != nil {
  20623. invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams))
  20624. }
  20625. }
  20626. if invalidParams.Len() > 0 {
  20627. return invalidParams
  20628. }
  20629. return nil
  20630. }
  20631. // SetCompressionType sets the CompressionType field's value.
  20632. func (s *TransformInput) SetCompressionType(v string) *TransformInput {
  20633. s.CompressionType = &v
  20634. return s
  20635. }
  20636. // SetContentType sets the ContentType field's value.
  20637. func (s *TransformInput) SetContentType(v string) *TransformInput {
  20638. s.ContentType = &v
  20639. return s
  20640. }
  20641. // SetDataSource sets the DataSource field's value.
  20642. func (s *TransformInput) SetDataSource(v *TransformDataSource) *TransformInput {
  20643. s.DataSource = v
  20644. return s
  20645. }
  20646. // SetSplitType sets the SplitType field's value.
  20647. func (s *TransformInput) SetSplitType(v string) *TransformInput {
  20648. s.SplitType = &v
  20649. return s
  20650. }
  20651. // Defines the input needed to run a transform job using the inference specification
  20652. // specified in the algorithm.
  20653. type TransformJobDefinition struct {
  20654. _ struct{} `type:"structure"`
  20655. // A string that determines the number of records included in a single mini-batch.
  20656. //
  20657. // SingleRecord means only one record is used per mini-batch. MultiRecord means
  20658. // a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB
  20659. // limit.
  20660. BatchStrategy *string `type:"string" enum:"BatchStrategy"`
  20661. // The environment variables to set in the Docker container. We support up to
  20662. // 16 key and values entries in the map.
  20663. Environment map[string]*string `type:"map"`
  20664. // The maximum number of parallel requests that can be sent to each instance
  20665. // in a transform job. The default value is 1.
  20666. MaxConcurrentTransforms *int64 `type:"integer"`
  20667. // The maximum payload size allowed, in MB. A payload is the data portion of
  20668. // a record (without metadata).
  20669. MaxPayloadInMB *int64 `type:"integer"`
  20670. // A description of the input source and the way the transform job consumes
  20671. // it.
  20672. //
  20673. // TransformInput is a required field
  20674. TransformInput *TransformInput `type:"structure" required:"true"`
  20675. // Identifies the Amazon S3 location where you want Amazon SageMaker to save
  20676. // the results from the transform job.
  20677. //
  20678. // TransformOutput is a required field
  20679. TransformOutput *TransformOutput `type:"structure" required:"true"`
  20680. // Identifies the ML compute instances for the transform job.
  20681. //
  20682. // TransformResources is a required field
  20683. TransformResources *TransformResources `type:"structure" required:"true"`
  20684. }
  20685. // String returns the string representation
  20686. func (s TransformJobDefinition) String() string {
  20687. return awsutil.Prettify(s)
  20688. }
  20689. // GoString returns the string representation
  20690. func (s TransformJobDefinition) GoString() string {
  20691. return s.String()
  20692. }
  20693. // Validate inspects the fields of the type to determine if they are valid.
  20694. func (s *TransformJobDefinition) Validate() error {
  20695. invalidParams := request.ErrInvalidParams{Context: "TransformJobDefinition"}
  20696. if s.TransformInput == nil {
  20697. invalidParams.Add(request.NewErrParamRequired("TransformInput"))
  20698. }
  20699. if s.TransformOutput == nil {
  20700. invalidParams.Add(request.NewErrParamRequired("TransformOutput"))
  20701. }
  20702. if s.TransformResources == nil {
  20703. invalidParams.Add(request.NewErrParamRequired("TransformResources"))
  20704. }
  20705. if s.TransformInput != nil {
  20706. if err := s.TransformInput.Validate(); err != nil {
  20707. invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams))
  20708. }
  20709. }
  20710. if s.TransformOutput != nil {
  20711. if err := s.TransformOutput.Validate(); err != nil {
  20712. invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams))
  20713. }
  20714. }
  20715. if s.TransformResources != nil {
  20716. if err := s.TransformResources.Validate(); err != nil {
  20717. invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams))
  20718. }
  20719. }
  20720. if invalidParams.Len() > 0 {
  20721. return invalidParams
  20722. }
  20723. return nil
  20724. }
  20725. // SetBatchStrategy sets the BatchStrategy field's value.
  20726. func (s *TransformJobDefinition) SetBatchStrategy(v string) *TransformJobDefinition {
  20727. s.BatchStrategy = &v
  20728. return s
  20729. }
  20730. // SetEnvironment sets the Environment field's value.
  20731. func (s *TransformJobDefinition) SetEnvironment(v map[string]*string) *TransformJobDefinition {
  20732. s.Environment = v
  20733. return s
  20734. }
  20735. // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value.
  20736. func (s *TransformJobDefinition) SetMaxConcurrentTransforms(v int64) *TransformJobDefinition {
  20737. s.MaxConcurrentTransforms = &v
  20738. return s
  20739. }
  20740. // SetMaxPayloadInMB sets the MaxPayloadInMB field's value.
  20741. func (s *TransformJobDefinition) SetMaxPayloadInMB(v int64) *TransformJobDefinition {
  20742. s.MaxPayloadInMB = &v
  20743. return s
  20744. }
  20745. // SetTransformInput sets the TransformInput field's value.
  20746. func (s *TransformJobDefinition) SetTransformInput(v *TransformInput) *TransformJobDefinition {
  20747. s.TransformInput = v
  20748. return s
  20749. }
  20750. // SetTransformOutput sets the TransformOutput field's value.
  20751. func (s *TransformJobDefinition) SetTransformOutput(v *TransformOutput) *TransformJobDefinition {
  20752. s.TransformOutput = v
  20753. return s
  20754. }
  20755. // SetTransformResources sets the TransformResources field's value.
  20756. func (s *TransformJobDefinition) SetTransformResources(v *TransformResources) *TransformJobDefinition {
  20757. s.TransformResources = v
  20758. return s
  20759. }
  20760. // Provides a summary of a transform job. Multiple TransformJobSummary objects
  20761. // are returned as a list after in response to a ListTransformJobs call.
  20762. type TransformJobSummary struct {
  20763. _ struct{} `type:"structure"`
  20764. // A timestamp that shows when the transform Job was created.
  20765. //
  20766. // CreationTime is a required field
  20767. CreationTime *time.Time `type:"timestamp" required:"true"`
  20768. // If the transform job failed, the reason it failed.
  20769. FailureReason *string `type:"string"`
  20770. // Indicates when the transform job was last modified.
  20771. LastModifiedTime *time.Time `type:"timestamp"`
  20772. // Indicates when the transform job ends on compute instances. For successful
  20773. // jobs and stopped jobs, this is the exact time recorded after the results
  20774. // are uploaded. For failed jobs, this is when Amazon SageMaker detected that
  20775. // the job failed.
  20776. TransformEndTime *time.Time `type:"timestamp"`
  20777. // The Amazon Resource Name (ARN) of the transform job.
  20778. //
  20779. // TransformJobArn is a required field
  20780. TransformJobArn *string `type:"string" required:"true"`
  20781. // The name of the transform job.
  20782. //
  20783. // TransformJobName is a required field
  20784. TransformJobName *string `min:"1" type:"string" required:"true"`
  20785. // The status of the transform job.
  20786. //
  20787. // TransformJobStatus is a required field
  20788. TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"`
  20789. }
  20790. // String returns the string representation
  20791. func (s TransformJobSummary) String() string {
  20792. return awsutil.Prettify(s)
  20793. }
  20794. // GoString returns the string representation
  20795. func (s TransformJobSummary) GoString() string {
  20796. return s.String()
  20797. }
  20798. // SetCreationTime sets the CreationTime field's value.
  20799. func (s *TransformJobSummary) SetCreationTime(v time.Time) *TransformJobSummary {
  20800. s.CreationTime = &v
  20801. return s
  20802. }
  20803. // SetFailureReason sets the FailureReason field's value.
  20804. func (s *TransformJobSummary) SetFailureReason(v string) *TransformJobSummary {
  20805. s.FailureReason = &v
  20806. return s
  20807. }
  20808. // SetLastModifiedTime sets the LastModifiedTime field's value.
  20809. func (s *TransformJobSummary) SetLastModifiedTime(v time.Time) *TransformJobSummary {
  20810. s.LastModifiedTime = &v
  20811. return s
  20812. }
  20813. // SetTransformEndTime sets the TransformEndTime field's value.
  20814. func (s *TransformJobSummary) SetTransformEndTime(v time.Time) *TransformJobSummary {
  20815. s.TransformEndTime = &v
  20816. return s
  20817. }
  20818. // SetTransformJobArn sets the TransformJobArn field's value.
  20819. func (s *TransformJobSummary) SetTransformJobArn(v string) *TransformJobSummary {
  20820. s.TransformJobArn = &v
  20821. return s
  20822. }
  20823. // SetTransformJobName sets the TransformJobName field's value.
  20824. func (s *TransformJobSummary) SetTransformJobName(v string) *TransformJobSummary {
  20825. s.TransformJobName = &v
  20826. return s
  20827. }
  20828. // SetTransformJobStatus sets the TransformJobStatus field's value.
  20829. func (s *TransformJobSummary) SetTransformJobStatus(v string) *TransformJobSummary {
  20830. s.TransformJobStatus = &v
  20831. return s
  20832. }
  20833. // Describes the results of a transform job output.
  20834. type TransformOutput struct {
  20835. _ struct{} `type:"structure"`
  20836. // The MIME type used to specify the output data. Amazon SageMaker uses the
  20837. // MIME type with each http call to transfer data from the transform job.
  20838. Accept *string `type:"string"`
  20839. // Defines how to assemble the results of the transform job as a single S3 object.
  20840. // Choose a format that is most convenient to you. To concatenate the results
  20841. // in binary format, specify None. To add a newline character at the end of
  20842. // every transformed record, specify Line.
  20843. AssembleWith *string `type:"string" enum:"AssemblyType"`
  20844. // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
  20845. // encrypt the model artifacts at rest using Amazon S3 server-side encryption.
  20846. // The KmsKeyId can be any of the following formats:
  20847. //
  20848. // * // KMS Key ID
  20849. //
  20850. // "1234abcd-12ab-34cd-56ef-1234567890ab"
  20851. //
  20852. // * // Amazon Resource Name (ARN) of a KMS Key
  20853. //
  20854. // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
  20855. //
  20856. // * // KMS Key Alias
  20857. //
  20858. // "alias/ExampleAlias"
  20859. //
  20860. // * // Amazon Resource Name (ARN) of a KMS Key Alias
  20861. //
  20862. // "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
  20863. //
  20864. // If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS
  20865. // key for Amazon S3 for your role's account. For more information, see KMS-Managed
  20866. // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html)
  20867. // in the Amazon Simple Storage Service Developer Guide.
  20868. //
  20869. // The KMS key policy must grant permission to the IAM role that you specify
  20870. // in your CreateTramsformJob request. For more information, see Using Key Policies
  20871. // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html)
  20872. // in the AWS Key Management Service Developer Guide.
  20873. KmsKeyId *string `type:"string"`
  20874. // The Amazon S3 path where you want Amazon SageMaker to store the results of
  20875. // the transform job. For example, s3://bucket-name/key-name-prefix.
  20876. //
  20877. // For every S3 object used as input for the transform job, the transformed
  20878. // data is stored in a corresponding subfolder in the location under the output
  20879. // prefix. For example, for the input data s3://bucket-name/input-name-prefix/dataset01/data.csv
  20880. // the transformed data is stored at s3://bucket-name/key-name-prefix/dataset01/.
  20881. // This is based on the original name, as a series of .part files (.part0001,
  20882. // part0002, etc.).
  20883. //
  20884. // S3OutputPath is a required field
  20885. S3OutputPath *string `type:"string" required:"true"`
  20886. }
  20887. // String returns the string representation
  20888. func (s TransformOutput) String() string {
  20889. return awsutil.Prettify(s)
  20890. }
  20891. // GoString returns the string representation
  20892. func (s TransformOutput) GoString() string {
  20893. return s.String()
  20894. }
  20895. // Validate inspects the fields of the type to determine if they are valid.
  20896. func (s *TransformOutput) Validate() error {
  20897. invalidParams := request.ErrInvalidParams{Context: "TransformOutput"}
  20898. if s.S3OutputPath == nil {
  20899. invalidParams.Add(request.NewErrParamRequired("S3OutputPath"))
  20900. }
  20901. if invalidParams.Len() > 0 {
  20902. return invalidParams
  20903. }
  20904. return nil
  20905. }
  20906. // SetAccept sets the Accept field's value.
  20907. func (s *TransformOutput) SetAccept(v string) *TransformOutput {
  20908. s.Accept = &v
  20909. return s
  20910. }
  20911. // SetAssembleWith sets the AssembleWith field's value.
  20912. func (s *TransformOutput) SetAssembleWith(v string) *TransformOutput {
  20913. s.AssembleWith = &v
  20914. return s
  20915. }
  20916. // SetKmsKeyId sets the KmsKeyId field's value.
  20917. func (s *TransformOutput) SetKmsKeyId(v string) *TransformOutput {
  20918. s.KmsKeyId = &v
  20919. return s
  20920. }
  20921. // SetS3OutputPath sets the S3OutputPath field's value.
  20922. func (s *TransformOutput) SetS3OutputPath(v string) *TransformOutput {
  20923. s.S3OutputPath = &v
  20924. return s
  20925. }
  20926. // Describes the resources, including ML instance types and ML instance count,
  20927. // to use for transform job.
  20928. type TransformResources struct {
  20929. _ struct{} `type:"structure"`
  20930. // The number of ML compute instances to use in the transform job. For distributed
  20931. // transform, provide a value greater than 1. The default value is 1.
  20932. //
  20933. // InstanceCount is a required field
  20934. InstanceCount *int64 `min:"1" type:"integer" required:"true"`
  20935. // The ML compute instance type for the transform job. For using built-in algorithms
  20936. // to transform moderately sized datasets, ml.m4.xlarge or ml.m5.large should
  20937. // suffice. There is no default value for InstanceType.
  20938. //
  20939. // InstanceType is a required field
  20940. InstanceType *string `type:"string" required:"true" enum:"TransformInstanceType"`
  20941. // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
  20942. // encrypt data on the storage volume attached to the ML compute instance(s)
  20943. // that run the batch transform job. The VolumeKmsKeyId can be any of the following
  20944. // formats:
  20945. //
  20946. // * // KMS Key ID
  20947. //
  20948. // "1234abcd-12ab-34cd-56ef-1234567890ab"
  20949. //
  20950. // * // Amazon Resource Name (ARN) of a KMS Key
  20951. //
  20952. // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
  20953. VolumeKmsKeyId *string `type:"string"`
  20954. }
  20955. // String returns the string representation
  20956. func (s TransformResources) String() string {
  20957. return awsutil.Prettify(s)
  20958. }
  20959. // GoString returns the string representation
  20960. func (s TransformResources) GoString() string {
  20961. return s.String()
  20962. }
  20963. // Validate inspects the fields of the type to determine if they are valid.
  20964. func (s *TransformResources) Validate() error {
  20965. invalidParams := request.ErrInvalidParams{Context: "TransformResources"}
  20966. if s.InstanceCount == nil {
  20967. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  20968. }
  20969. if s.InstanceCount != nil && *s.InstanceCount < 1 {
  20970. invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1))
  20971. }
  20972. if s.InstanceType == nil {
  20973. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  20974. }
  20975. if invalidParams.Len() > 0 {
  20976. return invalidParams
  20977. }
  20978. return nil
  20979. }
  20980. // SetInstanceCount sets the InstanceCount field's value.
  20981. func (s *TransformResources) SetInstanceCount(v int64) *TransformResources {
  20982. s.InstanceCount = &v
  20983. return s
  20984. }
  20985. // SetInstanceType sets the InstanceType field's value.
  20986. func (s *TransformResources) SetInstanceType(v string) *TransformResources {
  20987. s.InstanceType = &v
  20988. return s
  20989. }
  20990. // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value.
  20991. func (s *TransformResources) SetVolumeKmsKeyId(v string) *TransformResources {
  20992. s.VolumeKmsKeyId = &v
  20993. return s
  20994. }
  20995. // Describes the S3 data source.
  20996. type TransformS3DataSource struct {
  20997. _ struct{} `type:"structure"`
  20998. // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker
  20999. // uses all objects with the specified key name prefix for batch transform.
  21000. //
  21001. // If you choose ManifestFile, S3Uri identifies an object that is a manifest
  21002. // file containing a list of object keys that you want Amazon SageMaker to use
  21003. // for batch transform.
  21004. //
  21005. // S3DataType is a required field
  21006. S3DataType *string `type:"string" required:"true" enum:"S3DataType"`
  21007. // Depending on the value specified for the S3DataType, identifies either a
  21008. // key name prefix or a manifest. For example:
  21009. //
  21010. // * A key name prefix might look like this: s3://bucketname/exampleprefix.
  21011. //
  21012. //
  21013. // * A manifest might look like this: s3://bucketname/example.manifest
  21014. //
  21015. // The manifest is an S3 object which is a JSON file with the following format:
  21016. //
  21017. //
  21018. // [
  21019. //
  21020. // {"prefix": "s3://customer_bucket/some/prefix/"},
  21021. //
  21022. // "relative/path/to/custdata-1",
  21023. //
  21024. // "relative/path/custdata-2",
  21025. //
  21026. // ...
  21027. //
  21028. // ]
  21029. //
  21030. // The preceding JSON matches the following S3Uris:
  21031. //
  21032. // s3://customer_bucket/some/prefix/relative/path/to/custdata-1
  21033. //
  21034. // s3://customer_bucket/some/prefix/relative/path/custdata-1
  21035. //
  21036. // ...
  21037. //
  21038. // The complete set of S3Uris in this manifest constitutes the input data for
  21039. // the channel for this datasource. The object that each S3Uris points to
  21040. // must be readable by the IAM role that Amazon SageMaker uses to perform
  21041. // tasks on your behalf.
  21042. //
  21043. // S3Uri is a required field
  21044. S3Uri *string `type:"string" required:"true"`
  21045. }
  21046. // String returns the string representation
  21047. func (s TransformS3DataSource) String() string {
  21048. return awsutil.Prettify(s)
  21049. }
  21050. // GoString returns the string representation
  21051. func (s TransformS3DataSource) GoString() string {
  21052. return s.String()
  21053. }
  21054. // Validate inspects the fields of the type to determine if they are valid.
  21055. func (s *TransformS3DataSource) Validate() error {
  21056. invalidParams := request.ErrInvalidParams{Context: "TransformS3DataSource"}
  21057. if s.S3DataType == nil {
  21058. invalidParams.Add(request.NewErrParamRequired("S3DataType"))
  21059. }
  21060. if s.S3Uri == nil {
  21061. invalidParams.Add(request.NewErrParamRequired("S3Uri"))
  21062. }
  21063. if invalidParams.Len() > 0 {
  21064. return invalidParams
  21065. }
  21066. return nil
  21067. }
  21068. // SetS3DataType sets the S3DataType field's value.
  21069. func (s *TransformS3DataSource) SetS3DataType(v string) *TransformS3DataSource {
  21070. s.S3DataType = &v
  21071. return s
  21072. }
  21073. // SetS3Uri sets the S3Uri field's value.
  21074. func (s *TransformS3DataSource) SetS3Uri(v string) *TransformS3DataSource {
  21075. s.S3Uri = &v
  21076. return s
  21077. }
  21078. // Represents an amount of money in United States dollars/
  21079. type USD struct {
  21080. _ struct{} `type:"structure"`
  21081. // The fractional portion, in cents, of the amount.
  21082. Cents *int64 `type:"integer"`
  21083. // The whole number of dollars in the amount.
  21084. Dollars *int64 `type:"integer"`
  21085. // Fractions of a cent, in tenths.
  21086. TenthFractionsOfACent *int64 `type:"integer"`
  21087. }
  21088. // String returns the string representation
  21089. func (s USD) String() string {
  21090. return awsutil.Prettify(s)
  21091. }
  21092. // GoString returns the string representation
  21093. func (s USD) GoString() string {
  21094. return s.String()
  21095. }
  21096. // SetCents sets the Cents field's value.
  21097. func (s *USD) SetCents(v int64) *USD {
  21098. s.Cents = &v
  21099. return s
  21100. }
  21101. // SetDollars sets the Dollars field's value.
  21102. func (s *USD) SetDollars(v int64) *USD {
  21103. s.Dollars = &v
  21104. return s
  21105. }
  21106. // SetTenthFractionsOfACent sets the TenthFractionsOfACent field's value.
  21107. func (s *USD) SetTenthFractionsOfACent(v int64) *USD {
  21108. s.TenthFractionsOfACent = &v
  21109. return s
  21110. }
  21111. // Provided configuration information for the worker UI for a labeling job.
  21112. type UiConfig struct {
  21113. _ struct{} `type:"structure"`
  21114. // The Amazon S3 bucket location of the UI template. For more information about
  21115. // the contents of a UI template, see Creating Your Custom Labeling Task Template
  21116. // (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-custom-templates-step2.html).
  21117. //
  21118. // UiTemplateS3Uri is a required field
  21119. UiTemplateS3Uri *string `type:"string" required:"true"`
  21120. }
  21121. // String returns the string representation
  21122. func (s UiConfig) String() string {
  21123. return awsutil.Prettify(s)
  21124. }
  21125. // GoString returns the string representation
  21126. func (s UiConfig) GoString() string {
  21127. return s.String()
  21128. }
  21129. // Validate inspects the fields of the type to determine if they are valid.
  21130. func (s *UiConfig) Validate() error {
  21131. invalidParams := request.ErrInvalidParams{Context: "UiConfig"}
  21132. if s.UiTemplateS3Uri == nil {
  21133. invalidParams.Add(request.NewErrParamRequired("UiTemplateS3Uri"))
  21134. }
  21135. if invalidParams.Len() > 0 {
  21136. return invalidParams
  21137. }
  21138. return nil
  21139. }
  21140. // SetUiTemplateS3Uri sets the UiTemplateS3Uri field's value.
  21141. func (s *UiConfig) SetUiTemplateS3Uri(v string) *UiConfig {
  21142. s.UiTemplateS3Uri = &v
  21143. return s
  21144. }
  21145. // The Liquid template for the worker user interface.
  21146. type UiTemplate struct {
  21147. _ struct{} `type:"structure"`
  21148. // The content of the Liquid template for the worker user interface.
  21149. //
  21150. // Content is a required field
  21151. Content *string `min:"1" type:"string" required:"true"`
  21152. }
  21153. // String returns the string representation
  21154. func (s UiTemplate) String() string {
  21155. return awsutil.Prettify(s)
  21156. }
  21157. // GoString returns the string representation
  21158. func (s UiTemplate) GoString() string {
  21159. return s.String()
  21160. }
  21161. // Validate inspects the fields of the type to determine if they are valid.
  21162. func (s *UiTemplate) Validate() error {
  21163. invalidParams := request.ErrInvalidParams{Context: "UiTemplate"}
  21164. if s.Content == nil {
  21165. invalidParams.Add(request.NewErrParamRequired("Content"))
  21166. }
  21167. if s.Content != nil && len(*s.Content) < 1 {
  21168. invalidParams.Add(request.NewErrParamMinLen("Content", 1))
  21169. }
  21170. if invalidParams.Len() > 0 {
  21171. return invalidParams
  21172. }
  21173. return nil
  21174. }
  21175. // SetContent sets the Content field's value.
  21176. func (s *UiTemplate) SetContent(v string) *UiTemplate {
  21177. s.Content = &v
  21178. return s
  21179. }
  21180. type UpdateCodeRepositoryInput struct {
  21181. _ struct{} `type:"structure"`
  21182. // The name of the Git repository to update.
  21183. //
  21184. // CodeRepositoryName is a required field
  21185. CodeRepositoryName *string `min:"1" type:"string" required:"true"`
  21186. // The configuration of the git repository, including the URL and the Amazon
  21187. // Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials
  21188. // used to access the repository. The secret must have a staging label of AWSCURRENT
  21189. // and must be in the following format:
  21190. //
  21191. // {"username": UserName, "password": Password}
  21192. GitConfig *GitConfigForUpdate `type:"structure"`
  21193. }
  21194. // String returns the string representation
  21195. func (s UpdateCodeRepositoryInput) String() string {
  21196. return awsutil.Prettify(s)
  21197. }
  21198. // GoString returns the string representation
  21199. func (s UpdateCodeRepositoryInput) GoString() string {
  21200. return s.String()
  21201. }
  21202. // Validate inspects the fields of the type to determine if they are valid.
  21203. func (s *UpdateCodeRepositoryInput) Validate() error {
  21204. invalidParams := request.ErrInvalidParams{Context: "UpdateCodeRepositoryInput"}
  21205. if s.CodeRepositoryName == nil {
  21206. invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName"))
  21207. }
  21208. if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 {
  21209. invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1))
  21210. }
  21211. if s.GitConfig != nil {
  21212. if err := s.GitConfig.Validate(); err != nil {
  21213. invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams))
  21214. }
  21215. }
  21216. if invalidParams.Len() > 0 {
  21217. return invalidParams
  21218. }
  21219. return nil
  21220. }
  21221. // SetCodeRepositoryName sets the CodeRepositoryName field's value.
  21222. func (s *UpdateCodeRepositoryInput) SetCodeRepositoryName(v string) *UpdateCodeRepositoryInput {
  21223. s.CodeRepositoryName = &v
  21224. return s
  21225. }
  21226. // SetGitConfig sets the GitConfig field's value.
  21227. func (s *UpdateCodeRepositoryInput) SetGitConfig(v *GitConfigForUpdate) *UpdateCodeRepositoryInput {
  21228. s.GitConfig = v
  21229. return s
  21230. }
  21231. type UpdateCodeRepositoryOutput struct {
  21232. _ struct{} `type:"structure"`
  21233. // The ARN of the Git repository.
  21234. //
  21235. // CodeRepositoryArn is a required field
  21236. CodeRepositoryArn *string `min:"1" type:"string" required:"true"`
  21237. }
  21238. // String returns the string representation
  21239. func (s UpdateCodeRepositoryOutput) String() string {
  21240. return awsutil.Prettify(s)
  21241. }
  21242. // GoString returns the string representation
  21243. func (s UpdateCodeRepositoryOutput) GoString() string {
  21244. return s.String()
  21245. }
  21246. // SetCodeRepositoryArn sets the CodeRepositoryArn field's value.
  21247. func (s *UpdateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *UpdateCodeRepositoryOutput {
  21248. s.CodeRepositoryArn = &v
  21249. return s
  21250. }
  21251. type UpdateEndpointInput struct {
  21252. _ struct{} `type:"structure"`
  21253. // The name of the new endpoint configuration.
  21254. //
  21255. // EndpointConfigName is a required field
  21256. EndpointConfigName *string `type:"string" required:"true"`
  21257. // The name of the endpoint whose configuration you want to update.
  21258. //
  21259. // EndpointName is a required field
  21260. EndpointName *string `type:"string" required:"true"`
  21261. }
  21262. // String returns the string representation
  21263. func (s UpdateEndpointInput) String() string {
  21264. return awsutil.Prettify(s)
  21265. }
  21266. // GoString returns the string representation
  21267. func (s UpdateEndpointInput) GoString() string {
  21268. return s.String()
  21269. }
  21270. // Validate inspects the fields of the type to determine if they are valid.
  21271. func (s *UpdateEndpointInput) Validate() error {
  21272. invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointInput"}
  21273. if s.EndpointConfigName == nil {
  21274. invalidParams.Add(request.NewErrParamRequired("EndpointConfigName"))
  21275. }
  21276. if s.EndpointName == nil {
  21277. invalidParams.Add(request.NewErrParamRequired("EndpointName"))
  21278. }
  21279. if invalidParams.Len() > 0 {
  21280. return invalidParams
  21281. }
  21282. return nil
  21283. }
  21284. // SetEndpointConfigName sets the EndpointConfigName field's value.
  21285. func (s *UpdateEndpointInput) SetEndpointConfigName(v string) *UpdateEndpointInput {
  21286. s.EndpointConfigName = &v
  21287. return s
  21288. }
  21289. // SetEndpointName sets the EndpointName field's value.
  21290. func (s *UpdateEndpointInput) SetEndpointName(v string) *UpdateEndpointInput {
  21291. s.EndpointName = &v
  21292. return s
  21293. }
  21294. type UpdateEndpointOutput struct {
  21295. _ struct{} `type:"structure"`
  21296. // The Amazon Resource Name (ARN) of the endpoint.
  21297. //
  21298. // EndpointArn is a required field
  21299. EndpointArn *string `min:"20" type:"string" required:"true"`
  21300. }
  21301. // String returns the string representation
  21302. func (s UpdateEndpointOutput) String() string {
  21303. return awsutil.Prettify(s)
  21304. }
  21305. // GoString returns the string representation
  21306. func (s UpdateEndpointOutput) GoString() string {
  21307. return s.String()
  21308. }
  21309. // SetEndpointArn sets the EndpointArn field's value.
  21310. func (s *UpdateEndpointOutput) SetEndpointArn(v string) *UpdateEndpointOutput {
  21311. s.EndpointArn = &v
  21312. return s
  21313. }
  21314. type UpdateEndpointWeightsAndCapacitiesInput struct {
  21315. _ struct{} `type:"structure"`
  21316. // An object that provides new capacity and weight values for a variant.
  21317. //
  21318. // DesiredWeightsAndCapacities is a required field
  21319. DesiredWeightsAndCapacities []*DesiredWeightAndCapacity `min:"1" type:"list" required:"true"`
  21320. // The name of an existing Amazon SageMaker endpoint.
  21321. //
  21322. // EndpointName is a required field
  21323. EndpointName *string `type:"string" required:"true"`
  21324. }
  21325. // String returns the string representation
  21326. func (s UpdateEndpointWeightsAndCapacitiesInput) String() string {
  21327. return awsutil.Prettify(s)
  21328. }
  21329. // GoString returns the string representation
  21330. func (s UpdateEndpointWeightsAndCapacitiesInput) GoString() string {
  21331. return s.String()
  21332. }
  21333. // Validate inspects the fields of the type to determine if they are valid.
  21334. func (s *UpdateEndpointWeightsAndCapacitiesInput) Validate() error {
  21335. invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointWeightsAndCapacitiesInput"}
  21336. if s.DesiredWeightsAndCapacities == nil {
  21337. invalidParams.Add(request.NewErrParamRequired("DesiredWeightsAndCapacities"))
  21338. }
  21339. if s.DesiredWeightsAndCapacities != nil && len(s.DesiredWeightsAndCapacities) < 1 {
  21340. invalidParams.Add(request.NewErrParamMinLen("DesiredWeightsAndCapacities", 1))
  21341. }
  21342. if s.EndpointName == nil {
  21343. invalidParams.Add(request.NewErrParamRequired("EndpointName"))
  21344. }
  21345. if s.DesiredWeightsAndCapacities != nil {
  21346. for i, v := range s.DesiredWeightsAndCapacities {
  21347. if v == nil {
  21348. continue
  21349. }
  21350. if err := v.Validate(); err != nil {
  21351. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DesiredWeightsAndCapacities", i), err.(request.ErrInvalidParams))
  21352. }
  21353. }
  21354. }
  21355. if invalidParams.Len() > 0 {
  21356. return invalidParams
  21357. }
  21358. return nil
  21359. }
  21360. // SetDesiredWeightsAndCapacities sets the DesiredWeightsAndCapacities field's value.
  21361. func (s *UpdateEndpointWeightsAndCapacitiesInput) SetDesiredWeightsAndCapacities(v []*DesiredWeightAndCapacity) *UpdateEndpointWeightsAndCapacitiesInput {
  21362. s.DesiredWeightsAndCapacities = v
  21363. return s
  21364. }
  21365. // SetEndpointName sets the EndpointName field's value.
  21366. func (s *UpdateEndpointWeightsAndCapacitiesInput) SetEndpointName(v string) *UpdateEndpointWeightsAndCapacitiesInput {
  21367. s.EndpointName = &v
  21368. return s
  21369. }
  21370. type UpdateEndpointWeightsAndCapacitiesOutput struct {
  21371. _ struct{} `type:"structure"`
  21372. // The Amazon Resource Name (ARN) of the updated endpoint.
  21373. //
  21374. // EndpointArn is a required field
  21375. EndpointArn *string `min:"20" type:"string" required:"true"`
  21376. }
  21377. // String returns the string representation
  21378. func (s UpdateEndpointWeightsAndCapacitiesOutput) String() string {
  21379. return awsutil.Prettify(s)
  21380. }
  21381. // GoString returns the string representation
  21382. func (s UpdateEndpointWeightsAndCapacitiesOutput) GoString() string {
  21383. return s.String()
  21384. }
  21385. // SetEndpointArn sets the EndpointArn field's value.
  21386. func (s *UpdateEndpointWeightsAndCapacitiesOutput) SetEndpointArn(v string) *UpdateEndpointWeightsAndCapacitiesOutput {
  21387. s.EndpointArn = &v
  21388. return s
  21389. }
  21390. type UpdateNotebookInstanceInput struct {
  21391. _ struct{} `type:"structure"`
  21392. // A list of the Elastic Inference (EI) instance types to associate with this
  21393. // notebook instance. Currently only one EI instance type can be associated
  21394. // with a notebook instance. For more information, see Using Elastic Inference
  21395. // in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html).
  21396. AcceleratorTypes []*string `type:"list"`
  21397. // An array of up to three Git repositories to associate with the notebook instance.
  21398. // These can be either the names of Git repositories stored as resources in
  21399. // your account, or the URL of Git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html)
  21400. // or in any other Git repository.. These repositories are cloned at the same
  21401. // level as the default repository of your notebook instance. For more information,
  21402. // see Associating Git Repositories with Amazon SageMaker Notebook Instances
  21403. // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  21404. AdditionalCodeRepositories []*string `type:"list"`
  21405. // The Git repository to associate with the notebook instance as its default
  21406. // code repository. This can be either the name of a Git repository stored as
  21407. // a resource in your account, or the URL of a Git repository in AWS CodeCommit
  21408. // (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or
  21409. // in any other Git repository. When you open a notebook instance, it opens
  21410. // in the directory that contains this repository. For more information, see
  21411. // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
  21412. DefaultCodeRepository *string `min:"1" type:"string"`
  21413. // A list of the Elastic Inference (EI) instance types to remove from this notebook
  21414. // instance.
  21415. DisassociateAcceleratorTypes *bool `type:"boolean"`
  21416. // A list of names or URLs of the default Git repositories to remove from this
  21417. // notebook instance.
  21418. DisassociateAdditionalCodeRepositories *bool `type:"boolean"`
  21419. // The name or URL of the default Git repository to remove from this notebook
  21420. // instance.
  21421. DisassociateDefaultCodeRepository *bool `type:"boolean"`
  21422. // Set to true to remove the notebook instance lifecycle configuration currently
  21423. // associated with the notebook instance.
  21424. DisassociateLifecycleConfig *bool `type:"boolean"`
  21425. // The Amazon ML compute instance type.
  21426. InstanceType *string `type:"string" enum:"InstanceType"`
  21427. // The name of a lifecycle configuration to associate with the notebook instance.
  21428. // For information about lifestyle configurations, see Step 2.1: (Optional)
  21429. // Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).
  21430. LifecycleConfigName *string `type:"string"`
  21431. // The name of the notebook instance to update.
  21432. //
  21433. // NotebookInstanceName is a required field
  21434. NotebookInstanceName *string `type:"string" required:"true"`
  21435. // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can
  21436. // assume to access the notebook instance. For more information, see Amazon
  21437. // SageMaker Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).
  21438. //
  21439. // To be able to pass this role to Amazon SageMaker, the caller of this API
  21440. // must have the iam:PassRole permission.
  21441. RoleArn *string `min:"20" type:"string"`
  21442. // The size, in GB, of the ML storage volume to attach to the notebook instance.
  21443. // The default value is 5 GB.
  21444. VolumeSizeInGB *int64 `min:"5" type:"integer"`
  21445. }
  21446. // String returns the string representation
  21447. func (s UpdateNotebookInstanceInput) String() string {
  21448. return awsutil.Prettify(s)
  21449. }
  21450. // GoString returns the string representation
  21451. func (s UpdateNotebookInstanceInput) GoString() string {
  21452. return s.String()
  21453. }
  21454. // Validate inspects the fields of the type to determine if they are valid.
  21455. func (s *UpdateNotebookInstanceInput) Validate() error {
  21456. invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceInput"}
  21457. if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 {
  21458. invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1))
  21459. }
  21460. if s.NotebookInstanceName == nil {
  21461. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName"))
  21462. }
  21463. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  21464. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  21465. }
  21466. if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 {
  21467. invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5))
  21468. }
  21469. if invalidParams.Len() > 0 {
  21470. return invalidParams
  21471. }
  21472. return nil
  21473. }
  21474. // SetAcceleratorTypes sets the AcceleratorTypes field's value.
  21475. func (s *UpdateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *UpdateNotebookInstanceInput {
  21476. s.AcceleratorTypes = v
  21477. return s
  21478. }
  21479. // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value.
  21480. func (s *UpdateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *UpdateNotebookInstanceInput {
  21481. s.AdditionalCodeRepositories = v
  21482. return s
  21483. }
  21484. // SetDefaultCodeRepository sets the DefaultCodeRepository field's value.
  21485. func (s *UpdateNotebookInstanceInput) SetDefaultCodeRepository(v string) *UpdateNotebookInstanceInput {
  21486. s.DefaultCodeRepository = &v
  21487. return s
  21488. }
  21489. // SetDisassociateAcceleratorTypes sets the DisassociateAcceleratorTypes field's value.
  21490. func (s *UpdateNotebookInstanceInput) SetDisassociateAcceleratorTypes(v bool) *UpdateNotebookInstanceInput {
  21491. s.DisassociateAcceleratorTypes = &v
  21492. return s
  21493. }
  21494. // SetDisassociateAdditionalCodeRepositories sets the DisassociateAdditionalCodeRepositories field's value.
  21495. func (s *UpdateNotebookInstanceInput) SetDisassociateAdditionalCodeRepositories(v bool) *UpdateNotebookInstanceInput {
  21496. s.DisassociateAdditionalCodeRepositories = &v
  21497. return s
  21498. }
  21499. // SetDisassociateDefaultCodeRepository sets the DisassociateDefaultCodeRepository field's value.
  21500. func (s *UpdateNotebookInstanceInput) SetDisassociateDefaultCodeRepository(v bool) *UpdateNotebookInstanceInput {
  21501. s.DisassociateDefaultCodeRepository = &v
  21502. return s
  21503. }
  21504. // SetDisassociateLifecycleConfig sets the DisassociateLifecycleConfig field's value.
  21505. func (s *UpdateNotebookInstanceInput) SetDisassociateLifecycleConfig(v bool) *UpdateNotebookInstanceInput {
  21506. s.DisassociateLifecycleConfig = &v
  21507. return s
  21508. }
  21509. // SetInstanceType sets the InstanceType field's value.
  21510. func (s *UpdateNotebookInstanceInput) SetInstanceType(v string) *UpdateNotebookInstanceInput {
  21511. s.InstanceType = &v
  21512. return s
  21513. }
  21514. // SetLifecycleConfigName sets the LifecycleConfigName field's value.
  21515. func (s *UpdateNotebookInstanceInput) SetLifecycleConfigName(v string) *UpdateNotebookInstanceInput {
  21516. s.LifecycleConfigName = &v
  21517. return s
  21518. }
  21519. // SetNotebookInstanceName sets the NotebookInstanceName field's value.
  21520. func (s *UpdateNotebookInstanceInput) SetNotebookInstanceName(v string) *UpdateNotebookInstanceInput {
  21521. s.NotebookInstanceName = &v
  21522. return s
  21523. }
  21524. // SetRoleArn sets the RoleArn field's value.
  21525. func (s *UpdateNotebookInstanceInput) SetRoleArn(v string) *UpdateNotebookInstanceInput {
  21526. s.RoleArn = &v
  21527. return s
  21528. }
  21529. // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
  21530. func (s *UpdateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *UpdateNotebookInstanceInput {
  21531. s.VolumeSizeInGB = &v
  21532. return s
  21533. }
  21534. type UpdateNotebookInstanceLifecycleConfigInput struct {
  21535. _ struct{} `type:"structure"`
  21536. // The name of the lifecycle configuration.
  21537. //
  21538. // NotebookInstanceLifecycleConfigName is a required field
  21539. NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"`
  21540. // The shell script that runs only once, when you create a notebook instance
  21541. OnCreate []*NotebookInstanceLifecycleHook `type:"list"`
  21542. // The shell script that runs every time you start a notebook instance, including
  21543. // when you create the notebook instance.
  21544. OnStart []*NotebookInstanceLifecycleHook `type:"list"`
  21545. }
  21546. // String returns the string representation
  21547. func (s UpdateNotebookInstanceLifecycleConfigInput) String() string {
  21548. return awsutil.Prettify(s)
  21549. }
  21550. // GoString returns the string representation
  21551. func (s UpdateNotebookInstanceLifecycleConfigInput) GoString() string {
  21552. return s.String()
  21553. }
  21554. // Validate inspects the fields of the type to determine if they are valid.
  21555. func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error {
  21556. invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceLifecycleConfigInput"}
  21557. if s.NotebookInstanceLifecycleConfigName == nil {
  21558. invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName"))
  21559. }
  21560. if s.OnCreate != nil {
  21561. for i, v := range s.OnCreate {
  21562. if v == nil {
  21563. continue
  21564. }
  21565. if err := v.Validate(); err != nil {
  21566. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams))
  21567. }
  21568. }
  21569. }
  21570. if s.OnStart != nil {
  21571. for i, v := range s.OnStart {
  21572. if v == nil {
  21573. continue
  21574. }
  21575. if err := v.Validate(); err != nil {
  21576. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams))
  21577. }
  21578. }
  21579. }
  21580. if invalidParams.Len() > 0 {
  21581. return invalidParams
  21582. }
  21583. return nil
  21584. }
  21585. // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value.
  21586. func (s *UpdateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *UpdateNotebookInstanceLifecycleConfigInput {
  21587. s.NotebookInstanceLifecycleConfigName = &v
  21588. return s
  21589. }
  21590. // SetOnCreate sets the OnCreate field's value.
  21591. func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput {
  21592. s.OnCreate = v
  21593. return s
  21594. }
  21595. // SetOnStart sets the OnStart field's value.
  21596. func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput {
  21597. s.OnStart = v
  21598. return s
  21599. }
  21600. type UpdateNotebookInstanceLifecycleConfigOutput struct {
  21601. _ struct{} `type:"structure"`
  21602. }
  21603. // String returns the string representation
  21604. func (s UpdateNotebookInstanceLifecycleConfigOutput) String() string {
  21605. return awsutil.Prettify(s)
  21606. }
  21607. // GoString returns the string representation
  21608. func (s UpdateNotebookInstanceLifecycleConfigOutput) GoString() string {
  21609. return s.String()
  21610. }
  21611. type UpdateNotebookInstanceOutput struct {
  21612. _ struct{} `type:"structure"`
  21613. }
  21614. // String returns the string representation
  21615. func (s UpdateNotebookInstanceOutput) String() string {
  21616. return awsutil.Prettify(s)
  21617. }
  21618. // GoString returns the string representation
  21619. func (s UpdateNotebookInstanceOutput) GoString() string {
  21620. return s.String()
  21621. }
  21622. type UpdateWorkteamInput struct {
  21623. _ struct{} `type:"structure"`
  21624. // An updated description for the work team.
  21625. Description *string `min:"1" type:"string"`
  21626. // A list of MemberDefinition objects that contain the updated work team members.
  21627. MemberDefinitions []*MemberDefinition `min:"1" type:"list"`
  21628. // The name of the work team to update.
  21629. //
  21630. // WorkteamName is a required field
  21631. WorkteamName *string `min:"1" type:"string" required:"true"`
  21632. }
  21633. // String returns the string representation
  21634. func (s UpdateWorkteamInput) String() string {
  21635. return awsutil.Prettify(s)
  21636. }
  21637. // GoString returns the string representation
  21638. func (s UpdateWorkteamInput) GoString() string {
  21639. return s.String()
  21640. }
  21641. // Validate inspects the fields of the type to determine if they are valid.
  21642. func (s *UpdateWorkteamInput) Validate() error {
  21643. invalidParams := request.ErrInvalidParams{Context: "UpdateWorkteamInput"}
  21644. if s.Description != nil && len(*s.Description) < 1 {
  21645. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  21646. }
  21647. if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 {
  21648. invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1))
  21649. }
  21650. if s.WorkteamName == nil {
  21651. invalidParams.Add(request.NewErrParamRequired("WorkteamName"))
  21652. }
  21653. if s.WorkteamName != nil && len(*s.WorkteamName) < 1 {
  21654. invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1))
  21655. }
  21656. if s.MemberDefinitions != nil {
  21657. for i, v := range s.MemberDefinitions {
  21658. if v == nil {
  21659. continue
  21660. }
  21661. if err := v.Validate(); err != nil {
  21662. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", i), err.(request.ErrInvalidParams))
  21663. }
  21664. }
  21665. }
  21666. if invalidParams.Len() > 0 {
  21667. return invalidParams
  21668. }
  21669. return nil
  21670. }
  21671. // SetDescription sets the Description field's value.
  21672. func (s *UpdateWorkteamInput) SetDescription(v string) *UpdateWorkteamInput {
  21673. s.Description = &v
  21674. return s
  21675. }
  21676. // SetMemberDefinitions sets the MemberDefinitions field's value.
  21677. func (s *UpdateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *UpdateWorkteamInput {
  21678. s.MemberDefinitions = v
  21679. return s
  21680. }
  21681. // SetWorkteamName sets the WorkteamName field's value.
  21682. func (s *UpdateWorkteamInput) SetWorkteamName(v string) *UpdateWorkteamInput {
  21683. s.WorkteamName = &v
  21684. return s
  21685. }
  21686. type UpdateWorkteamOutput struct {
  21687. _ struct{} `type:"structure"`
  21688. // A Workteam object that describes the updated work team.
  21689. //
  21690. // Workteam is a required field
  21691. Workteam *Workteam `type:"structure" required:"true"`
  21692. }
  21693. // String returns the string representation
  21694. func (s UpdateWorkteamOutput) String() string {
  21695. return awsutil.Prettify(s)
  21696. }
  21697. // GoString returns the string representation
  21698. func (s UpdateWorkteamOutput) GoString() string {
  21699. return s.String()
  21700. }
  21701. // SetWorkteam sets the Workteam field's value.
  21702. func (s *UpdateWorkteamOutput) SetWorkteam(v *Workteam) *UpdateWorkteamOutput {
  21703. s.Workteam = v
  21704. return s
  21705. }
  21706. // Specifies a VPC that your training jobs and hosted models have access to.
  21707. // Control access to and from your training and model containers by configuring
  21708. // the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual
  21709. // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html)
  21710. // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).
  21711. type VpcConfig struct {
  21712. _ struct{} `type:"structure"`
  21713. // The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security
  21714. // groups for the VPC that is specified in the Subnets field.
  21715. //
  21716. // SecurityGroupIds is a required field
  21717. SecurityGroupIds []*string `min:"1" type:"list" required:"true"`
  21718. // The ID of the subnets in the VPC to which you want to connect your training
  21719. // job or model.
  21720. //
  21721. // Subnets is a required field
  21722. Subnets []*string `min:"1" type:"list" required:"true"`
  21723. }
  21724. // String returns the string representation
  21725. func (s VpcConfig) String() string {
  21726. return awsutil.Prettify(s)
  21727. }
  21728. // GoString returns the string representation
  21729. func (s VpcConfig) GoString() string {
  21730. return s.String()
  21731. }
  21732. // Validate inspects the fields of the type to determine if they are valid.
  21733. func (s *VpcConfig) Validate() error {
  21734. invalidParams := request.ErrInvalidParams{Context: "VpcConfig"}
  21735. if s.SecurityGroupIds == nil {
  21736. invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
  21737. }
  21738. if s.SecurityGroupIds != nil && len(s.SecurityGroupIds) < 1 {
  21739. invalidParams.Add(request.NewErrParamMinLen("SecurityGroupIds", 1))
  21740. }
  21741. if s.Subnets == nil {
  21742. invalidParams.Add(request.NewErrParamRequired("Subnets"))
  21743. }
  21744. if s.Subnets != nil && len(s.Subnets) < 1 {
  21745. invalidParams.Add(request.NewErrParamMinLen("Subnets", 1))
  21746. }
  21747. if invalidParams.Len() > 0 {
  21748. return invalidParams
  21749. }
  21750. return nil
  21751. }
  21752. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  21753. func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig {
  21754. s.SecurityGroupIds = v
  21755. return s
  21756. }
  21757. // SetSubnets sets the Subnets field's value.
  21758. func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig {
  21759. s.Subnets = v
  21760. return s
  21761. }
  21762. // Provides details about a labeling work team.
  21763. type Workteam struct {
  21764. _ struct{} `type:"structure"`
  21765. // The date and time that the work team was created (timestamp).
  21766. CreateDate *time.Time `type:"timestamp"`
  21767. // A description of the work team.
  21768. //
  21769. // Description is a required field
  21770. Description *string `min:"1" type:"string" required:"true"`
  21771. // The date and time that the work team was last updated (timestamp).
  21772. LastUpdatedDate *time.Time `type:"timestamp"`
  21773. // The Amazon Cognito user groups that make up the work team.
  21774. //
  21775. // MemberDefinitions is a required field
  21776. MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"`
  21777. // The Amazon Marketplace identifier for a vendor's work team.
  21778. ProductListingIds []*string `type:"list"`
  21779. // The URI of the labeling job's user interface. Workers open this URI to start
  21780. // labeling your data objects.
  21781. SubDomain *string `type:"string"`
  21782. // The Amazon Resource Name (ARN) that identifies the work team.
  21783. //
  21784. // WorkteamArn is a required field
  21785. WorkteamArn *string `type:"string" required:"true"`
  21786. // The name of the work team.
  21787. //
  21788. // WorkteamName is a required field
  21789. WorkteamName *string `min:"1" type:"string" required:"true"`
  21790. }
  21791. // String returns the string representation
  21792. func (s Workteam) String() string {
  21793. return awsutil.Prettify(s)
  21794. }
  21795. // GoString returns the string representation
  21796. func (s Workteam) GoString() string {
  21797. return s.String()
  21798. }
  21799. // SetCreateDate sets the CreateDate field's value.
  21800. func (s *Workteam) SetCreateDate(v time.Time) *Workteam {
  21801. s.CreateDate = &v
  21802. return s
  21803. }
  21804. // SetDescription sets the Description field's value.
  21805. func (s *Workteam) SetDescription(v string) *Workteam {
  21806. s.Description = &v
  21807. return s
  21808. }
  21809. // SetLastUpdatedDate sets the LastUpdatedDate field's value.
  21810. func (s *Workteam) SetLastUpdatedDate(v time.Time) *Workteam {
  21811. s.LastUpdatedDate = &v
  21812. return s
  21813. }
  21814. // SetMemberDefinitions sets the MemberDefinitions field's value.
  21815. func (s *Workteam) SetMemberDefinitions(v []*MemberDefinition) *Workteam {
  21816. s.MemberDefinitions = v
  21817. return s
  21818. }
  21819. // SetProductListingIds sets the ProductListingIds field's value.
  21820. func (s *Workteam) SetProductListingIds(v []*string) *Workteam {
  21821. s.ProductListingIds = v
  21822. return s
  21823. }
  21824. // SetSubDomain sets the SubDomain field's value.
  21825. func (s *Workteam) SetSubDomain(v string) *Workteam {
  21826. s.SubDomain = &v
  21827. return s
  21828. }
  21829. // SetWorkteamArn sets the WorkteamArn field's value.
  21830. func (s *Workteam) SetWorkteamArn(v string) *Workteam {
  21831. s.WorkteamArn = &v
  21832. return s
  21833. }
  21834. // SetWorkteamName sets the WorkteamName field's value.
  21835. func (s *Workteam) SetWorkteamName(v string) *Workteam {
  21836. s.WorkteamName = &v
  21837. return s
  21838. }
  21839. const (
  21840. // AlgorithmSortByName is a AlgorithmSortBy enum value
  21841. AlgorithmSortByName = "Name"
  21842. // AlgorithmSortByCreationTime is a AlgorithmSortBy enum value
  21843. AlgorithmSortByCreationTime = "CreationTime"
  21844. )
  21845. const (
  21846. // AlgorithmStatusPending is a AlgorithmStatus enum value
  21847. AlgorithmStatusPending = "Pending"
  21848. // AlgorithmStatusInProgress is a AlgorithmStatus enum value
  21849. AlgorithmStatusInProgress = "InProgress"
  21850. // AlgorithmStatusCompleted is a AlgorithmStatus enum value
  21851. AlgorithmStatusCompleted = "Completed"
  21852. // AlgorithmStatusFailed is a AlgorithmStatus enum value
  21853. AlgorithmStatusFailed = "Failed"
  21854. // AlgorithmStatusDeleting is a AlgorithmStatus enum value
  21855. AlgorithmStatusDeleting = "Deleting"
  21856. )
  21857. const (
  21858. // AssemblyTypeNone is a AssemblyType enum value
  21859. AssemblyTypeNone = "None"
  21860. // AssemblyTypeLine is a AssemblyType enum value
  21861. AssemblyTypeLine = "Line"
  21862. )
  21863. const (
  21864. // BatchStrategyMultiRecord is a BatchStrategy enum value
  21865. BatchStrategyMultiRecord = "MultiRecord"
  21866. // BatchStrategySingleRecord is a BatchStrategy enum value
  21867. BatchStrategySingleRecord = "SingleRecord"
  21868. )
  21869. const (
  21870. // BooleanOperatorAnd is a BooleanOperator enum value
  21871. BooleanOperatorAnd = "And"
  21872. // BooleanOperatorOr is a BooleanOperator enum value
  21873. BooleanOperatorOr = "Or"
  21874. )
  21875. const (
  21876. // CodeRepositorySortByName is a CodeRepositorySortBy enum value
  21877. CodeRepositorySortByName = "Name"
  21878. // CodeRepositorySortByCreationTime is a CodeRepositorySortBy enum value
  21879. CodeRepositorySortByCreationTime = "CreationTime"
  21880. // CodeRepositorySortByLastModifiedTime is a CodeRepositorySortBy enum value
  21881. CodeRepositorySortByLastModifiedTime = "LastModifiedTime"
  21882. )
  21883. const (
  21884. // CodeRepositorySortOrderAscending is a CodeRepositorySortOrder enum value
  21885. CodeRepositorySortOrderAscending = "Ascending"
  21886. // CodeRepositorySortOrderDescending is a CodeRepositorySortOrder enum value
  21887. CodeRepositorySortOrderDescending = "Descending"
  21888. )
  21889. const (
  21890. // CompilationJobStatusInprogress is a CompilationJobStatus enum value
  21891. CompilationJobStatusInprogress = "INPROGRESS"
  21892. // CompilationJobStatusCompleted is a CompilationJobStatus enum value
  21893. CompilationJobStatusCompleted = "COMPLETED"
  21894. // CompilationJobStatusFailed is a CompilationJobStatus enum value
  21895. CompilationJobStatusFailed = "FAILED"
  21896. // CompilationJobStatusStarting is a CompilationJobStatus enum value
  21897. CompilationJobStatusStarting = "STARTING"
  21898. // CompilationJobStatusStopping is a CompilationJobStatus enum value
  21899. CompilationJobStatusStopping = "STOPPING"
  21900. // CompilationJobStatusStopped is a CompilationJobStatus enum value
  21901. CompilationJobStatusStopped = "STOPPED"
  21902. )
  21903. const (
  21904. // CompressionTypeNone is a CompressionType enum value
  21905. CompressionTypeNone = "None"
  21906. // CompressionTypeGzip is a CompressionType enum value
  21907. CompressionTypeGzip = "Gzip"
  21908. )
  21909. const (
  21910. // ContentClassifierFreeOfPersonallyIdentifiableInformation is a ContentClassifier enum value
  21911. ContentClassifierFreeOfPersonallyIdentifiableInformation = "FreeOfPersonallyIdentifiableInformation"
  21912. // ContentClassifierFreeOfAdultContent is a ContentClassifier enum value
  21913. ContentClassifierFreeOfAdultContent = "FreeOfAdultContent"
  21914. )
  21915. const (
  21916. // DetailedAlgorithmStatusNotStarted is a DetailedAlgorithmStatus enum value
  21917. DetailedAlgorithmStatusNotStarted = "NotStarted"
  21918. // DetailedAlgorithmStatusInProgress is a DetailedAlgorithmStatus enum value
  21919. DetailedAlgorithmStatusInProgress = "InProgress"
  21920. // DetailedAlgorithmStatusCompleted is a DetailedAlgorithmStatus enum value
  21921. DetailedAlgorithmStatusCompleted = "Completed"
  21922. // DetailedAlgorithmStatusFailed is a DetailedAlgorithmStatus enum value
  21923. DetailedAlgorithmStatusFailed = "Failed"
  21924. )
  21925. const (
  21926. // DetailedModelPackageStatusNotStarted is a DetailedModelPackageStatus enum value
  21927. DetailedModelPackageStatusNotStarted = "NotStarted"
  21928. // DetailedModelPackageStatusInProgress is a DetailedModelPackageStatus enum value
  21929. DetailedModelPackageStatusInProgress = "InProgress"
  21930. // DetailedModelPackageStatusCompleted is a DetailedModelPackageStatus enum value
  21931. DetailedModelPackageStatusCompleted = "Completed"
  21932. // DetailedModelPackageStatusFailed is a DetailedModelPackageStatus enum value
  21933. DetailedModelPackageStatusFailed = "Failed"
  21934. )
  21935. const (
  21936. // DirectInternetAccessEnabled is a DirectInternetAccess enum value
  21937. DirectInternetAccessEnabled = "Enabled"
  21938. // DirectInternetAccessDisabled is a DirectInternetAccess enum value
  21939. DirectInternetAccessDisabled = "Disabled"
  21940. )
  21941. const (
  21942. // EndpointConfigSortKeyName is a EndpointConfigSortKey enum value
  21943. EndpointConfigSortKeyName = "Name"
  21944. // EndpointConfigSortKeyCreationTime is a EndpointConfigSortKey enum value
  21945. EndpointConfigSortKeyCreationTime = "CreationTime"
  21946. )
  21947. const (
  21948. // EndpointSortKeyName is a EndpointSortKey enum value
  21949. EndpointSortKeyName = "Name"
  21950. // EndpointSortKeyCreationTime is a EndpointSortKey enum value
  21951. EndpointSortKeyCreationTime = "CreationTime"
  21952. // EndpointSortKeyStatus is a EndpointSortKey enum value
  21953. EndpointSortKeyStatus = "Status"
  21954. )
  21955. const (
  21956. // EndpointStatusOutOfService is a EndpointStatus enum value
  21957. EndpointStatusOutOfService = "OutOfService"
  21958. // EndpointStatusCreating is a EndpointStatus enum value
  21959. EndpointStatusCreating = "Creating"
  21960. // EndpointStatusUpdating is a EndpointStatus enum value
  21961. EndpointStatusUpdating = "Updating"
  21962. // EndpointStatusSystemUpdating is a EndpointStatus enum value
  21963. EndpointStatusSystemUpdating = "SystemUpdating"
  21964. // EndpointStatusRollingBack is a EndpointStatus enum value
  21965. EndpointStatusRollingBack = "RollingBack"
  21966. // EndpointStatusInService is a EndpointStatus enum value
  21967. EndpointStatusInService = "InService"
  21968. // EndpointStatusDeleting is a EndpointStatus enum value
  21969. EndpointStatusDeleting = "Deleting"
  21970. // EndpointStatusFailed is a EndpointStatus enum value
  21971. EndpointStatusFailed = "Failed"
  21972. )
  21973. const (
  21974. // FrameworkTensorflow is a Framework enum value
  21975. FrameworkTensorflow = "TENSORFLOW"
  21976. // FrameworkMxnet is a Framework enum value
  21977. FrameworkMxnet = "MXNET"
  21978. // FrameworkOnnx is a Framework enum value
  21979. FrameworkOnnx = "ONNX"
  21980. // FrameworkPytorch is a Framework enum value
  21981. FrameworkPytorch = "PYTORCH"
  21982. // FrameworkXgboost is a Framework enum value
  21983. FrameworkXgboost = "XGBOOST"
  21984. )
  21985. const (
  21986. // HyperParameterTuningJobObjectiveTypeMaximize is a HyperParameterTuningJobObjectiveType enum value
  21987. HyperParameterTuningJobObjectiveTypeMaximize = "Maximize"
  21988. // HyperParameterTuningJobObjectiveTypeMinimize is a HyperParameterTuningJobObjectiveType enum value
  21989. HyperParameterTuningJobObjectiveTypeMinimize = "Minimize"
  21990. )
  21991. const (
  21992. // HyperParameterTuningJobSortByOptionsName is a HyperParameterTuningJobSortByOptions enum value
  21993. HyperParameterTuningJobSortByOptionsName = "Name"
  21994. // HyperParameterTuningJobSortByOptionsStatus is a HyperParameterTuningJobSortByOptions enum value
  21995. HyperParameterTuningJobSortByOptionsStatus = "Status"
  21996. // HyperParameterTuningJobSortByOptionsCreationTime is a HyperParameterTuningJobSortByOptions enum value
  21997. HyperParameterTuningJobSortByOptionsCreationTime = "CreationTime"
  21998. )
  21999. const (
  22000. // HyperParameterTuningJobStatusCompleted is a HyperParameterTuningJobStatus enum value
  22001. HyperParameterTuningJobStatusCompleted = "Completed"
  22002. // HyperParameterTuningJobStatusInProgress is a HyperParameterTuningJobStatus enum value
  22003. HyperParameterTuningJobStatusInProgress = "InProgress"
  22004. // HyperParameterTuningJobStatusFailed is a HyperParameterTuningJobStatus enum value
  22005. HyperParameterTuningJobStatusFailed = "Failed"
  22006. // HyperParameterTuningJobStatusStopped is a HyperParameterTuningJobStatus enum value
  22007. HyperParameterTuningJobStatusStopped = "Stopped"
  22008. // HyperParameterTuningJobStatusStopping is a HyperParameterTuningJobStatus enum value
  22009. HyperParameterTuningJobStatusStopping = "Stopping"
  22010. )
  22011. // The strategy hyperparameter tuning uses to find the best combination of hyperparameters
  22012. // for your model. Currently, the only supported value is Bayesian.
  22013. const (
  22014. // HyperParameterTuningJobStrategyTypeBayesian is a HyperParameterTuningJobStrategyType enum value
  22015. HyperParameterTuningJobStrategyTypeBayesian = "Bayesian"
  22016. )
  22017. const (
  22018. // HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm is a HyperParameterTuningJobWarmStartType enum value
  22019. HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm = "IdenticalDataAndAlgorithm"
  22020. // HyperParameterTuningJobWarmStartTypeTransferLearning is a HyperParameterTuningJobWarmStartType enum value
  22021. HyperParameterTuningJobWarmStartTypeTransferLearning = "TransferLearning"
  22022. )
  22023. const (
  22024. // InstanceTypeMlT2Medium is a InstanceType enum value
  22025. InstanceTypeMlT2Medium = "ml.t2.medium"
  22026. // InstanceTypeMlT2Large is a InstanceType enum value
  22027. InstanceTypeMlT2Large = "ml.t2.large"
  22028. // InstanceTypeMlT2Xlarge is a InstanceType enum value
  22029. InstanceTypeMlT2Xlarge = "ml.t2.xlarge"
  22030. // InstanceTypeMlT22xlarge is a InstanceType enum value
  22031. InstanceTypeMlT22xlarge = "ml.t2.2xlarge"
  22032. // InstanceTypeMlT3Medium is a InstanceType enum value
  22033. InstanceTypeMlT3Medium = "ml.t3.medium"
  22034. // InstanceTypeMlT3Large is a InstanceType enum value
  22035. InstanceTypeMlT3Large = "ml.t3.large"
  22036. // InstanceTypeMlT3Xlarge is a InstanceType enum value
  22037. InstanceTypeMlT3Xlarge = "ml.t3.xlarge"
  22038. // InstanceTypeMlT32xlarge is a InstanceType enum value
  22039. InstanceTypeMlT32xlarge = "ml.t3.2xlarge"
  22040. // InstanceTypeMlM4Xlarge is a InstanceType enum value
  22041. InstanceTypeMlM4Xlarge = "ml.m4.xlarge"
  22042. // InstanceTypeMlM42xlarge is a InstanceType enum value
  22043. InstanceTypeMlM42xlarge = "ml.m4.2xlarge"
  22044. // InstanceTypeMlM44xlarge is a InstanceType enum value
  22045. InstanceTypeMlM44xlarge = "ml.m4.4xlarge"
  22046. // InstanceTypeMlM410xlarge is a InstanceType enum value
  22047. InstanceTypeMlM410xlarge = "ml.m4.10xlarge"
  22048. // InstanceTypeMlM416xlarge is a InstanceType enum value
  22049. InstanceTypeMlM416xlarge = "ml.m4.16xlarge"
  22050. // InstanceTypeMlM5Xlarge is a InstanceType enum value
  22051. InstanceTypeMlM5Xlarge = "ml.m5.xlarge"
  22052. // InstanceTypeMlM52xlarge is a InstanceType enum value
  22053. InstanceTypeMlM52xlarge = "ml.m5.2xlarge"
  22054. // InstanceTypeMlM54xlarge is a InstanceType enum value
  22055. InstanceTypeMlM54xlarge = "ml.m5.4xlarge"
  22056. // InstanceTypeMlM512xlarge is a InstanceType enum value
  22057. InstanceTypeMlM512xlarge = "ml.m5.12xlarge"
  22058. // InstanceTypeMlM524xlarge is a InstanceType enum value
  22059. InstanceTypeMlM524xlarge = "ml.m5.24xlarge"
  22060. // InstanceTypeMlC4Xlarge is a InstanceType enum value
  22061. InstanceTypeMlC4Xlarge = "ml.c4.xlarge"
  22062. // InstanceTypeMlC42xlarge is a InstanceType enum value
  22063. InstanceTypeMlC42xlarge = "ml.c4.2xlarge"
  22064. // InstanceTypeMlC44xlarge is a InstanceType enum value
  22065. InstanceTypeMlC44xlarge = "ml.c4.4xlarge"
  22066. // InstanceTypeMlC48xlarge is a InstanceType enum value
  22067. InstanceTypeMlC48xlarge = "ml.c4.8xlarge"
  22068. // InstanceTypeMlC5Xlarge is a InstanceType enum value
  22069. InstanceTypeMlC5Xlarge = "ml.c5.xlarge"
  22070. // InstanceTypeMlC52xlarge is a InstanceType enum value
  22071. InstanceTypeMlC52xlarge = "ml.c5.2xlarge"
  22072. // InstanceTypeMlC54xlarge is a InstanceType enum value
  22073. InstanceTypeMlC54xlarge = "ml.c5.4xlarge"
  22074. // InstanceTypeMlC59xlarge is a InstanceType enum value
  22075. InstanceTypeMlC59xlarge = "ml.c5.9xlarge"
  22076. // InstanceTypeMlC518xlarge is a InstanceType enum value
  22077. InstanceTypeMlC518xlarge = "ml.c5.18xlarge"
  22078. // InstanceTypeMlC5dXlarge is a InstanceType enum value
  22079. InstanceTypeMlC5dXlarge = "ml.c5d.xlarge"
  22080. // InstanceTypeMlC5d2xlarge is a InstanceType enum value
  22081. InstanceTypeMlC5d2xlarge = "ml.c5d.2xlarge"
  22082. // InstanceTypeMlC5d4xlarge is a InstanceType enum value
  22083. InstanceTypeMlC5d4xlarge = "ml.c5d.4xlarge"
  22084. // InstanceTypeMlC5d9xlarge is a InstanceType enum value
  22085. InstanceTypeMlC5d9xlarge = "ml.c5d.9xlarge"
  22086. // InstanceTypeMlC5d18xlarge is a InstanceType enum value
  22087. InstanceTypeMlC5d18xlarge = "ml.c5d.18xlarge"
  22088. // InstanceTypeMlP2Xlarge is a InstanceType enum value
  22089. InstanceTypeMlP2Xlarge = "ml.p2.xlarge"
  22090. // InstanceTypeMlP28xlarge is a InstanceType enum value
  22091. InstanceTypeMlP28xlarge = "ml.p2.8xlarge"
  22092. // InstanceTypeMlP216xlarge is a InstanceType enum value
  22093. InstanceTypeMlP216xlarge = "ml.p2.16xlarge"
  22094. // InstanceTypeMlP32xlarge is a InstanceType enum value
  22095. InstanceTypeMlP32xlarge = "ml.p3.2xlarge"
  22096. // InstanceTypeMlP38xlarge is a InstanceType enum value
  22097. InstanceTypeMlP38xlarge = "ml.p3.8xlarge"
  22098. // InstanceTypeMlP316xlarge is a InstanceType enum value
  22099. InstanceTypeMlP316xlarge = "ml.p3.16xlarge"
  22100. )
  22101. const (
  22102. // LabelingJobStatusInProgress is a LabelingJobStatus enum value
  22103. LabelingJobStatusInProgress = "InProgress"
  22104. // LabelingJobStatusCompleted is a LabelingJobStatus enum value
  22105. LabelingJobStatusCompleted = "Completed"
  22106. // LabelingJobStatusFailed is a LabelingJobStatus enum value
  22107. LabelingJobStatusFailed = "Failed"
  22108. // LabelingJobStatusStopping is a LabelingJobStatus enum value
  22109. LabelingJobStatusStopping = "Stopping"
  22110. // LabelingJobStatusStopped is a LabelingJobStatus enum value
  22111. LabelingJobStatusStopped = "Stopped"
  22112. )
  22113. const (
  22114. // ListCompilationJobsSortByName is a ListCompilationJobsSortBy enum value
  22115. ListCompilationJobsSortByName = "Name"
  22116. // ListCompilationJobsSortByCreationTime is a ListCompilationJobsSortBy enum value
  22117. ListCompilationJobsSortByCreationTime = "CreationTime"
  22118. // ListCompilationJobsSortByStatus is a ListCompilationJobsSortBy enum value
  22119. ListCompilationJobsSortByStatus = "Status"
  22120. )
  22121. const (
  22122. // ListLabelingJobsForWorkteamSortByOptionsCreationTime is a ListLabelingJobsForWorkteamSortByOptions enum value
  22123. ListLabelingJobsForWorkteamSortByOptionsCreationTime = "CreationTime"
  22124. )
  22125. const (
  22126. // ListWorkteamsSortByOptionsName is a ListWorkteamsSortByOptions enum value
  22127. ListWorkteamsSortByOptionsName = "Name"
  22128. // ListWorkteamsSortByOptionsCreateDate is a ListWorkteamsSortByOptions enum value
  22129. ListWorkteamsSortByOptionsCreateDate = "CreateDate"
  22130. )
  22131. const (
  22132. // ModelPackageSortByName is a ModelPackageSortBy enum value
  22133. ModelPackageSortByName = "Name"
  22134. // ModelPackageSortByCreationTime is a ModelPackageSortBy enum value
  22135. ModelPackageSortByCreationTime = "CreationTime"
  22136. )
  22137. const (
  22138. // ModelPackageStatusPending is a ModelPackageStatus enum value
  22139. ModelPackageStatusPending = "Pending"
  22140. // ModelPackageStatusInProgress is a ModelPackageStatus enum value
  22141. ModelPackageStatusInProgress = "InProgress"
  22142. // ModelPackageStatusCompleted is a ModelPackageStatus enum value
  22143. ModelPackageStatusCompleted = "Completed"
  22144. // ModelPackageStatusFailed is a ModelPackageStatus enum value
  22145. ModelPackageStatusFailed = "Failed"
  22146. // ModelPackageStatusDeleting is a ModelPackageStatus enum value
  22147. ModelPackageStatusDeleting = "Deleting"
  22148. )
  22149. const (
  22150. // ModelSortKeyName is a ModelSortKey enum value
  22151. ModelSortKeyName = "Name"
  22152. // ModelSortKeyCreationTime is a ModelSortKey enum value
  22153. ModelSortKeyCreationTime = "CreationTime"
  22154. )
  22155. const (
  22156. // NotebookInstanceAcceleratorTypeMlEia1Medium is a NotebookInstanceAcceleratorType enum value
  22157. NotebookInstanceAcceleratorTypeMlEia1Medium = "ml.eia1.medium"
  22158. // NotebookInstanceAcceleratorTypeMlEia1Large is a NotebookInstanceAcceleratorType enum value
  22159. NotebookInstanceAcceleratorTypeMlEia1Large = "ml.eia1.large"
  22160. // NotebookInstanceAcceleratorTypeMlEia1Xlarge is a NotebookInstanceAcceleratorType enum value
  22161. NotebookInstanceAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge"
  22162. )
  22163. const (
  22164. // NotebookInstanceLifecycleConfigSortKeyName is a NotebookInstanceLifecycleConfigSortKey enum value
  22165. NotebookInstanceLifecycleConfigSortKeyName = "Name"
  22166. // NotebookInstanceLifecycleConfigSortKeyCreationTime is a NotebookInstanceLifecycleConfigSortKey enum value
  22167. NotebookInstanceLifecycleConfigSortKeyCreationTime = "CreationTime"
  22168. // NotebookInstanceLifecycleConfigSortKeyLastModifiedTime is a NotebookInstanceLifecycleConfigSortKey enum value
  22169. NotebookInstanceLifecycleConfigSortKeyLastModifiedTime = "LastModifiedTime"
  22170. )
  22171. const (
  22172. // NotebookInstanceLifecycleConfigSortOrderAscending is a NotebookInstanceLifecycleConfigSortOrder enum value
  22173. NotebookInstanceLifecycleConfigSortOrderAscending = "Ascending"
  22174. // NotebookInstanceLifecycleConfigSortOrderDescending is a NotebookInstanceLifecycleConfigSortOrder enum value
  22175. NotebookInstanceLifecycleConfigSortOrderDescending = "Descending"
  22176. )
  22177. const (
  22178. // NotebookInstanceSortKeyName is a NotebookInstanceSortKey enum value
  22179. NotebookInstanceSortKeyName = "Name"
  22180. // NotebookInstanceSortKeyCreationTime is a NotebookInstanceSortKey enum value
  22181. NotebookInstanceSortKeyCreationTime = "CreationTime"
  22182. // NotebookInstanceSortKeyStatus is a NotebookInstanceSortKey enum value
  22183. NotebookInstanceSortKeyStatus = "Status"
  22184. )
  22185. const (
  22186. // NotebookInstanceSortOrderAscending is a NotebookInstanceSortOrder enum value
  22187. NotebookInstanceSortOrderAscending = "Ascending"
  22188. // NotebookInstanceSortOrderDescending is a NotebookInstanceSortOrder enum value
  22189. NotebookInstanceSortOrderDescending = "Descending"
  22190. )
  22191. const (
  22192. // NotebookInstanceStatusPending is a NotebookInstanceStatus enum value
  22193. NotebookInstanceStatusPending = "Pending"
  22194. // NotebookInstanceStatusInService is a NotebookInstanceStatus enum value
  22195. NotebookInstanceStatusInService = "InService"
  22196. // NotebookInstanceStatusStopping is a NotebookInstanceStatus enum value
  22197. NotebookInstanceStatusStopping = "Stopping"
  22198. // NotebookInstanceStatusStopped is a NotebookInstanceStatus enum value
  22199. NotebookInstanceStatusStopped = "Stopped"
  22200. // NotebookInstanceStatusFailed is a NotebookInstanceStatus enum value
  22201. NotebookInstanceStatusFailed = "Failed"
  22202. // NotebookInstanceStatusDeleting is a NotebookInstanceStatus enum value
  22203. NotebookInstanceStatusDeleting = "Deleting"
  22204. // NotebookInstanceStatusUpdating is a NotebookInstanceStatus enum value
  22205. NotebookInstanceStatusUpdating = "Updating"
  22206. )
  22207. const (
  22208. // ObjectiveStatusSucceeded is a ObjectiveStatus enum value
  22209. ObjectiveStatusSucceeded = "Succeeded"
  22210. // ObjectiveStatusPending is a ObjectiveStatus enum value
  22211. ObjectiveStatusPending = "Pending"
  22212. // ObjectiveStatusFailed is a ObjectiveStatus enum value
  22213. ObjectiveStatusFailed = "Failed"
  22214. )
  22215. const (
  22216. // OperatorEquals is a Operator enum value
  22217. OperatorEquals = "Equals"
  22218. // OperatorNotEquals is a Operator enum value
  22219. OperatorNotEquals = "NotEquals"
  22220. // OperatorGreaterThan is a Operator enum value
  22221. OperatorGreaterThan = "GreaterThan"
  22222. // OperatorGreaterThanOrEqualTo is a Operator enum value
  22223. OperatorGreaterThanOrEqualTo = "GreaterThanOrEqualTo"
  22224. // OperatorLessThan is a Operator enum value
  22225. OperatorLessThan = "LessThan"
  22226. // OperatorLessThanOrEqualTo is a Operator enum value
  22227. OperatorLessThanOrEqualTo = "LessThanOrEqualTo"
  22228. // OperatorContains is a Operator enum value
  22229. OperatorContains = "Contains"
  22230. )
  22231. const (
  22232. // OrderKeyAscending is a OrderKey enum value
  22233. OrderKeyAscending = "Ascending"
  22234. // OrderKeyDescending is a OrderKey enum value
  22235. OrderKeyDescending = "Descending"
  22236. )
  22237. const (
  22238. // ParameterTypeInteger is a ParameterType enum value
  22239. ParameterTypeInteger = "Integer"
  22240. // ParameterTypeContinuous is a ParameterType enum value
  22241. ParameterTypeContinuous = "Continuous"
  22242. // ParameterTypeCategorical is a ParameterType enum value
  22243. ParameterTypeCategorical = "Categorical"
  22244. // ParameterTypeFreeText is a ParameterType enum value
  22245. ParameterTypeFreeText = "FreeText"
  22246. )
  22247. const (
  22248. // ProductionVariantAcceleratorTypeMlEia1Medium is a ProductionVariantAcceleratorType enum value
  22249. ProductionVariantAcceleratorTypeMlEia1Medium = "ml.eia1.medium"
  22250. // ProductionVariantAcceleratorTypeMlEia1Large is a ProductionVariantAcceleratorType enum value
  22251. ProductionVariantAcceleratorTypeMlEia1Large = "ml.eia1.large"
  22252. // ProductionVariantAcceleratorTypeMlEia1Xlarge is a ProductionVariantAcceleratorType enum value
  22253. ProductionVariantAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge"
  22254. )
  22255. const (
  22256. // ProductionVariantInstanceTypeMlT2Medium is a ProductionVariantInstanceType enum value
  22257. ProductionVariantInstanceTypeMlT2Medium = "ml.t2.medium"
  22258. // ProductionVariantInstanceTypeMlT2Large is a ProductionVariantInstanceType enum value
  22259. ProductionVariantInstanceTypeMlT2Large = "ml.t2.large"
  22260. // ProductionVariantInstanceTypeMlT2Xlarge is a ProductionVariantInstanceType enum value
  22261. ProductionVariantInstanceTypeMlT2Xlarge = "ml.t2.xlarge"
  22262. // ProductionVariantInstanceTypeMlT22xlarge is a ProductionVariantInstanceType enum value
  22263. ProductionVariantInstanceTypeMlT22xlarge = "ml.t2.2xlarge"
  22264. // ProductionVariantInstanceTypeMlM4Xlarge is a ProductionVariantInstanceType enum value
  22265. ProductionVariantInstanceTypeMlM4Xlarge = "ml.m4.xlarge"
  22266. // ProductionVariantInstanceTypeMlM42xlarge is a ProductionVariantInstanceType enum value
  22267. ProductionVariantInstanceTypeMlM42xlarge = "ml.m4.2xlarge"
  22268. // ProductionVariantInstanceTypeMlM44xlarge is a ProductionVariantInstanceType enum value
  22269. ProductionVariantInstanceTypeMlM44xlarge = "ml.m4.4xlarge"
  22270. // ProductionVariantInstanceTypeMlM410xlarge is a ProductionVariantInstanceType enum value
  22271. ProductionVariantInstanceTypeMlM410xlarge = "ml.m4.10xlarge"
  22272. // ProductionVariantInstanceTypeMlM416xlarge is a ProductionVariantInstanceType enum value
  22273. ProductionVariantInstanceTypeMlM416xlarge = "ml.m4.16xlarge"
  22274. // ProductionVariantInstanceTypeMlM5Large is a ProductionVariantInstanceType enum value
  22275. ProductionVariantInstanceTypeMlM5Large = "ml.m5.large"
  22276. // ProductionVariantInstanceTypeMlM5Xlarge is a ProductionVariantInstanceType enum value
  22277. ProductionVariantInstanceTypeMlM5Xlarge = "ml.m5.xlarge"
  22278. // ProductionVariantInstanceTypeMlM52xlarge is a ProductionVariantInstanceType enum value
  22279. ProductionVariantInstanceTypeMlM52xlarge = "ml.m5.2xlarge"
  22280. // ProductionVariantInstanceTypeMlM54xlarge is a ProductionVariantInstanceType enum value
  22281. ProductionVariantInstanceTypeMlM54xlarge = "ml.m5.4xlarge"
  22282. // ProductionVariantInstanceTypeMlM512xlarge is a ProductionVariantInstanceType enum value
  22283. ProductionVariantInstanceTypeMlM512xlarge = "ml.m5.12xlarge"
  22284. // ProductionVariantInstanceTypeMlM524xlarge is a ProductionVariantInstanceType enum value
  22285. ProductionVariantInstanceTypeMlM524xlarge = "ml.m5.24xlarge"
  22286. // ProductionVariantInstanceTypeMlC4Large is a ProductionVariantInstanceType enum value
  22287. ProductionVariantInstanceTypeMlC4Large = "ml.c4.large"
  22288. // ProductionVariantInstanceTypeMlC4Xlarge is a ProductionVariantInstanceType enum value
  22289. ProductionVariantInstanceTypeMlC4Xlarge = "ml.c4.xlarge"
  22290. // ProductionVariantInstanceTypeMlC42xlarge is a ProductionVariantInstanceType enum value
  22291. ProductionVariantInstanceTypeMlC42xlarge = "ml.c4.2xlarge"
  22292. // ProductionVariantInstanceTypeMlC44xlarge is a ProductionVariantInstanceType enum value
  22293. ProductionVariantInstanceTypeMlC44xlarge = "ml.c4.4xlarge"
  22294. // ProductionVariantInstanceTypeMlC48xlarge is a ProductionVariantInstanceType enum value
  22295. ProductionVariantInstanceTypeMlC48xlarge = "ml.c4.8xlarge"
  22296. // ProductionVariantInstanceTypeMlP2Xlarge is a ProductionVariantInstanceType enum value
  22297. ProductionVariantInstanceTypeMlP2Xlarge = "ml.p2.xlarge"
  22298. // ProductionVariantInstanceTypeMlP28xlarge is a ProductionVariantInstanceType enum value
  22299. ProductionVariantInstanceTypeMlP28xlarge = "ml.p2.8xlarge"
  22300. // ProductionVariantInstanceTypeMlP216xlarge is a ProductionVariantInstanceType enum value
  22301. ProductionVariantInstanceTypeMlP216xlarge = "ml.p2.16xlarge"
  22302. // ProductionVariantInstanceTypeMlP32xlarge is a ProductionVariantInstanceType enum value
  22303. ProductionVariantInstanceTypeMlP32xlarge = "ml.p3.2xlarge"
  22304. // ProductionVariantInstanceTypeMlP38xlarge is a ProductionVariantInstanceType enum value
  22305. ProductionVariantInstanceTypeMlP38xlarge = "ml.p3.8xlarge"
  22306. // ProductionVariantInstanceTypeMlP316xlarge is a ProductionVariantInstanceType enum value
  22307. ProductionVariantInstanceTypeMlP316xlarge = "ml.p3.16xlarge"
  22308. // ProductionVariantInstanceTypeMlC5Large is a ProductionVariantInstanceType enum value
  22309. ProductionVariantInstanceTypeMlC5Large = "ml.c5.large"
  22310. // ProductionVariantInstanceTypeMlC5Xlarge is a ProductionVariantInstanceType enum value
  22311. ProductionVariantInstanceTypeMlC5Xlarge = "ml.c5.xlarge"
  22312. // ProductionVariantInstanceTypeMlC52xlarge is a ProductionVariantInstanceType enum value
  22313. ProductionVariantInstanceTypeMlC52xlarge = "ml.c5.2xlarge"
  22314. // ProductionVariantInstanceTypeMlC54xlarge is a ProductionVariantInstanceType enum value
  22315. ProductionVariantInstanceTypeMlC54xlarge = "ml.c5.4xlarge"
  22316. // ProductionVariantInstanceTypeMlC59xlarge is a ProductionVariantInstanceType enum value
  22317. ProductionVariantInstanceTypeMlC59xlarge = "ml.c5.9xlarge"
  22318. // ProductionVariantInstanceTypeMlC518xlarge is a ProductionVariantInstanceType enum value
  22319. ProductionVariantInstanceTypeMlC518xlarge = "ml.c5.18xlarge"
  22320. )
  22321. const (
  22322. // RecordWrapperNone is a RecordWrapper enum value
  22323. RecordWrapperNone = "None"
  22324. // RecordWrapperRecordIo is a RecordWrapper enum value
  22325. RecordWrapperRecordIo = "RecordIO"
  22326. )
  22327. const (
  22328. // ResourceTypeTrainingJob is a ResourceType enum value
  22329. ResourceTypeTrainingJob = "TrainingJob"
  22330. )
  22331. const (
  22332. // S3DataDistributionFullyReplicated is a S3DataDistribution enum value
  22333. S3DataDistributionFullyReplicated = "FullyReplicated"
  22334. // S3DataDistributionShardedByS3key is a S3DataDistribution enum value
  22335. S3DataDistributionShardedByS3key = "ShardedByS3Key"
  22336. )
  22337. const (
  22338. // S3DataTypeManifestFile is a S3DataType enum value
  22339. S3DataTypeManifestFile = "ManifestFile"
  22340. // S3DataTypeS3prefix is a S3DataType enum value
  22341. S3DataTypeS3prefix = "S3Prefix"
  22342. // S3DataTypeAugmentedManifestFile is a S3DataType enum value
  22343. S3DataTypeAugmentedManifestFile = "AugmentedManifestFile"
  22344. )
  22345. const (
  22346. // SearchSortOrderAscending is a SearchSortOrder enum value
  22347. SearchSortOrderAscending = "Ascending"
  22348. // SearchSortOrderDescending is a SearchSortOrder enum value
  22349. SearchSortOrderDescending = "Descending"
  22350. )
  22351. const (
  22352. // SecondaryStatusStarting is a SecondaryStatus enum value
  22353. SecondaryStatusStarting = "Starting"
  22354. // SecondaryStatusLaunchingMlinstances is a SecondaryStatus enum value
  22355. SecondaryStatusLaunchingMlinstances = "LaunchingMLInstances"
  22356. // SecondaryStatusPreparingTrainingStack is a SecondaryStatus enum value
  22357. SecondaryStatusPreparingTrainingStack = "PreparingTrainingStack"
  22358. // SecondaryStatusDownloading is a SecondaryStatus enum value
  22359. SecondaryStatusDownloading = "Downloading"
  22360. // SecondaryStatusDownloadingTrainingImage is a SecondaryStatus enum value
  22361. SecondaryStatusDownloadingTrainingImage = "DownloadingTrainingImage"
  22362. // SecondaryStatusTraining is a SecondaryStatus enum value
  22363. SecondaryStatusTraining = "Training"
  22364. // SecondaryStatusUploading is a SecondaryStatus enum value
  22365. SecondaryStatusUploading = "Uploading"
  22366. // SecondaryStatusStopping is a SecondaryStatus enum value
  22367. SecondaryStatusStopping = "Stopping"
  22368. // SecondaryStatusStopped is a SecondaryStatus enum value
  22369. SecondaryStatusStopped = "Stopped"
  22370. // SecondaryStatusMaxRuntimeExceeded is a SecondaryStatus enum value
  22371. SecondaryStatusMaxRuntimeExceeded = "MaxRuntimeExceeded"
  22372. // SecondaryStatusCompleted is a SecondaryStatus enum value
  22373. SecondaryStatusCompleted = "Completed"
  22374. // SecondaryStatusFailed is a SecondaryStatus enum value
  22375. SecondaryStatusFailed = "Failed"
  22376. )
  22377. const (
  22378. // SortByName is a SortBy enum value
  22379. SortByName = "Name"
  22380. // SortByCreationTime is a SortBy enum value
  22381. SortByCreationTime = "CreationTime"
  22382. // SortByStatus is a SortBy enum value
  22383. SortByStatus = "Status"
  22384. )
  22385. const (
  22386. // SortOrderAscending is a SortOrder enum value
  22387. SortOrderAscending = "Ascending"
  22388. // SortOrderDescending is a SortOrder enum value
  22389. SortOrderDescending = "Descending"
  22390. )
  22391. const (
  22392. // SplitTypeNone is a SplitType enum value
  22393. SplitTypeNone = "None"
  22394. // SplitTypeLine is a SplitType enum value
  22395. SplitTypeLine = "Line"
  22396. // SplitTypeRecordIo is a SplitType enum value
  22397. SplitTypeRecordIo = "RecordIO"
  22398. // SplitTypeTfrecord is a SplitType enum value
  22399. SplitTypeTfrecord = "TFRecord"
  22400. )
  22401. const (
  22402. // TargetDeviceMlM4 is a TargetDevice enum value
  22403. TargetDeviceMlM4 = "ml_m4"
  22404. // TargetDeviceMlM5 is a TargetDevice enum value
  22405. TargetDeviceMlM5 = "ml_m5"
  22406. // TargetDeviceMlC4 is a TargetDevice enum value
  22407. TargetDeviceMlC4 = "ml_c4"
  22408. // TargetDeviceMlC5 is a TargetDevice enum value
  22409. TargetDeviceMlC5 = "ml_c5"
  22410. // TargetDeviceMlP2 is a TargetDevice enum value
  22411. TargetDeviceMlP2 = "ml_p2"
  22412. // TargetDeviceMlP3 is a TargetDevice enum value
  22413. TargetDeviceMlP3 = "ml_p3"
  22414. // TargetDeviceJetsonTx1 is a TargetDevice enum value
  22415. TargetDeviceJetsonTx1 = "jetson_tx1"
  22416. // TargetDeviceJetsonTx2 is a TargetDevice enum value
  22417. TargetDeviceJetsonTx2 = "jetson_tx2"
  22418. // TargetDeviceRasp3b is a TargetDevice enum value
  22419. TargetDeviceRasp3b = "rasp3b"
  22420. // TargetDeviceDeeplens is a TargetDevice enum value
  22421. TargetDeviceDeeplens = "deeplens"
  22422. )
  22423. const (
  22424. // TrainingInputModePipe is a TrainingInputMode enum value
  22425. TrainingInputModePipe = "Pipe"
  22426. // TrainingInputModeFile is a TrainingInputMode enum value
  22427. TrainingInputModeFile = "File"
  22428. )
  22429. const (
  22430. // TrainingInstanceTypeMlM4Xlarge is a TrainingInstanceType enum value
  22431. TrainingInstanceTypeMlM4Xlarge = "ml.m4.xlarge"
  22432. // TrainingInstanceTypeMlM42xlarge is a TrainingInstanceType enum value
  22433. TrainingInstanceTypeMlM42xlarge = "ml.m4.2xlarge"
  22434. // TrainingInstanceTypeMlM44xlarge is a TrainingInstanceType enum value
  22435. TrainingInstanceTypeMlM44xlarge = "ml.m4.4xlarge"
  22436. // TrainingInstanceTypeMlM410xlarge is a TrainingInstanceType enum value
  22437. TrainingInstanceTypeMlM410xlarge = "ml.m4.10xlarge"
  22438. // TrainingInstanceTypeMlM416xlarge is a TrainingInstanceType enum value
  22439. TrainingInstanceTypeMlM416xlarge = "ml.m4.16xlarge"
  22440. // TrainingInstanceTypeMlM5Large is a TrainingInstanceType enum value
  22441. TrainingInstanceTypeMlM5Large = "ml.m5.large"
  22442. // TrainingInstanceTypeMlM5Xlarge is a TrainingInstanceType enum value
  22443. TrainingInstanceTypeMlM5Xlarge = "ml.m5.xlarge"
  22444. // TrainingInstanceTypeMlM52xlarge is a TrainingInstanceType enum value
  22445. TrainingInstanceTypeMlM52xlarge = "ml.m5.2xlarge"
  22446. // TrainingInstanceTypeMlM54xlarge is a TrainingInstanceType enum value
  22447. TrainingInstanceTypeMlM54xlarge = "ml.m5.4xlarge"
  22448. // TrainingInstanceTypeMlM512xlarge is a TrainingInstanceType enum value
  22449. TrainingInstanceTypeMlM512xlarge = "ml.m5.12xlarge"
  22450. // TrainingInstanceTypeMlM524xlarge is a TrainingInstanceType enum value
  22451. TrainingInstanceTypeMlM524xlarge = "ml.m5.24xlarge"
  22452. // TrainingInstanceTypeMlC4Xlarge is a TrainingInstanceType enum value
  22453. TrainingInstanceTypeMlC4Xlarge = "ml.c4.xlarge"
  22454. // TrainingInstanceTypeMlC42xlarge is a TrainingInstanceType enum value
  22455. TrainingInstanceTypeMlC42xlarge = "ml.c4.2xlarge"
  22456. // TrainingInstanceTypeMlC44xlarge is a TrainingInstanceType enum value
  22457. TrainingInstanceTypeMlC44xlarge = "ml.c4.4xlarge"
  22458. // TrainingInstanceTypeMlC48xlarge is a TrainingInstanceType enum value
  22459. TrainingInstanceTypeMlC48xlarge = "ml.c4.8xlarge"
  22460. // TrainingInstanceTypeMlP2Xlarge is a TrainingInstanceType enum value
  22461. TrainingInstanceTypeMlP2Xlarge = "ml.p2.xlarge"
  22462. // TrainingInstanceTypeMlP28xlarge is a TrainingInstanceType enum value
  22463. TrainingInstanceTypeMlP28xlarge = "ml.p2.8xlarge"
  22464. // TrainingInstanceTypeMlP216xlarge is a TrainingInstanceType enum value
  22465. TrainingInstanceTypeMlP216xlarge = "ml.p2.16xlarge"
  22466. // TrainingInstanceTypeMlP32xlarge is a TrainingInstanceType enum value
  22467. TrainingInstanceTypeMlP32xlarge = "ml.p3.2xlarge"
  22468. // TrainingInstanceTypeMlP38xlarge is a TrainingInstanceType enum value
  22469. TrainingInstanceTypeMlP38xlarge = "ml.p3.8xlarge"
  22470. // TrainingInstanceTypeMlP316xlarge is a TrainingInstanceType enum value
  22471. TrainingInstanceTypeMlP316xlarge = "ml.p3.16xlarge"
  22472. // TrainingInstanceTypeMlC5Xlarge is a TrainingInstanceType enum value
  22473. TrainingInstanceTypeMlC5Xlarge = "ml.c5.xlarge"
  22474. // TrainingInstanceTypeMlC52xlarge is a TrainingInstanceType enum value
  22475. TrainingInstanceTypeMlC52xlarge = "ml.c5.2xlarge"
  22476. // TrainingInstanceTypeMlC54xlarge is a TrainingInstanceType enum value
  22477. TrainingInstanceTypeMlC54xlarge = "ml.c5.4xlarge"
  22478. // TrainingInstanceTypeMlC59xlarge is a TrainingInstanceType enum value
  22479. TrainingInstanceTypeMlC59xlarge = "ml.c5.9xlarge"
  22480. // TrainingInstanceTypeMlC518xlarge is a TrainingInstanceType enum value
  22481. TrainingInstanceTypeMlC518xlarge = "ml.c5.18xlarge"
  22482. )
  22483. const (
  22484. // TrainingJobEarlyStoppingTypeOff is a TrainingJobEarlyStoppingType enum value
  22485. TrainingJobEarlyStoppingTypeOff = "Off"
  22486. // TrainingJobEarlyStoppingTypeAuto is a TrainingJobEarlyStoppingType enum value
  22487. TrainingJobEarlyStoppingTypeAuto = "Auto"
  22488. )
  22489. const (
  22490. // TrainingJobSortByOptionsName is a TrainingJobSortByOptions enum value
  22491. TrainingJobSortByOptionsName = "Name"
  22492. // TrainingJobSortByOptionsCreationTime is a TrainingJobSortByOptions enum value
  22493. TrainingJobSortByOptionsCreationTime = "CreationTime"
  22494. // TrainingJobSortByOptionsStatus is a TrainingJobSortByOptions enum value
  22495. TrainingJobSortByOptionsStatus = "Status"
  22496. // TrainingJobSortByOptionsFinalObjectiveMetricValue is a TrainingJobSortByOptions enum value
  22497. TrainingJobSortByOptionsFinalObjectiveMetricValue = "FinalObjectiveMetricValue"
  22498. )
  22499. const (
  22500. // TrainingJobStatusInProgress is a TrainingJobStatus enum value
  22501. TrainingJobStatusInProgress = "InProgress"
  22502. // TrainingJobStatusCompleted is a TrainingJobStatus enum value
  22503. TrainingJobStatusCompleted = "Completed"
  22504. // TrainingJobStatusFailed is a TrainingJobStatus enum value
  22505. TrainingJobStatusFailed = "Failed"
  22506. // TrainingJobStatusStopping is a TrainingJobStatus enum value
  22507. TrainingJobStatusStopping = "Stopping"
  22508. // TrainingJobStatusStopped is a TrainingJobStatus enum value
  22509. TrainingJobStatusStopped = "Stopped"
  22510. )
  22511. const (
  22512. // TransformInstanceTypeMlM4Xlarge is a TransformInstanceType enum value
  22513. TransformInstanceTypeMlM4Xlarge = "ml.m4.xlarge"
  22514. // TransformInstanceTypeMlM42xlarge is a TransformInstanceType enum value
  22515. TransformInstanceTypeMlM42xlarge = "ml.m4.2xlarge"
  22516. // TransformInstanceTypeMlM44xlarge is a TransformInstanceType enum value
  22517. TransformInstanceTypeMlM44xlarge = "ml.m4.4xlarge"
  22518. // TransformInstanceTypeMlM410xlarge is a TransformInstanceType enum value
  22519. TransformInstanceTypeMlM410xlarge = "ml.m4.10xlarge"
  22520. // TransformInstanceTypeMlM416xlarge is a TransformInstanceType enum value
  22521. TransformInstanceTypeMlM416xlarge = "ml.m4.16xlarge"
  22522. // TransformInstanceTypeMlC4Xlarge is a TransformInstanceType enum value
  22523. TransformInstanceTypeMlC4Xlarge = "ml.c4.xlarge"
  22524. // TransformInstanceTypeMlC42xlarge is a TransformInstanceType enum value
  22525. TransformInstanceTypeMlC42xlarge = "ml.c4.2xlarge"
  22526. // TransformInstanceTypeMlC44xlarge is a TransformInstanceType enum value
  22527. TransformInstanceTypeMlC44xlarge = "ml.c4.4xlarge"
  22528. // TransformInstanceTypeMlC48xlarge is a TransformInstanceType enum value
  22529. TransformInstanceTypeMlC48xlarge = "ml.c4.8xlarge"
  22530. // TransformInstanceTypeMlP2Xlarge is a TransformInstanceType enum value
  22531. TransformInstanceTypeMlP2Xlarge = "ml.p2.xlarge"
  22532. // TransformInstanceTypeMlP28xlarge is a TransformInstanceType enum value
  22533. TransformInstanceTypeMlP28xlarge = "ml.p2.8xlarge"
  22534. // TransformInstanceTypeMlP216xlarge is a TransformInstanceType enum value
  22535. TransformInstanceTypeMlP216xlarge = "ml.p2.16xlarge"
  22536. // TransformInstanceTypeMlP32xlarge is a TransformInstanceType enum value
  22537. TransformInstanceTypeMlP32xlarge = "ml.p3.2xlarge"
  22538. // TransformInstanceTypeMlP38xlarge is a TransformInstanceType enum value
  22539. TransformInstanceTypeMlP38xlarge = "ml.p3.8xlarge"
  22540. // TransformInstanceTypeMlP316xlarge is a TransformInstanceType enum value
  22541. TransformInstanceTypeMlP316xlarge = "ml.p3.16xlarge"
  22542. // TransformInstanceTypeMlC5Xlarge is a TransformInstanceType enum value
  22543. TransformInstanceTypeMlC5Xlarge = "ml.c5.xlarge"
  22544. // TransformInstanceTypeMlC52xlarge is a TransformInstanceType enum value
  22545. TransformInstanceTypeMlC52xlarge = "ml.c5.2xlarge"
  22546. // TransformInstanceTypeMlC54xlarge is a TransformInstanceType enum value
  22547. TransformInstanceTypeMlC54xlarge = "ml.c5.4xlarge"
  22548. // TransformInstanceTypeMlC59xlarge is a TransformInstanceType enum value
  22549. TransformInstanceTypeMlC59xlarge = "ml.c5.9xlarge"
  22550. // TransformInstanceTypeMlC518xlarge is a TransformInstanceType enum value
  22551. TransformInstanceTypeMlC518xlarge = "ml.c5.18xlarge"
  22552. // TransformInstanceTypeMlM5Large is a TransformInstanceType enum value
  22553. TransformInstanceTypeMlM5Large = "ml.m5.large"
  22554. // TransformInstanceTypeMlM5Xlarge is a TransformInstanceType enum value
  22555. TransformInstanceTypeMlM5Xlarge = "ml.m5.xlarge"
  22556. // TransformInstanceTypeMlM52xlarge is a TransformInstanceType enum value
  22557. TransformInstanceTypeMlM52xlarge = "ml.m5.2xlarge"
  22558. // TransformInstanceTypeMlM54xlarge is a TransformInstanceType enum value
  22559. TransformInstanceTypeMlM54xlarge = "ml.m5.4xlarge"
  22560. // TransformInstanceTypeMlM512xlarge is a TransformInstanceType enum value
  22561. TransformInstanceTypeMlM512xlarge = "ml.m5.12xlarge"
  22562. // TransformInstanceTypeMlM524xlarge is a TransformInstanceType enum value
  22563. TransformInstanceTypeMlM524xlarge = "ml.m5.24xlarge"
  22564. )
  22565. const (
  22566. // TransformJobStatusInProgress is a TransformJobStatus enum value
  22567. TransformJobStatusInProgress = "InProgress"
  22568. // TransformJobStatusCompleted is a TransformJobStatus enum value
  22569. TransformJobStatusCompleted = "Completed"
  22570. // TransformJobStatusFailed is a TransformJobStatus enum value
  22571. TransformJobStatusFailed = "Failed"
  22572. // TransformJobStatusStopping is a TransformJobStatus enum value
  22573. TransformJobStatusStopping = "Stopping"
  22574. // TransformJobStatusStopped is a TransformJobStatus enum value
  22575. TransformJobStatusStopped = "Stopped"
  22576. )