| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package iotanalytics
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
- )
- const opBatchPutMessage = "BatchPutMessage"
- // BatchPutMessageRequest generates a "aws/request.Request" representing the
- // client's request for the BatchPutMessage operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See BatchPutMessage for more information on using the BatchPutMessage
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the BatchPutMessageRequest method.
- // req, resp := client.BatchPutMessageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/BatchPutMessage
- func (c *IoTAnalytics) BatchPutMessageRequest(input *BatchPutMessageInput) (req *request.Request, output *BatchPutMessageOutput) {
- op := &request.Operation{
- Name: opBatchPutMessage,
- HTTPMethod: "POST",
- HTTPPath: "/messages/batch",
- }
- if input == nil {
- input = &BatchPutMessageInput{}
- }
- output = &BatchPutMessageOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // BatchPutMessage API operation for AWS IoT Analytics.
- //
- // Sends messages to a channel.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation BatchPutMessage for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/BatchPutMessage
- func (c *IoTAnalytics) BatchPutMessage(input *BatchPutMessageInput) (*BatchPutMessageOutput, error) {
- req, out := c.BatchPutMessageRequest(input)
- return out, req.Send()
- }
- // BatchPutMessageWithContext is the same as BatchPutMessage with the addition of
- // the ability to pass a context and additional request options.
- //
- // See BatchPutMessage for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) BatchPutMessageWithContext(ctx aws.Context, input *BatchPutMessageInput, opts ...request.Option) (*BatchPutMessageOutput, error) {
- req, out := c.BatchPutMessageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCancelPipelineReprocessing = "CancelPipelineReprocessing"
- // CancelPipelineReprocessingRequest generates a "aws/request.Request" representing the
- // client's request for the CancelPipelineReprocessing operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CancelPipelineReprocessing for more information on using the CancelPipelineReprocessing
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CancelPipelineReprocessingRequest method.
- // req, resp := client.CancelPipelineReprocessingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CancelPipelineReprocessing
- func (c *IoTAnalytics) CancelPipelineReprocessingRequest(input *CancelPipelineReprocessingInput) (req *request.Request, output *CancelPipelineReprocessingOutput) {
- op := &request.Operation{
- Name: opCancelPipelineReprocessing,
- HTTPMethod: "DELETE",
- HTTPPath: "/pipelines/{pipelineName}/reprocessing/{reprocessingId}",
- }
- if input == nil {
- input = &CancelPipelineReprocessingInput{}
- }
- output = &CancelPipelineReprocessingOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CancelPipelineReprocessing API operation for AWS IoT Analytics.
- //
- // Cancels the reprocessing of data through the pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation CancelPipelineReprocessing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CancelPipelineReprocessing
- func (c *IoTAnalytics) CancelPipelineReprocessing(input *CancelPipelineReprocessingInput) (*CancelPipelineReprocessingOutput, error) {
- req, out := c.CancelPipelineReprocessingRequest(input)
- return out, req.Send()
- }
- // CancelPipelineReprocessingWithContext is the same as CancelPipelineReprocessing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CancelPipelineReprocessing for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) CancelPipelineReprocessingWithContext(ctx aws.Context, input *CancelPipelineReprocessingInput, opts ...request.Option) (*CancelPipelineReprocessingOutput, error) {
- req, out := c.CancelPipelineReprocessingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateChannel = "CreateChannel"
- // CreateChannelRequest generates a "aws/request.Request" representing the
- // client's request for the CreateChannel operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateChannel for more information on using the CreateChannel
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateChannelRequest method.
- // req, resp := client.CreateChannelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateChannel
- func (c *IoTAnalytics) CreateChannelRequest(input *CreateChannelInput) (req *request.Request, output *CreateChannelOutput) {
- op := &request.Operation{
- Name: opCreateChannel,
- HTTPMethod: "POST",
- HTTPPath: "/channels",
- }
- if input == nil {
- input = &CreateChannelInput{}
- }
- output = &CreateChannelOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateChannel API operation for AWS IoT Analytics.
- //
- // Creates a channel. A channel collects data from an MQTT topic and archives
- // the raw, unprocessed messages before publishing the data to a pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation CreateChannel for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // A resource with the same name already exists.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateChannel
- func (c *IoTAnalytics) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) {
- req, out := c.CreateChannelRequest(input)
- return out, req.Send()
- }
- // CreateChannelWithContext is the same as CreateChannel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateChannel for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) CreateChannelWithContext(ctx aws.Context, input *CreateChannelInput, opts ...request.Option) (*CreateChannelOutput, error) {
- req, out := c.CreateChannelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateDataset = "CreateDataset"
- // CreateDatasetRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDataset operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateDataset for more information on using the CreateDataset
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateDatasetRequest method.
- // req, resp := client.CreateDatasetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDataset
- func (c *IoTAnalytics) CreateDatasetRequest(input *CreateDatasetInput) (req *request.Request, output *CreateDatasetOutput) {
- op := &request.Operation{
- Name: opCreateDataset,
- HTTPMethod: "POST",
- HTTPPath: "/datasets",
- }
- if input == nil {
- input = &CreateDatasetInput{}
- }
- output = &CreateDatasetOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateDataset API operation for AWS IoT Analytics.
- //
- // Creates a data set. A data set stores data retrieved from a data store by
- // applying a "queryAction" (a SQL query) or a "containerAction" (executing
- // a containerized application). This operation creates the skeleton of a data
- // set. The data set can be populated manually by calling "CreateDatasetContent"
- // or automatically according to a "trigger" you specify.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation CreateDataset for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // A resource with the same name already exists.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDataset
- func (c *IoTAnalytics) CreateDataset(input *CreateDatasetInput) (*CreateDatasetOutput, error) {
- req, out := c.CreateDatasetRequest(input)
- return out, req.Send()
- }
- // CreateDatasetWithContext is the same as CreateDataset with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateDataset for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) CreateDatasetWithContext(ctx aws.Context, input *CreateDatasetInput, opts ...request.Option) (*CreateDatasetOutput, error) {
- req, out := c.CreateDatasetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateDatasetContent = "CreateDatasetContent"
- // CreateDatasetContentRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDatasetContent operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateDatasetContent for more information on using the CreateDatasetContent
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateDatasetContentRequest method.
- // req, resp := client.CreateDatasetContentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent
- func (c *IoTAnalytics) CreateDatasetContentRequest(input *CreateDatasetContentInput) (req *request.Request, output *CreateDatasetContentOutput) {
- op := &request.Operation{
- Name: opCreateDatasetContent,
- HTTPMethod: "POST",
- HTTPPath: "/datasets/{datasetName}/content",
- }
- if input == nil {
- input = &CreateDatasetContentInput{}
- }
- output = &CreateDatasetContentOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateDatasetContent API operation for AWS IoT Analytics.
- //
- // Creates the content of a data set by applying a "queryAction" (a SQL query)
- // or a "containerAction" (executing a containerized application).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation CreateDatasetContent for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent
- func (c *IoTAnalytics) CreateDatasetContent(input *CreateDatasetContentInput) (*CreateDatasetContentOutput, error) {
- req, out := c.CreateDatasetContentRequest(input)
- return out, req.Send()
- }
- // CreateDatasetContentWithContext is the same as CreateDatasetContent with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateDatasetContent for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) CreateDatasetContentWithContext(ctx aws.Context, input *CreateDatasetContentInput, opts ...request.Option) (*CreateDatasetContentOutput, error) {
- req, out := c.CreateDatasetContentRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateDatastore = "CreateDatastore"
- // CreateDatastoreRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDatastore operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateDatastore for more information on using the CreateDatastore
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateDatastoreRequest method.
- // req, resp := client.CreateDatastoreRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatastore
- func (c *IoTAnalytics) CreateDatastoreRequest(input *CreateDatastoreInput) (req *request.Request, output *CreateDatastoreOutput) {
- op := &request.Operation{
- Name: opCreateDatastore,
- HTTPMethod: "POST",
- HTTPPath: "/datastores",
- }
- if input == nil {
- input = &CreateDatastoreInput{}
- }
- output = &CreateDatastoreOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateDatastore API operation for AWS IoT Analytics.
- //
- // Creates a data store, which is a repository for messages.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation CreateDatastore for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // A resource with the same name already exists.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatastore
- func (c *IoTAnalytics) CreateDatastore(input *CreateDatastoreInput) (*CreateDatastoreOutput, error) {
- req, out := c.CreateDatastoreRequest(input)
- return out, req.Send()
- }
- // CreateDatastoreWithContext is the same as CreateDatastore with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateDatastore for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) CreateDatastoreWithContext(ctx aws.Context, input *CreateDatastoreInput, opts ...request.Option) (*CreateDatastoreOutput, error) {
- req, out := c.CreateDatastoreRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreatePipeline = "CreatePipeline"
- // CreatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreatePipeline for more information on using the CreatePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreatePipelineRequest method.
- // req, resp := client.CreatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreatePipeline
- func (c *IoTAnalytics) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
- op := &request.Operation{
- Name: opCreatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/pipelines",
- }
- if input == nil {
- input = &CreatePipelineInput{}
- }
- output = &CreatePipelineOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreatePipeline API operation for AWS IoT Analytics.
- //
- // Creates a pipeline. A pipeline consumes messages from one or more channels
- // and allows you to process the messages before storing them in a data store.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation CreatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // A resource with the same name already exists.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreatePipeline
- func (c *IoTAnalytics) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- return out, req.Send()
- }
- // CreatePipelineWithContext is the same as CreatePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreatePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) CreatePipelineWithContext(ctx aws.Context, input *CreatePipelineInput, opts ...request.Option) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteChannel = "DeleteChannel"
- // DeleteChannelRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteChannel operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteChannel for more information on using the DeleteChannel
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteChannelRequest method.
- // req, resp := client.DeleteChannelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteChannel
- func (c *IoTAnalytics) DeleteChannelRequest(input *DeleteChannelInput) (req *request.Request, output *DeleteChannelOutput) {
- op := &request.Operation{
- Name: opDeleteChannel,
- HTTPMethod: "DELETE",
- HTTPPath: "/channels/{channelName}",
- }
- if input == nil {
- input = &DeleteChannelInput{}
- }
- output = &DeleteChannelOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteChannel API operation for AWS IoT Analytics.
- //
- // Deletes the specified channel.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DeleteChannel for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteChannel
- func (c *IoTAnalytics) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
- req, out := c.DeleteChannelRequest(input)
- return out, req.Send()
- }
- // DeleteChannelWithContext is the same as DeleteChannel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteChannel for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DeleteChannelWithContext(ctx aws.Context, input *DeleteChannelInput, opts ...request.Option) (*DeleteChannelOutput, error) {
- req, out := c.DeleteChannelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteDataset = "DeleteDataset"
- // DeleteDatasetRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDataset operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteDataset for more information on using the DeleteDataset
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteDatasetRequest method.
- // req, resp := client.DeleteDatasetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDataset
- func (c *IoTAnalytics) DeleteDatasetRequest(input *DeleteDatasetInput) (req *request.Request, output *DeleteDatasetOutput) {
- op := &request.Operation{
- Name: opDeleteDataset,
- HTTPMethod: "DELETE",
- HTTPPath: "/datasets/{datasetName}",
- }
- if input == nil {
- input = &DeleteDatasetInput{}
- }
- output = &DeleteDatasetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteDataset API operation for AWS IoT Analytics.
- //
- // Deletes the specified data set.
- //
- // You do not have to delete the content of the data set before you perform
- // this operation.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DeleteDataset for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDataset
- func (c *IoTAnalytics) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) {
- req, out := c.DeleteDatasetRequest(input)
- return out, req.Send()
- }
- // DeleteDatasetWithContext is the same as DeleteDataset with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteDataset for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DeleteDatasetWithContext(ctx aws.Context, input *DeleteDatasetInput, opts ...request.Option) (*DeleteDatasetOutput, error) {
- req, out := c.DeleteDatasetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteDatasetContent = "DeleteDatasetContent"
- // DeleteDatasetContentRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDatasetContent operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteDatasetContent for more information on using the DeleteDatasetContent
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteDatasetContentRequest method.
- // req, resp := client.DeleteDatasetContentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatasetContent
- func (c *IoTAnalytics) DeleteDatasetContentRequest(input *DeleteDatasetContentInput) (req *request.Request, output *DeleteDatasetContentOutput) {
- op := &request.Operation{
- Name: opDeleteDatasetContent,
- HTTPMethod: "DELETE",
- HTTPPath: "/datasets/{datasetName}/content",
- }
- if input == nil {
- input = &DeleteDatasetContentInput{}
- }
- output = &DeleteDatasetContentOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteDatasetContent API operation for AWS IoT Analytics.
- //
- // Deletes the content of the specified data set.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DeleteDatasetContent for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatasetContent
- func (c *IoTAnalytics) DeleteDatasetContent(input *DeleteDatasetContentInput) (*DeleteDatasetContentOutput, error) {
- req, out := c.DeleteDatasetContentRequest(input)
- return out, req.Send()
- }
- // DeleteDatasetContentWithContext is the same as DeleteDatasetContent with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteDatasetContent for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DeleteDatasetContentWithContext(ctx aws.Context, input *DeleteDatasetContentInput, opts ...request.Option) (*DeleteDatasetContentOutput, error) {
- req, out := c.DeleteDatasetContentRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteDatastore = "DeleteDatastore"
- // DeleteDatastoreRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDatastore operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteDatastore for more information on using the DeleteDatastore
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteDatastoreRequest method.
- // req, resp := client.DeleteDatastoreRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatastore
- func (c *IoTAnalytics) DeleteDatastoreRequest(input *DeleteDatastoreInput) (req *request.Request, output *DeleteDatastoreOutput) {
- op := &request.Operation{
- Name: opDeleteDatastore,
- HTTPMethod: "DELETE",
- HTTPPath: "/datastores/{datastoreName}",
- }
- if input == nil {
- input = &DeleteDatastoreInput{}
- }
- output = &DeleteDatastoreOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteDatastore API operation for AWS IoT Analytics.
- //
- // Deletes the specified data store.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DeleteDatastore for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatastore
- func (c *IoTAnalytics) DeleteDatastore(input *DeleteDatastoreInput) (*DeleteDatastoreOutput, error) {
- req, out := c.DeleteDatastoreRequest(input)
- return out, req.Send()
- }
- // DeleteDatastoreWithContext is the same as DeleteDatastore with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteDatastore for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DeleteDatastoreWithContext(ctx aws.Context, input *DeleteDatastoreInput, opts ...request.Option) (*DeleteDatastoreOutput, error) {
- req, out := c.DeleteDatastoreRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeletePipeline = "DeletePipeline"
- // DeletePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeletePipeline for more information on using the DeletePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeletePipelineRequest method.
- // req, resp := client.DeletePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeletePipeline
- func (c *IoTAnalytics) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
- op := &request.Operation{
- Name: opDeletePipeline,
- HTTPMethod: "DELETE",
- HTTPPath: "/pipelines/{pipelineName}",
- }
- if input == nil {
- input = &DeletePipelineInput{}
- }
- output = &DeletePipelineOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeletePipeline API operation for AWS IoT Analytics.
- //
- // Deletes the specified pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DeletePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeletePipeline
- func (c *IoTAnalytics) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- return out, req.Send()
- }
- // DeletePipelineWithContext is the same as DeletePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeletePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DeletePipelineWithContext(ctx aws.Context, input *DeletePipelineInput, opts ...request.Option) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeChannel = "DescribeChannel"
- // DescribeChannelRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeChannel operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeChannel for more information on using the DescribeChannel
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeChannelRequest method.
- // req, resp := client.DescribeChannelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeChannel
- func (c *IoTAnalytics) DescribeChannelRequest(input *DescribeChannelInput) (req *request.Request, output *DescribeChannelOutput) {
- op := &request.Operation{
- Name: opDescribeChannel,
- HTTPMethod: "GET",
- HTTPPath: "/channels/{channelName}",
- }
- if input == nil {
- input = &DescribeChannelInput{}
- }
- output = &DescribeChannelOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeChannel API operation for AWS IoT Analytics.
- //
- // Retrieves information about a channel.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DescribeChannel for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeChannel
- func (c *IoTAnalytics) DescribeChannel(input *DescribeChannelInput) (*DescribeChannelOutput, error) {
- req, out := c.DescribeChannelRequest(input)
- return out, req.Send()
- }
- // DescribeChannelWithContext is the same as DescribeChannel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeChannel for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DescribeChannelWithContext(ctx aws.Context, input *DescribeChannelInput, opts ...request.Option) (*DescribeChannelOutput, error) {
- req, out := c.DescribeChannelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeDataset = "DescribeDataset"
- // DescribeDatasetRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDataset operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeDataset for more information on using the DescribeDataset
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeDatasetRequest method.
- // req, resp := client.DescribeDatasetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDataset
- func (c *IoTAnalytics) DescribeDatasetRequest(input *DescribeDatasetInput) (req *request.Request, output *DescribeDatasetOutput) {
- op := &request.Operation{
- Name: opDescribeDataset,
- HTTPMethod: "GET",
- HTTPPath: "/datasets/{datasetName}",
- }
- if input == nil {
- input = &DescribeDatasetInput{}
- }
- output = &DescribeDatasetOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeDataset API operation for AWS IoT Analytics.
- //
- // Retrieves information about a data set.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DescribeDataset for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDataset
- func (c *IoTAnalytics) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) {
- req, out := c.DescribeDatasetRequest(input)
- return out, req.Send()
- }
- // DescribeDatasetWithContext is the same as DescribeDataset with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeDataset for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DescribeDatasetWithContext(ctx aws.Context, input *DescribeDatasetInput, opts ...request.Option) (*DescribeDatasetOutput, error) {
- req, out := c.DescribeDatasetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeDatastore = "DescribeDatastore"
- // DescribeDatastoreRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDatastore operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeDatastore for more information on using the DescribeDatastore
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeDatastoreRequest method.
- // req, resp := client.DescribeDatastoreRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDatastore
- func (c *IoTAnalytics) DescribeDatastoreRequest(input *DescribeDatastoreInput) (req *request.Request, output *DescribeDatastoreOutput) {
- op := &request.Operation{
- Name: opDescribeDatastore,
- HTTPMethod: "GET",
- HTTPPath: "/datastores/{datastoreName}",
- }
- if input == nil {
- input = &DescribeDatastoreInput{}
- }
- output = &DescribeDatastoreOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeDatastore API operation for AWS IoT Analytics.
- //
- // Retrieves information about a data store.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DescribeDatastore for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDatastore
- func (c *IoTAnalytics) DescribeDatastore(input *DescribeDatastoreInput) (*DescribeDatastoreOutput, error) {
- req, out := c.DescribeDatastoreRequest(input)
- return out, req.Send()
- }
- // DescribeDatastoreWithContext is the same as DescribeDatastore with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeDatastore for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DescribeDatastoreWithContext(ctx aws.Context, input *DescribeDatastoreInput, opts ...request.Option) (*DescribeDatastoreOutput, error) {
- req, out := c.DescribeDatastoreRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeLoggingOptions = "DescribeLoggingOptions"
- // DescribeLoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoggingOptions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeLoggingOptions for more information on using the DescribeLoggingOptions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeLoggingOptionsRequest method.
- // req, resp := client.DescribeLoggingOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeLoggingOptions
- func (c *IoTAnalytics) DescribeLoggingOptionsRequest(input *DescribeLoggingOptionsInput) (req *request.Request, output *DescribeLoggingOptionsOutput) {
- op := &request.Operation{
- Name: opDescribeLoggingOptions,
- HTTPMethod: "GET",
- HTTPPath: "/logging",
- }
- if input == nil {
- input = &DescribeLoggingOptionsInput{}
- }
- output = &DescribeLoggingOptionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeLoggingOptions API operation for AWS IoT Analytics.
- //
- // Retrieves the current settings of the AWS IoT Analytics logging options.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DescribeLoggingOptions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeLoggingOptions
- func (c *IoTAnalytics) DescribeLoggingOptions(input *DescribeLoggingOptionsInput) (*DescribeLoggingOptionsOutput, error) {
- req, out := c.DescribeLoggingOptionsRequest(input)
- return out, req.Send()
- }
- // DescribeLoggingOptionsWithContext is the same as DescribeLoggingOptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeLoggingOptions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DescribeLoggingOptionsWithContext(ctx aws.Context, input *DescribeLoggingOptionsInput, opts ...request.Option) (*DescribeLoggingOptionsOutput, error) {
- req, out := c.DescribeLoggingOptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribePipeline = "DescribePipeline"
- // DescribePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DescribePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribePipeline for more information on using the DescribePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribePipelineRequest method.
- // req, resp := client.DescribePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribePipeline
- func (c *IoTAnalytics) DescribePipelineRequest(input *DescribePipelineInput) (req *request.Request, output *DescribePipelineOutput) {
- op := &request.Operation{
- Name: opDescribePipeline,
- HTTPMethod: "GET",
- HTTPPath: "/pipelines/{pipelineName}",
- }
- if input == nil {
- input = &DescribePipelineInput{}
- }
- output = &DescribePipelineOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribePipeline API operation for AWS IoT Analytics.
- //
- // Retrieves information about a pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation DescribePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribePipeline
- func (c *IoTAnalytics) DescribePipeline(input *DescribePipelineInput) (*DescribePipelineOutput, error) {
- req, out := c.DescribePipelineRequest(input)
- return out, req.Send()
- }
- // DescribePipelineWithContext is the same as DescribePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) DescribePipelineWithContext(ctx aws.Context, input *DescribePipelineInput, opts ...request.Option) (*DescribePipelineOutput, error) {
- req, out := c.DescribePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetDatasetContent = "GetDatasetContent"
- // GetDatasetContentRequest generates a "aws/request.Request" representing the
- // client's request for the GetDatasetContent operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetDatasetContent for more information on using the GetDatasetContent
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetDatasetContentRequest method.
- // req, resp := client.GetDatasetContentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/GetDatasetContent
- func (c *IoTAnalytics) GetDatasetContentRequest(input *GetDatasetContentInput) (req *request.Request, output *GetDatasetContentOutput) {
- op := &request.Operation{
- Name: opGetDatasetContent,
- HTTPMethod: "GET",
- HTTPPath: "/datasets/{datasetName}/content",
- }
- if input == nil {
- input = &GetDatasetContentInput{}
- }
- output = &GetDatasetContentOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetDatasetContent API operation for AWS IoT Analytics.
- //
- // Retrieves the contents of a data set as pre-signed URIs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation GetDatasetContent for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/GetDatasetContent
- func (c *IoTAnalytics) GetDatasetContent(input *GetDatasetContentInput) (*GetDatasetContentOutput, error) {
- req, out := c.GetDatasetContentRequest(input)
- return out, req.Send()
- }
- // GetDatasetContentWithContext is the same as GetDatasetContent with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetDatasetContent for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) GetDatasetContentWithContext(ctx aws.Context, input *GetDatasetContentInput, opts ...request.Option) (*GetDatasetContentOutput, error) {
- req, out := c.GetDatasetContentRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListChannels = "ListChannels"
- // ListChannelsRequest generates a "aws/request.Request" representing the
- // client's request for the ListChannels operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListChannels for more information on using the ListChannels
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListChannelsRequest method.
- // req, resp := client.ListChannelsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListChannels
- func (c *IoTAnalytics) ListChannelsRequest(input *ListChannelsInput) (req *request.Request, output *ListChannelsOutput) {
- op := &request.Operation{
- Name: opListChannels,
- HTTPMethod: "GET",
- HTTPPath: "/channels",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListChannelsInput{}
- }
- output = &ListChannelsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListChannels API operation for AWS IoT Analytics.
- //
- // Retrieves a list of channels.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation ListChannels for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListChannels
- func (c *IoTAnalytics) ListChannels(input *ListChannelsInput) (*ListChannelsOutput, error) {
- req, out := c.ListChannelsRequest(input)
- return out, req.Send()
- }
- // ListChannelsWithContext is the same as ListChannels with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListChannels for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListChannelsWithContext(ctx aws.Context, input *ListChannelsInput, opts ...request.Option) (*ListChannelsOutput, error) {
- req, out := c.ListChannelsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListChannelsPages iterates over the pages of a ListChannels operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListChannels method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListChannels operation.
- // pageNum := 0
- // err := client.ListChannelsPages(params,
- // func(page *ListChannelsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *IoTAnalytics) ListChannelsPages(input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool) error {
- return c.ListChannelsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListChannelsPagesWithContext same as ListChannelsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListChannelsPagesWithContext(ctx aws.Context, input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListChannelsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListChannelsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListChannelsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListDatasetContents = "ListDatasetContents"
- // ListDatasetContentsRequest generates a "aws/request.Request" representing the
- // client's request for the ListDatasetContents operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListDatasetContents for more information on using the ListDatasetContents
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListDatasetContentsRequest method.
- // req, resp := client.ListDatasetContentsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasetContents
- func (c *IoTAnalytics) ListDatasetContentsRequest(input *ListDatasetContentsInput) (req *request.Request, output *ListDatasetContentsOutput) {
- op := &request.Operation{
- Name: opListDatasetContents,
- HTTPMethod: "GET",
- HTTPPath: "/datasets/{datasetName}/contents",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDatasetContentsInput{}
- }
- output = &ListDatasetContentsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListDatasetContents API operation for AWS IoT Analytics.
- //
- // Lists information about data set contents that have been created.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation ListDatasetContents for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasetContents
- func (c *IoTAnalytics) ListDatasetContents(input *ListDatasetContentsInput) (*ListDatasetContentsOutput, error) {
- req, out := c.ListDatasetContentsRequest(input)
- return out, req.Send()
- }
- // ListDatasetContentsWithContext is the same as ListDatasetContents with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListDatasetContents for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListDatasetContentsWithContext(ctx aws.Context, input *ListDatasetContentsInput, opts ...request.Option) (*ListDatasetContentsOutput, error) {
- req, out := c.ListDatasetContentsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListDatasetContentsPages iterates over the pages of a ListDatasetContents operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDatasetContents method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDatasetContents operation.
- // pageNum := 0
- // err := client.ListDatasetContentsPages(params,
- // func(page *ListDatasetContentsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *IoTAnalytics) ListDatasetContentsPages(input *ListDatasetContentsInput, fn func(*ListDatasetContentsOutput, bool) bool) error {
- return c.ListDatasetContentsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListDatasetContentsPagesWithContext same as ListDatasetContentsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListDatasetContentsPagesWithContext(ctx aws.Context, input *ListDatasetContentsInput, fn func(*ListDatasetContentsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListDatasetContentsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListDatasetContentsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListDatasetContentsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListDatasets = "ListDatasets"
- // ListDatasetsRequest generates a "aws/request.Request" representing the
- // client's request for the ListDatasets operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListDatasets for more information on using the ListDatasets
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListDatasetsRequest method.
- // req, resp := client.ListDatasetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasets
- func (c *IoTAnalytics) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) {
- op := &request.Operation{
- Name: opListDatasets,
- HTTPMethod: "GET",
- HTTPPath: "/datasets",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDatasetsInput{}
- }
- output = &ListDatasetsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListDatasets API operation for AWS IoT Analytics.
- //
- // Retrieves information about data sets.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation ListDatasets for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasets
- func (c *IoTAnalytics) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) {
- req, out := c.ListDatasetsRequest(input)
- return out, req.Send()
- }
- // ListDatasetsWithContext is the same as ListDatasets with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListDatasets for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListDatasetsWithContext(ctx aws.Context, input *ListDatasetsInput, opts ...request.Option) (*ListDatasetsOutput, error) {
- req, out := c.ListDatasetsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListDatasetsPages iterates over the pages of a ListDatasets operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDatasets method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDatasets operation.
- // pageNum := 0
- // err := client.ListDatasetsPages(params,
- // func(page *ListDatasetsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *IoTAnalytics) ListDatasetsPages(input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool) error {
- return c.ListDatasetsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListDatasetsPagesWithContext same as ListDatasetsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListDatasetsPagesWithContext(ctx aws.Context, input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListDatasetsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListDatasetsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListDatasetsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListDatastores = "ListDatastores"
- // ListDatastoresRequest generates a "aws/request.Request" representing the
- // client's request for the ListDatastores operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListDatastores for more information on using the ListDatastores
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListDatastoresRequest method.
- // req, resp := client.ListDatastoresRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatastores
- func (c *IoTAnalytics) ListDatastoresRequest(input *ListDatastoresInput) (req *request.Request, output *ListDatastoresOutput) {
- op := &request.Operation{
- Name: opListDatastores,
- HTTPMethod: "GET",
- HTTPPath: "/datastores",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDatastoresInput{}
- }
- output = &ListDatastoresOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListDatastores API operation for AWS IoT Analytics.
- //
- // Retrieves a list of data stores.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation ListDatastores for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatastores
- func (c *IoTAnalytics) ListDatastores(input *ListDatastoresInput) (*ListDatastoresOutput, error) {
- req, out := c.ListDatastoresRequest(input)
- return out, req.Send()
- }
- // ListDatastoresWithContext is the same as ListDatastores with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListDatastores for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListDatastoresWithContext(ctx aws.Context, input *ListDatastoresInput, opts ...request.Option) (*ListDatastoresOutput, error) {
- req, out := c.ListDatastoresRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListDatastoresPages iterates over the pages of a ListDatastores operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDatastores method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDatastores operation.
- // pageNum := 0
- // err := client.ListDatastoresPages(params,
- // func(page *ListDatastoresOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *IoTAnalytics) ListDatastoresPages(input *ListDatastoresInput, fn func(*ListDatastoresOutput, bool) bool) error {
- return c.ListDatastoresPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListDatastoresPagesWithContext same as ListDatastoresPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListDatastoresPagesWithContext(ctx aws.Context, input *ListDatastoresInput, fn func(*ListDatastoresOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListDatastoresInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListDatastoresRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListDatastoresOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListPipelines = "ListPipelines"
- // ListPipelinesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPipelines operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListPipelines for more information on using the ListPipelines
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListPipelinesRequest method.
- // req, resp := client.ListPipelinesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListPipelines
- func (c *IoTAnalytics) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
- op := &request.Operation{
- Name: opListPipelines,
- HTTPMethod: "GET",
- HTTPPath: "/pipelines",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListPipelinesInput{}
- }
- output = &ListPipelinesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPipelines API operation for AWS IoT Analytics.
- //
- // Retrieves a list of pipelines.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation ListPipelines for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListPipelines
- func (c *IoTAnalytics) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- return out, req.Send()
- }
- // ListPipelinesWithContext is the same as ListPipelines with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPipelines for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListPipelinesWithContext(ctx aws.Context, input *ListPipelinesInput, opts ...request.Option) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListPipelinesPages iterates over the pages of a ListPipelines operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListPipelines method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListPipelines operation.
- // pageNum := 0
- // err := client.ListPipelinesPages(params,
- // func(page *ListPipelinesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *IoTAnalytics) ListPipelinesPages(input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool) error {
- return c.ListPipelinesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListPipelinesPagesWithContext same as ListPipelinesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListPipelinesPagesWithContext(ctx aws.Context, input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListPipelinesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListPipelinesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListPipelinesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListTagsForResource = "ListTagsForResource"
- // ListTagsForResourceRequest generates a "aws/request.Request" representing the
- // client's request for the ListTagsForResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListTagsForResource for more information on using the ListTagsForResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListTagsForResourceRequest method.
- // req, resp := client.ListTagsForResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListTagsForResource
- func (c *IoTAnalytics) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
- op := &request.Operation{
- Name: opListTagsForResource,
- HTTPMethod: "GET",
- HTTPPath: "/tags",
- }
- if input == nil {
- input = &ListTagsForResourceInput{}
- }
- output = &ListTagsForResourceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTagsForResource API operation for AWS IoT Analytics.
- //
- // Lists the tags (metadata) which you have assigned to the resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation ListTagsForResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListTagsForResource
- func (c *IoTAnalytics) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- return out, req.Send()
- }
- // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTagsForResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutLoggingOptions = "PutLoggingOptions"
- // PutLoggingOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the PutLoggingOptions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutLoggingOptions for more information on using the PutLoggingOptions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutLoggingOptionsRequest method.
- // req, resp := client.PutLoggingOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/PutLoggingOptions
- func (c *IoTAnalytics) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (req *request.Request, output *PutLoggingOptionsOutput) {
- op := &request.Operation{
- Name: opPutLoggingOptions,
- HTTPMethod: "PUT",
- HTTPPath: "/logging",
- }
- if input == nil {
- input = &PutLoggingOptionsInput{}
- }
- output = &PutLoggingOptionsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // PutLoggingOptions API operation for AWS IoT Analytics.
- //
- // Sets or updates the AWS IoT Analytics logging options.
- //
- // Note that if you update the value of any loggingOptions field, it takes up
- // to one minute for the change to take effect. Also, if you change the policy
- // attached to the role you specified in the roleArn field (for example, to
- // correct an invalid policy) it takes up to 5 minutes for that change to take
- // effect.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation PutLoggingOptions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/PutLoggingOptions
- func (c *IoTAnalytics) PutLoggingOptions(input *PutLoggingOptionsInput) (*PutLoggingOptionsOutput, error) {
- req, out := c.PutLoggingOptionsRequest(input)
- return out, req.Send()
- }
- // PutLoggingOptionsWithContext is the same as PutLoggingOptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutLoggingOptions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) PutLoggingOptionsWithContext(ctx aws.Context, input *PutLoggingOptionsInput, opts ...request.Option) (*PutLoggingOptionsOutput, error) {
- req, out := c.PutLoggingOptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRunPipelineActivity = "RunPipelineActivity"
- // RunPipelineActivityRequest generates a "aws/request.Request" representing the
- // client's request for the RunPipelineActivity operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RunPipelineActivity for more information on using the RunPipelineActivity
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RunPipelineActivityRequest method.
- // req, resp := client.RunPipelineActivityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/RunPipelineActivity
- func (c *IoTAnalytics) RunPipelineActivityRequest(input *RunPipelineActivityInput) (req *request.Request, output *RunPipelineActivityOutput) {
- op := &request.Operation{
- Name: opRunPipelineActivity,
- HTTPMethod: "POST",
- HTTPPath: "/pipelineactivities/run",
- }
- if input == nil {
- input = &RunPipelineActivityInput{}
- }
- output = &RunPipelineActivityOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RunPipelineActivity API operation for AWS IoT Analytics.
- //
- // Simulates the results of running a pipeline activity on a message payload.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation RunPipelineActivity for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/RunPipelineActivity
- func (c *IoTAnalytics) RunPipelineActivity(input *RunPipelineActivityInput) (*RunPipelineActivityOutput, error) {
- req, out := c.RunPipelineActivityRequest(input)
- return out, req.Send()
- }
- // RunPipelineActivityWithContext is the same as RunPipelineActivity with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RunPipelineActivity for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) RunPipelineActivityWithContext(ctx aws.Context, input *RunPipelineActivityInput, opts ...request.Option) (*RunPipelineActivityOutput, error) {
- req, out := c.RunPipelineActivityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSampleChannelData = "SampleChannelData"
- // SampleChannelDataRequest generates a "aws/request.Request" representing the
- // client's request for the SampleChannelData operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SampleChannelData for more information on using the SampleChannelData
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SampleChannelDataRequest method.
- // req, resp := client.SampleChannelDataRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/SampleChannelData
- func (c *IoTAnalytics) SampleChannelDataRequest(input *SampleChannelDataInput) (req *request.Request, output *SampleChannelDataOutput) {
- op := &request.Operation{
- Name: opSampleChannelData,
- HTTPMethod: "GET",
- HTTPPath: "/channels/{channelName}/sample",
- }
- if input == nil {
- input = &SampleChannelDataInput{}
- }
- output = &SampleChannelDataOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // SampleChannelData API operation for AWS IoT Analytics.
- //
- // Retrieves a sample of messages from the specified channel ingested during
- // the specified timeframe. Up to 10 messages can be retrieved.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation SampleChannelData for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/SampleChannelData
- func (c *IoTAnalytics) SampleChannelData(input *SampleChannelDataInput) (*SampleChannelDataOutput, error) {
- req, out := c.SampleChannelDataRequest(input)
- return out, req.Send()
- }
- // SampleChannelDataWithContext is the same as SampleChannelData with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SampleChannelData for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) SampleChannelDataWithContext(ctx aws.Context, input *SampleChannelDataInput, opts ...request.Option) (*SampleChannelDataOutput, error) {
- req, out := c.SampleChannelDataRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartPipelineReprocessing = "StartPipelineReprocessing"
- // StartPipelineReprocessingRequest generates a "aws/request.Request" representing the
- // client's request for the StartPipelineReprocessing operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartPipelineReprocessing for more information on using the StartPipelineReprocessing
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartPipelineReprocessingRequest method.
- // req, resp := client.StartPipelineReprocessingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/StartPipelineReprocessing
- func (c *IoTAnalytics) StartPipelineReprocessingRequest(input *StartPipelineReprocessingInput) (req *request.Request, output *StartPipelineReprocessingOutput) {
- op := &request.Operation{
- Name: opStartPipelineReprocessing,
- HTTPMethod: "POST",
- HTTPPath: "/pipelines/{pipelineName}/reprocessing",
- }
- if input == nil {
- input = &StartPipelineReprocessingInput{}
- }
- output = &StartPipelineReprocessingOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StartPipelineReprocessing API operation for AWS IoT Analytics.
- //
- // Starts the reprocessing of raw message data through the pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation StartPipelineReprocessing for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // A resource with the same name already exists.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/StartPipelineReprocessing
- func (c *IoTAnalytics) StartPipelineReprocessing(input *StartPipelineReprocessingInput) (*StartPipelineReprocessingOutput, error) {
- req, out := c.StartPipelineReprocessingRequest(input)
- return out, req.Send()
- }
- // StartPipelineReprocessingWithContext is the same as StartPipelineReprocessing with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartPipelineReprocessing for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) StartPipelineReprocessingWithContext(ctx aws.Context, input *StartPipelineReprocessingInput, opts ...request.Option) (*StartPipelineReprocessingOutput, error) {
- req, out := c.StartPipelineReprocessingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTagResource = "TagResource"
- // TagResourceRequest generates a "aws/request.Request" representing the
- // client's request for the TagResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See TagResource for more information on using the TagResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the TagResourceRequest method.
- // req, resp := client.TagResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/TagResource
- func (c *IoTAnalytics) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
- op := &request.Operation{
- Name: opTagResource,
- HTTPMethod: "POST",
- HTTPPath: "/tags",
- }
- if input == nil {
- input = &TagResourceInput{}
- }
- output = &TagResourceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // TagResource API operation for AWS IoT Analytics.
- //
- // Adds to or modifies the tags of the given resource. Tags are metadata which
- // can be used to manage a resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation TagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/TagResource
- func (c *IoTAnalytics) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
- return out, req.Send()
- }
- // TagResourceWithContext is the same as TagResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TagResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUntagResource = "UntagResource"
- // UntagResourceRequest generates a "aws/request.Request" representing the
- // client's request for the UntagResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UntagResource for more information on using the UntagResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UntagResourceRequest method.
- // req, resp := client.UntagResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UntagResource
- func (c *IoTAnalytics) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
- op := &request.Operation{
- Name: opUntagResource,
- HTTPMethod: "DELETE",
- HTTPPath: "/tags",
- }
- if input == nil {
- input = &UntagResourceInput{}
- }
- output = &UntagResourceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UntagResource API operation for AWS IoT Analytics.
- //
- // Removes the given tags (metadata) from the resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation UntagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UntagResource
- func (c *IoTAnalytics) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
- return out, req.Send()
- }
- // UntagResourceWithContext is the same as UntagResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UntagResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateChannel = "UpdateChannel"
- // UpdateChannelRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateChannel operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateChannel for more information on using the UpdateChannel
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateChannelRequest method.
- // req, resp := client.UpdateChannelRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateChannel
- func (c *IoTAnalytics) UpdateChannelRequest(input *UpdateChannelInput) (req *request.Request, output *UpdateChannelOutput) {
- op := &request.Operation{
- Name: opUpdateChannel,
- HTTPMethod: "PUT",
- HTTPPath: "/channels/{channelName}",
- }
- if input == nil {
- input = &UpdateChannelInput{}
- }
- output = &UpdateChannelOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateChannel API operation for AWS IoT Analytics.
- //
- // Updates the settings of a channel.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation UpdateChannel for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateChannel
- func (c *IoTAnalytics) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) {
- req, out := c.UpdateChannelRequest(input)
- return out, req.Send()
- }
- // UpdateChannelWithContext is the same as UpdateChannel with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateChannel for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) UpdateChannelWithContext(ctx aws.Context, input *UpdateChannelInput, opts ...request.Option) (*UpdateChannelOutput, error) {
- req, out := c.UpdateChannelRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateDataset = "UpdateDataset"
- // UpdateDatasetRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDataset operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateDataset for more information on using the UpdateDataset
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateDatasetRequest method.
- // req, resp := client.UpdateDatasetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDataset
- func (c *IoTAnalytics) UpdateDatasetRequest(input *UpdateDatasetInput) (req *request.Request, output *UpdateDatasetOutput) {
- op := &request.Operation{
- Name: opUpdateDataset,
- HTTPMethod: "PUT",
- HTTPPath: "/datasets/{datasetName}",
- }
- if input == nil {
- input = &UpdateDatasetInput{}
- }
- output = &UpdateDatasetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateDataset API operation for AWS IoT Analytics.
- //
- // Updates the settings of a data set.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation UpdateDataset for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDataset
- func (c *IoTAnalytics) UpdateDataset(input *UpdateDatasetInput) (*UpdateDatasetOutput, error) {
- req, out := c.UpdateDatasetRequest(input)
- return out, req.Send()
- }
- // UpdateDatasetWithContext is the same as UpdateDataset with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateDataset for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) UpdateDatasetWithContext(ctx aws.Context, input *UpdateDatasetInput, opts ...request.Option) (*UpdateDatasetOutput, error) {
- req, out := c.UpdateDatasetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateDatastore = "UpdateDatastore"
- // UpdateDatastoreRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDatastore operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateDatastore for more information on using the UpdateDatastore
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateDatastoreRequest method.
- // req, resp := client.UpdateDatastoreRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDatastore
- func (c *IoTAnalytics) UpdateDatastoreRequest(input *UpdateDatastoreInput) (req *request.Request, output *UpdateDatastoreOutput) {
- op := &request.Operation{
- Name: opUpdateDatastore,
- HTTPMethod: "PUT",
- HTTPPath: "/datastores/{datastoreName}",
- }
- if input == nil {
- input = &UpdateDatastoreInput{}
- }
- output = &UpdateDatastoreOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateDatastore API operation for AWS IoT Analytics.
- //
- // Updates the settings of a data store.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation UpdateDatastore for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDatastore
- func (c *IoTAnalytics) UpdateDatastore(input *UpdateDatastoreInput) (*UpdateDatastoreOutput, error) {
- req, out := c.UpdateDatastoreRequest(input)
- return out, req.Send()
- }
- // UpdateDatastoreWithContext is the same as UpdateDatastore with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateDatastore for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) UpdateDatastoreWithContext(ctx aws.Context, input *UpdateDatastoreInput, opts ...request.Option) (*UpdateDatastoreOutput, error) {
- req, out := c.UpdateDatastoreRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdatePipeline = "UpdatePipeline"
- // UpdatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdatePipeline for more information on using the UpdatePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdatePipelineRequest method.
- // req, resp := client.UpdatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdatePipeline
- func (c *IoTAnalytics) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
- op := &request.Operation{
- Name: opUpdatePipeline,
- HTTPMethod: "PUT",
- HTTPPath: "/pipelines/{pipelineName}",
- }
- if input == nil {
- input = &UpdatePipelineInput{}
- }
- output = &UpdatePipelineOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdatePipeline API operation for AWS IoT Analytics.
- //
- // Updates the settings of a pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS IoT Analytics's
- // API operation UpdatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource with the specified name could not be found.
- //
- // * ErrCodeInternalFailureException "InternalFailureException"
- // There was an internal failure.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeThrottlingException "ThrottlingException"
- // The request was denied due to request throttling.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The command caused an internal limit to be exceeded.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdatePipeline
- func (c *IoTAnalytics) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
- req, out := c.UpdatePipelineRequest(input)
- return out, req.Send()
- }
- // UpdatePipelineWithContext is the same as UpdatePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdatePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *IoTAnalytics) UpdatePipelineWithContext(ctx aws.Context, input *UpdatePipelineInput, opts ...request.Option) (*UpdatePipelineOutput, error) {
- req, out := c.UpdatePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // An activity that adds other attributes based on existing attributes in the
- // message.
- type AddAttributesActivity struct {
- _ struct{} `type:"structure"`
- // A list of 1-50 "AttributeNameMapping" objects that map an existing attribute
- // to a new attribute.
- //
- // The existing attributes remain in the message, so if you want to remove the
- // originals, use "RemoveAttributeActivity".
- //
- // Attributes is a required field
- Attributes map[string]*string `locationName:"attributes" min:"1" type:"map" required:"true"`
- // The name of the 'addAttributes' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s AddAttributesActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddAttributesActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddAttributesActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddAttributesActivity"}
- if s.Attributes == nil {
- invalidParams.Add(request.NewErrParamRequired("Attributes"))
- }
- if s.Attributes != nil && len(s.Attributes) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Attributes", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributes sets the Attributes field's value.
- func (s *AddAttributesActivity) SetAttributes(v map[string]*string) *AddAttributesActivity {
- s.Attributes = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *AddAttributesActivity) SetName(v string) *AddAttributesActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *AddAttributesActivity) SetNext(v string) *AddAttributesActivity {
- s.Next = &v
- return s
- }
- // Contains informations about errors.
- type BatchPutMessageErrorEntry struct {
- _ struct{} `type:"structure"`
- // The code associated with the error.
- ErrorCode *string `locationName:"errorCode" type:"string"`
- // The message associated with the error.
- ErrorMessage *string `locationName:"errorMessage" type:"string"`
- // The ID of the message that caused the error. (See the value corresponding
- // to the "messageId" key in the message object.)
- MessageId *string `locationName:"messageId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s BatchPutMessageErrorEntry) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchPutMessageErrorEntry) GoString() string {
- return s.String()
- }
- // SetErrorCode sets the ErrorCode field's value.
- func (s *BatchPutMessageErrorEntry) SetErrorCode(v string) *BatchPutMessageErrorEntry {
- s.ErrorCode = &v
- return s
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *BatchPutMessageErrorEntry) SetErrorMessage(v string) *BatchPutMessageErrorEntry {
- s.ErrorMessage = &v
- return s
- }
- // SetMessageId sets the MessageId field's value.
- func (s *BatchPutMessageErrorEntry) SetMessageId(v string) *BatchPutMessageErrorEntry {
- s.MessageId = &v
- return s
- }
- type BatchPutMessageInput struct {
- _ struct{} `type:"structure"`
- // The name of the channel where the messages are sent.
- //
- // ChannelName is a required field
- ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"`
- // The list of messages to be sent. Each message has format: '{ "messageId":
- // "string", "payload": "string"}'.
- //
- // Note that the field names of message payloads (data) that you send to AWS
- // IoT Analytics:
- //
- // * Must contain only alphanumeric characters and undescores (_); no other
- // special characters are allowed.
- //
- // * Must begin with an alphabetic character or single underscore (_).
- //
- // * Cannot contain hyphens (-).
- //
- // * In regular expression terms: "^[A-Za-z_]([A-Za-z0-9]*|[A-Za-z0-9][A-Za-z0-9_]*)$".
- //
- //
- // * Cannot be greater than 255 characters.
- //
- // * Are case-insensitive. (Fields named "foo" and "FOO" in the same payload
- // are considered duplicates.)
- //
- // For example, {"temp_01": 29} or {"_temp_01": 29} are valid, but {"temp-01":
- // 29}, {"01_temp": 29} or {"__temp_01": 29} are invalid in message payloads.
- //
- // Messages is a required field
- Messages []*Message `locationName:"messages" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchPutMessageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchPutMessageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchPutMessageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchPutMessageInput"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if s.Messages == nil {
- invalidParams.Add(request.NewErrParamRequired("Messages"))
- }
- if s.Messages != nil {
- for i, v := range s.Messages {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Messages", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *BatchPutMessageInput) SetChannelName(v string) *BatchPutMessageInput {
- s.ChannelName = &v
- return s
- }
- // SetMessages sets the Messages field's value.
- func (s *BatchPutMessageInput) SetMessages(v []*Message) *BatchPutMessageInput {
- s.Messages = v
- return s
- }
- type BatchPutMessageOutput struct {
- _ struct{} `type:"structure"`
- // A list of any errors encountered when sending the messages to the channel.
- BatchPutMessageErrorEntries []*BatchPutMessageErrorEntry `locationName:"batchPutMessageErrorEntries" type:"list"`
- }
- // String returns the string representation
- func (s BatchPutMessageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchPutMessageOutput) GoString() string {
- return s.String()
- }
- // SetBatchPutMessageErrorEntries sets the BatchPutMessageErrorEntries field's value.
- func (s *BatchPutMessageOutput) SetBatchPutMessageErrorEntries(v []*BatchPutMessageErrorEntry) *BatchPutMessageOutput {
- s.BatchPutMessageErrorEntries = v
- return s
- }
- type CancelPipelineReprocessingInput struct {
- _ struct{} `type:"structure"`
- // The name of pipeline for which data reprocessing is canceled.
- //
- // PipelineName is a required field
- PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The ID of the reprocessing task (returned by "StartPipelineReprocessing").
- //
- // ReprocessingId is a required field
- ReprocessingId *string `location:"uri" locationName:"reprocessingId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelPipelineReprocessingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelPipelineReprocessingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelPipelineReprocessingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelPipelineReprocessingInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.ReprocessingId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReprocessingId"))
- }
- if s.ReprocessingId != nil && len(*s.ReprocessingId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ReprocessingId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *CancelPipelineReprocessingInput) SetPipelineName(v string) *CancelPipelineReprocessingInput {
- s.PipelineName = &v
- return s
- }
- // SetReprocessingId sets the ReprocessingId field's value.
- func (s *CancelPipelineReprocessingInput) SetReprocessingId(v string) *CancelPipelineReprocessingInput {
- s.ReprocessingId = &v
- return s
- }
- type CancelPipelineReprocessingOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CancelPipelineReprocessingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelPipelineReprocessingOutput) GoString() string {
- return s.String()
- }
- // A collection of data from an MQTT topic. Channels archive the raw, unprocessed
- // messages before publishing the data to a pipeline.
- type Channel struct {
- _ struct{} `type:"structure"`
- // The ARN of the channel.
- Arn *string `locationName:"arn" type:"string"`
- // When the channel was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // When the channel was last updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The name of the channel.
- Name *string `locationName:"name" min:"1" type:"string"`
- // How long, in days, message data is kept for the channel.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- // The status of the channel.
- Status *string `locationName:"status" type:"string" enum:"ChannelStatus"`
- }
- // String returns the string representation
- func (s Channel) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Channel) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *Channel) SetArn(v string) *Channel {
- s.Arn = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *Channel) SetCreationTime(v time.Time) *Channel {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *Channel) SetLastUpdateTime(v time.Time) *Channel {
- s.LastUpdateTime = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Channel) SetName(v string) *Channel {
- s.Name = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *Channel) SetRetentionPeriod(v *RetentionPeriod) *Channel {
- s.RetentionPeriod = v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Channel) SetStatus(v string) *Channel {
- s.Status = &v
- return s
- }
- // The activity that determines the source of the messages to be processed.
- type ChannelActivity struct {
- _ struct{} `type:"structure"`
- // The name of the channel from which the messages are processed.
- //
- // ChannelName is a required field
- ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"`
- // The name of the 'channel' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ChannelActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChannelActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ChannelActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ChannelActivity"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *ChannelActivity) SetChannelName(v string) *ChannelActivity {
- s.ChannelName = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ChannelActivity) SetName(v string) *ChannelActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *ChannelActivity) SetNext(v string) *ChannelActivity {
- s.Next = &v
- return s
- }
- // Statistics information about the channel.
- type ChannelStatistics struct {
- _ struct{} `type:"structure"`
- // The estimated size of the channel.
- Size *EstimatedResourceSize `locationName:"size" type:"structure"`
- }
- // String returns the string representation
- func (s ChannelStatistics) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChannelStatistics) GoString() string {
- return s.String()
- }
- // SetSize sets the Size field's value.
- func (s *ChannelStatistics) SetSize(v *EstimatedResourceSize) *ChannelStatistics {
- s.Size = v
- return s
- }
- // A summary of information about a channel.
- type ChannelSummary struct {
- _ struct{} `type:"structure"`
- // The name of the channel.
- ChannelName *string `locationName:"channelName" min:"1" type:"string"`
- // When the channel was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The last time the channel was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The status of the channel.
- Status *string `locationName:"status" type:"string" enum:"ChannelStatus"`
- }
- // String returns the string representation
- func (s ChannelSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChannelSummary) GoString() string {
- return s.String()
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *ChannelSummary) SetChannelName(v string) *ChannelSummary {
- s.ChannelName = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *ChannelSummary) SetCreationTime(v time.Time) *ChannelSummary {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *ChannelSummary) SetLastUpdateTime(v time.Time) *ChannelSummary {
- s.LastUpdateTime = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ChannelSummary) SetStatus(v string) *ChannelSummary {
- s.Status = &v
- return s
- }
- // Information needed to run the "containerAction" to produce data set contents.
- type ContainerDatasetAction struct {
- _ struct{} `type:"structure"`
- // The ARN of the role which gives permission to the system to access needed
- // resources in order to run the "containerAction". This includes, at minimum,
- // permission to retrieve the data set contents which are the input to the containerized
- // application.
- //
- // ExecutionRoleArn is a required field
- ExecutionRoleArn *string `locationName:"executionRoleArn" min:"20" type:"string" required:"true"`
- // The ARN of the Docker container stored in your account. The Docker container
- // contains an application and needed support libraries and is used to generate
- // data set contents.
- //
- // Image is a required field
- Image *string `locationName:"image" type:"string" required:"true"`
- // Configuration of the resource which executes the "containerAction".
- //
- // ResourceConfiguration is a required field
- ResourceConfiguration *ResourceConfiguration `locationName:"resourceConfiguration" type:"structure" required:"true"`
- // The values of variables used within the context of the execution of the containerized
- // application (basically, parameters passed to the application). Each variable
- // must have a name and a value given by one of "stringValue", "datasetContentVersionValue",
- // or "outputFileUriValue".
- Variables []*Variable `locationName:"variables" type:"list"`
- }
- // String returns the string representation
- func (s ContainerDatasetAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ContainerDatasetAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ContainerDatasetAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ContainerDatasetAction"}
- if s.ExecutionRoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn"))
- }
- if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20))
- }
- if s.Image == nil {
- invalidParams.Add(request.NewErrParamRequired("Image"))
- }
- if s.ResourceConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceConfiguration"))
- }
- if s.ResourceConfiguration != nil {
- if err := s.ResourceConfiguration.Validate(); err != nil {
- invalidParams.AddNested("ResourceConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if s.Variables != nil {
- for i, v := range s.Variables {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Variables", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExecutionRoleArn sets the ExecutionRoleArn field's value.
- func (s *ContainerDatasetAction) SetExecutionRoleArn(v string) *ContainerDatasetAction {
- s.ExecutionRoleArn = &v
- return s
- }
- // SetImage sets the Image field's value.
- func (s *ContainerDatasetAction) SetImage(v string) *ContainerDatasetAction {
- s.Image = &v
- return s
- }
- // SetResourceConfiguration sets the ResourceConfiguration field's value.
- func (s *ContainerDatasetAction) SetResourceConfiguration(v *ResourceConfiguration) *ContainerDatasetAction {
- s.ResourceConfiguration = v
- return s
- }
- // SetVariables sets the Variables field's value.
- func (s *ContainerDatasetAction) SetVariables(v []*Variable) *ContainerDatasetAction {
- s.Variables = v
- return s
- }
- type CreateChannelInput struct {
- _ struct{} `type:"structure"`
- // The name of the channel.
- //
- // ChannelName is a required field
- ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"`
- // How long, in days, message data is kept for the channel.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- // Metadata which can be used to manage the channel.
- Tags []*Tag `locationName:"tags" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s CreateChannelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateChannelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateChannelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateChannelInput"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.RetentionPeriod != nil {
- if err := s.RetentionPeriod.Validate(); err != nil {
- invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *CreateChannelInput) SetChannelName(v string) *CreateChannelInput {
- s.ChannelName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *CreateChannelInput) SetRetentionPeriod(v *RetentionPeriod) *CreateChannelInput {
- s.RetentionPeriod = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateChannelInput) SetTags(v []*Tag) *CreateChannelInput {
- s.Tags = v
- return s
- }
- type CreateChannelOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the channel.
- ChannelArn *string `locationName:"channelArn" type:"string"`
- // The name of the channel.
- ChannelName *string `locationName:"channelName" min:"1" type:"string"`
- // How long, in days, message data is kept for the channel.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- }
- // String returns the string representation
- func (s CreateChannelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateChannelOutput) GoString() string {
- return s.String()
- }
- // SetChannelArn sets the ChannelArn field's value.
- func (s *CreateChannelOutput) SetChannelArn(v string) *CreateChannelOutput {
- s.ChannelArn = &v
- return s
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *CreateChannelOutput) SetChannelName(v string) *CreateChannelOutput {
- s.ChannelName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *CreateChannelOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateChannelOutput {
- s.RetentionPeriod = v
- return s
- }
- type CreateDatasetContentInput struct {
- _ struct{} `type:"structure"`
- // The name of the data set.
- //
- // DatasetName is a required field
- DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateDatasetContentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDatasetContentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDatasetContentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDatasetContentInput"}
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *CreateDatasetContentInput) SetDatasetName(v string) *CreateDatasetContentInput {
- s.DatasetName = &v
- return s
- }
- type CreateDatasetContentOutput struct {
- _ struct{} `type:"structure"`
- // The version ID of the data set contents which are being created.
- VersionId *string `locationName:"versionId" min:"7" type:"string"`
- }
- // String returns the string representation
- func (s CreateDatasetContentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDatasetContentOutput) GoString() string {
- return s.String()
- }
- // SetVersionId sets the VersionId field's value.
- func (s *CreateDatasetContentOutput) SetVersionId(v string) *CreateDatasetContentOutput {
- s.VersionId = &v
- return s
- }
- type CreateDatasetInput struct {
- _ struct{} `type:"structure"`
- // A list of actions that create the data set contents.
- //
- // Actions is a required field
- Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"`
- // When data set contents are created they are delivered to destinations specified
- // here.
- ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"`
- // The name of the data set.
- //
- // DatasetName is a required field
- DatasetName *string `locationName:"datasetName" min:"1" type:"string" required:"true"`
- // [Optional] How long, in days, message data is kept for the data set. If not
- // given or set to null, the latest version of the dataset content plus the
- // latest succeeded version (if they are different) are retained for at most
- // 90 days.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- // Metadata which can be used to manage the data set.
- Tags []*Tag `locationName:"tags" min:"1" type:"list"`
- // A list of triggers. A trigger causes data set contents to be populated at
- // a specified time interval or when another data set's contents are created.
- // The list of triggers can be empty or contain up to five DataSetTrigger objects.
- Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
- }
- // String returns the string representation
- func (s CreateDatasetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDatasetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDatasetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDatasetInput"}
- if s.Actions == nil {
- invalidParams.Add(request.NewErrParamRequired("Actions"))
- }
- if s.Actions != nil && len(s.Actions) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Actions", 1))
- }
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.Actions != nil {
- for i, v := range s.Actions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.ContentDeliveryRules != nil {
- for i, v := range s.ContentDeliveryRules {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContentDeliveryRules", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.RetentionPeriod != nil {
- if err := s.RetentionPeriod.Validate(); err != nil {
- invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Triggers != nil {
- for i, v := range s.Triggers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActions sets the Actions field's value.
- func (s *CreateDatasetInput) SetActions(v []*DatasetAction) *CreateDatasetInput {
- s.Actions = v
- return s
- }
- // SetContentDeliveryRules sets the ContentDeliveryRules field's value.
- func (s *CreateDatasetInput) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *CreateDatasetInput {
- s.ContentDeliveryRules = v
- return s
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *CreateDatasetInput) SetDatasetName(v string) *CreateDatasetInput {
- s.DatasetName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *CreateDatasetInput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatasetInput {
- s.RetentionPeriod = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateDatasetInput) SetTags(v []*Tag) *CreateDatasetInput {
- s.Tags = v
- return s
- }
- // SetTriggers sets the Triggers field's value.
- func (s *CreateDatasetInput) SetTriggers(v []*DatasetTrigger) *CreateDatasetInput {
- s.Triggers = v
- return s
- }
- type CreateDatasetOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the data set.
- DatasetArn *string `locationName:"datasetArn" type:"string"`
- // The name of the data set.
- DatasetName *string `locationName:"datasetName" min:"1" type:"string"`
- // How long, in days, message data is kept for the data set.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- }
- // String returns the string representation
- func (s CreateDatasetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDatasetOutput) GoString() string {
- return s.String()
- }
- // SetDatasetArn sets the DatasetArn field's value.
- func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput {
- s.DatasetArn = &v
- return s
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *CreateDatasetOutput) SetDatasetName(v string) *CreateDatasetOutput {
- s.DatasetName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *CreateDatasetOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatasetOutput {
- s.RetentionPeriod = v
- return s
- }
- type CreateDatastoreInput struct {
- _ struct{} `type:"structure"`
- // The name of the data store.
- //
- // DatastoreName is a required field
- DatastoreName *string `locationName:"datastoreName" min:"1" type:"string" required:"true"`
- // How long, in days, message data is kept for the data store.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- // Metadata which can be used to manage the data store.
- Tags []*Tag `locationName:"tags" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s CreateDatastoreInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDatastoreInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDatastoreInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDatastoreInput"}
- if s.DatastoreName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
- }
- if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.RetentionPeriod != nil {
- if err := s.RetentionPeriod.Validate(); err != nil {
- invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatastoreName sets the DatastoreName field's value.
- func (s *CreateDatastoreInput) SetDatastoreName(v string) *CreateDatastoreInput {
- s.DatastoreName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *CreateDatastoreInput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatastoreInput {
- s.RetentionPeriod = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateDatastoreInput) SetTags(v []*Tag) *CreateDatastoreInput {
- s.Tags = v
- return s
- }
- type CreateDatastoreOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the data store.
- DatastoreArn *string `locationName:"datastoreArn" type:"string"`
- // The name of the data store.
- DatastoreName *string `locationName:"datastoreName" min:"1" type:"string"`
- // How long, in days, message data is kept for the data store.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- }
- // String returns the string representation
- func (s CreateDatastoreOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDatastoreOutput) GoString() string {
- return s.String()
- }
- // SetDatastoreArn sets the DatastoreArn field's value.
- func (s *CreateDatastoreOutput) SetDatastoreArn(v string) *CreateDatastoreOutput {
- s.DatastoreArn = &v
- return s
- }
- // SetDatastoreName sets the DatastoreName field's value.
- func (s *CreateDatastoreOutput) SetDatastoreName(v string) *CreateDatastoreOutput {
- s.DatastoreName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *CreateDatastoreOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatastoreOutput {
- s.RetentionPeriod = v
- return s
- }
- type CreatePipelineInput struct {
- _ struct{} `type:"structure"`
- // A list of pipeline activities.
- //
- // The list can be 1-25 PipelineActivity objects. Activities perform transformations
- // on your messages, such as removing, renaming, or adding message attributes;
- // filtering messages based on attribute values; invoking your Lambda functions
- // on messages for advanced processing; or performing mathematical transformations
- // to normalize device data.
- //
- // PipelineActivities is a required field
- PipelineActivities []*PipelineActivity `locationName:"pipelineActivities" min:"1" type:"list" required:"true"`
- // The name of the pipeline.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // Metadata which can be used to manage the pipeline.
- Tags []*Tag `locationName:"tags" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s CreatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
- if s.PipelineActivities == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineActivities"))
- }
- if s.PipelineActivities != nil && len(s.PipelineActivities) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineActivities", 1))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.PipelineActivities != nil {
- for i, v := range s.PipelineActivities {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineActivities", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineActivities sets the PipelineActivities field's value.
- func (s *CreatePipelineInput) SetPipelineActivities(v []*PipelineActivity) *CreatePipelineInput {
- s.PipelineActivities = v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *CreatePipelineInput) SetPipelineName(v string) *CreatePipelineInput {
- s.PipelineName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreatePipelineInput) SetTags(v []*Tag) *CreatePipelineInput {
- s.Tags = v
- return s
- }
- type CreatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the pipeline.
- PipelineArn *string `locationName:"pipelineArn" type:"string"`
- // The name of the pipeline.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineOutput) GoString() string {
- return s.String()
- }
- // SetPipelineArn sets the PipelineArn field's value.
- func (s *CreatePipelineOutput) SetPipelineArn(v string) *CreatePipelineOutput {
- s.PipelineArn = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *CreatePipelineOutput) SetPipelineName(v string) *CreatePipelineOutput {
- s.PipelineName = &v
- return s
- }
- // Information about a data set.
- type Dataset struct {
- _ struct{} `type:"structure"`
- // The "DatasetAction" objects that automatically create the data set contents.
- Actions []*DatasetAction `locationName:"actions" min:"1" type:"list"`
- // The ARN of the data set.
- Arn *string `locationName:"arn" type:"string"`
- // When data set contents are created they are delivered to destinations specified
- // here.
- ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"`
- // When the data set was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The last time the data set was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The name of the data set.
- Name *string `locationName:"name" min:"1" type:"string"`
- // [Optional] How long, in days, message data is kept for the data set.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- // The status of the data set.
- Status *string `locationName:"status" type:"string" enum:"DatasetStatus"`
- // The "DatasetTrigger" objects that specify when the data set is automatically
- // updated.
- Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
- }
- // String returns the string representation
- func (s Dataset) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Dataset) GoString() string {
- return s.String()
- }
- // SetActions sets the Actions field's value.
- func (s *Dataset) SetActions(v []*DatasetAction) *Dataset {
- s.Actions = v
- return s
- }
- // SetArn sets the Arn field's value.
- func (s *Dataset) SetArn(v string) *Dataset {
- s.Arn = &v
- return s
- }
- // SetContentDeliveryRules sets the ContentDeliveryRules field's value.
- func (s *Dataset) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *Dataset {
- s.ContentDeliveryRules = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *Dataset) SetCreationTime(v time.Time) *Dataset {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *Dataset) SetLastUpdateTime(v time.Time) *Dataset {
- s.LastUpdateTime = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Dataset) SetName(v string) *Dataset {
- s.Name = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *Dataset) SetRetentionPeriod(v *RetentionPeriod) *Dataset {
- s.RetentionPeriod = v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Dataset) SetStatus(v string) *Dataset {
- s.Status = &v
- return s
- }
- // SetTriggers sets the Triggers field's value.
- func (s *Dataset) SetTriggers(v []*DatasetTrigger) *Dataset {
- s.Triggers = v
- return s
- }
- // A "DatasetAction" object that specifies how data set contents are automatically
- // created.
- type DatasetAction struct {
- _ struct{} `type:"structure"`
- // The name of the data set action by which data set contents are automatically
- // created.
- ActionName *string `locationName:"actionName" min:"1" type:"string"`
- // Information which allows the system to run a containerized application in
- // order to create the data set contents. The application must be in a Docker
- // container along with any needed support libraries.
- ContainerAction *ContainerDatasetAction `locationName:"containerAction" type:"structure"`
- // An "SqlQueryDatasetAction" object that uses an SQL query to automatically
- // create data set contents.
- QueryAction *SqlQueryDatasetAction `locationName:"queryAction" type:"structure"`
- }
- // String returns the string representation
- func (s DatasetAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DatasetAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DatasetAction"}
- if s.ActionName != nil && len(*s.ActionName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
- }
- if s.ContainerAction != nil {
- if err := s.ContainerAction.Validate(); err != nil {
- invalidParams.AddNested("ContainerAction", err.(request.ErrInvalidParams))
- }
- }
- if s.QueryAction != nil {
- if err := s.QueryAction.Validate(); err != nil {
- invalidParams.AddNested("QueryAction", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActionName sets the ActionName field's value.
- func (s *DatasetAction) SetActionName(v string) *DatasetAction {
- s.ActionName = &v
- return s
- }
- // SetContainerAction sets the ContainerAction field's value.
- func (s *DatasetAction) SetContainerAction(v *ContainerDatasetAction) *DatasetAction {
- s.ContainerAction = v
- return s
- }
- // SetQueryAction sets the QueryAction field's value.
- func (s *DatasetAction) SetQueryAction(v *SqlQueryDatasetAction) *DatasetAction {
- s.QueryAction = v
- return s
- }
- type DatasetActionSummary struct {
- _ struct{} `type:"structure"`
- // The name of the action which automatically creates the data set's contents.
- ActionName *string `locationName:"actionName" min:"1" type:"string"`
- // The type of action by which the data set's contents are automatically created.
- ActionType *string `locationName:"actionType" type:"string" enum:"DatasetActionType"`
- }
- // String returns the string representation
- func (s DatasetActionSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetActionSummary) GoString() string {
- return s.String()
- }
- // SetActionName sets the ActionName field's value.
- func (s *DatasetActionSummary) SetActionName(v string) *DatasetActionSummary {
- s.ActionName = &v
- return s
- }
- // SetActionType sets the ActionType field's value.
- func (s *DatasetActionSummary) SetActionType(v string) *DatasetActionSummary {
- s.ActionType = &v
- return s
- }
- // The destination to which data set contents are delivered.
- type DatasetContentDeliveryDestination struct {
- _ struct{} `type:"structure"`
- // Configuration information for delivery of data set contents to AWS IoT Events.
- IotEventsDestinationConfiguration *IotEventsDestinationConfiguration `locationName:"iotEventsDestinationConfiguration" type:"structure"`
- }
- // String returns the string representation
- func (s DatasetContentDeliveryDestination) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetContentDeliveryDestination) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DatasetContentDeliveryDestination) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DatasetContentDeliveryDestination"}
- if s.IotEventsDestinationConfiguration != nil {
- if err := s.IotEventsDestinationConfiguration.Validate(); err != nil {
- invalidParams.AddNested("IotEventsDestinationConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetIotEventsDestinationConfiguration sets the IotEventsDestinationConfiguration field's value.
- func (s *DatasetContentDeliveryDestination) SetIotEventsDestinationConfiguration(v *IotEventsDestinationConfiguration) *DatasetContentDeliveryDestination {
- s.IotEventsDestinationConfiguration = v
- return s
- }
- // When data set contents are created they are delivered to destination specified
- // here.
- type DatasetContentDeliveryRule struct {
- _ struct{} `type:"structure"`
- // The destination to which data set contents are delivered.
- //
- // Destination is a required field
- Destination *DatasetContentDeliveryDestination `locationName:"destination" type:"structure" required:"true"`
- // The name of the data set content delivery rules entry.
- EntryName *string `locationName:"entryName" type:"string"`
- }
- // String returns the string representation
- func (s DatasetContentDeliveryRule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetContentDeliveryRule) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DatasetContentDeliveryRule) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DatasetContentDeliveryRule"}
- if s.Destination == nil {
- invalidParams.Add(request.NewErrParamRequired("Destination"))
- }
- if s.Destination != nil {
- if err := s.Destination.Validate(); err != nil {
- invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDestination sets the Destination field's value.
- func (s *DatasetContentDeliveryRule) SetDestination(v *DatasetContentDeliveryDestination) *DatasetContentDeliveryRule {
- s.Destination = v
- return s
- }
- // SetEntryName sets the EntryName field's value.
- func (s *DatasetContentDeliveryRule) SetEntryName(v string) *DatasetContentDeliveryRule {
- s.EntryName = &v
- return s
- }
- // The state of the data set contents and the reason they are in this state.
- type DatasetContentStatus struct {
- _ struct{} `type:"structure"`
- // The reason the data set contents are in this state.
- Reason *string `locationName:"reason" type:"string"`
- // The state of the data set contents. Can be one of "READY", "CREATING", "SUCCEEDED"
- // or "FAILED".
- State *string `locationName:"state" type:"string" enum:"DatasetContentState"`
- }
- // String returns the string representation
- func (s DatasetContentStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetContentStatus) GoString() string {
- return s.String()
- }
- // SetReason sets the Reason field's value.
- func (s *DatasetContentStatus) SetReason(v string) *DatasetContentStatus {
- s.Reason = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *DatasetContentStatus) SetState(v string) *DatasetContentStatus {
- s.State = &v
- return s
- }
- // Summary information about data set contents.
- type DatasetContentSummary struct {
- _ struct{} `type:"structure"`
- // The actual time the creation of the data set contents was started.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The time the creation of the data set contents was scheduled to start.
- ScheduleTime *time.Time `locationName:"scheduleTime" type:"timestamp"`
- // The status of the data set contents.
- Status *DatasetContentStatus `locationName:"status" type:"structure"`
- // The version of the data set contents.
- Version *string `locationName:"version" min:"7" type:"string"`
- }
- // String returns the string representation
- func (s DatasetContentSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetContentSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DatasetContentSummary) SetCreationTime(v time.Time) *DatasetContentSummary {
- s.CreationTime = &v
- return s
- }
- // SetScheduleTime sets the ScheduleTime field's value.
- func (s *DatasetContentSummary) SetScheduleTime(v time.Time) *DatasetContentSummary {
- s.ScheduleTime = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DatasetContentSummary) SetStatus(v *DatasetContentStatus) *DatasetContentSummary {
- s.Status = v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *DatasetContentSummary) SetVersion(v string) *DatasetContentSummary {
- s.Version = &v
- return s
- }
- // The data set whose latest contents are used as input to the notebook or application.
- type DatasetContentVersionValue struct {
- _ struct{} `type:"structure"`
- // The name of the data set whose latest contents are used as input to the notebook
- // or application.
- //
- // DatasetName is a required field
- DatasetName *string `locationName:"datasetName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DatasetContentVersionValue) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetContentVersionValue) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DatasetContentVersionValue) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DatasetContentVersionValue"}
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *DatasetContentVersionValue) SetDatasetName(v string) *DatasetContentVersionValue {
- s.DatasetName = &v
- return s
- }
- // The reference to a data set entry.
- type DatasetEntry struct {
- _ struct{} `type:"structure"`
- // The pre-signed URI of the data set item.
- DataURI *string `locationName:"dataURI" type:"string"`
- // The name of the data set item.
- EntryName *string `locationName:"entryName" type:"string"`
- }
- // String returns the string representation
- func (s DatasetEntry) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetEntry) GoString() string {
- return s.String()
- }
- // SetDataURI sets the DataURI field's value.
- func (s *DatasetEntry) SetDataURI(v string) *DatasetEntry {
- s.DataURI = &v
- return s
- }
- // SetEntryName sets the EntryName field's value.
- func (s *DatasetEntry) SetEntryName(v string) *DatasetEntry {
- s.EntryName = &v
- return s
- }
- // A summary of information about a data set.
- type DatasetSummary struct {
- _ struct{} `type:"structure"`
- // A list of "DataActionSummary" objects.
- Actions []*DatasetActionSummary `locationName:"actions" min:"1" type:"list"`
- // The time the data set was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The name of the data set.
- DatasetName *string `locationName:"datasetName" min:"1" type:"string"`
- // The last time the data set was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The status of the data set.
- Status *string `locationName:"status" type:"string" enum:"DatasetStatus"`
- // A list of triggers. A trigger causes data set content to be populated at
- // a specified time interval or when another data set is populated. The list
- // of triggers can be empty or contain up to five DataSetTrigger objects
- Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
- }
- // String returns the string representation
- func (s DatasetSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetSummary) GoString() string {
- return s.String()
- }
- // SetActions sets the Actions field's value.
- func (s *DatasetSummary) SetActions(v []*DatasetActionSummary) *DatasetSummary {
- s.Actions = v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DatasetSummary) SetCreationTime(v time.Time) *DatasetSummary {
- s.CreationTime = &v
- return s
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *DatasetSummary) SetDatasetName(v string) *DatasetSummary {
- s.DatasetName = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *DatasetSummary) SetLastUpdateTime(v time.Time) *DatasetSummary {
- s.LastUpdateTime = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DatasetSummary) SetStatus(v string) *DatasetSummary {
- s.Status = &v
- return s
- }
- // SetTriggers sets the Triggers field's value.
- func (s *DatasetSummary) SetTriggers(v []*DatasetTrigger) *DatasetSummary {
- s.Triggers = v
- return s
- }
- // The "DatasetTrigger" that specifies when the data set is automatically updated.
- type DatasetTrigger struct {
- _ struct{} `type:"structure"`
- // The data set whose content creation triggers the creation of this data set's
- // contents.
- Dataset *TriggeringDataset `locationName:"dataset" type:"structure"`
- // The "Schedule" when the trigger is initiated.
- Schedule *Schedule `locationName:"schedule" type:"structure"`
- }
- // String returns the string representation
- func (s DatasetTrigger) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatasetTrigger) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DatasetTrigger) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DatasetTrigger"}
- if s.Dataset != nil {
- if err := s.Dataset.Validate(); err != nil {
- invalidParams.AddNested("Dataset", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDataset sets the Dataset field's value.
- func (s *DatasetTrigger) SetDataset(v *TriggeringDataset) *DatasetTrigger {
- s.Dataset = v
- return s
- }
- // SetSchedule sets the Schedule field's value.
- func (s *DatasetTrigger) SetSchedule(v *Schedule) *DatasetTrigger {
- s.Schedule = v
- return s
- }
- // Information about a data store.
- type Datastore struct {
- _ struct{} `type:"structure"`
- // The ARN of the data store.
- Arn *string `locationName:"arn" type:"string"`
- // When the data store was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The last time the data store was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The name of the data store.
- Name *string `locationName:"name" min:"1" type:"string"`
- // How long, in days, message data is kept for the data store.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- // The status of a data store:
- //
- // CREATINGThe data store is being created.
- //
- // ACTIVEThe data store has been created and can be used.
- //
- // DELETINGThe data store is being deleted.
- Status *string `locationName:"status" type:"string" enum:"DatastoreStatus"`
- }
- // String returns the string representation
- func (s Datastore) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Datastore) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *Datastore) SetArn(v string) *Datastore {
- s.Arn = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *Datastore) SetCreationTime(v time.Time) *Datastore {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *Datastore) SetLastUpdateTime(v time.Time) *Datastore {
- s.LastUpdateTime = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Datastore) SetName(v string) *Datastore {
- s.Name = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *Datastore) SetRetentionPeriod(v *RetentionPeriod) *Datastore {
- s.RetentionPeriod = v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Datastore) SetStatus(v string) *Datastore {
- s.Status = &v
- return s
- }
- // The 'datastore' activity that specifies where to store the processed data.
- type DatastoreActivity struct {
- _ struct{} `type:"structure"`
- // The name of the data store where processed messages are stored.
- //
- // DatastoreName is a required field
- DatastoreName *string `locationName:"datastoreName" min:"1" type:"string" required:"true"`
- // The name of the 'datastore' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DatastoreActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatastoreActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DatastoreActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DatastoreActivity"}
- if s.DatastoreName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
- }
- if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatastoreName sets the DatastoreName field's value.
- func (s *DatastoreActivity) SetDatastoreName(v string) *DatastoreActivity {
- s.DatastoreName = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *DatastoreActivity) SetName(v string) *DatastoreActivity {
- s.Name = &v
- return s
- }
- // Statistical information about the data store.
- type DatastoreStatistics struct {
- _ struct{} `type:"structure"`
- // The estimated size of the data store.
- Size *EstimatedResourceSize `locationName:"size" type:"structure"`
- }
- // String returns the string representation
- func (s DatastoreStatistics) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatastoreStatistics) GoString() string {
- return s.String()
- }
- // SetSize sets the Size field's value.
- func (s *DatastoreStatistics) SetSize(v *EstimatedResourceSize) *DatastoreStatistics {
- s.Size = v
- return s
- }
- // A summary of information about a data store.
- type DatastoreSummary struct {
- _ struct{} `type:"structure"`
- // When the data store was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The name of the data store.
- DatastoreName *string `locationName:"datastoreName" min:"1" type:"string"`
- // The last time the data store was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The status of the data store.
- Status *string `locationName:"status" type:"string" enum:"DatastoreStatus"`
- }
- // String returns the string representation
- func (s DatastoreSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DatastoreSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *DatastoreSummary) SetCreationTime(v time.Time) *DatastoreSummary {
- s.CreationTime = &v
- return s
- }
- // SetDatastoreName sets the DatastoreName field's value.
- func (s *DatastoreSummary) SetDatastoreName(v string) *DatastoreSummary {
- s.DatastoreName = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *DatastoreSummary) SetLastUpdateTime(v time.Time) *DatastoreSummary {
- s.LastUpdateTime = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DatastoreSummary) SetStatus(v string) *DatastoreSummary {
- s.Status = &v
- return s
- }
- type DeleteChannelInput struct {
- _ struct{} `type:"structure"`
- // The name of the channel to delete.
- //
- // ChannelName is a required field
- ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteChannelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteChannelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteChannelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteChannelInput"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *DeleteChannelInput) SetChannelName(v string) *DeleteChannelInput {
- s.ChannelName = &v
- return s
- }
- type DeleteChannelOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteChannelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteChannelOutput) GoString() string {
- return s.String()
- }
- type DeleteDatasetContentInput struct {
- _ struct{} `type:"structure"`
- // The name of the data set whose content is deleted.
- //
- // DatasetName is a required field
- DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
- // The version of the data set whose content is deleted. You can also use the
- // strings "$LATEST" or "$LATEST_SUCCEEDED" to delete the latest or latest successfully
- // completed data set. If not specified, "$LATEST_SUCCEEDED" is the default.
- VersionId *string `location:"querystring" locationName:"versionId" min:"7" type:"string"`
- }
- // String returns the string representation
- func (s DeleteDatasetContentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDatasetContentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDatasetContentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetContentInput"}
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if s.VersionId != nil && len(*s.VersionId) < 7 {
- invalidParams.Add(request.NewErrParamMinLen("VersionId", 7))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *DeleteDatasetContentInput) SetDatasetName(v string) *DeleteDatasetContentInput {
- s.DatasetName = &v
- return s
- }
- // SetVersionId sets the VersionId field's value.
- func (s *DeleteDatasetContentInput) SetVersionId(v string) *DeleteDatasetContentInput {
- s.VersionId = &v
- return s
- }
- type DeleteDatasetContentOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDatasetContentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDatasetContentOutput) GoString() string {
- return s.String()
- }
- type DeleteDatasetInput struct {
- _ struct{} `type:"structure"`
- // The name of the data set to delete.
- //
- // DatasetName is a required field
- DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDatasetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDatasetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDatasetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetInput"}
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *DeleteDatasetInput) SetDatasetName(v string) *DeleteDatasetInput {
- s.DatasetName = &v
- return s
- }
- type DeleteDatasetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDatasetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDatasetOutput) GoString() string {
- return s.String()
- }
- type DeleteDatastoreInput struct {
- _ struct{} `type:"structure"`
- // The name of the data store to delete.
- //
- // DatastoreName is a required field
- DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDatastoreInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDatastoreInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDatastoreInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDatastoreInput"}
- if s.DatastoreName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
- }
- if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatastoreName sets the DatastoreName field's value.
- func (s *DeleteDatastoreInput) SetDatastoreName(v string) *DeleteDatastoreInput {
- s.DatastoreName = &v
- return s
- }
- type DeleteDatastoreOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDatastoreOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDatastoreOutput) GoString() string {
- return s.String()
- }
- type DeletePipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline to delete.
- //
- // PipelineName is a required field
- PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *DeletePipelineInput) SetPipelineName(v string) *DeletePipelineInput {
- s.PipelineName = &v
- return s
- }
- type DeletePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineOutput) GoString() string {
- return s.String()
- }
- // Used to limit data to that which has arrived since the last execution of
- // the action.
- type DeltaTime struct {
- _ struct{} `type:"structure"`
- // The number of seconds of estimated "in flight" lag time of message data.
- // When you create data set contents using message data from a specified time
- // frame, some message data may still be "in flight" when processing begins,
- // and so will not arrive in time to be processed. Use this field to make allowances
- // for the "in flight" time of your message data, so that data not processed
- // from a previous time frame will be included with the next time frame. Without
- // this, missed message data would be excluded from processing during the next
- // time frame as well, because its timestamp places it within the previous time
- // frame.
- //
- // OffsetSeconds is a required field
- OffsetSeconds *int64 `locationName:"offsetSeconds" type:"integer" required:"true"`
- // An expression by which the time of the message data may be determined. This
- // may be the name of a timestamp field, or a SQL expression which is used to
- // derive the time the message data was generated.
- //
- // TimeExpression is a required field
- TimeExpression *string `locationName:"timeExpression" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeltaTime) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeltaTime) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeltaTime) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeltaTime"}
- if s.OffsetSeconds == nil {
- invalidParams.Add(request.NewErrParamRequired("OffsetSeconds"))
- }
- if s.TimeExpression == nil {
- invalidParams.Add(request.NewErrParamRequired("TimeExpression"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetOffsetSeconds sets the OffsetSeconds field's value.
- func (s *DeltaTime) SetOffsetSeconds(v int64) *DeltaTime {
- s.OffsetSeconds = &v
- return s
- }
- // SetTimeExpression sets the TimeExpression field's value.
- func (s *DeltaTime) SetTimeExpression(v string) *DeltaTime {
- s.TimeExpression = &v
- return s
- }
- type DescribeChannelInput struct {
- _ struct{} `type:"structure"`
- // The name of the channel whose information is retrieved.
- //
- // ChannelName is a required field
- ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
- // If true, additional statistical information about the channel is included
- // in the response.
- IncludeStatistics *bool `location:"querystring" locationName:"includeStatistics" type:"boolean"`
- }
- // String returns the string representation
- func (s DescribeChannelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeChannelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeChannelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeChannelInput"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *DescribeChannelInput) SetChannelName(v string) *DescribeChannelInput {
- s.ChannelName = &v
- return s
- }
- // SetIncludeStatistics sets the IncludeStatistics field's value.
- func (s *DescribeChannelInput) SetIncludeStatistics(v bool) *DescribeChannelInput {
- s.IncludeStatistics = &v
- return s
- }
- type DescribeChannelOutput struct {
- _ struct{} `type:"structure"`
- // An object that contains information about the channel.
- Channel *Channel `locationName:"channel" type:"structure"`
- // Statistics about the channel. Included if the 'includeStatistics' parameter
- // is set to true in the request.
- Statistics *ChannelStatistics `locationName:"statistics" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeChannelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeChannelOutput) GoString() string {
- return s.String()
- }
- // SetChannel sets the Channel field's value.
- func (s *DescribeChannelOutput) SetChannel(v *Channel) *DescribeChannelOutput {
- s.Channel = v
- return s
- }
- // SetStatistics sets the Statistics field's value.
- func (s *DescribeChannelOutput) SetStatistics(v *ChannelStatistics) *DescribeChannelOutput {
- s.Statistics = v
- return s
- }
- type DescribeDatasetInput struct {
- _ struct{} `type:"structure"`
- // The name of the data set whose information is retrieved.
- //
- // DatasetName is a required field
- DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeDatasetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDatasetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDatasetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDatasetInput"}
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *DescribeDatasetInput) SetDatasetName(v string) *DescribeDatasetInput {
- s.DatasetName = &v
- return s
- }
- type DescribeDatasetOutput struct {
- _ struct{} `type:"structure"`
- // An object that contains information about the data set.
- Dataset *Dataset `locationName:"dataset" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDatasetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDatasetOutput) GoString() string {
- return s.String()
- }
- // SetDataset sets the Dataset field's value.
- func (s *DescribeDatasetOutput) SetDataset(v *Dataset) *DescribeDatasetOutput {
- s.Dataset = v
- return s
- }
- type DescribeDatastoreInput struct {
- _ struct{} `type:"structure"`
- // The name of the data store
- //
- // DatastoreName is a required field
- DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"`
- // If true, additional statistical information about the datastore is included
- // in the response.
- IncludeStatistics *bool `location:"querystring" locationName:"includeStatistics" type:"boolean"`
- }
- // String returns the string representation
- func (s DescribeDatastoreInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDatastoreInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDatastoreInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDatastoreInput"}
- if s.DatastoreName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
- }
- if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatastoreName sets the DatastoreName field's value.
- func (s *DescribeDatastoreInput) SetDatastoreName(v string) *DescribeDatastoreInput {
- s.DatastoreName = &v
- return s
- }
- // SetIncludeStatistics sets the IncludeStatistics field's value.
- func (s *DescribeDatastoreInput) SetIncludeStatistics(v bool) *DescribeDatastoreInput {
- s.IncludeStatistics = &v
- return s
- }
- type DescribeDatastoreOutput struct {
- _ struct{} `type:"structure"`
- // Information about the data store.
- Datastore *Datastore `locationName:"datastore" type:"structure"`
- // Additional statistical information about the data store. Included if the
- // 'includeStatistics' parameter is set to true in the request.
- Statistics *DatastoreStatistics `locationName:"statistics" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDatastoreOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDatastoreOutput) GoString() string {
- return s.String()
- }
- // SetDatastore sets the Datastore field's value.
- func (s *DescribeDatastoreOutput) SetDatastore(v *Datastore) *DescribeDatastoreOutput {
- s.Datastore = v
- return s
- }
- // SetStatistics sets the Statistics field's value.
- func (s *DescribeDatastoreOutput) SetStatistics(v *DatastoreStatistics) *DescribeDatastoreOutput {
- s.Statistics = v
- return s
- }
- type DescribeLoggingOptionsInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoggingOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoggingOptionsInput) GoString() string {
- return s.String()
- }
- type DescribeLoggingOptionsOutput struct {
- _ struct{} `type:"structure"`
- // The current settings of the AWS IoT Analytics logging options.
- LoggingOptions *LoggingOptions `locationName:"loggingOptions" type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoggingOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoggingOptionsOutput) GoString() string {
- return s.String()
- }
- // SetLoggingOptions sets the LoggingOptions field's value.
- func (s *DescribeLoggingOptionsOutput) SetLoggingOptions(v *LoggingOptions) *DescribeLoggingOptionsOutput {
- s.LoggingOptions = v
- return s
- }
- type DescribePipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline whose information is retrieved.
- //
- // PipelineName is a required field
- PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribePipelineInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *DescribePipelineInput) SetPipelineName(v string) *DescribePipelineInput {
- s.PipelineName = &v
- return s
- }
- type DescribePipelineOutput struct {
- _ struct{} `type:"structure"`
- // A "Pipeline" object that contains information about the pipeline.
- Pipeline *Pipeline `locationName:"pipeline" type:"structure"`
- }
- // String returns the string representation
- func (s DescribePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribePipelineOutput) GoString() string {
- return s.String()
- }
- // SetPipeline sets the Pipeline field's value.
- func (s *DescribePipelineOutput) SetPipeline(v *Pipeline) *DescribePipelineOutput {
- s.Pipeline = v
- return s
- }
- // An activity that adds data from the AWS IoT device registry to your message.
- type DeviceRegistryEnrichActivity struct {
- _ struct{} `type:"structure"`
- // The name of the attribute that is added to the message.
- //
- // Attribute is a required field
- Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"`
- // The name of the 'deviceRegistryEnrich' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- // The ARN of the role that allows access to the device's registry information.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- // The name of the IoT device whose registry information is added to the message.
- //
- // ThingName is a required field
- ThingName *string `locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeviceRegistryEnrichActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeviceRegistryEnrichActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeviceRegistryEnrichActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeviceRegistryEnrichActivity"}
- if s.Attribute == nil {
- invalidParams.Add(request.NewErrParamRequired("Attribute"))
- }
- if s.Attribute != nil && len(*s.Attribute) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Attribute", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.ThingName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingName"))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttribute sets the Attribute field's value.
- func (s *DeviceRegistryEnrichActivity) SetAttribute(v string) *DeviceRegistryEnrichActivity {
- s.Attribute = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *DeviceRegistryEnrichActivity) SetName(v string) *DeviceRegistryEnrichActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *DeviceRegistryEnrichActivity) SetNext(v string) *DeviceRegistryEnrichActivity {
- s.Next = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DeviceRegistryEnrichActivity) SetRoleArn(v string) *DeviceRegistryEnrichActivity {
- s.RoleArn = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *DeviceRegistryEnrichActivity) SetThingName(v string) *DeviceRegistryEnrichActivity {
- s.ThingName = &v
- return s
- }
- // An activity that adds information from the AWS IoT Device Shadows service
- // to a message.
- type DeviceShadowEnrichActivity struct {
- _ struct{} `type:"structure"`
- // The name of the attribute that is added to the message.
- //
- // Attribute is a required field
- Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"`
- // The name of the 'deviceShadowEnrich' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- // The ARN of the role that allows access to the device's shadow.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- // The name of the IoT device whose shadow information is added to the message.
- //
- // ThingName is a required field
- ThingName *string `locationName:"thingName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeviceShadowEnrichActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeviceShadowEnrichActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeviceShadowEnrichActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeviceShadowEnrichActivity"}
- if s.Attribute == nil {
- invalidParams.Add(request.NewErrParamRequired("Attribute"))
- }
- if s.Attribute != nil && len(*s.Attribute) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Attribute", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if s.ThingName == nil {
- invalidParams.Add(request.NewErrParamRequired("ThingName"))
- }
- if s.ThingName != nil && len(*s.ThingName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThingName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttribute sets the Attribute field's value.
- func (s *DeviceShadowEnrichActivity) SetAttribute(v string) *DeviceShadowEnrichActivity {
- s.Attribute = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *DeviceShadowEnrichActivity) SetName(v string) *DeviceShadowEnrichActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *DeviceShadowEnrichActivity) SetNext(v string) *DeviceShadowEnrichActivity {
- s.Next = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *DeviceShadowEnrichActivity) SetRoleArn(v string) *DeviceShadowEnrichActivity {
- s.RoleArn = &v
- return s
- }
- // SetThingName sets the ThingName field's value.
- func (s *DeviceShadowEnrichActivity) SetThingName(v string) *DeviceShadowEnrichActivity {
- s.ThingName = &v
- return s
- }
- // The estimated size of the resource.
- type EstimatedResourceSize struct {
- _ struct{} `type:"structure"`
- // The time when the estimate of the size of the resource was made.
- EstimatedOn *time.Time `locationName:"estimatedOn" type:"timestamp"`
- // The estimated size of the resource in bytes.
- EstimatedSizeInBytes *float64 `locationName:"estimatedSizeInBytes" type:"double"`
- }
- // String returns the string representation
- func (s EstimatedResourceSize) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EstimatedResourceSize) GoString() string {
- return s.String()
- }
- // SetEstimatedOn sets the EstimatedOn field's value.
- func (s *EstimatedResourceSize) SetEstimatedOn(v time.Time) *EstimatedResourceSize {
- s.EstimatedOn = &v
- return s
- }
- // SetEstimatedSizeInBytes sets the EstimatedSizeInBytes field's value.
- func (s *EstimatedResourceSize) SetEstimatedSizeInBytes(v float64) *EstimatedResourceSize {
- s.EstimatedSizeInBytes = &v
- return s
- }
- // An activity that filters a message based on its attributes.
- type FilterActivity struct {
- _ struct{} `type:"structure"`
- // An expression that looks like a SQL WHERE clause that must return a Boolean
- // value.
- //
- // Filter is a required field
- Filter *string `locationName:"filter" min:"1" type:"string" required:"true"`
- // The name of the 'filter' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s FilterActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FilterActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FilterActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FilterActivity"}
- if s.Filter == nil {
- invalidParams.Add(request.NewErrParamRequired("Filter"))
- }
- if s.Filter != nil && len(*s.Filter) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Filter", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFilter sets the Filter field's value.
- func (s *FilterActivity) SetFilter(v string) *FilterActivity {
- s.Filter = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *FilterActivity) SetName(v string) *FilterActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *FilterActivity) SetNext(v string) *FilterActivity {
- s.Next = &v
- return s
- }
- type GetDatasetContentInput struct {
- _ struct{} `type:"structure"`
- // The name of the data set whose contents are retrieved.
- //
- // DatasetName is a required field
- DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
- // The version of the data set whose contents are retrieved. You can also use
- // the strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of
- // the latest or latest successfully completed data set. If not specified, "$LATEST_SUCCEEDED"
- // is the default.
- VersionId *string `location:"querystring" locationName:"versionId" min:"7" type:"string"`
- }
- // String returns the string representation
- func (s GetDatasetContentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDatasetContentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDatasetContentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDatasetContentInput"}
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if s.VersionId != nil && len(*s.VersionId) < 7 {
- invalidParams.Add(request.NewErrParamMinLen("VersionId", 7))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *GetDatasetContentInput) SetDatasetName(v string) *GetDatasetContentInput {
- s.DatasetName = &v
- return s
- }
- // SetVersionId sets the VersionId field's value.
- func (s *GetDatasetContentInput) SetVersionId(v string) *GetDatasetContentInput {
- s.VersionId = &v
- return s
- }
- type GetDatasetContentOutput struct {
- _ struct{} `type:"structure"`
- // A list of "DatasetEntry" objects.
- Entries []*DatasetEntry `locationName:"entries" type:"list"`
- // The status of the data set content.
- Status *DatasetContentStatus `locationName:"status" type:"structure"`
- // The time when the request was made.
- Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
- }
- // String returns the string representation
- func (s GetDatasetContentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDatasetContentOutput) GoString() string {
- return s.String()
- }
- // SetEntries sets the Entries field's value.
- func (s *GetDatasetContentOutput) SetEntries(v []*DatasetEntry) *GetDatasetContentOutput {
- s.Entries = v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *GetDatasetContentOutput) SetStatus(v *DatasetContentStatus) *GetDatasetContentOutput {
- s.Status = v
- return s
- }
- // SetTimestamp sets the Timestamp field's value.
- func (s *GetDatasetContentOutput) SetTimestamp(v time.Time) *GetDatasetContentOutput {
- s.Timestamp = &v
- return s
- }
- // Configuration information for delivery of data set contents to AWS IoT Events.
- type IotEventsDestinationConfiguration struct {
- _ struct{} `type:"structure"`
- // The name of the AWS IoT Events input to which data set contents are delivered.
- //
- // InputName is a required field
- InputName *string `locationName:"inputName" min:"1" type:"string" required:"true"`
- // The ARN of the role which grants AWS IoT Analytics permission to deliver
- // data set contents to an AWS IoT Events input.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s IotEventsDestinationConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IotEventsDestinationConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IotEventsDestinationConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IotEventsDestinationConfiguration"}
- if s.InputName == nil {
- invalidParams.Add(request.NewErrParamRequired("InputName"))
- }
- if s.InputName != nil && len(*s.InputName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputName", 1))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetInputName sets the InputName field's value.
- func (s *IotEventsDestinationConfiguration) SetInputName(v string) *IotEventsDestinationConfiguration {
- s.InputName = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *IotEventsDestinationConfiguration) SetRoleArn(v string) *IotEventsDestinationConfiguration {
- s.RoleArn = &v
- return s
- }
- // An activity that runs a Lambda function to modify the message.
- type LambdaActivity struct {
- _ struct{} `type:"structure"`
- // The number of messages passed to the Lambda function for processing.
- //
- // The AWS Lambda function must be able to process all of these messages within
- // five minutes, which is the maximum timeout duration for Lambda functions.
- //
- // BatchSize is a required field
- BatchSize *int64 `locationName:"batchSize" min:"1" type:"integer" required:"true"`
- // The name of the Lambda function that is run on the message.
- //
- // LambdaName is a required field
- LambdaName *string `locationName:"lambdaName" min:"1" type:"string" required:"true"`
- // The name of the 'lambda' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s LambdaActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LambdaActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LambdaActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LambdaActivity"}
- if s.BatchSize == nil {
- invalidParams.Add(request.NewErrParamRequired("BatchSize"))
- }
- if s.BatchSize != nil && *s.BatchSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("BatchSize", 1))
- }
- if s.LambdaName == nil {
- invalidParams.Add(request.NewErrParamRequired("LambdaName"))
- }
- if s.LambdaName != nil && len(*s.LambdaName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LambdaName", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBatchSize sets the BatchSize field's value.
- func (s *LambdaActivity) SetBatchSize(v int64) *LambdaActivity {
- s.BatchSize = &v
- return s
- }
- // SetLambdaName sets the LambdaName field's value.
- func (s *LambdaActivity) SetLambdaName(v string) *LambdaActivity {
- s.LambdaName = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *LambdaActivity) SetName(v string) *LambdaActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *LambdaActivity) SetNext(v string) *LambdaActivity {
- s.Next = &v
- return s
- }
- type ListChannelsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in this request.
- //
- // The default value is 100.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListChannelsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListChannelsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListChannelsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListChannelsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListChannelsInput) SetMaxResults(v int64) *ListChannelsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListChannelsInput) SetNextToken(v string) *ListChannelsInput {
- s.NextToken = &v
- return s
- }
- type ListChannelsOutput struct {
- _ struct{} `type:"structure"`
- // A list of "ChannelSummary" objects.
- ChannelSummaries []*ChannelSummary `locationName:"channelSummaries" type:"list"`
- // The token to retrieve the next set of results, or null if there are no more
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListChannelsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListChannelsOutput) GoString() string {
- return s.String()
- }
- // SetChannelSummaries sets the ChannelSummaries field's value.
- func (s *ListChannelsOutput) SetChannelSummaries(v []*ChannelSummary) *ListChannelsOutput {
- s.ChannelSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListChannelsOutput) SetNextToken(v string) *ListChannelsOutput {
- s.NextToken = &v
- return s
- }
- type ListDatasetContentsInput struct {
- _ struct{} `type:"structure"`
- // The name of the data set whose contents information you want to list.
- //
- // DatasetName is a required field
- DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
- // The maximum number of results to return in this request.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- // A filter to limit results to those data set contents whose creation is scheduled
- // before the given time. See the field triggers.schedule in the CreateDataset
- // request. (timestamp)
- ScheduledBefore *time.Time `location:"querystring" locationName:"scheduledBefore" type:"timestamp"`
- // A filter to limit results to those data set contents whose creation is scheduled
- // on or after the given time. See the field triggers.schedule in the CreateDataset
- // request. (timestamp)
- ScheduledOnOrAfter *time.Time `location:"querystring" locationName:"scheduledOnOrAfter" type:"timestamp"`
- }
- // String returns the string representation
- func (s ListDatasetContentsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDatasetContentsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDatasetContentsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDatasetContentsInput"}
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *ListDatasetContentsInput) SetDatasetName(v string) *ListDatasetContentsInput {
- s.DatasetName = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListDatasetContentsInput) SetMaxResults(v int64) *ListDatasetContentsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDatasetContentsInput) SetNextToken(v string) *ListDatasetContentsInput {
- s.NextToken = &v
- return s
- }
- // SetScheduledBefore sets the ScheduledBefore field's value.
- func (s *ListDatasetContentsInput) SetScheduledBefore(v time.Time) *ListDatasetContentsInput {
- s.ScheduledBefore = &v
- return s
- }
- // SetScheduledOnOrAfter sets the ScheduledOnOrAfter field's value.
- func (s *ListDatasetContentsInput) SetScheduledOnOrAfter(v time.Time) *ListDatasetContentsInput {
- s.ScheduledOnOrAfter = &v
- return s
- }
- type ListDatasetContentsOutput struct {
- _ struct{} `type:"structure"`
- // Summary information about data set contents that have been created.
- DatasetContentSummaries []*DatasetContentSummary `locationName:"datasetContentSummaries" type:"list"`
- // The token to retrieve the next set of results, or null if there are no more
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDatasetContentsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDatasetContentsOutput) GoString() string {
- return s.String()
- }
- // SetDatasetContentSummaries sets the DatasetContentSummaries field's value.
- func (s *ListDatasetContentsOutput) SetDatasetContentSummaries(v []*DatasetContentSummary) *ListDatasetContentsOutput {
- s.DatasetContentSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDatasetContentsOutput) SetNextToken(v string) *ListDatasetContentsOutput {
- s.NextToken = &v
- return s
- }
- type ListDatasetsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in this request.
- //
- // The default value is 100.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDatasetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDatasetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDatasetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDatasetsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListDatasetsInput) SetMaxResults(v int64) *ListDatasetsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDatasetsInput) SetNextToken(v string) *ListDatasetsInput {
- s.NextToken = &v
- return s
- }
- type ListDatasetsOutput struct {
- _ struct{} `type:"structure"`
- // A list of "DatasetSummary" objects.
- DatasetSummaries []*DatasetSummary `locationName:"datasetSummaries" type:"list"`
- // The token to retrieve the next set of results, or null if there are no more
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDatasetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDatasetsOutput) GoString() string {
- return s.String()
- }
- // SetDatasetSummaries sets the DatasetSummaries field's value.
- func (s *ListDatasetsOutput) SetDatasetSummaries(v []*DatasetSummary) *ListDatasetsOutput {
- s.DatasetSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDatasetsOutput) SetNextToken(v string) *ListDatasetsOutput {
- s.NextToken = &v
- return s
- }
- type ListDatastoresInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in this request.
- //
- // The default value is 100.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDatastoresInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDatastoresInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDatastoresInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDatastoresInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListDatastoresInput) SetMaxResults(v int64) *ListDatastoresInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDatastoresInput) SetNextToken(v string) *ListDatastoresInput {
- s.NextToken = &v
- return s
- }
- type ListDatastoresOutput struct {
- _ struct{} `type:"structure"`
- // A list of "DatastoreSummary" objects.
- DatastoreSummaries []*DatastoreSummary `locationName:"datastoreSummaries" type:"list"`
- // The token to retrieve the next set of results, or null if there are no more
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDatastoresOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDatastoresOutput) GoString() string {
- return s.String()
- }
- // SetDatastoreSummaries sets the DatastoreSummaries field's value.
- func (s *ListDatastoresOutput) SetDatastoreSummaries(v []*DatastoreSummary) *ListDatastoresOutput {
- s.DatastoreSummaries = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDatastoresOutput) SetNextToken(v string) *ListDatastoresOutput {
- s.NextToken = &v
- return s
- }
- type ListPipelinesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in this request.
- //
- // The default value is 100.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next set of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListPipelinesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPipelinesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPipelinesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListPipelinesInput) SetMaxResults(v int64) *ListPipelinesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput {
- s.NextToken = &v
- return s
- }
- type ListPipelinesOutput struct {
- _ struct{} `type:"structure"`
- // The token to retrieve the next set of results, or null if there are no more
- // results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of "PipelineSummary" objects.
- PipelineSummaries []*PipelineSummary `locationName:"pipelineSummaries" type:"list"`
- }
- // String returns the string representation
- func (s ListPipelinesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPipelinesOutput) SetNextToken(v string) *ListPipelinesOutput {
- s.NextToken = &v
- return s
- }
- // SetPipelineSummaries sets the PipelineSummaries field's value.
- func (s *ListPipelinesOutput) SetPipelineSummaries(v []*PipelineSummary) *ListPipelinesOutput {
- s.PipelineSummaries = v
- return s
- }
- type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the resource whose tags you want to list.
- //
- // ResourceArn is a required field
- ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsForResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
- s.ResourceArn = &v
- return s
- }
- type ListTagsForResourceOutput struct {
- _ struct{} `type:"structure"`
- // The tags (metadata) which you have assigned to the resource.
- Tags []*Tag `locationName:"tags" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s ListTagsForResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceOutput) GoString() string {
- return s.String()
- }
- // SetTags sets the Tags field's value.
- func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
- s.Tags = v
- return s
- }
- // Information about logging options.
- type LoggingOptions struct {
- _ struct{} `type:"structure"`
- // If true, logging is enabled for AWS IoT Analytics.
- //
- // Enabled is a required field
- Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
- // The logging level. Currently, only "ERROR" is supported.
- //
- // Level is a required field
- Level *string `locationName:"level" type:"string" required:"true" enum:"LoggingLevel"`
- // The ARN of the role that grants permission to AWS IoT Analytics to perform
- // logging.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s LoggingOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoggingOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LoggingOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LoggingOptions"}
- if s.Enabled == nil {
- invalidParams.Add(request.NewErrParamRequired("Enabled"))
- }
- if s.Level == nil {
- invalidParams.Add(request.NewErrParamRequired("Level"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEnabled sets the Enabled field's value.
- func (s *LoggingOptions) SetEnabled(v bool) *LoggingOptions {
- s.Enabled = &v
- return s
- }
- // SetLevel sets the Level field's value.
- func (s *LoggingOptions) SetLevel(v string) *LoggingOptions {
- s.Level = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *LoggingOptions) SetRoleArn(v string) *LoggingOptions {
- s.RoleArn = &v
- return s
- }
- // An activity that computes an arithmetic expression using the message's attributes.
- type MathActivity struct {
- _ struct{} `type:"structure"`
- // The name of the attribute that contains the result of the math operation.
- //
- // Attribute is a required field
- Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"`
- // An expression that uses one or more existing attributes and must return an
- // integer value.
- //
- // Math is a required field
- Math *string `locationName:"math" min:"1" type:"string" required:"true"`
- // The name of the 'math' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s MathActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MathActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *MathActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MathActivity"}
- if s.Attribute == nil {
- invalidParams.Add(request.NewErrParamRequired("Attribute"))
- }
- if s.Attribute != nil && len(*s.Attribute) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Attribute", 1))
- }
- if s.Math == nil {
- invalidParams.Add(request.NewErrParamRequired("Math"))
- }
- if s.Math != nil && len(*s.Math) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Math", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttribute sets the Attribute field's value.
- func (s *MathActivity) SetAttribute(v string) *MathActivity {
- s.Attribute = &v
- return s
- }
- // SetMath sets the Math field's value.
- func (s *MathActivity) SetMath(v string) *MathActivity {
- s.Math = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *MathActivity) SetName(v string) *MathActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *MathActivity) SetNext(v string) *MathActivity {
- s.Next = &v
- return s
- }
- // Information about a message.
- type Message struct {
- _ struct{} `type:"structure"`
- // The ID you wish to assign to the message. Each "messageId" must be unique
- // within each batch sent.
- //
- // MessageId is a required field
- MessageId *string `locationName:"messageId" min:"1" type:"string" required:"true"`
- // The payload of the message. This may be a JSON string or a Base64-encoded
- // string representing binary data (in which case you must decode it by means
- // of a pipeline activity).
- //
- // Payload is automatically base64 encoded/decoded by the SDK.
- //
- // Payload is a required field
- Payload []byte `locationName:"payload" type:"blob" required:"true"`
- }
- // String returns the string representation
- func (s Message) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Message) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Message) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Message"}
- if s.MessageId == nil {
- invalidParams.Add(request.NewErrParamRequired("MessageId"))
- }
- if s.MessageId != nil && len(*s.MessageId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("MessageId", 1))
- }
- if s.Payload == nil {
- invalidParams.Add(request.NewErrParamRequired("Payload"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMessageId sets the MessageId field's value.
- func (s *Message) SetMessageId(v string) *Message {
- s.MessageId = &v
- return s
- }
- // SetPayload sets the Payload field's value.
- func (s *Message) SetPayload(v []byte) *Message {
- s.Payload = v
- return s
- }
- // The value of the variable as a structure that specifies an output file URI.
- type OutputFileUriValue struct {
- _ struct{} `type:"structure"`
- // The URI of the location where data set contents are stored, usually the URI
- // of a file in an S3 bucket.
- //
- // FileName is a required field
- FileName *string `locationName:"fileName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s OutputFileUriValue) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutputFileUriValue) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OutputFileUriValue) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OutputFileUriValue"}
- if s.FileName == nil {
- invalidParams.Add(request.NewErrParamRequired("FileName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFileName sets the FileName field's value.
- func (s *OutputFileUriValue) SetFileName(v string) *OutputFileUriValue {
- s.FileName = &v
- return s
- }
- // Contains information about a pipeline.
- type Pipeline struct {
- _ struct{} `type:"structure"`
- // The activities that perform transformations on the messages.
- Activities []*PipelineActivity `locationName:"activities" min:"1" type:"list"`
- // The ARN of the pipeline.
- Arn *string `locationName:"arn" type:"string"`
- // When the pipeline was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The last time the pipeline was updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The name of the pipeline.
- Name *string `locationName:"name" min:"1" type:"string"`
- // A summary of information about the pipeline reprocessing.
- ReprocessingSummaries []*ReprocessingSummary `locationName:"reprocessingSummaries" type:"list"`
- }
- // String returns the string representation
- func (s Pipeline) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Pipeline) GoString() string {
- return s.String()
- }
- // SetActivities sets the Activities field's value.
- func (s *Pipeline) SetActivities(v []*PipelineActivity) *Pipeline {
- s.Activities = v
- return s
- }
- // SetArn sets the Arn field's value.
- func (s *Pipeline) SetArn(v string) *Pipeline {
- s.Arn = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *Pipeline) SetCreationTime(v time.Time) *Pipeline {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *Pipeline) SetLastUpdateTime(v time.Time) *Pipeline {
- s.LastUpdateTime = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Pipeline) SetName(v string) *Pipeline {
- s.Name = &v
- return s
- }
- // SetReprocessingSummaries sets the ReprocessingSummaries field's value.
- func (s *Pipeline) SetReprocessingSummaries(v []*ReprocessingSummary) *Pipeline {
- s.ReprocessingSummaries = v
- return s
- }
- // An activity that performs a transformation on a message.
- type PipelineActivity struct {
- _ struct{} `type:"structure"`
- // Adds other attributes based on existing attributes in the message.
- AddAttributes *AddAttributesActivity `locationName:"addAttributes" type:"structure"`
- // Determines the source of the messages to be processed.
- Channel *ChannelActivity `locationName:"channel" type:"structure"`
- // Specifies where to store the processed message data.
- Datastore *DatastoreActivity `locationName:"datastore" type:"structure"`
- // Adds data from the AWS IoT device registry to your message.
- DeviceRegistryEnrich *DeviceRegistryEnrichActivity `locationName:"deviceRegistryEnrich" type:"structure"`
- // Adds information from the AWS IoT Device Shadows service to a message.
- DeviceShadowEnrich *DeviceShadowEnrichActivity `locationName:"deviceShadowEnrich" type:"structure"`
- // Filters a message based on its attributes.
- Filter *FilterActivity `locationName:"filter" type:"structure"`
- // Runs a Lambda function to modify the message.
- Lambda *LambdaActivity `locationName:"lambda" type:"structure"`
- // Computes an arithmetic expression using the message's attributes and adds
- // it to the message.
- Math *MathActivity `locationName:"math" type:"structure"`
- // Removes attributes from a message.
- RemoveAttributes *RemoveAttributesActivity `locationName:"removeAttributes" type:"structure"`
- // Creates a new message using only the specified attributes from the original
- // message.
- SelectAttributes *SelectAttributesActivity `locationName:"selectAttributes" type:"structure"`
- }
- // String returns the string representation
- func (s PipelineActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PipelineActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PipelineActivity"}
- if s.AddAttributes != nil {
- if err := s.AddAttributes.Validate(); err != nil {
- invalidParams.AddNested("AddAttributes", err.(request.ErrInvalidParams))
- }
- }
- if s.Channel != nil {
- if err := s.Channel.Validate(); err != nil {
- invalidParams.AddNested("Channel", err.(request.ErrInvalidParams))
- }
- }
- if s.Datastore != nil {
- if err := s.Datastore.Validate(); err != nil {
- invalidParams.AddNested("Datastore", err.(request.ErrInvalidParams))
- }
- }
- if s.DeviceRegistryEnrich != nil {
- if err := s.DeviceRegistryEnrich.Validate(); err != nil {
- invalidParams.AddNested("DeviceRegistryEnrich", err.(request.ErrInvalidParams))
- }
- }
- if s.DeviceShadowEnrich != nil {
- if err := s.DeviceShadowEnrich.Validate(); err != nil {
- invalidParams.AddNested("DeviceShadowEnrich", err.(request.ErrInvalidParams))
- }
- }
- if s.Filter != nil {
- if err := s.Filter.Validate(); err != nil {
- invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
- }
- }
- if s.Lambda != nil {
- if err := s.Lambda.Validate(); err != nil {
- invalidParams.AddNested("Lambda", err.(request.ErrInvalidParams))
- }
- }
- if s.Math != nil {
- if err := s.Math.Validate(); err != nil {
- invalidParams.AddNested("Math", err.(request.ErrInvalidParams))
- }
- }
- if s.RemoveAttributes != nil {
- if err := s.RemoveAttributes.Validate(); err != nil {
- invalidParams.AddNested("RemoveAttributes", err.(request.ErrInvalidParams))
- }
- }
- if s.SelectAttributes != nil {
- if err := s.SelectAttributes.Validate(); err != nil {
- invalidParams.AddNested("SelectAttributes", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAddAttributes sets the AddAttributes field's value.
- func (s *PipelineActivity) SetAddAttributes(v *AddAttributesActivity) *PipelineActivity {
- s.AddAttributes = v
- return s
- }
- // SetChannel sets the Channel field's value.
- func (s *PipelineActivity) SetChannel(v *ChannelActivity) *PipelineActivity {
- s.Channel = v
- return s
- }
- // SetDatastore sets the Datastore field's value.
- func (s *PipelineActivity) SetDatastore(v *DatastoreActivity) *PipelineActivity {
- s.Datastore = v
- return s
- }
- // SetDeviceRegistryEnrich sets the DeviceRegistryEnrich field's value.
- func (s *PipelineActivity) SetDeviceRegistryEnrich(v *DeviceRegistryEnrichActivity) *PipelineActivity {
- s.DeviceRegistryEnrich = v
- return s
- }
- // SetDeviceShadowEnrich sets the DeviceShadowEnrich field's value.
- func (s *PipelineActivity) SetDeviceShadowEnrich(v *DeviceShadowEnrichActivity) *PipelineActivity {
- s.DeviceShadowEnrich = v
- return s
- }
- // SetFilter sets the Filter field's value.
- func (s *PipelineActivity) SetFilter(v *FilterActivity) *PipelineActivity {
- s.Filter = v
- return s
- }
- // SetLambda sets the Lambda field's value.
- func (s *PipelineActivity) SetLambda(v *LambdaActivity) *PipelineActivity {
- s.Lambda = v
- return s
- }
- // SetMath sets the Math field's value.
- func (s *PipelineActivity) SetMath(v *MathActivity) *PipelineActivity {
- s.Math = v
- return s
- }
- // SetRemoveAttributes sets the RemoveAttributes field's value.
- func (s *PipelineActivity) SetRemoveAttributes(v *RemoveAttributesActivity) *PipelineActivity {
- s.RemoveAttributes = v
- return s
- }
- // SetSelectAttributes sets the SelectAttributes field's value.
- func (s *PipelineActivity) SetSelectAttributes(v *SelectAttributesActivity) *PipelineActivity {
- s.SelectAttributes = v
- return s
- }
- // A summary of information about a pipeline.
- type PipelineSummary struct {
- _ struct{} `type:"structure"`
- // When the pipeline was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // When the pipeline was last updated.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The name of the pipeline.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
- // A summary of information about the pipeline reprocessing.
- ReprocessingSummaries []*ReprocessingSummary `locationName:"reprocessingSummaries" type:"list"`
- }
- // String returns the string representation
- func (s PipelineSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *PipelineSummary) SetCreationTime(v time.Time) *PipelineSummary {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *PipelineSummary) SetLastUpdateTime(v time.Time) *PipelineSummary {
- s.LastUpdateTime = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *PipelineSummary) SetPipelineName(v string) *PipelineSummary {
- s.PipelineName = &v
- return s
- }
- // SetReprocessingSummaries sets the ReprocessingSummaries field's value.
- func (s *PipelineSummary) SetReprocessingSummaries(v []*ReprocessingSummary) *PipelineSummary {
- s.ReprocessingSummaries = v
- return s
- }
- type PutLoggingOptionsInput struct {
- _ struct{} `type:"structure"`
- // The new values of the AWS IoT Analytics logging options.
- //
- // LoggingOptions is a required field
- LoggingOptions *LoggingOptions `locationName:"loggingOptions" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s PutLoggingOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutLoggingOptionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutLoggingOptionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutLoggingOptionsInput"}
- if s.LoggingOptions == nil {
- invalidParams.Add(request.NewErrParamRequired("LoggingOptions"))
- }
- if s.LoggingOptions != nil {
- if err := s.LoggingOptions.Validate(); err != nil {
- invalidParams.AddNested("LoggingOptions", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoggingOptions sets the LoggingOptions field's value.
- func (s *PutLoggingOptionsInput) SetLoggingOptions(v *LoggingOptions) *PutLoggingOptionsInput {
- s.LoggingOptions = v
- return s
- }
- type PutLoggingOptionsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutLoggingOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutLoggingOptionsOutput) GoString() string {
- return s.String()
- }
- // Information which is used to filter message data, to segregate it according
- // to the time frame in which it arrives.
- type QueryFilter struct {
- _ struct{} `type:"structure"`
- // Used to limit data to that which has arrived since the last execution of
- // the action.
- DeltaTime *DeltaTime `locationName:"deltaTime" type:"structure"`
- }
- // String returns the string representation
- func (s QueryFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s QueryFilter) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *QueryFilter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "QueryFilter"}
- if s.DeltaTime != nil {
- if err := s.DeltaTime.Validate(); err != nil {
- invalidParams.AddNested("DeltaTime", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDeltaTime sets the DeltaTime field's value.
- func (s *QueryFilter) SetDeltaTime(v *DeltaTime) *QueryFilter {
- s.DeltaTime = v
- return s
- }
- // An activity that removes attributes from a message.
- type RemoveAttributesActivity struct {
- _ struct{} `type:"structure"`
- // A list of 1-50 attributes to remove from the message.
- //
- // Attributes is a required field
- Attributes []*string `locationName:"attributes" min:"1" type:"list" required:"true"`
- // The name of the 'removeAttributes' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s RemoveAttributesActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveAttributesActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveAttributesActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveAttributesActivity"}
- if s.Attributes == nil {
- invalidParams.Add(request.NewErrParamRequired("Attributes"))
- }
- if s.Attributes != nil && len(s.Attributes) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Attributes", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributes sets the Attributes field's value.
- func (s *RemoveAttributesActivity) SetAttributes(v []*string) *RemoveAttributesActivity {
- s.Attributes = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *RemoveAttributesActivity) SetName(v string) *RemoveAttributesActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *RemoveAttributesActivity) SetNext(v string) *RemoveAttributesActivity {
- s.Next = &v
- return s
- }
- // Information about pipeline reprocessing.
- type ReprocessingSummary struct {
- _ struct{} `type:"structure"`
- // The time the pipeline reprocessing was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The 'reprocessingId' returned by "StartPipelineReprocessing".
- Id *string `locationName:"id" type:"string"`
- // The status of the pipeline reprocessing.
- Status *string `locationName:"status" type:"string" enum:"ReprocessingStatus"`
- }
- // String returns the string representation
- func (s ReprocessingSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReprocessingSummary) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *ReprocessingSummary) SetCreationTime(v time.Time) *ReprocessingSummary {
- s.CreationTime = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *ReprocessingSummary) SetId(v string) *ReprocessingSummary {
- s.Id = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ReprocessingSummary) SetStatus(v string) *ReprocessingSummary {
- s.Status = &v
- return s
- }
- // The configuration of the resource used to execute the "containerAction".
- type ResourceConfiguration struct {
- _ struct{} `type:"structure"`
- // The type of the compute resource used to execute the "containerAction". Possible
- // values are: ACU_1 (vCPU=4, memory=16GiB) or ACU_2 (vCPU=8, memory=32GiB).
- //
- // ComputeType is a required field
- ComputeType *string `locationName:"computeType" type:"string" required:"true" enum:"ComputeType"`
- // The size (in GB) of the persistent storage available to the resource instance
- // used to execute the "containerAction" (min: 1, max: 50).
- //
- // VolumeSizeInGB is a required field
- VolumeSizeInGB *int64 `locationName:"volumeSizeInGB" min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ResourceConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResourceConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResourceConfiguration"}
- if s.ComputeType == nil {
- invalidParams.Add(request.NewErrParamRequired("ComputeType"))
- }
- if s.VolumeSizeInGB == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB"))
- }
- if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 {
- invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetComputeType sets the ComputeType field's value.
- func (s *ResourceConfiguration) SetComputeType(v string) *ResourceConfiguration {
- s.ComputeType = &v
- return s
- }
- // SetVolumeSizeInGB sets the VolumeSizeInGB field's value.
- func (s *ResourceConfiguration) SetVolumeSizeInGB(v int64) *ResourceConfiguration {
- s.VolumeSizeInGB = &v
- return s
- }
- // How long, in days, message data is kept.
- type RetentionPeriod struct {
- _ struct{} `type:"structure"`
- // The number of days that message data is kept. The "unlimited" parameter must
- // be false.
- NumberOfDays *int64 `locationName:"numberOfDays" min:"1" type:"integer"`
- // If true, message data is kept indefinitely.
- Unlimited *bool `locationName:"unlimited" type:"boolean"`
- }
- // String returns the string representation
- func (s RetentionPeriod) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetentionPeriod) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RetentionPeriod) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RetentionPeriod"}
- if s.NumberOfDays != nil && *s.NumberOfDays < 1 {
- invalidParams.Add(request.NewErrParamMinValue("NumberOfDays", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNumberOfDays sets the NumberOfDays field's value.
- func (s *RetentionPeriod) SetNumberOfDays(v int64) *RetentionPeriod {
- s.NumberOfDays = &v
- return s
- }
- // SetUnlimited sets the Unlimited field's value.
- func (s *RetentionPeriod) SetUnlimited(v bool) *RetentionPeriod {
- s.Unlimited = &v
- return s
- }
- type RunPipelineActivityInput struct {
- _ struct{} `type:"structure"`
- // The sample message payloads on which the pipeline activity is run.
- //
- // Payloads is a required field
- Payloads [][]byte `locationName:"payloads" min:"1" type:"list" required:"true"`
- // The pipeline activity that is run. This must not be a 'channel' activity
- // or a 'datastore' activity because these activities are used in a pipeline
- // only to load the original message and to store the (possibly) transformed
- // message. If a 'lambda' activity is specified, only short-running Lambda functions
- // (those with a timeout of less than 30 seconds or less) can be used.
- //
- // PipelineActivity is a required field
- PipelineActivity *PipelineActivity `locationName:"pipelineActivity" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s RunPipelineActivityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RunPipelineActivityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RunPipelineActivityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RunPipelineActivityInput"}
- if s.Payloads == nil {
- invalidParams.Add(request.NewErrParamRequired("Payloads"))
- }
- if s.Payloads != nil && len(s.Payloads) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Payloads", 1))
- }
- if s.PipelineActivity == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineActivity"))
- }
- if s.PipelineActivity != nil {
- if err := s.PipelineActivity.Validate(); err != nil {
- invalidParams.AddNested("PipelineActivity", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPayloads sets the Payloads field's value.
- func (s *RunPipelineActivityInput) SetPayloads(v [][]byte) *RunPipelineActivityInput {
- s.Payloads = v
- return s
- }
- // SetPipelineActivity sets the PipelineActivity field's value.
- func (s *RunPipelineActivityInput) SetPipelineActivity(v *PipelineActivity) *RunPipelineActivityInput {
- s.PipelineActivity = v
- return s
- }
- type RunPipelineActivityOutput struct {
- _ struct{} `type:"structure"`
- // In case the pipeline activity fails, the log message that is generated.
- LogResult *string `locationName:"logResult" type:"string"`
- // The enriched or transformed sample message payloads as base64-encoded strings.
- // (The results of running the pipeline activity on each input sample message
- // payload, encoded in base64.)
- Payloads [][]byte `locationName:"payloads" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s RunPipelineActivityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RunPipelineActivityOutput) GoString() string {
- return s.String()
- }
- // SetLogResult sets the LogResult field's value.
- func (s *RunPipelineActivityOutput) SetLogResult(v string) *RunPipelineActivityOutput {
- s.LogResult = &v
- return s
- }
- // SetPayloads sets the Payloads field's value.
- func (s *RunPipelineActivityOutput) SetPayloads(v [][]byte) *RunPipelineActivityOutput {
- s.Payloads = v
- return s
- }
- type SampleChannelDataInput struct {
- _ struct{} `type:"structure"`
- // The name of the channel whose message samples are retrieved.
- //
- // ChannelName is a required field
- ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
- // The end of the time window from which sample messages are retrieved.
- EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp"`
- // The number of sample messages to be retrieved. The limit is 10, the default
- // is also 10.
- MaxMessages *int64 `location:"querystring" locationName:"maxMessages" min:"1" type:"integer"`
- // The start of the time window from which sample messages are retrieved.
- StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp"`
- }
- // String returns the string representation
- func (s SampleChannelDataInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SampleChannelDataInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SampleChannelDataInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SampleChannelDataInput"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if s.MaxMessages != nil && *s.MaxMessages < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxMessages", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *SampleChannelDataInput) SetChannelName(v string) *SampleChannelDataInput {
- s.ChannelName = &v
- return s
- }
- // SetEndTime sets the EndTime field's value.
- func (s *SampleChannelDataInput) SetEndTime(v time.Time) *SampleChannelDataInput {
- s.EndTime = &v
- return s
- }
- // SetMaxMessages sets the MaxMessages field's value.
- func (s *SampleChannelDataInput) SetMaxMessages(v int64) *SampleChannelDataInput {
- s.MaxMessages = &v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *SampleChannelDataInput) SetStartTime(v time.Time) *SampleChannelDataInput {
- s.StartTime = &v
- return s
- }
- type SampleChannelDataOutput struct {
- _ struct{} `type:"structure"`
- // The list of message samples. Each sample message is returned as a base64-encoded
- // string.
- Payloads [][]byte `locationName:"payloads" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s SampleChannelDataOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SampleChannelDataOutput) GoString() string {
- return s.String()
- }
- // SetPayloads sets the Payloads field's value.
- func (s *SampleChannelDataOutput) SetPayloads(v [][]byte) *SampleChannelDataOutput {
- s.Payloads = v
- return s
- }
- // The schedule for when to trigger an update.
- type Schedule struct {
- _ struct{} `type:"structure"`
- // The expression that defines when to trigger an update. For more information,
- // see Schedule Expressions for Rules (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html)
- // in the Amazon CloudWatch documentation.
- Expression *string `locationName:"expression" type:"string"`
- }
- // String returns the string representation
- func (s Schedule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Schedule) GoString() string {
- return s.String()
- }
- // SetExpression sets the Expression field's value.
- func (s *Schedule) SetExpression(v string) *Schedule {
- s.Expression = &v
- return s
- }
- // Creates a new message using only the specified attributes from the original
- // message.
- type SelectAttributesActivity struct {
- _ struct{} `type:"structure"`
- // A list of the attributes to select from the message.
- //
- // Attributes is a required field
- Attributes []*string `locationName:"attributes" min:"1" type:"list" required:"true"`
- // The name of the 'selectAttributes' activity.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The next activity in the pipeline.
- Next *string `locationName:"next" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s SelectAttributesActivity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SelectAttributesActivity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SelectAttributesActivity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SelectAttributesActivity"}
- if s.Attributes == nil {
- invalidParams.Add(request.NewErrParamRequired("Attributes"))
- }
- if s.Attributes != nil && len(s.Attributes) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Attributes", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Next != nil && len(*s.Next) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Next", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributes sets the Attributes field's value.
- func (s *SelectAttributesActivity) SetAttributes(v []*string) *SelectAttributesActivity {
- s.Attributes = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *SelectAttributesActivity) SetName(v string) *SelectAttributesActivity {
- s.Name = &v
- return s
- }
- // SetNext sets the Next field's value.
- func (s *SelectAttributesActivity) SetNext(v string) *SelectAttributesActivity {
- s.Next = &v
- return s
- }
- // The SQL query to modify the message.
- type SqlQueryDatasetAction struct {
- _ struct{} `type:"structure"`
- // Pre-filters applied to message data.
- Filters []*QueryFilter `locationName:"filters" type:"list"`
- // A SQL query string.
- //
- // SqlQuery is a required field
- SqlQuery *string `locationName:"sqlQuery" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SqlQueryDatasetAction) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SqlQueryDatasetAction) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SqlQueryDatasetAction) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SqlQueryDatasetAction"}
- if s.SqlQuery == nil {
- invalidParams.Add(request.NewErrParamRequired("SqlQuery"))
- }
- if s.Filters != nil {
- for i, v := range s.Filters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFilters sets the Filters field's value.
- func (s *SqlQueryDatasetAction) SetFilters(v []*QueryFilter) *SqlQueryDatasetAction {
- s.Filters = v
- return s
- }
- // SetSqlQuery sets the SqlQuery field's value.
- func (s *SqlQueryDatasetAction) SetSqlQuery(v string) *SqlQueryDatasetAction {
- s.SqlQuery = &v
- return s
- }
- type StartPipelineReprocessingInput struct {
- _ struct{} `type:"structure"`
- // The end time (exclusive) of raw message data that is reprocessed.
- EndTime *time.Time `locationName:"endTime" type:"timestamp"`
- // The name of the pipeline on which to start reprocessing.
- //
- // PipelineName is a required field
- PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The start time (inclusive) of raw message data that is reprocessed.
- StartTime *time.Time `locationName:"startTime" type:"timestamp"`
- }
- // String returns the string representation
- func (s StartPipelineReprocessingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartPipelineReprocessingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartPipelineReprocessingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartPipelineReprocessingInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEndTime sets the EndTime field's value.
- func (s *StartPipelineReprocessingInput) SetEndTime(v time.Time) *StartPipelineReprocessingInput {
- s.EndTime = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *StartPipelineReprocessingInput) SetPipelineName(v string) *StartPipelineReprocessingInput {
- s.PipelineName = &v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *StartPipelineReprocessingInput) SetStartTime(v time.Time) *StartPipelineReprocessingInput {
- s.StartTime = &v
- return s
- }
- type StartPipelineReprocessingOutput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline reprocessing activity that was started.
- ReprocessingId *string `locationName:"reprocessingId" type:"string"`
- }
- // String returns the string representation
- func (s StartPipelineReprocessingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartPipelineReprocessingOutput) GoString() string {
- return s.String()
- }
- // SetReprocessingId sets the ReprocessingId field's value.
- func (s *StartPipelineReprocessingOutput) SetReprocessingId(v string) *StartPipelineReprocessingOutput {
- s.ReprocessingId = &v
- return s
- }
- // A set of key/value pairs which are used to manage the resource.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The tag's key.
- //
- // Key is a required field
- Key *string `locationName:"key" min:"1" type:"string" required:"true"`
- // The tag's value.
- //
- // Value is a required field
- Value *string `locationName:"value" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if s.Value != nil && len(*s.Value) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Value", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKey sets the Key field's value.
- func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
- }
- type TagResourceInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the resource whose tags you want to modify.
- //
- // ResourceArn is a required field
- ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
- // The new or modified tags for the resource.
- //
- // Tags is a required field
- Tags []*Tag `locationName:"tags" min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s TagResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TagResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
- s.ResourceArn = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
- s.Tags = v
- return s
- }
- type TagResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s TagResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagResourceOutput) GoString() string {
- return s.String()
- }
- // Information about the data set whose content generation triggers the new
- // data set content generation.
- type TriggeringDataset struct {
- _ struct{} `type:"structure"`
- // The name of the data set whose content generation triggers the new data set
- // content generation.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s TriggeringDataset) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TriggeringDataset) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TriggeringDataset) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TriggeringDataset"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *TriggeringDataset) SetName(v string) *TriggeringDataset {
- s.Name = &v
- return s
- }
- type UntagResourceInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the resource whose tags you want to remove.
- //
- // ResourceArn is a required field
- ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
- // The keys of those tags which you want to remove.
- //
- // TagKeys is a required field
- TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s UntagResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UntagResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if s.TagKeys != nil && len(s.TagKeys) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
- s.ResourceArn = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
- s.TagKeys = v
- return s
- }
- type UntagResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UntagResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagResourceOutput) GoString() string {
- return s.String()
- }
- type UpdateChannelInput struct {
- _ struct{} `type:"structure"`
- // The name of the channel to be updated.
- //
- // ChannelName is a required field
- ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"`
- // How long, in days, message data is kept for the channel.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateChannelInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateChannelInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateChannelInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateChannelInput"}
- if s.ChannelName == nil {
- invalidParams.Add(request.NewErrParamRequired("ChannelName"))
- }
- if s.ChannelName != nil && len(*s.ChannelName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
- }
- if s.RetentionPeriod != nil {
- if err := s.RetentionPeriod.Validate(); err != nil {
- invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChannelName sets the ChannelName field's value.
- func (s *UpdateChannelInput) SetChannelName(v string) *UpdateChannelInput {
- s.ChannelName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *UpdateChannelInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateChannelInput {
- s.RetentionPeriod = v
- return s
- }
- type UpdateChannelOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateChannelOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateChannelOutput) GoString() string {
- return s.String()
- }
- type UpdateDatasetInput struct {
- _ struct{} `type:"structure"`
- // A list of "DatasetAction" objects.
- //
- // Actions is a required field
- Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"`
- // When data set contents are created they are delivered to destinations specified
- // here.
- ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"`
- // The name of the data set to update.
- //
- // DatasetName is a required field
- DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"`
- // How long, in days, message data is kept for the data set.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- // A list of "DatasetTrigger" objects. The list can be empty or can contain
- // up to five DataSetTrigger objects.
- Triggers []*DatasetTrigger `locationName:"triggers" type:"list"`
- }
- // String returns the string representation
- func (s UpdateDatasetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDatasetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDatasetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDatasetInput"}
- if s.Actions == nil {
- invalidParams.Add(request.NewErrParamRequired("Actions"))
- }
- if s.Actions != nil && len(s.Actions) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Actions", 1))
- }
- if s.DatasetName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatasetName"))
- }
- if s.DatasetName != nil && len(*s.DatasetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
- }
- if s.Actions != nil {
- for i, v := range s.Actions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.ContentDeliveryRules != nil {
- for i, v := range s.ContentDeliveryRules {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContentDeliveryRules", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.RetentionPeriod != nil {
- if err := s.RetentionPeriod.Validate(); err != nil {
- invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
- }
- }
- if s.Triggers != nil {
- for i, v := range s.Triggers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActions sets the Actions field's value.
- func (s *UpdateDatasetInput) SetActions(v []*DatasetAction) *UpdateDatasetInput {
- s.Actions = v
- return s
- }
- // SetContentDeliveryRules sets the ContentDeliveryRules field's value.
- func (s *UpdateDatasetInput) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *UpdateDatasetInput {
- s.ContentDeliveryRules = v
- return s
- }
- // SetDatasetName sets the DatasetName field's value.
- func (s *UpdateDatasetInput) SetDatasetName(v string) *UpdateDatasetInput {
- s.DatasetName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *UpdateDatasetInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateDatasetInput {
- s.RetentionPeriod = v
- return s
- }
- // SetTriggers sets the Triggers field's value.
- func (s *UpdateDatasetInput) SetTriggers(v []*DatasetTrigger) *UpdateDatasetInput {
- s.Triggers = v
- return s
- }
- type UpdateDatasetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDatasetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDatasetOutput) GoString() string {
- return s.String()
- }
- type UpdateDatastoreInput struct {
- _ struct{} `type:"structure"`
- // The name of the data store to be updated.
- //
- // DatastoreName is a required field
- DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"`
- // How long, in days, message data is kept for the data store.
- RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDatastoreInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDatastoreInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDatastoreInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDatastoreInput"}
- if s.DatastoreName == nil {
- invalidParams.Add(request.NewErrParamRequired("DatastoreName"))
- }
- if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
- }
- if s.RetentionPeriod != nil {
- if err := s.RetentionPeriod.Validate(); err != nil {
- invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatastoreName sets the DatastoreName field's value.
- func (s *UpdateDatastoreInput) SetDatastoreName(v string) *UpdateDatastoreInput {
- s.DatastoreName = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *UpdateDatastoreInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateDatastoreInput {
- s.RetentionPeriod = v
- return s
- }
- type UpdateDatastoreOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDatastoreOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDatastoreOutput) GoString() string {
- return s.String()
- }
- type UpdatePipelineInput struct {
- _ struct{} `type:"structure"`
- // A list of "PipelineActivity" objects.
- //
- // The list can be 1-25 PipelineActivity objects. Activities perform transformations
- // on your messages, such as removing, renaming or adding message attributes;
- // filtering messages based on attribute values; invoking your Lambda functions
- // on messages for advanced processing; or performing mathematical transformations
- // to normalize device data.
- //
- // PipelineActivities is a required field
- PipelineActivities []*PipelineActivity `locationName:"pipelineActivities" min:"1" type:"list" required:"true"`
- // The name of the pipeline to update.
- //
- // PipelineName is a required field
- PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
- if s.PipelineActivities == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineActivities"))
- }
- if s.PipelineActivities != nil && len(s.PipelineActivities) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineActivities", 1))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.PipelineActivities != nil {
- for i, v := range s.PipelineActivities {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineActivities", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineActivities sets the PipelineActivities field's value.
- func (s *UpdatePipelineInput) SetPipelineActivities(v []*PipelineActivity) *UpdatePipelineInput {
- s.PipelineActivities = v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *UpdatePipelineInput) SetPipelineName(v string) *UpdatePipelineInput {
- s.PipelineName = &v
- return s
- }
- type UpdatePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineOutput) GoString() string {
- return s.String()
- }
- // An instance of a variable to be passed to the "containerAction" execution.
- // Each variable must have a name and a value given by one of "stringValue",
- // "datasetContentVersionValue", or "outputFileUriValue".
- type Variable struct {
- _ struct{} `type:"structure"`
- // The value of the variable as a structure that specifies a data set content
- // version.
- DatasetContentVersionValue *DatasetContentVersionValue `locationName:"datasetContentVersionValue" type:"structure"`
- // The value of the variable as a double (numeric).
- DoubleValue *float64 `locationName:"doubleValue" type:"double"`
- // The name of the variable.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The value of the variable as a structure that specifies an output file URI.
- OutputFileUriValue *OutputFileUriValue `locationName:"outputFileUriValue" type:"structure"`
- // The value of the variable as a string.
- StringValue *string `locationName:"stringValue" type:"string"`
- }
- // String returns the string representation
- func (s Variable) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Variable) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Variable) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Variable"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.DatasetContentVersionValue != nil {
- if err := s.DatasetContentVersionValue.Validate(); err != nil {
- invalidParams.AddNested("DatasetContentVersionValue", err.(request.ErrInvalidParams))
- }
- }
- if s.OutputFileUriValue != nil {
- if err := s.OutputFileUriValue.Validate(); err != nil {
- invalidParams.AddNested("OutputFileUriValue", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDatasetContentVersionValue sets the DatasetContentVersionValue field's value.
- func (s *Variable) SetDatasetContentVersionValue(v *DatasetContentVersionValue) *Variable {
- s.DatasetContentVersionValue = v
- return s
- }
- // SetDoubleValue sets the DoubleValue field's value.
- func (s *Variable) SetDoubleValue(v float64) *Variable {
- s.DoubleValue = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Variable) SetName(v string) *Variable {
- s.Name = &v
- return s
- }
- // SetOutputFileUriValue sets the OutputFileUriValue field's value.
- func (s *Variable) SetOutputFileUriValue(v *OutputFileUriValue) *Variable {
- s.OutputFileUriValue = v
- return s
- }
- // SetStringValue sets the StringValue field's value.
- func (s *Variable) SetStringValue(v string) *Variable {
- s.StringValue = &v
- return s
- }
- const (
- // ChannelStatusCreating is a ChannelStatus enum value
- ChannelStatusCreating = "CREATING"
- // ChannelStatusActive is a ChannelStatus enum value
- ChannelStatusActive = "ACTIVE"
- // ChannelStatusDeleting is a ChannelStatus enum value
- ChannelStatusDeleting = "DELETING"
- )
- const (
- // ComputeTypeAcu1 is a ComputeType enum value
- ComputeTypeAcu1 = "ACU_1"
- // ComputeTypeAcu2 is a ComputeType enum value
- ComputeTypeAcu2 = "ACU_2"
- )
- const (
- // DatasetActionTypeQuery is a DatasetActionType enum value
- DatasetActionTypeQuery = "QUERY"
- // DatasetActionTypeContainer is a DatasetActionType enum value
- DatasetActionTypeContainer = "CONTAINER"
- )
- const (
- // DatasetContentStateCreating is a DatasetContentState enum value
- DatasetContentStateCreating = "CREATING"
- // DatasetContentStateSucceeded is a DatasetContentState enum value
- DatasetContentStateSucceeded = "SUCCEEDED"
- // DatasetContentStateFailed is a DatasetContentState enum value
- DatasetContentStateFailed = "FAILED"
- )
- const (
- // DatasetStatusCreating is a DatasetStatus enum value
- DatasetStatusCreating = "CREATING"
- // DatasetStatusActive is a DatasetStatus enum value
- DatasetStatusActive = "ACTIVE"
- // DatasetStatusDeleting is a DatasetStatus enum value
- DatasetStatusDeleting = "DELETING"
- )
- const (
- // DatastoreStatusCreating is a DatastoreStatus enum value
- DatastoreStatusCreating = "CREATING"
- // DatastoreStatusActive is a DatastoreStatus enum value
- DatastoreStatusActive = "ACTIVE"
- // DatastoreStatusDeleting is a DatastoreStatus enum value
- DatastoreStatusDeleting = "DELETING"
- )
- const (
- // LoggingLevelError is a LoggingLevel enum value
- LoggingLevelError = "ERROR"
- )
- const (
- // ReprocessingStatusRunning is a ReprocessingStatus enum value
- ReprocessingStatusRunning = "RUNNING"
- // ReprocessingStatusSucceeded is a ReprocessingStatus enum value
- ReprocessingStatusSucceeded = "SUCCEEDED"
- // ReprocessingStatusCancelled is a ReprocessingStatus enum value
- ReprocessingStatusCancelled = "CANCELLED"
- // ReprocessingStatusFailed is a ReprocessingStatus enum value
- ReprocessingStatusFailed = "FAILED"
- )
|