api.go 299 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package iotanalytics
  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/restjson"
  11. )
  12. const opBatchPutMessage = "BatchPutMessage"
  13. // BatchPutMessageRequest generates a "aws/request.Request" representing the
  14. // client's request for the BatchPutMessage 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 BatchPutMessage for more information on using the BatchPutMessage
  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 BatchPutMessageRequest method.
  29. // req, resp := client.BatchPutMessageRequest(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/iotanalytics-2017-11-27/BatchPutMessage
  37. func (c *IoTAnalytics) BatchPutMessageRequest(input *BatchPutMessageInput) (req *request.Request, output *BatchPutMessageOutput) {
  38. op := &request.Operation{
  39. Name: opBatchPutMessage,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/messages/batch",
  42. }
  43. if input == nil {
  44. input = &BatchPutMessageInput{}
  45. }
  46. output = &BatchPutMessageOutput{}
  47. req = c.newRequest(op, input, output)
  48. return
  49. }
  50. // BatchPutMessage API operation for AWS IoT Analytics.
  51. //
  52. // Sends messages to a channel.
  53. //
  54. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  55. // with awserr.Error's Code and Message methods to get detailed information about
  56. // the error.
  57. //
  58. // See the AWS API reference guide for AWS IoT Analytics's
  59. // API operation BatchPutMessage for usage and error information.
  60. //
  61. // Returned Error Codes:
  62. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  63. // A resource with the specified name could not be found.
  64. //
  65. // * ErrCodeInvalidRequestException "InvalidRequestException"
  66. // The request was not valid.
  67. //
  68. // * ErrCodeInternalFailureException "InternalFailureException"
  69. // There was an internal failure.
  70. //
  71. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  72. // The service is temporarily unavailable.
  73. //
  74. // * ErrCodeThrottlingException "ThrottlingException"
  75. // The request was denied due to request throttling.
  76. //
  77. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/BatchPutMessage
  78. func (c *IoTAnalytics) BatchPutMessage(input *BatchPutMessageInput) (*BatchPutMessageOutput, error) {
  79. req, out := c.BatchPutMessageRequest(input)
  80. return out, req.Send()
  81. }
  82. // BatchPutMessageWithContext is the same as BatchPutMessage with the addition of
  83. // the ability to pass a context and additional request options.
  84. //
  85. // See BatchPutMessage for details on how to use this API operation.
  86. //
  87. // The context must be non-nil and will be used for request cancellation. If
  88. // the context is nil a panic will occur. In the future the SDK may create
  89. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  90. // for more information on using Contexts.
  91. func (c *IoTAnalytics) BatchPutMessageWithContext(ctx aws.Context, input *BatchPutMessageInput, opts ...request.Option) (*BatchPutMessageOutput, error) {
  92. req, out := c.BatchPutMessageRequest(input)
  93. req.SetContext(ctx)
  94. req.ApplyOptions(opts...)
  95. return out, req.Send()
  96. }
  97. const opCancelPipelineReprocessing = "CancelPipelineReprocessing"
  98. // CancelPipelineReprocessingRequest generates a "aws/request.Request" representing the
  99. // client's request for the CancelPipelineReprocessing operation. The "output" return
  100. // value will be populated with the request's response once the request completes
  101. // successfully.
  102. //
  103. // Use "Send" method on the returned Request to send the API call to the service.
  104. // the "output" return value is not valid until after Send returns without error.
  105. //
  106. // See CancelPipelineReprocessing for more information on using the CancelPipelineReprocessing
  107. // API call, and error handling.
  108. //
  109. // This method is useful when you want to inject custom logic or configuration
  110. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  111. //
  112. //
  113. // // Example sending a request using the CancelPipelineReprocessingRequest method.
  114. // req, resp := client.CancelPipelineReprocessingRequest(params)
  115. //
  116. // err := req.Send()
  117. // if err == nil { // resp is now filled
  118. // fmt.Println(resp)
  119. // }
  120. //
  121. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CancelPipelineReprocessing
  122. func (c *IoTAnalytics) CancelPipelineReprocessingRequest(input *CancelPipelineReprocessingInput) (req *request.Request, output *CancelPipelineReprocessingOutput) {
  123. op := &request.Operation{
  124. Name: opCancelPipelineReprocessing,
  125. HTTPMethod: "DELETE",
  126. HTTPPath: "/pipelines/{pipelineName}/reprocessing/{reprocessingId}",
  127. }
  128. if input == nil {
  129. input = &CancelPipelineReprocessingInput{}
  130. }
  131. output = &CancelPipelineReprocessingOutput{}
  132. req = c.newRequest(op, input, output)
  133. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  134. return
  135. }
  136. // CancelPipelineReprocessing API operation for AWS IoT Analytics.
  137. //
  138. // Cancels the reprocessing of data through the pipeline.
  139. //
  140. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  141. // with awserr.Error's Code and Message methods to get detailed information about
  142. // the error.
  143. //
  144. // See the AWS API reference guide for AWS IoT Analytics's
  145. // API operation CancelPipelineReprocessing for usage and error information.
  146. //
  147. // Returned Error Codes:
  148. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  149. // A resource with the specified name could not be found.
  150. //
  151. // * ErrCodeInvalidRequestException "InvalidRequestException"
  152. // The request was not valid.
  153. //
  154. // * ErrCodeInternalFailureException "InternalFailureException"
  155. // There was an internal failure.
  156. //
  157. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  158. // The service is temporarily unavailable.
  159. //
  160. // * ErrCodeThrottlingException "ThrottlingException"
  161. // The request was denied due to request throttling.
  162. //
  163. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CancelPipelineReprocessing
  164. func (c *IoTAnalytics) CancelPipelineReprocessing(input *CancelPipelineReprocessingInput) (*CancelPipelineReprocessingOutput, error) {
  165. req, out := c.CancelPipelineReprocessingRequest(input)
  166. return out, req.Send()
  167. }
  168. // CancelPipelineReprocessingWithContext is the same as CancelPipelineReprocessing with the addition of
  169. // the ability to pass a context and additional request options.
  170. //
  171. // See CancelPipelineReprocessing for details on how to use this API operation.
  172. //
  173. // The context must be non-nil and will be used for request cancellation. If
  174. // the context is nil a panic will occur. In the future the SDK may create
  175. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  176. // for more information on using Contexts.
  177. func (c *IoTAnalytics) CancelPipelineReprocessingWithContext(ctx aws.Context, input *CancelPipelineReprocessingInput, opts ...request.Option) (*CancelPipelineReprocessingOutput, error) {
  178. req, out := c.CancelPipelineReprocessingRequest(input)
  179. req.SetContext(ctx)
  180. req.ApplyOptions(opts...)
  181. return out, req.Send()
  182. }
  183. const opCreateChannel = "CreateChannel"
  184. // CreateChannelRequest generates a "aws/request.Request" representing the
  185. // client's request for the CreateChannel operation. The "output" return
  186. // value will be populated with the request's response once the request completes
  187. // successfully.
  188. //
  189. // Use "Send" method on the returned Request to send the API call to the service.
  190. // the "output" return value is not valid until after Send returns without error.
  191. //
  192. // See CreateChannel for more information on using the CreateChannel
  193. // API call, and error handling.
  194. //
  195. // This method is useful when you want to inject custom logic or configuration
  196. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  197. //
  198. //
  199. // // Example sending a request using the CreateChannelRequest method.
  200. // req, resp := client.CreateChannelRequest(params)
  201. //
  202. // err := req.Send()
  203. // if err == nil { // resp is now filled
  204. // fmt.Println(resp)
  205. // }
  206. //
  207. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateChannel
  208. func (c *IoTAnalytics) CreateChannelRequest(input *CreateChannelInput) (req *request.Request, output *CreateChannelOutput) {
  209. op := &request.Operation{
  210. Name: opCreateChannel,
  211. HTTPMethod: "POST",
  212. HTTPPath: "/channels",
  213. }
  214. if input == nil {
  215. input = &CreateChannelInput{}
  216. }
  217. output = &CreateChannelOutput{}
  218. req = c.newRequest(op, input, output)
  219. return
  220. }
  221. // CreateChannel API operation for AWS IoT Analytics.
  222. //
  223. // Creates a channel. A channel collects data from an MQTT topic and archives
  224. // the raw, unprocessed messages before publishing the data to a pipeline.
  225. //
  226. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  227. // with awserr.Error's Code and Message methods to get detailed information about
  228. // the error.
  229. //
  230. // See the AWS API reference guide for AWS IoT Analytics's
  231. // API operation CreateChannel for usage and error information.
  232. //
  233. // Returned Error Codes:
  234. // * ErrCodeInvalidRequestException "InvalidRequestException"
  235. // The request was not valid.
  236. //
  237. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  238. // A resource with the same name already exists.
  239. //
  240. // * ErrCodeInternalFailureException "InternalFailureException"
  241. // There was an internal failure.
  242. //
  243. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  244. // The service is temporarily unavailable.
  245. //
  246. // * ErrCodeThrottlingException "ThrottlingException"
  247. // The request was denied due to request throttling.
  248. //
  249. // * ErrCodeLimitExceededException "LimitExceededException"
  250. // The command caused an internal limit to be exceeded.
  251. //
  252. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateChannel
  253. func (c *IoTAnalytics) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) {
  254. req, out := c.CreateChannelRequest(input)
  255. return out, req.Send()
  256. }
  257. // CreateChannelWithContext is the same as CreateChannel with the addition of
  258. // the ability to pass a context and additional request options.
  259. //
  260. // See CreateChannel for details on how to use this API operation.
  261. //
  262. // The context must be non-nil and will be used for request cancellation. If
  263. // the context is nil a panic will occur. In the future the SDK may create
  264. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  265. // for more information on using Contexts.
  266. func (c *IoTAnalytics) CreateChannelWithContext(ctx aws.Context, input *CreateChannelInput, opts ...request.Option) (*CreateChannelOutput, error) {
  267. req, out := c.CreateChannelRequest(input)
  268. req.SetContext(ctx)
  269. req.ApplyOptions(opts...)
  270. return out, req.Send()
  271. }
  272. const opCreateDataset = "CreateDataset"
  273. // CreateDatasetRequest generates a "aws/request.Request" representing the
  274. // client's request for the CreateDataset operation. The "output" return
  275. // value will be populated with the request's response once the request completes
  276. // successfully.
  277. //
  278. // Use "Send" method on the returned Request to send the API call to the service.
  279. // the "output" return value is not valid until after Send returns without error.
  280. //
  281. // See CreateDataset for more information on using the CreateDataset
  282. // API call, and error handling.
  283. //
  284. // This method is useful when you want to inject custom logic or configuration
  285. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  286. //
  287. //
  288. // // Example sending a request using the CreateDatasetRequest method.
  289. // req, resp := client.CreateDatasetRequest(params)
  290. //
  291. // err := req.Send()
  292. // if err == nil { // resp is now filled
  293. // fmt.Println(resp)
  294. // }
  295. //
  296. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDataset
  297. func (c *IoTAnalytics) CreateDatasetRequest(input *CreateDatasetInput) (req *request.Request, output *CreateDatasetOutput) {
  298. op := &request.Operation{
  299. Name: opCreateDataset,
  300. HTTPMethod: "POST",
  301. HTTPPath: "/datasets",
  302. }
  303. if input == nil {
  304. input = &CreateDatasetInput{}
  305. }
  306. output = &CreateDatasetOutput{}
  307. req = c.newRequest(op, input, output)
  308. return
  309. }
  310. // CreateDataset API operation for AWS IoT Analytics.
  311. //
  312. // Creates a data set. A data set stores data retrieved from a data store by
  313. // applying a "queryAction" (a SQL query) or a "containerAction" (executing
  314. // a containerized application). This operation creates the skeleton of a data
  315. // set. The data set can be populated manually by calling "CreateDatasetContent"
  316. // or automatically according to a "trigger" you specify.
  317. //
  318. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  319. // with awserr.Error's Code and Message methods to get detailed information about
  320. // the error.
  321. //
  322. // See the AWS API reference guide for AWS IoT Analytics's
  323. // API operation CreateDataset for usage and error information.
  324. //
  325. // Returned Error Codes:
  326. // * ErrCodeInvalidRequestException "InvalidRequestException"
  327. // The request was not valid.
  328. //
  329. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  330. // A resource with the same name already exists.
  331. //
  332. // * ErrCodeInternalFailureException "InternalFailureException"
  333. // There was an internal failure.
  334. //
  335. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  336. // The service is temporarily unavailable.
  337. //
  338. // * ErrCodeThrottlingException "ThrottlingException"
  339. // The request was denied due to request throttling.
  340. //
  341. // * ErrCodeLimitExceededException "LimitExceededException"
  342. // The command caused an internal limit to be exceeded.
  343. //
  344. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDataset
  345. func (c *IoTAnalytics) CreateDataset(input *CreateDatasetInput) (*CreateDatasetOutput, error) {
  346. req, out := c.CreateDatasetRequest(input)
  347. return out, req.Send()
  348. }
  349. // CreateDatasetWithContext is the same as CreateDataset with the addition of
  350. // the ability to pass a context and additional request options.
  351. //
  352. // See CreateDataset for details on how to use this API operation.
  353. //
  354. // The context must be non-nil and will be used for request cancellation. If
  355. // the context is nil a panic will occur. In the future the SDK may create
  356. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  357. // for more information on using Contexts.
  358. func (c *IoTAnalytics) CreateDatasetWithContext(ctx aws.Context, input *CreateDatasetInput, opts ...request.Option) (*CreateDatasetOutput, error) {
  359. req, out := c.CreateDatasetRequest(input)
  360. req.SetContext(ctx)
  361. req.ApplyOptions(opts...)
  362. return out, req.Send()
  363. }
  364. const opCreateDatasetContent = "CreateDatasetContent"
  365. // CreateDatasetContentRequest generates a "aws/request.Request" representing the
  366. // client's request for the CreateDatasetContent operation. The "output" return
  367. // value will be populated with the request's response once the request completes
  368. // successfully.
  369. //
  370. // Use "Send" method on the returned Request to send the API call to the service.
  371. // the "output" return value is not valid until after Send returns without error.
  372. //
  373. // See CreateDatasetContent for more information on using the CreateDatasetContent
  374. // API call, and error handling.
  375. //
  376. // This method is useful when you want to inject custom logic or configuration
  377. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  378. //
  379. //
  380. // // Example sending a request using the CreateDatasetContentRequest method.
  381. // req, resp := client.CreateDatasetContentRequest(params)
  382. //
  383. // err := req.Send()
  384. // if err == nil { // resp is now filled
  385. // fmt.Println(resp)
  386. // }
  387. //
  388. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent
  389. func (c *IoTAnalytics) CreateDatasetContentRequest(input *CreateDatasetContentInput) (req *request.Request, output *CreateDatasetContentOutput) {
  390. op := &request.Operation{
  391. Name: opCreateDatasetContent,
  392. HTTPMethod: "POST",
  393. HTTPPath: "/datasets/{datasetName}/content",
  394. }
  395. if input == nil {
  396. input = &CreateDatasetContentInput{}
  397. }
  398. output = &CreateDatasetContentOutput{}
  399. req = c.newRequest(op, input, output)
  400. return
  401. }
  402. // CreateDatasetContent API operation for AWS IoT Analytics.
  403. //
  404. // Creates the content of a data set by applying a "queryAction" (a SQL query)
  405. // or a "containerAction" (executing a containerized application).
  406. //
  407. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  408. // with awserr.Error's Code and Message methods to get detailed information about
  409. // the error.
  410. //
  411. // See the AWS API reference guide for AWS IoT Analytics's
  412. // API operation CreateDatasetContent for usage and error information.
  413. //
  414. // Returned Error Codes:
  415. // * ErrCodeInvalidRequestException "InvalidRequestException"
  416. // The request was not valid.
  417. //
  418. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  419. // A resource with the specified name could not be found.
  420. //
  421. // * ErrCodeInternalFailureException "InternalFailureException"
  422. // There was an internal failure.
  423. //
  424. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  425. // The service is temporarily unavailable.
  426. //
  427. // * ErrCodeThrottlingException "ThrottlingException"
  428. // The request was denied due to request throttling.
  429. //
  430. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent
  431. func (c *IoTAnalytics) CreateDatasetContent(input *CreateDatasetContentInput) (*CreateDatasetContentOutput, error) {
  432. req, out := c.CreateDatasetContentRequest(input)
  433. return out, req.Send()
  434. }
  435. // CreateDatasetContentWithContext is the same as CreateDatasetContent with the addition of
  436. // the ability to pass a context and additional request options.
  437. //
  438. // See CreateDatasetContent for details on how to use this API operation.
  439. //
  440. // The context must be non-nil and will be used for request cancellation. If
  441. // the context is nil a panic will occur. In the future the SDK may create
  442. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  443. // for more information on using Contexts.
  444. func (c *IoTAnalytics) CreateDatasetContentWithContext(ctx aws.Context, input *CreateDatasetContentInput, opts ...request.Option) (*CreateDatasetContentOutput, error) {
  445. req, out := c.CreateDatasetContentRequest(input)
  446. req.SetContext(ctx)
  447. req.ApplyOptions(opts...)
  448. return out, req.Send()
  449. }
  450. const opCreateDatastore = "CreateDatastore"
  451. // CreateDatastoreRequest generates a "aws/request.Request" representing the
  452. // client's request for the CreateDatastore operation. The "output" return
  453. // value will be populated with the request's response once the request completes
  454. // successfully.
  455. //
  456. // Use "Send" method on the returned Request to send the API call to the service.
  457. // the "output" return value is not valid until after Send returns without error.
  458. //
  459. // See CreateDatastore for more information on using the CreateDatastore
  460. // API call, and error handling.
  461. //
  462. // This method is useful when you want to inject custom logic or configuration
  463. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  464. //
  465. //
  466. // // Example sending a request using the CreateDatastoreRequest method.
  467. // req, resp := client.CreateDatastoreRequest(params)
  468. //
  469. // err := req.Send()
  470. // if err == nil { // resp is now filled
  471. // fmt.Println(resp)
  472. // }
  473. //
  474. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatastore
  475. func (c *IoTAnalytics) CreateDatastoreRequest(input *CreateDatastoreInput) (req *request.Request, output *CreateDatastoreOutput) {
  476. op := &request.Operation{
  477. Name: opCreateDatastore,
  478. HTTPMethod: "POST",
  479. HTTPPath: "/datastores",
  480. }
  481. if input == nil {
  482. input = &CreateDatastoreInput{}
  483. }
  484. output = &CreateDatastoreOutput{}
  485. req = c.newRequest(op, input, output)
  486. return
  487. }
  488. // CreateDatastore API operation for AWS IoT Analytics.
  489. //
  490. // Creates a data store, which is a repository for messages.
  491. //
  492. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  493. // with awserr.Error's Code and Message methods to get detailed information about
  494. // the error.
  495. //
  496. // See the AWS API reference guide for AWS IoT Analytics's
  497. // API operation CreateDatastore for usage and error information.
  498. //
  499. // Returned Error Codes:
  500. // * ErrCodeInvalidRequestException "InvalidRequestException"
  501. // The request was not valid.
  502. //
  503. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  504. // A resource with the same name already exists.
  505. //
  506. // * ErrCodeInternalFailureException "InternalFailureException"
  507. // There was an internal failure.
  508. //
  509. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  510. // The service is temporarily unavailable.
  511. //
  512. // * ErrCodeThrottlingException "ThrottlingException"
  513. // The request was denied due to request throttling.
  514. //
  515. // * ErrCodeLimitExceededException "LimitExceededException"
  516. // The command caused an internal limit to be exceeded.
  517. //
  518. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatastore
  519. func (c *IoTAnalytics) CreateDatastore(input *CreateDatastoreInput) (*CreateDatastoreOutput, error) {
  520. req, out := c.CreateDatastoreRequest(input)
  521. return out, req.Send()
  522. }
  523. // CreateDatastoreWithContext is the same as CreateDatastore with the addition of
  524. // the ability to pass a context and additional request options.
  525. //
  526. // See CreateDatastore for details on how to use this API operation.
  527. //
  528. // The context must be non-nil and will be used for request cancellation. If
  529. // the context is nil a panic will occur. In the future the SDK may create
  530. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  531. // for more information on using Contexts.
  532. func (c *IoTAnalytics) CreateDatastoreWithContext(ctx aws.Context, input *CreateDatastoreInput, opts ...request.Option) (*CreateDatastoreOutput, error) {
  533. req, out := c.CreateDatastoreRequest(input)
  534. req.SetContext(ctx)
  535. req.ApplyOptions(opts...)
  536. return out, req.Send()
  537. }
  538. const opCreatePipeline = "CreatePipeline"
  539. // CreatePipelineRequest generates a "aws/request.Request" representing the
  540. // client's request for the CreatePipeline operation. The "output" return
  541. // value will be populated with the request's response once the request completes
  542. // successfully.
  543. //
  544. // Use "Send" method on the returned Request to send the API call to the service.
  545. // the "output" return value is not valid until after Send returns without error.
  546. //
  547. // See CreatePipeline for more information on using the CreatePipeline
  548. // API call, and error handling.
  549. //
  550. // This method is useful when you want to inject custom logic or configuration
  551. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  552. //
  553. //
  554. // // Example sending a request using the CreatePipelineRequest method.
  555. // req, resp := client.CreatePipelineRequest(params)
  556. //
  557. // err := req.Send()
  558. // if err == nil { // resp is now filled
  559. // fmt.Println(resp)
  560. // }
  561. //
  562. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreatePipeline
  563. func (c *IoTAnalytics) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
  564. op := &request.Operation{
  565. Name: opCreatePipeline,
  566. HTTPMethod: "POST",
  567. HTTPPath: "/pipelines",
  568. }
  569. if input == nil {
  570. input = &CreatePipelineInput{}
  571. }
  572. output = &CreatePipelineOutput{}
  573. req = c.newRequest(op, input, output)
  574. return
  575. }
  576. // CreatePipeline API operation for AWS IoT Analytics.
  577. //
  578. // Creates a pipeline. A pipeline consumes messages from one or more channels
  579. // and allows you to process the messages before storing them in a data store.
  580. //
  581. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  582. // with awserr.Error's Code and Message methods to get detailed information about
  583. // the error.
  584. //
  585. // See the AWS API reference guide for AWS IoT Analytics's
  586. // API operation CreatePipeline for usage and error information.
  587. //
  588. // Returned Error Codes:
  589. // * ErrCodeInvalidRequestException "InvalidRequestException"
  590. // The request was not valid.
  591. //
  592. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  593. // A resource with the same name already exists.
  594. //
  595. // * ErrCodeInternalFailureException "InternalFailureException"
  596. // There was an internal failure.
  597. //
  598. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  599. // The service is temporarily unavailable.
  600. //
  601. // * ErrCodeThrottlingException "ThrottlingException"
  602. // The request was denied due to request throttling.
  603. //
  604. // * ErrCodeLimitExceededException "LimitExceededException"
  605. // The command caused an internal limit to be exceeded.
  606. //
  607. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreatePipeline
  608. func (c *IoTAnalytics) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
  609. req, out := c.CreatePipelineRequest(input)
  610. return out, req.Send()
  611. }
  612. // CreatePipelineWithContext is the same as CreatePipeline with the addition of
  613. // the ability to pass a context and additional request options.
  614. //
  615. // See CreatePipeline for details on how to use this API operation.
  616. //
  617. // The context must be non-nil and will be used for request cancellation. If
  618. // the context is nil a panic will occur. In the future the SDK may create
  619. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  620. // for more information on using Contexts.
  621. func (c *IoTAnalytics) CreatePipelineWithContext(ctx aws.Context, input *CreatePipelineInput, opts ...request.Option) (*CreatePipelineOutput, error) {
  622. req, out := c.CreatePipelineRequest(input)
  623. req.SetContext(ctx)
  624. req.ApplyOptions(opts...)
  625. return out, req.Send()
  626. }
  627. const opDeleteChannel = "DeleteChannel"
  628. // DeleteChannelRequest generates a "aws/request.Request" representing the
  629. // client's request for the DeleteChannel operation. The "output" return
  630. // value will be populated with the request's response once the request completes
  631. // successfully.
  632. //
  633. // Use "Send" method on the returned Request to send the API call to the service.
  634. // the "output" return value is not valid until after Send returns without error.
  635. //
  636. // See DeleteChannel for more information on using the DeleteChannel
  637. // API call, and error handling.
  638. //
  639. // This method is useful when you want to inject custom logic or configuration
  640. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  641. //
  642. //
  643. // // Example sending a request using the DeleteChannelRequest method.
  644. // req, resp := client.DeleteChannelRequest(params)
  645. //
  646. // err := req.Send()
  647. // if err == nil { // resp is now filled
  648. // fmt.Println(resp)
  649. // }
  650. //
  651. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteChannel
  652. func (c *IoTAnalytics) DeleteChannelRequest(input *DeleteChannelInput) (req *request.Request, output *DeleteChannelOutput) {
  653. op := &request.Operation{
  654. Name: opDeleteChannel,
  655. HTTPMethod: "DELETE",
  656. HTTPPath: "/channels/{channelName}",
  657. }
  658. if input == nil {
  659. input = &DeleteChannelInput{}
  660. }
  661. output = &DeleteChannelOutput{}
  662. req = c.newRequest(op, input, output)
  663. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  664. return
  665. }
  666. // DeleteChannel API operation for AWS IoT Analytics.
  667. //
  668. // Deletes the specified channel.
  669. //
  670. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  671. // with awserr.Error's Code and Message methods to get detailed information about
  672. // the error.
  673. //
  674. // See the AWS API reference guide for AWS IoT Analytics's
  675. // API operation DeleteChannel for usage and error information.
  676. //
  677. // Returned Error Codes:
  678. // * ErrCodeInvalidRequestException "InvalidRequestException"
  679. // The request was not valid.
  680. //
  681. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  682. // A resource with the specified name could not be found.
  683. //
  684. // * ErrCodeInternalFailureException "InternalFailureException"
  685. // There was an internal failure.
  686. //
  687. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  688. // The service is temporarily unavailable.
  689. //
  690. // * ErrCodeThrottlingException "ThrottlingException"
  691. // The request was denied due to request throttling.
  692. //
  693. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteChannel
  694. func (c *IoTAnalytics) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
  695. req, out := c.DeleteChannelRequest(input)
  696. return out, req.Send()
  697. }
  698. // DeleteChannelWithContext is the same as DeleteChannel with the addition of
  699. // the ability to pass a context and additional request options.
  700. //
  701. // See DeleteChannel for details on how to use this API operation.
  702. //
  703. // The context must be non-nil and will be used for request cancellation. If
  704. // the context is nil a panic will occur. In the future the SDK may create
  705. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  706. // for more information on using Contexts.
  707. func (c *IoTAnalytics) DeleteChannelWithContext(ctx aws.Context, input *DeleteChannelInput, opts ...request.Option) (*DeleteChannelOutput, error) {
  708. req, out := c.DeleteChannelRequest(input)
  709. req.SetContext(ctx)
  710. req.ApplyOptions(opts...)
  711. return out, req.Send()
  712. }
  713. const opDeleteDataset = "DeleteDataset"
  714. // DeleteDatasetRequest generates a "aws/request.Request" representing the
  715. // client's request for the DeleteDataset operation. The "output" return
  716. // value will be populated with the request's response once the request completes
  717. // successfully.
  718. //
  719. // Use "Send" method on the returned Request to send the API call to the service.
  720. // the "output" return value is not valid until after Send returns without error.
  721. //
  722. // See DeleteDataset for more information on using the DeleteDataset
  723. // API call, and error handling.
  724. //
  725. // This method is useful when you want to inject custom logic or configuration
  726. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  727. //
  728. //
  729. // // Example sending a request using the DeleteDatasetRequest method.
  730. // req, resp := client.DeleteDatasetRequest(params)
  731. //
  732. // err := req.Send()
  733. // if err == nil { // resp is now filled
  734. // fmt.Println(resp)
  735. // }
  736. //
  737. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDataset
  738. func (c *IoTAnalytics) DeleteDatasetRequest(input *DeleteDatasetInput) (req *request.Request, output *DeleteDatasetOutput) {
  739. op := &request.Operation{
  740. Name: opDeleteDataset,
  741. HTTPMethod: "DELETE",
  742. HTTPPath: "/datasets/{datasetName}",
  743. }
  744. if input == nil {
  745. input = &DeleteDatasetInput{}
  746. }
  747. output = &DeleteDatasetOutput{}
  748. req = c.newRequest(op, input, output)
  749. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  750. return
  751. }
  752. // DeleteDataset API operation for AWS IoT Analytics.
  753. //
  754. // Deletes the specified data set.
  755. //
  756. // You do not have to delete the content of the data set before you perform
  757. // this operation.
  758. //
  759. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  760. // with awserr.Error's Code and Message methods to get detailed information about
  761. // the error.
  762. //
  763. // See the AWS API reference guide for AWS IoT Analytics's
  764. // API operation DeleteDataset for usage and error information.
  765. //
  766. // Returned Error Codes:
  767. // * ErrCodeInvalidRequestException "InvalidRequestException"
  768. // The request was not valid.
  769. //
  770. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  771. // A resource with the specified name could not be found.
  772. //
  773. // * ErrCodeInternalFailureException "InternalFailureException"
  774. // There was an internal failure.
  775. //
  776. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  777. // The service is temporarily unavailable.
  778. //
  779. // * ErrCodeThrottlingException "ThrottlingException"
  780. // The request was denied due to request throttling.
  781. //
  782. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDataset
  783. func (c *IoTAnalytics) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) {
  784. req, out := c.DeleteDatasetRequest(input)
  785. return out, req.Send()
  786. }
  787. // DeleteDatasetWithContext is the same as DeleteDataset with the addition of
  788. // the ability to pass a context and additional request options.
  789. //
  790. // See DeleteDataset for details on how to use this API operation.
  791. //
  792. // The context must be non-nil and will be used for request cancellation. If
  793. // the context is nil a panic will occur. In the future the SDK may create
  794. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  795. // for more information on using Contexts.
  796. func (c *IoTAnalytics) DeleteDatasetWithContext(ctx aws.Context, input *DeleteDatasetInput, opts ...request.Option) (*DeleteDatasetOutput, error) {
  797. req, out := c.DeleteDatasetRequest(input)
  798. req.SetContext(ctx)
  799. req.ApplyOptions(opts...)
  800. return out, req.Send()
  801. }
  802. const opDeleteDatasetContent = "DeleteDatasetContent"
  803. // DeleteDatasetContentRequest generates a "aws/request.Request" representing the
  804. // client's request for the DeleteDatasetContent operation. The "output" return
  805. // value will be populated with the request's response once the request completes
  806. // successfully.
  807. //
  808. // Use "Send" method on the returned Request to send the API call to the service.
  809. // the "output" return value is not valid until after Send returns without error.
  810. //
  811. // See DeleteDatasetContent for more information on using the DeleteDatasetContent
  812. // API call, and error handling.
  813. //
  814. // This method is useful when you want to inject custom logic or configuration
  815. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  816. //
  817. //
  818. // // Example sending a request using the DeleteDatasetContentRequest method.
  819. // req, resp := client.DeleteDatasetContentRequest(params)
  820. //
  821. // err := req.Send()
  822. // if err == nil { // resp is now filled
  823. // fmt.Println(resp)
  824. // }
  825. //
  826. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatasetContent
  827. func (c *IoTAnalytics) DeleteDatasetContentRequest(input *DeleteDatasetContentInput) (req *request.Request, output *DeleteDatasetContentOutput) {
  828. op := &request.Operation{
  829. Name: opDeleteDatasetContent,
  830. HTTPMethod: "DELETE",
  831. HTTPPath: "/datasets/{datasetName}/content",
  832. }
  833. if input == nil {
  834. input = &DeleteDatasetContentInput{}
  835. }
  836. output = &DeleteDatasetContentOutput{}
  837. req = c.newRequest(op, input, output)
  838. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  839. return
  840. }
  841. // DeleteDatasetContent API operation for AWS IoT Analytics.
  842. //
  843. // Deletes the content of the specified data set.
  844. //
  845. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  846. // with awserr.Error's Code and Message methods to get detailed information about
  847. // the error.
  848. //
  849. // See the AWS API reference guide for AWS IoT Analytics's
  850. // API operation DeleteDatasetContent for usage and error information.
  851. //
  852. // Returned Error Codes:
  853. // * ErrCodeInvalidRequestException "InvalidRequestException"
  854. // The request was not valid.
  855. //
  856. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  857. // A resource with the specified name could not be found.
  858. //
  859. // * ErrCodeInternalFailureException "InternalFailureException"
  860. // There was an internal failure.
  861. //
  862. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  863. // The service is temporarily unavailable.
  864. //
  865. // * ErrCodeThrottlingException "ThrottlingException"
  866. // The request was denied due to request throttling.
  867. //
  868. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatasetContent
  869. func (c *IoTAnalytics) DeleteDatasetContent(input *DeleteDatasetContentInput) (*DeleteDatasetContentOutput, error) {
  870. req, out := c.DeleteDatasetContentRequest(input)
  871. return out, req.Send()
  872. }
  873. // DeleteDatasetContentWithContext is the same as DeleteDatasetContent with the addition of
  874. // the ability to pass a context and additional request options.
  875. //
  876. // See DeleteDatasetContent for details on how to use this API operation.
  877. //
  878. // The context must be non-nil and will be used for request cancellation. If
  879. // the context is nil a panic will occur. In the future the SDK may create
  880. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  881. // for more information on using Contexts.
  882. func (c *IoTAnalytics) DeleteDatasetContentWithContext(ctx aws.Context, input *DeleteDatasetContentInput, opts ...request.Option) (*DeleteDatasetContentOutput, error) {
  883. req, out := c.DeleteDatasetContentRequest(input)
  884. req.SetContext(ctx)
  885. req.ApplyOptions(opts...)
  886. return out, req.Send()
  887. }
  888. const opDeleteDatastore = "DeleteDatastore"
  889. // DeleteDatastoreRequest generates a "aws/request.Request" representing the
  890. // client's request for the DeleteDatastore operation. The "output" return
  891. // value will be populated with the request's response once the request completes
  892. // successfully.
  893. //
  894. // Use "Send" method on the returned Request to send the API call to the service.
  895. // the "output" return value is not valid until after Send returns without error.
  896. //
  897. // See DeleteDatastore for more information on using the DeleteDatastore
  898. // API call, and error handling.
  899. //
  900. // This method is useful when you want to inject custom logic or configuration
  901. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  902. //
  903. //
  904. // // Example sending a request using the DeleteDatastoreRequest method.
  905. // req, resp := client.DeleteDatastoreRequest(params)
  906. //
  907. // err := req.Send()
  908. // if err == nil { // resp is now filled
  909. // fmt.Println(resp)
  910. // }
  911. //
  912. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatastore
  913. func (c *IoTAnalytics) DeleteDatastoreRequest(input *DeleteDatastoreInput) (req *request.Request, output *DeleteDatastoreOutput) {
  914. op := &request.Operation{
  915. Name: opDeleteDatastore,
  916. HTTPMethod: "DELETE",
  917. HTTPPath: "/datastores/{datastoreName}",
  918. }
  919. if input == nil {
  920. input = &DeleteDatastoreInput{}
  921. }
  922. output = &DeleteDatastoreOutput{}
  923. req = c.newRequest(op, input, output)
  924. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  925. return
  926. }
  927. // DeleteDatastore API operation for AWS IoT Analytics.
  928. //
  929. // Deletes the specified data store.
  930. //
  931. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  932. // with awserr.Error's Code and Message methods to get detailed information about
  933. // the error.
  934. //
  935. // See the AWS API reference guide for AWS IoT Analytics's
  936. // API operation DeleteDatastore for usage and error information.
  937. //
  938. // Returned Error Codes:
  939. // * ErrCodeInvalidRequestException "InvalidRequestException"
  940. // The request was not valid.
  941. //
  942. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  943. // A resource with the specified name could not be found.
  944. //
  945. // * ErrCodeInternalFailureException "InternalFailureException"
  946. // There was an internal failure.
  947. //
  948. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  949. // The service is temporarily unavailable.
  950. //
  951. // * ErrCodeThrottlingException "ThrottlingException"
  952. // The request was denied due to request throttling.
  953. //
  954. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatastore
  955. func (c *IoTAnalytics) DeleteDatastore(input *DeleteDatastoreInput) (*DeleteDatastoreOutput, error) {
  956. req, out := c.DeleteDatastoreRequest(input)
  957. return out, req.Send()
  958. }
  959. // DeleteDatastoreWithContext is the same as DeleteDatastore with the addition of
  960. // the ability to pass a context and additional request options.
  961. //
  962. // See DeleteDatastore for details on how to use this API operation.
  963. //
  964. // The context must be non-nil and will be used for request cancellation. If
  965. // the context is nil a panic will occur. In the future the SDK may create
  966. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  967. // for more information on using Contexts.
  968. func (c *IoTAnalytics) DeleteDatastoreWithContext(ctx aws.Context, input *DeleteDatastoreInput, opts ...request.Option) (*DeleteDatastoreOutput, error) {
  969. req, out := c.DeleteDatastoreRequest(input)
  970. req.SetContext(ctx)
  971. req.ApplyOptions(opts...)
  972. return out, req.Send()
  973. }
  974. const opDeletePipeline = "DeletePipeline"
  975. // DeletePipelineRequest generates a "aws/request.Request" representing the
  976. // client's request for the DeletePipeline operation. The "output" return
  977. // value will be populated with the request's response once the request completes
  978. // successfully.
  979. //
  980. // Use "Send" method on the returned Request to send the API call to the service.
  981. // the "output" return value is not valid until after Send returns without error.
  982. //
  983. // See DeletePipeline for more information on using the DeletePipeline
  984. // API call, and error handling.
  985. //
  986. // This method is useful when you want to inject custom logic or configuration
  987. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  988. //
  989. //
  990. // // Example sending a request using the DeletePipelineRequest method.
  991. // req, resp := client.DeletePipelineRequest(params)
  992. //
  993. // err := req.Send()
  994. // if err == nil { // resp is now filled
  995. // fmt.Println(resp)
  996. // }
  997. //
  998. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeletePipeline
  999. func (c *IoTAnalytics) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
  1000. op := &request.Operation{
  1001. Name: opDeletePipeline,
  1002. HTTPMethod: "DELETE",
  1003. HTTPPath: "/pipelines/{pipelineName}",
  1004. }
  1005. if input == nil {
  1006. input = &DeletePipelineInput{}
  1007. }
  1008. output = &DeletePipelineOutput{}
  1009. req = c.newRequest(op, input, output)
  1010. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1011. return
  1012. }
  1013. // DeletePipeline API operation for AWS IoT Analytics.
  1014. //
  1015. // Deletes the specified pipeline.
  1016. //
  1017. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1018. // with awserr.Error's Code and Message methods to get detailed information about
  1019. // the error.
  1020. //
  1021. // See the AWS API reference guide for AWS IoT Analytics's
  1022. // API operation DeletePipeline for usage and error information.
  1023. //
  1024. // Returned Error Codes:
  1025. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1026. // The request was not valid.
  1027. //
  1028. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1029. // A resource with the specified name could not be found.
  1030. //
  1031. // * ErrCodeInternalFailureException "InternalFailureException"
  1032. // There was an internal failure.
  1033. //
  1034. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1035. // The service is temporarily unavailable.
  1036. //
  1037. // * ErrCodeThrottlingException "ThrottlingException"
  1038. // The request was denied due to request throttling.
  1039. //
  1040. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeletePipeline
  1041. func (c *IoTAnalytics) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
  1042. req, out := c.DeletePipelineRequest(input)
  1043. return out, req.Send()
  1044. }
  1045. // DeletePipelineWithContext is the same as DeletePipeline with the addition of
  1046. // the ability to pass a context and additional request options.
  1047. //
  1048. // See DeletePipeline for details on how to use this API operation.
  1049. //
  1050. // The context must be non-nil and will be used for request cancellation. If
  1051. // the context is nil a panic will occur. In the future the SDK may create
  1052. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1053. // for more information on using Contexts.
  1054. func (c *IoTAnalytics) DeletePipelineWithContext(ctx aws.Context, input *DeletePipelineInput, opts ...request.Option) (*DeletePipelineOutput, error) {
  1055. req, out := c.DeletePipelineRequest(input)
  1056. req.SetContext(ctx)
  1057. req.ApplyOptions(opts...)
  1058. return out, req.Send()
  1059. }
  1060. const opDescribeChannel = "DescribeChannel"
  1061. // DescribeChannelRequest generates a "aws/request.Request" representing the
  1062. // client's request for the DescribeChannel operation. The "output" return
  1063. // value will be populated with the request's response once the request completes
  1064. // successfully.
  1065. //
  1066. // Use "Send" method on the returned Request to send the API call to the service.
  1067. // the "output" return value is not valid until after Send returns without error.
  1068. //
  1069. // See DescribeChannel for more information on using the DescribeChannel
  1070. // API call, and error handling.
  1071. //
  1072. // This method is useful when you want to inject custom logic or configuration
  1073. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1074. //
  1075. //
  1076. // // Example sending a request using the DescribeChannelRequest method.
  1077. // req, resp := client.DescribeChannelRequest(params)
  1078. //
  1079. // err := req.Send()
  1080. // if err == nil { // resp is now filled
  1081. // fmt.Println(resp)
  1082. // }
  1083. //
  1084. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeChannel
  1085. func (c *IoTAnalytics) DescribeChannelRequest(input *DescribeChannelInput) (req *request.Request, output *DescribeChannelOutput) {
  1086. op := &request.Operation{
  1087. Name: opDescribeChannel,
  1088. HTTPMethod: "GET",
  1089. HTTPPath: "/channels/{channelName}",
  1090. }
  1091. if input == nil {
  1092. input = &DescribeChannelInput{}
  1093. }
  1094. output = &DescribeChannelOutput{}
  1095. req = c.newRequest(op, input, output)
  1096. return
  1097. }
  1098. // DescribeChannel API operation for AWS IoT Analytics.
  1099. //
  1100. // Retrieves information about a channel.
  1101. //
  1102. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1103. // with awserr.Error's Code and Message methods to get detailed information about
  1104. // the error.
  1105. //
  1106. // See the AWS API reference guide for AWS IoT Analytics's
  1107. // API operation DescribeChannel for usage and error information.
  1108. //
  1109. // Returned Error Codes:
  1110. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1111. // The request was not valid.
  1112. //
  1113. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1114. // A resource with the specified name could not be found.
  1115. //
  1116. // * ErrCodeInternalFailureException "InternalFailureException"
  1117. // There was an internal failure.
  1118. //
  1119. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1120. // The service is temporarily unavailable.
  1121. //
  1122. // * ErrCodeThrottlingException "ThrottlingException"
  1123. // The request was denied due to request throttling.
  1124. //
  1125. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeChannel
  1126. func (c *IoTAnalytics) DescribeChannel(input *DescribeChannelInput) (*DescribeChannelOutput, error) {
  1127. req, out := c.DescribeChannelRequest(input)
  1128. return out, req.Send()
  1129. }
  1130. // DescribeChannelWithContext is the same as DescribeChannel with the addition of
  1131. // the ability to pass a context and additional request options.
  1132. //
  1133. // See DescribeChannel for details on how to use this API operation.
  1134. //
  1135. // The context must be non-nil and will be used for request cancellation. If
  1136. // the context is nil a panic will occur. In the future the SDK may create
  1137. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1138. // for more information on using Contexts.
  1139. func (c *IoTAnalytics) DescribeChannelWithContext(ctx aws.Context, input *DescribeChannelInput, opts ...request.Option) (*DescribeChannelOutput, error) {
  1140. req, out := c.DescribeChannelRequest(input)
  1141. req.SetContext(ctx)
  1142. req.ApplyOptions(opts...)
  1143. return out, req.Send()
  1144. }
  1145. const opDescribeDataset = "DescribeDataset"
  1146. // DescribeDatasetRequest generates a "aws/request.Request" representing the
  1147. // client's request for the DescribeDataset operation. The "output" return
  1148. // value will be populated with the request's response once the request completes
  1149. // successfully.
  1150. //
  1151. // Use "Send" method on the returned Request to send the API call to the service.
  1152. // the "output" return value is not valid until after Send returns without error.
  1153. //
  1154. // See DescribeDataset for more information on using the DescribeDataset
  1155. // API call, and error handling.
  1156. //
  1157. // This method is useful when you want to inject custom logic or configuration
  1158. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1159. //
  1160. //
  1161. // // Example sending a request using the DescribeDatasetRequest method.
  1162. // req, resp := client.DescribeDatasetRequest(params)
  1163. //
  1164. // err := req.Send()
  1165. // if err == nil { // resp is now filled
  1166. // fmt.Println(resp)
  1167. // }
  1168. //
  1169. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDataset
  1170. func (c *IoTAnalytics) DescribeDatasetRequest(input *DescribeDatasetInput) (req *request.Request, output *DescribeDatasetOutput) {
  1171. op := &request.Operation{
  1172. Name: opDescribeDataset,
  1173. HTTPMethod: "GET",
  1174. HTTPPath: "/datasets/{datasetName}",
  1175. }
  1176. if input == nil {
  1177. input = &DescribeDatasetInput{}
  1178. }
  1179. output = &DescribeDatasetOutput{}
  1180. req = c.newRequest(op, input, output)
  1181. return
  1182. }
  1183. // DescribeDataset API operation for AWS IoT Analytics.
  1184. //
  1185. // Retrieves information about a data set.
  1186. //
  1187. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1188. // with awserr.Error's Code and Message methods to get detailed information about
  1189. // the error.
  1190. //
  1191. // See the AWS API reference guide for AWS IoT Analytics's
  1192. // API operation DescribeDataset for usage and error information.
  1193. //
  1194. // Returned Error Codes:
  1195. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1196. // The request was not valid.
  1197. //
  1198. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1199. // A resource with the specified name could not be found.
  1200. //
  1201. // * ErrCodeInternalFailureException "InternalFailureException"
  1202. // There was an internal failure.
  1203. //
  1204. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1205. // The service is temporarily unavailable.
  1206. //
  1207. // * ErrCodeThrottlingException "ThrottlingException"
  1208. // The request was denied due to request throttling.
  1209. //
  1210. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDataset
  1211. func (c *IoTAnalytics) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) {
  1212. req, out := c.DescribeDatasetRequest(input)
  1213. return out, req.Send()
  1214. }
  1215. // DescribeDatasetWithContext is the same as DescribeDataset with the addition of
  1216. // the ability to pass a context and additional request options.
  1217. //
  1218. // See DescribeDataset for details on how to use this API operation.
  1219. //
  1220. // The context must be non-nil and will be used for request cancellation. If
  1221. // the context is nil a panic will occur. In the future the SDK may create
  1222. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1223. // for more information on using Contexts.
  1224. func (c *IoTAnalytics) DescribeDatasetWithContext(ctx aws.Context, input *DescribeDatasetInput, opts ...request.Option) (*DescribeDatasetOutput, error) {
  1225. req, out := c.DescribeDatasetRequest(input)
  1226. req.SetContext(ctx)
  1227. req.ApplyOptions(opts...)
  1228. return out, req.Send()
  1229. }
  1230. const opDescribeDatastore = "DescribeDatastore"
  1231. // DescribeDatastoreRequest generates a "aws/request.Request" representing the
  1232. // client's request for the DescribeDatastore operation. The "output" return
  1233. // value will be populated with the request's response once the request completes
  1234. // successfully.
  1235. //
  1236. // Use "Send" method on the returned Request to send the API call to the service.
  1237. // the "output" return value is not valid until after Send returns without error.
  1238. //
  1239. // See DescribeDatastore for more information on using the DescribeDatastore
  1240. // API call, and error handling.
  1241. //
  1242. // This method is useful when you want to inject custom logic or configuration
  1243. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1244. //
  1245. //
  1246. // // Example sending a request using the DescribeDatastoreRequest method.
  1247. // req, resp := client.DescribeDatastoreRequest(params)
  1248. //
  1249. // err := req.Send()
  1250. // if err == nil { // resp is now filled
  1251. // fmt.Println(resp)
  1252. // }
  1253. //
  1254. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDatastore
  1255. func (c *IoTAnalytics) DescribeDatastoreRequest(input *DescribeDatastoreInput) (req *request.Request, output *DescribeDatastoreOutput) {
  1256. op := &request.Operation{
  1257. Name: opDescribeDatastore,
  1258. HTTPMethod: "GET",
  1259. HTTPPath: "/datastores/{datastoreName}",
  1260. }
  1261. if input == nil {
  1262. input = &DescribeDatastoreInput{}
  1263. }
  1264. output = &DescribeDatastoreOutput{}
  1265. req = c.newRequest(op, input, output)
  1266. return
  1267. }
  1268. // DescribeDatastore API operation for AWS IoT Analytics.
  1269. //
  1270. // Retrieves information about a data store.
  1271. //
  1272. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1273. // with awserr.Error's Code and Message methods to get detailed information about
  1274. // the error.
  1275. //
  1276. // See the AWS API reference guide for AWS IoT Analytics's
  1277. // API operation DescribeDatastore for usage and error information.
  1278. //
  1279. // Returned Error Codes:
  1280. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1281. // The request was not valid.
  1282. //
  1283. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1284. // A resource with the specified name could not be found.
  1285. //
  1286. // * ErrCodeInternalFailureException "InternalFailureException"
  1287. // There was an internal failure.
  1288. //
  1289. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1290. // The service is temporarily unavailable.
  1291. //
  1292. // * ErrCodeThrottlingException "ThrottlingException"
  1293. // The request was denied due to request throttling.
  1294. //
  1295. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDatastore
  1296. func (c *IoTAnalytics) DescribeDatastore(input *DescribeDatastoreInput) (*DescribeDatastoreOutput, error) {
  1297. req, out := c.DescribeDatastoreRequest(input)
  1298. return out, req.Send()
  1299. }
  1300. // DescribeDatastoreWithContext is the same as DescribeDatastore with the addition of
  1301. // the ability to pass a context and additional request options.
  1302. //
  1303. // See DescribeDatastore for details on how to use this API operation.
  1304. //
  1305. // The context must be non-nil and will be used for request cancellation. If
  1306. // the context is nil a panic will occur. In the future the SDK may create
  1307. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1308. // for more information on using Contexts.
  1309. func (c *IoTAnalytics) DescribeDatastoreWithContext(ctx aws.Context, input *DescribeDatastoreInput, opts ...request.Option) (*DescribeDatastoreOutput, error) {
  1310. req, out := c.DescribeDatastoreRequest(input)
  1311. req.SetContext(ctx)
  1312. req.ApplyOptions(opts...)
  1313. return out, req.Send()
  1314. }
  1315. const opDescribeLoggingOptions = "DescribeLoggingOptions"
  1316. // DescribeLoggingOptionsRequest generates a "aws/request.Request" representing the
  1317. // client's request for the DescribeLoggingOptions operation. The "output" return
  1318. // value will be populated with the request's response once the request completes
  1319. // successfully.
  1320. //
  1321. // Use "Send" method on the returned Request to send the API call to the service.
  1322. // the "output" return value is not valid until after Send returns without error.
  1323. //
  1324. // See DescribeLoggingOptions for more information on using the DescribeLoggingOptions
  1325. // API call, and error handling.
  1326. //
  1327. // This method is useful when you want to inject custom logic or configuration
  1328. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1329. //
  1330. //
  1331. // // Example sending a request using the DescribeLoggingOptionsRequest method.
  1332. // req, resp := client.DescribeLoggingOptionsRequest(params)
  1333. //
  1334. // err := req.Send()
  1335. // if err == nil { // resp is now filled
  1336. // fmt.Println(resp)
  1337. // }
  1338. //
  1339. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeLoggingOptions
  1340. func (c *IoTAnalytics) DescribeLoggingOptionsRequest(input *DescribeLoggingOptionsInput) (req *request.Request, output *DescribeLoggingOptionsOutput) {
  1341. op := &request.Operation{
  1342. Name: opDescribeLoggingOptions,
  1343. HTTPMethod: "GET",
  1344. HTTPPath: "/logging",
  1345. }
  1346. if input == nil {
  1347. input = &DescribeLoggingOptionsInput{}
  1348. }
  1349. output = &DescribeLoggingOptionsOutput{}
  1350. req = c.newRequest(op, input, output)
  1351. return
  1352. }
  1353. // DescribeLoggingOptions API operation for AWS IoT Analytics.
  1354. //
  1355. // Retrieves the current settings of the AWS IoT Analytics logging options.
  1356. //
  1357. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1358. // with awserr.Error's Code and Message methods to get detailed information about
  1359. // the error.
  1360. //
  1361. // See the AWS API reference guide for AWS IoT Analytics's
  1362. // API operation DescribeLoggingOptions for usage and error information.
  1363. //
  1364. // Returned Error Codes:
  1365. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1366. // The request was not valid.
  1367. //
  1368. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1369. // A resource with the specified name could not be found.
  1370. //
  1371. // * ErrCodeInternalFailureException "InternalFailureException"
  1372. // There was an internal failure.
  1373. //
  1374. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1375. // The service is temporarily unavailable.
  1376. //
  1377. // * ErrCodeThrottlingException "ThrottlingException"
  1378. // The request was denied due to request throttling.
  1379. //
  1380. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeLoggingOptions
  1381. func (c *IoTAnalytics) DescribeLoggingOptions(input *DescribeLoggingOptionsInput) (*DescribeLoggingOptionsOutput, error) {
  1382. req, out := c.DescribeLoggingOptionsRequest(input)
  1383. return out, req.Send()
  1384. }
  1385. // DescribeLoggingOptionsWithContext is the same as DescribeLoggingOptions with the addition of
  1386. // the ability to pass a context and additional request options.
  1387. //
  1388. // See DescribeLoggingOptions for details on how to use this API operation.
  1389. //
  1390. // The context must be non-nil and will be used for request cancellation. If
  1391. // the context is nil a panic will occur. In the future the SDK may create
  1392. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1393. // for more information on using Contexts.
  1394. func (c *IoTAnalytics) DescribeLoggingOptionsWithContext(ctx aws.Context, input *DescribeLoggingOptionsInput, opts ...request.Option) (*DescribeLoggingOptionsOutput, error) {
  1395. req, out := c.DescribeLoggingOptionsRequest(input)
  1396. req.SetContext(ctx)
  1397. req.ApplyOptions(opts...)
  1398. return out, req.Send()
  1399. }
  1400. const opDescribePipeline = "DescribePipeline"
  1401. // DescribePipelineRequest generates a "aws/request.Request" representing the
  1402. // client's request for the DescribePipeline operation. The "output" return
  1403. // value will be populated with the request's response once the request completes
  1404. // successfully.
  1405. //
  1406. // Use "Send" method on the returned Request to send the API call to the service.
  1407. // the "output" return value is not valid until after Send returns without error.
  1408. //
  1409. // See DescribePipeline for more information on using the DescribePipeline
  1410. // API call, and error handling.
  1411. //
  1412. // This method is useful when you want to inject custom logic or configuration
  1413. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1414. //
  1415. //
  1416. // // Example sending a request using the DescribePipelineRequest method.
  1417. // req, resp := client.DescribePipelineRequest(params)
  1418. //
  1419. // err := req.Send()
  1420. // if err == nil { // resp is now filled
  1421. // fmt.Println(resp)
  1422. // }
  1423. //
  1424. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribePipeline
  1425. func (c *IoTAnalytics) DescribePipelineRequest(input *DescribePipelineInput) (req *request.Request, output *DescribePipelineOutput) {
  1426. op := &request.Operation{
  1427. Name: opDescribePipeline,
  1428. HTTPMethod: "GET",
  1429. HTTPPath: "/pipelines/{pipelineName}",
  1430. }
  1431. if input == nil {
  1432. input = &DescribePipelineInput{}
  1433. }
  1434. output = &DescribePipelineOutput{}
  1435. req = c.newRequest(op, input, output)
  1436. return
  1437. }
  1438. // DescribePipeline API operation for AWS IoT Analytics.
  1439. //
  1440. // Retrieves information about a pipeline.
  1441. //
  1442. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1443. // with awserr.Error's Code and Message methods to get detailed information about
  1444. // the error.
  1445. //
  1446. // See the AWS API reference guide for AWS IoT Analytics's
  1447. // API operation DescribePipeline for usage and error information.
  1448. //
  1449. // Returned Error Codes:
  1450. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1451. // The request was not valid.
  1452. //
  1453. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1454. // A resource with the specified name could not be found.
  1455. //
  1456. // * ErrCodeInternalFailureException "InternalFailureException"
  1457. // There was an internal failure.
  1458. //
  1459. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1460. // The service is temporarily unavailable.
  1461. //
  1462. // * ErrCodeThrottlingException "ThrottlingException"
  1463. // The request was denied due to request throttling.
  1464. //
  1465. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribePipeline
  1466. func (c *IoTAnalytics) DescribePipeline(input *DescribePipelineInput) (*DescribePipelineOutput, error) {
  1467. req, out := c.DescribePipelineRequest(input)
  1468. return out, req.Send()
  1469. }
  1470. // DescribePipelineWithContext is the same as DescribePipeline with the addition of
  1471. // the ability to pass a context and additional request options.
  1472. //
  1473. // See DescribePipeline for details on how to use this API operation.
  1474. //
  1475. // The context must be non-nil and will be used for request cancellation. If
  1476. // the context is nil a panic will occur. In the future the SDK may create
  1477. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1478. // for more information on using Contexts.
  1479. func (c *IoTAnalytics) DescribePipelineWithContext(ctx aws.Context, input *DescribePipelineInput, opts ...request.Option) (*DescribePipelineOutput, error) {
  1480. req, out := c.DescribePipelineRequest(input)
  1481. req.SetContext(ctx)
  1482. req.ApplyOptions(opts...)
  1483. return out, req.Send()
  1484. }
  1485. const opGetDatasetContent = "GetDatasetContent"
  1486. // GetDatasetContentRequest generates a "aws/request.Request" representing the
  1487. // client's request for the GetDatasetContent operation. The "output" return
  1488. // value will be populated with the request's response once the request completes
  1489. // successfully.
  1490. //
  1491. // Use "Send" method on the returned Request to send the API call to the service.
  1492. // the "output" return value is not valid until after Send returns without error.
  1493. //
  1494. // See GetDatasetContent for more information on using the GetDatasetContent
  1495. // API call, and error handling.
  1496. //
  1497. // This method is useful when you want to inject custom logic or configuration
  1498. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1499. //
  1500. //
  1501. // // Example sending a request using the GetDatasetContentRequest method.
  1502. // req, resp := client.GetDatasetContentRequest(params)
  1503. //
  1504. // err := req.Send()
  1505. // if err == nil { // resp is now filled
  1506. // fmt.Println(resp)
  1507. // }
  1508. //
  1509. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/GetDatasetContent
  1510. func (c *IoTAnalytics) GetDatasetContentRequest(input *GetDatasetContentInput) (req *request.Request, output *GetDatasetContentOutput) {
  1511. op := &request.Operation{
  1512. Name: opGetDatasetContent,
  1513. HTTPMethod: "GET",
  1514. HTTPPath: "/datasets/{datasetName}/content",
  1515. }
  1516. if input == nil {
  1517. input = &GetDatasetContentInput{}
  1518. }
  1519. output = &GetDatasetContentOutput{}
  1520. req = c.newRequest(op, input, output)
  1521. return
  1522. }
  1523. // GetDatasetContent API operation for AWS IoT Analytics.
  1524. //
  1525. // Retrieves the contents of a data set as pre-signed URIs.
  1526. //
  1527. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1528. // with awserr.Error's Code and Message methods to get detailed information about
  1529. // the error.
  1530. //
  1531. // See the AWS API reference guide for AWS IoT Analytics's
  1532. // API operation GetDatasetContent for usage and error information.
  1533. //
  1534. // Returned Error Codes:
  1535. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1536. // The request was not valid.
  1537. //
  1538. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1539. // A resource with the specified name could not be found.
  1540. //
  1541. // * ErrCodeInternalFailureException "InternalFailureException"
  1542. // There was an internal failure.
  1543. //
  1544. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1545. // The service is temporarily unavailable.
  1546. //
  1547. // * ErrCodeThrottlingException "ThrottlingException"
  1548. // The request was denied due to request throttling.
  1549. //
  1550. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/GetDatasetContent
  1551. func (c *IoTAnalytics) GetDatasetContent(input *GetDatasetContentInput) (*GetDatasetContentOutput, error) {
  1552. req, out := c.GetDatasetContentRequest(input)
  1553. return out, req.Send()
  1554. }
  1555. // GetDatasetContentWithContext is the same as GetDatasetContent with the addition of
  1556. // the ability to pass a context and additional request options.
  1557. //
  1558. // See GetDatasetContent for details on how to use this API operation.
  1559. //
  1560. // The context must be non-nil and will be used for request cancellation. If
  1561. // the context is nil a panic will occur. In the future the SDK may create
  1562. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1563. // for more information on using Contexts.
  1564. func (c *IoTAnalytics) GetDatasetContentWithContext(ctx aws.Context, input *GetDatasetContentInput, opts ...request.Option) (*GetDatasetContentOutput, error) {
  1565. req, out := c.GetDatasetContentRequest(input)
  1566. req.SetContext(ctx)
  1567. req.ApplyOptions(opts...)
  1568. return out, req.Send()
  1569. }
  1570. const opListChannels = "ListChannels"
  1571. // ListChannelsRequest generates a "aws/request.Request" representing the
  1572. // client's request for the ListChannels operation. The "output" return
  1573. // value will be populated with the request's response once the request completes
  1574. // successfully.
  1575. //
  1576. // Use "Send" method on the returned Request to send the API call to the service.
  1577. // the "output" return value is not valid until after Send returns without error.
  1578. //
  1579. // See ListChannels for more information on using the ListChannels
  1580. // API call, and error handling.
  1581. //
  1582. // This method is useful when you want to inject custom logic or configuration
  1583. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1584. //
  1585. //
  1586. // // Example sending a request using the ListChannelsRequest method.
  1587. // req, resp := client.ListChannelsRequest(params)
  1588. //
  1589. // err := req.Send()
  1590. // if err == nil { // resp is now filled
  1591. // fmt.Println(resp)
  1592. // }
  1593. //
  1594. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListChannels
  1595. func (c *IoTAnalytics) ListChannelsRequest(input *ListChannelsInput) (req *request.Request, output *ListChannelsOutput) {
  1596. op := &request.Operation{
  1597. Name: opListChannels,
  1598. HTTPMethod: "GET",
  1599. HTTPPath: "/channels",
  1600. Paginator: &request.Paginator{
  1601. InputTokens: []string{"nextToken"},
  1602. OutputTokens: []string{"nextToken"},
  1603. LimitToken: "maxResults",
  1604. TruncationToken: "",
  1605. },
  1606. }
  1607. if input == nil {
  1608. input = &ListChannelsInput{}
  1609. }
  1610. output = &ListChannelsOutput{}
  1611. req = c.newRequest(op, input, output)
  1612. return
  1613. }
  1614. // ListChannels API operation for AWS IoT Analytics.
  1615. //
  1616. // Retrieves a list of channels.
  1617. //
  1618. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1619. // with awserr.Error's Code and Message methods to get detailed information about
  1620. // the error.
  1621. //
  1622. // See the AWS API reference guide for AWS IoT Analytics's
  1623. // API operation ListChannels for usage and error information.
  1624. //
  1625. // Returned Error Codes:
  1626. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1627. // The request was not valid.
  1628. //
  1629. // * ErrCodeInternalFailureException "InternalFailureException"
  1630. // There was an internal failure.
  1631. //
  1632. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1633. // The service is temporarily unavailable.
  1634. //
  1635. // * ErrCodeThrottlingException "ThrottlingException"
  1636. // The request was denied due to request throttling.
  1637. //
  1638. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListChannels
  1639. func (c *IoTAnalytics) ListChannels(input *ListChannelsInput) (*ListChannelsOutput, error) {
  1640. req, out := c.ListChannelsRequest(input)
  1641. return out, req.Send()
  1642. }
  1643. // ListChannelsWithContext is the same as ListChannels with the addition of
  1644. // the ability to pass a context and additional request options.
  1645. //
  1646. // See ListChannels for details on how to use this API operation.
  1647. //
  1648. // The context must be non-nil and will be used for request cancellation. If
  1649. // the context is nil a panic will occur. In the future the SDK may create
  1650. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1651. // for more information on using Contexts.
  1652. func (c *IoTAnalytics) ListChannelsWithContext(ctx aws.Context, input *ListChannelsInput, opts ...request.Option) (*ListChannelsOutput, error) {
  1653. req, out := c.ListChannelsRequest(input)
  1654. req.SetContext(ctx)
  1655. req.ApplyOptions(opts...)
  1656. return out, req.Send()
  1657. }
  1658. // ListChannelsPages iterates over the pages of a ListChannels operation,
  1659. // calling the "fn" function with the response data for each page. To stop
  1660. // iterating, return false from the fn function.
  1661. //
  1662. // See ListChannels method for more information on how to use this operation.
  1663. //
  1664. // Note: This operation can generate multiple requests to a service.
  1665. //
  1666. // // Example iterating over at most 3 pages of a ListChannels operation.
  1667. // pageNum := 0
  1668. // err := client.ListChannelsPages(params,
  1669. // func(page *ListChannelsOutput, lastPage bool) bool {
  1670. // pageNum++
  1671. // fmt.Println(page)
  1672. // return pageNum <= 3
  1673. // })
  1674. //
  1675. func (c *IoTAnalytics) ListChannelsPages(input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool) error {
  1676. return c.ListChannelsPagesWithContext(aws.BackgroundContext(), input, fn)
  1677. }
  1678. // ListChannelsPagesWithContext same as ListChannelsPages except
  1679. // it takes a Context and allows setting request options on the pages.
  1680. //
  1681. // The context must be non-nil and will be used for request cancellation. If
  1682. // the context is nil a panic will occur. In the future the SDK may create
  1683. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1684. // for more information on using Contexts.
  1685. func (c *IoTAnalytics) ListChannelsPagesWithContext(ctx aws.Context, input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool, opts ...request.Option) error {
  1686. p := request.Pagination{
  1687. NewRequest: func() (*request.Request, error) {
  1688. var inCpy *ListChannelsInput
  1689. if input != nil {
  1690. tmp := *input
  1691. inCpy = &tmp
  1692. }
  1693. req, _ := c.ListChannelsRequest(inCpy)
  1694. req.SetContext(ctx)
  1695. req.ApplyOptions(opts...)
  1696. return req, nil
  1697. },
  1698. }
  1699. cont := true
  1700. for p.Next() && cont {
  1701. cont = fn(p.Page().(*ListChannelsOutput), !p.HasNextPage())
  1702. }
  1703. return p.Err()
  1704. }
  1705. const opListDatasetContents = "ListDatasetContents"
  1706. // ListDatasetContentsRequest generates a "aws/request.Request" representing the
  1707. // client's request for the ListDatasetContents operation. The "output" return
  1708. // value will be populated with the request's response once the request completes
  1709. // successfully.
  1710. //
  1711. // Use "Send" method on the returned Request to send the API call to the service.
  1712. // the "output" return value is not valid until after Send returns without error.
  1713. //
  1714. // See ListDatasetContents for more information on using the ListDatasetContents
  1715. // API call, and error handling.
  1716. //
  1717. // This method is useful when you want to inject custom logic or configuration
  1718. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1719. //
  1720. //
  1721. // // Example sending a request using the ListDatasetContentsRequest method.
  1722. // req, resp := client.ListDatasetContentsRequest(params)
  1723. //
  1724. // err := req.Send()
  1725. // if err == nil { // resp is now filled
  1726. // fmt.Println(resp)
  1727. // }
  1728. //
  1729. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasetContents
  1730. func (c *IoTAnalytics) ListDatasetContentsRequest(input *ListDatasetContentsInput) (req *request.Request, output *ListDatasetContentsOutput) {
  1731. op := &request.Operation{
  1732. Name: opListDatasetContents,
  1733. HTTPMethod: "GET",
  1734. HTTPPath: "/datasets/{datasetName}/contents",
  1735. Paginator: &request.Paginator{
  1736. InputTokens: []string{"nextToken"},
  1737. OutputTokens: []string{"nextToken"},
  1738. LimitToken: "maxResults",
  1739. TruncationToken: "",
  1740. },
  1741. }
  1742. if input == nil {
  1743. input = &ListDatasetContentsInput{}
  1744. }
  1745. output = &ListDatasetContentsOutput{}
  1746. req = c.newRequest(op, input, output)
  1747. return
  1748. }
  1749. // ListDatasetContents API operation for AWS IoT Analytics.
  1750. //
  1751. // Lists information about data set contents that have been created.
  1752. //
  1753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1754. // with awserr.Error's Code and Message methods to get detailed information about
  1755. // the error.
  1756. //
  1757. // See the AWS API reference guide for AWS IoT Analytics's
  1758. // API operation ListDatasetContents for usage and error information.
  1759. //
  1760. // Returned Error Codes:
  1761. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1762. // The request was not valid.
  1763. //
  1764. // * ErrCodeInternalFailureException "InternalFailureException"
  1765. // There was an internal failure.
  1766. //
  1767. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1768. // The service is temporarily unavailable.
  1769. //
  1770. // * ErrCodeThrottlingException "ThrottlingException"
  1771. // The request was denied due to request throttling.
  1772. //
  1773. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1774. // A resource with the specified name could not be found.
  1775. //
  1776. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasetContents
  1777. func (c *IoTAnalytics) ListDatasetContents(input *ListDatasetContentsInput) (*ListDatasetContentsOutput, error) {
  1778. req, out := c.ListDatasetContentsRequest(input)
  1779. return out, req.Send()
  1780. }
  1781. // ListDatasetContentsWithContext is the same as ListDatasetContents with the addition of
  1782. // the ability to pass a context and additional request options.
  1783. //
  1784. // See ListDatasetContents for details on how to use this API operation.
  1785. //
  1786. // The context must be non-nil and will be used for request cancellation. If
  1787. // the context is nil a panic will occur. In the future the SDK may create
  1788. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1789. // for more information on using Contexts.
  1790. func (c *IoTAnalytics) ListDatasetContentsWithContext(ctx aws.Context, input *ListDatasetContentsInput, opts ...request.Option) (*ListDatasetContentsOutput, error) {
  1791. req, out := c.ListDatasetContentsRequest(input)
  1792. req.SetContext(ctx)
  1793. req.ApplyOptions(opts...)
  1794. return out, req.Send()
  1795. }
  1796. // ListDatasetContentsPages iterates over the pages of a ListDatasetContents operation,
  1797. // calling the "fn" function with the response data for each page. To stop
  1798. // iterating, return false from the fn function.
  1799. //
  1800. // See ListDatasetContents method for more information on how to use this operation.
  1801. //
  1802. // Note: This operation can generate multiple requests to a service.
  1803. //
  1804. // // Example iterating over at most 3 pages of a ListDatasetContents operation.
  1805. // pageNum := 0
  1806. // err := client.ListDatasetContentsPages(params,
  1807. // func(page *ListDatasetContentsOutput, lastPage bool) bool {
  1808. // pageNum++
  1809. // fmt.Println(page)
  1810. // return pageNum <= 3
  1811. // })
  1812. //
  1813. func (c *IoTAnalytics) ListDatasetContentsPages(input *ListDatasetContentsInput, fn func(*ListDatasetContentsOutput, bool) bool) error {
  1814. return c.ListDatasetContentsPagesWithContext(aws.BackgroundContext(), input, fn)
  1815. }
  1816. // ListDatasetContentsPagesWithContext same as ListDatasetContentsPages except
  1817. // it takes a Context and allows setting request options on the pages.
  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 *IoTAnalytics) ListDatasetContentsPagesWithContext(ctx aws.Context, input *ListDatasetContentsInput, fn func(*ListDatasetContentsOutput, bool) bool, opts ...request.Option) error {
  1824. p := request.Pagination{
  1825. NewRequest: func() (*request.Request, error) {
  1826. var inCpy *ListDatasetContentsInput
  1827. if input != nil {
  1828. tmp := *input
  1829. inCpy = &tmp
  1830. }
  1831. req, _ := c.ListDatasetContentsRequest(inCpy)
  1832. req.SetContext(ctx)
  1833. req.ApplyOptions(opts...)
  1834. return req, nil
  1835. },
  1836. }
  1837. cont := true
  1838. for p.Next() && cont {
  1839. cont = fn(p.Page().(*ListDatasetContentsOutput), !p.HasNextPage())
  1840. }
  1841. return p.Err()
  1842. }
  1843. const opListDatasets = "ListDatasets"
  1844. // ListDatasetsRequest generates a "aws/request.Request" representing the
  1845. // client's request for the ListDatasets operation. The "output" return
  1846. // value will be populated with the request's response once the request completes
  1847. // successfully.
  1848. //
  1849. // Use "Send" method on the returned Request to send the API call to the service.
  1850. // the "output" return value is not valid until after Send returns without error.
  1851. //
  1852. // See ListDatasets for more information on using the ListDatasets
  1853. // API call, and error handling.
  1854. //
  1855. // This method is useful when you want to inject custom logic or configuration
  1856. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1857. //
  1858. //
  1859. // // Example sending a request using the ListDatasetsRequest method.
  1860. // req, resp := client.ListDatasetsRequest(params)
  1861. //
  1862. // err := req.Send()
  1863. // if err == nil { // resp is now filled
  1864. // fmt.Println(resp)
  1865. // }
  1866. //
  1867. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasets
  1868. func (c *IoTAnalytics) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) {
  1869. op := &request.Operation{
  1870. Name: opListDatasets,
  1871. HTTPMethod: "GET",
  1872. HTTPPath: "/datasets",
  1873. Paginator: &request.Paginator{
  1874. InputTokens: []string{"nextToken"},
  1875. OutputTokens: []string{"nextToken"},
  1876. LimitToken: "maxResults",
  1877. TruncationToken: "",
  1878. },
  1879. }
  1880. if input == nil {
  1881. input = &ListDatasetsInput{}
  1882. }
  1883. output = &ListDatasetsOutput{}
  1884. req = c.newRequest(op, input, output)
  1885. return
  1886. }
  1887. // ListDatasets API operation for AWS IoT Analytics.
  1888. //
  1889. // Retrieves information about data sets.
  1890. //
  1891. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1892. // with awserr.Error's Code and Message methods to get detailed information about
  1893. // the error.
  1894. //
  1895. // See the AWS API reference guide for AWS IoT Analytics's
  1896. // API operation ListDatasets for usage and error information.
  1897. //
  1898. // Returned Error Codes:
  1899. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1900. // The request was not valid.
  1901. //
  1902. // * ErrCodeInternalFailureException "InternalFailureException"
  1903. // There was an internal failure.
  1904. //
  1905. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1906. // The service is temporarily unavailable.
  1907. //
  1908. // * ErrCodeThrottlingException "ThrottlingException"
  1909. // The request was denied due to request throttling.
  1910. //
  1911. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasets
  1912. func (c *IoTAnalytics) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) {
  1913. req, out := c.ListDatasetsRequest(input)
  1914. return out, req.Send()
  1915. }
  1916. // ListDatasetsWithContext is the same as ListDatasets with the addition of
  1917. // the ability to pass a context and additional request options.
  1918. //
  1919. // See ListDatasets for details on how to use this API operation.
  1920. //
  1921. // The context must be non-nil and will be used for request cancellation. If
  1922. // the context is nil a panic will occur. In the future the SDK may create
  1923. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1924. // for more information on using Contexts.
  1925. func (c *IoTAnalytics) ListDatasetsWithContext(ctx aws.Context, input *ListDatasetsInput, opts ...request.Option) (*ListDatasetsOutput, error) {
  1926. req, out := c.ListDatasetsRequest(input)
  1927. req.SetContext(ctx)
  1928. req.ApplyOptions(opts...)
  1929. return out, req.Send()
  1930. }
  1931. // ListDatasetsPages iterates over the pages of a ListDatasets operation,
  1932. // calling the "fn" function with the response data for each page. To stop
  1933. // iterating, return false from the fn function.
  1934. //
  1935. // See ListDatasets method for more information on how to use this operation.
  1936. //
  1937. // Note: This operation can generate multiple requests to a service.
  1938. //
  1939. // // Example iterating over at most 3 pages of a ListDatasets operation.
  1940. // pageNum := 0
  1941. // err := client.ListDatasetsPages(params,
  1942. // func(page *ListDatasetsOutput, lastPage bool) bool {
  1943. // pageNum++
  1944. // fmt.Println(page)
  1945. // return pageNum <= 3
  1946. // })
  1947. //
  1948. func (c *IoTAnalytics) ListDatasetsPages(input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool) error {
  1949. return c.ListDatasetsPagesWithContext(aws.BackgroundContext(), input, fn)
  1950. }
  1951. // ListDatasetsPagesWithContext same as ListDatasetsPages except
  1952. // it takes a Context and allows setting request options on the pages.
  1953. //
  1954. // The context must be non-nil and will be used for request cancellation. If
  1955. // the context is nil a panic will occur. In the future the SDK may create
  1956. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1957. // for more information on using Contexts.
  1958. func (c *IoTAnalytics) ListDatasetsPagesWithContext(ctx aws.Context, input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool, opts ...request.Option) error {
  1959. p := request.Pagination{
  1960. NewRequest: func() (*request.Request, error) {
  1961. var inCpy *ListDatasetsInput
  1962. if input != nil {
  1963. tmp := *input
  1964. inCpy = &tmp
  1965. }
  1966. req, _ := c.ListDatasetsRequest(inCpy)
  1967. req.SetContext(ctx)
  1968. req.ApplyOptions(opts...)
  1969. return req, nil
  1970. },
  1971. }
  1972. cont := true
  1973. for p.Next() && cont {
  1974. cont = fn(p.Page().(*ListDatasetsOutput), !p.HasNextPage())
  1975. }
  1976. return p.Err()
  1977. }
  1978. const opListDatastores = "ListDatastores"
  1979. // ListDatastoresRequest generates a "aws/request.Request" representing the
  1980. // client's request for the ListDatastores operation. The "output" return
  1981. // value will be populated with the request's response once the request completes
  1982. // successfully.
  1983. //
  1984. // Use "Send" method on the returned Request to send the API call to the service.
  1985. // the "output" return value is not valid until after Send returns without error.
  1986. //
  1987. // See ListDatastores for more information on using the ListDatastores
  1988. // API call, and error handling.
  1989. //
  1990. // This method is useful when you want to inject custom logic or configuration
  1991. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1992. //
  1993. //
  1994. // // Example sending a request using the ListDatastoresRequest method.
  1995. // req, resp := client.ListDatastoresRequest(params)
  1996. //
  1997. // err := req.Send()
  1998. // if err == nil { // resp is now filled
  1999. // fmt.Println(resp)
  2000. // }
  2001. //
  2002. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatastores
  2003. func (c *IoTAnalytics) ListDatastoresRequest(input *ListDatastoresInput) (req *request.Request, output *ListDatastoresOutput) {
  2004. op := &request.Operation{
  2005. Name: opListDatastores,
  2006. HTTPMethod: "GET",
  2007. HTTPPath: "/datastores",
  2008. Paginator: &request.Paginator{
  2009. InputTokens: []string{"nextToken"},
  2010. OutputTokens: []string{"nextToken"},
  2011. LimitToken: "maxResults",
  2012. TruncationToken: "",
  2013. },
  2014. }
  2015. if input == nil {
  2016. input = &ListDatastoresInput{}
  2017. }
  2018. output = &ListDatastoresOutput{}
  2019. req = c.newRequest(op, input, output)
  2020. return
  2021. }
  2022. // ListDatastores API operation for AWS IoT Analytics.
  2023. //
  2024. // Retrieves a list of data stores.
  2025. //
  2026. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2027. // with awserr.Error's Code and Message methods to get detailed information about
  2028. // the error.
  2029. //
  2030. // See the AWS API reference guide for AWS IoT Analytics's
  2031. // API operation ListDatastores for usage and error information.
  2032. //
  2033. // Returned Error Codes:
  2034. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2035. // The request was not valid.
  2036. //
  2037. // * ErrCodeInternalFailureException "InternalFailureException"
  2038. // There was an internal failure.
  2039. //
  2040. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2041. // The service is temporarily unavailable.
  2042. //
  2043. // * ErrCodeThrottlingException "ThrottlingException"
  2044. // The request was denied due to request throttling.
  2045. //
  2046. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatastores
  2047. func (c *IoTAnalytics) ListDatastores(input *ListDatastoresInput) (*ListDatastoresOutput, error) {
  2048. req, out := c.ListDatastoresRequest(input)
  2049. return out, req.Send()
  2050. }
  2051. // ListDatastoresWithContext is the same as ListDatastores with the addition of
  2052. // the ability to pass a context and additional request options.
  2053. //
  2054. // See ListDatastores for details on how to use this API operation.
  2055. //
  2056. // The context must be non-nil and will be used for request cancellation. If
  2057. // the context is nil a panic will occur. In the future the SDK may create
  2058. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2059. // for more information on using Contexts.
  2060. func (c *IoTAnalytics) ListDatastoresWithContext(ctx aws.Context, input *ListDatastoresInput, opts ...request.Option) (*ListDatastoresOutput, error) {
  2061. req, out := c.ListDatastoresRequest(input)
  2062. req.SetContext(ctx)
  2063. req.ApplyOptions(opts...)
  2064. return out, req.Send()
  2065. }
  2066. // ListDatastoresPages iterates over the pages of a ListDatastores operation,
  2067. // calling the "fn" function with the response data for each page. To stop
  2068. // iterating, return false from the fn function.
  2069. //
  2070. // See ListDatastores method for more information on how to use this operation.
  2071. //
  2072. // Note: This operation can generate multiple requests to a service.
  2073. //
  2074. // // Example iterating over at most 3 pages of a ListDatastores operation.
  2075. // pageNum := 0
  2076. // err := client.ListDatastoresPages(params,
  2077. // func(page *ListDatastoresOutput, lastPage bool) bool {
  2078. // pageNum++
  2079. // fmt.Println(page)
  2080. // return pageNum <= 3
  2081. // })
  2082. //
  2083. func (c *IoTAnalytics) ListDatastoresPages(input *ListDatastoresInput, fn func(*ListDatastoresOutput, bool) bool) error {
  2084. return c.ListDatastoresPagesWithContext(aws.BackgroundContext(), input, fn)
  2085. }
  2086. // ListDatastoresPagesWithContext same as ListDatastoresPages except
  2087. // it takes a Context and allows setting request options on the pages.
  2088. //
  2089. // The context must be non-nil and will be used for request cancellation. If
  2090. // the context is nil a panic will occur. In the future the SDK may create
  2091. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2092. // for more information on using Contexts.
  2093. func (c *IoTAnalytics) ListDatastoresPagesWithContext(ctx aws.Context, input *ListDatastoresInput, fn func(*ListDatastoresOutput, bool) bool, opts ...request.Option) error {
  2094. p := request.Pagination{
  2095. NewRequest: func() (*request.Request, error) {
  2096. var inCpy *ListDatastoresInput
  2097. if input != nil {
  2098. tmp := *input
  2099. inCpy = &tmp
  2100. }
  2101. req, _ := c.ListDatastoresRequest(inCpy)
  2102. req.SetContext(ctx)
  2103. req.ApplyOptions(opts...)
  2104. return req, nil
  2105. },
  2106. }
  2107. cont := true
  2108. for p.Next() && cont {
  2109. cont = fn(p.Page().(*ListDatastoresOutput), !p.HasNextPage())
  2110. }
  2111. return p.Err()
  2112. }
  2113. const opListPipelines = "ListPipelines"
  2114. // ListPipelinesRequest generates a "aws/request.Request" representing the
  2115. // client's request for the ListPipelines operation. The "output" return
  2116. // value will be populated with the request's response once the request completes
  2117. // successfully.
  2118. //
  2119. // Use "Send" method on the returned Request to send the API call to the service.
  2120. // the "output" return value is not valid until after Send returns without error.
  2121. //
  2122. // See ListPipelines for more information on using the ListPipelines
  2123. // API call, and error handling.
  2124. //
  2125. // This method is useful when you want to inject custom logic or configuration
  2126. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2127. //
  2128. //
  2129. // // Example sending a request using the ListPipelinesRequest method.
  2130. // req, resp := client.ListPipelinesRequest(params)
  2131. //
  2132. // err := req.Send()
  2133. // if err == nil { // resp is now filled
  2134. // fmt.Println(resp)
  2135. // }
  2136. //
  2137. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListPipelines
  2138. func (c *IoTAnalytics) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
  2139. op := &request.Operation{
  2140. Name: opListPipelines,
  2141. HTTPMethod: "GET",
  2142. HTTPPath: "/pipelines",
  2143. Paginator: &request.Paginator{
  2144. InputTokens: []string{"nextToken"},
  2145. OutputTokens: []string{"nextToken"},
  2146. LimitToken: "maxResults",
  2147. TruncationToken: "",
  2148. },
  2149. }
  2150. if input == nil {
  2151. input = &ListPipelinesInput{}
  2152. }
  2153. output = &ListPipelinesOutput{}
  2154. req = c.newRequest(op, input, output)
  2155. return
  2156. }
  2157. // ListPipelines API operation for AWS IoT Analytics.
  2158. //
  2159. // Retrieves a list of pipelines.
  2160. //
  2161. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2162. // with awserr.Error's Code and Message methods to get detailed information about
  2163. // the error.
  2164. //
  2165. // See the AWS API reference guide for AWS IoT Analytics's
  2166. // API operation ListPipelines for usage and error information.
  2167. //
  2168. // Returned Error Codes:
  2169. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2170. // The request was not valid.
  2171. //
  2172. // * ErrCodeInternalFailureException "InternalFailureException"
  2173. // There was an internal failure.
  2174. //
  2175. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2176. // The service is temporarily unavailable.
  2177. //
  2178. // * ErrCodeThrottlingException "ThrottlingException"
  2179. // The request was denied due to request throttling.
  2180. //
  2181. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListPipelines
  2182. func (c *IoTAnalytics) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
  2183. req, out := c.ListPipelinesRequest(input)
  2184. return out, req.Send()
  2185. }
  2186. // ListPipelinesWithContext is the same as ListPipelines with the addition of
  2187. // the ability to pass a context and additional request options.
  2188. //
  2189. // See ListPipelines for details on how to use this API operation.
  2190. //
  2191. // The context must be non-nil and will be used for request cancellation. If
  2192. // the context is nil a panic will occur. In the future the SDK may create
  2193. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2194. // for more information on using Contexts.
  2195. func (c *IoTAnalytics) ListPipelinesWithContext(ctx aws.Context, input *ListPipelinesInput, opts ...request.Option) (*ListPipelinesOutput, error) {
  2196. req, out := c.ListPipelinesRequest(input)
  2197. req.SetContext(ctx)
  2198. req.ApplyOptions(opts...)
  2199. return out, req.Send()
  2200. }
  2201. // ListPipelinesPages iterates over the pages of a ListPipelines operation,
  2202. // calling the "fn" function with the response data for each page. To stop
  2203. // iterating, return false from the fn function.
  2204. //
  2205. // See ListPipelines method for more information on how to use this operation.
  2206. //
  2207. // Note: This operation can generate multiple requests to a service.
  2208. //
  2209. // // Example iterating over at most 3 pages of a ListPipelines operation.
  2210. // pageNum := 0
  2211. // err := client.ListPipelinesPages(params,
  2212. // func(page *ListPipelinesOutput, lastPage bool) bool {
  2213. // pageNum++
  2214. // fmt.Println(page)
  2215. // return pageNum <= 3
  2216. // })
  2217. //
  2218. func (c *IoTAnalytics) ListPipelinesPages(input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool) error {
  2219. return c.ListPipelinesPagesWithContext(aws.BackgroundContext(), input, fn)
  2220. }
  2221. // ListPipelinesPagesWithContext same as ListPipelinesPages except
  2222. // it takes a Context and allows setting request options on the pages.
  2223. //
  2224. // The context must be non-nil and will be used for request cancellation. If
  2225. // the context is nil a panic will occur. In the future the SDK may create
  2226. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2227. // for more information on using Contexts.
  2228. func (c *IoTAnalytics) ListPipelinesPagesWithContext(ctx aws.Context, input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool, opts ...request.Option) error {
  2229. p := request.Pagination{
  2230. NewRequest: func() (*request.Request, error) {
  2231. var inCpy *ListPipelinesInput
  2232. if input != nil {
  2233. tmp := *input
  2234. inCpy = &tmp
  2235. }
  2236. req, _ := c.ListPipelinesRequest(inCpy)
  2237. req.SetContext(ctx)
  2238. req.ApplyOptions(opts...)
  2239. return req, nil
  2240. },
  2241. }
  2242. cont := true
  2243. for p.Next() && cont {
  2244. cont = fn(p.Page().(*ListPipelinesOutput), !p.HasNextPage())
  2245. }
  2246. return p.Err()
  2247. }
  2248. const opListTagsForResource = "ListTagsForResource"
  2249. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  2250. // client's request for the ListTagsForResource operation. The "output" return
  2251. // value will be populated with the request's response once the request completes
  2252. // successfully.
  2253. //
  2254. // Use "Send" method on the returned Request to send the API call to the service.
  2255. // the "output" return value is not valid until after Send returns without error.
  2256. //
  2257. // See ListTagsForResource for more information on using the ListTagsForResource
  2258. // API call, and error handling.
  2259. //
  2260. // This method is useful when you want to inject custom logic or configuration
  2261. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2262. //
  2263. //
  2264. // // Example sending a request using the ListTagsForResourceRequest method.
  2265. // req, resp := client.ListTagsForResourceRequest(params)
  2266. //
  2267. // err := req.Send()
  2268. // if err == nil { // resp is now filled
  2269. // fmt.Println(resp)
  2270. // }
  2271. //
  2272. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListTagsForResource
  2273. func (c *IoTAnalytics) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  2274. op := &request.Operation{
  2275. Name: opListTagsForResource,
  2276. HTTPMethod: "GET",
  2277. HTTPPath: "/tags",
  2278. }
  2279. if input == nil {
  2280. input = &ListTagsForResourceInput{}
  2281. }
  2282. output = &ListTagsForResourceOutput{}
  2283. req = c.newRequest(op, input, output)
  2284. return
  2285. }
  2286. // ListTagsForResource API operation for AWS IoT Analytics.
  2287. //
  2288. // Lists the tags (metadata) which you have assigned to the resource.
  2289. //
  2290. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2291. // with awserr.Error's Code and Message methods to get detailed information about
  2292. // the error.
  2293. //
  2294. // See the AWS API reference guide for AWS IoT Analytics's
  2295. // API operation ListTagsForResource for usage and error information.
  2296. //
  2297. // Returned Error Codes:
  2298. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2299. // The request was not valid.
  2300. //
  2301. // * ErrCodeInternalFailureException "InternalFailureException"
  2302. // There was an internal failure.
  2303. //
  2304. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2305. // The service is temporarily unavailable.
  2306. //
  2307. // * ErrCodeThrottlingException "ThrottlingException"
  2308. // The request was denied due to request throttling.
  2309. //
  2310. // * ErrCodeLimitExceededException "LimitExceededException"
  2311. // The command caused an internal limit to be exceeded.
  2312. //
  2313. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2314. // A resource with the specified name could not be found.
  2315. //
  2316. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListTagsForResource
  2317. func (c *IoTAnalytics) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  2318. req, out := c.ListTagsForResourceRequest(input)
  2319. return out, req.Send()
  2320. }
  2321. // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  2322. // the ability to pass a context and additional request options.
  2323. //
  2324. // See ListTagsForResource for details on how to use this API operation.
  2325. //
  2326. // The context must be non-nil and will be used for request cancellation. If
  2327. // the context is nil a panic will occur. In the future the SDK may create
  2328. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2329. // for more information on using Contexts.
  2330. func (c *IoTAnalytics) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  2331. req, out := c.ListTagsForResourceRequest(input)
  2332. req.SetContext(ctx)
  2333. req.ApplyOptions(opts...)
  2334. return out, req.Send()
  2335. }
  2336. const opPutLoggingOptions = "PutLoggingOptions"
  2337. // PutLoggingOptionsRequest generates a "aws/request.Request" representing the
  2338. // client's request for the PutLoggingOptions operation. The "output" return
  2339. // value will be populated with the request's response once the request completes
  2340. // successfully.
  2341. //
  2342. // Use "Send" method on the returned Request to send the API call to the service.
  2343. // the "output" return value is not valid until after Send returns without error.
  2344. //
  2345. // See PutLoggingOptions for more information on using the PutLoggingOptions
  2346. // API call, and error handling.
  2347. //
  2348. // This method is useful when you want to inject custom logic or configuration
  2349. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2350. //
  2351. //
  2352. // // Example sending a request using the PutLoggingOptionsRequest method.
  2353. // req, resp := client.PutLoggingOptionsRequest(params)
  2354. //
  2355. // err := req.Send()
  2356. // if err == nil { // resp is now filled
  2357. // fmt.Println(resp)
  2358. // }
  2359. //
  2360. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/PutLoggingOptions
  2361. func (c *IoTAnalytics) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (req *request.Request, output *PutLoggingOptionsOutput) {
  2362. op := &request.Operation{
  2363. Name: opPutLoggingOptions,
  2364. HTTPMethod: "PUT",
  2365. HTTPPath: "/logging",
  2366. }
  2367. if input == nil {
  2368. input = &PutLoggingOptionsInput{}
  2369. }
  2370. output = &PutLoggingOptionsOutput{}
  2371. req = c.newRequest(op, input, output)
  2372. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2373. return
  2374. }
  2375. // PutLoggingOptions API operation for AWS IoT Analytics.
  2376. //
  2377. // Sets or updates the AWS IoT Analytics logging options.
  2378. //
  2379. // Note that if you update the value of any loggingOptions field, it takes up
  2380. // to one minute for the change to take effect. Also, if you change the policy
  2381. // attached to the role you specified in the roleArn field (for example, to
  2382. // correct an invalid policy) it takes up to 5 minutes for that change to take
  2383. // effect.
  2384. //
  2385. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2386. // with awserr.Error's Code and Message methods to get detailed information about
  2387. // the error.
  2388. //
  2389. // See the AWS API reference guide for AWS IoT Analytics's
  2390. // API operation PutLoggingOptions for usage and error information.
  2391. //
  2392. // Returned Error Codes:
  2393. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2394. // The request was not valid.
  2395. //
  2396. // * ErrCodeInternalFailureException "InternalFailureException"
  2397. // There was an internal failure.
  2398. //
  2399. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2400. // The service is temporarily unavailable.
  2401. //
  2402. // * ErrCodeThrottlingException "ThrottlingException"
  2403. // The request was denied due to request throttling.
  2404. //
  2405. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/PutLoggingOptions
  2406. func (c *IoTAnalytics) PutLoggingOptions(input *PutLoggingOptionsInput) (*PutLoggingOptionsOutput, error) {
  2407. req, out := c.PutLoggingOptionsRequest(input)
  2408. return out, req.Send()
  2409. }
  2410. // PutLoggingOptionsWithContext is the same as PutLoggingOptions with the addition of
  2411. // the ability to pass a context and additional request options.
  2412. //
  2413. // See PutLoggingOptions for details on how to use this API operation.
  2414. //
  2415. // The context must be non-nil and will be used for request cancellation. If
  2416. // the context is nil a panic will occur. In the future the SDK may create
  2417. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2418. // for more information on using Contexts.
  2419. func (c *IoTAnalytics) PutLoggingOptionsWithContext(ctx aws.Context, input *PutLoggingOptionsInput, opts ...request.Option) (*PutLoggingOptionsOutput, error) {
  2420. req, out := c.PutLoggingOptionsRequest(input)
  2421. req.SetContext(ctx)
  2422. req.ApplyOptions(opts...)
  2423. return out, req.Send()
  2424. }
  2425. const opRunPipelineActivity = "RunPipelineActivity"
  2426. // RunPipelineActivityRequest generates a "aws/request.Request" representing the
  2427. // client's request for the RunPipelineActivity operation. The "output" return
  2428. // value will be populated with the request's response once the request completes
  2429. // successfully.
  2430. //
  2431. // Use "Send" method on the returned Request to send the API call to the service.
  2432. // the "output" return value is not valid until after Send returns without error.
  2433. //
  2434. // See RunPipelineActivity for more information on using the RunPipelineActivity
  2435. // API call, and error handling.
  2436. //
  2437. // This method is useful when you want to inject custom logic or configuration
  2438. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2439. //
  2440. //
  2441. // // Example sending a request using the RunPipelineActivityRequest method.
  2442. // req, resp := client.RunPipelineActivityRequest(params)
  2443. //
  2444. // err := req.Send()
  2445. // if err == nil { // resp is now filled
  2446. // fmt.Println(resp)
  2447. // }
  2448. //
  2449. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/RunPipelineActivity
  2450. func (c *IoTAnalytics) RunPipelineActivityRequest(input *RunPipelineActivityInput) (req *request.Request, output *RunPipelineActivityOutput) {
  2451. op := &request.Operation{
  2452. Name: opRunPipelineActivity,
  2453. HTTPMethod: "POST",
  2454. HTTPPath: "/pipelineactivities/run",
  2455. }
  2456. if input == nil {
  2457. input = &RunPipelineActivityInput{}
  2458. }
  2459. output = &RunPipelineActivityOutput{}
  2460. req = c.newRequest(op, input, output)
  2461. return
  2462. }
  2463. // RunPipelineActivity API operation for AWS IoT Analytics.
  2464. //
  2465. // Simulates the results of running a pipeline activity on a message payload.
  2466. //
  2467. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2468. // with awserr.Error's Code and Message methods to get detailed information about
  2469. // the error.
  2470. //
  2471. // See the AWS API reference guide for AWS IoT Analytics's
  2472. // API operation RunPipelineActivity for usage and error information.
  2473. //
  2474. // Returned Error Codes:
  2475. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2476. // The request was not valid.
  2477. //
  2478. // * ErrCodeInternalFailureException "InternalFailureException"
  2479. // There was an internal failure.
  2480. //
  2481. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2482. // The service is temporarily unavailable.
  2483. //
  2484. // * ErrCodeThrottlingException "ThrottlingException"
  2485. // The request was denied due to request throttling.
  2486. //
  2487. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/RunPipelineActivity
  2488. func (c *IoTAnalytics) RunPipelineActivity(input *RunPipelineActivityInput) (*RunPipelineActivityOutput, error) {
  2489. req, out := c.RunPipelineActivityRequest(input)
  2490. return out, req.Send()
  2491. }
  2492. // RunPipelineActivityWithContext is the same as RunPipelineActivity with the addition of
  2493. // the ability to pass a context and additional request options.
  2494. //
  2495. // See RunPipelineActivity for details on how to use this API operation.
  2496. //
  2497. // The context must be non-nil and will be used for request cancellation. If
  2498. // the context is nil a panic will occur. In the future the SDK may create
  2499. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2500. // for more information on using Contexts.
  2501. func (c *IoTAnalytics) RunPipelineActivityWithContext(ctx aws.Context, input *RunPipelineActivityInput, opts ...request.Option) (*RunPipelineActivityOutput, error) {
  2502. req, out := c.RunPipelineActivityRequest(input)
  2503. req.SetContext(ctx)
  2504. req.ApplyOptions(opts...)
  2505. return out, req.Send()
  2506. }
  2507. const opSampleChannelData = "SampleChannelData"
  2508. // SampleChannelDataRequest generates a "aws/request.Request" representing the
  2509. // client's request for the SampleChannelData operation. The "output" return
  2510. // value will be populated with the request's response once the request completes
  2511. // successfully.
  2512. //
  2513. // Use "Send" method on the returned Request to send the API call to the service.
  2514. // the "output" return value is not valid until after Send returns without error.
  2515. //
  2516. // See SampleChannelData for more information on using the SampleChannelData
  2517. // API call, and error handling.
  2518. //
  2519. // This method is useful when you want to inject custom logic or configuration
  2520. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2521. //
  2522. //
  2523. // // Example sending a request using the SampleChannelDataRequest method.
  2524. // req, resp := client.SampleChannelDataRequest(params)
  2525. //
  2526. // err := req.Send()
  2527. // if err == nil { // resp is now filled
  2528. // fmt.Println(resp)
  2529. // }
  2530. //
  2531. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/SampleChannelData
  2532. func (c *IoTAnalytics) SampleChannelDataRequest(input *SampleChannelDataInput) (req *request.Request, output *SampleChannelDataOutput) {
  2533. op := &request.Operation{
  2534. Name: opSampleChannelData,
  2535. HTTPMethod: "GET",
  2536. HTTPPath: "/channels/{channelName}/sample",
  2537. }
  2538. if input == nil {
  2539. input = &SampleChannelDataInput{}
  2540. }
  2541. output = &SampleChannelDataOutput{}
  2542. req = c.newRequest(op, input, output)
  2543. return
  2544. }
  2545. // SampleChannelData API operation for AWS IoT Analytics.
  2546. //
  2547. // Retrieves a sample of messages from the specified channel ingested during
  2548. // the specified timeframe. Up to 10 messages can be retrieved.
  2549. //
  2550. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2551. // with awserr.Error's Code and Message methods to get detailed information about
  2552. // the error.
  2553. //
  2554. // See the AWS API reference guide for AWS IoT Analytics's
  2555. // API operation SampleChannelData for usage and error information.
  2556. //
  2557. // Returned Error Codes:
  2558. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2559. // The request was not valid.
  2560. //
  2561. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2562. // A resource with the specified name could not be found.
  2563. //
  2564. // * ErrCodeInternalFailureException "InternalFailureException"
  2565. // There was an internal failure.
  2566. //
  2567. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2568. // The service is temporarily unavailable.
  2569. //
  2570. // * ErrCodeThrottlingException "ThrottlingException"
  2571. // The request was denied due to request throttling.
  2572. //
  2573. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/SampleChannelData
  2574. func (c *IoTAnalytics) SampleChannelData(input *SampleChannelDataInput) (*SampleChannelDataOutput, error) {
  2575. req, out := c.SampleChannelDataRequest(input)
  2576. return out, req.Send()
  2577. }
  2578. // SampleChannelDataWithContext is the same as SampleChannelData with the addition of
  2579. // the ability to pass a context and additional request options.
  2580. //
  2581. // See SampleChannelData for details on how to use this API operation.
  2582. //
  2583. // The context must be non-nil and will be used for request cancellation. If
  2584. // the context is nil a panic will occur. In the future the SDK may create
  2585. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2586. // for more information on using Contexts.
  2587. func (c *IoTAnalytics) SampleChannelDataWithContext(ctx aws.Context, input *SampleChannelDataInput, opts ...request.Option) (*SampleChannelDataOutput, error) {
  2588. req, out := c.SampleChannelDataRequest(input)
  2589. req.SetContext(ctx)
  2590. req.ApplyOptions(opts...)
  2591. return out, req.Send()
  2592. }
  2593. const opStartPipelineReprocessing = "StartPipelineReprocessing"
  2594. // StartPipelineReprocessingRequest generates a "aws/request.Request" representing the
  2595. // client's request for the StartPipelineReprocessing operation. The "output" return
  2596. // value will be populated with the request's response once the request completes
  2597. // successfully.
  2598. //
  2599. // Use "Send" method on the returned Request to send the API call to the service.
  2600. // the "output" return value is not valid until after Send returns without error.
  2601. //
  2602. // See StartPipelineReprocessing for more information on using the StartPipelineReprocessing
  2603. // API call, and error handling.
  2604. //
  2605. // This method is useful when you want to inject custom logic or configuration
  2606. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2607. //
  2608. //
  2609. // // Example sending a request using the StartPipelineReprocessingRequest method.
  2610. // req, resp := client.StartPipelineReprocessingRequest(params)
  2611. //
  2612. // err := req.Send()
  2613. // if err == nil { // resp is now filled
  2614. // fmt.Println(resp)
  2615. // }
  2616. //
  2617. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/StartPipelineReprocessing
  2618. func (c *IoTAnalytics) StartPipelineReprocessingRequest(input *StartPipelineReprocessingInput) (req *request.Request, output *StartPipelineReprocessingOutput) {
  2619. op := &request.Operation{
  2620. Name: opStartPipelineReprocessing,
  2621. HTTPMethod: "POST",
  2622. HTTPPath: "/pipelines/{pipelineName}/reprocessing",
  2623. }
  2624. if input == nil {
  2625. input = &StartPipelineReprocessingInput{}
  2626. }
  2627. output = &StartPipelineReprocessingOutput{}
  2628. req = c.newRequest(op, input, output)
  2629. return
  2630. }
  2631. // StartPipelineReprocessing API operation for AWS IoT Analytics.
  2632. //
  2633. // Starts the reprocessing of raw message data through the pipeline.
  2634. //
  2635. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2636. // with awserr.Error's Code and Message methods to get detailed information about
  2637. // the error.
  2638. //
  2639. // See the AWS API reference guide for AWS IoT Analytics's
  2640. // API operation StartPipelineReprocessing for usage and error information.
  2641. //
  2642. // Returned Error Codes:
  2643. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2644. // A resource with the specified name could not be found.
  2645. //
  2646. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  2647. // A resource with the same name already exists.
  2648. //
  2649. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2650. // The request was not valid.
  2651. //
  2652. // * ErrCodeInternalFailureException "InternalFailureException"
  2653. // There was an internal failure.
  2654. //
  2655. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2656. // The service is temporarily unavailable.
  2657. //
  2658. // * ErrCodeThrottlingException "ThrottlingException"
  2659. // The request was denied due to request throttling.
  2660. //
  2661. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/StartPipelineReprocessing
  2662. func (c *IoTAnalytics) StartPipelineReprocessing(input *StartPipelineReprocessingInput) (*StartPipelineReprocessingOutput, error) {
  2663. req, out := c.StartPipelineReprocessingRequest(input)
  2664. return out, req.Send()
  2665. }
  2666. // StartPipelineReprocessingWithContext is the same as StartPipelineReprocessing with the addition of
  2667. // the ability to pass a context and additional request options.
  2668. //
  2669. // See StartPipelineReprocessing for details on how to use this API operation.
  2670. //
  2671. // The context must be non-nil and will be used for request cancellation. If
  2672. // the context is nil a panic will occur. In the future the SDK may create
  2673. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2674. // for more information on using Contexts.
  2675. func (c *IoTAnalytics) StartPipelineReprocessingWithContext(ctx aws.Context, input *StartPipelineReprocessingInput, opts ...request.Option) (*StartPipelineReprocessingOutput, error) {
  2676. req, out := c.StartPipelineReprocessingRequest(input)
  2677. req.SetContext(ctx)
  2678. req.ApplyOptions(opts...)
  2679. return out, req.Send()
  2680. }
  2681. const opTagResource = "TagResource"
  2682. // TagResourceRequest generates a "aws/request.Request" representing the
  2683. // client's request for the TagResource operation. The "output" return
  2684. // value will be populated with the request's response once the request completes
  2685. // successfully.
  2686. //
  2687. // Use "Send" method on the returned Request to send the API call to the service.
  2688. // the "output" return value is not valid until after Send returns without error.
  2689. //
  2690. // See TagResource for more information on using the TagResource
  2691. // API call, and error handling.
  2692. //
  2693. // This method is useful when you want to inject custom logic or configuration
  2694. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2695. //
  2696. //
  2697. // // Example sending a request using the TagResourceRequest method.
  2698. // req, resp := client.TagResourceRequest(params)
  2699. //
  2700. // err := req.Send()
  2701. // if err == nil { // resp is now filled
  2702. // fmt.Println(resp)
  2703. // }
  2704. //
  2705. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/TagResource
  2706. func (c *IoTAnalytics) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
  2707. op := &request.Operation{
  2708. Name: opTagResource,
  2709. HTTPMethod: "POST",
  2710. HTTPPath: "/tags",
  2711. }
  2712. if input == nil {
  2713. input = &TagResourceInput{}
  2714. }
  2715. output = &TagResourceOutput{}
  2716. req = c.newRequest(op, input, output)
  2717. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2718. return
  2719. }
  2720. // TagResource API operation for AWS IoT Analytics.
  2721. //
  2722. // Adds to or modifies the tags of the given resource. Tags are metadata which
  2723. // can be used to manage a resource.
  2724. //
  2725. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2726. // with awserr.Error's Code and Message methods to get detailed information about
  2727. // the error.
  2728. //
  2729. // See the AWS API reference guide for AWS IoT Analytics's
  2730. // API operation TagResource for usage and error information.
  2731. //
  2732. // Returned Error Codes:
  2733. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2734. // The request was not valid.
  2735. //
  2736. // * ErrCodeInternalFailureException "InternalFailureException"
  2737. // There was an internal failure.
  2738. //
  2739. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2740. // The service is temporarily unavailable.
  2741. //
  2742. // * ErrCodeThrottlingException "ThrottlingException"
  2743. // The request was denied due to request throttling.
  2744. //
  2745. // * ErrCodeLimitExceededException "LimitExceededException"
  2746. // The command caused an internal limit to be exceeded.
  2747. //
  2748. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2749. // A resource with the specified name could not be found.
  2750. //
  2751. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/TagResource
  2752. func (c *IoTAnalytics) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
  2753. req, out := c.TagResourceRequest(input)
  2754. return out, req.Send()
  2755. }
  2756. // TagResourceWithContext is the same as TagResource with the addition of
  2757. // the ability to pass a context and additional request options.
  2758. //
  2759. // See TagResource for details on how to use this API operation.
  2760. //
  2761. // The context must be non-nil and will be used for request cancellation. If
  2762. // the context is nil a panic will occur. In the future the SDK may create
  2763. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2764. // for more information on using Contexts.
  2765. func (c *IoTAnalytics) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
  2766. req, out := c.TagResourceRequest(input)
  2767. req.SetContext(ctx)
  2768. req.ApplyOptions(opts...)
  2769. return out, req.Send()
  2770. }
  2771. const opUntagResource = "UntagResource"
  2772. // UntagResourceRequest generates a "aws/request.Request" representing the
  2773. // client's request for the UntagResource operation. The "output" return
  2774. // value will be populated with the request's response once the request completes
  2775. // successfully.
  2776. //
  2777. // Use "Send" method on the returned Request to send the API call to the service.
  2778. // the "output" return value is not valid until after Send returns without error.
  2779. //
  2780. // See UntagResource for more information on using the UntagResource
  2781. // API call, and error handling.
  2782. //
  2783. // This method is useful when you want to inject custom logic or configuration
  2784. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2785. //
  2786. //
  2787. // // Example sending a request using the UntagResourceRequest method.
  2788. // req, resp := client.UntagResourceRequest(params)
  2789. //
  2790. // err := req.Send()
  2791. // if err == nil { // resp is now filled
  2792. // fmt.Println(resp)
  2793. // }
  2794. //
  2795. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UntagResource
  2796. func (c *IoTAnalytics) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
  2797. op := &request.Operation{
  2798. Name: opUntagResource,
  2799. HTTPMethod: "DELETE",
  2800. HTTPPath: "/tags",
  2801. }
  2802. if input == nil {
  2803. input = &UntagResourceInput{}
  2804. }
  2805. output = &UntagResourceOutput{}
  2806. req = c.newRequest(op, input, output)
  2807. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2808. return
  2809. }
  2810. // UntagResource API operation for AWS IoT Analytics.
  2811. //
  2812. // Removes the given tags (metadata) from the resource.
  2813. //
  2814. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2815. // with awserr.Error's Code and Message methods to get detailed information about
  2816. // the error.
  2817. //
  2818. // See the AWS API reference guide for AWS IoT Analytics's
  2819. // API operation UntagResource for usage and error information.
  2820. //
  2821. // Returned Error Codes:
  2822. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2823. // The request was not valid.
  2824. //
  2825. // * ErrCodeInternalFailureException "InternalFailureException"
  2826. // There was an internal failure.
  2827. //
  2828. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2829. // The service is temporarily unavailable.
  2830. //
  2831. // * ErrCodeThrottlingException "ThrottlingException"
  2832. // The request was denied due to request throttling.
  2833. //
  2834. // * ErrCodeLimitExceededException "LimitExceededException"
  2835. // The command caused an internal limit to be exceeded.
  2836. //
  2837. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2838. // A resource with the specified name could not be found.
  2839. //
  2840. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UntagResource
  2841. func (c *IoTAnalytics) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
  2842. req, out := c.UntagResourceRequest(input)
  2843. return out, req.Send()
  2844. }
  2845. // UntagResourceWithContext is the same as UntagResource with the addition of
  2846. // the ability to pass a context and additional request options.
  2847. //
  2848. // See UntagResource for details on how to use this API operation.
  2849. //
  2850. // The context must be non-nil and will be used for request cancellation. If
  2851. // the context is nil a panic will occur. In the future the SDK may create
  2852. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2853. // for more information on using Contexts.
  2854. func (c *IoTAnalytics) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
  2855. req, out := c.UntagResourceRequest(input)
  2856. req.SetContext(ctx)
  2857. req.ApplyOptions(opts...)
  2858. return out, req.Send()
  2859. }
  2860. const opUpdateChannel = "UpdateChannel"
  2861. // UpdateChannelRequest generates a "aws/request.Request" representing the
  2862. // client's request for the UpdateChannel operation. The "output" return
  2863. // value will be populated with the request's response once the request completes
  2864. // successfully.
  2865. //
  2866. // Use "Send" method on the returned Request to send the API call to the service.
  2867. // the "output" return value is not valid until after Send returns without error.
  2868. //
  2869. // See UpdateChannel for more information on using the UpdateChannel
  2870. // API call, and error handling.
  2871. //
  2872. // This method is useful when you want to inject custom logic or configuration
  2873. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2874. //
  2875. //
  2876. // // Example sending a request using the UpdateChannelRequest method.
  2877. // req, resp := client.UpdateChannelRequest(params)
  2878. //
  2879. // err := req.Send()
  2880. // if err == nil { // resp is now filled
  2881. // fmt.Println(resp)
  2882. // }
  2883. //
  2884. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateChannel
  2885. func (c *IoTAnalytics) UpdateChannelRequest(input *UpdateChannelInput) (req *request.Request, output *UpdateChannelOutput) {
  2886. op := &request.Operation{
  2887. Name: opUpdateChannel,
  2888. HTTPMethod: "PUT",
  2889. HTTPPath: "/channels/{channelName}",
  2890. }
  2891. if input == nil {
  2892. input = &UpdateChannelInput{}
  2893. }
  2894. output = &UpdateChannelOutput{}
  2895. req = c.newRequest(op, input, output)
  2896. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2897. return
  2898. }
  2899. // UpdateChannel API operation for AWS IoT Analytics.
  2900. //
  2901. // Updates the settings of a channel.
  2902. //
  2903. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2904. // with awserr.Error's Code and Message methods to get detailed information about
  2905. // the error.
  2906. //
  2907. // See the AWS API reference guide for AWS IoT Analytics's
  2908. // API operation UpdateChannel for usage and error information.
  2909. //
  2910. // Returned Error Codes:
  2911. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2912. // The request was not valid.
  2913. //
  2914. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2915. // A resource with the specified name could not be found.
  2916. //
  2917. // * ErrCodeInternalFailureException "InternalFailureException"
  2918. // There was an internal failure.
  2919. //
  2920. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  2921. // The service is temporarily unavailable.
  2922. //
  2923. // * ErrCodeThrottlingException "ThrottlingException"
  2924. // The request was denied due to request throttling.
  2925. //
  2926. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateChannel
  2927. func (c *IoTAnalytics) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) {
  2928. req, out := c.UpdateChannelRequest(input)
  2929. return out, req.Send()
  2930. }
  2931. // UpdateChannelWithContext is the same as UpdateChannel with the addition of
  2932. // the ability to pass a context and additional request options.
  2933. //
  2934. // See UpdateChannel for details on how to use this API operation.
  2935. //
  2936. // The context must be non-nil and will be used for request cancellation. If
  2937. // the context is nil a panic will occur. In the future the SDK may create
  2938. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2939. // for more information on using Contexts.
  2940. func (c *IoTAnalytics) UpdateChannelWithContext(ctx aws.Context, input *UpdateChannelInput, opts ...request.Option) (*UpdateChannelOutput, error) {
  2941. req, out := c.UpdateChannelRequest(input)
  2942. req.SetContext(ctx)
  2943. req.ApplyOptions(opts...)
  2944. return out, req.Send()
  2945. }
  2946. const opUpdateDataset = "UpdateDataset"
  2947. // UpdateDatasetRequest generates a "aws/request.Request" representing the
  2948. // client's request for the UpdateDataset operation. The "output" return
  2949. // value will be populated with the request's response once the request completes
  2950. // successfully.
  2951. //
  2952. // Use "Send" method on the returned Request to send the API call to the service.
  2953. // the "output" return value is not valid until after Send returns without error.
  2954. //
  2955. // See UpdateDataset for more information on using the UpdateDataset
  2956. // API call, and error handling.
  2957. //
  2958. // This method is useful when you want to inject custom logic or configuration
  2959. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2960. //
  2961. //
  2962. // // Example sending a request using the UpdateDatasetRequest method.
  2963. // req, resp := client.UpdateDatasetRequest(params)
  2964. //
  2965. // err := req.Send()
  2966. // if err == nil { // resp is now filled
  2967. // fmt.Println(resp)
  2968. // }
  2969. //
  2970. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDataset
  2971. func (c *IoTAnalytics) UpdateDatasetRequest(input *UpdateDatasetInput) (req *request.Request, output *UpdateDatasetOutput) {
  2972. op := &request.Operation{
  2973. Name: opUpdateDataset,
  2974. HTTPMethod: "PUT",
  2975. HTTPPath: "/datasets/{datasetName}",
  2976. }
  2977. if input == nil {
  2978. input = &UpdateDatasetInput{}
  2979. }
  2980. output = &UpdateDatasetOutput{}
  2981. req = c.newRequest(op, input, output)
  2982. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2983. return
  2984. }
  2985. // UpdateDataset API operation for AWS IoT Analytics.
  2986. //
  2987. // Updates the settings of a data set.
  2988. //
  2989. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2990. // with awserr.Error's Code and Message methods to get detailed information about
  2991. // the error.
  2992. //
  2993. // See the AWS API reference guide for AWS IoT Analytics's
  2994. // API operation UpdateDataset for usage and error information.
  2995. //
  2996. // Returned Error Codes:
  2997. // * ErrCodeInvalidRequestException "InvalidRequestException"
  2998. // The request was not valid.
  2999. //
  3000. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3001. // A resource with the specified name could not be found.
  3002. //
  3003. // * ErrCodeInternalFailureException "InternalFailureException"
  3004. // There was an internal failure.
  3005. //
  3006. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  3007. // The service is temporarily unavailable.
  3008. //
  3009. // * ErrCodeThrottlingException "ThrottlingException"
  3010. // The request was denied due to request throttling.
  3011. //
  3012. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDataset
  3013. func (c *IoTAnalytics) UpdateDataset(input *UpdateDatasetInput) (*UpdateDatasetOutput, error) {
  3014. req, out := c.UpdateDatasetRequest(input)
  3015. return out, req.Send()
  3016. }
  3017. // UpdateDatasetWithContext is the same as UpdateDataset with the addition of
  3018. // the ability to pass a context and additional request options.
  3019. //
  3020. // See UpdateDataset for details on how to use this API operation.
  3021. //
  3022. // The context must be non-nil and will be used for request cancellation. If
  3023. // the context is nil a panic will occur. In the future the SDK may create
  3024. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3025. // for more information on using Contexts.
  3026. func (c *IoTAnalytics) UpdateDatasetWithContext(ctx aws.Context, input *UpdateDatasetInput, opts ...request.Option) (*UpdateDatasetOutput, error) {
  3027. req, out := c.UpdateDatasetRequest(input)
  3028. req.SetContext(ctx)
  3029. req.ApplyOptions(opts...)
  3030. return out, req.Send()
  3031. }
  3032. const opUpdateDatastore = "UpdateDatastore"
  3033. // UpdateDatastoreRequest generates a "aws/request.Request" representing the
  3034. // client's request for the UpdateDatastore operation. The "output" return
  3035. // value will be populated with the request's response once the request completes
  3036. // successfully.
  3037. //
  3038. // Use "Send" method on the returned Request to send the API call to the service.
  3039. // the "output" return value is not valid until after Send returns without error.
  3040. //
  3041. // See UpdateDatastore for more information on using the UpdateDatastore
  3042. // API call, and error handling.
  3043. //
  3044. // This method is useful when you want to inject custom logic or configuration
  3045. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3046. //
  3047. //
  3048. // // Example sending a request using the UpdateDatastoreRequest method.
  3049. // req, resp := client.UpdateDatastoreRequest(params)
  3050. //
  3051. // err := req.Send()
  3052. // if err == nil { // resp is now filled
  3053. // fmt.Println(resp)
  3054. // }
  3055. //
  3056. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDatastore
  3057. func (c *IoTAnalytics) UpdateDatastoreRequest(input *UpdateDatastoreInput) (req *request.Request, output *UpdateDatastoreOutput) {
  3058. op := &request.Operation{
  3059. Name: opUpdateDatastore,
  3060. HTTPMethod: "PUT",
  3061. HTTPPath: "/datastores/{datastoreName}",
  3062. }
  3063. if input == nil {
  3064. input = &UpdateDatastoreInput{}
  3065. }
  3066. output = &UpdateDatastoreOutput{}
  3067. req = c.newRequest(op, input, output)
  3068. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3069. return
  3070. }
  3071. // UpdateDatastore API operation for AWS IoT Analytics.
  3072. //
  3073. // Updates the settings of a data store.
  3074. //
  3075. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3076. // with awserr.Error's Code and Message methods to get detailed information about
  3077. // the error.
  3078. //
  3079. // See the AWS API reference guide for AWS IoT Analytics's
  3080. // API operation UpdateDatastore for usage and error information.
  3081. //
  3082. // Returned Error Codes:
  3083. // * ErrCodeInvalidRequestException "InvalidRequestException"
  3084. // The request was not valid.
  3085. //
  3086. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3087. // A resource with the specified name could not be found.
  3088. //
  3089. // * ErrCodeInternalFailureException "InternalFailureException"
  3090. // There was an internal failure.
  3091. //
  3092. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  3093. // The service is temporarily unavailable.
  3094. //
  3095. // * ErrCodeThrottlingException "ThrottlingException"
  3096. // The request was denied due to request throttling.
  3097. //
  3098. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDatastore
  3099. func (c *IoTAnalytics) UpdateDatastore(input *UpdateDatastoreInput) (*UpdateDatastoreOutput, error) {
  3100. req, out := c.UpdateDatastoreRequest(input)
  3101. return out, req.Send()
  3102. }
  3103. // UpdateDatastoreWithContext is the same as UpdateDatastore with the addition of
  3104. // the ability to pass a context and additional request options.
  3105. //
  3106. // See UpdateDatastore for details on how to use this API operation.
  3107. //
  3108. // The context must be non-nil and will be used for request cancellation. If
  3109. // the context is nil a panic will occur. In the future the SDK may create
  3110. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3111. // for more information on using Contexts.
  3112. func (c *IoTAnalytics) UpdateDatastoreWithContext(ctx aws.Context, input *UpdateDatastoreInput, opts ...request.Option) (*UpdateDatastoreOutput, error) {
  3113. req, out := c.UpdateDatastoreRequest(input)
  3114. req.SetContext(ctx)
  3115. req.ApplyOptions(opts...)
  3116. return out, req.Send()
  3117. }
  3118. const opUpdatePipeline = "UpdatePipeline"
  3119. // UpdatePipelineRequest generates a "aws/request.Request" representing the
  3120. // client's request for the UpdatePipeline operation. The "output" return
  3121. // value will be populated with the request's response once the request completes
  3122. // successfully.
  3123. //
  3124. // Use "Send" method on the returned Request to send the API call to the service.
  3125. // the "output" return value is not valid until after Send returns without error.
  3126. //
  3127. // See UpdatePipeline for more information on using the UpdatePipeline
  3128. // API call, and error handling.
  3129. //
  3130. // This method is useful when you want to inject custom logic or configuration
  3131. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3132. //
  3133. //
  3134. // // Example sending a request using the UpdatePipelineRequest method.
  3135. // req, resp := client.UpdatePipelineRequest(params)
  3136. //
  3137. // err := req.Send()
  3138. // if err == nil { // resp is now filled
  3139. // fmt.Println(resp)
  3140. // }
  3141. //
  3142. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdatePipeline
  3143. func (c *IoTAnalytics) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
  3144. op := &request.Operation{
  3145. Name: opUpdatePipeline,
  3146. HTTPMethod: "PUT",
  3147. HTTPPath: "/pipelines/{pipelineName}",
  3148. }
  3149. if input == nil {
  3150. input = &UpdatePipelineInput{}
  3151. }
  3152. output = &UpdatePipelineOutput{}
  3153. req = c.newRequest(op, input, output)
  3154. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3155. return
  3156. }
  3157. // UpdatePipeline API operation for AWS IoT Analytics.
  3158. //
  3159. // Updates the settings of a pipeline.
  3160. //
  3161. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3162. // with awserr.Error's Code and Message methods to get detailed information about
  3163. // the error.
  3164. //
  3165. // See the AWS API reference guide for AWS IoT Analytics's
  3166. // API operation UpdatePipeline for usage and error information.
  3167. //
  3168. // Returned Error Codes:
  3169. // * ErrCodeInvalidRequestException "InvalidRequestException"
  3170. // The request was not valid.
  3171. //
  3172. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3173. // A resource with the specified name could not be found.
  3174. //
  3175. // * ErrCodeInternalFailureException "InternalFailureException"
  3176. // There was an internal failure.
  3177. //
  3178. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  3179. // The service is temporarily unavailable.
  3180. //
  3181. // * ErrCodeThrottlingException "ThrottlingException"
  3182. // The request was denied due to request throttling.
  3183. //
  3184. // * ErrCodeLimitExceededException "LimitExceededException"
  3185. // The command caused an internal limit to be exceeded.
  3186. //
  3187. // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdatePipeline
  3188. func (c *IoTAnalytics) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
  3189. req, out := c.UpdatePipelineRequest(input)
  3190. return out, req.Send()
  3191. }
  3192. // UpdatePipelineWithContext is the same as UpdatePipeline with the addition of
  3193. // the ability to pass a context and additional request options.
  3194. //
  3195. // See UpdatePipeline for details on how to use this API operation.
  3196. //
  3197. // The context must be non-nil and will be used for request cancellation. If
  3198. // the context is nil a panic will occur. In the future the SDK may create
  3199. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3200. // for more information on using Contexts.
  3201. func (c *IoTAnalytics) UpdatePipelineWithContext(ctx aws.Context, input *UpdatePipelineInput, opts ...request.Option) (*UpdatePipelineOutput, error) {
  3202. req, out := c.UpdatePipelineRequest(input)
  3203. req.SetContext(ctx)
  3204. req.ApplyOptions(opts...)
  3205. return out, req.Send()
  3206. }
  3207. // An activity that adds other attributes based on existing attributes in the
  3208. // message.
  3209. type AddAttributesActivity struct {
  3210. _ struct{} `type:"structure"`
  3211. // A list of 1-50 "AttributeNameMapping" objects that map an existing attribute
  3212. // to a new attribute.
  3213. //
  3214. // The existing attributes remain in the message, so if you want to remove the
  3215. // originals, use "RemoveAttributeActivity".
  3216. //
  3217. // Attributes is a required field
  3218. Attributes map[string]*string `locationName:"attributes" min:"1" type:"map" required:"true"`
  3219. // The name of the 'addAttributes' activity.
  3220. //
  3221. // Name is a required field
  3222. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3223. // The next activity in the pipeline.
  3224. Next *string `locationName:"next" min:"1" type:"string"`
  3225. }
  3226. // String returns the string representation
  3227. func (s AddAttributesActivity) String() string {
  3228. return awsutil.Prettify(s)
  3229. }
  3230. // GoString returns the string representation
  3231. func (s AddAttributesActivity) GoString() string {
  3232. return s.String()
  3233. }
  3234. // Validate inspects the fields of the type to determine if they are valid.
  3235. func (s *AddAttributesActivity) Validate() error {
  3236. invalidParams := request.ErrInvalidParams{Context: "AddAttributesActivity"}
  3237. if s.Attributes == nil {
  3238. invalidParams.Add(request.NewErrParamRequired("Attributes"))
  3239. }
  3240. if s.Attributes != nil && len(s.Attributes) < 1 {
  3241. invalidParams.Add(request.NewErrParamMinLen("Attributes", 1))
  3242. }
  3243. if s.Name == nil {
  3244. invalidParams.Add(request.NewErrParamRequired("Name"))
  3245. }
  3246. if s.Name != nil && len(*s.Name) < 1 {
  3247. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3248. }
  3249. if s.Next != nil && len(*s.Next) < 1 {
  3250. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  3251. }
  3252. if invalidParams.Len() > 0 {
  3253. return invalidParams
  3254. }
  3255. return nil
  3256. }
  3257. // SetAttributes sets the Attributes field's value.
  3258. func (s *AddAttributesActivity) SetAttributes(v map[string]*string) *AddAttributesActivity {
  3259. s.Attributes = v
  3260. return s
  3261. }
  3262. // SetName sets the Name field's value.
  3263. func (s *AddAttributesActivity) SetName(v string) *AddAttributesActivity {
  3264. s.Name = &v
  3265. return s
  3266. }
  3267. // SetNext sets the Next field's value.
  3268. func (s *AddAttributesActivity) SetNext(v string) *AddAttributesActivity {
  3269. s.Next = &v
  3270. return s
  3271. }
  3272. // Contains informations about errors.
  3273. type BatchPutMessageErrorEntry struct {
  3274. _ struct{} `type:"structure"`
  3275. // The code associated with the error.
  3276. ErrorCode *string `locationName:"errorCode" type:"string"`
  3277. // The message associated with the error.
  3278. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  3279. // The ID of the message that caused the error. (See the value corresponding
  3280. // to the "messageId" key in the message object.)
  3281. MessageId *string `locationName:"messageId" min:"1" type:"string"`
  3282. }
  3283. // String returns the string representation
  3284. func (s BatchPutMessageErrorEntry) String() string {
  3285. return awsutil.Prettify(s)
  3286. }
  3287. // GoString returns the string representation
  3288. func (s BatchPutMessageErrorEntry) GoString() string {
  3289. return s.String()
  3290. }
  3291. // SetErrorCode sets the ErrorCode field's value.
  3292. func (s *BatchPutMessageErrorEntry) SetErrorCode(v string) *BatchPutMessageErrorEntry {
  3293. s.ErrorCode = &v
  3294. return s
  3295. }
  3296. // SetErrorMessage sets the ErrorMessage field's value.
  3297. func (s *BatchPutMessageErrorEntry) SetErrorMessage(v string) *BatchPutMessageErrorEntry {
  3298. s.ErrorMessage = &v
  3299. return s
  3300. }
  3301. // SetMessageId sets the MessageId field's value.
  3302. func (s *BatchPutMessageErrorEntry) SetMessageId(v string) *BatchPutMessageErrorEntry {
  3303. s.MessageId = &v
  3304. return s
  3305. }
  3306. type BatchPutMessageInput struct {
  3307. _ struct{} `type:"structure"`
  3308. // The name of the channel where the messages are sent.
  3309. //
  3310. // ChannelName is a required field
  3311. ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"`
  3312. // The list of messages to be sent. Each message has format: '{ "messageId":
  3313. // "string", "payload": "string"}'.
  3314. //
  3315. // Note that the field names of message payloads (data) that you send to AWS
  3316. // IoT Analytics:
  3317. //
  3318. // * Must contain only alphanumeric characters and undescores (_); no other
  3319. // special characters are allowed.
  3320. //
  3321. // * Must begin with an alphabetic character or single underscore (_).
  3322. //
  3323. // * Cannot contain hyphens (-).
  3324. //
  3325. // * In regular expression terms: "^[A-Za-z_]([A-Za-z0-9]*|[A-Za-z0-9][A-Za-z0-9_]*)$".
  3326. //
  3327. //
  3328. // * Cannot be greater than 255 characters.
  3329. //
  3330. // * Are case-insensitive. (Fields named "foo" and "FOO" in the same payload
  3331. // are considered duplicates.)
  3332. //
  3333. // For example, {"temp_01": 29} or {"_temp_01": 29} are valid, but {"temp-01":
  3334. // 29}, {"01_temp": 29} or {"__temp_01": 29} are invalid in message payloads.
  3335. //
  3336. // Messages is a required field
  3337. Messages []*Message `locationName:"messages" type:"list" required:"true"`
  3338. }
  3339. // String returns the string representation
  3340. func (s BatchPutMessageInput) String() string {
  3341. return awsutil.Prettify(s)
  3342. }
  3343. // GoString returns the string representation
  3344. func (s BatchPutMessageInput) GoString() string {
  3345. return s.String()
  3346. }
  3347. // Validate inspects the fields of the type to determine if they are valid.
  3348. func (s *BatchPutMessageInput) Validate() error {
  3349. invalidParams := request.ErrInvalidParams{Context: "BatchPutMessageInput"}
  3350. if s.ChannelName == nil {
  3351. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  3352. }
  3353. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  3354. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  3355. }
  3356. if s.Messages == nil {
  3357. invalidParams.Add(request.NewErrParamRequired("Messages"))
  3358. }
  3359. if s.Messages != nil {
  3360. for i, v := range s.Messages {
  3361. if v == nil {
  3362. continue
  3363. }
  3364. if err := v.Validate(); err != nil {
  3365. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Messages", i), err.(request.ErrInvalidParams))
  3366. }
  3367. }
  3368. }
  3369. if invalidParams.Len() > 0 {
  3370. return invalidParams
  3371. }
  3372. return nil
  3373. }
  3374. // SetChannelName sets the ChannelName field's value.
  3375. func (s *BatchPutMessageInput) SetChannelName(v string) *BatchPutMessageInput {
  3376. s.ChannelName = &v
  3377. return s
  3378. }
  3379. // SetMessages sets the Messages field's value.
  3380. func (s *BatchPutMessageInput) SetMessages(v []*Message) *BatchPutMessageInput {
  3381. s.Messages = v
  3382. return s
  3383. }
  3384. type BatchPutMessageOutput struct {
  3385. _ struct{} `type:"structure"`
  3386. // A list of any errors encountered when sending the messages to the channel.
  3387. BatchPutMessageErrorEntries []*BatchPutMessageErrorEntry `locationName:"batchPutMessageErrorEntries" type:"list"`
  3388. }
  3389. // String returns the string representation
  3390. func (s BatchPutMessageOutput) String() string {
  3391. return awsutil.Prettify(s)
  3392. }
  3393. // GoString returns the string representation
  3394. func (s BatchPutMessageOutput) GoString() string {
  3395. return s.String()
  3396. }
  3397. // SetBatchPutMessageErrorEntries sets the BatchPutMessageErrorEntries field's value.
  3398. func (s *BatchPutMessageOutput) SetBatchPutMessageErrorEntries(v []*BatchPutMessageErrorEntry) *BatchPutMessageOutput {
  3399. s.BatchPutMessageErrorEntries = v
  3400. return s
  3401. }
  3402. type CancelPipelineReprocessingInput struct {
  3403. _ struct{} `type:"structure"`
  3404. // The name of pipeline for which data reprocessing is canceled.
  3405. //
  3406. // PipelineName is a required field
  3407. PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
  3408. // The ID of the reprocessing task (returned by "StartPipelineReprocessing").
  3409. //
  3410. // ReprocessingId is a required field
  3411. ReprocessingId *string `location:"uri" locationName:"reprocessingId" type:"string" required:"true"`
  3412. }
  3413. // String returns the string representation
  3414. func (s CancelPipelineReprocessingInput) String() string {
  3415. return awsutil.Prettify(s)
  3416. }
  3417. // GoString returns the string representation
  3418. func (s CancelPipelineReprocessingInput) GoString() string {
  3419. return s.String()
  3420. }
  3421. // Validate inspects the fields of the type to determine if they are valid.
  3422. func (s *CancelPipelineReprocessingInput) Validate() error {
  3423. invalidParams := request.ErrInvalidParams{Context: "CancelPipelineReprocessingInput"}
  3424. if s.PipelineName == nil {
  3425. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  3426. }
  3427. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  3428. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  3429. }
  3430. if s.ReprocessingId == nil {
  3431. invalidParams.Add(request.NewErrParamRequired("ReprocessingId"))
  3432. }
  3433. if s.ReprocessingId != nil && len(*s.ReprocessingId) < 1 {
  3434. invalidParams.Add(request.NewErrParamMinLen("ReprocessingId", 1))
  3435. }
  3436. if invalidParams.Len() > 0 {
  3437. return invalidParams
  3438. }
  3439. return nil
  3440. }
  3441. // SetPipelineName sets the PipelineName field's value.
  3442. func (s *CancelPipelineReprocessingInput) SetPipelineName(v string) *CancelPipelineReprocessingInput {
  3443. s.PipelineName = &v
  3444. return s
  3445. }
  3446. // SetReprocessingId sets the ReprocessingId field's value.
  3447. func (s *CancelPipelineReprocessingInput) SetReprocessingId(v string) *CancelPipelineReprocessingInput {
  3448. s.ReprocessingId = &v
  3449. return s
  3450. }
  3451. type CancelPipelineReprocessingOutput struct {
  3452. _ struct{} `type:"structure"`
  3453. }
  3454. // String returns the string representation
  3455. func (s CancelPipelineReprocessingOutput) String() string {
  3456. return awsutil.Prettify(s)
  3457. }
  3458. // GoString returns the string representation
  3459. func (s CancelPipelineReprocessingOutput) GoString() string {
  3460. return s.String()
  3461. }
  3462. // A collection of data from an MQTT topic. Channels archive the raw, unprocessed
  3463. // messages before publishing the data to a pipeline.
  3464. type Channel struct {
  3465. _ struct{} `type:"structure"`
  3466. // The ARN of the channel.
  3467. Arn *string `locationName:"arn" type:"string"`
  3468. // When the channel was created.
  3469. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  3470. // When the channel was last updated.
  3471. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  3472. // The name of the channel.
  3473. Name *string `locationName:"name" min:"1" type:"string"`
  3474. // How long, in days, message data is kept for the channel.
  3475. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  3476. // The status of the channel.
  3477. Status *string `locationName:"status" type:"string" enum:"ChannelStatus"`
  3478. }
  3479. // String returns the string representation
  3480. func (s Channel) String() string {
  3481. return awsutil.Prettify(s)
  3482. }
  3483. // GoString returns the string representation
  3484. func (s Channel) GoString() string {
  3485. return s.String()
  3486. }
  3487. // SetArn sets the Arn field's value.
  3488. func (s *Channel) SetArn(v string) *Channel {
  3489. s.Arn = &v
  3490. return s
  3491. }
  3492. // SetCreationTime sets the CreationTime field's value.
  3493. func (s *Channel) SetCreationTime(v time.Time) *Channel {
  3494. s.CreationTime = &v
  3495. return s
  3496. }
  3497. // SetLastUpdateTime sets the LastUpdateTime field's value.
  3498. func (s *Channel) SetLastUpdateTime(v time.Time) *Channel {
  3499. s.LastUpdateTime = &v
  3500. return s
  3501. }
  3502. // SetName sets the Name field's value.
  3503. func (s *Channel) SetName(v string) *Channel {
  3504. s.Name = &v
  3505. return s
  3506. }
  3507. // SetRetentionPeriod sets the RetentionPeriod field's value.
  3508. func (s *Channel) SetRetentionPeriod(v *RetentionPeriod) *Channel {
  3509. s.RetentionPeriod = v
  3510. return s
  3511. }
  3512. // SetStatus sets the Status field's value.
  3513. func (s *Channel) SetStatus(v string) *Channel {
  3514. s.Status = &v
  3515. return s
  3516. }
  3517. // The activity that determines the source of the messages to be processed.
  3518. type ChannelActivity struct {
  3519. _ struct{} `type:"structure"`
  3520. // The name of the channel from which the messages are processed.
  3521. //
  3522. // ChannelName is a required field
  3523. ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"`
  3524. // The name of the 'channel' activity.
  3525. //
  3526. // Name is a required field
  3527. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3528. // The next activity in the pipeline.
  3529. Next *string `locationName:"next" min:"1" type:"string"`
  3530. }
  3531. // String returns the string representation
  3532. func (s ChannelActivity) String() string {
  3533. return awsutil.Prettify(s)
  3534. }
  3535. // GoString returns the string representation
  3536. func (s ChannelActivity) GoString() string {
  3537. return s.String()
  3538. }
  3539. // Validate inspects the fields of the type to determine if they are valid.
  3540. func (s *ChannelActivity) Validate() error {
  3541. invalidParams := request.ErrInvalidParams{Context: "ChannelActivity"}
  3542. if s.ChannelName == nil {
  3543. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  3544. }
  3545. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  3546. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  3547. }
  3548. if s.Name == nil {
  3549. invalidParams.Add(request.NewErrParamRequired("Name"))
  3550. }
  3551. if s.Name != nil && len(*s.Name) < 1 {
  3552. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3553. }
  3554. if s.Next != nil && len(*s.Next) < 1 {
  3555. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  3556. }
  3557. if invalidParams.Len() > 0 {
  3558. return invalidParams
  3559. }
  3560. return nil
  3561. }
  3562. // SetChannelName sets the ChannelName field's value.
  3563. func (s *ChannelActivity) SetChannelName(v string) *ChannelActivity {
  3564. s.ChannelName = &v
  3565. return s
  3566. }
  3567. // SetName sets the Name field's value.
  3568. func (s *ChannelActivity) SetName(v string) *ChannelActivity {
  3569. s.Name = &v
  3570. return s
  3571. }
  3572. // SetNext sets the Next field's value.
  3573. func (s *ChannelActivity) SetNext(v string) *ChannelActivity {
  3574. s.Next = &v
  3575. return s
  3576. }
  3577. // Statistics information about the channel.
  3578. type ChannelStatistics struct {
  3579. _ struct{} `type:"structure"`
  3580. // The estimated size of the channel.
  3581. Size *EstimatedResourceSize `locationName:"size" type:"structure"`
  3582. }
  3583. // String returns the string representation
  3584. func (s ChannelStatistics) String() string {
  3585. return awsutil.Prettify(s)
  3586. }
  3587. // GoString returns the string representation
  3588. func (s ChannelStatistics) GoString() string {
  3589. return s.String()
  3590. }
  3591. // SetSize sets the Size field's value.
  3592. func (s *ChannelStatistics) SetSize(v *EstimatedResourceSize) *ChannelStatistics {
  3593. s.Size = v
  3594. return s
  3595. }
  3596. // A summary of information about a channel.
  3597. type ChannelSummary struct {
  3598. _ struct{} `type:"structure"`
  3599. // The name of the channel.
  3600. ChannelName *string `locationName:"channelName" min:"1" type:"string"`
  3601. // When the channel was created.
  3602. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  3603. // The last time the channel was updated.
  3604. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  3605. // The status of the channel.
  3606. Status *string `locationName:"status" type:"string" enum:"ChannelStatus"`
  3607. }
  3608. // String returns the string representation
  3609. func (s ChannelSummary) String() string {
  3610. return awsutil.Prettify(s)
  3611. }
  3612. // GoString returns the string representation
  3613. func (s ChannelSummary) GoString() string {
  3614. return s.String()
  3615. }
  3616. // SetChannelName sets the ChannelName field's value.
  3617. func (s *ChannelSummary) SetChannelName(v string) *ChannelSummary {
  3618. s.ChannelName = &v
  3619. return s
  3620. }
  3621. // SetCreationTime sets the CreationTime field's value.
  3622. func (s *ChannelSummary) SetCreationTime(v time.Time) *ChannelSummary {
  3623. s.CreationTime = &v
  3624. return s
  3625. }
  3626. // SetLastUpdateTime sets the LastUpdateTime field's value.
  3627. func (s *ChannelSummary) SetLastUpdateTime(v time.Time) *ChannelSummary {
  3628. s.LastUpdateTime = &v
  3629. return s
  3630. }
  3631. // SetStatus sets the Status field's value.
  3632. func (s *ChannelSummary) SetStatus(v string) *ChannelSummary {
  3633. s.Status = &v
  3634. return s
  3635. }
  3636. // Information needed to run the "containerAction" to produce data set contents.
  3637. type ContainerDatasetAction struct {
  3638. _ struct{} `type:"structure"`
  3639. // The ARN of the role which gives permission to the system to access needed
  3640. // resources in order to run the "containerAction". This includes, at minimum,
  3641. // permission to retrieve the data set contents which are the input to the containerized
  3642. // application.
  3643. //
  3644. // ExecutionRoleArn is a required field
  3645. ExecutionRoleArn *string `locationName:"executionRoleArn" min:"20" type:"string" required:"true"`
  3646. // The ARN of the Docker container stored in your account. The Docker container
  3647. // contains an application and needed support libraries and is used to generate
  3648. // data set contents.
  3649. //
  3650. // Image is a required field
  3651. Image *string `locationName:"image" type:"string" required:"true"`
  3652. // Configuration of the resource which executes the "containerAction".
  3653. //
  3654. // ResourceConfiguration is a required field
  3655. ResourceConfiguration *ResourceConfiguration `locationName:"resourceConfiguration" type:"structure" required:"true"`
  3656. // The values of variables used within the context of the execution of the containerized
  3657. // application (basically, parameters passed to the application). Each variable
  3658. // must have a name and a value given by one of "stringValue", "datasetContentVersionValue",
  3659. // or "outputFileUriValue".
  3660. Variables []*Variable `locationName:"variables" type:"list"`
  3661. }
  3662. // String returns the string representation
  3663. func (s ContainerDatasetAction) String() string {
  3664. return awsutil.Prettify(s)
  3665. }
  3666. // GoString returns the string representation
  3667. func (s ContainerDatasetAction) GoString() string {
  3668. return s.String()
  3669. }
  3670. // Validate inspects the fields of the type to determine if they are valid.
  3671. func (s *ContainerDatasetAction) Validate() error {
  3672. invalidParams := request.ErrInvalidParams{Context: "ContainerDatasetAction"}
  3673. if s.ExecutionRoleArn == nil {
  3674. invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn"))
  3675. }
  3676. if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 {
  3677. invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20))
  3678. }
  3679. if s.Image == nil {
  3680. invalidParams.Add(request.NewErrParamRequired("Image"))
  3681. }
  3682. if s.ResourceConfiguration == nil {
  3683. invalidParams.Add(request.NewErrParamRequired("ResourceConfiguration"))
  3684. }
  3685. if s.ResourceConfiguration != nil {
  3686. if err := s.ResourceConfiguration.Validate(); err != nil {
  3687. invalidParams.AddNested("ResourceConfiguration", err.(request.ErrInvalidParams))
  3688. }
  3689. }
  3690. if s.Variables != nil {
  3691. for i, v := range s.Variables {
  3692. if v == nil {
  3693. continue
  3694. }
  3695. if err := v.Validate(); err != nil {
  3696. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Variables", i), err.(request.ErrInvalidParams))
  3697. }
  3698. }
  3699. }
  3700. if invalidParams.Len() > 0 {
  3701. return invalidParams
  3702. }
  3703. return nil
  3704. }
  3705. // SetExecutionRoleArn sets the ExecutionRoleArn field's value.
  3706. func (s *ContainerDatasetAction) SetExecutionRoleArn(v string) *ContainerDatasetAction {
  3707. s.ExecutionRoleArn = &v
  3708. return s
  3709. }
  3710. // SetImage sets the Image field's value.
  3711. func (s *ContainerDatasetAction) SetImage(v string) *ContainerDatasetAction {
  3712. s.Image = &v
  3713. return s
  3714. }
  3715. // SetResourceConfiguration sets the ResourceConfiguration field's value.
  3716. func (s *ContainerDatasetAction) SetResourceConfiguration(v *ResourceConfiguration) *ContainerDatasetAction {
  3717. s.ResourceConfiguration = v
  3718. return s
  3719. }
  3720. // SetVariables sets the Variables field's value.
  3721. func (s *ContainerDatasetAction) SetVariables(v []*Variable) *ContainerDatasetAction {
  3722. s.Variables = v
  3723. return s
  3724. }
  3725. type CreateChannelInput struct {
  3726. _ struct{} `type:"structure"`
  3727. // The name of the channel.
  3728. //
  3729. // ChannelName is a required field
  3730. ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"`
  3731. // How long, in days, message data is kept for the channel.
  3732. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  3733. // Metadata which can be used to manage the channel.
  3734. Tags []*Tag `locationName:"tags" min:"1" type:"list"`
  3735. }
  3736. // String returns the string representation
  3737. func (s CreateChannelInput) String() string {
  3738. return awsutil.Prettify(s)
  3739. }
  3740. // GoString returns the string representation
  3741. func (s CreateChannelInput) GoString() string {
  3742. return s.String()
  3743. }
  3744. // Validate inspects the fields of the type to determine if they are valid.
  3745. func (s *CreateChannelInput) Validate() error {
  3746. invalidParams := request.ErrInvalidParams{Context: "CreateChannelInput"}
  3747. if s.ChannelName == nil {
  3748. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  3749. }
  3750. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  3751. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  3752. }
  3753. if s.Tags != nil && len(s.Tags) < 1 {
  3754. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  3755. }
  3756. if s.RetentionPeriod != nil {
  3757. if err := s.RetentionPeriod.Validate(); err != nil {
  3758. invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
  3759. }
  3760. }
  3761. if s.Tags != nil {
  3762. for i, v := range s.Tags {
  3763. if v == nil {
  3764. continue
  3765. }
  3766. if err := v.Validate(); err != nil {
  3767. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3768. }
  3769. }
  3770. }
  3771. if invalidParams.Len() > 0 {
  3772. return invalidParams
  3773. }
  3774. return nil
  3775. }
  3776. // SetChannelName sets the ChannelName field's value.
  3777. func (s *CreateChannelInput) SetChannelName(v string) *CreateChannelInput {
  3778. s.ChannelName = &v
  3779. return s
  3780. }
  3781. // SetRetentionPeriod sets the RetentionPeriod field's value.
  3782. func (s *CreateChannelInput) SetRetentionPeriod(v *RetentionPeriod) *CreateChannelInput {
  3783. s.RetentionPeriod = v
  3784. return s
  3785. }
  3786. // SetTags sets the Tags field's value.
  3787. func (s *CreateChannelInput) SetTags(v []*Tag) *CreateChannelInput {
  3788. s.Tags = v
  3789. return s
  3790. }
  3791. type CreateChannelOutput struct {
  3792. _ struct{} `type:"structure"`
  3793. // The ARN of the channel.
  3794. ChannelArn *string `locationName:"channelArn" type:"string"`
  3795. // The name of the channel.
  3796. ChannelName *string `locationName:"channelName" min:"1" type:"string"`
  3797. // How long, in days, message data is kept for the channel.
  3798. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  3799. }
  3800. // String returns the string representation
  3801. func (s CreateChannelOutput) String() string {
  3802. return awsutil.Prettify(s)
  3803. }
  3804. // GoString returns the string representation
  3805. func (s CreateChannelOutput) GoString() string {
  3806. return s.String()
  3807. }
  3808. // SetChannelArn sets the ChannelArn field's value.
  3809. func (s *CreateChannelOutput) SetChannelArn(v string) *CreateChannelOutput {
  3810. s.ChannelArn = &v
  3811. return s
  3812. }
  3813. // SetChannelName sets the ChannelName field's value.
  3814. func (s *CreateChannelOutput) SetChannelName(v string) *CreateChannelOutput {
  3815. s.ChannelName = &v
  3816. return s
  3817. }
  3818. // SetRetentionPeriod sets the RetentionPeriod field's value.
  3819. func (s *CreateChannelOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateChannelOutput {
  3820. s.RetentionPeriod = v
  3821. return s
  3822. }
  3823. type CreateDatasetContentInput struct {
  3824. _ struct{} `type:"structure"`
  3825. // The name of the data set.
  3826. //
  3827. // DatasetName is a required field
  3828. DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
  3829. }
  3830. // String returns the string representation
  3831. func (s CreateDatasetContentInput) String() string {
  3832. return awsutil.Prettify(s)
  3833. }
  3834. // GoString returns the string representation
  3835. func (s CreateDatasetContentInput) GoString() string {
  3836. return s.String()
  3837. }
  3838. // Validate inspects the fields of the type to determine if they are valid.
  3839. func (s *CreateDatasetContentInput) Validate() error {
  3840. invalidParams := request.ErrInvalidParams{Context: "CreateDatasetContentInput"}
  3841. if s.DatasetName == nil {
  3842. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  3843. }
  3844. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  3845. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  3846. }
  3847. if invalidParams.Len() > 0 {
  3848. return invalidParams
  3849. }
  3850. return nil
  3851. }
  3852. // SetDatasetName sets the DatasetName field's value.
  3853. func (s *CreateDatasetContentInput) SetDatasetName(v string) *CreateDatasetContentInput {
  3854. s.DatasetName = &v
  3855. return s
  3856. }
  3857. type CreateDatasetContentOutput struct {
  3858. _ struct{} `type:"structure"`
  3859. // The version ID of the data set contents which are being created.
  3860. VersionId *string `locationName:"versionId" min:"7" type:"string"`
  3861. }
  3862. // String returns the string representation
  3863. func (s CreateDatasetContentOutput) String() string {
  3864. return awsutil.Prettify(s)
  3865. }
  3866. // GoString returns the string representation
  3867. func (s CreateDatasetContentOutput) GoString() string {
  3868. return s.String()
  3869. }
  3870. // SetVersionId sets the VersionId field's value.
  3871. func (s *CreateDatasetContentOutput) SetVersionId(v string) *CreateDatasetContentOutput {
  3872. s.VersionId = &v
  3873. return s
  3874. }
  3875. type CreateDatasetInput struct {
  3876. _ struct{} `type:"structure"`
  3877. // A list of actions that create the data set contents.
  3878. //
  3879. // Actions is a required field
  3880. Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"`
  3881. // When data set contents are created they are delivered to destinations specified
  3882. // here.
  3883. ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"`
  3884. // The name of the data set.
  3885. //
  3886. // DatasetName is a required field
  3887. DatasetName *string `locationName:"datasetName" min:"1" type:"string" required:"true"`
  3888. // [Optional] How long, in days, message data is kept for the data set. If not
  3889. // given or set to null, the latest version of the dataset content plus the
  3890. // latest succeeded version (if they are different) are retained for at most
  3891. // 90 days.
  3892. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  3893. // Metadata which can be used to manage the data set.
  3894. Tags []*Tag `locationName:"tags" min:"1" type:"list"`
  3895. // A list of triggers. A trigger causes data set contents to be populated at
  3896. // a specified time interval or when another data set's contents are created.
  3897. // The list of triggers can be empty or contain up to five DataSetTrigger objects.
  3898. Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
  3899. }
  3900. // String returns the string representation
  3901. func (s CreateDatasetInput) String() string {
  3902. return awsutil.Prettify(s)
  3903. }
  3904. // GoString returns the string representation
  3905. func (s CreateDatasetInput) GoString() string {
  3906. return s.String()
  3907. }
  3908. // Validate inspects the fields of the type to determine if they are valid.
  3909. func (s *CreateDatasetInput) Validate() error {
  3910. invalidParams := request.ErrInvalidParams{Context: "CreateDatasetInput"}
  3911. if s.Actions == nil {
  3912. invalidParams.Add(request.NewErrParamRequired("Actions"))
  3913. }
  3914. if s.Actions != nil && len(s.Actions) < 1 {
  3915. invalidParams.Add(request.NewErrParamMinLen("Actions", 1))
  3916. }
  3917. if s.DatasetName == nil {
  3918. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  3919. }
  3920. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  3921. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  3922. }
  3923. if s.Tags != nil && len(s.Tags) < 1 {
  3924. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  3925. }
  3926. if s.Actions != nil {
  3927. for i, v := range s.Actions {
  3928. if v == nil {
  3929. continue
  3930. }
  3931. if err := v.Validate(); err != nil {
  3932. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
  3933. }
  3934. }
  3935. }
  3936. if s.ContentDeliveryRules != nil {
  3937. for i, v := range s.ContentDeliveryRules {
  3938. if v == nil {
  3939. continue
  3940. }
  3941. if err := v.Validate(); err != nil {
  3942. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContentDeliveryRules", i), err.(request.ErrInvalidParams))
  3943. }
  3944. }
  3945. }
  3946. if s.RetentionPeriod != nil {
  3947. if err := s.RetentionPeriod.Validate(); err != nil {
  3948. invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
  3949. }
  3950. }
  3951. if s.Tags != nil {
  3952. for i, v := range s.Tags {
  3953. if v == nil {
  3954. continue
  3955. }
  3956. if err := v.Validate(); err != nil {
  3957. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3958. }
  3959. }
  3960. }
  3961. if s.Triggers != nil {
  3962. for i, v := range s.Triggers {
  3963. if v == nil {
  3964. continue
  3965. }
  3966. if err := v.Validate(); err != nil {
  3967. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
  3968. }
  3969. }
  3970. }
  3971. if invalidParams.Len() > 0 {
  3972. return invalidParams
  3973. }
  3974. return nil
  3975. }
  3976. // SetActions sets the Actions field's value.
  3977. func (s *CreateDatasetInput) SetActions(v []*DatasetAction) *CreateDatasetInput {
  3978. s.Actions = v
  3979. return s
  3980. }
  3981. // SetContentDeliveryRules sets the ContentDeliveryRules field's value.
  3982. func (s *CreateDatasetInput) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *CreateDatasetInput {
  3983. s.ContentDeliveryRules = v
  3984. return s
  3985. }
  3986. // SetDatasetName sets the DatasetName field's value.
  3987. func (s *CreateDatasetInput) SetDatasetName(v string) *CreateDatasetInput {
  3988. s.DatasetName = &v
  3989. return s
  3990. }
  3991. // SetRetentionPeriod sets the RetentionPeriod field's value.
  3992. func (s *CreateDatasetInput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatasetInput {
  3993. s.RetentionPeriod = v
  3994. return s
  3995. }
  3996. // SetTags sets the Tags field's value.
  3997. func (s *CreateDatasetInput) SetTags(v []*Tag) *CreateDatasetInput {
  3998. s.Tags = v
  3999. return s
  4000. }
  4001. // SetTriggers sets the Triggers field's value.
  4002. func (s *CreateDatasetInput) SetTriggers(v []*DatasetTrigger) *CreateDatasetInput {
  4003. s.Triggers = v
  4004. return s
  4005. }
  4006. type CreateDatasetOutput struct {
  4007. _ struct{} `type:"structure"`
  4008. // The ARN of the data set.
  4009. DatasetArn *string `locationName:"datasetArn" type:"string"`
  4010. // The name of the data set.
  4011. DatasetName *string `locationName:"datasetName" min:"1" type:"string"`
  4012. // How long, in days, message data is kept for the data set.
  4013. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  4014. }
  4015. // String returns the string representation
  4016. func (s CreateDatasetOutput) String() string {
  4017. return awsutil.Prettify(s)
  4018. }
  4019. // GoString returns the string representation
  4020. func (s CreateDatasetOutput) GoString() string {
  4021. return s.String()
  4022. }
  4023. // SetDatasetArn sets the DatasetArn field's value.
  4024. func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput {
  4025. s.DatasetArn = &v
  4026. return s
  4027. }
  4028. // SetDatasetName sets the DatasetName field's value.
  4029. func (s *CreateDatasetOutput) SetDatasetName(v string) *CreateDatasetOutput {
  4030. s.DatasetName = &v
  4031. return s
  4032. }
  4033. // SetRetentionPeriod sets the RetentionPeriod field's value.
  4034. func (s *CreateDatasetOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatasetOutput {
  4035. s.RetentionPeriod = v
  4036. return s
  4037. }
  4038. type CreateDatastoreInput struct {
  4039. _ struct{} `type:"structure"`
  4040. // The name of the data store.
  4041. //
  4042. // DatastoreName is a required field
  4043. DatastoreName *string `locationName:"datastoreName" min:"1" type:"string" required:"true"`
  4044. // How long, in days, message data is kept for the data store.
  4045. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  4046. // Metadata which can be used to manage the data store.
  4047. Tags []*Tag `locationName:"tags" min:"1" type:"list"`
  4048. }
  4049. // String returns the string representation
  4050. func (s CreateDatastoreInput) String() string {
  4051. return awsutil.Prettify(s)
  4052. }
  4053. // GoString returns the string representation
  4054. func (s CreateDatastoreInput) GoString() string {
  4055. return s.String()
  4056. }
  4057. // Validate inspects the fields of the type to determine if they are valid.
  4058. func (s *CreateDatastoreInput) Validate() error {
  4059. invalidParams := request.ErrInvalidParams{Context: "CreateDatastoreInput"}
  4060. if s.DatastoreName == nil {
  4061. invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
  4062. }
  4063. if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
  4064. invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
  4065. }
  4066. if s.Tags != nil && len(s.Tags) < 1 {
  4067. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  4068. }
  4069. if s.RetentionPeriod != nil {
  4070. if err := s.RetentionPeriod.Validate(); err != nil {
  4071. invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
  4072. }
  4073. }
  4074. if s.Tags != nil {
  4075. for i, v := range s.Tags {
  4076. if v == nil {
  4077. continue
  4078. }
  4079. if err := v.Validate(); err != nil {
  4080. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  4081. }
  4082. }
  4083. }
  4084. if invalidParams.Len() > 0 {
  4085. return invalidParams
  4086. }
  4087. return nil
  4088. }
  4089. // SetDatastoreName sets the DatastoreName field's value.
  4090. func (s *CreateDatastoreInput) SetDatastoreName(v string) *CreateDatastoreInput {
  4091. s.DatastoreName = &v
  4092. return s
  4093. }
  4094. // SetRetentionPeriod sets the RetentionPeriod field's value.
  4095. func (s *CreateDatastoreInput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatastoreInput {
  4096. s.RetentionPeriod = v
  4097. return s
  4098. }
  4099. // SetTags sets the Tags field's value.
  4100. func (s *CreateDatastoreInput) SetTags(v []*Tag) *CreateDatastoreInput {
  4101. s.Tags = v
  4102. return s
  4103. }
  4104. type CreateDatastoreOutput struct {
  4105. _ struct{} `type:"structure"`
  4106. // The ARN of the data store.
  4107. DatastoreArn *string `locationName:"datastoreArn" type:"string"`
  4108. // The name of the data store.
  4109. DatastoreName *string `locationName:"datastoreName" min:"1" type:"string"`
  4110. // How long, in days, message data is kept for the data store.
  4111. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  4112. }
  4113. // String returns the string representation
  4114. func (s CreateDatastoreOutput) String() string {
  4115. return awsutil.Prettify(s)
  4116. }
  4117. // GoString returns the string representation
  4118. func (s CreateDatastoreOutput) GoString() string {
  4119. return s.String()
  4120. }
  4121. // SetDatastoreArn sets the DatastoreArn field's value.
  4122. func (s *CreateDatastoreOutput) SetDatastoreArn(v string) *CreateDatastoreOutput {
  4123. s.DatastoreArn = &v
  4124. return s
  4125. }
  4126. // SetDatastoreName sets the DatastoreName field's value.
  4127. func (s *CreateDatastoreOutput) SetDatastoreName(v string) *CreateDatastoreOutput {
  4128. s.DatastoreName = &v
  4129. return s
  4130. }
  4131. // SetRetentionPeriod sets the RetentionPeriod field's value.
  4132. func (s *CreateDatastoreOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatastoreOutput {
  4133. s.RetentionPeriod = v
  4134. return s
  4135. }
  4136. type CreatePipelineInput struct {
  4137. _ struct{} `type:"structure"`
  4138. // A list of pipeline activities.
  4139. //
  4140. // The list can be 1-25 PipelineActivity objects. Activities perform transformations
  4141. // on your messages, such as removing, renaming, or adding message attributes;
  4142. // filtering messages based on attribute values; invoking your Lambda functions
  4143. // on messages for advanced processing; or performing mathematical transformations
  4144. // to normalize device data.
  4145. //
  4146. // PipelineActivities is a required field
  4147. PipelineActivities []*PipelineActivity `locationName:"pipelineActivities" min:"1" type:"list" required:"true"`
  4148. // The name of the pipeline.
  4149. //
  4150. // PipelineName is a required field
  4151. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  4152. // Metadata which can be used to manage the pipeline.
  4153. Tags []*Tag `locationName:"tags" min:"1" type:"list"`
  4154. }
  4155. // String returns the string representation
  4156. func (s CreatePipelineInput) String() string {
  4157. return awsutil.Prettify(s)
  4158. }
  4159. // GoString returns the string representation
  4160. func (s CreatePipelineInput) GoString() string {
  4161. return s.String()
  4162. }
  4163. // Validate inspects the fields of the type to determine if they are valid.
  4164. func (s *CreatePipelineInput) Validate() error {
  4165. invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
  4166. if s.PipelineActivities == nil {
  4167. invalidParams.Add(request.NewErrParamRequired("PipelineActivities"))
  4168. }
  4169. if s.PipelineActivities != nil && len(s.PipelineActivities) < 1 {
  4170. invalidParams.Add(request.NewErrParamMinLen("PipelineActivities", 1))
  4171. }
  4172. if s.PipelineName == nil {
  4173. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  4174. }
  4175. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  4176. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  4177. }
  4178. if s.Tags != nil && len(s.Tags) < 1 {
  4179. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  4180. }
  4181. if s.PipelineActivities != nil {
  4182. for i, v := range s.PipelineActivities {
  4183. if v == nil {
  4184. continue
  4185. }
  4186. if err := v.Validate(); err != nil {
  4187. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineActivities", i), err.(request.ErrInvalidParams))
  4188. }
  4189. }
  4190. }
  4191. if s.Tags != nil {
  4192. for i, v := range s.Tags {
  4193. if v == nil {
  4194. continue
  4195. }
  4196. if err := v.Validate(); err != nil {
  4197. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  4198. }
  4199. }
  4200. }
  4201. if invalidParams.Len() > 0 {
  4202. return invalidParams
  4203. }
  4204. return nil
  4205. }
  4206. // SetPipelineActivities sets the PipelineActivities field's value.
  4207. func (s *CreatePipelineInput) SetPipelineActivities(v []*PipelineActivity) *CreatePipelineInput {
  4208. s.PipelineActivities = v
  4209. return s
  4210. }
  4211. // SetPipelineName sets the PipelineName field's value.
  4212. func (s *CreatePipelineInput) SetPipelineName(v string) *CreatePipelineInput {
  4213. s.PipelineName = &v
  4214. return s
  4215. }
  4216. // SetTags sets the Tags field's value.
  4217. func (s *CreatePipelineInput) SetTags(v []*Tag) *CreatePipelineInput {
  4218. s.Tags = v
  4219. return s
  4220. }
  4221. type CreatePipelineOutput struct {
  4222. _ struct{} `type:"structure"`
  4223. // The ARN of the pipeline.
  4224. PipelineArn *string `locationName:"pipelineArn" type:"string"`
  4225. // The name of the pipeline.
  4226. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  4227. }
  4228. // String returns the string representation
  4229. func (s CreatePipelineOutput) String() string {
  4230. return awsutil.Prettify(s)
  4231. }
  4232. // GoString returns the string representation
  4233. func (s CreatePipelineOutput) GoString() string {
  4234. return s.String()
  4235. }
  4236. // SetPipelineArn sets the PipelineArn field's value.
  4237. func (s *CreatePipelineOutput) SetPipelineArn(v string) *CreatePipelineOutput {
  4238. s.PipelineArn = &v
  4239. return s
  4240. }
  4241. // SetPipelineName sets the PipelineName field's value.
  4242. func (s *CreatePipelineOutput) SetPipelineName(v string) *CreatePipelineOutput {
  4243. s.PipelineName = &v
  4244. return s
  4245. }
  4246. // Information about a data set.
  4247. type Dataset struct {
  4248. _ struct{} `type:"structure"`
  4249. // The "DatasetAction" objects that automatically create the data set contents.
  4250. Actions []*DatasetAction `locationName:"actions" min:"1" type:"list"`
  4251. // The ARN of the data set.
  4252. Arn *string `locationName:"arn" type:"string"`
  4253. // When data set contents are created they are delivered to destinations specified
  4254. // here.
  4255. ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"`
  4256. // When the data set was created.
  4257. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  4258. // The last time the data set was updated.
  4259. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  4260. // The name of the data set.
  4261. Name *string `locationName:"name" min:"1" type:"string"`
  4262. // [Optional] How long, in days, message data is kept for the data set.
  4263. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  4264. // The status of the data set.
  4265. Status *string `locationName:"status" type:"string" enum:"DatasetStatus"`
  4266. // The "DatasetTrigger" objects that specify when the data set is automatically
  4267. // updated.
  4268. Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
  4269. }
  4270. // String returns the string representation
  4271. func (s Dataset) String() string {
  4272. return awsutil.Prettify(s)
  4273. }
  4274. // GoString returns the string representation
  4275. func (s Dataset) GoString() string {
  4276. return s.String()
  4277. }
  4278. // SetActions sets the Actions field's value.
  4279. func (s *Dataset) SetActions(v []*DatasetAction) *Dataset {
  4280. s.Actions = v
  4281. return s
  4282. }
  4283. // SetArn sets the Arn field's value.
  4284. func (s *Dataset) SetArn(v string) *Dataset {
  4285. s.Arn = &v
  4286. return s
  4287. }
  4288. // SetContentDeliveryRules sets the ContentDeliveryRules field's value.
  4289. func (s *Dataset) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *Dataset {
  4290. s.ContentDeliveryRules = v
  4291. return s
  4292. }
  4293. // SetCreationTime sets the CreationTime field's value.
  4294. func (s *Dataset) SetCreationTime(v time.Time) *Dataset {
  4295. s.CreationTime = &v
  4296. return s
  4297. }
  4298. // SetLastUpdateTime sets the LastUpdateTime field's value.
  4299. func (s *Dataset) SetLastUpdateTime(v time.Time) *Dataset {
  4300. s.LastUpdateTime = &v
  4301. return s
  4302. }
  4303. // SetName sets the Name field's value.
  4304. func (s *Dataset) SetName(v string) *Dataset {
  4305. s.Name = &v
  4306. return s
  4307. }
  4308. // SetRetentionPeriod sets the RetentionPeriod field's value.
  4309. func (s *Dataset) SetRetentionPeriod(v *RetentionPeriod) *Dataset {
  4310. s.RetentionPeriod = v
  4311. return s
  4312. }
  4313. // SetStatus sets the Status field's value.
  4314. func (s *Dataset) SetStatus(v string) *Dataset {
  4315. s.Status = &v
  4316. return s
  4317. }
  4318. // SetTriggers sets the Triggers field's value.
  4319. func (s *Dataset) SetTriggers(v []*DatasetTrigger) *Dataset {
  4320. s.Triggers = v
  4321. return s
  4322. }
  4323. // A "DatasetAction" object that specifies how data set contents are automatically
  4324. // created.
  4325. type DatasetAction struct {
  4326. _ struct{} `type:"structure"`
  4327. // The name of the data set action by which data set contents are automatically
  4328. // created.
  4329. ActionName *string `locationName:"actionName" min:"1" type:"string"`
  4330. // Information which allows the system to run a containerized application in
  4331. // order to create the data set contents. The application must be in a Docker
  4332. // container along with any needed support libraries.
  4333. ContainerAction *ContainerDatasetAction `locationName:"containerAction" type:"structure"`
  4334. // An "SqlQueryDatasetAction" object that uses an SQL query to automatically
  4335. // create data set contents.
  4336. QueryAction *SqlQueryDatasetAction `locationName:"queryAction" type:"structure"`
  4337. }
  4338. // String returns the string representation
  4339. func (s DatasetAction) String() string {
  4340. return awsutil.Prettify(s)
  4341. }
  4342. // GoString returns the string representation
  4343. func (s DatasetAction) GoString() string {
  4344. return s.String()
  4345. }
  4346. // Validate inspects the fields of the type to determine if they are valid.
  4347. func (s *DatasetAction) Validate() error {
  4348. invalidParams := request.ErrInvalidParams{Context: "DatasetAction"}
  4349. if s.ActionName != nil && len(*s.ActionName) < 1 {
  4350. invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
  4351. }
  4352. if s.ContainerAction != nil {
  4353. if err := s.ContainerAction.Validate(); err != nil {
  4354. invalidParams.AddNested("ContainerAction", err.(request.ErrInvalidParams))
  4355. }
  4356. }
  4357. if s.QueryAction != nil {
  4358. if err := s.QueryAction.Validate(); err != nil {
  4359. invalidParams.AddNested("QueryAction", err.(request.ErrInvalidParams))
  4360. }
  4361. }
  4362. if invalidParams.Len() > 0 {
  4363. return invalidParams
  4364. }
  4365. return nil
  4366. }
  4367. // SetActionName sets the ActionName field's value.
  4368. func (s *DatasetAction) SetActionName(v string) *DatasetAction {
  4369. s.ActionName = &v
  4370. return s
  4371. }
  4372. // SetContainerAction sets the ContainerAction field's value.
  4373. func (s *DatasetAction) SetContainerAction(v *ContainerDatasetAction) *DatasetAction {
  4374. s.ContainerAction = v
  4375. return s
  4376. }
  4377. // SetQueryAction sets the QueryAction field's value.
  4378. func (s *DatasetAction) SetQueryAction(v *SqlQueryDatasetAction) *DatasetAction {
  4379. s.QueryAction = v
  4380. return s
  4381. }
  4382. type DatasetActionSummary struct {
  4383. _ struct{} `type:"structure"`
  4384. // The name of the action which automatically creates the data set's contents.
  4385. ActionName *string `locationName:"actionName" min:"1" type:"string"`
  4386. // The type of action by which the data set's contents are automatically created.
  4387. ActionType *string `locationName:"actionType" type:"string" enum:"DatasetActionType"`
  4388. }
  4389. // String returns the string representation
  4390. func (s DatasetActionSummary) String() string {
  4391. return awsutil.Prettify(s)
  4392. }
  4393. // GoString returns the string representation
  4394. func (s DatasetActionSummary) GoString() string {
  4395. return s.String()
  4396. }
  4397. // SetActionName sets the ActionName field's value.
  4398. func (s *DatasetActionSummary) SetActionName(v string) *DatasetActionSummary {
  4399. s.ActionName = &v
  4400. return s
  4401. }
  4402. // SetActionType sets the ActionType field's value.
  4403. func (s *DatasetActionSummary) SetActionType(v string) *DatasetActionSummary {
  4404. s.ActionType = &v
  4405. return s
  4406. }
  4407. // The destination to which data set contents are delivered.
  4408. type DatasetContentDeliveryDestination struct {
  4409. _ struct{} `type:"structure"`
  4410. // Configuration information for delivery of data set contents to AWS IoT Events.
  4411. IotEventsDestinationConfiguration *IotEventsDestinationConfiguration `locationName:"iotEventsDestinationConfiguration" type:"structure"`
  4412. }
  4413. // String returns the string representation
  4414. func (s DatasetContentDeliveryDestination) String() string {
  4415. return awsutil.Prettify(s)
  4416. }
  4417. // GoString returns the string representation
  4418. func (s DatasetContentDeliveryDestination) GoString() string {
  4419. return s.String()
  4420. }
  4421. // Validate inspects the fields of the type to determine if they are valid.
  4422. func (s *DatasetContentDeliveryDestination) Validate() error {
  4423. invalidParams := request.ErrInvalidParams{Context: "DatasetContentDeliveryDestination"}
  4424. if s.IotEventsDestinationConfiguration != nil {
  4425. if err := s.IotEventsDestinationConfiguration.Validate(); err != nil {
  4426. invalidParams.AddNested("IotEventsDestinationConfiguration", err.(request.ErrInvalidParams))
  4427. }
  4428. }
  4429. if invalidParams.Len() > 0 {
  4430. return invalidParams
  4431. }
  4432. return nil
  4433. }
  4434. // SetIotEventsDestinationConfiguration sets the IotEventsDestinationConfiguration field's value.
  4435. func (s *DatasetContentDeliveryDestination) SetIotEventsDestinationConfiguration(v *IotEventsDestinationConfiguration) *DatasetContentDeliveryDestination {
  4436. s.IotEventsDestinationConfiguration = v
  4437. return s
  4438. }
  4439. // When data set contents are created they are delivered to destination specified
  4440. // here.
  4441. type DatasetContentDeliveryRule struct {
  4442. _ struct{} `type:"structure"`
  4443. // The destination to which data set contents are delivered.
  4444. //
  4445. // Destination is a required field
  4446. Destination *DatasetContentDeliveryDestination `locationName:"destination" type:"structure" required:"true"`
  4447. // The name of the data set content delivery rules entry.
  4448. EntryName *string `locationName:"entryName" type:"string"`
  4449. }
  4450. // String returns the string representation
  4451. func (s DatasetContentDeliveryRule) String() string {
  4452. return awsutil.Prettify(s)
  4453. }
  4454. // GoString returns the string representation
  4455. func (s DatasetContentDeliveryRule) GoString() string {
  4456. return s.String()
  4457. }
  4458. // Validate inspects the fields of the type to determine if they are valid.
  4459. func (s *DatasetContentDeliveryRule) Validate() error {
  4460. invalidParams := request.ErrInvalidParams{Context: "DatasetContentDeliveryRule"}
  4461. if s.Destination == nil {
  4462. invalidParams.Add(request.NewErrParamRequired("Destination"))
  4463. }
  4464. if s.Destination != nil {
  4465. if err := s.Destination.Validate(); err != nil {
  4466. invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
  4467. }
  4468. }
  4469. if invalidParams.Len() > 0 {
  4470. return invalidParams
  4471. }
  4472. return nil
  4473. }
  4474. // SetDestination sets the Destination field's value.
  4475. func (s *DatasetContentDeliveryRule) SetDestination(v *DatasetContentDeliveryDestination) *DatasetContentDeliveryRule {
  4476. s.Destination = v
  4477. return s
  4478. }
  4479. // SetEntryName sets the EntryName field's value.
  4480. func (s *DatasetContentDeliveryRule) SetEntryName(v string) *DatasetContentDeliveryRule {
  4481. s.EntryName = &v
  4482. return s
  4483. }
  4484. // The state of the data set contents and the reason they are in this state.
  4485. type DatasetContentStatus struct {
  4486. _ struct{} `type:"structure"`
  4487. // The reason the data set contents are in this state.
  4488. Reason *string `locationName:"reason" type:"string"`
  4489. // The state of the data set contents. Can be one of "READY", "CREATING", "SUCCEEDED"
  4490. // or "FAILED".
  4491. State *string `locationName:"state" type:"string" enum:"DatasetContentState"`
  4492. }
  4493. // String returns the string representation
  4494. func (s DatasetContentStatus) String() string {
  4495. return awsutil.Prettify(s)
  4496. }
  4497. // GoString returns the string representation
  4498. func (s DatasetContentStatus) GoString() string {
  4499. return s.String()
  4500. }
  4501. // SetReason sets the Reason field's value.
  4502. func (s *DatasetContentStatus) SetReason(v string) *DatasetContentStatus {
  4503. s.Reason = &v
  4504. return s
  4505. }
  4506. // SetState sets the State field's value.
  4507. func (s *DatasetContentStatus) SetState(v string) *DatasetContentStatus {
  4508. s.State = &v
  4509. return s
  4510. }
  4511. // Summary information about data set contents.
  4512. type DatasetContentSummary struct {
  4513. _ struct{} `type:"structure"`
  4514. // The actual time the creation of the data set contents was started.
  4515. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  4516. // The time the creation of the data set contents was scheduled to start.
  4517. ScheduleTime *time.Time `locationName:"scheduleTime" type:"timestamp"`
  4518. // The status of the data set contents.
  4519. Status *DatasetContentStatus `locationName:"status" type:"structure"`
  4520. // The version of the data set contents.
  4521. Version *string `locationName:"version" min:"7" type:"string"`
  4522. }
  4523. // String returns the string representation
  4524. func (s DatasetContentSummary) String() string {
  4525. return awsutil.Prettify(s)
  4526. }
  4527. // GoString returns the string representation
  4528. func (s DatasetContentSummary) GoString() string {
  4529. return s.String()
  4530. }
  4531. // SetCreationTime sets the CreationTime field's value.
  4532. func (s *DatasetContentSummary) SetCreationTime(v time.Time) *DatasetContentSummary {
  4533. s.CreationTime = &v
  4534. return s
  4535. }
  4536. // SetScheduleTime sets the ScheduleTime field's value.
  4537. func (s *DatasetContentSummary) SetScheduleTime(v time.Time) *DatasetContentSummary {
  4538. s.ScheduleTime = &v
  4539. return s
  4540. }
  4541. // SetStatus sets the Status field's value.
  4542. func (s *DatasetContentSummary) SetStatus(v *DatasetContentStatus) *DatasetContentSummary {
  4543. s.Status = v
  4544. return s
  4545. }
  4546. // SetVersion sets the Version field's value.
  4547. func (s *DatasetContentSummary) SetVersion(v string) *DatasetContentSummary {
  4548. s.Version = &v
  4549. return s
  4550. }
  4551. // The data set whose latest contents are used as input to the notebook or application.
  4552. type DatasetContentVersionValue struct {
  4553. _ struct{} `type:"structure"`
  4554. // The name of the data set whose latest contents are used as input to the notebook
  4555. // or application.
  4556. //
  4557. // DatasetName is a required field
  4558. DatasetName *string `locationName:"datasetName" min:"1" type:"string" required:"true"`
  4559. }
  4560. // String returns the string representation
  4561. func (s DatasetContentVersionValue) String() string {
  4562. return awsutil.Prettify(s)
  4563. }
  4564. // GoString returns the string representation
  4565. func (s DatasetContentVersionValue) GoString() string {
  4566. return s.String()
  4567. }
  4568. // Validate inspects the fields of the type to determine if they are valid.
  4569. func (s *DatasetContentVersionValue) Validate() error {
  4570. invalidParams := request.ErrInvalidParams{Context: "DatasetContentVersionValue"}
  4571. if s.DatasetName == nil {
  4572. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  4573. }
  4574. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  4575. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  4576. }
  4577. if invalidParams.Len() > 0 {
  4578. return invalidParams
  4579. }
  4580. return nil
  4581. }
  4582. // SetDatasetName sets the DatasetName field's value.
  4583. func (s *DatasetContentVersionValue) SetDatasetName(v string) *DatasetContentVersionValue {
  4584. s.DatasetName = &v
  4585. return s
  4586. }
  4587. // The reference to a data set entry.
  4588. type DatasetEntry struct {
  4589. _ struct{} `type:"structure"`
  4590. // The pre-signed URI of the data set item.
  4591. DataURI *string `locationName:"dataURI" type:"string"`
  4592. // The name of the data set item.
  4593. EntryName *string `locationName:"entryName" type:"string"`
  4594. }
  4595. // String returns the string representation
  4596. func (s DatasetEntry) String() string {
  4597. return awsutil.Prettify(s)
  4598. }
  4599. // GoString returns the string representation
  4600. func (s DatasetEntry) GoString() string {
  4601. return s.String()
  4602. }
  4603. // SetDataURI sets the DataURI field's value.
  4604. func (s *DatasetEntry) SetDataURI(v string) *DatasetEntry {
  4605. s.DataURI = &v
  4606. return s
  4607. }
  4608. // SetEntryName sets the EntryName field's value.
  4609. func (s *DatasetEntry) SetEntryName(v string) *DatasetEntry {
  4610. s.EntryName = &v
  4611. return s
  4612. }
  4613. // A summary of information about a data set.
  4614. type DatasetSummary struct {
  4615. _ struct{} `type:"structure"`
  4616. // A list of "DataActionSummary" objects.
  4617. Actions []*DatasetActionSummary `locationName:"actions" min:"1" type:"list"`
  4618. // The time the data set was created.
  4619. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  4620. // The name of the data set.
  4621. DatasetName *string `locationName:"datasetName" min:"1" type:"string"`
  4622. // The last time the data set was updated.
  4623. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  4624. // The status of the data set.
  4625. Status *string `locationName:"status" type:"string" enum:"DatasetStatus"`
  4626. // A list of triggers. A trigger causes data set content to be populated at
  4627. // a specified time interval or when another data set is populated. The list
  4628. // of triggers can be empty or contain up to five DataSetTrigger objects
  4629. Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
  4630. }
  4631. // String returns the string representation
  4632. func (s DatasetSummary) String() string {
  4633. return awsutil.Prettify(s)
  4634. }
  4635. // GoString returns the string representation
  4636. func (s DatasetSummary) GoString() string {
  4637. return s.String()
  4638. }
  4639. // SetActions sets the Actions field's value.
  4640. func (s *DatasetSummary) SetActions(v []*DatasetActionSummary) *DatasetSummary {
  4641. s.Actions = v
  4642. return s
  4643. }
  4644. // SetCreationTime sets the CreationTime field's value.
  4645. func (s *DatasetSummary) SetCreationTime(v time.Time) *DatasetSummary {
  4646. s.CreationTime = &v
  4647. return s
  4648. }
  4649. // SetDatasetName sets the DatasetName field's value.
  4650. func (s *DatasetSummary) SetDatasetName(v string) *DatasetSummary {
  4651. s.DatasetName = &v
  4652. return s
  4653. }
  4654. // SetLastUpdateTime sets the LastUpdateTime field's value.
  4655. func (s *DatasetSummary) SetLastUpdateTime(v time.Time) *DatasetSummary {
  4656. s.LastUpdateTime = &v
  4657. return s
  4658. }
  4659. // SetStatus sets the Status field's value.
  4660. func (s *DatasetSummary) SetStatus(v string) *DatasetSummary {
  4661. s.Status = &v
  4662. return s
  4663. }
  4664. // SetTriggers sets the Triggers field's value.
  4665. func (s *DatasetSummary) SetTriggers(v []*DatasetTrigger) *DatasetSummary {
  4666. s.Triggers = v
  4667. return s
  4668. }
  4669. // The "DatasetTrigger" that specifies when the data set is automatically updated.
  4670. type DatasetTrigger struct {
  4671. _ struct{} `type:"structure"`
  4672. // The data set whose content creation triggers the creation of this data set's
  4673. // contents.
  4674. Dataset *TriggeringDataset `locationName:"dataset" type:"structure"`
  4675. // The "Schedule" when the trigger is initiated.
  4676. Schedule *Schedule `locationName:"schedule" type:"structure"`
  4677. }
  4678. // String returns the string representation
  4679. func (s DatasetTrigger) String() string {
  4680. return awsutil.Prettify(s)
  4681. }
  4682. // GoString returns the string representation
  4683. func (s DatasetTrigger) GoString() string {
  4684. return s.String()
  4685. }
  4686. // Validate inspects the fields of the type to determine if they are valid.
  4687. func (s *DatasetTrigger) Validate() error {
  4688. invalidParams := request.ErrInvalidParams{Context: "DatasetTrigger"}
  4689. if s.Dataset != nil {
  4690. if err := s.Dataset.Validate(); err != nil {
  4691. invalidParams.AddNested("Dataset", err.(request.ErrInvalidParams))
  4692. }
  4693. }
  4694. if invalidParams.Len() > 0 {
  4695. return invalidParams
  4696. }
  4697. return nil
  4698. }
  4699. // SetDataset sets the Dataset field's value.
  4700. func (s *DatasetTrigger) SetDataset(v *TriggeringDataset) *DatasetTrigger {
  4701. s.Dataset = v
  4702. return s
  4703. }
  4704. // SetSchedule sets the Schedule field's value.
  4705. func (s *DatasetTrigger) SetSchedule(v *Schedule) *DatasetTrigger {
  4706. s.Schedule = v
  4707. return s
  4708. }
  4709. // Information about a data store.
  4710. type Datastore struct {
  4711. _ struct{} `type:"structure"`
  4712. // The ARN of the data store.
  4713. Arn *string `locationName:"arn" type:"string"`
  4714. // When the data store was created.
  4715. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  4716. // The last time the data store was updated.
  4717. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  4718. // The name of the data store.
  4719. Name *string `locationName:"name" min:"1" type:"string"`
  4720. // How long, in days, message data is kept for the data store.
  4721. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  4722. // The status of a data store:
  4723. //
  4724. // CREATINGThe data store is being created.
  4725. //
  4726. // ACTIVEThe data store has been created and can be used.
  4727. //
  4728. // DELETINGThe data store is being deleted.
  4729. Status *string `locationName:"status" type:"string" enum:"DatastoreStatus"`
  4730. }
  4731. // String returns the string representation
  4732. func (s Datastore) String() string {
  4733. return awsutil.Prettify(s)
  4734. }
  4735. // GoString returns the string representation
  4736. func (s Datastore) GoString() string {
  4737. return s.String()
  4738. }
  4739. // SetArn sets the Arn field's value.
  4740. func (s *Datastore) SetArn(v string) *Datastore {
  4741. s.Arn = &v
  4742. return s
  4743. }
  4744. // SetCreationTime sets the CreationTime field's value.
  4745. func (s *Datastore) SetCreationTime(v time.Time) *Datastore {
  4746. s.CreationTime = &v
  4747. return s
  4748. }
  4749. // SetLastUpdateTime sets the LastUpdateTime field's value.
  4750. func (s *Datastore) SetLastUpdateTime(v time.Time) *Datastore {
  4751. s.LastUpdateTime = &v
  4752. return s
  4753. }
  4754. // SetName sets the Name field's value.
  4755. func (s *Datastore) SetName(v string) *Datastore {
  4756. s.Name = &v
  4757. return s
  4758. }
  4759. // SetRetentionPeriod sets the RetentionPeriod field's value.
  4760. func (s *Datastore) SetRetentionPeriod(v *RetentionPeriod) *Datastore {
  4761. s.RetentionPeriod = v
  4762. return s
  4763. }
  4764. // SetStatus sets the Status field's value.
  4765. func (s *Datastore) SetStatus(v string) *Datastore {
  4766. s.Status = &v
  4767. return s
  4768. }
  4769. // The 'datastore' activity that specifies where to store the processed data.
  4770. type DatastoreActivity struct {
  4771. _ struct{} `type:"structure"`
  4772. // The name of the data store where processed messages are stored.
  4773. //
  4774. // DatastoreName is a required field
  4775. DatastoreName *string `locationName:"datastoreName" min:"1" type:"string" required:"true"`
  4776. // The name of the 'datastore' activity.
  4777. //
  4778. // Name is a required field
  4779. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4780. }
  4781. // String returns the string representation
  4782. func (s DatastoreActivity) String() string {
  4783. return awsutil.Prettify(s)
  4784. }
  4785. // GoString returns the string representation
  4786. func (s DatastoreActivity) GoString() string {
  4787. return s.String()
  4788. }
  4789. // Validate inspects the fields of the type to determine if they are valid.
  4790. func (s *DatastoreActivity) Validate() error {
  4791. invalidParams := request.ErrInvalidParams{Context: "DatastoreActivity"}
  4792. if s.DatastoreName == nil {
  4793. invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
  4794. }
  4795. if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
  4796. invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
  4797. }
  4798. if s.Name == nil {
  4799. invalidParams.Add(request.NewErrParamRequired("Name"))
  4800. }
  4801. if s.Name != nil && len(*s.Name) < 1 {
  4802. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4803. }
  4804. if invalidParams.Len() > 0 {
  4805. return invalidParams
  4806. }
  4807. return nil
  4808. }
  4809. // SetDatastoreName sets the DatastoreName field's value.
  4810. func (s *DatastoreActivity) SetDatastoreName(v string) *DatastoreActivity {
  4811. s.DatastoreName = &v
  4812. return s
  4813. }
  4814. // SetName sets the Name field's value.
  4815. func (s *DatastoreActivity) SetName(v string) *DatastoreActivity {
  4816. s.Name = &v
  4817. return s
  4818. }
  4819. // Statistical information about the data store.
  4820. type DatastoreStatistics struct {
  4821. _ struct{} `type:"structure"`
  4822. // The estimated size of the data store.
  4823. Size *EstimatedResourceSize `locationName:"size" type:"structure"`
  4824. }
  4825. // String returns the string representation
  4826. func (s DatastoreStatistics) String() string {
  4827. return awsutil.Prettify(s)
  4828. }
  4829. // GoString returns the string representation
  4830. func (s DatastoreStatistics) GoString() string {
  4831. return s.String()
  4832. }
  4833. // SetSize sets the Size field's value.
  4834. func (s *DatastoreStatistics) SetSize(v *EstimatedResourceSize) *DatastoreStatistics {
  4835. s.Size = v
  4836. return s
  4837. }
  4838. // A summary of information about a data store.
  4839. type DatastoreSummary struct {
  4840. _ struct{} `type:"structure"`
  4841. // When the data store was created.
  4842. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  4843. // The name of the data store.
  4844. DatastoreName *string `locationName:"datastoreName" min:"1" type:"string"`
  4845. // The last time the data store was updated.
  4846. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  4847. // The status of the data store.
  4848. Status *string `locationName:"status" type:"string" enum:"DatastoreStatus"`
  4849. }
  4850. // String returns the string representation
  4851. func (s DatastoreSummary) String() string {
  4852. return awsutil.Prettify(s)
  4853. }
  4854. // GoString returns the string representation
  4855. func (s DatastoreSummary) GoString() string {
  4856. return s.String()
  4857. }
  4858. // SetCreationTime sets the CreationTime field's value.
  4859. func (s *DatastoreSummary) SetCreationTime(v time.Time) *DatastoreSummary {
  4860. s.CreationTime = &v
  4861. return s
  4862. }
  4863. // SetDatastoreName sets the DatastoreName field's value.
  4864. func (s *DatastoreSummary) SetDatastoreName(v string) *DatastoreSummary {
  4865. s.DatastoreName = &v
  4866. return s
  4867. }
  4868. // SetLastUpdateTime sets the LastUpdateTime field's value.
  4869. func (s *DatastoreSummary) SetLastUpdateTime(v time.Time) *DatastoreSummary {
  4870. s.LastUpdateTime = &v
  4871. return s
  4872. }
  4873. // SetStatus sets the Status field's value.
  4874. func (s *DatastoreSummary) SetStatus(v string) *DatastoreSummary {
  4875. s.Status = &v
  4876. return s
  4877. }
  4878. type DeleteChannelInput struct {
  4879. _ struct{} `type:"structure"`
  4880. // The name of the channel to delete.
  4881. //
  4882. // ChannelName is a required field
  4883. ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
  4884. }
  4885. // String returns the string representation
  4886. func (s DeleteChannelInput) String() string {
  4887. return awsutil.Prettify(s)
  4888. }
  4889. // GoString returns the string representation
  4890. func (s DeleteChannelInput) GoString() string {
  4891. return s.String()
  4892. }
  4893. // Validate inspects the fields of the type to determine if they are valid.
  4894. func (s *DeleteChannelInput) Validate() error {
  4895. invalidParams := request.ErrInvalidParams{Context: "DeleteChannelInput"}
  4896. if s.ChannelName == nil {
  4897. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  4898. }
  4899. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  4900. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  4901. }
  4902. if invalidParams.Len() > 0 {
  4903. return invalidParams
  4904. }
  4905. return nil
  4906. }
  4907. // SetChannelName sets the ChannelName field's value.
  4908. func (s *DeleteChannelInput) SetChannelName(v string) *DeleteChannelInput {
  4909. s.ChannelName = &v
  4910. return s
  4911. }
  4912. type DeleteChannelOutput struct {
  4913. _ struct{} `type:"structure"`
  4914. }
  4915. // String returns the string representation
  4916. func (s DeleteChannelOutput) String() string {
  4917. return awsutil.Prettify(s)
  4918. }
  4919. // GoString returns the string representation
  4920. func (s DeleteChannelOutput) GoString() string {
  4921. return s.String()
  4922. }
  4923. type DeleteDatasetContentInput struct {
  4924. _ struct{} `type:"structure"`
  4925. // The name of the data set whose content is deleted.
  4926. //
  4927. // DatasetName is a required field
  4928. DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
  4929. // The version of the data set whose content is deleted. You can also use the
  4930. // strings "$LATEST" or "$LATEST_SUCCEEDED" to delete the latest or latest successfully
  4931. // completed data set. If not specified, "$LATEST_SUCCEEDED" is the default.
  4932. VersionId *string `location:"querystring" locationName:"versionId" min:"7" type:"string"`
  4933. }
  4934. // String returns the string representation
  4935. func (s DeleteDatasetContentInput) String() string {
  4936. return awsutil.Prettify(s)
  4937. }
  4938. // GoString returns the string representation
  4939. func (s DeleteDatasetContentInput) GoString() string {
  4940. return s.String()
  4941. }
  4942. // Validate inspects the fields of the type to determine if they are valid.
  4943. func (s *DeleteDatasetContentInput) Validate() error {
  4944. invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetContentInput"}
  4945. if s.DatasetName == nil {
  4946. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  4947. }
  4948. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  4949. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  4950. }
  4951. if s.VersionId != nil && len(*s.VersionId) < 7 {
  4952. invalidParams.Add(request.NewErrParamMinLen("VersionId", 7))
  4953. }
  4954. if invalidParams.Len() > 0 {
  4955. return invalidParams
  4956. }
  4957. return nil
  4958. }
  4959. // SetDatasetName sets the DatasetName field's value.
  4960. func (s *DeleteDatasetContentInput) SetDatasetName(v string) *DeleteDatasetContentInput {
  4961. s.DatasetName = &v
  4962. return s
  4963. }
  4964. // SetVersionId sets the VersionId field's value.
  4965. func (s *DeleteDatasetContentInput) SetVersionId(v string) *DeleteDatasetContentInput {
  4966. s.VersionId = &v
  4967. return s
  4968. }
  4969. type DeleteDatasetContentOutput struct {
  4970. _ struct{} `type:"structure"`
  4971. }
  4972. // String returns the string representation
  4973. func (s DeleteDatasetContentOutput) String() string {
  4974. return awsutil.Prettify(s)
  4975. }
  4976. // GoString returns the string representation
  4977. func (s DeleteDatasetContentOutput) GoString() string {
  4978. return s.String()
  4979. }
  4980. type DeleteDatasetInput struct {
  4981. _ struct{} `type:"structure"`
  4982. // The name of the data set to delete.
  4983. //
  4984. // DatasetName is a required field
  4985. DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
  4986. }
  4987. // String returns the string representation
  4988. func (s DeleteDatasetInput) String() string {
  4989. return awsutil.Prettify(s)
  4990. }
  4991. // GoString returns the string representation
  4992. func (s DeleteDatasetInput) GoString() string {
  4993. return s.String()
  4994. }
  4995. // Validate inspects the fields of the type to determine if they are valid.
  4996. func (s *DeleteDatasetInput) Validate() error {
  4997. invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetInput"}
  4998. if s.DatasetName == nil {
  4999. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  5000. }
  5001. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  5002. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  5003. }
  5004. if invalidParams.Len() > 0 {
  5005. return invalidParams
  5006. }
  5007. return nil
  5008. }
  5009. // SetDatasetName sets the DatasetName field's value.
  5010. func (s *DeleteDatasetInput) SetDatasetName(v string) *DeleteDatasetInput {
  5011. s.DatasetName = &v
  5012. return s
  5013. }
  5014. type DeleteDatasetOutput struct {
  5015. _ struct{} `type:"structure"`
  5016. }
  5017. // String returns the string representation
  5018. func (s DeleteDatasetOutput) String() string {
  5019. return awsutil.Prettify(s)
  5020. }
  5021. // GoString returns the string representation
  5022. func (s DeleteDatasetOutput) GoString() string {
  5023. return s.String()
  5024. }
  5025. type DeleteDatastoreInput struct {
  5026. _ struct{} `type:"structure"`
  5027. // The name of the data store to delete.
  5028. //
  5029. // DatastoreName is a required field
  5030. DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"`
  5031. }
  5032. // String returns the string representation
  5033. func (s DeleteDatastoreInput) String() string {
  5034. return awsutil.Prettify(s)
  5035. }
  5036. // GoString returns the string representation
  5037. func (s DeleteDatastoreInput) GoString() string {
  5038. return s.String()
  5039. }
  5040. // Validate inspects the fields of the type to determine if they are valid.
  5041. func (s *DeleteDatastoreInput) Validate() error {
  5042. invalidParams := request.ErrInvalidParams{Context: "DeleteDatastoreInput"}
  5043. if s.DatastoreName == nil {
  5044. invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
  5045. }
  5046. if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
  5047. invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
  5048. }
  5049. if invalidParams.Len() > 0 {
  5050. return invalidParams
  5051. }
  5052. return nil
  5053. }
  5054. // SetDatastoreName sets the DatastoreName field's value.
  5055. func (s *DeleteDatastoreInput) SetDatastoreName(v string) *DeleteDatastoreInput {
  5056. s.DatastoreName = &v
  5057. return s
  5058. }
  5059. type DeleteDatastoreOutput struct {
  5060. _ struct{} `type:"structure"`
  5061. }
  5062. // String returns the string representation
  5063. func (s DeleteDatastoreOutput) String() string {
  5064. return awsutil.Prettify(s)
  5065. }
  5066. // GoString returns the string representation
  5067. func (s DeleteDatastoreOutput) GoString() string {
  5068. return s.String()
  5069. }
  5070. type DeletePipelineInput struct {
  5071. _ struct{} `type:"structure"`
  5072. // The name of the pipeline to delete.
  5073. //
  5074. // PipelineName is a required field
  5075. PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
  5076. }
  5077. // String returns the string representation
  5078. func (s DeletePipelineInput) String() string {
  5079. return awsutil.Prettify(s)
  5080. }
  5081. // GoString returns the string representation
  5082. func (s DeletePipelineInput) GoString() string {
  5083. return s.String()
  5084. }
  5085. // Validate inspects the fields of the type to determine if they are valid.
  5086. func (s *DeletePipelineInput) Validate() error {
  5087. invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
  5088. if s.PipelineName == nil {
  5089. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  5090. }
  5091. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  5092. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  5093. }
  5094. if invalidParams.Len() > 0 {
  5095. return invalidParams
  5096. }
  5097. return nil
  5098. }
  5099. // SetPipelineName sets the PipelineName field's value.
  5100. func (s *DeletePipelineInput) SetPipelineName(v string) *DeletePipelineInput {
  5101. s.PipelineName = &v
  5102. return s
  5103. }
  5104. type DeletePipelineOutput struct {
  5105. _ struct{} `type:"structure"`
  5106. }
  5107. // String returns the string representation
  5108. func (s DeletePipelineOutput) String() string {
  5109. return awsutil.Prettify(s)
  5110. }
  5111. // GoString returns the string representation
  5112. func (s DeletePipelineOutput) GoString() string {
  5113. return s.String()
  5114. }
  5115. // Used to limit data to that which has arrived since the last execution of
  5116. // the action.
  5117. type DeltaTime struct {
  5118. _ struct{} `type:"structure"`
  5119. // The number of seconds of estimated "in flight" lag time of message data.
  5120. // When you create data set contents using message data from a specified time
  5121. // frame, some message data may still be "in flight" when processing begins,
  5122. // and so will not arrive in time to be processed. Use this field to make allowances
  5123. // for the "in flight" time of your message data, so that data not processed
  5124. // from a previous time frame will be included with the next time frame. Without
  5125. // this, missed message data would be excluded from processing during the next
  5126. // time frame as well, because its timestamp places it within the previous time
  5127. // frame.
  5128. //
  5129. // OffsetSeconds is a required field
  5130. OffsetSeconds *int64 `locationName:"offsetSeconds" type:"integer" required:"true"`
  5131. // An expression by which the time of the message data may be determined. This
  5132. // may be the name of a timestamp field, or a SQL expression which is used to
  5133. // derive the time the message data was generated.
  5134. //
  5135. // TimeExpression is a required field
  5136. TimeExpression *string `locationName:"timeExpression" type:"string" required:"true"`
  5137. }
  5138. // String returns the string representation
  5139. func (s DeltaTime) String() string {
  5140. return awsutil.Prettify(s)
  5141. }
  5142. // GoString returns the string representation
  5143. func (s DeltaTime) GoString() string {
  5144. return s.String()
  5145. }
  5146. // Validate inspects the fields of the type to determine if they are valid.
  5147. func (s *DeltaTime) Validate() error {
  5148. invalidParams := request.ErrInvalidParams{Context: "DeltaTime"}
  5149. if s.OffsetSeconds == nil {
  5150. invalidParams.Add(request.NewErrParamRequired("OffsetSeconds"))
  5151. }
  5152. if s.TimeExpression == nil {
  5153. invalidParams.Add(request.NewErrParamRequired("TimeExpression"))
  5154. }
  5155. if invalidParams.Len() > 0 {
  5156. return invalidParams
  5157. }
  5158. return nil
  5159. }
  5160. // SetOffsetSeconds sets the OffsetSeconds field's value.
  5161. func (s *DeltaTime) SetOffsetSeconds(v int64) *DeltaTime {
  5162. s.OffsetSeconds = &v
  5163. return s
  5164. }
  5165. // SetTimeExpression sets the TimeExpression field's value.
  5166. func (s *DeltaTime) SetTimeExpression(v string) *DeltaTime {
  5167. s.TimeExpression = &v
  5168. return s
  5169. }
  5170. type DescribeChannelInput struct {
  5171. _ struct{} `type:"structure"`
  5172. // The name of the channel whose information is retrieved.
  5173. //
  5174. // ChannelName is a required field
  5175. ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
  5176. // If true, additional statistical information about the channel is included
  5177. // in the response.
  5178. IncludeStatistics *bool `location:"querystring" locationName:"includeStatistics" type:"boolean"`
  5179. }
  5180. // String returns the string representation
  5181. func (s DescribeChannelInput) String() string {
  5182. return awsutil.Prettify(s)
  5183. }
  5184. // GoString returns the string representation
  5185. func (s DescribeChannelInput) GoString() string {
  5186. return s.String()
  5187. }
  5188. // Validate inspects the fields of the type to determine if they are valid.
  5189. func (s *DescribeChannelInput) Validate() error {
  5190. invalidParams := request.ErrInvalidParams{Context: "DescribeChannelInput"}
  5191. if s.ChannelName == nil {
  5192. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  5193. }
  5194. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  5195. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  5196. }
  5197. if invalidParams.Len() > 0 {
  5198. return invalidParams
  5199. }
  5200. return nil
  5201. }
  5202. // SetChannelName sets the ChannelName field's value.
  5203. func (s *DescribeChannelInput) SetChannelName(v string) *DescribeChannelInput {
  5204. s.ChannelName = &v
  5205. return s
  5206. }
  5207. // SetIncludeStatistics sets the IncludeStatistics field's value.
  5208. func (s *DescribeChannelInput) SetIncludeStatistics(v bool) *DescribeChannelInput {
  5209. s.IncludeStatistics = &v
  5210. return s
  5211. }
  5212. type DescribeChannelOutput struct {
  5213. _ struct{} `type:"structure"`
  5214. // An object that contains information about the channel.
  5215. Channel *Channel `locationName:"channel" type:"structure"`
  5216. // Statistics about the channel. Included if the 'includeStatistics' parameter
  5217. // is set to true in the request.
  5218. Statistics *ChannelStatistics `locationName:"statistics" type:"structure"`
  5219. }
  5220. // String returns the string representation
  5221. func (s DescribeChannelOutput) String() string {
  5222. return awsutil.Prettify(s)
  5223. }
  5224. // GoString returns the string representation
  5225. func (s DescribeChannelOutput) GoString() string {
  5226. return s.String()
  5227. }
  5228. // SetChannel sets the Channel field's value.
  5229. func (s *DescribeChannelOutput) SetChannel(v *Channel) *DescribeChannelOutput {
  5230. s.Channel = v
  5231. return s
  5232. }
  5233. // SetStatistics sets the Statistics field's value.
  5234. func (s *DescribeChannelOutput) SetStatistics(v *ChannelStatistics) *DescribeChannelOutput {
  5235. s.Statistics = v
  5236. return s
  5237. }
  5238. type DescribeDatasetInput struct {
  5239. _ struct{} `type:"structure"`
  5240. // The name of the data set whose information is retrieved.
  5241. //
  5242. // DatasetName is a required field
  5243. DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
  5244. }
  5245. // String returns the string representation
  5246. func (s DescribeDatasetInput) String() string {
  5247. return awsutil.Prettify(s)
  5248. }
  5249. // GoString returns the string representation
  5250. func (s DescribeDatasetInput) GoString() string {
  5251. return s.String()
  5252. }
  5253. // Validate inspects the fields of the type to determine if they are valid.
  5254. func (s *DescribeDatasetInput) Validate() error {
  5255. invalidParams := request.ErrInvalidParams{Context: "DescribeDatasetInput"}
  5256. if s.DatasetName == nil {
  5257. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  5258. }
  5259. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  5260. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  5261. }
  5262. if invalidParams.Len() > 0 {
  5263. return invalidParams
  5264. }
  5265. return nil
  5266. }
  5267. // SetDatasetName sets the DatasetName field's value.
  5268. func (s *DescribeDatasetInput) SetDatasetName(v string) *DescribeDatasetInput {
  5269. s.DatasetName = &v
  5270. return s
  5271. }
  5272. type DescribeDatasetOutput struct {
  5273. _ struct{} `type:"structure"`
  5274. // An object that contains information about the data set.
  5275. Dataset *Dataset `locationName:"dataset" type:"structure"`
  5276. }
  5277. // String returns the string representation
  5278. func (s DescribeDatasetOutput) String() string {
  5279. return awsutil.Prettify(s)
  5280. }
  5281. // GoString returns the string representation
  5282. func (s DescribeDatasetOutput) GoString() string {
  5283. return s.String()
  5284. }
  5285. // SetDataset sets the Dataset field's value.
  5286. func (s *DescribeDatasetOutput) SetDataset(v *Dataset) *DescribeDatasetOutput {
  5287. s.Dataset = v
  5288. return s
  5289. }
  5290. type DescribeDatastoreInput struct {
  5291. _ struct{} `type:"structure"`
  5292. // The name of the data store
  5293. //
  5294. // DatastoreName is a required field
  5295. DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"`
  5296. // If true, additional statistical information about the datastore is included
  5297. // in the response.
  5298. IncludeStatistics *bool `location:"querystring" locationName:"includeStatistics" type:"boolean"`
  5299. }
  5300. // String returns the string representation
  5301. func (s DescribeDatastoreInput) String() string {
  5302. return awsutil.Prettify(s)
  5303. }
  5304. // GoString returns the string representation
  5305. func (s DescribeDatastoreInput) GoString() string {
  5306. return s.String()
  5307. }
  5308. // Validate inspects the fields of the type to determine if they are valid.
  5309. func (s *DescribeDatastoreInput) Validate() error {
  5310. invalidParams := request.ErrInvalidParams{Context: "DescribeDatastoreInput"}
  5311. if s.DatastoreName == nil {
  5312. invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
  5313. }
  5314. if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
  5315. invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
  5316. }
  5317. if invalidParams.Len() > 0 {
  5318. return invalidParams
  5319. }
  5320. return nil
  5321. }
  5322. // SetDatastoreName sets the DatastoreName field's value.
  5323. func (s *DescribeDatastoreInput) SetDatastoreName(v string) *DescribeDatastoreInput {
  5324. s.DatastoreName = &v
  5325. return s
  5326. }
  5327. // SetIncludeStatistics sets the IncludeStatistics field's value.
  5328. func (s *DescribeDatastoreInput) SetIncludeStatistics(v bool) *DescribeDatastoreInput {
  5329. s.IncludeStatistics = &v
  5330. return s
  5331. }
  5332. type DescribeDatastoreOutput struct {
  5333. _ struct{} `type:"structure"`
  5334. // Information about the data store.
  5335. Datastore *Datastore `locationName:"datastore" type:"structure"`
  5336. // Additional statistical information about the data store. Included if the
  5337. // 'includeStatistics' parameter is set to true in the request.
  5338. Statistics *DatastoreStatistics `locationName:"statistics" type:"structure"`
  5339. }
  5340. // String returns the string representation
  5341. func (s DescribeDatastoreOutput) String() string {
  5342. return awsutil.Prettify(s)
  5343. }
  5344. // GoString returns the string representation
  5345. func (s DescribeDatastoreOutput) GoString() string {
  5346. return s.String()
  5347. }
  5348. // SetDatastore sets the Datastore field's value.
  5349. func (s *DescribeDatastoreOutput) SetDatastore(v *Datastore) *DescribeDatastoreOutput {
  5350. s.Datastore = v
  5351. return s
  5352. }
  5353. // SetStatistics sets the Statistics field's value.
  5354. func (s *DescribeDatastoreOutput) SetStatistics(v *DatastoreStatistics) *DescribeDatastoreOutput {
  5355. s.Statistics = v
  5356. return s
  5357. }
  5358. type DescribeLoggingOptionsInput struct {
  5359. _ struct{} `type:"structure"`
  5360. }
  5361. // String returns the string representation
  5362. func (s DescribeLoggingOptionsInput) String() string {
  5363. return awsutil.Prettify(s)
  5364. }
  5365. // GoString returns the string representation
  5366. func (s DescribeLoggingOptionsInput) GoString() string {
  5367. return s.String()
  5368. }
  5369. type DescribeLoggingOptionsOutput struct {
  5370. _ struct{} `type:"structure"`
  5371. // The current settings of the AWS IoT Analytics logging options.
  5372. LoggingOptions *LoggingOptions `locationName:"loggingOptions" type:"structure"`
  5373. }
  5374. // String returns the string representation
  5375. func (s DescribeLoggingOptionsOutput) String() string {
  5376. return awsutil.Prettify(s)
  5377. }
  5378. // GoString returns the string representation
  5379. func (s DescribeLoggingOptionsOutput) GoString() string {
  5380. return s.String()
  5381. }
  5382. // SetLoggingOptions sets the LoggingOptions field's value.
  5383. func (s *DescribeLoggingOptionsOutput) SetLoggingOptions(v *LoggingOptions) *DescribeLoggingOptionsOutput {
  5384. s.LoggingOptions = v
  5385. return s
  5386. }
  5387. type DescribePipelineInput struct {
  5388. _ struct{} `type:"structure"`
  5389. // The name of the pipeline whose information is retrieved.
  5390. //
  5391. // PipelineName is a required field
  5392. PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
  5393. }
  5394. // String returns the string representation
  5395. func (s DescribePipelineInput) String() string {
  5396. return awsutil.Prettify(s)
  5397. }
  5398. // GoString returns the string representation
  5399. func (s DescribePipelineInput) GoString() string {
  5400. return s.String()
  5401. }
  5402. // Validate inspects the fields of the type to determine if they are valid.
  5403. func (s *DescribePipelineInput) Validate() error {
  5404. invalidParams := request.ErrInvalidParams{Context: "DescribePipelineInput"}
  5405. if s.PipelineName == nil {
  5406. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  5407. }
  5408. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  5409. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  5410. }
  5411. if invalidParams.Len() > 0 {
  5412. return invalidParams
  5413. }
  5414. return nil
  5415. }
  5416. // SetPipelineName sets the PipelineName field's value.
  5417. func (s *DescribePipelineInput) SetPipelineName(v string) *DescribePipelineInput {
  5418. s.PipelineName = &v
  5419. return s
  5420. }
  5421. type DescribePipelineOutput struct {
  5422. _ struct{} `type:"structure"`
  5423. // A "Pipeline" object that contains information about the pipeline.
  5424. Pipeline *Pipeline `locationName:"pipeline" type:"structure"`
  5425. }
  5426. // String returns the string representation
  5427. func (s DescribePipelineOutput) String() string {
  5428. return awsutil.Prettify(s)
  5429. }
  5430. // GoString returns the string representation
  5431. func (s DescribePipelineOutput) GoString() string {
  5432. return s.String()
  5433. }
  5434. // SetPipeline sets the Pipeline field's value.
  5435. func (s *DescribePipelineOutput) SetPipeline(v *Pipeline) *DescribePipelineOutput {
  5436. s.Pipeline = v
  5437. return s
  5438. }
  5439. // An activity that adds data from the AWS IoT device registry to your message.
  5440. type DeviceRegistryEnrichActivity struct {
  5441. _ struct{} `type:"structure"`
  5442. // The name of the attribute that is added to the message.
  5443. //
  5444. // Attribute is a required field
  5445. Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"`
  5446. // The name of the 'deviceRegistryEnrich' activity.
  5447. //
  5448. // Name is a required field
  5449. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5450. // The next activity in the pipeline.
  5451. Next *string `locationName:"next" min:"1" type:"string"`
  5452. // The ARN of the role that allows access to the device's registry information.
  5453. //
  5454. // RoleArn is a required field
  5455. RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
  5456. // The name of the IoT device whose registry information is added to the message.
  5457. //
  5458. // ThingName is a required field
  5459. ThingName *string `locationName:"thingName" min:"1" type:"string" required:"true"`
  5460. }
  5461. // String returns the string representation
  5462. func (s DeviceRegistryEnrichActivity) String() string {
  5463. return awsutil.Prettify(s)
  5464. }
  5465. // GoString returns the string representation
  5466. func (s DeviceRegistryEnrichActivity) GoString() string {
  5467. return s.String()
  5468. }
  5469. // Validate inspects the fields of the type to determine if they are valid.
  5470. func (s *DeviceRegistryEnrichActivity) Validate() error {
  5471. invalidParams := request.ErrInvalidParams{Context: "DeviceRegistryEnrichActivity"}
  5472. if s.Attribute == nil {
  5473. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  5474. }
  5475. if s.Attribute != nil && len(*s.Attribute) < 1 {
  5476. invalidParams.Add(request.NewErrParamMinLen("Attribute", 1))
  5477. }
  5478. if s.Name == nil {
  5479. invalidParams.Add(request.NewErrParamRequired("Name"))
  5480. }
  5481. if s.Name != nil && len(*s.Name) < 1 {
  5482. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5483. }
  5484. if s.Next != nil && len(*s.Next) < 1 {
  5485. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  5486. }
  5487. if s.RoleArn == nil {
  5488. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  5489. }
  5490. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  5491. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  5492. }
  5493. if s.ThingName == nil {
  5494. invalidParams.Add(request.NewErrParamRequired("ThingName"))
  5495. }
  5496. if s.ThingName != nil && len(*s.ThingName) < 1 {
  5497. invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
  5498. }
  5499. if invalidParams.Len() > 0 {
  5500. return invalidParams
  5501. }
  5502. return nil
  5503. }
  5504. // SetAttribute sets the Attribute field's value.
  5505. func (s *DeviceRegistryEnrichActivity) SetAttribute(v string) *DeviceRegistryEnrichActivity {
  5506. s.Attribute = &v
  5507. return s
  5508. }
  5509. // SetName sets the Name field's value.
  5510. func (s *DeviceRegistryEnrichActivity) SetName(v string) *DeviceRegistryEnrichActivity {
  5511. s.Name = &v
  5512. return s
  5513. }
  5514. // SetNext sets the Next field's value.
  5515. func (s *DeviceRegistryEnrichActivity) SetNext(v string) *DeviceRegistryEnrichActivity {
  5516. s.Next = &v
  5517. return s
  5518. }
  5519. // SetRoleArn sets the RoleArn field's value.
  5520. func (s *DeviceRegistryEnrichActivity) SetRoleArn(v string) *DeviceRegistryEnrichActivity {
  5521. s.RoleArn = &v
  5522. return s
  5523. }
  5524. // SetThingName sets the ThingName field's value.
  5525. func (s *DeviceRegistryEnrichActivity) SetThingName(v string) *DeviceRegistryEnrichActivity {
  5526. s.ThingName = &v
  5527. return s
  5528. }
  5529. // An activity that adds information from the AWS IoT Device Shadows service
  5530. // to a message.
  5531. type DeviceShadowEnrichActivity struct {
  5532. _ struct{} `type:"structure"`
  5533. // The name of the attribute that is added to the message.
  5534. //
  5535. // Attribute is a required field
  5536. Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"`
  5537. // The name of the 'deviceShadowEnrich' activity.
  5538. //
  5539. // Name is a required field
  5540. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5541. // The next activity in the pipeline.
  5542. Next *string `locationName:"next" min:"1" type:"string"`
  5543. // The ARN of the role that allows access to the device's shadow.
  5544. //
  5545. // RoleArn is a required field
  5546. RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
  5547. // The name of the IoT device whose shadow information is added to the message.
  5548. //
  5549. // ThingName is a required field
  5550. ThingName *string `locationName:"thingName" min:"1" type:"string" required:"true"`
  5551. }
  5552. // String returns the string representation
  5553. func (s DeviceShadowEnrichActivity) String() string {
  5554. return awsutil.Prettify(s)
  5555. }
  5556. // GoString returns the string representation
  5557. func (s DeviceShadowEnrichActivity) GoString() string {
  5558. return s.String()
  5559. }
  5560. // Validate inspects the fields of the type to determine if they are valid.
  5561. func (s *DeviceShadowEnrichActivity) Validate() error {
  5562. invalidParams := request.ErrInvalidParams{Context: "DeviceShadowEnrichActivity"}
  5563. if s.Attribute == nil {
  5564. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  5565. }
  5566. if s.Attribute != nil && len(*s.Attribute) < 1 {
  5567. invalidParams.Add(request.NewErrParamMinLen("Attribute", 1))
  5568. }
  5569. if s.Name == nil {
  5570. invalidParams.Add(request.NewErrParamRequired("Name"))
  5571. }
  5572. if s.Name != nil && len(*s.Name) < 1 {
  5573. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5574. }
  5575. if s.Next != nil && len(*s.Next) < 1 {
  5576. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  5577. }
  5578. if s.RoleArn == nil {
  5579. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  5580. }
  5581. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  5582. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  5583. }
  5584. if s.ThingName == nil {
  5585. invalidParams.Add(request.NewErrParamRequired("ThingName"))
  5586. }
  5587. if s.ThingName != nil && len(*s.ThingName) < 1 {
  5588. invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
  5589. }
  5590. if invalidParams.Len() > 0 {
  5591. return invalidParams
  5592. }
  5593. return nil
  5594. }
  5595. // SetAttribute sets the Attribute field's value.
  5596. func (s *DeviceShadowEnrichActivity) SetAttribute(v string) *DeviceShadowEnrichActivity {
  5597. s.Attribute = &v
  5598. return s
  5599. }
  5600. // SetName sets the Name field's value.
  5601. func (s *DeviceShadowEnrichActivity) SetName(v string) *DeviceShadowEnrichActivity {
  5602. s.Name = &v
  5603. return s
  5604. }
  5605. // SetNext sets the Next field's value.
  5606. func (s *DeviceShadowEnrichActivity) SetNext(v string) *DeviceShadowEnrichActivity {
  5607. s.Next = &v
  5608. return s
  5609. }
  5610. // SetRoleArn sets the RoleArn field's value.
  5611. func (s *DeviceShadowEnrichActivity) SetRoleArn(v string) *DeviceShadowEnrichActivity {
  5612. s.RoleArn = &v
  5613. return s
  5614. }
  5615. // SetThingName sets the ThingName field's value.
  5616. func (s *DeviceShadowEnrichActivity) SetThingName(v string) *DeviceShadowEnrichActivity {
  5617. s.ThingName = &v
  5618. return s
  5619. }
  5620. // The estimated size of the resource.
  5621. type EstimatedResourceSize struct {
  5622. _ struct{} `type:"structure"`
  5623. // The time when the estimate of the size of the resource was made.
  5624. EstimatedOn *time.Time `locationName:"estimatedOn" type:"timestamp"`
  5625. // The estimated size of the resource in bytes.
  5626. EstimatedSizeInBytes *float64 `locationName:"estimatedSizeInBytes" type:"double"`
  5627. }
  5628. // String returns the string representation
  5629. func (s EstimatedResourceSize) String() string {
  5630. return awsutil.Prettify(s)
  5631. }
  5632. // GoString returns the string representation
  5633. func (s EstimatedResourceSize) GoString() string {
  5634. return s.String()
  5635. }
  5636. // SetEstimatedOn sets the EstimatedOn field's value.
  5637. func (s *EstimatedResourceSize) SetEstimatedOn(v time.Time) *EstimatedResourceSize {
  5638. s.EstimatedOn = &v
  5639. return s
  5640. }
  5641. // SetEstimatedSizeInBytes sets the EstimatedSizeInBytes field's value.
  5642. func (s *EstimatedResourceSize) SetEstimatedSizeInBytes(v float64) *EstimatedResourceSize {
  5643. s.EstimatedSizeInBytes = &v
  5644. return s
  5645. }
  5646. // An activity that filters a message based on its attributes.
  5647. type FilterActivity struct {
  5648. _ struct{} `type:"structure"`
  5649. // An expression that looks like a SQL WHERE clause that must return a Boolean
  5650. // value.
  5651. //
  5652. // Filter is a required field
  5653. Filter *string `locationName:"filter" min:"1" type:"string" required:"true"`
  5654. // The name of the 'filter' activity.
  5655. //
  5656. // Name is a required field
  5657. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5658. // The next activity in the pipeline.
  5659. Next *string `locationName:"next" min:"1" type:"string"`
  5660. }
  5661. // String returns the string representation
  5662. func (s FilterActivity) String() string {
  5663. return awsutil.Prettify(s)
  5664. }
  5665. // GoString returns the string representation
  5666. func (s FilterActivity) GoString() string {
  5667. return s.String()
  5668. }
  5669. // Validate inspects the fields of the type to determine if they are valid.
  5670. func (s *FilterActivity) Validate() error {
  5671. invalidParams := request.ErrInvalidParams{Context: "FilterActivity"}
  5672. if s.Filter == nil {
  5673. invalidParams.Add(request.NewErrParamRequired("Filter"))
  5674. }
  5675. if s.Filter != nil && len(*s.Filter) < 1 {
  5676. invalidParams.Add(request.NewErrParamMinLen("Filter", 1))
  5677. }
  5678. if s.Name == nil {
  5679. invalidParams.Add(request.NewErrParamRequired("Name"))
  5680. }
  5681. if s.Name != nil && len(*s.Name) < 1 {
  5682. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5683. }
  5684. if s.Next != nil && len(*s.Next) < 1 {
  5685. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  5686. }
  5687. if invalidParams.Len() > 0 {
  5688. return invalidParams
  5689. }
  5690. return nil
  5691. }
  5692. // SetFilter sets the Filter field's value.
  5693. func (s *FilterActivity) SetFilter(v string) *FilterActivity {
  5694. s.Filter = &v
  5695. return s
  5696. }
  5697. // SetName sets the Name field's value.
  5698. func (s *FilterActivity) SetName(v string) *FilterActivity {
  5699. s.Name = &v
  5700. return s
  5701. }
  5702. // SetNext sets the Next field's value.
  5703. func (s *FilterActivity) SetNext(v string) *FilterActivity {
  5704. s.Next = &v
  5705. return s
  5706. }
  5707. type GetDatasetContentInput struct {
  5708. _ struct{} `type:"structure"`
  5709. // The name of the data set whose contents are retrieved.
  5710. //
  5711. // DatasetName is a required field
  5712. DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
  5713. // The version of the data set whose contents are retrieved. You can also use
  5714. // the strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of
  5715. // the latest or latest successfully completed data set. If not specified, "$LATEST_SUCCEEDED"
  5716. // is the default.
  5717. VersionId *string `location:"querystring" locationName:"versionId" min:"7" type:"string"`
  5718. }
  5719. // String returns the string representation
  5720. func (s GetDatasetContentInput) String() string {
  5721. return awsutil.Prettify(s)
  5722. }
  5723. // GoString returns the string representation
  5724. func (s GetDatasetContentInput) GoString() string {
  5725. return s.String()
  5726. }
  5727. // Validate inspects the fields of the type to determine if they are valid.
  5728. func (s *GetDatasetContentInput) Validate() error {
  5729. invalidParams := request.ErrInvalidParams{Context: "GetDatasetContentInput"}
  5730. if s.DatasetName == nil {
  5731. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  5732. }
  5733. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  5734. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  5735. }
  5736. if s.VersionId != nil && len(*s.VersionId) < 7 {
  5737. invalidParams.Add(request.NewErrParamMinLen("VersionId", 7))
  5738. }
  5739. if invalidParams.Len() > 0 {
  5740. return invalidParams
  5741. }
  5742. return nil
  5743. }
  5744. // SetDatasetName sets the DatasetName field's value.
  5745. func (s *GetDatasetContentInput) SetDatasetName(v string) *GetDatasetContentInput {
  5746. s.DatasetName = &v
  5747. return s
  5748. }
  5749. // SetVersionId sets the VersionId field's value.
  5750. func (s *GetDatasetContentInput) SetVersionId(v string) *GetDatasetContentInput {
  5751. s.VersionId = &v
  5752. return s
  5753. }
  5754. type GetDatasetContentOutput struct {
  5755. _ struct{} `type:"structure"`
  5756. // A list of "DatasetEntry" objects.
  5757. Entries []*DatasetEntry `locationName:"entries" type:"list"`
  5758. // The status of the data set content.
  5759. Status *DatasetContentStatus `locationName:"status" type:"structure"`
  5760. // The time when the request was made.
  5761. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  5762. }
  5763. // String returns the string representation
  5764. func (s GetDatasetContentOutput) String() string {
  5765. return awsutil.Prettify(s)
  5766. }
  5767. // GoString returns the string representation
  5768. func (s GetDatasetContentOutput) GoString() string {
  5769. return s.String()
  5770. }
  5771. // SetEntries sets the Entries field's value.
  5772. func (s *GetDatasetContentOutput) SetEntries(v []*DatasetEntry) *GetDatasetContentOutput {
  5773. s.Entries = v
  5774. return s
  5775. }
  5776. // SetStatus sets the Status field's value.
  5777. func (s *GetDatasetContentOutput) SetStatus(v *DatasetContentStatus) *GetDatasetContentOutput {
  5778. s.Status = v
  5779. return s
  5780. }
  5781. // SetTimestamp sets the Timestamp field's value.
  5782. func (s *GetDatasetContentOutput) SetTimestamp(v time.Time) *GetDatasetContentOutput {
  5783. s.Timestamp = &v
  5784. return s
  5785. }
  5786. // Configuration information for delivery of data set contents to AWS IoT Events.
  5787. type IotEventsDestinationConfiguration struct {
  5788. _ struct{} `type:"structure"`
  5789. // The name of the AWS IoT Events input to which data set contents are delivered.
  5790. //
  5791. // InputName is a required field
  5792. InputName *string `locationName:"inputName" min:"1" type:"string" required:"true"`
  5793. // The ARN of the role which grants AWS IoT Analytics permission to deliver
  5794. // data set contents to an AWS IoT Events input.
  5795. //
  5796. // RoleArn is a required field
  5797. RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
  5798. }
  5799. // String returns the string representation
  5800. func (s IotEventsDestinationConfiguration) String() string {
  5801. return awsutil.Prettify(s)
  5802. }
  5803. // GoString returns the string representation
  5804. func (s IotEventsDestinationConfiguration) GoString() string {
  5805. return s.String()
  5806. }
  5807. // Validate inspects the fields of the type to determine if they are valid.
  5808. func (s *IotEventsDestinationConfiguration) Validate() error {
  5809. invalidParams := request.ErrInvalidParams{Context: "IotEventsDestinationConfiguration"}
  5810. if s.InputName == nil {
  5811. invalidParams.Add(request.NewErrParamRequired("InputName"))
  5812. }
  5813. if s.InputName != nil && len(*s.InputName) < 1 {
  5814. invalidParams.Add(request.NewErrParamMinLen("InputName", 1))
  5815. }
  5816. if s.RoleArn == nil {
  5817. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  5818. }
  5819. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  5820. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  5821. }
  5822. if invalidParams.Len() > 0 {
  5823. return invalidParams
  5824. }
  5825. return nil
  5826. }
  5827. // SetInputName sets the InputName field's value.
  5828. func (s *IotEventsDestinationConfiguration) SetInputName(v string) *IotEventsDestinationConfiguration {
  5829. s.InputName = &v
  5830. return s
  5831. }
  5832. // SetRoleArn sets the RoleArn field's value.
  5833. func (s *IotEventsDestinationConfiguration) SetRoleArn(v string) *IotEventsDestinationConfiguration {
  5834. s.RoleArn = &v
  5835. return s
  5836. }
  5837. // An activity that runs a Lambda function to modify the message.
  5838. type LambdaActivity struct {
  5839. _ struct{} `type:"structure"`
  5840. // The number of messages passed to the Lambda function for processing.
  5841. //
  5842. // The AWS Lambda function must be able to process all of these messages within
  5843. // five minutes, which is the maximum timeout duration for Lambda functions.
  5844. //
  5845. // BatchSize is a required field
  5846. BatchSize *int64 `locationName:"batchSize" min:"1" type:"integer" required:"true"`
  5847. // The name of the Lambda function that is run on the message.
  5848. //
  5849. // LambdaName is a required field
  5850. LambdaName *string `locationName:"lambdaName" min:"1" type:"string" required:"true"`
  5851. // The name of the 'lambda' activity.
  5852. //
  5853. // Name is a required field
  5854. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5855. // The next activity in the pipeline.
  5856. Next *string `locationName:"next" min:"1" type:"string"`
  5857. }
  5858. // String returns the string representation
  5859. func (s LambdaActivity) String() string {
  5860. return awsutil.Prettify(s)
  5861. }
  5862. // GoString returns the string representation
  5863. func (s LambdaActivity) GoString() string {
  5864. return s.String()
  5865. }
  5866. // Validate inspects the fields of the type to determine if they are valid.
  5867. func (s *LambdaActivity) Validate() error {
  5868. invalidParams := request.ErrInvalidParams{Context: "LambdaActivity"}
  5869. if s.BatchSize == nil {
  5870. invalidParams.Add(request.NewErrParamRequired("BatchSize"))
  5871. }
  5872. if s.BatchSize != nil && *s.BatchSize < 1 {
  5873. invalidParams.Add(request.NewErrParamMinValue("BatchSize", 1))
  5874. }
  5875. if s.LambdaName == nil {
  5876. invalidParams.Add(request.NewErrParamRequired("LambdaName"))
  5877. }
  5878. if s.LambdaName != nil && len(*s.LambdaName) < 1 {
  5879. invalidParams.Add(request.NewErrParamMinLen("LambdaName", 1))
  5880. }
  5881. if s.Name == nil {
  5882. invalidParams.Add(request.NewErrParamRequired("Name"))
  5883. }
  5884. if s.Name != nil && len(*s.Name) < 1 {
  5885. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5886. }
  5887. if s.Next != nil && len(*s.Next) < 1 {
  5888. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  5889. }
  5890. if invalidParams.Len() > 0 {
  5891. return invalidParams
  5892. }
  5893. return nil
  5894. }
  5895. // SetBatchSize sets the BatchSize field's value.
  5896. func (s *LambdaActivity) SetBatchSize(v int64) *LambdaActivity {
  5897. s.BatchSize = &v
  5898. return s
  5899. }
  5900. // SetLambdaName sets the LambdaName field's value.
  5901. func (s *LambdaActivity) SetLambdaName(v string) *LambdaActivity {
  5902. s.LambdaName = &v
  5903. return s
  5904. }
  5905. // SetName sets the Name field's value.
  5906. func (s *LambdaActivity) SetName(v string) *LambdaActivity {
  5907. s.Name = &v
  5908. return s
  5909. }
  5910. // SetNext sets the Next field's value.
  5911. func (s *LambdaActivity) SetNext(v string) *LambdaActivity {
  5912. s.Next = &v
  5913. return s
  5914. }
  5915. type ListChannelsInput struct {
  5916. _ struct{} `type:"structure"`
  5917. // The maximum number of results to return in this request.
  5918. //
  5919. // The default value is 100.
  5920. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  5921. // The token for the next set of results.
  5922. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  5923. }
  5924. // String returns the string representation
  5925. func (s ListChannelsInput) String() string {
  5926. return awsutil.Prettify(s)
  5927. }
  5928. // GoString returns the string representation
  5929. func (s ListChannelsInput) GoString() string {
  5930. return s.String()
  5931. }
  5932. // Validate inspects the fields of the type to determine if they are valid.
  5933. func (s *ListChannelsInput) Validate() error {
  5934. invalidParams := request.ErrInvalidParams{Context: "ListChannelsInput"}
  5935. if s.MaxResults != nil && *s.MaxResults < 1 {
  5936. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5937. }
  5938. if invalidParams.Len() > 0 {
  5939. return invalidParams
  5940. }
  5941. return nil
  5942. }
  5943. // SetMaxResults sets the MaxResults field's value.
  5944. func (s *ListChannelsInput) SetMaxResults(v int64) *ListChannelsInput {
  5945. s.MaxResults = &v
  5946. return s
  5947. }
  5948. // SetNextToken sets the NextToken field's value.
  5949. func (s *ListChannelsInput) SetNextToken(v string) *ListChannelsInput {
  5950. s.NextToken = &v
  5951. return s
  5952. }
  5953. type ListChannelsOutput struct {
  5954. _ struct{} `type:"structure"`
  5955. // A list of "ChannelSummary" objects.
  5956. ChannelSummaries []*ChannelSummary `locationName:"channelSummaries" type:"list"`
  5957. // The token to retrieve the next set of results, or null if there are no more
  5958. // results.
  5959. NextToken *string `locationName:"nextToken" type:"string"`
  5960. }
  5961. // String returns the string representation
  5962. func (s ListChannelsOutput) String() string {
  5963. return awsutil.Prettify(s)
  5964. }
  5965. // GoString returns the string representation
  5966. func (s ListChannelsOutput) GoString() string {
  5967. return s.String()
  5968. }
  5969. // SetChannelSummaries sets the ChannelSummaries field's value.
  5970. func (s *ListChannelsOutput) SetChannelSummaries(v []*ChannelSummary) *ListChannelsOutput {
  5971. s.ChannelSummaries = v
  5972. return s
  5973. }
  5974. // SetNextToken sets the NextToken field's value.
  5975. func (s *ListChannelsOutput) SetNextToken(v string) *ListChannelsOutput {
  5976. s.NextToken = &v
  5977. return s
  5978. }
  5979. type ListDatasetContentsInput struct {
  5980. _ struct{} `type:"structure"`
  5981. // The name of the data set whose contents information you want to list.
  5982. //
  5983. // DatasetName is a required field
  5984. DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
  5985. // The maximum number of results to return in this request.
  5986. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  5987. // The token for the next set of results.
  5988. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  5989. // A filter to limit results to those data set contents whose creation is scheduled
  5990. // before the given time. See the field triggers.schedule in the CreateDataset
  5991. // request. (timestamp)
  5992. ScheduledBefore *time.Time `location:"querystring" locationName:"scheduledBefore" type:"timestamp"`
  5993. // A filter to limit results to those data set contents whose creation is scheduled
  5994. // on or after the given time. See the field triggers.schedule in the CreateDataset
  5995. // request. (timestamp)
  5996. ScheduledOnOrAfter *time.Time `location:"querystring" locationName:"scheduledOnOrAfter" type:"timestamp"`
  5997. }
  5998. // String returns the string representation
  5999. func (s ListDatasetContentsInput) String() string {
  6000. return awsutil.Prettify(s)
  6001. }
  6002. // GoString returns the string representation
  6003. func (s ListDatasetContentsInput) GoString() string {
  6004. return s.String()
  6005. }
  6006. // Validate inspects the fields of the type to determine if they are valid.
  6007. func (s *ListDatasetContentsInput) Validate() error {
  6008. invalidParams := request.ErrInvalidParams{Context: "ListDatasetContentsInput"}
  6009. if s.DatasetName == nil {
  6010. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  6011. }
  6012. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  6013. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  6014. }
  6015. if s.MaxResults != nil && *s.MaxResults < 1 {
  6016. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6017. }
  6018. if invalidParams.Len() > 0 {
  6019. return invalidParams
  6020. }
  6021. return nil
  6022. }
  6023. // SetDatasetName sets the DatasetName field's value.
  6024. func (s *ListDatasetContentsInput) SetDatasetName(v string) *ListDatasetContentsInput {
  6025. s.DatasetName = &v
  6026. return s
  6027. }
  6028. // SetMaxResults sets the MaxResults field's value.
  6029. func (s *ListDatasetContentsInput) SetMaxResults(v int64) *ListDatasetContentsInput {
  6030. s.MaxResults = &v
  6031. return s
  6032. }
  6033. // SetNextToken sets the NextToken field's value.
  6034. func (s *ListDatasetContentsInput) SetNextToken(v string) *ListDatasetContentsInput {
  6035. s.NextToken = &v
  6036. return s
  6037. }
  6038. // SetScheduledBefore sets the ScheduledBefore field's value.
  6039. func (s *ListDatasetContentsInput) SetScheduledBefore(v time.Time) *ListDatasetContentsInput {
  6040. s.ScheduledBefore = &v
  6041. return s
  6042. }
  6043. // SetScheduledOnOrAfter sets the ScheduledOnOrAfter field's value.
  6044. func (s *ListDatasetContentsInput) SetScheduledOnOrAfter(v time.Time) *ListDatasetContentsInput {
  6045. s.ScheduledOnOrAfter = &v
  6046. return s
  6047. }
  6048. type ListDatasetContentsOutput struct {
  6049. _ struct{} `type:"structure"`
  6050. // Summary information about data set contents that have been created.
  6051. DatasetContentSummaries []*DatasetContentSummary `locationName:"datasetContentSummaries" type:"list"`
  6052. // The token to retrieve the next set of results, or null if there are no more
  6053. // results.
  6054. NextToken *string `locationName:"nextToken" type:"string"`
  6055. }
  6056. // String returns the string representation
  6057. func (s ListDatasetContentsOutput) String() string {
  6058. return awsutil.Prettify(s)
  6059. }
  6060. // GoString returns the string representation
  6061. func (s ListDatasetContentsOutput) GoString() string {
  6062. return s.String()
  6063. }
  6064. // SetDatasetContentSummaries sets the DatasetContentSummaries field's value.
  6065. func (s *ListDatasetContentsOutput) SetDatasetContentSummaries(v []*DatasetContentSummary) *ListDatasetContentsOutput {
  6066. s.DatasetContentSummaries = v
  6067. return s
  6068. }
  6069. // SetNextToken sets the NextToken field's value.
  6070. func (s *ListDatasetContentsOutput) SetNextToken(v string) *ListDatasetContentsOutput {
  6071. s.NextToken = &v
  6072. return s
  6073. }
  6074. type ListDatasetsInput struct {
  6075. _ struct{} `type:"structure"`
  6076. // The maximum number of results to return in this request.
  6077. //
  6078. // The default value is 100.
  6079. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  6080. // The token for the next set of results.
  6081. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  6082. }
  6083. // String returns the string representation
  6084. func (s ListDatasetsInput) String() string {
  6085. return awsutil.Prettify(s)
  6086. }
  6087. // GoString returns the string representation
  6088. func (s ListDatasetsInput) GoString() string {
  6089. return s.String()
  6090. }
  6091. // Validate inspects the fields of the type to determine if they are valid.
  6092. func (s *ListDatasetsInput) Validate() error {
  6093. invalidParams := request.ErrInvalidParams{Context: "ListDatasetsInput"}
  6094. if s.MaxResults != nil && *s.MaxResults < 1 {
  6095. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6096. }
  6097. if invalidParams.Len() > 0 {
  6098. return invalidParams
  6099. }
  6100. return nil
  6101. }
  6102. // SetMaxResults sets the MaxResults field's value.
  6103. func (s *ListDatasetsInput) SetMaxResults(v int64) *ListDatasetsInput {
  6104. s.MaxResults = &v
  6105. return s
  6106. }
  6107. // SetNextToken sets the NextToken field's value.
  6108. func (s *ListDatasetsInput) SetNextToken(v string) *ListDatasetsInput {
  6109. s.NextToken = &v
  6110. return s
  6111. }
  6112. type ListDatasetsOutput struct {
  6113. _ struct{} `type:"structure"`
  6114. // A list of "DatasetSummary" objects.
  6115. DatasetSummaries []*DatasetSummary `locationName:"datasetSummaries" type:"list"`
  6116. // The token to retrieve the next set of results, or null if there are no more
  6117. // results.
  6118. NextToken *string `locationName:"nextToken" type:"string"`
  6119. }
  6120. // String returns the string representation
  6121. func (s ListDatasetsOutput) String() string {
  6122. return awsutil.Prettify(s)
  6123. }
  6124. // GoString returns the string representation
  6125. func (s ListDatasetsOutput) GoString() string {
  6126. return s.String()
  6127. }
  6128. // SetDatasetSummaries sets the DatasetSummaries field's value.
  6129. func (s *ListDatasetsOutput) SetDatasetSummaries(v []*DatasetSummary) *ListDatasetsOutput {
  6130. s.DatasetSummaries = v
  6131. return s
  6132. }
  6133. // SetNextToken sets the NextToken field's value.
  6134. func (s *ListDatasetsOutput) SetNextToken(v string) *ListDatasetsOutput {
  6135. s.NextToken = &v
  6136. return s
  6137. }
  6138. type ListDatastoresInput struct {
  6139. _ struct{} `type:"structure"`
  6140. // The maximum number of results to return in this request.
  6141. //
  6142. // The default value is 100.
  6143. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  6144. // The token for the next set of results.
  6145. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  6146. }
  6147. // String returns the string representation
  6148. func (s ListDatastoresInput) String() string {
  6149. return awsutil.Prettify(s)
  6150. }
  6151. // GoString returns the string representation
  6152. func (s ListDatastoresInput) GoString() string {
  6153. return s.String()
  6154. }
  6155. // Validate inspects the fields of the type to determine if they are valid.
  6156. func (s *ListDatastoresInput) Validate() error {
  6157. invalidParams := request.ErrInvalidParams{Context: "ListDatastoresInput"}
  6158. if s.MaxResults != nil && *s.MaxResults < 1 {
  6159. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6160. }
  6161. if invalidParams.Len() > 0 {
  6162. return invalidParams
  6163. }
  6164. return nil
  6165. }
  6166. // SetMaxResults sets the MaxResults field's value.
  6167. func (s *ListDatastoresInput) SetMaxResults(v int64) *ListDatastoresInput {
  6168. s.MaxResults = &v
  6169. return s
  6170. }
  6171. // SetNextToken sets the NextToken field's value.
  6172. func (s *ListDatastoresInput) SetNextToken(v string) *ListDatastoresInput {
  6173. s.NextToken = &v
  6174. return s
  6175. }
  6176. type ListDatastoresOutput struct {
  6177. _ struct{} `type:"structure"`
  6178. // A list of "DatastoreSummary" objects.
  6179. DatastoreSummaries []*DatastoreSummary `locationName:"datastoreSummaries" type:"list"`
  6180. // The token to retrieve the next set of results, or null if there are no more
  6181. // results.
  6182. NextToken *string `locationName:"nextToken" type:"string"`
  6183. }
  6184. // String returns the string representation
  6185. func (s ListDatastoresOutput) String() string {
  6186. return awsutil.Prettify(s)
  6187. }
  6188. // GoString returns the string representation
  6189. func (s ListDatastoresOutput) GoString() string {
  6190. return s.String()
  6191. }
  6192. // SetDatastoreSummaries sets the DatastoreSummaries field's value.
  6193. func (s *ListDatastoresOutput) SetDatastoreSummaries(v []*DatastoreSummary) *ListDatastoresOutput {
  6194. s.DatastoreSummaries = v
  6195. return s
  6196. }
  6197. // SetNextToken sets the NextToken field's value.
  6198. func (s *ListDatastoresOutput) SetNextToken(v string) *ListDatastoresOutput {
  6199. s.NextToken = &v
  6200. return s
  6201. }
  6202. type ListPipelinesInput struct {
  6203. _ struct{} `type:"structure"`
  6204. // The maximum number of results to return in this request.
  6205. //
  6206. // The default value is 100.
  6207. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  6208. // The token for the next set of results.
  6209. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  6210. }
  6211. // String returns the string representation
  6212. func (s ListPipelinesInput) String() string {
  6213. return awsutil.Prettify(s)
  6214. }
  6215. // GoString returns the string representation
  6216. func (s ListPipelinesInput) GoString() string {
  6217. return s.String()
  6218. }
  6219. // Validate inspects the fields of the type to determine if they are valid.
  6220. func (s *ListPipelinesInput) Validate() error {
  6221. invalidParams := request.ErrInvalidParams{Context: "ListPipelinesInput"}
  6222. if s.MaxResults != nil && *s.MaxResults < 1 {
  6223. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  6224. }
  6225. if invalidParams.Len() > 0 {
  6226. return invalidParams
  6227. }
  6228. return nil
  6229. }
  6230. // SetMaxResults sets the MaxResults field's value.
  6231. func (s *ListPipelinesInput) SetMaxResults(v int64) *ListPipelinesInput {
  6232. s.MaxResults = &v
  6233. return s
  6234. }
  6235. // SetNextToken sets the NextToken field's value.
  6236. func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput {
  6237. s.NextToken = &v
  6238. return s
  6239. }
  6240. type ListPipelinesOutput struct {
  6241. _ struct{} `type:"structure"`
  6242. // The token to retrieve the next set of results, or null if there are no more
  6243. // results.
  6244. NextToken *string `locationName:"nextToken" type:"string"`
  6245. // A list of "PipelineSummary" objects.
  6246. PipelineSummaries []*PipelineSummary `locationName:"pipelineSummaries" type:"list"`
  6247. }
  6248. // String returns the string representation
  6249. func (s ListPipelinesOutput) String() string {
  6250. return awsutil.Prettify(s)
  6251. }
  6252. // GoString returns the string representation
  6253. func (s ListPipelinesOutput) GoString() string {
  6254. return s.String()
  6255. }
  6256. // SetNextToken sets the NextToken field's value.
  6257. func (s *ListPipelinesOutput) SetNextToken(v string) *ListPipelinesOutput {
  6258. s.NextToken = &v
  6259. return s
  6260. }
  6261. // SetPipelineSummaries sets the PipelineSummaries field's value.
  6262. func (s *ListPipelinesOutput) SetPipelineSummaries(v []*PipelineSummary) *ListPipelinesOutput {
  6263. s.PipelineSummaries = v
  6264. return s
  6265. }
  6266. type ListTagsForResourceInput struct {
  6267. _ struct{} `type:"structure"`
  6268. // The ARN of the resource whose tags you want to list.
  6269. //
  6270. // ResourceArn is a required field
  6271. ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
  6272. }
  6273. // String returns the string representation
  6274. func (s ListTagsForResourceInput) String() string {
  6275. return awsutil.Prettify(s)
  6276. }
  6277. // GoString returns the string representation
  6278. func (s ListTagsForResourceInput) GoString() string {
  6279. return s.String()
  6280. }
  6281. // Validate inspects the fields of the type to determine if they are valid.
  6282. func (s *ListTagsForResourceInput) Validate() error {
  6283. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  6284. if s.ResourceArn == nil {
  6285. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  6286. }
  6287. if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
  6288. invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
  6289. }
  6290. if invalidParams.Len() > 0 {
  6291. return invalidParams
  6292. }
  6293. return nil
  6294. }
  6295. // SetResourceArn sets the ResourceArn field's value.
  6296. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  6297. s.ResourceArn = &v
  6298. return s
  6299. }
  6300. type ListTagsForResourceOutput struct {
  6301. _ struct{} `type:"structure"`
  6302. // The tags (metadata) which you have assigned to the resource.
  6303. Tags []*Tag `locationName:"tags" min:"1" type:"list"`
  6304. }
  6305. // String returns the string representation
  6306. func (s ListTagsForResourceOutput) String() string {
  6307. return awsutil.Prettify(s)
  6308. }
  6309. // GoString returns the string representation
  6310. func (s ListTagsForResourceOutput) GoString() string {
  6311. return s.String()
  6312. }
  6313. // SetTags sets the Tags field's value.
  6314. func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
  6315. s.Tags = v
  6316. return s
  6317. }
  6318. // Information about logging options.
  6319. type LoggingOptions struct {
  6320. _ struct{} `type:"structure"`
  6321. // If true, logging is enabled for AWS IoT Analytics.
  6322. //
  6323. // Enabled is a required field
  6324. Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
  6325. // The logging level. Currently, only "ERROR" is supported.
  6326. //
  6327. // Level is a required field
  6328. Level *string `locationName:"level" type:"string" required:"true" enum:"LoggingLevel"`
  6329. // The ARN of the role that grants permission to AWS IoT Analytics to perform
  6330. // logging.
  6331. //
  6332. // RoleArn is a required field
  6333. RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
  6334. }
  6335. // String returns the string representation
  6336. func (s LoggingOptions) String() string {
  6337. return awsutil.Prettify(s)
  6338. }
  6339. // GoString returns the string representation
  6340. func (s LoggingOptions) GoString() string {
  6341. return s.String()
  6342. }
  6343. // Validate inspects the fields of the type to determine if they are valid.
  6344. func (s *LoggingOptions) Validate() error {
  6345. invalidParams := request.ErrInvalidParams{Context: "LoggingOptions"}
  6346. if s.Enabled == nil {
  6347. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  6348. }
  6349. if s.Level == nil {
  6350. invalidParams.Add(request.NewErrParamRequired("Level"))
  6351. }
  6352. if s.RoleArn == nil {
  6353. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  6354. }
  6355. if s.RoleArn != nil && len(*s.RoleArn) < 20 {
  6356. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
  6357. }
  6358. if invalidParams.Len() > 0 {
  6359. return invalidParams
  6360. }
  6361. return nil
  6362. }
  6363. // SetEnabled sets the Enabled field's value.
  6364. func (s *LoggingOptions) SetEnabled(v bool) *LoggingOptions {
  6365. s.Enabled = &v
  6366. return s
  6367. }
  6368. // SetLevel sets the Level field's value.
  6369. func (s *LoggingOptions) SetLevel(v string) *LoggingOptions {
  6370. s.Level = &v
  6371. return s
  6372. }
  6373. // SetRoleArn sets the RoleArn field's value.
  6374. func (s *LoggingOptions) SetRoleArn(v string) *LoggingOptions {
  6375. s.RoleArn = &v
  6376. return s
  6377. }
  6378. // An activity that computes an arithmetic expression using the message's attributes.
  6379. type MathActivity struct {
  6380. _ struct{} `type:"structure"`
  6381. // The name of the attribute that contains the result of the math operation.
  6382. //
  6383. // Attribute is a required field
  6384. Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"`
  6385. // An expression that uses one or more existing attributes and must return an
  6386. // integer value.
  6387. //
  6388. // Math is a required field
  6389. Math *string `locationName:"math" min:"1" type:"string" required:"true"`
  6390. // The name of the 'math' activity.
  6391. //
  6392. // Name is a required field
  6393. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6394. // The next activity in the pipeline.
  6395. Next *string `locationName:"next" min:"1" type:"string"`
  6396. }
  6397. // String returns the string representation
  6398. func (s MathActivity) String() string {
  6399. return awsutil.Prettify(s)
  6400. }
  6401. // GoString returns the string representation
  6402. func (s MathActivity) GoString() string {
  6403. return s.String()
  6404. }
  6405. // Validate inspects the fields of the type to determine if they are valid.
  6406. func (s *MathActivity) Validate() error {
  6407. invalidParams := request.ErrInvalidParams{Context: "MathActivity"}
  6408. if s.Attribute == nil {
  6409. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  6410. }
  6411. if s.Attribute != nil && len(*s.Attribute) < 1 {
  6412. invalidParams.Add(request.NewErrParamMinLen("Attribute", 1))
  6413. }
  6414. if s.Math == nil {
  6415. invalidParams.Add(request.NewErrParamRequired("Math"))
  6416. }
  6417. if s.Math != nil && len(*s.Math) < 1 {
  6418. invalidParams.Add(request.NewErrParamMinLen("Math", 1))
  6419. }
  6420. if s.Name == nil {
  6421. invalidParams.Add(request.NewErrParamRequired("Name"))
  6422. }
  6423. if s.Name != nil && len(*s.Name) < 1 {
  6424. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6425. }
  6426. if s.Next != nil && len(*s.Next) < 1 {
  6427. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  6428. }
  6429. if invalidParams.Len() > 0 {
  6430. return invalidParams
  6431. }
  6432. return nil
  6433. }
  6434. // SetAttribute sets the Attribute field's value.
  6435. func (s *MathActivity) SetAttribute(v string) *MathActivity {
  6436. s.Attribute = &v
  6437. return s
  6438. }
  6439. // SetMath sets the Math field's value.
  6440. func (s *MathActivity) SetMath(v string) *MathActivity {
  6441. s.Math = &v
  6442. return s
  6443. }
  6444. // SetName sets the Name field's value.
  6445. func (s *MathActivity) SetName(v string) *MathActivity {
  6446. s.Name = &v
  6447. return s
  6448. }
  6449. // SetNext sets the Next field's value.
  6450. func (s *MathActivity) SetNext(v string) *MathActivity {
  6451. s.Next = &v
  6452. return s
  6453. }
  6454. // Information about a message.
  6455. type Message struct {
  6456. _ struct{} `type:"structure"`
  6457. // The ID you wish to assign to the message. Each "messageId" must be unique
  6458. // within each batch sent.
  6459. //
  6460. // MessageId is a required field
  6461. MessageId *string `locationName:"messageId" min:"1" type:"string" required:"true"`
  6462. // The payload of the message. This may be a JSON string or a Base64-encoded
  6463. // string representing binary data (in which case you must decode it by means
  6464. // of a pipeline activity).
  6465. //
  6466. // Payload is automatically base64 encoded/decoded by the SDK.
  6467. //
  6468. // Payload is a required field
  6469. Payload []byte `locationName:"payload" type:"blob" required:"true"`
  6470. }
  6471. // String returns the string representation
  6472. func (s Message) String() string {
  6473. return awsutil.Prettify(s)
  6474. }
  6475. // GoString returns the string representation
  6476. func (s Message) GoString() string {
  6477. return s.String()
  6478. }
  6479. // Validate inspects the fields of the type to determine if they are valid.
  6480. func (s *Message) Validate() error {
  6481. invalidParams := request.ErrInvalidParams{Context: "Message"}
  6482. if s.MessageId == nil {
  6483. invalidParams.Add(request.NewErrParamRequired("MessageId"))
  6484. }
  6485. if s.MessageId != nil && len(*s.MessageId) < 1 {
  6486. invalidParams.Add(request.NewErrParamMinLen("MessageId", 1))
  6487. }
  6488. if s.Payload == nil {
  6489. invalidParams.Add(request.NewErrParamRequired("Payload"))
  6490. }
  6491. if invalidParams.Len() > 0 {
  6492. return invalidParams
  6493. }
  6494. return nil
  6495. }
  6496. // SetMessageId sets the MessageId field's value.
  6497. func (s *Message) SetMessageId(v string) *Message {
  6498. s.MessageId = &v
  6499. return s
  6500. }
  6501. // SetPayload sets the Payload field's value.
  6502. func (s *Message) SetPayload(v []byte) *Message {
  6503. s.Payload = v
  6504. return s
  6505. }
  6506. // The value of the variable as a structure that specifies an output file URI.
  6507. type OutputFileUriValue struct {
  6508. _ struct{} `type:"structure"`
  6509. // The URI of the location where data set contents are stored, usually the URI
  6510. // of a file in an S3 bucket.
  6511. //
  6512. // FileName is a required field
  6513. FileName *string `locationName:"fileName" type:"string" required:"true"`
  6514. }
  6515. // String returns the string representation
  6516. func (s OutputFileUriValue) String() string {
  6517. return awsutil.Prettify(s)
  6518. }
  6519. // GoString returns the string representation
  6520. func (s OutputFileUriValue) GoString() string {
  6521. return s.String()
  6522. }
  6523. // Validate inspects the fields of the type to determine if they are valid.
  6524. func (s *OutputFileUriValue) Validate() error {
  6525. invalidParams := request.ErrInvalidParams{Context: "OutputFileUriValue"}
  6526. if s.FileName == nil {
  6527. invalidParams.Add(request.NewErrParamRequired("FileName"))
  6528. }
  6529. if invalidParams.Len() > 0 {
  6530. return invalidParams
  6531. }
  6532. return nil
  6533. }
  6534. // SetFileName sets the FileName field's value.
  6535. func (s *OutputFileUriValue) SetFileName(v string) *OutputFileUriValue {
  6536. s.FileName = &v
  6537. return s
  6538. }
  6539. // Contains information about a pipeline.
  6540. type Pipeline struct {
  6541. _ struct{} `type:"structure"`
  6542. // The activities that perform transformations on the messages.
  6543. Activities []*PipelineActivity `locationName:"activities" min:"1" type:"list"`
  6544. // The ARN of the pipeline.
  6545. Arn *string `locationName:"arn" type:"string"`
  6546. // When the pipeline was created.
  6547. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  6548. // The last time the pipeline was updated.
  6549. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  6550. // The name of the pipeline.
  6551. Name *string `locationName:"name" min:"1" type:"string"`
  6552. // A summary of information about the pipeline reprocessing.
  6553. ReprocessingSummaries []*ReprocessingSummary `locationName:"reprocessingSummaries" type:"list"`
  6554. }
  6555. // String returns the string representation
  6556. func (s Pipeline) String() string {
  6557. return awsutil.Prettify(s)
  6558. }
  6559. // GoString returns the string representation
  6560. func (s Pipeline) GoString() string {
  6561. return s.String()
  6562. }
  6563. // SetActivities sets the Activities field's value.
  6564. func (s *Pipeline) SetActivities(v []*PipelineActivity) *Pipeline {
  6565. s.Activities = v
  6566. return s
  6567. }
  6568. // SetArn sets the Arn field's value.
  6569. func (s *Pipeline) SetArn(v string) *Pipeline {
  6570. s.Arn = &v
  6571. return s
  6572. }
  6573. // SetCreationTime sets the CreationTime field's value.
  6574. func (s *Pipeline) SetCreationTime(v time.Time) *Pipeline {
  6575. s.CreationTime = &v
  6576. return s
  6577. }
  6578. // SetLastUpdateTime sets the LastUpdateTime field's value.
  6579. func (s *Pipeline) SetLastUpdateTime(v time.Time) *Pipeline {
  6580. s.LastUpdateTime = &v
  6581. return s
  6582. }
  6583. // SetName sets the Name field's value.
  6584. func (s *Pipeline) SetName(v string) *Pipeline {
  6585. s.Name = &v
  6586. return s
  6587. }
  6588. // SetReprocessingSummaries sets the ReprocessingSummaries field's value.
  6589. func (s *Pipeline) SetReprocessingSummaries(v []*ReprocessingSummary) *Pipeline {
  6590. s.ReprocessingSummaries = v
  6591. return s
  6592. }
  6593. // An activity that performs a transformation on a message.
  6594. type PipelineActivity struct {
  6595. _ struct{} `type:"structure"`
  6596. // Adds other attributes based on existing attributes in the message.
  6597. AddAttributes *AddAttributesActivity `locationName:"addAttributes" type:"structure"`
  6598. // Determines the source of the messages to be processed.
  6599. Channel *ChannelActivity `locationName:"channel" type:"structure"`
  6600. // Specifies where to store the processed message data.
  6601. Datastore *DatastoreActivity `locationName:"datastore" type:"structure"`
  6602. // Adds data from the AWS IoT device registry to your message.
  6603. DeviceRegistryEnrich *DeviceRegistryEnrichActivity `locationName:"deviceRegistryEnrich" type:"structure"`
  6604. // Adds information from the AWS IoT Device Shadows service to a message.
  6605. DeviceShadowEnrich *DeviceShadowEnrichActivity `locationName:"deviceShadowEnrich" type:"structure"`
  6606. // Filters a message based on its attributes.
  6607. Filter *FilterActivity `locationName:"filter" type:"structure"`
  6608. // Runs a Lambda function to modify the message.
  6609. Lambda *LambdaActivity `locationName:"lambda" type:"structure"`
  6610. // Computes an arithmetic expression using the message's attributes and adds
  6611. // it to the message.
  6612. Math *MathActivity `locationName:"math" type:"structure"`
  6613. // Removes attributes from a message.
  6614. RemoveAttributes *RemoveAttributesActivity `locationName:"removeAttributes" type:"structure"`
  6615. // Creates a new message using only the specified attributes from the original
  6616. // message.
  6617. SelectAttributes *SelectAttributesActivity `locationName:"selectAttributes" type:"structure"`
  6618. }
  6619. // String returns the string representation
  6620. func (s PipelineActivity) String() string {
  6621. return awsutil.Prettify(s)
  6622. }
  6623. // GoString returns the string representation
  6624. func (s PipelineActivity) GoString() string {
  6625. return s.String()
  6626. }
  6627. // Validate inspects the fields of the type to determine if they are valid.
  6628. func (s *PipelineActivity) Validate() error {
  6629. invalidParams := request.ErrInvalidParams{Context: "PipelineActivity"}
  6630. if s.AddAttributes != nil {
  6631. if err := s.AddAttributes.Validate(); err != nil {
  6632. invalidParams.AddNested("AddAttributes", err.(request.ErrInvalidParams))
  6633. }
  6634. }
  6635. if s.Channel != nil {
  6636. if err := s.Channel.Validate(); err != nil {
  6637. invalidParams.AddNested("Channel", err.(request.ErrInvalidParams))
  6638. }
  6639. }
  6640. if s.Datastore != nil {
  6641. if err := s.Datastore.Validate(); err != nil {
  6642. invalidParams.AddNested("Datastore", err.(request.ErrInvalidParams))
  6643. }
  6644. }
  6645. if s.DeviceRegistryEnrich != nil {
  6646. if err := s.DeviceRegistryEnrich.Validate(); err != nil {
  6647. invalidParams.AddNested("DeviceRegistryEnrich", err.(request.ErrInvalidParams))
  6648. }
  6649. }
  6650. if s.DeviceShadowEnrich != nil {
  6651. if err := s.DeviceShadowEnrich.Validate(); err != nil {
  6652. invalidParams.AddNested("DeviceShadowEnrich", err.(request.ErrInvalidParams))
  6653. }
  6654. }
  6655. if s.Filter != nil {
  6656. if err := s.Filter.Validate(); err != nil {
  6657. invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
  6658. }
  6659. }
  6660. if s.Lambda != nil {
  6661. if err := s.Lambda.Validate(); err != nil {
  6662. invalidParams.AddNested("Lambda", err.(request.ErrInvalidParams))
  6663. }
  6664. }
  6665. if s.Math != nil {
  6666. if err := s.Math.Validate(); err != nil {
  6667. invalidParams.AddNested("Math", err.(request.ErrInvalidParams))
  6668. }
  6669. }
  6670. if s.RemoveAttributes != nil {
  6671. if err := s.RemoveAttributes.Validate(); err != nil {
  6672. invalidParams.AddNested("RemoveAttributes", err.(request.ErrInvalidParams))
  6673. }
  6674. }
  6675. if s.SelectAttributes != nil {
  6676. if err := s.SelectAttributes.Validate(); err != nil {
  6677. invalidParams.AddNested("SelectAttributes", err.(request.ErrInvalidParams))
  6678. }
  6679. }
  6680. if invalidParams.Len() > 0 {
  6681. return invalidParams
  6682. }
  6683. return nil
  6684. }
  6685. // SetAddAttributes sets the AddAttributes field's value.
  6686. func (s *PipelineActivity) SetAddAttributes(v *AddAttributesActivity) *PipelineActivity {
  6687. s.AddAttributes = v
  6688. return s
  6689. }
  6690. // SetChannel sets the Channel field's value.
  6691. func (s *PipelineActivity) SetChannel(v *ChannelActivity) *PipelineActivity {
  6692. s.Channel = v
  6693. return s
  6694. }
  6695. // SetDatastore sets the Datastore field's value.
  6696. func (s *PipelineActivity) SetDatastore(v *DatastoreActivity) *PipelineActivity {
  6697. s.Datastore = v
  6698. return s
  6699. }
  6700. // SetDeviceRegistryEnrich sets the DeviceRegistryEnrich field's value.
  6701. func (s *PipelineActivity) SetDeviceRegistryEnrich(v *DeviceRegistryEnrichActivity) *PipelineActivity {
  6702. s.DeviceRegistryEnrich = v
  6703. return s
  6704. }
  6705. // SetDeviceShadowEnrich sets the DeviceShadowEnrich field's value.
  6706. func (s *PipelineActivity) SetDeviceShadowEnrich(v *DeviceShadowEnrichActivity) *PipelineActivity {
  6707. s.DeviceShadowEnrich = v
  6708. return s
  6709. }
  6710. // SetFilter sets the Filter field's value.
  6711. func (s *PipelineActivity) SetFilter(v *FilterActivity) *PipelineActivity {
  6712. s.Filter = v
  6713. return s
  6714. }
  6715. // SetLambda sets the Lambda field's value.
  6716. func (s *PipelineActivity) SetLambda(v *LambdaActivity) *PipelineActivity {
  6717. s.Lambda = v
  6718. return s
  6719. }
  6720. // SetMath sets the Math field's value.
  6721. func (s *PipelineActivity) SetMath(v *MathActivity) *PipelineActivity {
  6722. s.Math = v
  6723. return s
  6724. }
  6725. // SetRemoveAttributes sets the RemoveAttributes field's value.
  6726. func (s *PipelineActivity) SetRemoveAttributes(v *RemoveAttributesActivity) *PipelineActivity {
  6727. s.RemoveAttributes = v
  6728. return s
  6729. }
  6730. // SetSelectAttributes sets the SelectAttributes field's value.
  6731. func (s *PipelineActivity) SetSelectAttributes(v *SelectAttributesActivity) *PipelineActivity {
  6732. s.SelectAttributes = v
  6733. return s
  6734. }
  6735. // A summary of information about a pipeline.
  6736. type PipelineSummary struct {
  6737. _ struct{} `type:"structure"`
  6738. // When the pipeline was created.
  6739. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  6740. // When the pipeline was last updated.
  6741. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  6742. // The name of the pipeline.
  6743. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  6744. // A summary of information about the pipeline reprocessing.
  6745. ReprocessingSummaries []*ReprocessingSummary `locationName:"reprocessingSummaries" type:"list"`
  6746. }
  6747. // String returns the string representation
  6748. func (s PipelineSummary) String() string {
  6749. return awsutil.Prettify(s)
  6750. }
  6751. // GoString returns the string representation
  6752. func (s PipelineSummary) GoString() string {
  6753. return s.String()
  6754. }
  6755. // SetCreationTime sets the CreationTime field's value.
  6756. func (s *PipelineSummary) SetCreationTime(v time.Time) *PipelineSummary {
  6757. s.CreationTime = &v
  6758. return s
  6759. }
  6760. // SetLastUpdateTime sets the LastUpdateTime field's value.
  6761. func (s *PipelineSummary) SetLastUpdateTime(v time.Time) *PipelineSummary {
  6762. s.LastUpdateTime = &v
  6763. return s
  6764. }
  6765. // SetPipelineName sets the PipelineName field's value.
  6766. func (s *PipelineSummary) SetPipelineName(v string) *PipelineSummary {
  6767. s.PipelineName = &v
  6768. return s
  6769. }
  6770. // SetReprocessingSummaries sets the ReprocessingSummaries field's value.
  6771. func (s *PipelineSummary) SetReprocessingSummaries(v []*ReprocessingSummary) *PipelineSummary {
  6772. s.ReprocessingSummaries = v
  6773. return s
  6774. }
  6775. type PutLoggingOptionsInput struct {
  6776. _ struct{} `type:"structure"`
  6777. // The new values of the AWS IoT Analytics logging options.
  6778. //
  6779. // LoggingOptions is a required field
  6780. LoggingOptions *LoggingOptions `locationName:"loggingOptions" type:"structure" required:"true"`
  6781. }
  6782. // String returns the string representation
  6783. func (s PutLoggingOptionsInput) String() string {
  6784. return awsutil.Prettify(s)
  6785. }
  6786. // GoString returns the string representation
  6787. func (s PutLoggingOptionsInput) GoString() string {
  6788. return s.String()
  6789. }
  6790. // Validate inspects the fields of the type to determine if they are valid.
  6791. func (s *PutLoggingOptionsInput) Validate() error {
  6792. invalidParams := request.ErrInvalidParams{Context: "PutLoggingOptionsInput"}
  6793. if s.LoggingOptions == nil {
  6794. invalidParams.Add(request.NewErrParamRequired("LoggingOptions"))
  6795. }
  6796. if s.LoggingOptions != nil {
  6797. if err := s.LoggingOptions.Validate(); err != nil {
  6798. invalidParams.AddNested("LoggingOptions", err.(request.ErrInvalidParams))
  6799. }
  6800. }
  6801. if invalidParams.Len() > 0 {
  6802. return invalidParams
  6803. }
  6804. return nil
  6805. }
  6806. // SetLoggingOptions sets the LoggingOptions field's value.
  6807. func (s *PutLoggingOptionsInput) SetLoggingOptions(v *LoggingOptions) *PutLoggingOptionsInput {
  6808. s.LoggingOptions = v
  6809. return s
  6810. }
  6811. type PutLoggingOptionsOutput struct {
  6812. _ struct{} `type:"structure"`
  6813. }
  6814. // String returns the string representation
  6815. func (s PutLoggingOptionsOutput) String() string {
  6816. return awsutil.Prettify(s)
  6817. }
  6818. // GoString returns the string representation
  6819. func (s PutLoggingOptionsOutput) GoString() string {
  6820. return s.String()
  6821. }
  6822. // Information which is used to filter message data, to segregate it according
  6823. // to the time frame in which it arrives.
  6824. type QueryFilter struct {
  6825. _ struct{} `type:"structure"`
  6826. // Used to limit data to that which has arrived since the last execution of
  6827. // the action.
  6828. DeltaTime *DeltaTime `locationName:"deltaTime" type:"structure"`
  6829. }
  6830. // String returns the string representation
  6831. func (s QueryFilter) String() string {
  6832. return awsutil.Prettify(s)
  6833. }
  6834. // GoString returns the string representation
  6835. func (s QueryFilter) GoString() string {
  6836. return s.String()
  6837. }
  6838. // Validate inspects the fields of the type to determine if they are valid.
  6839. func (s *QueryFilter) Validate() error {
  6840. invalidParams := request.ErrInvalidParams{Context: "QueryFilter"}
  6841. if s.DeltaTime != nil {
  6842. if err := s.DeltaTime.Validate(); err != nil {
  6843. invalidParams.AddNested("DeltaTime", err.(request.ErrInvalidParams))
  6844. }
  6845. }
  6846. if invalidParams.Len() > 0 {
  6847. return invalidParams
  6848. }
  6849. return nil
  6850. }
  6851. // SetDeltaTime sets the DeltaTime field's value.
  6852. func (s *QueryFilter) SetDeltaTime(v *DeltaTime) *QueryFilter {
  6853. s.DeltaTime = v
  6854. return s
  6855. }
  6856. // An activity that removes attributes from a message.
  6857. type RemoveAttributesActivity struct {
  6858. _ struct{} `type:"structure"`
  6859. // A list of 1-50 attributes to remove from the message.
  6860. //
  6861. // Attributes is a required field
  6862. Attributes []*string `locationName:"attributes" min:"1" type:"list" required:"true"`
  6863. // The name of the 'removeAttributes' activity.
  6864. //
  6865. // Name is a required field
  6866. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6867. // The next activity in the pipeline.
  6868. Next *string `locationName:"next" min:"1" type:"string"`
  6869. }
  6870. // String returns the string representation
  6871. func (s RemoveAttributesActivity) String() string {
  6872. return awsutil.Prettify(s)
  6873. }
  6874. // GoString returns the string representation
  6875. func (s RemoveAttributesActivity) GoString() string {
  6876. return s.String()
  6877. }
  6878. // Validate inspects the fields of the type to determine if they are valid.
  6879. func (s *RemoveAttributesActivity) Validate() error {
  6880. invalidParams := request.ErrInvalidParams{Context: "RemoveAttributesActivity"}
  6881. if s.Attributes == nil {
  6882. invalidParams.Add(request.NewErrParamRequired("Attributes"))
  6883. }
  6884. if s.Attributes != nil && len(s.Attributes) < 1 {
  6885. invalidParams.Add(request.NewErrParamMinLen("Attributes", 1))
  6886. }
  6887. if s.Name == nil {
  6888. invalidParams.Add(request.NewErrParamRequired("Name"))
  6889. }
  6890. if s.Name != nil && len(*s.Name) < 1 {
  6891. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6892. }
  6893. if s.Next != nil && len(*s.Next) < 1 {
  6894. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  6895. }
  6896. if invalidParams.Len() > 0 {
  6897. return invalidParams
  6898. }
  6899. return nil
  6900. }
  6901. // SetAttributes sets the Attributes field's value.
  6902. func (s *RemoveAttributesActivity) SetAttributes(v []*string) *RemoveAttributesActivity {
  6903. s.Attributes = v
  6904. return s
  6905. }
  6906. // SetName sets the Name field's value.
  6907. func (s *RemoveAttributesActivity) SetName(v string) *RemoveAttributesActivity {
  6908. s.Name = &v
  6909. return s
  6910. }
  6911. // SetNext sets the Next field's value.
  6912. func (s *RemoveAttributesActivity) SetNext(v string) *RemoveAttributesActivity {
  6913. s.Next = &v
  6914. return s
  6915. }
  6916. // Information about pipeline reprocessing.
  6917. type ReprocessingSummary struct {
  6918. _ struct{} `type:"structure"`
  6919. // The time the pipeline reprocessing was created.
  6920. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  6921. // The 'reprocessingId' returned by "StartPipelineReprocessing".
  6922. Id *string `locationName:"id" type:"string"`
  6923. // The status of the pipeline reprocessing.
  6924. Status *string `locationName:"status" type:"string" enum:"ReprocessingStatus"`
  6925. }
  6926. // String returns the string representation
  6927. func (s ReprocessingSummary) String() string {
  6928. return awsutil.Prettify(s)
  6929. }
  6930. // GoString returns the string representation
  6931. func (s ReprocessingSummary) GoString() string {
  6932. return s.String()
  6933. }
  6934. // SetCreationTime sets the CreationTime field's value.
  6935. func (s *ReprocessingSummary) SetCreationTime(v time.Time) *ReprocessingSummary {
  6936. s.CreationTime = &v
  6937. return s
  6938. }
  6939. // SetId sets the Id field's value.
  6940. func (s *ReprocessingSummary) SetId(v string) *ReprocessingSummary {
  6941. s.Id = &v
  6942. return s
  6943. }
  6944. // SetStatus sets the Status field's value.
  6945. func (s *ReprocessingSummary) SetStatus(v string) *ReprocessingSummary {
  6946. s.Status = &v
  6947. return s
  6948. }
  6949. // The configuration of the resource used to execute the "containerAction".
  6950. type ResourceConfiguration struct {
  6951. _ struct{} `type:"structure"`
  6952. // The type of the compute resource used to execute the "containerAction". Possible
  6953. // values are: ACU_1 (vCPU=4, memory=16GiB) or ACU_2 (vCPU=8, memory=32GiB).
  6954. //
  6955. // ComputeType is a required field
  6956. ComputeType *string `locationName:"computeType" type:"string" required:"true" enum:"ComputeType"`
  6957. // The size (in GB) of the persistent storage available to the resource instance
  6958. // used to execute the "containerAction" (min: 1, max: 50).
  6959. //
  6960. // VolumeSizeInGB is a required field
  6961. VolumeSizeInGB *int64 `locationName:"volumeSizeInGB" min:"1" type:"integer" required:"true"`
  6962. }
  6963. // String returns the string representation
  6964. func (s ResourceConfiguration) String() string {
  6965. return awsutil.Prettify(s)
  6966. }
  6967. // GoString returns the string representation
  6968. func (s ResourceConfiguration) GoString() string {
  6969. return s.String()
  6970. }
  6971. // Validate inspects the fields of the type to determine if they are valid.
  6972. func (s *ResourceConfiguration) Validate() error {
  6973. invalidParams := request.ErrInvalidParams{Context: "ResourceConfiguration"}
  6974. if s.ComputeType == nil {
  6975. invalidParams.Add(request.NewErrParamRequired("ComputeType"))
  6976. }
  6977. if s.VolumeSizeInGB == nil {
  6978. invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB"))
  6979. }
  6980. if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 {
  6981. invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1))
  6982. }
  6983. if invalidParams.Len() > 0 {
  6984. return invalidParams
  6985. }
  6986. return nil
  6987. }
  6988. // SetComputeType sets the ComputeType field's value.
  6989. func (s *ResourceConfiguration) SetComputeType(v string) *ResourceConfiguration {
  6990. s.ComputeType = &v
  6991. return s
  6992. }
  6993. // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
  6994. func (s *ResourceConfiguration) SetVolumeSizeInGB(v int64) *ResourceConfiguration {
  6995. s.VolumeSizeInGB = &v
  6996. return s
  6997. }
  6998. // How long, in days, message data is kept.
  6999. type RetentionPeriod struct {
  7000. _ struct{} `type:"structure"`
  7001. // The number of days that message data is kept. The "unlimited" parameter must
  7002. // be false.
  7003. NumberOfDays *int64 `locationName:"numberOfDays" min:"1" type:"integer"`
  7004. // If true, message data is kept indefinitely.
  7005. Unlimited *bool `locationName:"unlimited" type:"boolean"`
  7006. }
  7007. // String returns the string representation
  7008. func (s RetentionPeriod) String() string {
  7009. return awsutil.Prettify(s)
  7010. }
  7011. // GoString returns the string representation
  7012. func (s RetentionPeriod) GoString() string {
  7013. return s.String()
  7014. }
  7015. // Validate inspects the fields of the type to determine if they are valid.
  7016. func (s *RetentionPeriod) Validate() error {
  7017. invalidParams := request.ErrInvalidParams{Context: "RetentionPeriod"}
  7018. if s.NumberOfDays != nil && *s.NumberOfDays < 1 {
  7019. invalidParams.Add(request.NewErrParamMinValue("NumberOfDays", 1))
  7020. }
  7021. if invalidParams.Len() > 0 {
  7022. return invalidParams
  7023. }
  7024. return nil
  7025. }
  7026. // SetNumberOfDays sets the NumberOfDays field's value.
  7027. func (s *RetentionPeriod) SetNumberOfDays(v int64) *RetentionPeriod {
  7028. s.NumberOfDays = &v
  7029. return s
  7030. }
  7031. // SetUnlimited sets the Unlimited field's value.
  7032. func (s *RetentionPeriod) SetUnlimited(v bool) *RetentionPeriod {
  7033. s.Unlimited = &v
  7034. return s
  7035. }
  7036. type RunPipelineActivityInput struct {
  7037. _ struct{} `type:"structure"`
  7038. // The sample message payloads on which the pipeline activity is run.
  7039. //
  7040. // Payloads is a required field
  7041. Payloads [][]byte `locationName:"payloads" min:"1" type:"list" required:"true"`
  7042. // The pipeline activity that is run. This must not be a 'channel' activity
  7043. // or a 'datastore' activity because these activities are used in a pipeline
  7044. // only to load the original message and to store the (possibly) transformed
  7045. // message. If a 'lambda' activity is specified, only short-running Lambda functions
  7046. // (those with a timeout of less than 30 seconds or less) can be used.
  7047. //
  7048. // PipelineActivity is a required field
  7049. PipelineActivity *PipelineActivity `locationName:"pipelineActivity" type:"structure" required:"true"`
  7050. }
  7051. // String returns the string representation
  7052. func (s RunPipelineActivityInput) String() string {
  7053. return awsutil.Prettify(s)
  7054. }
  7055. // GoString returns the string representation
  7056. func (s RunPipelineActivityInput) GoString() string {
  7057. return s.String()
  7058. }
  7059. // Validate inspects the fields of the type to determine if they are valid.
  7060. func (s *RunPipelineActivityInput) Validate() error {
  7061. invalidParams := request.ErrInvalidParams{Context: "RunPipelineActivityInput"}
  7062. if s.Payloads == nil {
  7063. invalidParams.Add(request.NewErrParamRequired("Payloads"))
  7064. }
  7065. if s.Payloads != nil && len(s.Payloads) < 1 {
  7066. invalidParams.Add(request.NewErrParamMinLen("Payloads", 1))
  7067. }
  7068. if s.PipelineActivity == nil {
  7069. invalidParams.Add(request.NewErrParamRequired("PipelineActivity"))
  7070. }
  7071. if s.PipelineActivity != nil {
  7072. if err := s.PipelineActivity.Validate(); err != nil {
  7073. invalidParams.AddNested("PipelineActivity", err.(request.ErrInvalidParams))
  7074. }
  7075. }
  7076. if invalidParams.Len() > 0 {
  7077. return invalidParams
  7078. }
  7079. return nil
  7080. }
  7081. // SetPayloads sets the Payloads field's value.
  7082. func (s *RunPipelineActivityInput) SetPayloads(v [][]byte) *RunPipelineActivityInput {
  7083. s.Payloads = v
  7084. return s
  7085. }
  7086. // SetPipelineActivity sets the PipelineActivity field's value.
  7087. func (s *RunPipelineActivityInput) SetPipelineActivity(v *PipelineActivity) *RunPipelineActivityInput {
  7088. s.PipelineActivity = v
  7089. return s
  7090. }
  7091. type RunPipelineActivityOutput struct {
  7092. _ struct{} `type:"structure"`
  7093. // In case the pipeline activity fails, the log message that is generated.
  7094. LogResult *string `locationName:"logResult" type:"string"`
  7095. // The enriched or transformed sample message payloads as base64-encoded strings.
  7096. // (The results of running the pipeline activity on each input sample message
  7097. // payload, encoded in base64.)
  7098. Payloads [][]byte `locationName:"payloads" min:"1" type:"list"`
  7099. }
  7100. // String returns the string representation
  7101. func (s RunPipelineActivityOutput) String() string {
  7102. return awsutil.Prettify(s)
  7103. }
  7104. // GoString returns the string representation
  7105. func (s RunPipelineActivityOutput) GoString() string {
  7106. return s.String()
  7107. }
  7108. // SetLogResult sets the LogResult field's value.
  7109. func (s *RunPipelineActivityOutput) SetLogResult(v string) *RunPipelineActivityOutput {
  7110. s.LogResult = &v
  7111. return s
  7112. }
  7113. // SetPayloads sets the Payloads field's value.
  7114. func (s *RunPipelineActivityOutput) SetPayloads(v [][]byte) *RunPipelineActivityOutput {
  7115. s.Payloads = v
  7116. return s
  7117. }
  7118. type SampleChannelDataInput struct {
  7119. _ struct{} `type:"structure"`
  7120. // The name of the channel whose message samples are retrieved.
  7121. //
  7122. // ChannelName is a required field
  7123. ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
  7124. // The end of the time window from which sample messages are retrieved.
  7125. EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp"`
  7126. // The number of sample messages to be retrieved. The limit is 10, the default
  7127. // is also 10.
  7128. MaxMessages *int64 `location:"querystring" locationName:"maxMessages" min:"1" type:"integer"`
  7129. // The start of the time window from which sample messages are retrieved.
  7130. StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp"`
  7131. }
  7132. // String returns the string representation
  7133. func (s SampleChannelDataInput) String() string {
  7134. return awsutil.Prettify(s)
  7135. }
  7136. // GoString returns the string representation
  7137. func (s SampleChannelDataInput) GoString() string {
  7138. return s.String()
  7139. }
  7140. // Validate inspects the fields of the type to determine if they are valid.
  7141. func (s *SampleChannelDataInput) Validate() error {
  7142. invalidParams := request.ErrInvalidParams{Context: "SampleChannelDataInput"}
  7143. if s.ChannelName == nil {
  7144. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  7145. }
  7146. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  7147. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  7148. }
  7149. if s.MaxMessages != nil && *s.MaxMessages < 1 {
  7150. invalidParams.Add(request.NewErrParamMinValue("MaxMessages", 1))
  7151. }
  7152. if invalidParams.Len() > 0 {
  7153. return invalidParams
  7154. }
  7155. return nil
  7156. }
  7157. // SetChannelName sets the ChannelName field's value.
  7158. func (s *SampleChannelDataInput) SetChannelName(v string) *SampleChannelDataInput {
  7159. s.ChannelName = &v
  7160. return s
  7161. }
  7162. // SetEndTime sets the EndTime field's value.
  7163. func (s *SampleChannelDataInput) SetEndTime(v time.Time) *SampleChannelDataInput {
  7164. s.EndTime = &v
  7165. return s
  7166. }
  7167. // SetMaxMessages sets the MaxMessages field's value.
  7168. func (s *SampleChannelDataInput) SetMaxMessages(v int64) *SampleChannelDataInput {
  7169. s.MaxMessages = &v
  7170. return s
  7171. }
  7172. // SetStartTime sets the StartTime field's value.
  7173. func (s *SampleChannelDataInput) SetStartTime(v time.Time) *SampleChannelDataInput {
  7174. s.StartTime = &v
  7175. return s
  7176. }
  7177. type SampleChannelDataOutput struct {
  7178. _ struct{} `type:"structure"`
  7179. // The list of message samples. Each sample message is returned as a base64-encoded
  7180. // string.
  7181. Payloads [][]byte `locationName:"payloads" min:"1" type:"list"`
  7182. }
  7183. // String returns the string representation
  7184. func (s SampleChannelDataOutput) String() string {
  7185. return awsutil.Prettify(s)
  7186. }
  7187. // GoString returns the string representation
  7188. func (s SampleChannelDataOutput) GoString() string {
  7189. return s.String()
  7190. }
  7191. // SetPayloads sets the Payloads field's value.
  7192. func (s *SampleChannelDataOutput) SetPayloads(v [][]byte) *SampleChannelDataOutput {
  7193. s.Payloads = v
  7194. return s
  7195. }
  7196. // The schedule for when to trigger an update.
  7197. type Schedule struct {
  7198. _ struct{} `type:"structure"`
  7199. // The expression that defines when to trigger an update. For more information,
  7200. // see Schedule Expressions for Rules (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html)
  7201. // in the Amazon CloudWatch documentation.
  7202. Expression *string `locationName:"expression" type:"string"`
  7203. }
  7204. // String returns the string representation
  7205. func (s Schedule) String() string {
  7206. return awsutil.Prettify(s)
  7207. }
  7208. // GoString returns the string representation
  7209. func (s Schedule) GoString() string {
  7210. return s.String()
  7211. }
  7212. // SetExpression sets the Expression field's value.
  7213. func (s *Schedule) SetExpression(v string) *Schedule {
  7214. s.Expression = &v
  7215. return s
  7216. }
  7217. // Creates a new message using only the specified attributes from the original
  7218. // message.
  7219. type SelectAttributesActivity struct {
  7220. _ struct{} `type:"structure"`
  7221. // A list of the attributes to select from the message.
  7222. //
  7223. // Attributes is a required field
  7224. Attributes []*string `locationName:"attributes" min:"1" type:"list" required:"true"`
  7225. // The name of the 'selectAttributes' activity.
  7226. //
  7227. // Name is a required field
  7228. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  7229. // The next activity in the pipeline.
  7230. Next *string `locationName:"next" min:"1" type:"string"`
  7231. }
  7232. // String returns the string representation
  7233. func (s SelectAttributesActivity) String() string {
  7234. return awsutil.Prettify(s)
  7235. }
  7236. // GoString returns the string representation
  7237. func (s SelectAttributesActivity) GoString() string {
  7238. return s.String()
  7239. }
  7240. // Validate inspects the fields of the type to determine if they are valid.
  7241. func (s *SelectAttributesActivity) Validate() error {
  7242. invalidParams := request.ErrInvalidParams{Context: "SelectAttributesActivity"}
  7243. if s.Attributes == nil {
  7244. invalidParams.Add(request.NewErrParamRequired("Attributes"))
  7245. }
  7246. if s.Attributes != nil && len(s.Attributes) < 1 {
  7247. invalidParams.Add(request.NewErrParamMinLen("Attributes", 1))
  7248. }
  7249. if s.Name == nil {
  7250. invalidParams.Add(request.NewErrParamRequired("Name"))
  7251. }
  7252. if s.Name != nil && len(*s.Name) < 1 {
  7253. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7254. }
  7255. if s.Next != nil && len(*s.Next) < 1 {
  7256. invalidParams.Add(request.NewErrParamMinLen("Next", 1))
  7257. }
  7258. if invalidParams.Len() > 0 {
  7259. return invalidParams
  7260. }
  7261. return nil
  7262. }
  7263. // SetAttributes sets the Attributes field's value.
  7264. func (s *SelectAttributesActivity) SetAttributes(v []*string) *SelectAttributesActivity {
  7265. s.Attributes = v
  7266. return s
  7267. }
  7268. // SetName sets the Name field's value.
  7269. func (s *SelectAttributesActivity) SetName(v string) *SelectAttributesActivity {
  7270. s.Name = &v
  7271. return s
  7272. }
  7273. // SetNext sets the Next field's value.
  7274. func (s *SelectAttributesActivity) SetNext(v string) *SelectAttributesActivity {
  7275. s.Next = &v
  7276. return s
  7277. }
  7278. // The SQL query to modify the message.
  7279. type SqlQueryDatasetAction struct {
  7280. _ struct{} `type:"structure"`
  7281. // Pre-filters applied to message data.
  7282. Filters []*QueryFilter `locationName:"filters" type:"list"`
  7283. // A SQL query string.
  7284. //
  7285. // SqlQuery is a required field
  7286. SqlQuery *string `locationName:"sqlQuery" type:"string" required:"true"`
  7287. }
  7288. // String returns the string representation
  7289. func (s SqlQueryDatasetAction) String() string {
  7290. return awsutil.Prettify(s)
  7291. }
  7292. // GoString returns the string representation
  7293. func (s SqlQueryDatasetAction) GoString() string {
  7294. return s.String()
  7295. }
  7296. // Validate inspects the fields of the type to determine if they are valid.
  7297. func (s *SqlQueryDatasetAction) Validate() error {
  7298. invalidParams := request.ErrInvalidParams{Context: "SqlQueryDatasetAction"}
  7299. if s.SqlQuery == nil {
  7300. invalidParams.Add(request.NewErrParamRequired("SqlQuery"))
  7301. }
  7302. if s.Filters != nil {
  7303. for i, v := range s.Filters {
  7304. if v == nil {
  7305. continue
  7306. }
  7307. if err := v.Validate(); err != nil {
  7308. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7309. }
  7310. }
  7311. }
  7312. if invalidParams.Len() > 0 {
  7313. return invalidParams
  7314. }
  7315. return nil
  7316. }
  7317. // SetFilters sets the Filters field's value.
  7318. func (s *SqlQueryDatasetAction) SetFilters(v []*QueryFilter) *SqlQueryDatasetAction {
  7319. s.Filters = v
  7320. return s
  7321. }
  7322. // SetSqlQuery sets the SqlQuery field's value.
  7323. func (s *SqlQueryDatasetAction) SetSqlQuery(v string) *SqlQueryDatasetAction {
  7324. s.SqlQuery = &v
  7325. return s
  7326. }
  7327. type StartPipelineReprocessingInput struct {
  7328. _ struct{} `type:"structure"`
  7329. // The end time (exclusive) of raw message data that is reprocessed.
  7330. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  7331. // The name of the pipeline on which to start reprocessing.
  7332. //
  7333. // PipelineName is a required field
  7334. PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
  7335. // The start time (inclusive) of raw message data that is reprocessed.
  7336. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  7337. }
  7338. // String returns the string representation
  7339. func (s StartPipelineReprocessingInput) String() string {
  7340. return awsutil.Prettify(s)
  7341. }
  7342. // GoString returns the string representation
  7343. func (s StartPipelineReprocessingInput) GoString() string {
  7344. return s.String()
  7345. }
  7346. // Validate inspects the fields of the type to determine if they are valid.
  7347. func (s *StartPipelineReprocessingInput) Validate() error {
  7348. invalidParams := request.ErrInvalidParams{Context: "StartPipelineReprocessingInput"}
  7349. if s.PipelineName == nil {
  7350. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  7351. }
  7352. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  7353. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  7354. }
  7355. if invalidParams.Len() > 0 {
  7356. return invalidParams
  7357. }
  7358. return nil
  7359. }
  7360. // SetEndTime sets the EndTime field's value.
  7361. func (s *StartPipelineReprocessingInput) SetEndTime(v time.Time) *StartPipelineReprocessingInput {
  7362. s.EndTime = &v
  7363. return s
  7364. }
  7365. // SetPipelineName sets the PipelineName field's value.
  7366. func (s *StartPipelineReprocessingInput) SetPipelineName(v string) *StartPipelineReprocessingInput {
  7367. s.PipelineName = &v
  7368. return s
  7369. }
  7370. // SetStartTime sets the StartTime field's value.
  7371. func (s *StartPipelineReprocessingInput) SetStartTime(v time.Time) *StartPipelineReprocessingInput {
  7372. s.StartTime = &v
  7373. return s
  7374. }
  7375. type StartPipelineReprocessingOutput struct {
  7376. _ struct{} `type:"structure"`
  7377. // The ID of the pipeline reprocessing activity that was started.
  7378. ReprocessingId *string `locationName:"reprocessingId" type:"string"`
  7379. }
  7380. // String returns the string representation
  7381. func (s StartPipelineReprocessingOutput) String() string {
  7382. return awsutil.Prettify(s)
  7383. }
  7384. // GoString returns the string representation
  7385. func (s StartPipelineReprocessingOutput) GoString() string {
  7386. return s.String()
  7387. }
  7388. // SetReprocessingId sets the ReprocessingId field's value.
  7389. func (s *StartPipelineReprocessingOutput) SetReprocessingId(v string) *StartPipelineReprocessingOutput {
  7390. s.ReprocessingId = &v
  7391. return s
  7392. }
  7393. // A set of key/value pairs which are used to manage the resource.
  7394. type Tag struct {
  7395. _ struct{} `type:"structure"`
  7396. // The tag's key.
  7397. //
  7398. // Key is a required field
  7399. Key *string `locationName:"key" min:"1" type:"string" required:"true"`
  7400. // The tag's value.
  7401. //
  7402. // Value is a required field
  7403. Value *string `locationName:"value" min:"1" type:"string" required:"true"`
  7404. }
  7405. // String returns the string representation
  7406. func (s Tag) String() string {
  7407. return awsutil.Prettify(s)
  7408. }
  7409. // GoString returns the string representation
  7410. func (s Tag) GoString() string {
  7411. return s.String()
  7412. }
  7413. // Validate inspects the fields of the type to determine if they are valid.
  7414. func (s *Tag) Validate() error {
  7415. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  7416. if s.Key == nil {
  7417. invalidParams.Add(request.NewErrParamRequired("Key"))
  7418. }
  7419. if s.Key != nil && len(*s.Key) < 1 {
  7420. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  7421. }
  7422. if s.Value == nil {
  7423. invalidParams.Add(request.NewErrParamRequired("Value"))
  7424. }
  7425. if s.Value != nil && len(*s.Value) < 1 {
  7426. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  7427. }
  7428. if invalidParams.Len() > 0 {
  7429. return invalidParams
  7430. }
  7431. return nil
  7432. }
  7433. // SetKey sets the Key field's value.
  7434. func (s *Tag) SetKey(v string) *Tag {
  7435. s.Key = &v
  7436. return s
  7437. }
  7438. // SetValue sets the Value field's value.
  7439. func (s *Tag) SetValue(v string) *Tag {
  7440. s.Value = &v
  7441. return s
  7442. }
  7443. type TagResourceInput struct {
  7444. _ struct{} `type:"structure"`
  7445. // The ARN of the resource whose tags you want to modify.
  7446. //
  7447. // ResourceArn is a required field
  7448. ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
  7449. // The new or modified tags for the resource.
  7450. //
  7451. // Tags is a required field
  7452. Tags []*Tag `locationName:"tags" min:"1" type:"list" required:"true"`
  7453. }
  7454. // String returns the string representation
  7455. func (s TagResourceInput) String() string {
  7456. return awsutil.Prettify(s)
  7457. }
  7458. // GoString returns the string representation
  7459. func (s TagResourceInput) GoString() string {
  7460. return s.String()
  7461. }
  7462. // Validate inspects the fields of the type to determine if they are valid.
  7463. func (s *TagResourceInput) Validate() error {
  7464. invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
  7465. if s.ResourceArn == nil {
  7466. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  7467. }
  7468. if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
  7469. invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
  7470. }
  7471. if s.Tags == nil {
  7472. invalidParams.Add(request.NewErrParamRequired("Tags"))
  7473. }
  7474. if s.Tags != nil && len(s.Tags) < 1 {
  7475. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  7476. }
  7477. if s.Tags != nil {
  7478. for i, v := range s.Tags {
  7479. if v == nil {
  7480. continue
  7481. }
  7482. if err := v.Validate(); err != nil {
  7483. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  7484. }
  7485. }
  7486. }
  7487. if invalidParams.Len() > 0 {
  7488. return invalidParams
  7489. }
  7490. return nil
  7491. }
  7492. // SetResourceArn sets the ResourceArn field's value.
  7493. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
  7494. s.ResourceArn = &v
  7495. return s
  7496. }
  7497. // SetTags sets the Tags field's value.
  7498. func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
  7499. s.Tags = v
  7500. return s
  7501. }
  7502. type TagResourceOutput struct {
  7503. _ struct{} `type:"structure"`
  7504. }
  7505. // String returns the string representation
  7506. func (s TagResourceOutput) String() string {
  7507. return awsutil.Prettify(s)
  7508. }
  7509. // GoString returns the string representation
  7510. func (s TagResourceOutput) GoString() string {
  7511. return s.String()
  7512. }
  7513. // Information about the data set whose content generation triggers the new
  7514. // data set content generation.
  7515. type TriggeringDataset struct {
  7516. _ struct{} `type:"structure"`
  7517. // The name of the data set whose content generation triggers the new data set
  7518. // content generation.
  7519. //
  7520. // Name is a required field
  7521. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  7522. }
  7523. // String returns the string representation
  7524. func (s TriggeringDataset) String() string {
  7525. return awsutil.Prettify(s)
  7526. }
  7527. // GoString returns the string representation
  7528. func (s TriggeringDataset) GoString() string {
  7529. return s.String()
  7530. }
  7531. // Validate inspects the fields of the type to determine if they are valid.
  7532. func (s *TriggeringDataset) Validate() error {
  7533. invalidParams := request.ErrInvalidParams{Context: "TriggeringDataset"}
  7534. if s.Name == nil {
  7535. invalidParams.Add(request.NewErrParamRequired("Name"))
  7536. }
  7537. if s.Name != nil && len(*s.Name) < 1 {
  7538. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7539. }
  7540. if invalidParams.Len() > 0 {
  7541. return invalidParams
  7542. }
  7543. return nil
  7544. }
  7545. // SetName sets the Name field's value.
  7546. func (s *TriggeringDataset) SetName(v string) *TriggeringDataset {
  7547. s.Name = &v
  7548. return s
  7549. }
  7550. type UntagResourceInput struct {
  7551. _ struct{} `type:"structure"`
  7552. // The ARN of the resource whose tags you want to remove.
  7553. //
  7554. // ResourceArn is a required field
  7555. ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
  7556. // The keys of those tags which you want to remove.
  7557. //
  7558. // TagKeys is a required field
  7559. TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
  7560. }
  7561. // String returns the string representation
  7562. func (s UntagResourceInput) String() string {
  7563. return awsutil.Prettify(s)
  7564. }
  7565. // GoString returns the string representation
  7566. func (s UntagResourceInput) GoString() string {
  7567. return s.String()
  7568. }
  7569. // Validate inspects the fields of the type to determine if they are valid.
  7570. func (s *UntagResourceInput) Validate() error {
  7571. invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
  7572. if s.ResourceArn == nil {
  7573. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  7574. }
  7575. if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
  7576. invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
  7577. }
  7578. if s.TagKeys == nil {
  7579. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  7580. }
  7581. if s.TagKeys != nil && len(s.TagKeys) < 1 {
  7582. invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
  7583. }
  7584. if invalidParams.Len() > 0 {
  7585. return invalidParams
  7586. }
  7587. return nil
  7588. }
  7589. // SetResourceArn sets the ResourceArn field's value.
  7590. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
  7591. s.ResourceArn = &v
  7592. return s
  7593. }
  7594. // SetTagKeys sets the TagKeys field's value.
  7595. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
  7596. s.TagKeys = v
  7597. return s
  7598. }
  7599. type UntagResourceOutput struct {
  7600. _ struct{} `type:"structure"`
  7601. }
  7602. // String returns the string representation
  7603. func (s UntagResourceOutput) String() string {
  7604. return awsutil.Prettify(s)
  7605. }
  7606. // GoString returns the string representation
  7607. func (s UntagResourceOutput) GoString() string {
  7608. return s.String()
  7609. }
  7610. type UpdateChannelInput struct {
  7611. _ struct{} `type:"structure"`
  7612. // The name of the channel to be updated.
  7613. //
  7614. // ChannelName is a required field
  7615. ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
  7616. // How long, in days, message data is kept for the channel.
  7617. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  7618. }
  7619. // String returns the string representation
  7620. func (s UpdateChannelInput) String() string {
  7621. return awsutil.Prettify(s)
  7622. }
  7623. // GoString returns the string representation
  7624. func (s UpdateChannelInput) GoString() string {
  7625. return s.String()
  7626. }
  7627. // Validate inspects the fields of the type to determine if they are valid.
  7628. func (s *UpdateChannelInput) Validate() error {
  7629. invalidParams := request.ErrInvalidParams{Context: "UpdateChannelInput"}
  7630. if s.ChannelName == nil {
  7631. invalidParams.Add(request.NewErrParamRequired("ChannelName"))
  7632. }
  7633. if s.ChannelName != nil && len(*s.ChannelName) < 1 {
  7634. invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
  7635. }
  7636. if s.RetentionPeriod != nil {
  7637. if err := s.RetentionPeriod.Validate(); err != nil {
  7638. invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
  7639. }
  7640. }
  7641. if invalidParams.Len() > 0 {
  7642. return invalidParams
  7643. }
  7644. return nil
  7645. }
  7646. // SetChannelName sets the ChannelName field's value.
  7647. func (s *UpdateChannelInput) SetChannelName(v string) *UpdateChannelInput {
  7648. s.ChannelName = &v
  7649. return s
  7650. }
  7651. // SetRetentionPeriod sets the RetentionPeriod field's value.
  7652. func (s *UpdateChannelInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateChannelInput {
  7653. s.RetentionPeriod = v
  7654. return s
  7655. }
  7656. type UpdateChannelOutput struct {
  7657. _ struct{} `type:"structure"`
  7658. }
  7659. // String returns the string representation
  7660. func (s UpdateChannelOutput) String() string {
  7661. return awsutil.Prettify(s)
  7662. }
  7663. // GoString returns the string representation
  7664. func (s UpdateChannelOutput) GoString() string {
  7665. return s.String()
  7666. }
  7667. type UpdateDatasetInput struct {
  7668. _ struct{} `type:"structure"`
  7669. // A list of "DatasetAction" objects.
  7670. //
  7671. // Actions is a required field
  7672. Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"`
  7673. // When data set contents are created they are delivered to destinations specified
  7674. // here.
  7675. ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"`
  7676. // The name of the data set to update.
  7677. //
  7678. // DatasetName is a required field
  7679. DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
  7680. // How long, in days, message data is kept for the data set.
  7681. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  7682. // A list of "DatasetTrigger" objects. The list can be empty or can contain
  7683. // up to five DataSetTrigger objects.
  7684. Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
  7685. }
  7686. // String returns the string representation
  7687. func (s UpdateDatasetInput) String() string {
  7688. return awsutil.Prettify(s)
  7689. }
  7690. // GoString returns the string representation
  7691. func (s UpdateDatasetInput) GoString() string {
  7692. return s.String()
  7693. }
  7694. // Validate inspects the fields of the type to determine if they are valid.
  7695. func (s *UpdateDatasetInput) Validate() error {
  7696. invalidParams := request.ErrInvalidParams{Context: "UpdateDatasetInput"}
  7697. if s.Actions == nil {
  7698. invalidParams.Add(request.NewErrParamRequired("Actions"))
  7699. }
  7700. if s.Actions != nil && len(s.Actions) < 1 {
  7701. invalidParams.Add(request.NewErrParamMinLen("Actions", 1))
  7702. }
  7703. if s.DatasetName == nil {
  7704. invalidParams.Add(request.NewErrParamRequired("DatasetName"))
  7705. }
  7706. if s.DatasetName != nil && len(*s.DatasetName) < 1 {
  7707. invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
  7708. }
  7709. if s.Actions != nil {
  7710. for i, v := range s.Actions {
  7711. if v == nil {
  7712. continue
  7713. }
  7714. if err := v.Validate(); err != nil {
  7715. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
  7716. }
  7717. }
  7718. }
  7719. if s.ContentDeliveryRules != nil {
  7720. for i, v := range s.ContentDeliveryRules {
  7721. if v == nil {
  7722. continue
  7723. }
  7724. if err := v.Validate(); err != nil {
  7725. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContentDeliveryRules", i), err.(request.ErrInvalidParams))
  7726. }
  7727. }
  7728. }
  7729. if s.RetentionPeriod != nil {
  7730. if err := s.RetentionPeriod.Validate(); err != nil {
  7731. invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
  7732. }
  7733. }
  7734. if s.Triggers != nil {
  7735. for i, v := range s.Triggers {
  7736. if v == nil {
  7737. continue
  7738. }
  7739. if err := v.Validate(); err != nil {
  7740. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
  7741. }
  7742. }
  7743. }
  7744. if invalidParams.Len() > 0 {
  7745. return invalidParams
  7746. }
  7747. return nil
  7748. }
  7749. // SetActions sets the Actions field's value.
  7750. func (s *UpdateDatasetInput) SetActions(v []*DatasetAction) *UpdateDatasetInput {
  7751. s.Actions = v
  7752. return s
  7753. }
  7754. // SetContentDeliveryRules sets the ContentDeliveryRules field's value.
  7755. func (s *UpdateDatasetInput) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *UpdateDatasetInput {
  7756. s.ContentDeliveryRules = v
  7757. return s
  7758. }
  7759. // SetDatasetName sets the DatasetName field's value.
  7760. func (s *UpdateDatasetInput) SetDatasetName(v string) *UpdateDatasetInput {
  7761. s.DatasetName = &v
  7762. return s
  7763. }
  7764. // SetRetentionPeriod sets the RetentionPeriod field's value.
  7765. func (s *UpdateDatasetInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateDatasetInput {
  7766. s.RetentionPeriod = v
  7767. return s
  7768. }
  7769. // SetTriggers sets the Triggers field's value.
  7770. func (s *UpdateDatasetInput) SetTriggers(v []*DatasetTrigger) *UpdateDatasetInput {
  7771. s.Triggers = v
  7772. return s
  7773. }
  7774. type UpdateDatasetOutput struct {
  7775. _ struct{} `type:"structure"`
  7776. }
  7777. // String returns the string representation
  7778. func (s UpdateDatasetOutput) String() string {
  7779. return awsutil.Prettify(s)
  7780. }
  7781. // GoString returns the string representation
  7782. func (s UpdateDatasetOutput) GoString() string {
  7783. return s.String()
  7784. }
  7785. type UpdateDatastoreInput struct {
  7786. _ struct{} `type:"structure"`
  7787. // The name of the data store to be updated.
  7788. //
  7789. // DatastoreName is a required field
  7790. DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"`
  7791. // How long, in days, message data is kept for the data store.
  7792. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
  7793. }
  7794. // String returns the string representation
  7795. func (s UpdateDatastoreInput) String() string {
  7796. return awsutil.Prettify(s)
  7797. }
  7798. // GoString returns the string representation
  7799. func (s UpdateDatastoreInput) GoString() string {
  7800. return s.String()
  7801. }
  7802. // Validate inspects the fields of the type to determine if they are valid.
  7803. func (s *UpdateDatastoreInput) Validate() error {
  7804. invalidParams := request.ErrInvalidParams{Context: "UpdateDatastoreInput"}
  7805. if s.DatastoreName == nil {
  7806. invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
  7807. }
  7808. if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
  7809. invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
  7810. }
  7811. if s.RetentionPeriod != nil {
  7812. if err := s.RetentionPeriod.Validate(); err != nil {
  7813. invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
  7814. }
  7815. }
  7816. if invalidParams.Len() > 0 {
  7817. return invalidParams
  7818. }
  7819. return nil
  7820. }
  7821. // SetDatastoreName sets the DatastoreName field's value.
  7822. func (s *UpdateDatastoreInput) SetDatastoreName(v string) *UpdateDatastoreInput {
  7823. s.DatastoreName = &v
  7824. return s
  7825. }
  7826. // SetRetentionPeriod sets the RetentionPeriod field's value.
  7827. func (s *UpdateDatastoreInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateDatastoreInput {
  7828. s.RetentionPeriod = v
  7829. return s
  7830. }
  7831. type UpdateDatastoreOutput struct {
  7832. _ struct{} `type:"structure"`
  7833. }
  7834. // String returns the string representation
  7835. func (s UpdateDatastoreOutput) String() string {
  7836. return awsutil.Prettify(s)
  7837. }
  7838. // GoString returns the string representation
  7839. func (s UpdateDatastoreOutput) GoString() string {
  7840. return s.String()
  7841. }
  7842. type UpdatePipelineInput struct {
  7843. _ struct{} `type:"structure"`
  7844. // A list of "PipelineActivity" objects.
  7845. //
  7846. // The list can be 1-25 PipelineActivity objects. Activities perform transformations
  7847. // on your messages, such as removing, renaming or adding message attributes;
  7848. // filtering messages based on attribute values; invoking your Lambda functions
  7849. // on messages for advanced processing; or performing mathematical transformations
  7850. // to normalize device data.
  7851. //
  7852. // PipelineActivities is a required field
  7853. PipelineActivities []*PipelineActivity `locationName:"pipelineActivities" min:"1" type:"list" required:"true"`
  7854. // The name of the pipeline to update.
  7855. //
  7856. // PipelineName is a required field
  7857. PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
  7858. }
  7859. // String returns the string representation
  7860. func (s UpdatePipelineInput) String() string {
  7861. return awsutil.Prettify(s)
  7862. }
  7863. // GoString returns the string representation
  7864. func (s UpdatePipelineInput) GoString() string {
  7865. return s.String()
  7866. }
  7867. // Validate inspects the fields of the type to determine if they are valid.
  7868. func (s *UpdatePipelineInput) Validate() error {
  7869. invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
  7870. if s.PipelineActivities == nil {
  7871. invalidParams.Add(request.NewErrParamRequired("PipelineActivities"))
  7872. }
  7873. if s.PipelineActivities != nil && len(s.PipelineActivities) < 1 {
  7874. invalidParams.Add(request.NewErrParamMinLen("PipelineActivities", 1))
  7875. }
  7876. if s.PipelineName == nil {
  7877. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  7878. }
  7879. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  7880. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  7881. }
  7882. if s.PipelineActivities != nil {
  7883. for i, v := range s.PipelineActivities {
  7884. if v == nil {
  7885. continue
  7886. }
  7887. if err := v.Validate(); err != nil {
  7888. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineActivities", i), err.(request.ErrInvalidParams))
  7889. }
  7890. }
  7891. }
  7892. if invalidParams.Len() > 0 {
  7893. return invalidParams
  7894. }
  7895. return nil
  7896. }
  7897. // SetPipelineActivities sets the PipelineActivities field's value.
  7898. func (s *UpdatePipelineInput) SetPipelineActivities(v []*PipelineActivity) *UpdatePipelineInput {
  7899. s.PipelineActivities = v
  7900. return s
  7901. }
  7902. // SetPipelineName sets the PipelineName field's value.
  7903. func (s *UpdatePipelineInput) SetPipelineName(v string) *UpdatePipelineInput {
  7904. s.PipelineName = &v
  7905. return s
  7906. }
  7907. type UpdatePipelineOutput struct {
  7908. _ struct{} `type:"structure"`
  7909. }
  7910. // String returns the string representation
  7911. func (s UpdatePipelineOutput) String() string {
  7912. return awsutil.Prettify(s)
  7913. }
  7914. // GoString returns the string representation
  7915. func (s UpdatePipelineOutput) GoString() string {
  7916. return s.String()
  7917. }
  7918. // An instance of a variable to be passed to the "containerAction" execution.
  7919. // Each variable must have a name and a value given by one of "stringValue",
  7920. // "datasetContentVersionValue", or "outputFileUriValue".
  7921. type Variable struct {
  7922. _ struct{} `type:"structure"`
  7923. // The value of the variable as a structure that specifies a data set content
  7924. // version.
  7925. DatasetContentVersionValue *DatasetContentVersionValue `locationName:"datasetContentVersionValue" type:"structure"`
  7926. // The value of the variable as a double (numeric).
  7927. DoubleValue *float64 `locationName:"doubleValue" type:"double"`
  7928. // The name of the variable.
  7929. //
  7930. // Name is a required field
  7931. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  7932. // The value of the variable as a structure that specifies an output file URI.
  7933. OutputFileUriValue *OutputFileUriValue `locationName:"outputFileUriValue" type:"structure"`
  7934. // The value of the variable as a string.
  7935. StringValue *string `locationName:"stringValue" type:"string"`
  7936. }
  7937. // String returns the string representation
  7938. func (s Variable) String() string {
  7939. return awsutil.Prettify(s)
  7940. }
  7941. // GoString returns the string representation
  7942. func (s Variable) GoString() string {
  7943. return s.String()
  7944. }
  7945. // Validate inspects the fields of the type to determine if they are valid.
  7946. func (s *Variable) Validate() error {
  7947. invalidParams := request.ErrInvalidParams{Context: "Variable"}
  7948. if s.Name == nil {
  7949. invalidParams.Add(request.NewErrParamRequired("Name"))
  7950. }
  7951. if s.Name != nil && len(*s.Name) < 1 {
  7952. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7953. }
  7954. if s.DatasetContentVersionValue != nil {
  7955. if err := s.DatasetContentVersionValue.Validate(); err != nil {
  7956. invalidParams.AddNested("DatasetContentVersionValue", err.(request.ErrInvalidParams))
  7957. }
  7958. }
  7959. if s.OutputFileUriValue != nil {
  7960. if err := s.OutputFileUriValue.Validate(); err != nil {
  7961. invalidParams.AddNested("OutputFileUriValue", err.(request.ErrInvalidParams))
  7962. }
  7963. }
  7964. if invalidParams.Len() > 0 {
  7965. return invalidParams
  7966. }
  7967. return nil
  7968. }
  7969. // SetDatasetContentVersionValue sets the DatasetContentVersionValue field's value.
  7970. func (s *Variable) SetDatasetContentVersionValue(v *DatasetContentVersionValue) *Variable {
  7971. s.DatasetContentVersionValue = v
  7972. return s
  7973. }
  7974. // SetDoubleValue sets the DoubleValue field's value.
  7975. func (s *Variable) SetDoubleValue(v float64) *Variable {
  7976. s.DoubleValue = &v
  7977. return s
  7978. }
  7979. // SetName sets the Name field's value.
  7980. func (s *Variable) SetName(v string) *Variable {
  7981. s.Name = &v
  7982. return s
  7983. }
  7984. // SetOutputFileUriValue sets the OutputFileUriValue field's value.
  7985. func (s *Variable) SetOutputFileUriValue(v *OutputFileUriValue) *Variable {
  7986. s.OutputFileUriValue = v
  7987. return s
  7988. }
  7989. // SetStringValue sets the StringValue field's value.
  7990. func (s *Variable) SetStringValue(v string) *Variable {
  7991. s.StringValue = &v
  7992. return s
  7993. }
  7994. const (
  7995. // ChannelStatusCreating is a ChannelStatus enum value
  7996. ChannelStatusCreating = "CREATING"
  7997. // ChannelStatusActive is a ChannelStatus enum value
  7998. ChannelStatusActive = "ACTIVE"
  7999. // ChannelStatusDeleting is a ChannelStatus enum value
  8000. ChannelStatusDeleting = "DELETING"
  8001. )
  8002. const (
  8003. // ComputeTypeAcu1 is a ComputeType enum value
  8004. ComputeTypeAcu1 = "ACU_1"
  8005. // ComputeTypeAcu2 is a ComputeType enum value
  8006. ComputeTypeAcu2 = "ACU_2"
  8007. )
  8008. const (
  8009. // DatasetActionTypeQuery is a DatasetActionType enum value
  8010. DatasetActionTypeQuery = "QUERY"
  8011. // DatasetActionTypeContainer is a DatasetActionType enum value
  8012. DatasetActionTypeContainer = "CONTAINER"
  8013. )
  8014. const (
  8015. // DatasetContentStateCreating is a DatasetContentState enum value
  8016. DatasetContentStateCreating = "CREATING"
  8017. // DatasetContentStateSucceeded is a DatasetContentState enum value
  8018. DatasetContentStateSucceeded = "SUCCEEDED"
  8019. // DatasetContentStateFailed is a DatasetContentState enum value
  8020. DatasetContentStateFailed = "FAILED"
  8021. )
  8022. const (
  8023. // DatasetStatusCreating is a DatasetStatus enum value
  8024. DatasetStatusCreating = "CREATING"
  8025. // DatasetStatusActive is a DatasetStatus enum value
  8026. DatasetStatusActive = "ACTIVE"
  8027. // DatasetStatusDeleting is a DatasetStatus enum value
  8028. DatasetStatusDeleting = "DELETING"
  8029. )
  8030. const (
  8031. // DatastoreStatusCreating is a DatastoreStatus enum value
  8032. DatastoreStatusCreating = "CREATING"
  8033. // DatastoreStatusActive is a DatastoreStatus enum value
  8034. DatastoreStatusActive = "ACTIVE"
  8035. // DatastoreStatusDeleting is a DatastoreStatus enum value
  8036. DatastoreStatusDeleting = "DELETING"
  8037. )
  8038. const (
  8039. // LoggingLevelError is a LoggingLevel enum value
  8040. LoggingLevelError = "ERROR"
  8041. )
  8042. const (
  8043. // ReprocessingStatusRunning is a ReprocessingStatus enum value
  8044. ReprocessingStatusRunning = "RUNNING"
  8045. // ReprocessingStatusSucceeded is a ReprocessingStatus enum value
  8046. ReprocessingStatusSucceeded = "SUCCEEDED"
  8047. // ReprocessingStatusCancelled is a ReprocessingStatus enum value
  8048. ReprocessingStatusCancelled = "CANCELLED"
  8049. // ReprocessingStatusFailed is a ReprocessingStatus enum value
  8050. ReprocessingStatusFailed = "FAILED"
  8051. )